本文整理汇总了PHP中Bulk_Upgrader_Skin类的典型用法代码示例。如果您正苦于以下问题:PHP Bulk_Upgrader_Skin类的具体用法?PHP Bulk_Upgrader_Skin怎么用?PHP Bulk_Upgrader_Skin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Bulk_Upgrader_Skin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: after_flush_output
/**
* Flush footer output buffer and iterate $this->i to make sure the
* installation strings reference the correct plugin.
*
* @since 2.2.0
* @deprecated 2.5.0 use {@see Bulk_Upgrader_Skin::flush_output()} instead
* @see Bulk_Upgrader_Skin::flush_output()
*/
public function after_flush_output()
{
_deprecated_function(__FUNCTION__, 'TGMPA 2.5.0', 'Bulk_Upgrader_Skin::flush_output()');
parent::flush_output();
$this->i++;
}
开发者ID:hathbanger,项目名称:squab,代码行数:14,代码来源:tgmpa.class.php
示例2: after
function after($title = '')
{
Bulk_Upgrader_Skin::after($this->pk_name);
}
开发者ID:pinchpointer,项目名称:ppsitewordpress,代码行数:4,代码来源:UPGRADER.php
示例3: array
function bulk_footer()
{
parent::bulk_footer();
$update_actions = array('themes_page' => '<a href="' . self_admin_url('themes.php') . '" title="' . esc_attr__('Go to themes page', 'framework') . '" target="_parent">' . __('Return to Themes page', 'framework') . '</a>', 'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" title="' . esc_attr__('Go to WordPress Updates page', 'framework') . '" target="_parent">' . __('Return to WordPress Updates', 'framework') . '</a>');
if (!current_user_can('switch_themes') && !current_user_can('edit_theme_options')) {
unset($update_actions['themes_page']);
}
$update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info);
if (!empty($update_actions)) {
$this->feedback(implode(' | ', (array) $update_actions));
}
}
开发者ID:bangtienmanh,项目名称:Runway-Framework,代码行数:12,代码来源:extension_upgrader.php
示例4: bulk_footer
/**
* @access public
*/
public function bulk_footer()
{
parent::bulk_footer();
$update_actions = array('plugins_page' => '<a href="' . self_admin_url('plugins.php') . '" target="_parent">' . __('Return to Plugins page') . '</a>', 'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" target="_parent">' . __('Return to WordPress Updates page') . '</a>');
if (!current_user_can('activate_plugins')) {
unset($update_actions['plugins_page']);
}
/**
* Filters the list of action links available following bulk plugin updates.
*
* @since 3.0.0
*
* @param array $update_actions Array of plugin action links.
* @param array $plugin_info Array of information for the last-updated plugin.
*/
$update_actions = apply_filters('update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info);
if (!empty($update_actions)) {
$this->feedback(implode(' | ', (array) $update_actions));
}
}
开发者ID:pbearne,项目名称:contrib2core,代码行数:23,代码来源:class-bulk-plugin-upgrader-skin.php
示例5: bulk_footer
/**
* @access public
*/
public function bulk_footer()
{
parent::bulk_footer();
$update_actions = array('themes_page' => '<a href="' . self_admin_url('themes.php') . '" target="_parent">' . __('Return to Themes page') . '</a>', 'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" target="_parent">' . __('Return to WordPress Updates page') . '</a>');
if (!current_user_can('switch_themes') && !current_user_can('edit_theme_options')) {
unset($update_actions['themes_page']);
}
/**
* Filter the list of action links available following bulk theme updates.
*
* @since 3.0.0
*
* @param array $update_actions Array of theme action links.
* @param array $theme_info Array of information for the last-updated theme.
*/
$update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info);
if (!empty($update_actions)) {
$this->feedback(implode(' | ', (array) $update_actions));
}
}
开发者ID:qaryas,项目名称:qaryas_site,代码行数:23,代码来源:class-bulk-theme-upgrader-skin.php
示例6: bulk_footer
/**
* Outputs links after bulk plugin installation is complete.
*
* @since 2.2.0
*/
public function bulk_footer()
{
// Serve up the string to say installations (and possibly activations) are complete.
parent::bulk_footer();
// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
wp_clean_plugins_cache();
$this->tgmpa->show_tgmpa_version();
// Display message based on if all plugins are now active or not.
$update_actions = array();
if ($this->tgmpa->is_tgmpa_complete()) {
// All plugins are active, so we display the complete string and hide the menu to protect users.
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
$update_actions['dashboard'] = sprintf(esc_html($this->tgmpa->strings['complete']), '<a href="' . esc_url(self_admin_url()) . '">' . esc_html__('Return to the Dashboard', 'tgmpa') . '</a>');
} else {
$update_actions['tgmpa_page'] = '<a href="' . esc_url($this->tgmpa->get_tgmpa_url()) . '" target="_parent">' . esc_html($this->tgmpa->strings['return']) . '</a>';
}
/**
* Filter the list of action links available following bulk plugin installs/updates.
*
* @since 2.5.0
*
* @param array $update_actions Array of plugin action links.
* @param array $plugin_info Array of information for the last-handled plugin.
*/
$update_actions = apply_filters('tgmpa_update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info);
if (!empty($update_actions)) {
$this->feedback(implode(' | ', (array) $update_actions));
}
}
开发者ID:GvarimAZA,项目名称:website,代码行数:34,代码来源:class-tgm-plugin-activation.php
示例7: bulk_footer
/**
* Outputs links after bulk plugin installation is complete.
*
* @since 2.2.0
*/
public function bulk_footer()
{
// Serve up the string to say installations (and possibly activations) are complete.
parent::bulk_footer();
// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
wp_cache_flush();
// Display message based on if all plugins are now active or not.
$complete = array();
foreach ($this->tgmpa->plugins as $plugin) {
if (!is_plugin_active($plugin['file_path'])) {
echo '<p><a href="', esc_url(add_query_arg('page', $this->tgmpa->menu, self_admin_url($this->tgmpa->parent_slug))), '" target="_parent">', esc_html($this->tgmpa->strings['return']), '</a></p>';
$complete[] = $plugin;
break;
} else {
$complete[] = '';
}
}
// Filter out any empty entries.
$complete = array_filter($complete);
// All plugins are active, so we display the complete string and hide the menu to protect users.
if (empty($complete)) {
echo '<p>', sprintf(esc_html($this->tgmpa->strings['complete']), '<a href="' . esc_url(self_admin_url()) . '">' . esc_html__('Return to the Dashboard', 'tgmpa') . '</a>'), '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
}
}
开发者ID:luxifel,项目名称:Bionerd,代码行数:30,代码来源:td-old-class-tgm-plugin-activation.php
示例8: bulk_footer
/**
* Outputs links after bulk plugin installation is complete.
*
* @since 2.2.0
*/
public function bulk_footer()
{
/** Serve up the string to say installations (and possibly activations) are complete */
parent::bulk_footer();
/** Flush plugins cache so we can make sure that the installed plugins list is always up to date */
wp_cache_flush();
/** Display message based on if all plugins are now active or not */
$complete = array();
foreach (TGM_Plugin_Activation::$instance->plugins as $plugin) {
if (!is_plugin_active($plugin['file_path'])) {
echo '<p><a href="' . add_query_arg('page', TGM_Plugin_Activation::$instance->menu, admin_url(TGM_Plugin_Activation::$instance->parent_url_slug)) . '" title="' . esc_attr(TGM_Plugin_Activation::$instance->strings['return']) . '" target="_parent">' . __(TGM_Plugin_Activation::$instance->strings['return'], TGM_Plugin_Activation::$instance->domain) . '</a></p>';
$complete[] = $plugin;
break;
} else {
$complete[] = '';
}
}
/** Filter out any empty entries */
$complete = array_filter($complete);
/** All plugins are active, so we display the complete string and hide the menu to protect users */
if (empty($complete)) {
echo '<p>' . sprintf(TGM_Plugin_Activation::$instance->strings['complete'], '<a href="' . admin_url() . '" title="' . __('Return to the Dashboard', TGM_Plugin_Activation::$instance->domain) . '">' . __('Return to the Dashboard', TGM_Plugin_Activation::$instance->domain) . '</a>') . '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
}
}
开发者ID:terngkub,项目名称:wordpress-theme-okfn,代码行数:30,代码来源:class-tgm-plugin-activation.php
示例9: array
function bulk_footer()
{
parent::bulk_footer();
$update_actions = array('themes_page' => '<a href="' . admin_url('themes.php') . '" title="' . esc_attr__('Goto themes page') . '" target="_parent">' . __('Return to Themes page') . '</a>', 'updates_page' => '<a href="' . admin_url('update-core.php') . '" title="' . esc_attr__('Goto WordPress Updates page') . '" target="_parent">' . __('Return to WordPress Updates') . '</a>');
$update_actions = apply_filters('update_bulk_theme_complete_actions', $update_actions, $this->theme_info);
if (!empty($update_actions)) {
$this->feedback('<strong>' . __('Actions:') . '</strong> ' . implode(' | ', (array) $update_actions));
}
}
开发者ID:laiello,项目名称:cartonbank,代码行数:9,代码来源:class-wp-upgrader.php
示例10: bulk_footer
/**
* Outputs links after bulk plugin installation is complete.
*
* @since 2.2.0
*/
public function bulk_footer()
{
// Serve up the string to say installations (and possibly activations) are complete.
parent::bulk_footer();
// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
wp_cache_flush();
// Display message based on if all plugins are now active or not.
$complete = array();
foreach (HW_TGM_Module_Activation::$instance->plugins as $plugin) {
if (!hw_is_active_module($plugin['file_path'])) {
echo '<p><a href="' . esc_url(add_query_arg('page', urlencode(HW_TGM_Module_Activation::$instance->menu), network_admin_url('admin.php'))) . '" title="' . esc_attr(HW_TGM_Module_Activation::$instance->strings['return']) . '" target="_parent">' . HW_TGM_Module_Activation::$instance->strings['return'] . '</a></p>';
$complete[] = $plugin;
break;
} else {
$complete[] = '';
}
}
// Filter out any empty entries.
$complete = array_filter($complete);
// All plugins are active, so we display the complete string and hide the menu to protect users.
if (empty($complete)) {
echo '<p>' . sprintf(HW_TGM_Module_Activation::$instance->strings['complete'], '<a href="' . esc_url(network_admin_url()) . '" title="' . esc_attr__('Return to the Dashboard', 'tgmpa') . '">' . __('Return to the Dashboard', 'tgmpa') . '</a>') . '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
}
}
开发者ID:hoangsoft90,项目名称:hw-hoangweb-plugin,代码行数:30,代码来源:class-tgm-hw-private-plugin-activation.php
示例11: bulk_footer
/**
* Outputs links after bulk plugin installation is complete.
*
* @since 2.2.0
*/
public function bulk_footer()
{
// Serve up the string to say installations (and possibly activations) are complete.
parent::bulk_footer();
// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
wp_cache_flush();
// Display message based on if all plugins are now active or not.
$complete = array();
foreach (TGM_Plugin_Activation::$instance->plugins as $plugin) {
lbmn_debug_console($plugin);
lbmn_debug_console($plugin['file_path']);
lbmn_debug_console(is_plugin_active($plugin['file_path']));
// fresh-favicon plugin has a strange bug, so ignore it
if ($plugin['file_path'] != 'fresh-favicon') {
if (!is_plugin_active($plugin['file_path'])) {
lbmn_debug_console('bulk_footer() >> ! is_plugin_active ');
echo '<p><a href="' . add_query_arg('page', TGM_Plugin_Activation::$instance->menu, admin_url('themes.php')) . '" title="' . esc_attr(TGM_Plugin_Activation::$instance->strings['return']) . '" target="_parent">' . TGM_Plugin_Activation::$instance->strings['return'] . '</a></p>';
$complete[] = $plugin;
break;
}
} else {
$complete[] = '';
}
}
// Filter out any empty entries.
$complete = array_filter($complete);
// All plugins are active, so we display the complete string and hide the menu to protect users.
if (empty($complete)) {
lbmn_debug_console('bulk_footer >> empty( $complete )');
// echo '<p>' . sprintf( TGM_Plugin_Activation::$instance->strings['complete'], '<a href="' . admin_url() . '" title="' . __( 'Return to the Dashboard', 'tgmpa' ) . '">' . __( 'Return to the Dashboard', 'tgmpa' ) . '</a>' ) . '</p>';
// echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
// Lumberman: add theme options flag
echo '<p>' . sprintf(TGM_Plugin_Activation::$instance->strings['complete'], '<a href="' . admin_url('themes.php') . '" title="' . __('Return to Themes', THEMENAME) . '">' . __('Return to Themes', THEMENAME) . '</a>') . '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
echo '<script type="text/javascript">window.parent.pluginsInstalledSuccessfully(); jQuery(".lumberman-message.quick-setup .step-plugins").addClass("step-completed");</script>';
update_option(LBMN_THEME_NAME . '_required_plugins_installed', true);
} else {
echo '<script type="text/javascript">window.parent.pluginsInstallFailed();</script>';
}
}
开发者ID:shimion,项目名称:localinsurance-theme,代码行数:45,代码来源:class-tgmpa.php
示例12: bulk_footer
public function bulk_footer()
{
parent::bulk_footer();
wp_cache_flush();
$complete = array();
foreach (TGM_Plugin_Activation::$instance->plugins as $plugin) {
if (!is_plugin_active($plugin['file_path'])) {
echo '<p><a href="' . esc_url(add_query_arg('page', urlencode(TGM_Plugin_Activation::$instance->menu), network_admin_url('themes.php'))) . '" title="' . esc_attr(TGM_Plugin_Activation::$instance->strings['return']) . '" target="_parent">' . TGM_Plugin_Activation::$instance->strings['return'] . '</a></p>';
$complete[] = $plugin;
break;
} else {
$complete[] = '';
}
}
$complete = array_filter($complete);
if (empty($complete)) {
echo '<p>' . sprintf(TGM_Plugin_Activation::$instance->strings['complete'], '<a href="' . esc_url(network_admin_url()) . '" title="' . esc_attr__('Return to the Dashboard', 'tgmpa') . '">' . __('Return to the Dashboard', 'tgmpa') . '</a>') . '</p>';
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
}
}
开发者ID:morovan,项目名称:granitpiestany.sk,代码行数:20,代码来源:class-tgm-plugin-activation.php
示例13: array
function bulk_footer()
{
parent::bulk_footer();
$update_actions = array('plugins_page' => '<a href="' . admin_url('admin.php?page=simple-press/admin/panel-themes/spa-themes.php') . '" title="' . spa_text('Go to SP themes page') . '" target="_parent">' . spa_text('Go to SP themes page') . '</a>', 'updates_page' => '<a href="' . self_admin_url('update-core.php') . '" title="' . spa_text('Go to WordPress updates page') . '" target="_parent">' . spa_text('Return to WordPress updates') . '</a>');
$update_actions = apply_filters('sph_update_bulk_themes_complete_actions', $update_actions, $this->theme_info);
if (!empty($update_actions)) {
$this->feedback(implode(' | ', (array) $update_actions));
}
}
开发者ID:brooklyntri,项目名称:btc-plugins,代码行数:9,代码来源:spa-admin-updater-class.php
示例14: after
function after()
{
parent::after($this->theme_info['Name']);
}
开发者ID:beaucollins,项目名称:wp,代码行数:4,代码来源:class-wp-upgrader.php
示例15: bulk_footer
/**
* Outputs links after bulk plugin installation is complete.
*
* @since 2.2.0
*/
public function bulk_footer()
{
// Serve up the string to say installations (and possibly activations) are complete.
parent::bulk_footer();
// Flush plugins cache so we can make sure that the installed plugins list is always up to date.
wp_clean_plugins_cache();
$this->tgmpa->show_tgmpa_version();
// Display message based on if all plugins are now active or not.
$update_actions = array();
if ($this->tgmpa->is_tgmpa_complete()) {
// All plugins are active, so we display the complete string and hide the menu to protect users.
echo '<style type="text/css">#adminmenu .wp-submenu li.current { display: none !important; }</style>';
$update_actions['dashboard'] = sprintf(esc_html($this->tgmpa->strings['complete']), '<br/><br/><a href="' . esc_url(self_admin_url('themes.php')) . '" class="button button-primary button-hero">' . esc_html__('Return to the Theme Installation screen', 'tgmpa') . '</a>');
echo '<a name="plugins-install-completed" id="plugins-install-completed"></a>';
echo '<script type="text/javascript">jQuery(".lumberman-message.quick-setup").hide(); jQuery("html, body").animate({ scrollTop: jQuery("#plugins-install-completed").offset().top }, 1000);</script>';
} else {
$update_actions['tgmpa_page'] = '<a href="' . esc_url($this->tgmpa->get_tgmpa_url()) . '" target="_parent" class="button button-primary button-hero">' . esc_html($this->tgmpa->strings['return']) . '</a>';
}
/**
* Filter the list of action links available following bulk plugin installs/updates.
*
* @since 2.5.0
*
* @param array $update_actions Array of plugin action links.
* @param array $plugin_info Array of information for the last-handled plugin.
*/
$update_actions = apply_filters('tgmpa_update_bulk_plugins_complete_actions', $update_actions, $this->plugin_info);
if (!empty($update_actions)) {
$this->feedback(implode(' | ', (array) $update_actions));
}
}
开发者ID:yddninja,项目名称:cmsit-seo,代码行数:36,代码来源:class-tgmpa.php
注:本文中的Bulk_Upgrader_Skin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论