Changeset 3302761
- Timestamp:
- 05/29/2025 08:31:19 AM (10 months ago)
- Location:
- image-store/trunk
- Files:
-
- 10 edited
-
_inc/admin.php (modified) (1 diff)
-
_inc/core.php (modified) (4 diffs)
-
_inc/galleries.php (modified) (2 diffs)
-
_inc/pricing.php (modified) (3 diffs)
-
_inc/store.php (modified) (3 diffs)
-
_store/shortcode.php (modified) (1 diff)
-
admin/customers/customer-galleries.php (modified) (1 diff)
-
admin/galleries/gallery-info.php (modified) (1 diff)
-
admin/sales/sales-details.php (modified) (1 diff)
-
admin/sales/sales.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
image-store/trunk/_inc/admin.php
r3302739 r3302761 604 604 case 'expire': 605 605 if ( $post_expire = get_post_meta( $postid, '_ims_post_expire', true ) ){ 606 if ( $this->is_ims_time( $post_expire ) ) echo esc_html( date_i18n( $this->d format, strtotime($post_expire), true ) );606 if ( $this->is_ims_time( $post_expire ) ) echo esc_html( date_i18n( $this->date_format, strtotime($post_expire), true ) ); 607 607 } 608 608 break; -
image-store/trunk/_inc/core.php
r3302739 r3302761 19 19 * Make sure that new language( .mo ) files have 'ims-' as base name 20 20 */ 21 public $baseurl = ''; 22 public $dformat = ''; 23 public $content_url = ''; 24 public $content_dir = ''; 21 public $key; 22 public $loc; 23 24 public $sym; 25 public $units; 26 public $locale; 27 public $baseurl; 28 public $date_format; 29 public $content_url; 30 public $content_dir; 31 public $rules_logic; 32 public $currency_format; 25 33 26 34 public $sync = false; … … 36 44 37 45 public $version = '3.5.9'; 46 public $wp_version = false; 38 47 public $customer_role = 'customer'; 39 48 public $optionkey = 'ims_front_options'; … … 240 249 $this->sym = $this->opts['symbol']; 241 250 242 $this->d format = get_option( 'date_format' );251 $this->date_format = get_option( 'date_format' ); 243 252 $this->perma = get_option( 'permalink_structure' ); 244 $this->c format = array( '', "$this->sym%s", "$this->sym %s", "%s$this->sym", "%s $this->sym");253 $this->currency_format = array( '', "$this->sym%s", "$this->sym %s", "%s$this->sym", "%s $this->sym"); 245 254 246 255 $this->units = apply_filters( 'ims_units', array( … … 709 718 else $price = number_format( (double) $price, 2 ); 710 719 711 $char = ( $sym ) ? $this->c format[$this->loc] : "%s";720 $char = ( $sym ) ? $this->currency_format[$this->loc] : "%s"; 712 721 return sprintf( $before . $char, $price . $after ); 713 722 } -
image-store/trunk/_inc/galleries.php
r3302739 r3302761 17 17 * Public variables 18 18 */ 19 public $exts; 19 20 public $galpath = ''; 20 21 public $disabled = ''; … … 32 33 public $columns = array( ); 33 34 public $metaboxes = array( ); 35 public $import_tabs = array( ); 34 36 35 37 /** -
image-store/trunk/_inc/pricing.php
r3302739 r3302761 15 15 16 16 public $tabs = array( ); 17 public $screen = array( ); 18 public $hidden = array( ); 19 public $columns = array( ); 20 public $metaboxes = array( ); 21 17 22 18 23 /** … … 1312 1317 $data['promo_name'] = $promo->post_title; 1313 1318 $data['startdate'] = date_i18n( 'Y-m-d', $date ); 1314 $data['starts'] = date_i18n( $this->d format, $date );1315 $data['expires'] = date_i18n( $this->d format, $expire );1319 $data['starts'] = date_i18n( $this->date_format, $date ); 1320 $data['expires'] = date_i18n( $this->date_format, $expire ); 1316 1321 $data['expiration_date'] = date_i18n( 'Y-m-d', $expire ); 1317 1322 … … 1467 1472 break; 1468 1473 case 'starts': 1469 $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) .'" > ' . esc_html( date_i18n( $this->dformat, strtotime( $promo->post_date ) ) ) . '</td>' ;1474 $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) .'" > ' . esc_html( date_i18n( $this->date_format, strtotime( $promo->post_date ) ) ) . '</td>' ; 1470 1475 break; 1471 1476 case 'expires': 1472 1477 $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) . '" > '; 1473 1478 if ( $expires = get_post_meta( $promo->ID, '_ims_post_expire', true ) ){ 1474 if ( $this->is_ims_time( $expires ) ) $r .= esc_html( date_i18n( $this->d format, $expires, true ) );1479 if ( $this->is_ims_time( $expires ) ) $r .= esc_html( date_i18n( $this->date_format, strtotime($expires), true ) ); 1475 1480 } 1476 1481 $r .= '</td>' ; -
image-store/trunk/_inc/store.php
r3302739 r3302761 15 15 * Public variables 16 16 */ 17 public $gal = false; 18 public $error = false; 19 public $term = false; 20 public $imgurl = false; 21 public $is_grid = false; 22 public $user_id = false; 23 public $imspage = false; 24 public $success = false; 25 public $checkout = true; 26 public $message = false; 27 public $is_widget = false; 28 public $pricelist_id = false; 29 public $cart_status = false; 30 public $active_store = false; 31 public $favorites_ids = false; 32 public $is_taxonomy = false; 33 public $post_logged_in = false; 34 public $show_comments = false; 35 public $is_embed_page = false; 17 public $gal; 18 public $term; 19 public $order; 20 public $error; 21 public $feeds; 22 public $sortby; 23 public $imgurl; 24 public $is_grid; 25 public $user_id; 26 public $imspage; 27 public $success; 28 public $checkout; 29 public $message; 30 public $is_widget; 31 public $permalinks; 32 public $is_taxonomy; 33 public $cart_status; 34 public $pricelist_id; 35 public $active_store; 36 public $favorites_ids; 37 public $post_logged_in; 38 public $show_comments; 39 public $is_embed_page; 40 public $use_trailing_slashes; 36 41 37 42 public $post = array( ); … … 39 44 public $sizes = array( ); 40 45 public $subnav = array( ); 46 public $gateways = array( ); 41 47 public $user_votes = array( ); 42 48 public $attachments = array( ); … … 1365 1371 $output .= '<div class="ims-labels">'; 1366 1372 if( $this->gallery_expire > 0 && $this->imspage == 'photos' ) 1367 $output .= '<span class="ims-expires">' . esc_html__( "Expires: ", 'image-store' ) . esc_html( date_i18n( $this->d format, $this->gallery_expire ) ) . '</span>';1373 $output .= '<span class="ims-expires">' . esc_html__( "Expires: ", 'image-store' ) . esc_html( date_i18n( $this->date_format, $this->gallery_expire ) ) . '</span>'; 1368 1374 $output .= '</div><!--.ims-labels-->'; 1369 1375 -
image-store/trunk/_store/shortcode.php
r3302739 r3302761 17 17 18 18 class ImStoreShortCode { 19 20 public $opts = array( ); 21 19 22 20 23 /** -
image-store/trunk/admin/customers/customer-galleries.php
r3302739 r3302761 96 96 '<td class="%1$s">%2$s</td>', 97 97 esc_attr( "column-{$columnid}{$hide}" ), 98 $this->is_ims_time( $post_expire ) ? esc_html( date_i18n( $this->d format, strtotime($post_expire), true ) ) : ''98 $this->is_ims_time( $post_expire ) ? esc_html( date_i18n( $this->date_format, strtotime($post_expire), true ) ) : '' 99 99 ); 100 100 break; -
image-store/trunk/admin/galleries/gallery-info.php
r3302739 r3302761 46 46 47 47 if ( $time > 0 ){ 48 $expire = date_i18n( $this->d format, $time );48 $expire = date_i18n( $this->date_format, $time ); 49 49 $ims_expire = date_i18n( 'Y-m-d H:i', $time ); 50 50 } -
image-store/trunk/admin/sales/sales-details.php
r3295969 r3302761 108 108 <td class="column-thumb" scope="row"> </td> 109 109 <td><?php esc_html_e('Date', 'image-store')?></td> 110 <td><?php echo esc_html( date_i18n( $this->d format, strtotime( $this->sale->post_date ) ) )?></td>110 <td><?php echo esc_html( date_i18n( $this->date_format, strtotime( $this->sale->post_date ) ) )?></td> 111 111 <td> </td> 112 112 <td><?php esc_html_e('Item subtotal', 'image-store')?></td> -
image-store/trunk/admin/sales/sales.php
r3302739 r3302761 154 154 break; 155 155 case 'orderdate': 156 $r .= "<td class='column-" . esc_attr( $columnid . $hide ) . "'>" . esc_html( date_i18n( $this->d format, strtotime( $sale->post_date ) ) ) . "</td>";156 $r .= "<td class='column-" . esc_attr( $columnid . $hide ) . "'>" . esc_html( date_i18n( $this->date_format, strtotime( $sale->post_date ) ) ) . "</td>"; 157 157 break; 158 158 case 'amount':
Note: See TracChangeset
for help on using the changeset viewer.