• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tgmpa函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tgmpa函数的典型用法代码示例。如果您正苦于以下问题:PHP tgmpa函数的具体用法?PHP tgmpa怎么用?PHP tgmpa使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了tgmpa函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: x_register_theme_plugins

 function x_register_theme_plugins()
 {
     $template_directory_uri = get_template_directory_uri();
     $plugins = array(array('name' => 'X Shortcodes', 'slug' => 'x-shortcodes', 'source' => $template_directory_uri . '/framework/plugins/x-shortcodes.zip', 'required' => true, 'version' => '', 'force_activation' => true, 'force_deactivation' => false, 'external_url' => ''), array('name' => 'Slider Revolution', 'slug' => 'revslider', 'source' => $template_directory_uri . '/framework/plugins/revslider.zip', 'required' => false, 'version' => '4.3.8', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'manage_upgrade' => 'revslider/revslider.php'), array('name' => 'Visual Composer', 'slug' => 'js_composer', 'source' => $template_directory_uri . '/framework/plugins/js_composer.zip', 'required' => false, 'version' => '4.1.3', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'manage_upgrade' => 'js_composer/js_composer.php'), array('name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false), array('name' => 'Force Regenerate Thumbnails', 'slug' => 'force-regenerate-thumbnails', 'required' => true));
     $config = array('domain' => '__x__', 'default_path' => '', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => true, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', '__x__'), 'menu_title' => __('Install Plugins', '__x__'), 'installing' => __('Installing Plugin: %s', '__x__'), 'oops' => __('Something went wrong with the plugin API.', '__x__'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', '__x__'), 'plugin_activated' => __('Plugin activated successfully.', '__x__'), 'complete' => __('All plugins installed and activated successfully. %s', '__x__'), 'nag_type' => 'updated'));
     tgmpa($plugins, $config);
 }
开发者ID:Cywaithaka,项目名称:WPAN,代码行数:7,代码来源:registration.php


示例2: my_theme_register_required_plugins

function my_theme_register_required_plugins()
{
    $plugins = array(array('name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false), array('name' => 'Theme Blvd Responsive Google Maps', 'slug' => 'theme-blvd-responsive-google-maps', 'required' => false), array('name' => 'LayerSlider', 'slug' => 'LayerSlider', 'source' => get_template_directory() . '/include/plugin/tgm-plugin-activation/plugins/LayerSlider.zip', 'version' => '5.1.1', 'required' => true, 'force_activation' => false, 'force_deactivation' => true));
    $theme_text_domain = 'gdl_back_office';
    $config = array('domain' => $theme_text_domain, 'default_path' => '', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', $theme_text_domain), 'menu_title' => __('Install Plugins', $theme_text_domain), 'installing' => __('Installing Plugin: %s', $theme_text_domain), 'oops' => __('Something went wrong with the plugin API.', $theme_text_domain), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', $theme_text_domain), 'plugin_activated' => __('Plugin activated successfully.', $theme_text_domain), 'complete' => __('All plugins installed and activated successfully. %s', $theme_text_domain), 'nag_type' => 'updated'));
    tgmpa($plugins, $config);
}
开发者ID:rinkuvantage,项目名称:puyangantemples,代码行数:7,代码来源:gdl-tgm-plugin-activation.php


示例3: charity_register_required_plugins

/**
 * Charity - Vender for lib (TGM-Plugin-Activation) activation
 *  
 * @package     charity
 * @version     v.1.0
 */
