Changeset 1805052
- Timestamp:
- 01/18/2018 10:21:22 AM (8 years ago)
- Location:
- hq60-fidelity-card/trunk
- Files:
-
- 4 edited
-
assets/css/frontend/style.css (modified) (1 diff)
-
hq60fidelitycard.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
views/frontend/user-balance.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hq60-fidelity-card/trunk/assets/css/frontend/style.css
r1801667 r1805052 10 10 ul.list-menu-campaign{list-style:none;padding-left:0px} 11 11 ul.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 */ 13 table.table-transaction{margin-top:10px} 14 table.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 7 7 Author: TRe Technology And Research S.r.l 8 8 Author URI: http://www.tresrl.it 9 Version: 1. 0.19 Version: 1.2 10 10 License: GPL-2.0+ 11 11 */ -
hq60-fidelity-card/trunk/readme.txt
r1803652 r1805052 3 3 Tags: 4 4 Requires at least: 4.8.2 5 Tested up to: 4.9. 16 Stable tag: 1. 0.15 Tested up to: 4.9.2 6 Stable tag: 1.2 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 27 27 == Changelog == 28 28 29 = 1.2 = 30 * Aggiunto elenco transazioni per tessera sconto e carta ricaricabile 31 29 32 = 1.0.1 = 30 33 * Aggiunto elenco transazioni per raccolta punti -
hq60-fidelity-card/trunk/views/frontend/user-balance.php
r1803652 r1805052 80 80 } //if ( $campaign_type == 'points' ) { 81 81 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 82 139 if ( $campaign_type == 'points' ) { 83 140 … … 134 191 } 135 192 136 } 193 } 137 194 138 195
Note: See TracChangeset
for help on using the changeset viewer.