Changeset 3602 for sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
- Timestamp:
- 06/28/2016 09:57:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-post-types/wc-post-types.php
r3361 r3602 19 19 add_action( 'init', array( $this, 'register_taxonomies' ) ); 20 20 add_action( 'init', array( $this, 'init' ) ); 21 add_action( 'after_theme_setup', array( $this, 'add_image_sizes' ) ); 21 22 22 23 add_action( 'admin_init', array( $this, 'admin_init' ) ); … … 80 81 81 82 add_action( "admin_print_scripts-$page", array( $this, 'enqueue_order_sponsor_levels_scripts' ) ); 83 } 84 85 /** 86 * Add custom image sizes 87 */ 88 function add_image_sizes() { 89 add_image_size( 'wcb-sponsor-logo-horizontal-2x', 600, 220, false ); 82 90 } 83 91 … … 1098 1106 <div class="wcorg-sponsor-description"> 1099 1107 <?php if ( 'website' == $attr['link'] && $website ) : ?> 1100 <a href="<?php echo esc_attr( esc_url( $website ) ); ?>"><?php the_post_thumbnail(); ?></a> 1108 <a href="<?php echo esc_attr( esc_url( $website ) ); ?>"> 1109 <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ); ?> 1110 </a> 1101 1111 <?php else : ?> 1102 <?php the_post_thumbnail( ); ?>1112 <?php the_post_thumbnail( 'wcb-sponsor-logo-horizontal-2x' ); ?> 1103 1113 <?php endif; ?> 1104 1114
Note:
See TracChangeset
for help on using the changeset viewer.