Esempio n. 1
0
    /**
     * Adds contextual help to the titles & metas page.
     */
    function title_metas_help_tab()
    {
        $screen = get_current_screen();
        $screen->set_help_sidebar('
			<p><strong>' . __('For more information:', 'ymbeseo') . '</strong></p>
			<p><a target="_blank" href="https://yoast.com/articles/wordpress-seo/#titles">' . __('Title optimization', 'ymbeseo') . '</a></p>
			<p><a target="_blank" href="https://yoast.com/google-page-title/">' . __('Why Google won\'t display the right page title', 'ymbeseo') . '</a></p>');
        $screen->add_help_tab(array('id' => 'basic-help', 'title' => __('Template explanation', 'ymbeseo'), 'content' => '<p>' . sprintf(__('The title &amp; metas settings for %1$s are made up of variables that are replaced by specific values from the page when the page is displayed. The tabs on the left explain the available variables.', 'ymbeseo'), 'Yoast SEO') . '</p>' . '<p>' . __('Note that not all variables can be used in every template.', 'ymbeseo') . '</p>'));
        $screen->add_help_tab(array('id' => 'title-vars', 'title' => __('Basic Variables', 'ymbeseo'), 'content' => "\n\t\t<h2>" . __('Basic Variables', 'ymbeseo') . "</h2>\n\t\t" . YMBESEO_Replace_Vars::get_basic_help_texts()));
        $screen->add_help_tab(array('id' => 'title-vars-advanced', 'title' => __('Advanced Variables', 'ymbeseo'), 'content' => "\n\t\t<h2>" . __('Advanced Variables', 'ymbeseo') . "</h2>\n\t\t" . YMBESEO_Replace_Vars::get_advanced_help_texts()));
    }