| @@ 149-157 (lines=9) @@ | ||
| 146 | * @return html |
|
| 147 | */ |
|
| 148 | function setting_html() { |
|
| 149 | if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?> |
|
| 150 | <p><?php printf( __( 'Your theme supports Testimonials', 'jetpack' ) ); ?></p> |
|
| 151 | <?php else : ?> |
|
| 152 | <label for="<?php echo esc_attr( self::OPTION_NAME ); ?>"> |
|
| 153 | <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" /> |
|
| 154 | <?php esc_html_e( 'Enable Testimonials for this site.', 'jetpack' ); ?> |
|
| 155 | <a target="_blank" href="http://en.support.wordpress.com/testimonials/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> |
|
| 156 | </label> |
|
| 157 | <?php endif; |
|
| 158 | ||
| 159 | if ( $this->site_supports_custom_post_type() ) : |
|
| 160 | printf( '<p><label for="%1$s">%2$s</label></p>', |
|
| @@ 134-142 (lines=9) @@ | ||
| 131 | * @return html |
|
| 132 | */ |
|
| 133 | function setting_html() { |
|
| 134 | if ( current_theme_supports( self::CUSTOM_POST_TYPE ) ) : ?> |
|
| 135 | <p><?php printf( /* translators: %s is the name of a custom post type such as "jetpack-portfolio" */ __( 'Your theme supports <strong>%s</strong>', 'jetpack' ), self::CUSTOM_POST_TYPE ); ?></p> |
|
| 136 | <?php else : ?> |
|
| 137 | <label for="<?php echo esc_attr( self::OPTION_NAME ); ?>"> |
|
| 138 | <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" /> |
|
| 139 | <?php esc_html_e( 'Enable Portfolio Projects for this site.', 'jetpack' ); ?> |
|
| 140 | <a target="_blank" href="http://en.support.wordpress.com/portfolios/"><?php esc_html_e( 'Learn More', 'jetpack' ); ?></a> |
|
| 141 | </label> |
|
| 142 | <?php endif; |
|
| 143 | if ( get_option( self::OPTION_NAME, '0' ) || current_theme_supports( self::CUSTOM_POST_TYPE ) ) : |
|
| 144 | printf( '<p><label for="%1$s">%2$s</label></p>', |
|
| 145 | esc_attr( self::OPTION_READING_SETTING ), |
|