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)); } }
/** * @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)); } }
/** * @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)); } }
/** * 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)); } }
/** * 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>'; } }
/** * 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>'; } }
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)); } }
/** * 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++; }
/** * 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>'; } }
/** * 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>'; } }
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>'; } }
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)); } }
function after() { parent::after($this->theme_info['Name']); }
function after($title = '') { Bulk_Upgrader_Skin::after($this->pk_name); }
/** * 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)); } }