|
@@ 84-93 (lines=10) @@
|
| 81 |
|
|
| 82 |
|
|
| 83 |
|
// Shortcodes |
| 84 |
|
function jetpack_shortcodes_more_info() { ?> |
| 85 |
|
<div class="jp-info-img"> |
| 86 |
|
<a href="http://en.support.wordpress.com/shortcodes/"> |
| 87 |
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortcodes.jpg' ) ?>" alt="<?php esc_attr_e( 'Shortcode Embeds', 'jetpack' ) ?>" width="300" height="150" /> |
| 88 |
|
</a> |
| 89 |
|
</div> |
| 90 |
|
|
| 91 |
|
<p><?php esc_html_e( 'Shortcodes allow you to easily and safely embed media from other places in your site. With just one simple code, you can tell WordPress to embed YouTube, Flickr, and other media.', 'jetpack' ) ?></p> |
| 92 |
|
<?php |
| 93 |
|
} |
| 94 |
|
add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' ); |
| 95 |
|
|
| 96 |
|
function jetpack_shortcodes_more_info_connected() { ?> |
|
@@ 151-161 (lines=11) @@
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
// Shortlinks |
| 151 |
|
function wpme_more_info() { ?> |
| 152 |
|
<div class="jp-info-img"> |
| 153 |
|
<a href="http://wp.me/sf2B5-shorten"> |
| 154 |
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortlinks.jpg' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" /> |
| 155 |
|
</a> |
| 156 |
|
</div> |
| 157 |
|
|
| 158 |
|
<p><?php esc_html_e( "Instead of typing or copy-pasting long URLs, you can now get a short and simple link to your posts and pages. This uses the super compact wp.me domain name, and gives you a unique URL you can use that will be safe and reliable.", 'jetpack' ) ?></p> |
| 159 |
|
<p><?php esc_html_e( "It’s perfect for use on Twitter, Facebook, and cell phone text messages where every character counts.", 'jetpack' ) ?></p> |
| 160 |
|
<?php |
| 161 |
|
} |
| 162 |
|
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' ); |
| 163 |
|
|
| 164 |
|
function wpme_more_info_connected() { ?> |
|
@@ 164-174 (lines=11) @@
|
| 161 |
|
} |
| 162 |
|
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' ); |
| 163 |
|
|
| 164 |
|
function wpme_more_info_connected() { ?> |
| 165 |
|
<div class="jp-info-img"> |
| 166 |
|
<a href="http://wp.me/sf2B5-shorten"> |
| 167 |
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/shortlinks.jpg' ) ?>" alt="<?php esc_attr_e( 'WP.me Shortlinks', 'jetpack' ) ?>" width="300" height="150" /> |
| 168 |
|
</a> |
| 169 |
|
</div> |
| 170 |
|
|
| 171 |
|
<p><?php esc_html_e( "Instead of typing or copy-pasting long URLs, you can now get a short and simple link to your posts and pages. This uses the super compact wp.me domain name, and gives you a unique URL you can use that will be safe and reliable.", 'jetpack' ) ?></p> |
| 172 |
|
<p><?php esc_html_e( "To use shortlinks, go to any already published post (or publish something new!). A “Get Shortlink” button will be visible under the Post title. When you click it, a dialog box will appear with the shortlink and you can copy and paste to Twitter, Facebook or wherever your heart desires.", 'jetpack' ) ?></p> |
| 173 |
|
<?php |
| 174 |
|
} |
| 175 |
|
add_action( 'jetpack_module_more_info_connected_shortlinks', 'wpme_more_info_connected' ); |
| 176 |
|
|
| 177 |
|
function wpme_load_more_link( $description ) { |
|
@@ 184-193 (lines=10) @@
|
| 181 |
|
|
| 182 |
|
|
| 183 |
|
// Site Stats |
| 184 |
|
function stats_more_info() { ?> |
| 185 |
|
<div class="jp-info-img"> |
| 186 |
|
<a href="http://en.support.wordpress.com/stats/"> |
| 187 |
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/stats.jpg' ) ?>" alt="<?php esc_attr_e( 'Site Stats', 'jetpack' ) ?>" width="300" height="150" /> |
| 188 |
|
</a> |
| 189 |
|
</div> |
| 190 |
|
|
| 191 |
|
<p><?php esc_html_e( 'There are many plugins and services that provide statistics, but data can be overwhelming. Site Stats makes the most popular metrics easy to understand through a clear and attractive interface.', 'jetpack' ) ?></p> |
| 192 |
|
<?php |
| 193 |
|
} |
| 194 |
|
add_action( 'jetpack_module_more_info_stats', 'stats_more_info' ); |
| 195 |
|
|
| 196 |
|
function stats_more_info_connected() { ?> |
|
@@ 245-254 (lines=10) @@
|
| 242 |
|
add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' ); |
| 243 |
|
|
| 244 |
|
// Notifications |
| 245 |
|
function notes_more_info() { ?> |
| 246 |
|
<div class="jp-info-img"> |
| 247 |
|
<a href="http://support.wordpress.com/notifications/"> |
| 248 |
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/notes.jpg' ) ?>" alt="<?php esc_attr_e( 'Notifications', 'jetpack' ) ?>" width="300" height="150" /> |
| 249 |
|
</a> |
| 250 |
|
</div> |
| 251 |
|
|
| 252 |
|
<p><?php esc_html_e( 'Keep up with the latest happenings on all your WordPress sites and interact with other WordPress.com users.', 'jetpack' ) ?></p> |
| 253 |
|
<?php |
| 254 |
|
} |
| 255 |
|
add_action( 'jetpack_module_more_info_notes', 'notes_more_info' ); |
| 256 |
|
|
| 257 |
|
function notes_more_info_connected() { ?> |
|
@@ 551-559 (lines=9) @@
|
| 548 |
|
echo '<a class="button-secondary more-info-link" href="#">' . __( 'Learn More', 'jetpack' ) . '</a>'; |
| 549 |
|
} |
| 550 |
|
|
| 551 |
|
function jetpack_carousel_more_info() { |
| 552 |
|
?> |
| 553 |
|
<div class="jp-info-img"> |
| 554 |
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/carousel.jpg' ) ?>" alt="<?php esc_attr_e( 'Gallery Carousel Screenshot', 'jetpack' ) ?>" width="300" height="188" /> |
| 555 |
|
</div> |
| 556 |
|
|
| 557 |
|
<p><?php esc_html_e( 'With Carousel active, any standard WordPress galleries you have embedded in posts or pages will launch a gorgeous full-screen photo browsing experience with comments and EXIF metadata.', 'jetpack' ); ?></p> |
| 558 |
|
<?php |
| 559 |
|
} |
| 560 |
|
|
| 561 |
|
add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' ); |
| 562 |
|
add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' ); |