Plugin Directory

Changeset 1805052


Ignore:
Timestamp:
01/18/2018 10:21:22 AM (8 years ago)
Author:
tresrl
Message:

HQ60 Fidelity Card - V 1.2

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

Legend:

Unmodified
Added
Removed
  • hq60-fidelity-card/trunk/assets/css/frontend/style.css

    r1801667 r1805052  
    1010ul.list-menu-campaign{list-style:none;padding-left:0px}
    1111ul.list-menu-campaign>li>a{background-color:#eee;color:#111;display:block;text-align:center;padding:10px;font-size:120%;font-weight:bold}
     12/** TRANSACTIONS */
     13table.table-transaction{margin-top:10px}
     14table.table-transaction th,table.table-transaction td{text-align:right;border-left:none;border-right:none}
     15.table-transaction .positive-number,.table-transaction .negative-number{color:#347C2C;font-weight:bold;font-size:130%}
     16.table-transaction .negative-number{color:#333;font-size:110%}
  • hq60-fidelity-card/trunk/hq60fidelitycard.php

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

    r1803652 r1805052  
    33Tags:
    44Requires at least: 4.8.2
    5 Tested up to: 4.9.1
    6 Stable tag: 1.0.1
     5Tested up to: 4.9.2
     6Stable tag: 1.2
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2727== Changelog ==
    2828
     29= 1.2 =
     30* Aggiunto elenco transazioni per tessera sconto e carta ricaricabile
     31
    2932= 1.0.1 =
    3033* Aggiunto elenco transazioni per raccolta punti
  • hq60-fidelity-card/trunk/views/frontend/user-balance.php

    r1803652 r1805052  
    8080        } //if ( $campaign_type == 'points' ) {
    8181                   
     82        if ( $campaign_type == 'gift' || $campaign_type == 'discount' ) {
     83           
     84            if ( isset ( $transaction->transaction ) ) {
     85                   
     86                $decimals = 2;
     87                ?>
     88               
     89                <table class="table table-transaction">
     90                   
     91                    <thead>
     92                        <tr>
     93                            <th><?php _e( 'Importo' , $this->get_language_domain() )?></th>
     94                            <th><?php _e( 'Dettaglio' , $this->get_language_domain() )?></th>
     95                            <th><?php _e( 'Data' , $this->get_language_domain() )?></th>
     96                        </tr>
     97                    </thead>
     98                    <tbody>
     99               
     100                <?php
     101                foreach ( $transaction->transaction as $t ) {
     102                   
     103                    $class = 'positive-number';
     104                   
     105                    if ( $t->amount_final < 0 ) {
     106                       
     107                        $class = 'negative-number';
     108                       
     109                    }
     110                   
     111                    $amount = number_format_i18n( $t->amount_final, $decimals );
     112                    $date =  date_i18n( 'd/m/Y', strtotime( $t->date ) );
     113                   
     114                    echo '<tr>';
     115                        echo '<td class="'.$class.'">';
     116                            echo $amount.' €';
     117                        echo '</td>';
     118                        echo '<td>';
     119                            echo $t->description;
     120                        echo '</td>';
     121                        echo '<td>';
     122                            echo $date;
     123                        echo '</td>';
     124                    echo '</tr>';
     125                   
     126                }
     127                ?>
     128               
     129                    </tbody>
     130               
     131                </table>
     132                <?php
     133               
     134            }
     135           
     136        }
     137           
     138                   
    82139        if ( $campaign_type == 'points' ) {
    83140           
     
    134191            }
    135192           
    136         }           
     193        }
    137194           
    138195       
Note: See TracChangeset for help on using the changeset viewer.