array( 'content' => '

' . __( 'Dashboard', 'wordpress-seo' ) . '

' . __( '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' ) . '

' . '
' . '

' . '
' . '
' . '' . '' . '

', 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_titles' ) . '";' ), 'wpseo_titles' => array( 'content' => "

" . __( "Title & Description settings", 'wordpress-seo' ) . "

" . "

" . __( "This is were 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 sidewide settings here to add specific meta tags or to remove some unneeded cruft.", 'wordpress-seo' ) . "

", 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_social' ) . '";' ), 'wpseo_social' => array( 'content' => "

" . __( "Social settings", 'wordpress-seo' ) . "

" . "

" . __( 'Facebook OpenGraph', 'wordpress-seo' ) . '
' . __( "On this page you can enable the OpenGraph 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 OpenGraph%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' ), '', '' ) . "

", 'button2' => __( 'Next', 'wordpress-seo' ), 'function' => 'window.location="' . admin_url( 'admin.php?page=wpseo_xml' ) . '";' ), 'wpseo_xml' => array( 'content' => '

' . __( 'XML Sitemaps', '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' => '

' . __( 'Permalink Settings', 'wordpress-seo' ) . '

' . __( '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' => '

' . __( 'Breadcrumbs Settings', 'wordpress-seo' ) . '

' . 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' => '

' . __( 'RSS Settings', 'wordpress-seo' ) . '

' . __( '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' => '

' . __( 'Import & Export', 'wordpress-seo' ) . '

' . __( '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="' . admin_url( 'admin.php?page=wpseo_files' ) . '";' ), 'wpseo_files' => array( 'content' => '

' . __( 'File Editor', 'wordpress-seo' ) . '

' . __( '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' ) . '

' . '

' . 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' ), '', '' ) . '

', ), ); if ( ( defined( 'DISALLOW_FILE_EDIT' ) && DISALLOW_FILE_EDIT ) || ( defined( 'DISALLOW_FILE_MODS' ) && DISALLOW_FILE_MODS ) ) { unset( $adminpages['wpseo_files'] ); $adminpages['wpseo_import']['function'] = ''; unset( $adminpages['wpseo_import']['button2'] ); $adminpages['wpseo_import']['content'] .= '

' . 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' ), '', '' ) . '

'; } $page = ''; if ( isset( $_GET['page'] ) ) $page = $_GET['page']; $function = ''; $button2 = ''; $opt_arr = array(); $id = '#wpseo-title'; if ( 'admin.php' != $pagenow || !array_key_exists( $page, $adminpages ) ) { $id = 'li.toplevel_page_wpseo_dashboard'; $content = '

' . __( 'Congratulations!', 'wordpress-seo' ) . '

'; $content .= '

' . __( '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 ) ) ) { $opt_arr = array( 'content' => $adminpages[$page]['content'], 'position' => array( 'edge' => 'top', 'align' => 'left' ), 'pointerWidth' => 400 ); $button2 = $adminpages[$page]['button2']; $function = $adminpages[$page]['function']; } } $this->print_scripts( $id, $opt_arr, __( "Close", 'wordpress-seo' ), $button2, $function ); } /** * Load a tiny bit of CSS in the head */ function admin_head() { ?>