echo '<a href="' . admin_url('admin.php?page=ac-status&tab=' . $name) . '" class="nav-tab '; if ($current_tab == $name) { echo 'nav-tab-active'; } echo '">' . $label . '</a>'; } ?> </nav> <h1 class="screen-reader-text"><?php echo esc_html($tabs[$current_tab]); ?> </h1> <?php switch ($current_tab) { case 'tools': AC_Admin_Status::status_tools(); break; case 'logs': AC_Admin_Status::status_logs(); break; default: if (array_key_exists($current_tab, $tabs) && has_action('axiscomposer_admin_status_content_' . $current_tab)) { do_action('axiscomposer_admin_status_content_' . $current_tab); } else { AC_Admin_Status::status_report(); } break; } ?> </div>
/** * Init the status page. */ public function status_page() { AC_Admin_Status::output(); }
_e('Child theme', 'axiscomposer'); ?> :</td> <td class="help"><?php echo ac_help_tip(__('Displays whether or not the current theme is a child theme.', 'axiscomposer')); ?> </td> <td><?php echo is_child_theme() ? '<mark class="yes"><span class="dashicons dashicons-yes"></span></mark>' : '<span class="dashicons dashicons-no-alt"></span> – ' . sprintf(__('If you\'re modifying AxisComposer on a parent theme you didn\'t build personally, then we recommend using a child theme. See: <a href="%s" target="_blank">How to create a child theme</a>', 'axiscomposer'), 'https://codex.wordpress.org/Child_Themes'); ?> </td> </tr> <?php if (is_child_theme()) { $parent_theme = wp_get_theme($active_theme->Template); $update_theme_version = AC_Admin_Status::get_latest_theme_version($parent_theme); ?> <tr> <td data-export-label="Parent Theme Name"><?php _e('Parent theme name', 'axiscomposer'); ?> :</td> <td class="help"><?php echo ac_help_tip(__('The name of the parent theme.', 'axiscomposer')); ?> </td> <td><?php echo esc_html($parent_theme->Name); ?> </td> </tr>