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