| @@ 122-130 (lines=9) @@ | ||
| 119 | * @return html |
|
| 120 | */ |
|
| 121 | function setting_html() { |
|
| 122 | if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?> |
|
| 123 | <p><?php printf( __( 'Your theme supports <strong>%s</strong>', 'jetpack' ), self::CUSTOM_POST_TYPE ); ?></p> |
|
| 124 | <?php else : ?> |
|
| 125 | <label for="<?php echo esc_attr( self::OPTION_NAME ); ?>"> |
|
| 126 | <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" /> |
|
| 127 | <?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?> |
|
| 128 | <a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> |
|
| 129 | </label> |
|
| 130 | <?php endif; |
|
| 131 | if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) : |
|
| 132 | printf( '<p><label for="%1$s">%2$s</label></p>', |
|
| 133 | esc_attr( self::OPTION_READING_SETTING ), |
|
| @@ 150-158 (lines=9) @@ | ||
| 147 | * @return html |
|
| 148 | */ |
|
| 149 | function setting_html() { |
|
| 150 | if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?> |
|
| 151 | <p><?php printf( __( 'Your theme supports Testimonials', 'jetpack' ) ); ?></p> |
|
| 152 | <?php else : ?> |
|
| 153 | <label for="<?php echo esc_attr( self::OPTION_NAME ); ?>"> |
|
| 154 | <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" /> |
|
| 155 | <?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?> |
|
| 156 | <a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> |
|
| 157 | </label> |
|
| 158 | <?php endif; |
|
| 159 | ||
| 160 | if ( $this->site_supports_custom_post_type() ) : |
|
| 161 | printf( '<p><label for="%1$s">%2$s</label></p>', |
|