/**
         * The admin central page.
         */
        public static function central_page()
        {
            /**
             * Filter tabs.
             * Returning array.
             * @since 1.6.6
             *
             * @param array $tabs Array of tabs.
             * @param string $link_template The link template.
             */
            $tabs = apply_filters('wpglobus_admin_central_tabs', self::set_tabs(), self::$link_template);
            WPGlobus_Admin_Page::print_header();
            ?>
			<h2 class="nav-tab-wrapper">	<?php 
            foreach ($tabs as $type => $tab) {
                $html = str_replace('{{link_class}}', implode(' ', $tab['link_class']), $tab['link']);
                $html = str_replace('{{span_class}}', implode(' ', $tab['span_class']), $html);
                $html = str_replace('{{title}}', $tab['title'], $html);
                if (!empty($tab['tab_id'])) {
                    $html = str_replace('{{href}}', '#' . $tab['tab_id'], $html);
                    $html = str_replace('{{tab_id}}', $tab['tab_id'], $html);
                } else {
                    if (!empty($tab['href'])) {
                        $html = str_replace('{{href}}', $tab['href'], $html);
                        $html = str_replace('{{tab_id}}', '', $html);
                    } else {
                        $html = str_replace('{{href}}', '#', $html);
                        $html = str_replace('{{tab_id}}', '', $html);
                    }
                }
                echo $html;
            }
            ?>
			</h2>	<?php 
            /**
             * Fires to render a specific tab panel.
             *
             * @since 1.6.6
             *
             * @param array $tabs Array of tabs.
             */
            do_action('wpglobus_admin_central_panel', $tabs);
            WPGlobus_Admin_Page::print_footer();
        }
Exemplo n.º 2
0
    /**
     * Output the about screen.
     */
    public static function about_screen()
    {
        WPGlobus_Admin_Page::print_header();
        ?>
		<h2 class="nav-tab-wrapper">
			<a href="#" class="nav-tab nav-tab-active">
				<?php 
        esc_html_e('Quick Start', 'wpglobus');
        ?>
			</a>
			<a href="<?php 
        echo esc_url(WPGlobus_Admin_Page::url_settings());
        ?>
"
			   class="nav-tab">
				<?php 
        WPGlobus_Admin_Page::nav_tab_icon_e('Settings');
        ?>
				<?php 
        esc_html_e('Settings');
        ?>
			</a>
			<a href="<?php 
        echo esc_url(WPGlobus_Admin_Page::url_addons());
        ?>
"
			   class="nav-tab">
				<?php 
        WPGlobus_Admin_Page::nav_tab_icon_e('Add-ons');
        ?>
				<?php 
        esc_html_e('Add-ons', 'wpglobus');
        ?>
			</a>
			<a href="<?php 
        echo esc_url(WPGlobus_Utils::url_wpglobus_site() . 'quick-start/' . self::QA_CAMPAIGN);
        ?>
"
			   target="_blank"
			   class="nav-tab">
				<?php 
        WPGlobus_Admin_Page::nav_tab_icon_e('Guide');
        ?>
				<?php 
        esc_html_e('Guide', 'wpglobus');
        ?>
			</a>
			<a href="<?php 
        echo esc_url(WPGlobus_Utils::url_wpglobus_site() . 'faq/' . self::QA_CAMPAIGN);
        ?>
"
			   target="_blank"
			   class="nav-tab">
				<?php 
        WPGlobus_Admin_Page::nav_tab_icon_e('FAQ');
        ?>
				<?php 
        esc_html_e('FAQ', 'wpglobus');
        ?>
			</a>
			<a href="<?php 
        echo esc_url(WPGlobus_Admin_HelpDesk::$admin_page_url);
        ?>
"
			   class="nav-tab">
				<?php 
        WPGlobus_Admin_Page::nav_tab_icon_e('Helpdesk');
        ?>
				<?php 
        echo esc_html(WPGlobus_Admin_HelpDesk::$page_title);
        ?>
			</a>
		</h2>

		<?php 
        if (!extension_loaded('mbstring')) {
            ?>
			<div style="background: #fff;border-left: 4px solid #dc3232;margin: 15px 15px 2px;padding: 1px 12px;">
				<h4><?php 
            esc_html_e('Attention: the Multibyte String PHP extension (`mbstring`) is not loaded!', 'wpglobus');
            ?>
</h4>
				<p><?php 
            esc_html_e('The mbstring extension is required for the full UTF-8 compatibility and better performance. Without it, some parts of WordPress and WPGlobus may function incorrectly. Please contact your hosting company or systems administrator.', 'wpglobus');
            ?>
</p>
			</div>
		<?php 
        }
        ?>

		<div class="feature-main feature-section col two-col">
			<div class="col">
				<?php 
        self::easy_1_2_3();
        ?>
			</div>
			<div class="col last-feature">
				<?php 
        self::translation_help();
        ?>
			</div>
		</div>

		<div class="feature-main feature-section col two-col">
			<div class="col">
				<?php 
        self::important_notes();
        ?>
			</div>
			<div class="col last-feature">
				<?php 
        self::links();
        ?>
			</div>
		</div>

		<hr />

		<div class="return-to-dashboard">
			<a class="button button-primary"
			   href="<?php 
        echo esc_url(WPGlobus_Admin_Page::url_settings());
        ?>
">
				<?php 
        esc_html_e('Go to WPGlobus Settings', 'wpglobus');
        ?>
			</a>
		</div>

		<?php 
        WPGlobus_Admin_Page::print_footer();
    }
			<p><em><?php 
esc_html_e('Sincerely Yours,', 'wpglobus');
?>
</em></p>
			<p><em><?php 
esc_html_e('The WPGlobus Team', 'wpglobus');
?>
</em></p>
		</div>
		<div class="col last-feature">
			<h4><?php 
esc_html_e('Technical Information', 'wpglobus');
?>
</h4>
			<table class="widefat striped">
				<tbody>
				<?php 
foreach ($data as $key => $value) {
    if (in_array($key, array('name', 'email'), true)) {
        continue;
    }
    echo '<tr><th>' . esc_html($key) . '</th><td>' . esc_html($value) . '</td></tr>';
}
?>
				</tbody>
			</table>
		</div>
	</div>
<?php 
WPGlobus_Admin_Page::print_footer();
/* EOF */