function charity_register_required_plugins()
{
    $vendorPath = get_template_directory() . '/vendor/plugins/';
    $plugins = array(array('name' => 'Charity Apps', 'slug' => 'charity-apps', 'source' => $vendorPath . 'charity-apps.zip', 'required' => true, 'force_activation' => true), array('name' => 'EasyPay', 'slug' => 'easypay', 'source' => $vendorPath . 'easypay.zip', 'required' => true, 'force_activation' => true), array('name' => 'Revolution Slider', 'slug' => 'revslider', 'source' => $vendorPath . 'revslider.zip', 'required' => true, 'force_activation' => true), array('name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'source' => $vendorPath . 'contact-form-7.zip', 'required' => true), array('name' => 'Mailchimp', 'slug' => 'mailchimp-for-wp', 'source' => $vendorPath . 'mailchimp-for-wp.zip', 'required' => false), array('name' => 'Woocommerce', 'slug' => 'woocommerce', 'source' => $vendorPath . 'woocommerce.zip', 'required' => false, 'force_activation' => false), array('name' => 'Contact Form DB', 'slug' => 'contact-form-7-to-database-extension', 'source' => $vendorPath . 'contact-form-7-to-database-extension.zip', 'required' => false, 'force_activation' => false), array('name' => 'Events Manager', 'slug' => 'events-manager', 'source' => $vendorPath . 'events-manager.zip', 'required' => true, 'force_activation' => true), array('name' => 'WPBakery Visual Composer', 'slug' => 'js_composer', 'source' => $vendorPath . 'js_composer.zip', 'required' => false, 'force_activation' => false));
    $config = array('domain' => 'charity', 'default_path' => '', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'b-blog'), 'menu_title' => __('Install Plugins', 'b-blog'), 'installing' => __('Installing Plugin: %s', 'b-blog'), 'oops' => __('Something went wrong with the plugin API.', 'b-blog'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', 'b-blog'), 'plugin_activated' => __('Plugin activated successfully.', 'b-blog'), 'complete' => __('All plugins installed and activated successfully. %s', 'b-blog'), 'nag_type' => 'updated'));
    tgmpa($plugins, $config);
}
开发者ID:Angelpm28,项目名称:ong-canada,代码行数:13,代码来源:charity-tgm-settings.php


示例4: my_theme_register_required_plugins

/**
 * This function is hooked into tgmpa_init, which is fired within the
 * TGM_Plugin_Activation class constructor.
 */
function my_theme_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(array('name' => 'Simple Page Ordering', 'slug' => 'simple-page-ordering', 'required' => false), array('name' => 'Custom Taxonomy Sort', 'slug' => 'custom-taxonomy-sort', 'required' => false));
    // Change this to your theme text domain, used for internationalising strings
    $theme_text_domain = 'gxg_textdomain';
    /**
     * Array of configuration settings. Amend each line as needed.
     * If you want the default strings to be available under your own theme domain,
     * leave the strings uncommented.
     * Some of the strings are added into a sprintf, so see the comments at the
     * end of each line for what each argument will be.
     */
    $config = array('domain' => $theme_text_domain, 'default_path' => dirname(__FILE__) . '/plugins/', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', $theme_text_domain), 'menu_title' => __('Install Plugins', $theme_text_domain), 'installing' => __('Installing Plugin: %s', $theme_text_domain), 'oops' => __('Something went wrong with the plugin API.', $theme_text_domain), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', $theme_text_domain), 'plugin_activated' => __('Plugin activated successfully.', $theme_text_domain), 'complete' => __('All plugins installed and activated successfully. %s', $theme_text_domain), 'nag_type' => 'updated'));
    tgmpa($plugins, $config);
}
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:31,代码来源:tgm-activation.php


示例5: porto_register_required_plugins

