Changeset 26316
- Timestamp:
- 11/22/2013 02:33:19 AM (12 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/theme.php
r26282 r26316 406 406 'screenshot' => array( $theme->get_screenshot() ), // @todo multiple 407 407 'description' => $theme->display( 'Description' ), 408 'author' => $theme->get( 'Author' ), 409 'authorURI' => $theme->get( 'AuthorURI' ), 410 'version' => $theme->get( 'Version' ), 411 'tags' => $theme->get( 'Tags' ), 408 'author' => $theme->display( 'Author' ), 409 'version' => $theme->display( 'Version' ), 410 'tags' => $theme->display( 'Tags' ), 412 411 'parent' => $parent, 413 412 'active' => $slug === $current_theme, -
trunk/src/wp-admin/themes.php
r26314 r26316 216 216 <img src="{{ data.screenshot[0] }}" alt="" /> 217 217 </div> 218 <div class="theme-author"><?php printf( __( 'By %s' ), '{{ data.author}}' ); ?></div>218 <div class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></div> 219 219 <h3 class="theme-name">{{ data.name }}</h3> 220 220 <div class="theme-actions"> … … 267 267 <span class="current-label"><?php _e( 'Current Theme' ); ?></span> 268 268 <# } #> 269 <h3 class="theme-name">{{ data.name }}<span class="theme-version"><?php _e('Version: '); ?> {{ data.version }}</span></h3> 270 <# if ( data.authorURI ) { #> 271 <h4 class="theme-author"><?php printf( __( 'By %s' ), '<a href="{{ data.authorURI }}">{{ data.author }}</a>' ); ?></h4> 272 <# } else { #> 273 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{ data.author }}' ); ?></h4> 274 <# } #> 269 <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span></h3> 270 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></h4> 275 271 276 272 <# if ( data.hasUpdate ) { #> … … 283 279 284 280 <# if ( data.parent ) { #> 285 <p class="parent-theme"><?php printf( __( 'This is a child theme of <strong>%s</strong>.' ), '{{ data.parent}}' ); ?></p>281 <p class="parent-theme"><?php printf( __( 'This is a child theme of <strong>%s</strong>.' ), '{{{ data.parent }}}' ); ?></p> 286 282 <# } #> 287 283 288 <# if ( data.tags .length !== 0) { #>284 <# if ( data.tags ) { #> 289 285 <p class="theme-tags"> 290 286 <span><?php _e( 'Tags:' ); ?></span> 291 {{{ data.tags. join( ', ' ).replace( /-/g, ' ' ) }}}287 {{{ data.tags.replace( /-/g, ' ' ) }}} 292 288 </p> 293 289 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.