1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* "Learn More" information blocks for all modules live in this file. |
4
|
|
|
* |
5
|
|
|
* Each module must include 2 functions: |
6
|
|
|
* - The first one creates a button where users can find more information about the module. |
7
|
|
|
* It is hooked into `jetpack_learn_more_button_ . $module` |
8
|
|
|
* - The second creates a information block. |
9
|
|
|
* It is hooked into `jetpack_module_more_info_ . $module` |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* VaultPress (stub) |
14
|
|
|
*/ |
15
|
|
|
function vaultpress_jetpack_load_more_link() { |
16
|
|
|
if ( function_exists( 'is_multisite' ) && is_multisite() ) { |
17
|
|
|
$vaultpress_url = 'http://vaultpress.com/jetpack-ms/'; |
18
|
|
|
} else { |
19
|
|
|
$vaultpress_url = 'http://vaultpress.com/jetpack/'; |
20
|
|
|
} |
21
|
|
|
|
22
|
|
|
echo $vaultpress_url; |
23
|
|
|
} |
24
|
|
|
add_filter( 'jetpack_learn_more_button_vaultpress', 'vaultpress_jetpack_load_more_link' ); |
25
|
|
|
|
26
|
|
|
function vaultpress_jetpack_more_info() { |
27
|
|
|
esc_html_e( |
28
|
|
|
'We keep a daily or real-time backup of your site so that when mistakes or accidents occur, restoring your |
29
|
|
|
site to any location takes a matter of minutes. Your site’s files are regularly scanned for unauthorized or |
30
|
|
|
suspicious modifications that could compromise your security and data. In many cases, we can fix them |
31
|
|
|
automatically (and will notify you). When we can’t, we provide you with expert support.' |
32
|
|
|
, 'jetpack' ); |
33
|
|
|
} |
34
|
|
|
add_action( 'jetpack_module_more_info_vaultpress', 'vaultpress_jetpack_more_info' ); |
35
|
|
|
|
36
|
|
|
/** |
37
|
|
|
* Gravatar Hovercards |
38
|
|
|
*/ |
39
|
|
|
function grofiles_load_more_link() { |
40
|
|
|
echo 'https://jetpack.com/support/gravatar-hovercards/'; |
41
|
|
|
} |
42
|
|
|
add_filter( 'jetpack_learn_more_button_gravatar-hovercards', 'grofiles_load_more_link' ); |
43
|
|
|
|
44
|
|
View Code Duplication |
function grofiles_more_info() { ?> |
|
|
|
|
45
|
|
|
<div class="jp-info-img"> |
46
|
|
|
<a href="http://blog.gravatar.com/2010/10/06/gravatar-hovercards-on-wordpress-com/" target="_blank"> |
47
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/hovercards.jpg' ) ?>" alt="<?php esc_attr_e( 'Gravatar Hovercard', 'jetpack' ) ?>" width="300" height="150" /> |
48
|
|
|
</a> |
49
|
|
|
</div> |
50
|
|
|
|
51
|
|
|
<?php esc_html_e( |
52
|
|
|
'Hovercards enhance plain Gravatar images with information about a person, including a name, |
53
|
|
|
bio, pictures, and contact info. Hovercards will appear when you hover over the user image |
54
|
|
|
associated with a comment on any of your blog posts.' |
55
|
|
|
, 'jetpack' ); |
56
|
|
|
} |
57
|
|
|
add_action( 'jetpack_module_more_info_gravatar-hovercards', 'grofiles_more_info' ); |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Shortcodes |
61
|
|
|
*/ |
62
|
|
|
function jetpack_shortcodes_load_more_link() { |
63
|
|
|
echo 'https://jetpack.com/support/shortcode-embeds/'; |
64
|
|
|
} |
65
|
|
|
add_filter( 'jetpack_learn_more_button_shortcodes', 'jetpack_shortcodes_load_more_link' ); |
66
|
|
|
|
67
|
|
View Code Duplication |
function jetpack_shortcodes_more_info() { ?> |
|
|
|
|
68
|
|
|
<div class="jp-info-img"> |
69
|
|
|
<a href="http://en.support.wordpress.com/shortcodes/" target="_blank"> |
70
|
|
|
<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" /> |
71
|
|
|
</a> |
72
|
|
|
</div> |
73
|
|
|
|
74
|
|
|
<?php esc_html_e( |
75
|
|
|
'Shortcodes allow you to easily and safely embed media from other places in your site. |
76
|
|
|
With one simple code, you can tell your site to embed media from YouTube, Facebook, Flickr, Vimeo, Instagram, |
77
|
|
|
Google Maps, SlideShare, Vine, SoundCloud, and more. Just enter the appropriate shortcode directly into the |
78
|
|
|
Post/Page editor and click “Publish.”' |
79
|
|
|
, 'jetpack' ); |
80
|
|
|
} |
81
|
|
|
add_action( 'jetpack_module_more_info_shortcodes', 'jetpack_shortcodes_more_info' ); |
82
|
|
|
|
83
|
|
|
/** |
84
|
|
|
* Shortlinks |
85
|
|
|
*/ |
86
|
|
|
function wpme_load_more_link() { |
87
|
|
|
echo 'http://wp.me/sf2B5-shorten'; |
88
|
|
|
} |
89
|
|
|
add_filter( 'jetpack_learn_more_button_shortlinks', 'wpme_load_more_link' ); |
90
|
|
|
|
91
|
|
View Code Duplication |
function wpme_more_info() { ?> |
|
|
|
|
92
|
|
|
<div class="jp-info-img"> |
93
|
|
|
<a href="http://wp.me/sf2B5-shorten" target="_blank"> |
94
|
|
|
<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" /> |
95
|
|
|
</a> |
96
|
|
|
</div> |
97
|
|
|
|
98
|
|
|
<?php esc_html_e( |
99
|
|
|
'Instead of typing or copy-pasting long URLs, you can grab short and simple links to your posts and pages. |
100
|
|
|
This uses the compact wp.me domain name, and gives you a unique URL that is safe and reliable. It’s perfect |
101
|
|
|
for use on Twitter, Facebook, and in text messages where every character counts.' |
102
|
|
|
, 'jetpack' ); |
103
|
|
|
} |
104
|
|
|
add_action( 'jetpack_module_more_info_shortlinks', 'wpme_more_info' ); |
105
|
|
|
|
106
|
|
|
/** |
107
|
|
|
* Site Stats |
108
|
|
|
*/ |
109
|
|
|
function stats_load_more_link() { |
110
|
|
|
echo 'https://jetpack.com/support/wordpress-com-stats/'; |
111
|
|
|
} |
112
|
|
|
add_filter( 'jetpack_learn_more_button_stats', 'stats_load_more_link' ); |
113
|
|
|
|
114
|
|
View Code Duplication |
function stats_more_info() { ?> |
|
|
|
|
115
|
|
|
<div class="jp-info-img"> |
116
|
|
|
<a href="http://en.support.wordpress.com/stats/" target="_blank"> |
117
|
|
|
<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" /> |
118
|
|
|
</a> |
119
|
|
|
</div> |
120
|
|
|
|
121
|
|
|
<?php esc_html_e( |
122
|
|
|
'There are many plugins and services that provide statistics, but data can be overwhelming! Site Stats makes |
123
|
|
|
the most popular metrics easy to understand through a clear and attractive interface. You can see what visitors |
124
|
|
|
are reading, where they’re coming from, and what will bring them back -- all in one place.' |
125
|
|
|
, 'jetpack' ); |
126
|
|
|
} |
127
|
|
|
add_action( 'jetpack_module_more_info_stats', 'stats_more_info' ); |
128
|
|
|
|
129
|
|
|
/** |
130
|
|
|
* Publicize |
131
|
|
|
*/ |
132
|
|
|
function publicize_load_more_link() { |
133
|
|
|
echo 'https://jetpack.com/support/publicize/'; |
134
|
|
|
} |
135
|
|
|
add_filter( 'jetpack_learn_more_button_publicize', 'publicize_load_more_link' ); |
136
|
|
|
|
137
|
|
View Code Duplication |
function publicize_more_info() { ?> |
|
|
|
|
138
|
|
|
<div class="jp-info-img"> |
139
|
|
|
<a href="http://en.support.wordpress.com/publicize/" target="_blank"> |
140
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/publicize.jpg' ) ?>" alt="<?php esc_attr_e( 'Publicize', 'jetpack' ) ?>" width="328" height="123" /> |
141
|
|
|
</a> |
142
|
|
|
</div> |
143
|
|
|
|
144
|
|
|
<?php esc_html_e( |
145
|
|
|
'Publicize allows you to connect your site to social networks like Facebook, Twitter, Tumblr, Google+, Path, |
146
|
|
|
and LinkedIn and automatically share new posts with your friends and followers. You can add connections for |
147
|
|
|
yourself or for all users on your site.' |
148
|
|
|
, 'jetpack' ); |
149
|
|
|
} |
150
|
|
|
add_action( 'jetpack_module_more_info_publicize', 'publicize_more_info' ); |
151
|
|
|
|
152
|
|
|
/** |
153
|
|
|
* Notifications |
154
|
|
|
*/ |
155
|
|
|
function notes_load_more_link() { |
156
|
|
|
echo 'https://jetpack.com/support/notifications/'; |
157
|
|
|
} |
158
|
|
|
add_filter( 'jetpack_learn_more_button_notes', 'notes_load_more_link' ); |
159
|
|
|
|
160
|
|
View Code Duplication |
function notes_more_info() { ?> |
|
|
|
|
161
|
|
|
<div class="jp-info-img"> |
162
|
|
|
<a href="http://support.wordpress.com/notifications/" target="_blank"> |
163
|
|
|
<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" /> |
164
|
|
|
</a> |
165
|
|
|
</div> |
166
|
|
|
|
167
|
|
|
<?php esc_html_e( |
168
|
|
|
'Keep up with the latest interactions on all of your WordPress sites and view and reply to comments as soon as |
169
|
|
|
possible. You can keep the conversation going from the admin bar in your dashboard or right from your mobile |
170
|
|
|
device so you don’t miss a thing.' |
171
|
|
|
, 'jetpack' ); |
172
|
|
|
} |
173
|
|
|
add_filter( 'jetpack_module_more_info_notes', 'notes_more_info' ); |
174
|
|
|
|
175
|
|
|
/** |
176
|
|
|
* LaTeX |
177
|
|
|
*/ |
178
|
|
|
function latex_load_more_link() { |
179
|
|
|
echo 'https://jetpack.com/support/beautiful-math-with-latex/'; |
180
|
|
|
} |
181
|
|
|
add_filter( 'jetpack_learn_more_button_latex', 'latex_load_more_link' ); |
182
|
|
|
|
183
|
|
View Code Duplication |
function latex_more_info() { ?> |
|
|
|
|
184
|
|
|
<div class="jp-info-img"> |
185
|
|
|
<a href="http://support.wordpress.com/latex/" target="_blank"> |
186
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/beautifulmath.jpg' ) ?>" alt="<?php esc_attr_e( 'LaTeX', 'jetpack' ) ?>" width="300" height="150" /> |
187
|
|
|
</a> |
188
|
|
|
</div> |
189
|
|
|
|
190
|
|
|
<?php printf( esc_html__( |
191
|
|
|
'%1$s is a powerful markup language for writing complex mathematical equations and formulas. |
192
|
|
|
Jetpack combines the power of %1$s and the simplicity of WordPress to give you the ultimate |
193
|
|
|
in math blogging platforms. Use $latex your latex code here$ or [latex]your latex code here[/latex] |
194
|
|
|
to include in your posts and comments. Enjoy all sorts of options and embrace your inner nerd.' |
195
|
|
|
, 'jetpack' ) |
196
|
|
|
, '<a href="http://www.latex-project.org/" target="_blank"><img src="//s0.wp.com/latex.php?latex=%5CLaTeX&bg=transparent&fg=000&s=-1" alt="LaTeX logo" title="LaTeX" style="vertical-align: -25%" /></a>' |
197
|
|
|
); ?> |
198
|
|
|
<?php |
199
|
|
|
} |
200
|
|
|
add_action( 'jetpack_module_more_info_latex', 'latex_more_info' ); |
201
|
|
|
|
202
|
|
|
/** |
203
|
|
|
* Sharing |
204
|
|
|
*/ |
205
|
|
|
function sharedaddy_load_more_link() { |
206
|
|
|
echo 'https://jetpack.com/support/sharing/'; |
207
|
|
|
} |
208
|
|
|
add_filter( 'jetpack_learn_more_button_sharedaddy', 'sharedaddy_load_more_link' ); |
209
|
|
|
|
210
|
|
|
function sharedaddy_more_info() { ?> |
211
|
|
|
<div class="jp-info-img"> |
212
|
|
|
<embed type="application/x-shockwave-flash" src="http://s0.videopress.com/player.swf?v=1.02" height="190" wmode="transparent" seamlesstabbing="true" allowfullscreen="true" allowscriptaccess="always" overstretch="true" flashvars="guid=WV0JOwY2"></embed> |
213
|
|
|
</div> |
214
|
|
|
<?php esc_html_e( |
215
|
|
|
'Visitors can share your posts with Twitter, Facebook, and a host of other services. You can configure services |
216
|
|
|
to appear as icons, text, or both. Some services have additional options to display smart buttons, such as |
217
|
|
|
Twitter, which will update the number of times the post has been shared. We currently support: Twitter, |
218
|
|
|
Facebook, Reddit, Digg, LinkedIn, Google+, print, and email.' |
219
|
|
|
, 'jetpack' ); |
220
|
|
|
} |
221
|
|
|
add_action( 'jetpack_module_more_info_sharedaddy', 'sharedaddy_more_info' ); |
222
|
|
|
|
223
|
|
|
/** |
224
|
|
|
* After The Deadline |
225
|
|
|
*/ |
226
|
|
|
function jpatd_load_more_link() { |
227
|
|
|
echo 'https://jetpack.com/support/spelling-and-grammar/'; |
228
|
|
|
} |
229
|
|
|
add_filter( 'jetpack_learn_more_button_after-the-deadline', 'jpatd_load_more_link' ); |
230
|
|
|
|
231
|
|
View Code Duplication |
function jpatd_more_info() { ?> |
|
|
|
|
232
|
|
|
<div class="jp-info-img"> |
233
|
|
|
<a href="http://en.support.wordpress.com/proofreading/" target="_blank"> |
234
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/spelling.jpg' ) ?>" alt="<?php esc_attr_e( 'Spelling and Grammar', 'jetpack' ) ?>" width="300" height="150" /> |
235
|
|
|
</a> |
236
|
|
|
</div> |
237
|
|
|
|
238
|
|
|
<?php esc_html_e( |
239
|
|
|
'The After the Deadline proofreading service improves your writing by using artificial intelligence to |
240
|
|
|
find spelling and grammatical errors and offers smart suggestions.' |
241
|
|
|
, 'jetpack' ); |
242
|
|
|
} |
243
|
|
|
add_action( 'jetpack_module_more_info_after-the-deadline', 'jpatd_more_info' ); |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* Extra Sidebar Widgets |
247
|
|
|
*/ |
248
|
|
|
function jetpack_widgets_load_more_link() { |
249
|
|
|
echo 'https://jetpack.com/support/extra-sidebar-widgets/'; |
250
|
|
|
} |
251
|
|
|
add_filter( 'jetpack_learn_more_button_widgets', 'jetpack_widgets_load_more_link' ); |
252
|
|
|
|
253
|
|
View Code Duplication |
function jetpack_widgets_more_info() { ?> |
|
|
|
|
254
|
|
|
<div class="jp-info-img"> |
255
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/widgets.jpg' ) ?>" alt="<?php esc_attr_e( 'Widgets Screenshot', 'jetpack' ) ?>" width="300" height="150" /> |
256
|
|
|
</div> |
257
|
|
|
<?php esc_html_e( |
258
|
|
|
'Show your visitors a variety of useful content within your sidebar, including your latest tweets, |
259
|
|
|
a Facebook like box, custom images, your Gravatar image and profile data, a tiled gallery, |
260
|
|
|
recent posts from another WordPress site, or popular social icons. |
261
|
|
|
You can add as many as you like by dragging and dropping and customize each to fit your needs.' |
262
|
|
|
, 'jetpack' ); |
263
|
|
|
} |
264
|
|
|
add_action( 'jetpack_module_more_info_widgets', 'jetpack_widgets_more_info' ); |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* Subscriptions |
268
|
|
|
*/ |
269
|
|
|
function jetpack_subscriptions_load_more_link() { |
270
|
|
|
echo 'https://jetpack.com/support/subscriptions/'; |
271
|
|
|
} |
272
|
|
|
add_action( 'jetpack_learn_more_button_subscriptions', 'jetpack_subscriptions_load_more_link' ); |
273
|
|
|
|
274
|
|
View Code Duplication |
function jetpack_subscriptions_more_info() { ?> |
|
|
|
|
275
|
|
|
<div class="jp-info-img"> |
276
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/subscriptions.jpg' ) ?>" alt="<?php esc_attr_e( 'Subsriptions Screenshot', 'jetpack' ) ?>" width="300" height="150" /> |
277
|
|
|
</div> |
278
|
|
|
|
279
|
|
|
<?php esc_html_e( |
280
|
|
|
'Allow any visitor to subscribe to your site through a widget in your sidebar. Each time you publish new content, |
281
|
|
|
Jetpack will email a notification to all of your subscribers. When leaving comments, your visitors can also |
282
|
|
|
subscribe to a post’s comments to keep up with the conversation.' |
283
|
|
|
, 'jetpack' ); |
284
|
|
|
} |
285
|
|
|
add_action( 'jetpack_module_more_info_subscriptions', 'jetpack_subscriptions_more_info' ); |
286
|
|
|
|
287
|
|
|
/** |
288
|
|
|
* Enhanced Distribution |
289
|
|
|
*/ |
290
|
|
|
function jetpack_enhanced_distribution_more_link() { |
291
|
|
|
echo 'https://jetpack.com/support/enhanced-distribution/'; |
292
|
|
|
} |
293
|
|
|
add_action( 'jetpack_learn_more_button_enhanced-distribution', 'jetpack_enhanced_distribution_more_link' ); |
294
|
|
|
|
295
|
|
|
function jetpack_enhanced_distribution_more_info() { |
296
|
|
|
esc_html_e( |
297
|
|
|
'Jetpack will automatically take your great published content and share it instantly with third-party services |
298
|
|
|
like search engines, increasing your reach and traffic.' |
299
|
|
|
, 'jetpack' ); |
300
|
|
|
} |
301
|
|
|
add_action( 'jetpack_module_more_info_enhanced-distribution', 'jetpack_enhanced_distribution_more_info' ); |
302
|
|
|
|
303
|
|
|
|
304
|
|
|
/** |
305
|
|
|
* Protect |
306
|
|
|
*/ |
307
|
|
|
function jetpack_protect_more_link() { |
308
|
|
|
echo 'https://jetpack.com/support/protect/'; |
309
|
|
|
} |
310
|
|
|
add_action( 'jetpack_learn_more_button_protect', 'jetpack_protect_more_link' ); |
311
|
|
|
|
312
|
|
|
function jetpack_protect_more_info() { |
313
|
|
|
esc_html_e( |
314
|
|
|
'Most sites will come under attack from automated bots that attempt to log in for malicious purposes |
315
|
|
|
(such as inserting inappropriate content or modifying yours). With Protect turned on, your site is automatically |
316
|
|
|
protected from unauthorized access, as we are constantly collecting and identifying malicious IP addresses from |
317
|
|
|
the millions of sites we protect. (Protect is derived from BruteProtect, and will disable BruteProtect on your |
318
|
|
|
site if it is currently enabled.)' |
319
|
|
|
, 'jetpack' ); |
320
|
|
|
} |
321
|
|
|
|
322
|
|
|
add_action( 'jetpack_module_more_info_protect', 'jetpack_protect_more_info' ); |
323
|
|
|
|
324
|
|
|
/** |
325
|
|
|
* JSON API |
326
|
|
|
*/ |
327
|
|
|
function jetpack_json_api_more_link() { |
328
|
|
|
echo 'https://jetpack.com/support/json-api/'; |
329
|
|
|
} |
330
|
|
|
add_action( 'jetpack_learn_more_button_json-api', 'jetpack_json_api_more_link' ); |
331
|
|
|
|
332
|
|
|
function jetpack_json_api_more_info() { |
333
|
|
|
esc_html_e( |
334
|
|
|
'Jetpack will allow you to authorize applications and services to securely connect to your site, allow them |
335
|
|
|
to use your content in new ways, and offer you new functionality. Developers can use WordPress.com\'s OAuth2 |
336
|
|
|
authentication system and WordPress.com REST API to manage and access your site\'s content.' |
337
|
|
|
, 'jetpack' ); |
338
|
|
|
} |
339
|
|
|
add_action( 'jetpack_module_more_info_json-api', 'jetpack_json_api_more_info' ); |
340
|
|
|
|
341
|
|
|
|
342
|
|
|
/** |
343
|
|
|
* Contact Form |
344
|
|
|
*/ |
345
|
|
|
function jetpack_contact_form_learn_more_button() { |
346
|
|
|
echo 'https://jetpack.com/support/contact-form/'; |
347
|
|
|
} |
348
|
|
|
add_action( 'jetpack_learn_more_button_contact-form', 'jetpack_contact_form_learn_more_button' ); |
349
|
|
|
|
350
|
|
View Code Duplication |
function jetpack_contact_form_more_info() { ?> |
|
|
|
|
351
|
|
|
<div class="jp-info-img"> |
352
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/contactform.jpg' ) ?>" alt="<?php esc_attr_e( 'Contact Form', 'jetpack' ) ?>" width="300" height="150" /> |
353
|
|
|
</div> |
354
|
|
|
|
355
|
|
|
<?php esc_html_e( |
356
|
|
|
'Offer your readers the ability to get in touch without publishing your personal email address. |
357
|
|
|
You can have multiple forms on your site and customize each one to fit specific needs. |
358
|
|
|
When a user submits your contact form, their feedback will be emailed to you and added to |
359
|
|
|
your feedback management area. If you have Akismet active on your site, submissions will be |
360
|
|
|
automatically filtered for spam. ' |
361
|
|
|
, 'jetpack' ); |
362
|
|
|
} |
363
|
|
|
add_action( 'jetpack_module_more_info_contact-form', 'jetpack_contact_form_more_info' ); |
364
|
|
|
|
365
|
|
|
|
366
|
|
|
/** |
367
|
|
|
* Comments |
368
|
|
|
*/ |
369
|
|
|
function jetpack_comments_learn_more_button() { |
370
|
|
|
echo 'https://jetpack.com/support/comments'; |
371
|
|
|
} |
372
|
|
|
add_action( 'jetpack_learn_more_button_comments', 'jetpack_comments_learn_more_button' ); |
373
|
|
|
|
374
|
|
View Code Duplication |
function jetpack_comments_more_info() { ?> |
|
|
|
|
375
|
|
|
<div class="jp-info-img"> |
376
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/comments.jpg' ) ?>" alt="<?php esc_attr_e( 'Comments Screenshot', 'jetpack' ) ?>" width="300" height="150" /> |
377
|
|
|
</div> |
378
|
|
|
|
379
|
|
|
<?php esc_html_e( |
380
|
|
|
'Comments enables your visitors to use their WordPress.com, Twitter, or Facebook accounts when commenting on |
381
|
|
|
your site. Jetpack tries to match your site\'s color scheme automatically, but you can make manual adjustments |
382
|
|
|
at the bottom of the Discussion Settings page.' |
383
|
|
|
, 'jetpack' ); |
384
|
|
|
} |
385
|
|
|
add_action( 'jetpack_module_more_info_comments', 'jetpack_comments_more_info' ); |
386
|
|
|
|
387
|
|
|
/** |
388
|
|
|
* Carousel |
389
|
|
|
*/ |
390
|
|
|
function jetpack_carousel_learn_more_button() { |
391
|
|
|
echo 'https://jetpack.com/support/carousel'; |
392
|
|
|
} |
393
|
|
|
add_action( 'jetpack_learn_more_button_carousel', 'jetpack_carousel_learn_more_button' ); |
394
|
|
|
|
395
|
|
View Code Duplication |
function jetpack_carousel_more_info() { ?> |
|
|
|
|
396
|
|
|
<div class="jp-info-img"> |
397
|
|
|
<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" /> |
398
|
|
|
</div> |
399
|
|
|
|
400
|
|
|
<?php esc_html_e( |
401
|
|
|
'With Carousel active, any standard WordPress galleries you have embedded in posts or pages will |
402
|
|
|
launch a full-screen photo browsing experience with comments and EXIF metadata.' |
403
|
|
|
, 'jetpack' ); ?> |
404
|
|
|
<?php |
405
|
|
|
} |
406
|
|
|
add_action( 'jetpack_module_more_info_carousel', 'jetpack_carousel_more_info' ); |
407
|
|
|
|
408
|
|
|
/** |
409
|
|
|
* Custom CSS |
410
|
|
|
*/ |
411
|
|
|
function jetpack_custom_css_more_button() { |
412
|
|
|
echo 'https://jetpack.com/support/custom-css'; |
413
|
|
|
} |
414
|
|
|
add_action( 'jetpack_learn_more_button_custom-css', 'jetpack_custom_css_more_button' ); |
415
|
|
|
|
416
|
|
View Code Duplication |
function jetpack_custom_css_more_info() { ?> |
|
|
|
|
417
|
|
|
<div class="jp-info-img"> |
418
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/custom-css.jpg' ) ?>" alt="<?php esc_attr_e( 'Custom CSS', 'jetpack' ) ?>" width="300" height="150" /> |
419
|
|
|
</div> |
420
|
|
|
<?php esc_html_e( |
421
|
|
|
"The Custom CSS editor lets you add to or replace your theme's CSS, while supplying syntax coloring, |
422
|
|
|
auto-indentation, and immediate feedback on the validity of the CSS you're writing. |
423
|
|
|
You can also add mobile styles, and we support the CSS preprocessors LESS and Sass." |
424
|
|
|
, 'jetpack' ); |
425
|
|
|
} |
426
|
|
|
add_action( 'jetpack_module_more_info_custom-css', 'jetpack_custom_css_more_info' ); |
427
|
|
|
|
428
|
|
|
/** |
429
|
|
|
* Mobile Theme |
430
|
|
|
*/ |
431
|
|
|
function jetpack_minileven_more_button() { |
432
|
|
|
echo 'https://jetpack.com/support/mobile-theme'; |
433
|
|
|
} |
434
|
|
|
add_action( 'jetpack_learn_more_button_minileven', 'jetpack_minileven_more_button' ); |
435
|
|
|
|
436
|
|
View Code Duplication |
function jetpack_minileven_more_info() { ?> |
|
|
|
|
437
|
|
|
<div class="jp-info-img"> |
438
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/mobile-theme.jpg' ) ?>" alt="<?php esc_attr_e( 'Mobile Theme', 'jetpack' ) ?>" width="300" height="150" /> |
439
|
|
|
</div> |
440
|
|
|
|
441
|
|
|
<?php esc_html_e( |
442
|
|
|
"There's a good chance that visitors to your site will be using a smartphone, |
443
|
|
|
and it's important to provide them with a great reading experience while on the small screen. |
444
|
|
|
Visitors on iPhone, Android, Windows Phone, and other mobile devices will automatically see your site |
445
|
|
|
optimized for mobile with an option to view the full site. Jetpack's mobile theme uses the header image, |
446
|
|
|
background, and widgets from your current theme for a beautiful mobile look. Post format support is included, |
447
|
|
|
so your photos and galleries will also look fantastic." |
448
|
|
|
, 'jetpack' ); |
449
|
|
|
} |
450
|
|
|
add_action( 'jetpack_module_more_info_minileven', 'jetpack_minileven_more_info' ); |
451
|
|
|
|
452
|
|
|
/** |
453
|
|
|
* Infinite Scroll |
454
|
|
|
*/ |
455
|
|
|
function jetpack_infinite_scroll_more_button() { |
456
|
|
|
echo 'https://jetpack.com/support/infinite-scroll'; |
457
|
|
|
} |
458
|
|
|
add_action( 'jetpack_learn_more_button_infinite-scroll', 'jetpack_infinite_scroll_more_button' ); |
459
|
|
|
|
460
|
|
|
function jetpack_infinite_scroll_more_info() { |
461
|
|
|
esc_html_e( |
462
|
|
|
'With this feature (and a supported theme), you can get your content in front of visitors faster. |
463
|
|
|
Instead of the old way of scrolling down a page, clicking a link to get to the next page, |
464
|
|
|
and then waiting for the page to load, infinite scrolling pulls the next set of posts |
465
|
|
|
automatically into view when the reader approaches the bottom of the page.' |
466
|
|
|
, 'jetpack' ); |
467
|
|
|
} |
468
|
|
|
add_action( 'jetpack_module_more_info_infinite-scroll', 'jetpack_infinite_scroll_more_info' ); |
469
|
|
|
|
470
|
|
|
/** |
471
|
|
|
* Post by Email |
472
|
|
|
*/ |
473
|
|
|
function jetpack_post_by_email_more_link() { |
474
|
|
|
echo 'https://jetpack.com/support/post-by-email/'; |
475
|
|
|
} |
476
|
|
|
add_action( 'jetpack_learn_more_button_post-by-email', 'jetpack_post_by_email_more_link' ); |
477
|
|
|
|
478
|
|
View Code Duplication |
function jetpack_post_by_email_more_info() { ?> |
|
|
|
|
479
|
|
|
<div class="jp-info-img"> |
480
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/post-by-email.jpg' ) ?>" alt="<?php esc_attr_e( 'Post by Email', 'jetpack' ) ?>" width="300" height="115" /> |
481
|
|
|
</div> |
482
|
|
|
|
483
|
|
|
<?php esc_html_e( |
484
|
|
|
'With Post by Email, you can publish posts on your site by sending an email instead of using the post editor. |
485
|
|
|
Any email client can be used to send the email (such as GMail, Outlook, and Apple Mail), which allows you to |
486
|
|
|
publish on the go right from your smartphone or tablet.' |
487
|
|
|
, 'jetpack' ); |
488
|
|
|
} |
489
|
|
|
add_action( 'jetpack_module_more_info_post-by-email', 'jetpack_post_by_email_more_info' ); |
490
|
|
|
|
491
|
|
|
/** |
492
|
|
|
* Photon |
493
|
|
|
*/ |
494
|
|
|
function jetpack_photon_more_link() { |
495
|
|
|
echo 'https://jetpack.com/support/photon'; |
496
|
|
|
} |
497
|
|
|
add_action( 'jetpack_learn_more_button_photon', 'jetpack_photon_more_link' ); |
498
|
|
|
|
499
|
|
|
function jetpack_photon_more_info() { |
500
|
|
|
esc_html_e( |
501
|
|
|
"With Photon activated, we cache your images and serve them from our super-fast, global network, |
502
|
|
|
reducing the burden on your web host and making your site load faster for your visitors. |
503
|
|
|
Your images are automatically optimized for different display resolutions to serve the best |
504
|
|
|
possible image quality at the fastest speed depending on whether a visitor browses your site |
505
|
|
|
from desktop, tablet, or mobile devices." |
506
|
|
|
, 'jetpack' ); |
507
|
|
|
} |
508
|
|
|
add_action( 'jetpack_module_more_info_photon', 'jetpack_photon_more_info' ); |
509
|
|
|
|
510
|
|
|
/** |
511
|
|
|
* Tiled Galleries |
512
|
|
|
*/ |
513
|
|
|
function jetpack_tiled_gallery_more_link() { |
514
|
|
|
echo 'https://jetpack.com/support/tiled-galleries/'; |
515
|
|
|
} |
516
|
|
|
add_action( 'jetpack_learn_more_button_tiled-gallery', 'jetpack_tiled_gallery_more_link' ); |
517
|
|
|
|
518
|
|
View Code Duplication |
function jetpack_tiled_gallery_more_info() { ?> |
|
|
|
|
519
|
|
|
<div class="jp-info-img"> |
520
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/tiled-gallery.jpg' ) ?>" alt="<?php esc_attr_e( 'Tiled Galleries', 'jetpack' ) ?>" width="300" height="150" /> |
521
|
|
|
</div> |
522
|
|
|
|
523
|
|
|
<?php esc_html_e( |
524
|
|
|
'Create elegant magazine-style mosaic layouts for your photos without having to use an external graphics editor. |
525
|
|
|
When adding a gallery to your post, you will have the option to select a layout style for your images |
526
|
|
|
including mosaic, square, and circular layouts. You can also choose to make all galleries display as mosaic by default.' |
527
|
|
|
, 'jetpack' ); |
528
|
|
|
} |
529
|
|
|
add_action( 'jetpack_module_more_info_tiled-gallery', 'jetpack_tiled_gallery_more_info' ); |
530
|
|
|
|
531
|
|
|
/** |
532
|
|
|
* Likes |
533
|
|
|
*/ |
534
|
|
|
function jetpack_likes_more_link() { |
535
|
|
|
echo 'https://jetpack.com/support/likes/'; |
536
|
|
|
} |
537
|
|
|
add_action( 'jetpack_learn_more_button_likes', 'jetpack_likes_more_link' ); |
538
|
|
|
|
539
|
|
View Code Duplication |
function jetpack_likes_more_info() { ?> |
|
|
|
|
540
|
|
|
<div class="jp-info-img"> |
541
|
|
|
<a href="http://jetpack.com/support/likes/" target="_blank"> |
542
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/likes.jpg' ) ?>" alt="<?php esc_attr_e( 'Likes', 'jetpack' ) ?>" width="323" height="69" /> |
543
|
|
|
</a> |
544
|
|
|
</div> |
545
|
|
|
|
546
|
|
|
<?php esc_html_e( |
547
|
|
|
'Likes allow your readers to show their appreciation for your posts and other published content using their |
548
|
|
|
WordPress.com accounts. You will see your likes below each post, as well as the Gravatars of the people who |
549
|
|
|
have liked them. Your readers will also be able to review their liked posts from WordPress.com.' |
550
|
|
|
, 'jetpack' ); |
551
|
|
|
} |
552
|
|
|
add_action( 'jetpack_module_more_info_likes', 'jetpack_likes_more_info' ); |
553
|
|
|
|
554
|
|
|
/** |
555
|
|
|
* Omnisearch |
556
|
|
|
*/ |
557
|
|
|
function jetpack_omnisearch_more_link() { |
558
|
|
|
echo 'https://jetpack.com/support/omnisearch/'; |
559
|
|
|
} |
560
|
|
|
add_action( 'jetpack_learn_more_button_omnisearch', 'jetpack_omnisearch_more_link' ); |
561
|
|
|
|
562
|
|
|
function jetpack_omnisearch_more_info() { |
563
|
|
|
esc_html_e( |
564
|
|
|
'A search to rule them all: search once, get results from everything! Omnisearch supports searching posts, |
565
|
|
|
pages, comments, media, and plugins and plays nice with other plugins by letting other providers offer |
566
|
|
|
results as well.' |
567
|
|
|
, 'jetpack' ); |
568
|
|
|
} |
569
|
|
|
add_action( 'jetpack_module_more_info_omnisearch', 'jetpack_omnisearch_more_info' ); |
570
|
|
|
|
571
|
|
|
/** |
572
|
|
|
* Widget Visibility |
573
|
|
|
*/ |
574
|
|
|
function jetpack_widget_visibility_more_link() { |
575
|
|
|
echo 'https://jetpack.com/support/widget-visibility/'; |
576
|
|
|
} |
577
|
|
|
add_action( 'jetpack_learn_more_button_widget-visibility', 'jetpack_widget_visibility_more_link' ); |
578
|
|
|
|
579
|
|
|
function jetpack_widget_visibility_more_info() { |
580
|
|
|
esc_html_e( |
581
|
|
|
'Easily control where to show or hide widgets on your site. For any widget on your site, |
582
|
|
|
you can choose a set of visibility options such as showing them only certain categories, |
583
|
|
|
only on error pages, or only search results pages. You can also do the reverse and |
584
|
|
|
choose to hide them on certain pages.' |
585
|
|
|
, 'jetpack' ); ?> |
586
|
|
|
<?php |
587
|
|
|
} |
588
|
|
|
add_action( 'jetpack_module_more_info_widget-visibility', 'jetpack_widget_visibility_more_info' ); |
589
|
|
|
|
590
|
|
|
/** |
591
|
|
|
* VideoPress |
592
|
|
|
*/ |
593
|
|
|
function jetpack_videopress_more_link() { |
594
|
|
|
echo 'https://jetpack.com/support/videopress/'; |
595
|
|
|
} |
596
|
|
|
add_action( 'jetpack_learn_more_button_videopress', 'jetpack_videopress_more_link' ); |
597
|
|
|
|
598
|
|
|
function jetpack_videopress_more_info() { |
599
|
|
|
esc_html_e( |
600
|
|
|
'VideoPress was designed specifically for WordPress, making it the easiest way to upload videos to your site. |
601
|
|
|
Ad-free and unbranded, VideoPress keeps traffic on your site. You get rich stats on how many times a video |
602
|
|
|
has been played and where it’s been shared. It’s also lightweight and responsive, which means you can add and |
603
|
|
|
play videos just as well from your phone or tablet.' |
604
|
|
|
, 'jetpack' ); |
605
|
|
|
} |
606
|
|
|
add_action( 'jetpack_module_more_info_videopress', 'jetpack_videopress_more_info' ); |
607
|
|
|
|
608
|
|
|
/** |
609
|
|
|
* SSO |
610
|
|
|
*/ |
611
|
|
|
function jetpack_sso_more_link() { |
612
|
|
|
echo 'https://jetpack.com/support/sso/'; |
613
|
|
|
} |
614
|
|
|
add_action( 'jetpack_learn_more_button_sso', 'jetpack_sso_more_link' ); |
615
|
|
|
|
616
|
|
|
function jetpack_sso_more_info() { |
617
|
|
|
esc_html_e( |
618
|
|
|
'Your users will be able to log in to or register for your WordPress site with the same credentials they use |
619
|
|
|
on WordPress.com. Once enabled, a "Log in with WordPress.com" option will be added to your existing login form. |
620
|
|
|
It\'s safe and secure.' |
621
|
|
|
, 'jetpack' ); |
622
|
|
|
} |
623
|
|
|
add_action( 'jetpack_module_more_info_sso', 'jetpack_sso_more_info' ); |
624
|
|
|
|
625
|
|
|
/** |
626
|
|
|
* Monitor |
627
|
|
|
*/ |
628
|
|
|
function jetpack_monitor_more_link() { |
629
|
|
|
echo 'https://jetpack.com/support/monitor/'; |
630
|
|
|
} |
631
|
|
|
add_action( 'jetpack_learn_more_button_monitor', 'jetpack_monitor_more_link' ); |
632
|
|
|
|
633
|
|
|
function jetpack_monitor_more_info() { |
634
|
|
|
esc_html_e( |
635
|
|
|
'Nobody likes downtime, and that\'s why Jetpack Monitor is on the job, keeping tabs on your site by checking |
636
|
|
|
it every five minutes. As soon as any downtime is detected, you will receive an email notification alerting |
637
|
|
|
you to the issue, so you can act quickly and get your site back online. We’ll let you know as soon as your |
638
|
|
|
site is up and running again so you can keep an eye on total downtime.' |
639
|
|
|
, 'jetpack' ); |
640
|
|
|
} |
641
|
|
|
add_action( 'jetpack_module_more_info_monitor', 'jetpack_monitor_more_info' ); |
642
|
|
|
|
643
|
|
|
/** |
644
|
|
|
* Related Posts |
645
|
|
|
*/ |
646
|
|
|
function jetpack_related_posts_more_button() { |
647
|
|
|
echo 'https://jetpack.com/support/related-posts/'; |
648
|
|
|
} |
649
|
|
|
add_action( 'jetpack_learn_more_button_related-posts', 'jetpack_related_posts_more_button' ); |
650
|
|
|
|
651
|
|
|
function jetpack_related_posts_more_info() { |
652
|
|
|
esc_html_e( |
653
|
|
|
'Keep visitors engaged and show them relevant links from your site at the bottom of your posts. Give visitors |
654
|
|
|
the options to browse more of your content, explore your site further, and transform them into regular readers.' |
655
|
|
|
, 'jetpack' ); |
656
|
|
|
} |
657
|
|
|
add_action( 'jetpack_module_more_info_related-posts', 'jetpack_related_posts_more_info' ); |
658
|
|
|
|
659
|
|
|
/** |
660
|
|
|
* Markdown |
661
|
|
|
*/ |
662
|
|
|
function jetpack_markdown_more_link() { |
663
|
|
|
echo 'https://jetpack.com/support/markdown/'; |
664
|
|
|
} |
665
|
|
|
add_action( 'jetpack_learn_more_button_markdown', 'jetpack_markdown_more_link' ); |
666
|
|
|
|
667
|
|
|
function jetpack_markdown_more_info() { |
668
|
|
|
esc_html_e( |
669
|
|
|
'Markdown lets you compose posts and comments with links, lists, and other styles using regular characters and |
670
|
|
|
punctuation marks. Markdown is used by writers and bloggers who want a quick and easy way to write rich text, |
671
|
|
|
without having to take their hands off the keyboard or learn a lot of complicated codes and shortcuts.' |
672
|
|
|
, 'jetpack' ); |
673
|
|
|
} |
674
|
|
|
add_action( 'jetpack_module_more_info_markdown', 'jetpack_markdown_more_info' ); |
675
|
|
|
|
676
|
|
|
/** |
677
|
|
|
* Site Verification Tools |
678
|
|
|
*/ |
679
|
|
|
function jetpack_verification_tools_more_link() { |
680
|
|
|
echo 'https://support.wordpress.com/webmaster-tools/'; |
681
|
|
|
} |
682
|
|
|
add_action( 'jetpack_learn_more_button_verification-tools', 'jetpack_verification_tools_more_link' ); |
683
|
|
|
|
684
|
|
|
function jetpack_verification_tools_more_info() { |
685
|
|
|
esc_html_e( |
686
|
|
|
'Use these tools to verify that you own and control your website with external services like Google, Bing, |
687
|
|
|
and Pinterest. Verifying your site allows you to access advanced features on these other services |
688
|
|
|
(e.g. Webmaster tools, Google Search Console) or to get a verified badge to display and establish your site’s authenticity.' |
689
|
|
|
, 'jetpack' ); |
690
|
|
|
} |
691
|
|
|
add_action( 'jetpack_module_more_info_verification-tools', 'jetpack_verification_tools_more_info' ); |
692
|
|
|
|
693
|
|
|
/** |
694
|
|
|
* Custom Content Types |
695
|
|
|
*/ |
696
|
|
|
function jetpack_custom_content_types_more_link() { |
697
|
|
|
echo 'https://jetpack.com/support/custom-content-types/'; |
698
|
|
|
} |
699
|
|
|
add_action( 'jetpack_learn_more_button_custom-content-types', 'jetpack_custom_content_types_more_link' ); |
700
|
|
|
|
701
|
|
View Code Duplication |
function jetpack_custom_content_types_more_info() { ?> |
|
|
|
|
702
|
|
|
<div class="jp-info-img"> |
703
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/custom-content-types.jpg' ) ?>" alt="<?php esc_attr_e( 'Custom Content Type', 'jetpack' ) ?>" width="300" height="150" /> |
704
|
|
|
</div> |
705
|
|
|
|
706
|
|
|
<?php esc_html_e( |
707
|
|
|
'This feature allows you to add and organize content that doesn’t necessarily fit into a post or static page. |
708
|
|
|
For example, the Portfolio type gives you an easy way to manage and showcase projects on your site, while the |
709
|
|
|
Testimonial type allows you to add, organize, and display customer testimonials. Once created, your custom |
710
|
|
|
content can be visible at specific URLs, or you may add them with shortcodes.' |
711
|
|
|
, 'jetpack' ); |
712
|
|
|
} |
713
|
|
|
add_action( 'jetpack_module_more_info_custom-content-types', 'jetpack_custom_content_types_more_info' ); |
714
|
|
|
|
715
|
|
|
/** |
716
|
|
|
* Site Icon |
717
|
|
|
*/ |
718
|
|
|
function jetpack_site_icon_more_link() { |
719
|
|
|
echo 'https://jetpack.com/support/site-icon'; |
720
|
|
|
} |
721
|
|
|
add_action( 'jetpack_learn_more_button_site-icon', 'jetpack_site_icon_more_link' ); |
722
|
|
|
|
723
|
|
|
function jetpack_custom_site_icon() { |
724
|
|
|
esc_html_e( 'Site Icon can now be found in WordPress core!', 'jetpack' ); |
725
|
|
|
} |
726
|
|
|
add_action( 'jetpack_module_more_info_site-icon', 'jetpack_custom_site_icon' ); |
727
|
|
|
|
728
|
|
|
/** |
729
|
|
|
* Manage |
730
|
|
|
*/ |
731
|
|
|
function jetpack_manage_more_link() { |
732
|
|
|
echo 'https://jetpack.com/support/site-management/'; |
733
|
|
|
} |
734
|
|
|
add_action( 'jetpack_learn_more_button_manage', 'jetpack_manage_more_link' ); |
735
|
|
|
|
736
|
|
View Code Duplication |
function jetpack_custom_jetpack_manage() { ?> |
|
|
|
|
737
|
|
|
<div class="jp-info-img"> |
738
|
|
|
<img class="jp-info-img" src="<?php echo plugins_url( basename( dirname( dirname( __FILE__ ) ) ) . '/images/screenshots/manage.jpg' ) ?>" alt="<?php esc_attr_e( 'Manage all of your WordPress sites, self-hosted or not, from WordPress.com', 'jetpack' ) ?>" width="300" height="150" /> |
739
|
|
|
</div> |
740
|
|
|
|
741
|
|
|
<?php esc_html_e( |
742
|
|
|
'Manage and update this and other WordPress sites from one simple dashboard on WordPress.com. You can update |
743
|
|
|
plugins, set them to automatically update, and (de)activate them on a per-site basis or in bulk from |
744
|
|
|
wordpress.com/plugins. You can also use the brand new and mobile-friendly post editor on WordPress.com as well |
745
|
|
|
as view and activate installed themes and create or edit site menus.' |
746
|
|
|
, 'jetpack' ); |
747
|
|
|
} |
748
|
|
|
add_action( 'jetpack_module_more_info_manage', 'jetpack_custom_jetpack_manage' ); |
749
|
|
|
|
750
|
|
|
// XML Sitemap: START |
751
|
|
|
function jetpack_sitemaps_more_link() { |
752
|
|
|
echo 'https://jetpack.com/support/sitemaps/'; |
753
|
|
|
} |
754
|
|
|
add_action( 'jetpack_learn_more_button_sitemaps', 'jetpack_sitemaps_more_link' ); |
755
|
|
|
|
756
|
|
|
function jetpack_xml_sitemap_more_info() { |
757
|
|
|
esc_html_e( |
758
|
|
|
'Search engines like Google and Bing use sitemaps to crawl and understand your site making |
759
|
|
|
it more likely for your content to show up on relevant searches. This feature creates two |
760
|
|
|
sitemap files that list the URLs of posts and pages in your site with important information about each one.' |
761
|
|
|
, 'jetpack' ); |
762
|
|
|
} |
763
|
|
|
add_action( 'jetpack_module_more_info_sitemaps', 'jetpack_xml_sitemap_more_info' ); |
764
|
|
|
// XML Sitemap: STOP |
765
|
|
|
|
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.