@@ 265-274 (lines=10) @@ | ||
262 | * Prints HTML for the Writing setting |
|
263 | * @return null |
|
264 | */ |
|
265 | public function post_field() { |
|
266 | printf( |
|
267 | '<label><input name="%s" id="%s" type="checkbox"%s /> %s</label><p class="description">%s</p>', |
|
268 | self::POST_OPTION, |
|
269 | self::POST_OPTION, |
|
270 | checked( $this->is_posting_enabled(), true, false ), |
|
271 | esc_html__( 'Use Markdown for posts and pages.', 'jetpack' ), |
|
272 | sprintf( '<a href="%s">%s</a>', esc_url( $this->get_support_url() ), esc_html__( 'Learn more about Markdown.', 'jetpack' ) ) |
|
273 | ); |
|
274 | } |
|
275 | ||
276 | /** |
|
277 | * Prints HTML for the Discussion setting |
|
@@ 280-289 (lines=10) @@ | ||
277 | * Prints HTML for the Discussion setting |
|
278 | * @return null |
|
279 | */ |
|
280 | public function comment_field() { |
|
281 | printf( |
|
282 | '<label><input name="%s" id="%s" type="checkbox"%s /> %s</label><p class="description">%s</p>', |
|
283 | self::COMMENT_OPTION, |
|
284 | self::COMMENT_OPTION, |
|
285 | checked( $this->is_commenting_enabled(), true, false ), |
|
286 | esc_html__( 'Use Markdown for comments.', 'jetpack' ), |
|
287 | sprintf( '<a href="%s">%s</a>', esc_url( $this->get_support_url() ), esc_html__( 'Learn more about Markdown.', 'jetpack' ) ) |
|
288 | ); |
|
289 | } |
|
290 | ||
291 | /** |
|
292 | * Get the support url for Markdown |