| @@ 114-122 (lines=9) @@ | ||
| 111 | * @return html |
|
| 112 | */ |
|
| 113 | function setting_html() { |
|
| 114 | if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?> |
|
| 115 | <p><?php printf( __( 'Your theme supports <strong>%s</strong>', 'jetpack' ), self::CUSTOM_POST_TYPE ); ?></p> |
|
| 116 | <?php else : ?> |
|
| 117 | <label for="<?php echo esc_attr( self::OPTION_NAME ); ?>"> |
|
| 118 | <input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" /> |
|
| 119 | <?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?> |
|
| 120 | <a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> |
|
| 121 | </label> |
|
| 122 | <?php endif; |
|
| 123 | if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) : |
|
| 124 | printf( '<p><label for="%1$s">%2$s</label></p>', |
|
| 125 | esc_attr( self::OPTION_READING_SETTING ), |
|
| @@ 146-154 (lines=9) @@ | ||
| 143 | * @return html |
|
| 144 | */ |
|
| 145 | function setting_html() { |
|
| 146 | if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?> |
|
| 147 | <p><?php printf( __( 'Your theme supports Testimonials', 'jetpack' ) ); ?></p> |
|
| 148 | <?php else : ?> |
|
| 149 | <label for="<?php echo esc_attr( self::OPTION_NAME ); ?>"> |
|
| 150 | <input name="<?php echo esc_attr( self::OPTION_NAME ); ?>" id="<?php echo esc_attr( self::OPTION_NAME ); ?>" <?php echo checked( get_option( self::OPTION_NAME, '0' ), true, false ); ?> type="checkbox" value="1" /> |
|
| 151 | <?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?> |
|
| 152 | <a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> |
|
| 153 | </label> |
|
| 154 | <?php endif; |
|
| 155 | ||
| 156 | if ( $this->site_supports_custom_post_type() ) : |
|
| 157 | printf( '<p><label for="%1$s">%2$s</label></p>', |
|