Plugin Directory

Changeset 3144876


Ignore:
Timestamp:
09/01/2024 09:55:07 AM (7 months ago)
Author:
deetronix
Message:

V1.7

Location:
affiliate-coupons
Files:
22 edited

Legend:

Unmodified
Added
Removed
  • affiliate-coupons/tags/1.7/assets/dist/css/amp.css

    r3144844 r3144876  
    228228  font-style: italic;
    229229}
    230 .affcoups-vendor__logo {
    231   position: relative;
    232   height: 60px;
    233   width: auto;
     230.affcoups-vendor__logo_list {
     231  position: absolute;
     232  height: 40px;
    234233  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%;
    236249}
    237250.affcoups-standard .affcoups-coupon {
  • affiliate-coupons/tags/1.7/assets/dist/css/main.css

    r3144844 r3144876  
    228228  font-style: italic;
    229229}
    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;
    234233  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%;
    236249}
    237250.affcoups .affcoups-standard .affcoups-coupon {
  • affiliate-coupons/tags/1.7/assets/src/public/templates/_shared.less

    r3144844 r3144876  
    124124}
    125125
    126 .affcoups-vendor__logo {
    127     position: relative;
    128     height: 60px;
    129     width: auto;
     126.affcoups-vendor__logo_list {
     127    position: absolute;
     128    height: 40px;
    130129    z-index: 20;
    131     float: right;
     130    margin-left:5%;
    132131   
    133132}
     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  
    847847            $vendor_logo = ( isset( $this->options['vendor_logo'] ) && $this->options['vendor_logo'] == '1' ) ? 1 : 0;
    848848            $vendor_logo_display_options = array(
    849                 '' => __( 'Show', 'affiliate-coupons' ),
    850                 'hide' => __( 'Hide', 'affiliate-coupons' )
     849                '' => __( 'Hide', 'affiliate-coupons' ),
     850                'show' => __( 'Show', 'affiliate-coupons' )
    851851            );
    852852
  • affiliate-coupons/tags/1.7/includes/template-functions.php

    r3144851 r3144876  
    196196   // if ($coupon_meta['affcoups_click_to_reveal_disable'][0] )
    197197   // return $button_html;
     198
    198199   $display_code_instu="false";
    199200   $user_logged_in="false";
    200201   $ask_login = "false";
    201202   $options = affcoups_get_options();
    202    //$CouponExtended = affcoups_pro_setup_coupon_extended( $coupon );
    203203
    204204   if(affcoups_get_option('reveal_code_inside_coupon_itself')==1){
     
    215215   
    216216   $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()) { ?>
    218219        <div class="affcoups-coupon__code">
    219220            <?php $coupon->the_code(); ?>
     
    231232             <?php $coupon->the_code(); ?>
    232233            </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>
    234239        <?php }
    235240}
     
    335340 */
    336341function affcoups_tpl_the_vendor_log( $coupon, $args = array() ) {     
    337     if($coupon->options['vendor_logo']=='hide')
     342    if(!$coupon->options['vendor_logo']=='show')
    338343        return;
    339344    $vendor_id=$coupon->vendor_id;
     
    341346    $image = $Vendor->get_image() ;
    342347    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']; ?>" >
    344349
    345350<?php     
  • affiliate-coupons/tags/1.7/templates/grid.php

    r3144844 r3144876  
    3636
    3737                    <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 ); ?> 
    4040                        <?php affcoups_tpl_the_coupon_discount( $coupon ); ?>
    4141
  • affiliate-coupons/tags/1.7/templates/list.php

    r3144844 r3144876  
    3535                    <?php affcoups_tpl_the_coupon_image( $coupon ); ?>
    3636                    <?php affcoups_tpl_the_coupon_types( $coupon ); ?>
     37                    <div class="affcoups-vendor__logo_list"> <?php affcoups_tpl_the_vendor_log( $coupon);  ?> </div>
     38
    3739
    3840                </div>
    39                 <?php affcoups_tpl_the_vendor_log( $coupon); ?>
    4041
    4142                <div class="affcoups-coupon__content">
  • affiliate-coupons/tags/1.7/templates/standard.php

    r3144844 r3144876  
    3131
    3232                <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 ); ?>
    3536                    <?php affcoups_tpl_the_coupon_discount( $coupon ); ?>
    3637                </div>
  • affiliate-coupons/trunk/assets/dist/css/amp.css

    r3144842 r3144876  
    228228  font-style: italic;
    229229}
    230 .affcoups-vendor__logo {
    231   position: relative;
    232   height: 60px;
    233   width: auto;
     230.affcoups-vendor__logo_list {
     231  position: absolute;
     232  height: 40px;
    234233  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%;
    236249}
    237250.affcoups-standard .affcoups-coupon {
  • affiliate-coupons/trunk/assets/dist/css/main.css

    r3144842 r3144876  
    228228  font-style: italic;
    229229}
    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;
    234233  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%;
    236249}
    237250.affcoups .affcoups-standard .affcoups-coupon {
  • affiliate-coupons/trunk/assets/src/public/templates/_shared.less

    r3144842 r3144876  
    124124}
    125125
    126 .affcoups-vendor__logo {
    127     position: relative;
    128     height: 60px;
    129     width: auto;
     126.affcoups-vendor__logo_list {
     127    position: absolute;
     128    height: 40px;
    130129    z-index: 20;
    131     float: right;
     130    margin-left:5%;
    132131   
    133132}
     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  
    847847            $vendor_logo = ( isset( $this->options['vendor_logo'] ) && $this->options['vendor_logo'] == '1' ) ? 1 : 0;
    848848            $vendor_logo_display_options = array(
    849                 '' => __( 'Show', 'affiliate-coupons' ),
    850                 'hide' => __( 'Hide', 'affiliate-coupons' )
     849                '' => __( 'Hide', 'affiliate-coupons' ),
     850                'show' => __( 'Show', 'affiliate-coupons' )
    851851            );
    852852
  • affiliate-coupons/trunk/includes/template-functions.php

    r3144851 r3144876  
    196196   // if ($coupon_meta['affcoups_click_to_reveal_disable'][0] )
    197197   // return $button_html;
     198
    198199   $display_code_instu="false";
    199200   $user_logged_in="false";
    200201   $ask_login = "false";
    201202   $options = affcoups_get_options();
    202    //$CouponExtended = affcoups_pro_setup_coupon_extended( $coupon );
    203203
    204204   if(affcoups_get_option('reveal_code_inside_coupon_itself')==1){
     
    215215   
    216216   $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()) { ?>
    218219        <div class="affcoups-coupon__code">
    219220            <?php $coupon->the_code(); ?>
     
    231232             <?php $coupon->the_code(); ?>
    232233            </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>
    234239        <?php }
    235240}
     
    335340 */
    336341function affcoups_tpl_the_vendor_log( $coupon, $args = array() ) {     
    337     if($coupon->options['vendor_logo']=='hide')
     342    if(!$coupon->options['vendor_logo']=='show')
    338343        return;
    339344    $vendor_id=$coupon->vendor_id;
     
    341346    $image = $Vendor->get_image() ;
    342347    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']; ?>" >
    344349
    345350<?php     
  • affiliate-coupons/trunk/templates/grid.php

    r3144842 r3144876  
    3636
    3737                    <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 ); ?> 
    4040                        <?php affcoups_tpl_the_coupon_discount( $coupon ); ?>
    4141
  • affiliate-coupons/trunk/templates/list.php

    r3144842 r3144876  
    3535                    <?php affcoups_tpl_the_coupon_image( $coupon ); ?>
    3636                    <?php affcoups_tpl_the_coupon_types( $coupon ); ?>
     37                    <div class="affcoups-vendor__logo_list"> <?php affcoups_tpl_the_vendor_log( $coupon);  ?> </div>
     38
    3739
    3840                </div>
    39                 <?php affcoups_tpl_the_vendor_log( $coupon); ?>
    4041
    4142                <div class="affcoups-coupon__content">
  • affiliate-coupons/trunk/templates/standard.php

    r3144842 r3144876  
    3131
    3232                <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 ); ?>
    3536                    <?php affcoups_tpl_the_coupon_discount( $coupon ); ?>
    3637                </div>
Note: See TracChangeset for help on using the changeset viewer.