Plugin Directory

Changeset 1809120


Ignore:
Timestamp:
01/25/2018 08:11:36 AM (8 years ago)
Author:
tresrl
Message:

HQ60 Fidelity Card - V 1.5

Location:
hq60-fidelity-card/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hq60-fidelity-card/trunk/hq60fidelitycard.php

    r1808688 r1809120  
    77Author: TRe Technology And Research S.r.l
    88Author URI: http://www.tresrl.it
    9 Version: 1.4
     9Version: 1.5
    1010License: GPL-2.0+
    1111*/
  • hq60-fidelity-card/trunk/readme.txt

    r1808688 r1809120  
    44Requires at least: 4.8.2
    55Tested up to: 4.9.2
    6 Stable tag: 1.4
     6Stable tag: 1.5
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2727== Changelog ==
    2828
     29= 1.5 =
     30* Aggiunto elenco transazioni per tessera abbonamenti
     31* Aggiunta indicazione obbligatorietà o meno delle pagine da inserire nel menù
     32
    2933= 1.4 =
    3034* Aggiunta tessera abbonamenti
  • hq60-fidelity-card/trunk/views/admin/shortcode-list.php

    r1801667 r1809120  
    88            <th><strong><?php _e ( 'URL' , $this->get_language_domain() ) ;?></strong></th>
    99            <th><strong><?php _e ( 'Shorcode da utilizzare' , $this->get_language_domain() ) ;?></strong></th>
     10            <th><strong><?php _e ( 'Obbligatoria nel menù?' , $this->get_language_domain() ) ;?></strong></th>
    1011        </tr>
    1112       
     
    1819            <td>fidelity-card-login</td>
    1920            <td>[<?php echo $this->get_shortcode_user_login();?>]</td>
     21            <td><?php _e( 'SI' , $this->get_language_domain() ); ?></td>
    2022        </tr>
    2123       
     
    2426            <td>fidelity-card-logout</td>
    2527            <td>-</td>
     28            <td><?php _e( 'NO' , $this->get_language_domain() ); ?></td>
    2629        </tr>
    2730       
     
    3033            <td>fidelity-card-registration</td>
    3134            <td>[<?php echo $this->get_shortcode_user_registration();?>]</td>
     35            <td><?php _e( 'SI' , $this->get_language_domain() ); ?></td>
    3236        </tr>
    3337       
     
    3640            <td>fidelity-card-dashboard</td>
    3741            <td>[<?php echo $this->get_shortcode_user_dashboard();?>]</td>
     42            <td><?php _e( 'SI' , $this->get_language_domain() ); ?></td>
    3843        </tr>
    3944       
     
    4247            <td>fidelity-card-recovery</td>
    4348            <td>[<?php echo $this->get_shortcode_user_recovery_password();?>]</td>
     49            <td><?php _e( 'SI' , $this->get_language_domain() ); ?></td>
    4450        </tr>
    4551       
  • hq60-fidelity-card/trunk/views/frontend/user-balance.php

    r1808686 r1809120  
    160160                   
    161161               
    162         /*****************      ELENCO TRANSAZIONI          ***********************************/   
     162        /*****************      ELENCO TRANSAZIONI          ***********************************/
     163       
     164        /*** GIFT CARD // TESSERA SCONTO */
     165       
     166        if ( $campaign_type == 'subscription' ) {
     167           
     168            if ( isset ( $transaction->transaction ) ) {
     169               
     170                $decimals = 0;
     171                ?>
     172               
     173                <table class="table table-transaction">
     174                   
     175                    <thead>
     176                        <tr>
     177                            <th><?php _e( 'Transazione' , $this->get_language_domain() )?></th>
     178                            <th><?php _e( 'Data' , $this->get_language_domain() )?></th>
     179                        </tr>
     180                    </thead>
     181                    <tbody>
     182               
     183                <?php
     184                foreach ( $transaction->transaction as $t ) {
     185                   
     186                    $class = 'positive-number';
     187                   
     188                    if ( $t->amount_final < 0 ) {
     189                       
     190                        $class = 'negative-number';
     191                       
     192                    }
     193                   
     194                    $amount = number_format_i18n( $t->amount_final, $decimals );
     195                    $date =  date_i18n( 'd/m/Y', strtotime( $t->date ) );
     196                   
     197                    echo '<tr>';
     198                        echo '<td class="'.$class.'">';
     199                            echo $amount.' '.$t->reward_name;
     200                        echo '</td>';
     201                        echo '<td>';
     202                            echo $date;
     203                        echo '</td>';
     204                    echo '</tr>';
     205                   
     206                }
     207                ?>
     208               
     209                    </tbody>
     210               
     211                </table>
     212                <?php
     213               
     214            }
     215           
     216        } // subscription
     217       
     218       
    163219                   
    164220        if ( $campaign_type == 'points' ) {
     
    276332        } // gift card
    277333       
    278         /** subscription */
    279        
    280334           
    281335       
Note: See TracChangeset for help on using the changeset viewer.