HEX
Server: Apache
System: Linux server7 6.1.0-43-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.162-1 (2026-02-08) x86_64
User: k8148-2 (1324)
PHP: 8.1.34
Disabled: show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen, system, shell_exec, passthru, popen, proc_open, exec
Upload Files
File: /var/www/k8148-2/htdocs/www.sport-roth.at/old/wp-content/themes/daniel/inc/libs/tgm-plugin/init.php
<?php
/**
 * This file represents an example of the code that themes would use to register
 * the required plugins.
 *
 * It is expected that theme authors would copy and paste this code into their
 * functions.php file, and amend to suit.
 *
 * @see http://tgmpluginactivation.com/configuration/ for detailed documentation.
 *
 * @package    TGM-Plugin-Activation
 * @subpackage Example
 * @version    2.6.1 for parent theme daniel
 * @author     Thomas Griffin, Gary Jones, Juliette Reinders Folmer
 * @copyright  Copyright (c) 2011, Thomas Griffin
 * @license    http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
 * @link       https://github.com/TGMPA/TGM-Plugin-Activation
 */

require_once get_template_directory() . '/inc/libs/tgm-plugin/class-tgm-plugin-activation.php';

add_action( 'tgmpa_register', 'daniel_register_required_plugins' );

/**
 * Register the required plugins for this theme.
 *
 * In this example, we register five plugins:
 * - one included with the TGMPA library
 * - two from an external source, one from an arbitrary source, one from a GitHub repository
 * - two from the .org repo, where one demonstrates the use of the `is_callable` argument
 *
 * The variables passed to the `tgmpa()` function should be:
 * - an array of plugin arrays;
 * - optionally a configuration array.
 * If you are not changing anything in the configuration array, you can remove the array and remove the
 * variable from the function call: `tgmpa( $plugins );`.
 * In that case, the TGMPA default settings will be used.
 *
 * This function is hooked into `tgmpa_register`, which is fired on the WP `init` action on priority 10.
 */
function daniel_register_required_plugins() {
	/*
	 * Array of plugin arrays. Required keys are name and slug.
	 * If the source is NOT from the .org repo, then source is also required.
	 */
	$plugins = array(

		// load pre packaged plugin
		array(
			'name'               => __('Daniel Core','daniel'), // The plugin name.
			'slug'               => 'daniel-core', // The plugin slug (typically the folder name).
			'source'             => get_template_directory() . '/inc/libs/tgm-plugin/plugins/daniel-core.zip', // The plugin source.
			'required'           => true, // If false, the plugin is only 'recommended' instead of required.
			'version'            => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher. If the plugin version is higher than the plugin version installed, the user will be notified to update the plugin.
			'force_activation'   => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch.
			'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins.
			'external_url'       => '', // If set, overrides default API URL and points to an external URL.
			'is_callable'        => '', // If set, this callable will be be checked for availability to determine if a plugin is active.
		),

		// Load wporg plugins
		array(
			'name'      => __('Contact Form 7', 'daniel'),
			'slug'      => 'contact-form-7',
			'required'  => false,
		),
		array(
			'name'      => __('Elementor','daniel'),
			'slug'      => 'elementor',
			'required'  => false,
		),
		array(
			'name'      => __('HT Instagram','daniel'),
			'slug'      => 'ht-instagram',
			'required'  => false,
		),
		array(
			'name'      => __('HT Slider For Elementor','daniel'),
			'slug'      => 'ht-slider-for-elementor',
			'required'  => false,
		),
		array(
			'name'      => __('WooLentor - WooCommerce Addons for Elementor Page Builder','daniel'),
			'slug'      => 'woolentor-addons',
			'required'  => true,
		),
		array(
			'name'      => __('GTranslate','daniel'),
			'slug'      => 'gtranslate',
			'required'  => false,
		),
		array(
			'name'      => __('MailChimp for WordPress','daniel'),
			'slug'      => 'mailchimp-for-wp',
			'required'  => false,
		),
		array(
			'name'      => __('WooCommerce','daniel'),
			'slug'      => 'woocommerce',
			'required'  => false,
		),
		array(
			'name'      => __('WooCommerce Variation Swatches','daniel'),
			'slug'      => 'woo-variation-swatches',
			'required'  => false,
		),
		array(
			'name'      => __('YITH WooCommerce Compare','daniel'),
			'slug'      => 'yith-woocommerce-compare',
			'required'  => false,
		),
		array(
			'name'      => __('YITH WooCommerce Wishlist','daniel'),
			'slug'      => 'yith-woocommerce-wishlist',
			'required'  => false,
		),
		array(
			'name'      => __('One Click Demo Import','daniel'),
			'slug'      => 'one-click-demo-import',
			'required'  => false,
		),

	);

	/*
	 * Array of configuration settings. Amend each line as needed.
	 *
	 * TGMPA will start providing localized text strings soon. If you already have translations of our standard
	 * strings available, please help us make TGMPA even better by giving us access to these translations or by
	 * sending in a pull-request with .po file(s) with the translations.
	 *
	 * Only uncomment the strings in the config array if you want to customize the strings.
	 */
	$config = array(
		'id'           => 'daniel',                 // Unique ID for hashing notices for multiple instances of TGMPA.
		'default_path' => '',                      // Default absolute path to bundled plugins.
		'menu'         => 'tgmpa-install-plugins', // Menu slug.
		'has_notices'  => true,                    // Show admin notices or not.
		'dismissable'  => true,                    // If false, a user cannot dismiss the nag message.
		'dismiss_msg'  => '',                      // If 'dismissable' is false, this message will be output at top of nag.
		'is_automatic' => false,                   // Automatically activate plugins after installation or not.
		'message'      => '',                      // Message to output right before the plugins table.
		'return'                          => __( 'Return to Required Plugins Installer', 'daniel' ),
		'plugin_activated'                => __( 'Plugin activated successfully.', 'daniel' ),
		'activated_successfully'          => __( 'The following plugin was activated successfully:', 'daniel' ),
	);

	tgmpa( $plugins, $config );
}