Changeset 3144876
- Timestamp:
- 09/01/2024 09:55:07 AM (7 months ago)
- Location:
- affiliate-coupons
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
affiliate-coupons/tags/1.7/assets/dist/css/amp.css
r3144844 r3144876 228 228 font-style: italic; 229 229 } 230 .affcoups-vendor__logo { 231 position: relative; 232 height: 60px; 233 width: auto; 230 .affcoups-vendor__logo_list { 231 position: absolute; 232 height: 40px; 234 233 z-index: 20; 235 float: right; 234 margin-left: 5%; 235 } 236 .affcoups-vendor__logo_grid { 237 position: absolute; 238 height: 40px; 239 z-index: 20; 240 margin-left: 75%; 241 margin-top: 50%; 242 } 243 .affcoups-vendor__logo_standard { 244 position: absolute; 245 height: 40px; 246 z-index: 20; 247 margin-left: 75%; 248 margin-top: 50%; 236 249 } 237 250 .affcoups-standard .affcoups-coupon { -
affiliate-coupons/tags/1.7/assets/dist/css/main.css
r3144844 r3144876 228 228 font-style: italic; 229 229 } 230 .affcoups .affcoups-vendor__logo { 231 position: relative; 232 height: 60px; 233 width: auto; 230 .affcoups .affcoups-vendor__logo_list { 231 position: absolute; 232 height: 40px; 234 233 z-index: 20; 235 float: right; 234 margin-left: 5%; 235 } 236 .affcoups .affcoups-vendor__logo_grid { 237 position: absolute; 238 height: 40px; 239 z-index: 20; 240 margin-left: 75%; 241 margin-top: 50%; 242 } 243 .affcoups .affcoups-vendor__logo_standard { 244 position: absolute; 245 height: 40px; 246 z-index: 20; 247 margin-left: 75%; 248 margin-top: 50%; 236 249 } 237 250 .affcoups .affcoups-standard .affcoups-coupon { -
affiliate-coupons/tags/1.7/assets/src/public/templates/_shared.less
r3144844 r3144876 124 124 } 125 125 126 .affcoups-vendor__logo { 127 position: relative; 128 height: 60px; 129 width: auto; 126 .affcoups-vendor__logo_list { 127 position: absolute; 128 height: 40px; 130 129 z-index: 20; 131 float: right;130 margin-left:5%; 132 131 133 132 } 133 .affcoups-vendor__logo_grid { 134 position: absolute; 135 height: 40px; 136 z-index: 20; 137 margin-left:75%; 138 margin-top: 50%; 139 } 140 .affcoups-vendor__logo_standard { 141 position: absolute; 142 height: 40px; 143 z-index: 20; 144 margin-left:75%; 145 margin-top: 50%; 146 147 } -
affiliate-coupons/tags/1.7/includes/admin/class-settings.php
r3144844 r3144876 847 847 $vendor_logo = ( isset( $this->options['vendor_logo'] ) && $this->options['vendor_logo'] == '1' ) ? 1 : 0; 848 848 $vendor_logo_display_options = array( 849 '' => __( ' Show', 'affiliate-coupons' ),850 ' hide' => __( 'Hide', 'affiliate-coupons' )849 '' => __( 'Hide', 'affiliate-coupons' ), 850 'show' => __( 'Show', 'affiliate-coupons' ) 851 851 ); 852 852 -
affiliate-coupons/tags/1.7/includes/template-functions.php
r3144851 r3144876 196 196 // if ($coupon_meta['affcoups_click_to_reveal_disable'][0] ) 197 197 // return $button_html; 198 198 199 $display_code_instu="false"; 199 200 $user_logged_in="false"; 200 201 $ask_login = "false"; 201 202 $options = affcoups_get_options(); 202 //$CouponExtended = affcoups_pro_setup_coupon_extended( $coupon );203 203 204 204 if(affcoups_get_option('reveal_code_inside_coupon_itself')==1){ … … 215 215 216 216 $login_msg = ( ! empty( $options['login_msg'] ) ) ? esc_attr( trim( $options['login_msg'] ) ) : __( 'Login to see the code!!! ', 'affiliate-coupons-pro' ); 217 if ( $coupon->show_code() || $coupon->is_click_to_reveal_disable()) { ?> 217 218 if ( $coupon->show_code() || $coupon->is_click_to_reveal_disable()) { ?> 218 219 <div class="affcoups-coupon__code"> 219 220 <?php $coupon->the_code(); ?> … … 231 232 <?php $coupon->the_code(); ?> 232 233 </div> 233 <div id="affcoups-coupon__button_<?php echo $coupon->get_id(); ?>" style="display:none"> <?php //$CouponExtended->the_button_instu(); ?> </div> 234 235 <?php 236 $CouponExtended = affcoups_pro_setup_coupon_extended( $coupon ); ?> 237 238 <div id="affcoups-coupon__button_<?php echo $coupon->get_id(); ?>" style="display:none"> <?php $CouponExtended->the_button_instu(); ?> </div> 234 239 <?php } 235 240 } … … 335 340 */ 336 341 function affcoups_tpl_the_vendor_log( $coupon, $args = array() ) { 337 if( $coupon->options['vendor_logo']=='hide')342 if(!$coupon->options['vendor_logo']=='show') 338 343 return; 339 344 $vendor_id=$coupon->vendor_id; … … 341 346 $image = $Vendor->get_image() ; 342 347 if($image){ ?> 343 <div class="affcoups-vendor__logo"> <img style="height:100%; object-fit:contain;" src="<?php echo $image['url']; ?>" ></div>348 <img style="height:100%; object-fit:contain;" src="<?php echo $image['url']; ?>" > 344 349 345 350 <?php -
affiliate-coupons/tags/1.7/templates/grid.php
r3144844 r3144876 36 36 37 37 <div class="affcoups-coupon__header"> 38 < ?php affcoups_tpl_the_vendor_log( $coupon); ?>39 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 38 <div class="affcoups-vendor__logo_grid"> <?php affcoups_tpl_the_vendor_log( $coupon); ?> </div> 39 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 40 40 <?php affcoups_tpl_the_coupon_discount( $coupon ); ?> 41 41 -
affiliate-coupons/tags/1.7/templates/list.php
r3144844 r3144876 35 35 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 36 36 <?php affcoups_tpl_the_coupon_types( $coupon ); ?> 37 <div class="affcoups-vendor__logo_list"> <?php affcoups_tpl_the_vendor_log( $coupon); ?> </div> 38 37 39 38 40 </div> 39 <?php affcoups_tpl_the_vendor_log( $coupon); ?>40 41 41 42 <div class="affcoups-coupon__content"> -
affiliate-coupons/tags/1.7/templates/standard.php
r3144844 r3144876 31 31 32 32 <div class="affcoups-coupon__header"> 33 <?php affcoups_tpl_the_vendor_log( $coupon); ?> 34 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 33 34 <div class="affcoups-vendor__logo_standard"> <?php affcoups_tpl_the_vendor_log( $coupon); ?> </div> 35 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 35 36 <?php affcoups_tpl_the_coupon_discount( $coupon ); ?> 36 37 </div> -
affiliate-coupons/trunk/assets/dist/css/amp.css
r3144842 r3144876 228 228 font-style: italic; 229 229 } 230 .affcoups-vendor__logo { 231 position: relative; 232 height: 60px; 233 width: auto; 230 .affcoups-vendor__logo_list { 231 position: absolute; 232 height: 40px; 234 233 z-index: 20; 235 float: right; 234 margin-left: 5%; 235 } 236 .affcoups-vendor__logo_grid { 237 position: absolute; 238 height: 40px; 239 z-index: 20; 240 margin-left: 75%; 241 margin-top: 50%; 242 } 243 .affcoups-vendor__logo_standard { 244 position: absolute; 245 height: 40px; 246 z-index: 20; 247 margin-left: 75%; 248 margin-top: 50%; 236 249 } 237 250 .affcoups-standard .affcoups-coupon { -
affiliate-coupons/trunk/assets/dist/css/main.css
r3144842 r3144876 228 228 font-style: italic; 229 229 } 230 .affcoups .affcoups-vendor__logo { 231 position: relative; 232 height: 60px; 233 width: auto; 230 .affcoups .affcoups-vendor__logo_list { 231 position: absolute; 232 height: 40px; 234 233 z-index: 20; 235 float: right; 234 margin-left: 5%; 235 } 236 .affcoups .affcoups-vendor__logo_grid { 237 position: absolute; 238 height: 40px; 239 z-index: 20; 240 margin-left: 75%; 241 margin-top: 50%; 242 } 243 .affcoups .affcoups-vendor__logo_standard { 244 position: absolute; 245 height: 40px; 246 z-index: 20; 247 margin-left: 75%; 248 margin-top: 50%; 236 249 } 237 250 .affcoups .affcoups-standard .affcoups-coupon { -
affiliate-coupons/trunk/assets/src/public/templates/_shared.less
r3144842 r3144876 124 124 } 125 125 126 .affcoups-vendor__logo { 127 position: relative; 128 height: 60px; 129 width: auto; 126 .affcoups-vendor__logo_list { 127 position: absolute; 128 height: 40px; 130 129 z-index: 20; 131 float: right;130 margin-left:5%; 132 131 133 132 } 133 .affcoups-vendor__logo_grid { 134 position: absolute; 135 height: 40px; 136 z-index: 20; 137 margin-left:75%; 138 margin-top: 50%; 139 } 140 .affcoups-vendor__logo_standard { 141 position: absolute; 142 height: 40px; 143 z-index: 20; 144 margin-left:75%; 145 margin-top: 50%; 146 147 } -
affiliate-coupons/trunk/includes/admin/class-settings.php
r3144842 r3144876 847 847 $vendor_logo = ( isset( $this->options['vendor_logo'] ) && $this->options['vendor_logo'] == '1' ) ? 1 : 0; 848 848 $vendor_logo_display_options = array( 849 '' => __( ' Show', 'affiliate-coupons' ),850 ' hide' => __( 'Hide', 'affiliate-coupons' )849 '' => __( 'Hide', 'affiliate-coupons' ), 850 'show' => __( 'Show', 'affiliate-coupons' ) 851 851 ); 852 852 -
affiliate-coupons/trunk/includes/template-functions.php
r3144851 r3144876 196 196 // if ($coupon_meta['affcoups_click_to_reveal_disable'][0] ) 197 197 // return $button_html; 198 198 199 $display_code_instu="false"; 199 200 $user_logged_in="false"; 200 201 $ask_login = "false"; 201 202 $options = affcoups_get_options(); 202 //$CouponExtended = affcoups_pro_setup_coupon_extended( $coupon );203 203 204 204 if(affcoups_get_option('reveal_code_inside_coupon_itself')==1){ … … 215 215 216 216 $login_msg = ( ! empty( $options['login_msg'] ) ) ? esc_attr( trim( $options['login_msg'] ) ) : __( 'Login to see the code!!! ', 'affiliate-coupons-pro' ); 217 if ( $coupon->show_code() || $coupon->is_click_to_reveal_disable()) { ?> 217 218 if ( $coupon->show_code() || $coupon->is_click_to_reveal_disable()) { ?> 218 219 <div class="affcoups-coupon__code"> 219 220 <?php $coupon->the_code(); ?> … … 231 232 <?php $coupon->the_code(); ?> 232 233 </div> 233 <div id="affcoups-coupon__button_<?php echo $coupon->get_id(); ?>" style="display:none"> <?php //$CouponExtended->the_button_instu(); ?> </div> 234 235 <?php 236 $CouponExtended = affcoups_pro_setup_coupon_extended( $coupon ); ?> 237 238 <div id="affcoups-coupon__button_<?php echo $coupon->get_id(); ?>" style="display:none"> <?php $CouponExtended->the_button_instu(); ?> </div> 234 239 <?php } 235 240 } … … 335 340 */ 336 341 function affcoups_tpl_the_vendor_log( $coupon, $args = array() ) { 337 if( $coupon->options['vendor_logo']=='hide')342 if(!$coupon->options['vendor_logo']=='show') 338 343 return; 339 344 $vendor_id=$coupon->vendor_id; … … 341 346 $image = $Vendor->get_image() ; 342 347 if($image){ ?> 343 <div class="affcoups-vendor__logo"> <img style="height:100%; object-fit:contain;" src="<?php echo $image['url']; ?>" ></div>348 <img style="height:100%; object-fit:contain;" src="<?php echo $image['url']; ?>" > 344 349 345 350 <?php -
affiliate-coupons/trunk/templates/grid.php
r3144842 r3144876 36 36 37 37 <div class="affcoups-coupon__header"> 38 < ?php affcoups_tpl_the_vendor_log( $coupon); ?>39 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 38 <div class="affcoups-vendor__logo_grid"> <?php affcoups_tpl_the_vendor_log( $coupon); ?> </div> 39 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 40 40 <?php affcoups_tpl_the_coupon_discount( $coupon ); ?> 41 41 -
affiliate-coupons/trunk/templates/list.php
r3144842 r3144876 35 35 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 36 36 <?php affcoups_tpl_the_coupon_types( $coupon ); ?> 37 <div class="affcoups-vendor__logo_list"> <?php affcoups_tpl_the_vendor_log( $coupon); ?> </div> 38 37 39 38 40 </div> 39 <?php affcoups_tpl_the_vendor_log( $coupon); ?>40 41 41 42 <div class="affcoups-coupon__content"> -
affiliate-coupons/trunk/templates/standard.php
r3144842 r3144876 31 31 32 32 <div class="affcoups-coupon__header"> 33 <?php affcoups_tpl_the_vendor_log( $coupon); ?> 34 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 33 34 <div class="affcoups-vendor__logo_standard"> <?php affcoups_tpl_the_vendor_log( $coupon); ?> </div> 35 <?php affcoups_tpl_the_coupon_image( $coupon ); ?> 35 36 <?php affcoups_tpl_the_coupon_discount( $coupon ); ?> 36 37 </div>
Note: See TracChangeset
for help on using the changeset viewer.