PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 18.3
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v18.3
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / admin / views / sidebar.php

sidebar.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI 18.3, at admin/views/sidebar.php

79 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * View for the banner sidebar.
4 *
5 * @package WPSEO\Admin\Views
6 */
7
8 $wpseo_plugin_dir_url = plugin_dir_url( WPSEO_FILE );
9 $new_tab_message = WPSEO_Admin_Utils::get_new_tab_message();
10 ?>
11
12 <div class="wpseo_content_cell" id="sidebar-container">
13 <div id="sidebar" class="yoast-sidebar">
14 <div class="wpseo_content_cell_title yoast-sidebar__title">
15 <?php
16 /* translators: %1$s expands to Yoast */
17 printf( esc_html__( '%1$s recommendations for you', 'wordpress-seo' ), 'Yoast' );
18 ?>
19 </div>
20 <div class="yoast-sidebar__section">
21 <h2>
22 <?php
23 /* translators: %s expands to Yoast SEO Premium */
24 printf( esc_html__( 'Upgrade to %s', 'wordpress-seo' ), 'Yoast SEO Premium' );
25 ?>
26 </h2>
27 <ul>
28 <li>
29 <strong><?php esc_html_e( 'Rank better with synonyms & related keyphrases', 'wordpress-seo' ); ?></strong>
30 </li>
31 <li>
32 <strong><?php esc_html_e( 'Preview your page in Facebook and Twitter', 'wordpress-seo' ); ?></strong>
33 </li>
34 <li>
35 <strong><?php esc_html_e( 'Get real-time suggestions for internal links', 'wordpress-seo' ); ?></strong>
36 </li>
37 <li><strong><?php esc_html_e( 'No more dead links a.k.a. 404 pages', 'wordpress-seo' ); ?></strong></li>
38 <li><strong><?php esc_html_e( '24/7 email support', 'wordpress-seo' ); ?></strong></li>
39 <li><strong><?php esc_html_e( 'No ads!', 'wordpress-seo' ); ?></strong></li>
40 </ul>
41 <a id="wpseo-premium-button" class="yoast-button-upsell"
42 href="<?php WPSEO_Shortlinker::show( 'https://yoa.st/jj' ); ?>" target="_blank">
43 <?php
44 /* translators: %s expands to Yoast SEO Premium */
45 printf( esc_html__( 'Get %s', 'wordpress-seo' ), 'Yoast SEO Premium' );
46 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: $new_tab_message is properly escaped.
47 echo $new_tab_message;
48 echo '<span aria-hidden="true" class="yoast-button-upsell__caret"></span>';
49 ?>
50 </a>
51 </div>
52 <div class="yoast-sidebar__section">
53 <h2>
54 <?php
55 esc_html_e( 'Learn SEO', 'wordpress-seo' );
56 ?>
57 </h2>
58 <p>
59 <?php
60 $url = WPSEO_Shortlinker::get( 'https://yoa.st/3t6' );
61
62 /* translators: %1$s expands to Yoast SEO academy, which is a clickable link. */
63 printf( esc_html__( 'Want to learn SEO from Team Yoast? Check out our %1$s!', 'wordpress-seo' ), '<a href="' . esc_url( $url ) . '"><strong>Yoast SEO academy</strong></a>' );
64 echo '<br/>';
65 esc_html_e( 'We have both free and premium online courses to learn everything you need to know about SEO.', 'wordpress-seo' );
66 ?>
67 </p>
68 <p>
69 <a href="<?php echo esc_url( $url ); ?>" target="_blank">
70 <?php
71 /* translators: %1$s expands to Yoast SEO academy */
72 printf( esc_html__( 'Check out %1$s', 'wordpress-seo' ), 'Yoast SEO academy' );
73 ?>
74 </a>
75 </p>
76 </div>
77 </div>
78 </div>
79