function porto_register_required_plugins()
{
    // disable visual composer automatic update
    global $vc_manager;
    if ($vc_manager) {
        $vc_updater = $vc_manager->updater();
        if ($vc_updater) {
            remove_filter('upgrader_pre_download', array(&$vc_updater, 'upgradeFilterFromEnvato'));
            remove_filter('upgrader_pre_download', array(&$vc_updater, 'preUpgradeFilter'));
        }
    }
    // get master slider download url
    add_filter('axiom_plugin_updater_custom_package_download_url', 'porto_axiom_plugin_updater_custom_package_download_url');
    /**
     * 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(array('name' => 'WPBakery Visual Composer', 'slug' => 'js_composer', 'source' => porto_plugins . '/js_composer.zip', 'required' => true, 'version' => '4.9.2'), array('name' => 'Ultimate Addons for Visual Composer', 'slug' => 'Ultimate_VC_Addons', 'source' => porto_plugins . '/Ultimate_VC_Addons.zip', 'required' => true, 'version' => '3.15.0'), array('name' => 'Porto Shortcodes', 'slug' => 'porto-shortcodes', 'source' => porto_plugins . '/porto-shortcodes.zip', 'required' => true, 'version' => '1.4'), array('name' => 'Porto Widgets', 'slug' => 'porto-widgets', 'source' => porto_plugins . '/porto-widgets.zip', 'required' => true, 'version' => '1.2'), array('name' => 'Porto Content Types', 'slug' => 'porto-content-types', 'source' => porto_plugins . '/porto-content-types.zip', 'required' => true, 'version' => '1.2.2'), array('name' => 'Dynamic Featured Image', 'slug' => 'dynamic-featured-image', 'required' => true), array('name' => 'Master Slider', 'slug' => 'masterslider', 'source' => porto_plugins . '/masterslider.zip', 'required' => true, 'version' => '2.26.0'), array('name' => 'Woocommerce', 'slug' => 'woocommerce', 'required' => true), array('name' => 'Regenerate Thumbnails', 'slug' => 'regenerate-thumbnails', 'required' => true), array('name' => 'Contact Form 7', 'slug' => 'contact-form-7', 'required' => false), array('name' => 'Really Simple CAPTCHA', 'slug' => 'really-simple-captcha', 'required' => false), array('name' => 'WP Sitemap Page', 'slug' => 'wp-sitemap-page', 'required' => false), array('name' => 'Post Type Archive Link', 'slug' => 'post-type-archive-links', 'required' => false), array('name' => 'MailPoet Newsletters', 'slug' => 'wysija-newsletters', 'required' => false), array('name' => 'Envato Toolkit', 'slug' => 'envato-wordpress-toolkit', 'source' => porto_plugins . '/envato-wordpress-toolkit.zip', 'required' => false, 'version' => '1.7.3'));
    if (class_exists('WooCommerce')) {
        $plugins = array_merge(array(array('name' => 'Yith Woocommerce Wishlist', 'slug' => 'yith-woocommerce-wishlist', 'required' => false), array('name' => 'Yith Woocommerce Ajax Navigation', 'slug' => 'yith-woocommerce-ajax-navigation', 'required' => false), array('name' => 'Yith Woocommerce Ajax Search', 'slug' => 'yith-woocommerce-ajax-search', 'required' => false)), $plugins);
    }
    if (defined('GEODIRECTORY_VERSION')) {
        $plugins = array_merge(array(array('name' => 'GeoDirectory Porto Theme Compatibility Pack', 'slug' => 'geodirectory-porto-theme-compatibility-pack', 'source' => porto_plugins . '/geodirectory-porto-theme-compatibility-pack.zip', 'required' => true, 'version' => '1.0.0')), $plugins);
    }
    /**
     * Array of configuration settings. Amend each line as needed.
     * If you want the default strings to be available under your own theme domain,
     * leave the strings uncommented.
     * Some of the strings are added into a sprintf, so see the comments at the
     * end of each line for what each argument will be.
     */
    $config = array('domain' => 'porto', 'default_path' => '', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'porto'), 'menu_title' => __('Install Plugins', 'porto'), 'installing' => __('Installing Plugin: %s', 'porto'), 'oops' => __('Something went wrong with the plugin API.', 'porto'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', 'porto'), 'plugin_activated' => __('Plugin activated successfully.', 'porto'), 'complete' => __('All plugins installed and activated successfully. %s', 'porto'), 'nag_type' => 'updated'));
    tgmpa($plugins, $config);
}
开发者ID:booklein,项目名称:wpbookle,代码行数:34,代码来源:plugins.php


示例6: register_required_plugins

 /**
  * Register the required plugins for The "Google Analytics Top Content" plugin.
  */
 public function register_required_plugins()
 {
     $plugins = array(array('name' => 'Google Analytics by Yoast', 'slug' => 'google-analytics-for-wordpress', 'required' => true));
     $widgets_url = '<a href="' . get_admin_url('', 'widgets.php') . '" title="' . __('Setup Widget', 'top-google-posts') . '">' . __('Setup Widget', 'top-google-posts') . '</a>';
     $config = array('domain' => 'top-google-posts', 'default_path' => '', 'parent_slug' => 'plugins.php', 'capability' => 'install_plugins', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => true, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'top-google-posts'), 'menu_title' => __('Install Plugins', 'top-google-posts'), 'installing' => __('Installing Plugin: %s', 'top-google-posts'), 'oops' => __('Something went wrong with the plugin API.', 'top-google-posts'), 'notice_can_install_required' => _n_noop('The "Google Analytics Top Content" plugin requires the following plugin: %1$s.', 'This plugin requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This plugin recommends the following plugin: %1$s.', 'This plugin recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), 'notice_ask_to_update' => _n_noop('The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this plugin: %1$s.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', 'top-google-posts'), 'plugin_activated' => __('Plugin activated successfully.', 'top-google-posts'), 'complete' => __('All plugins installed and activated successfully. %s', 'top-google-posts')));
     tgmpa($plugins, $config);
 }
开发者ID:pmtarantino,项目名称:Google-Analytics-Top-Content-Widget,代码行数:10,代码来源:class-ga-top-content.php


示例7: quidus_register_required_plugins

function quidus_register_required_plugins()
{
    $plugins = array(array('name' => 'Kirki - Advanced Wordpress Customizer', 'slug' => 'Kirki', 'source' => 'https://downloads.wordpress.org/plugin/kirki.0.8.4.zip', 'required' => true, 'external_url' => '', 'force_activation' => false, 'force_deactivation' => true), array('name' => 'Contact Form 7', 'slug' => 'Contact Form 7', 'source' => 'https://downloads.wordpress.org/plugin/contact-form-7.4.1.2.zip', 'required' => false, 'external_url' => '', 'force_activation' => false, 'force_deactivation' => true), array('name' => 'Shortcodes Ultimate', 'slug' => 'Shortcodes Ultimate', 'source' => 'https://downloads.wordpress.org/plugin/shortcodes-ultimate.zip', 'required' => false, 'external_url' => '', 'force_activation' => false, 'force_deactivation' => true));
    $theme_text_domain = 'quidus';
    $config = array('domain' => 'quidus', 'default_path' => '', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'dismissable' => true, 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'quidus'), 'menu_title' => __('Install Plugins', 'quidus'), 'installing' => __('Installing Plugin: %s', 'quidus'), 'oops' => __('Something went wrong with the plugin API.', 'quidus'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'quidus'), 'notice_can_install_recommended' => _n_noop('This theme comes packaged with the following premium plugin: %1$s. enjoy:)', 'This theme comes packaged with the following premium plugin: %1$s. enjoy:)', 'quidus'), '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.', 'quidus'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'quidus'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'quidus'), '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.', 'quidus'), '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.', 'quidus'), '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.', 'quidus'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins', 'quidus'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins', 'quidus'), 'return' => __('Return to Required Plugins Installer', 'quidus'), 'plugin_activated' => __('Plugin activated successfully.', 'quidus'), 'complete' => __('All plugins installed and activated successfully. %s', 'quidus'), 'nag_type' => 'updated'));
    tgmpa($plugins, $config);
}
开发者ID:Kovaloff,项目名称:katyparit,代码行数:7,代码来源:quidus-tgm-activate.php


