Changeset 7072 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 04/10/2018 02:42:42 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r7048 r7072 390 390 if ( ! $icon || 'publish' !== $plugin->post_status ) { 391 391 $generated = true; 392 $icon = self::get_geopattern_icon_url( $plugin );392 $icon = $svg = self::get_geopattern_icon_url( $plugin ); 393 393 } 394 394 … … 441 441 * 442 442 * @param int|\WP_Post|null $post Optional. Post ID or post object. Defaults to global $post. 443 * @param string $output Optional. Output type. 'html' or 'raw'. Default: 'raw'.443 * @param string $output Optional. Output type. 'html', 'raw', or 'raw_with_rtl'. Default: 'raw'. 444 444 * @return mixed 445 445 */ … … 473 473 } 474 474 475 if ( is_rtl() ) {475 if ( is_rtl() || 'raw_with_rtl' == $output ) { 476 476 foreach ( $rtl_banners as $info ) { 477 477 switch ( $info['resolution'] ) { 478 478 case '1544x500': 479 $banner_2x = self::get_asset_url( $plugin, $info ); 479 $field = 'raw_with_rtl' == $output ? 'banner_2x_rtl' : 'banner_2x'; 480 $$field = self::get_asset_url( $plugin, $info ); 480 481 break; 481 482 482 483 case '772x250': 483 $banner = self::get_asset_url( $plugin, $info ); 484 $field = 'raw_with_rtl' == $output ? 'banner_rtl' : 'banner'; 485 $$field = self::get_asset_url( $plugin, $info ); 484 486 break; 485 487 } … … 506 508 507 509 case 'raw': 510 case 'raw_with_rtl': 508 511 default: 509 return compact( 'banner', 'banner_2x' );512 return compact( 'banner', 'banner_2x', 'banner_rtl', 'banner_2x_rtl' ); 510 513 } 511 514 }
Note: See TracChangeset
for help on using the changeset viewer.