| Server IP : 141.193.213.10 / Your IP : 216.73.216.190 Web Server : nginx System : Linux pod-400555 6.8.0-1055-gke #61-Ubuntu SMP Tue May 26 22:57:42 UTC 2026 x86_64 User : fpm200079 ( 200079) PHP Version : 8.2.35 Disable Function : apache_child_terminate,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,disk_total_space,diskfreespace,dl,exec,fastcgi_finish_request,link,opcache_compile_file,opcache_get_configuration,opcache_invalidate,opcache_is_script_cached,opcache_reset,passthru,pclose,pcntl_exec,popen,posix_getpid,posix_getppid,posix_getpwuid,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,realpath_cache_get,shell_exec,show_source,symlink,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nas/content/live/bartislaw/wp-content/themes/spk/lib/ |
Upload File : |
<?php
/*
* ---------------------------------------------------------------------------
* --------------------- Plugin Activation -------------------------------
* --------------------------------------------------------------------------- */
add_action('tgmpa_register', 'required_plugins');
if (!function_exists('required_plugins')) {
function required_plugins() {
$plugins = array(
// required -----------------------------
array(
'name' => 'Slider Revolution', // The plugin name.
'slug' => 'revslider', // The plugin slug (typically the folder name).
'source' => LIB_DIR . '/plugins/revslider.zip', // The plugin source.
'required' => true, // If false, the plugin is only 'recommended' instead of required.
'version' => '5.4.3.1', // 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.
),
array(
'name' => 'Visual Composer',
'slug' => 'js_composer',
'source' => LIB_DIR . '/plugins/js_composer.zip',
'required' => TRUE,
'version' => '5.1.1',
),
array(
'name' => 'Redux Framework',
'slug' => 'redux-framework',
'required' => TRUE,
'external_url' => 'https://wordpress.org/plugins/redux-framework/',
),
array(
'name' => 'Meta Box',
'slug' => 'meta-box',
'required' => TRUE,
'external_url' => 'https://wordpress.org/plugins/meta-box/',
),
// recommended -----------------------------
array(
'name' => 'Contact Form 7',
'slug' => 'contact-form-7',
'required' => false,
'external_url' => 'http://wordpress.org/plugins/contact-form-7/',
),
array(
'name' => 'Duplicate Post',
'slug' => 'duplicate-post',
'required' => false,
'external_url' => 'https://wordpress.org/plugins/duplicate-post/',
),
array(
'name' => 'Force Regenerate Thumbnails',
'slug' => 'force-regenerate-thumbnails',
'required' => false,
'external_url' => 'https://wordpress.org/plugins/force-regenerate-thumbnails/',
),
);
$config = array(
'id' => TNAME, // Unique ID for hashing notices for multiple instances of TGMPA.
'default_path' => '', // Default absolute path to bundled plugins.
'menu' => 'tgmpa-install-plugins', // Menu slug.
'parent_slug' => 'themes.php', // Parent menu slug.
'capability' => 'edit_theme_options', // Capability needed to view plugin install page, should be a capability associated with the parent menu used.
'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' => '<div class="mfn-tgm-message">' . __('If you are not sure about server\'s settings and limits, please activate <u>necessary plugins ONLY</u>', 'tgmpa') . '</div>', // Message to output right before the plugins table
'strings' => array(
'page_title' => __('Install Required Plugins', 'tgmpa'),
'menu_title' => __('Install Plugins', 'tgmpa'),
'installing' => __('Installing Plugin: %s', 'tgmpa'), // %s = plugin name.
'oops' => __('Something went wrong with the plugin API.', 'tgmpa'),
'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'tgmpa'),
'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'tgmpa'),
'notice_cannot_install' => _n_noop('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'Sorry, but you do not have the correct permissions to install the %s plugins. Contact the administrator of this site for help on getting the plugins installed.', 'tgmpa'),
'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'tgmpa'),
'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'tgmpa'),
'notice_cannot_activate' => _n_noop('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'Sorry, but you do not have the correct permissions to activate the %s plugins. Contact the administrator of this site for help on getting the plugins activated.', 'tgmpa'),
'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'tgmpa'),
'notice_cannot_update' => _n_noop('Sorry, but you do not have the correct permissions to update the %s plugin. Contact the administrator of this site for help on getting the plugin updated.', 'Sorry, but you do not have the correct permissions to update the %s plugins. Contact the administrator of this site for help on getting the plugins updated.', 'tgmpa'),
'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins', 'tgmpa'),
'activate_link' => _n_noop('Begin activating plugin', 'Begin activating plugins', 'tgmpa'),
'return' => __('Return to Required Plugins Installer', 'tgmpa'),
'plugin_activated' => __('Plugin activated successfully.', 'tgmpa'),
'complete' => __('All plugins installed and activated successfully. %s', 'tgmpa'), // %s = dashboard link.
'nag_type' => 'updated' // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'.
),
);
tgmpa($plugins, $config);
}
}