示例8: x_register_theme_plugins

 function x_register_theme_plugins()
 {
     //
     // Bundled plugins.
     //
     $bundled = array('cornerstone' => array('name' => 'Cornerstone', 'slug' => 'cornerstone', 'source' => X_TEMPLATE_URL . '/framework/plugins/cornerstone.zip', 'required' => true, 'version' => '', 'force_activation' => true, 'force_deactivation' => false, 'external_url' => '', 'x_plugin' => 'cornerstone/cornerstone.php', 'x_author' => 'Themeco', 'x_description' => 'This plugin is required to run X. It provides a front end page editor and all the shortcodes used in X.', 'x_logo' => '//theme.co/media/x_extensions/200-200-no-title-cornerstone.png', 'x_manage_upgrade' => false), 'revslider' => array('name' => 'Slider Revolution', 'slug' => 'revslider', 'source' => X_TEMPLATE_URL . '/framework/plugins/revslider.zip', 'required' => false, 'version' => '4.6.93', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'x_plugin' => 'revslider/revslider.php', 'x_author' => 'ThemePunch', 'x_description' => 'Create responsive sliders with must-see-effects, all while maintaining your search engine optimization.', 'x_logo' => '//theme.co/media/x_extensions/200-200-no-title-slider-revolution.png', 'x_manage_upgrade' => true), 'js_composer' => array('name' => 'Visual Composer', 'slug' => 'js_composer', 'source' => X_TEMPLATE_URL . '/framework/plugins/js_composer.zip', 'required' => false, 'version' => '4.5.3', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => '', 'x_plugin' => 'js_composer/js_composer.php', 'x_author' => 'WPBakery', 'x_description' => 'We recommend using <a href="//theme.co/cornerstone/" title="Cornerstone" target="_blank">Cornerstone</a> for page building in X as it is built and managed by Themeco; however, Visual Composer is an alternate choice.', 'x_logo' => '//theme.co/media/x_extensions/200-200-no-title-visual-composer.png', 'x_manage_upgrade' => true));
     //
     // Remote plugins.
     //
     $extensions = array();
     $addons = X_Update_API::get_cached_addons();
     if (is_array($addons) && !isset($addons['error'])) {
         foreach ($addons as $ext => $data) {
             $data['force_activation'] = $data['force_activation'] == 'on' ? true : false;
             $data['force_deactivation'] = $data['force_deactivation'] == 'on' ? true : false;
             $extensions[$ext] = array('name' => $data['title'], 'slug' => $data['slug'], 'source' => $data['download_url'], 'required' => false, 'version' => $data['latest_version'], 'force_activation' => $data['force_activation'], 'force_deactivation' => false, 'external_url' => '', 'x_plugin' => $data['plugin_file'], 'x_author' => $data['author'], 'x_description' => $data['description'], 'x_logo' => $data['logo_url'], 'x_manage_upgrade' => false);
         }
     }
     //
     // Merge bundled and remote plugins.
     //
     $plugins = array_merge($bundled, $extensions);
     //
     // TMG configuration.
     //
     $config = array('domain' => '__x__', 'default_path' => 'tgmpa-install-plugins', 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => true, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', '__x__'), 'menu_title' => __('Install Plugins', '__x__'), 'installing' => __('Installing Plugin: %s', '__x__'), 'oops' => __('Something went wrong with the plugin API.', '__x__'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', '__x__'), 'plugin_activated' => __('Plugin activated successfully.', '__x__'), 'complete' => __('All plugins installed and activated successfully. %s', '__x__'), 'nag_type' => 'updated'));
     tgmpa($plugins, $config);
 }
