' . __( 'Help improve WordPress SEO', 'wordpress-seo' ) . ''; $content .= '
' . __( 'You\'ve just installed WordPress SEO by Yoast. Please helps us improve it by allowing us to gather anonymous usage stats so we know which configurations, plugins and themes to test with.', 'wordpress-seo' ) . '
'; $opt_arr = array( 'content' => $content, 'position' => array( 'edge' => 'top', 'align' => 'center' ) ); $button2 = __( 'Allow tracking', 'wordpress-seo' ); $function2 = 'wpseo_store_answer("yes","' . $nonce . '")'; $function1 = 'wpseo_store_answer("no","' . $nonce . '")'; $this->print_scripts( $id, $opt_arr, __( 'Do not allow tracking', 'wordpress-seo' ), $button2, $function2, $function1 ); } /** * Load the introduction tour */ function intro_tour() { global $pagenow, $current_user; $adminpages = array( 'wpseo_dashboard' => array( 'content' => '' . __( 'This is the WordPress SEO Dashboard, here you can restart this tour or revert the WP SEO settings to default.', 'wordpress-seo' ) . '
' . '' . __( 'More WordPress SEO', 'wordpress-seo' ) . '
' . sprintf( __( 'There\'s more to learn about WordPress & SEO than just using this plugin. Read our article %1$sthe definitive guide to WordPress SEO%2$s.', 'wordpress-seo' ), '', '' ) . '
' . __( 'Webmaster Tools', 'wordpress-seo' ) . '
' . __( 'Underneath the General Settings, you can add the verification codes for the different Webmaster Tools programs, I highly encourage you to check out both Google and Bing\'s Webmaster Tools.', 'wordpress-seo' ) . '
' . __( 'About This Tour', 'wordpress-seo' ) . '
' . __( 'Clicking Next below takes you to the next page of the tour. If you want to stop this tour, click "Close".', 'wordpress-seo' ) . '
' . __( 'Like this plugin?', 'wordpress-seo' ) . '
' . sprintf( __( 'If you like this plugin, please %srate it 5 stars on WordPress.org%s and consider making a donation by clicking the button on the right!', 'wordpress-seo' ), '', '' ) . '
' . __( 'Newsletter', 'wordpress-seo' ) . '
' .
__( 'If you would like to keep up to date regarding the WordPress SEO plugin and other plugins by Yoast, subscribe to the newsletter:', 'wordpress-seo' ) . '
' . __( 'This is where you set the templates for your titles and descriptions of all the different types of pages on your blog, be it your homepage, posts & pages (under post types), category or tag archives (under taxonomy archives), or even custom post type archives and custom posts: all of that is done from here.', 'wordpress-seo' ) . '
' . '' . __( 'Templates', 'wordpress-seo' ) . '
'
. __( 'The templates are built using variables, the help tab for all the different variables available to you to use in these.', 'wordpress-seo' ) . '
' . __( 'Sitewide settings', 'wordpress-seo' ) . '
'
. __( 'You can also set some settings for the entire site here to add specific meta tags or to remove some unneeded cruft.', 'wordpress-seo' ) . '
' . __( 'Facebook Open Graph', 'wordpress-seo' ) . '
'
. __( 'On this page you can enable the Open Graph functionality from this plugin, as well as assign a Facebook user or Application to be the admin of your site, so you can view the Facebook insights.', 'wordpress-seo' ) . '
' . sprintf( __( 'Read more about %1$sFacebook Open Graph%2$s.', 'wordpress-seo' ), '', '' ) . '
' . '' . __( 'Twitter Cards', 'wordpress-seo' ) . '
'
. sprintf( __( 'This functionality is currently in beta, but it allows for %1$sTwitter Cards%2$s.', 'wordpress-seo' ), '', '' ) . '
' . __( 'This plugin adds an XML sitemap to your site. It\'s automatically updated when you publish a new post, page or custom post and Google and Bing will be automatically notified.', 'wordpress-seo' ) . '
' . __( 'Be sure to check whether post types or taxonomies are showing that search engines shouldn\'t be indexing, if so, check the box before them to hide them from the XML sitemaps.', 'wordpress-seo' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_permalinks' ) . '";', ), 'wpseo_permalinks' => array( 'content' => '' . __( 'All of the options here are for advanced users only, if you don\'t know whether you should check any, don\'t touch them.', 'wordpress-seo' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_internal-links' ) . '";', ), 'wpseo_internal-links' => array( 'content' => '' . sprintf( __( 'If your theme supports my breadcrumbs, as all Genesis and WooThemes themes as well as a couple of other ones do, you can change the settings for those here. If you want to modify your theme to support them, %sfollow these instructions%s.', 'wordpress-seo' ), '', '' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_rss' ) . '";', ), 'wpseo_rss' => array( 'content' => '' . __( 'This incredibly powerful function allows you to add content to the beginning and end of your posts in your RSS feed. This helps you gain links from people who steal your content!', 'wordpress-seo' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_import' ) . '";', ), 'wpseo_import' => array( 'content' => '' . __( 'Just switched over from another SEO plugin? Use the options here to switch your data over. If you were using some of my older plugins like Robots Meta & RSS Footer, you can import the settings here too.', 'wordpress-seo' ) . '
' . __( 'If you have multiple blogs and you\'re happy with how you\'ve configured this blog, you can export the settings and import them on another blog so you don\'t have to go through this process twice!', 'wordpress-seo' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . network_admin_url( 'admin.php?page=wpseo_files' ) . '";', // will auto-use admin_url if not on multi-site ), 'wpseo_files' => array( 'content' => '' . __( 'Here you can edit the .htaccess and robots.txt files, two of the most powerful files in your WordPress install. Only touch these files if you know what you\'re doing!', 'wordpress-seo' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_bulk-title-editor' ) . '";', ), 'wpseo_bulk-title-editor' => array( 'content' => '' . __( 'This is where you can view and edit the SEO titles of every post and page on your site. If you have a lot of pages that need SEO titles, use this page to save yourself the hassle of editing every page one at a time!', 'wordpress-seo' ) . '
', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_bulk-description-editor' ) . '";', ), 'wpseo_bulk-description-editor' => array( 'content' => '' . __( 'This page lets you view and edit the meta descriptions of all posts and pages on your site. Just like the Bulk Title Editor, this allows you to edit the meta description of all your pages in one place, rather than having to edit each individual page.', 'wordpress-seo' ) . '
' . '' . sprintf( __( 'The tour ends here, thank you for using my plugin and good luck with your SEO!
Best,
Joost de Valk - %1$sYoast.com%2$s', 'wordpress-seo' ), '', '' ) . '
' . sprintf( __( 'The tour ends here,thank you for using my plugin and good luck with your SEO!
Best,
Joost de Valk - %1$sYoast.com%2$s', 'wordpress-seo' ), '', '' ) . '
' . __( 'You\'ve just installed WordPress SEO by Yoast! Click "Start Tour" to view a quick introduction of this plugins core functionality.', 'wordpress-seo' ) . '
'; $opt_arr = array( 'content' => $content, 'position' => array( 'edge' => 'top', 'align' => 'center' ) ); $button2 = __( 'Start Tour', 'wordpress-seo' ); $function = 'document.location="' . admin_url( 'admin.php?page=wpseo_dashboard' ) . '";'; } else { if ( '' != $page && in_array( $page, array_keys( $adminpages ) ) ) { $align = ( is_rtl() ) ? 'right' : 'left'; $opt_arr = array( 'content' => $adminpages[ $page ]['content'], 'position' => array( 'edge' => 'top', 'align' => $align ), 'pointerWidth' => 400, ); if ( isset( $adminpages[ $page ]['button2'] ) ) { $button2 = $adminpages[ $page ]['button2']; } if ( isset( $adminpages[ $page ]['function'] ) ) { $function = $adminpages[ $page ]['function']; } } } $this->print_scripts( $id, $opt_arr, __( 'Close', 'wordpress-seo' ), $button2, $function ); } /** * Prints the pointer script * * @param string $selector The CSS selector the pointer is attached to. * @param array $options The options for the pointer. * @param string $button1 Text for button 1 * @param string|bool $button2 Text for button 2 (or false to not show it, defaults to false) * @param string $button2_function The JavaScript function to attach to button 2 * @param string $button1_function The JavaScript function to attach to button 1 */ function print_scripts( $selector, $options, $button1, $button2 = false, $button2_function = '', $button1_function = '' ) { ?>