开发者ID:saparhadi,项目名称:morowaliweb,代码行数:28,代码来源:registration.php


示例9: jogja_include_necessary_plugins

function jogja_include_necessary_plugins()
{
    $plugins = array(array('name' => 'Regenerate Thumbnails', 'slug' => 'regenerate-thumbnails', 'required' => false), array('name' => 'Widget Import / Export', 'slug' => 'widget-importer-exporter', 'required' => false), array('name' => 'Ninja Forms', 'slug' => 'ninja-forms', 'required' => false), array('name' => 'MailChimp for WordPress', 'slug' => 'mailchimp-for-wp', 'required' => false), array('name' => 'WooCommerce', 'slug' => 'woocommerce', 'required' => false));
    $theme_text_domain = 'jogja';
    $config = array('domain' => $theme_text_domain, 'default_path' => '', 'menu' => 'jogja-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => false, 'message' => '');
    tgmpa($plugins, $config);
}
开发者ID:alispx,项目名称:jogja-starter,代码行数:7,代码来源:plugins-config.php


示例10: _actionRegisterRequiredPlugins

 /**
  * Register the required plugins for this theme.
  *
  * In this example, we register two plugins - one included with the TGMPA library
  * and one from the .org repo.
  *
  * The variable passed to tgmpa_register_plugins() should be an array of plugin
  * arrays.
  *
  * This function is hooked into tgmpa_init, which is fired within the
  * TGM_Plugin_Activation class constructor.
  */
 public function _actionRegisterRequiredPlugins()
 {
     $pluginsConfigData = Configure::read('Data.externalPlugins');
     /**
      * 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();
     foreach ($pluginsConfigData as $pluginConfigData) {
         // $pluginConfigData['source'] = GUMM_EXTERNAL_PLUGINS . $pluginConfigData['file'];
         $pluginConfigData['source'] = $pluginConfigData['file'];
         unset($pluginConfigData['file']);
         $pluginData = array_merge(array('name' => '', 'slug' => '', 'source' => '', 'required' => true, 'force_activation' => false, 'force_deactivation' => false), $pluginConfigData);
         // if ($pluginData['name'] && $pluginData['slug'] && $pluginData['source'] && is_file($pluginData['source'])) {
         if ($pluginData['name'] && $pluginData['slug'] && $pluginData['source']) {
             $plugins[] = $pluginData;
         }
     }
     /**
      * Array of configuration settings. Amend each line as needed.
      * If you want the default strings to be available under your own theme domain,
      * leave the strings uncommented.
      * Some of the strings are added into a sprintf, so see the comments at the
      * end of each line for what each argument will be.
      */
     $config = array('domain' => 'gummfw', 'default_path' => GUMM_EXTERNAL_PLUGINS, 'parent_menu_slug' => 'themes.php', 'parent_url_slug' => 'themes.php', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', 'gummfw'), 'menu_title' => __('Install Plugins', 'gummfw'), 'installing' => __('Installing Plugin: %s', 'gummfw'), 'oops' => __('Something went wrong with the plugin API.', 'gummfw'), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing plugin', 'Begin installing plugins'), 'activate_link' => _n_noop('Activate installed plugin', 'Activate installed plugins'), 'return' => __('Return to Required Plugins Installer', 'gummfw'), 'plugin_activated' => __('Plugin activated successfully.', 'gummfw'), 'complete' => __('All plugins installed and activated successfully. %s', 'gummfw')));
     tgmpa($plugins, $config);
 }
开发者ID:nikolaskarica,项目名称:bds-alliance,代码行数:40,代码来源:TgmPluginActivation.php


示例11: largo_register_required_plugins

/**
 * Register the required plugins for this theme.
 *
 * In this example, we register two plugins - one included with the TGMPA library
 * and one from the .org repo.
 *
 * The variable passed to tgmpa_register_plugins() should be an array of plugin
 * arrays.
 *
 * This function is hooked into tgmpa_init, which is fired within the
 * TGM_Plugin_Activation class constructor.
 */
function largo_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(array('name' => 'Link Roundups', 'slug' => 'link-roundups', 'source' => 'https://github.com/INN/link-roundups/archive/master.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => 'https://github.com/INN/link-roundups'), array('name' => 'Documentcloud', 'slug' => 'documentcloud', 'source' => 'https://github.com/documentcloud/wordpress-documentcloud/archive/master.zip', 'required' => false, 'version' => '', 'force_activation' => false, 'force_deactivation' => false, 'external_url' => 'https://github.com/documentcloud/wordpress-documentcloud'), array('name' => 'Disqus Comment System', 'slug' => 'disqus-comment-system', 'required' => false), array('name' => 'Better WordPress Google XML Sitemaps', 'slug' => 'bwp-google-xml-sitemaps', 'required' => false), array('name' => 'W3 Total Cache', 'slug' => 'w3-total-cache', 'required' => false), array('name' => 'Edit Flow', 'slug' => 'edit-flow', 'required' => false), array('name' => 'Co-Authors Plus', 'slug' => 'co-authors-plus', 'required' => false));
    // Change this to your theme text domain, used for internationalising strings
    $theme_text_domain = 'largo';
    /**
     * Array of configuration settings. Amend each line as needed.
     * If you want the default strings to be available under your own theme domain,
     * leave the strings uncommented.
     * Some of the strings are added into a sprintf, so see the comments at the
     * end of each line for what each argument will be.
     */
    $config = array('domain' => $theme_text_domain, 'default_path' => '', 'parent_slug' => 'themes.php', 'capability' => 'edit_theme_options', 'menu' => 'install-required-plugins', 'has_notices' => true, 'is_automatic' => false, 'message' => '', 'strings' => array('page_title' => __('Install Required Plugins', $theme_text_domain), 'menu_title' => __('Install Plugins', $theme_text_domain), 'installing' => __('Installing Plugin: %s', $theme_text_domain), 'oops' => __('Something went wrong with the plugin API.', $theme_text_domain), 'notice_can_install_required' => _n_noop('This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.'), 'notice_can_install_recommended' => _n_noop('This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.'), '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.'), 'notice_can_activate_required' => _n_noop('The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.'), 'notice_can_activate_recommended' => _n_noop('The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.'), '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.'), '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.'), '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.'), 'install_link' => _n_noop('Begin installing p 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP th函数代码示例发布时间:2022-05-23
下一篇:
PHP tgltgl函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap