Plugin Directory

Changeset 3302761


Ignore:
Timestamp:
05/29/2025 08:31:19 AM (10 months ago)
Author:
Hax
Message:

fix: php notices

Location:
image-store/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • image-store/trunk/_inc/admin.php

    r3302739 r3302761  
    604604            case 'expire':
    605605                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->dformat, strtotime($post_expire), true ) );
     606                    if ( $this->is_ims_time( $post_expire ) ) echo esc_html( date_i18n( $this->date_format, strtotime($post_expire), true ) );
    607607                }
    608608                break;
  • image-store/trunk/_inc/core.php

    r3302739 r3302761  
    1919     * Make sure that new language( .mo ) files have 'ims-' as base name
    2020     */
    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;
    2533
    2634    public $sync = false;
     
    3644
    3745    public $version = '3.5.9';
     46    public $wp_version = false;
    3847    public $customer_role = 'customer';
    3948    public $optionkey = 'ims_front_options';
     
    240249        $this->sym = $this->opts['symbol'];
    241250
    242         $this->dformat = get_option( 'date_format' );
     251        $this->date_format = get_option( 'date_format' );
    243252        $this->perma = get_option( 'permalink_structure' );
    244         $this->cformat = 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");
    245254
    246255        $this->units = apply_filters( 'ims_units', array(
     
    709718        else $price = number_format( (double) $price, 2 );
    710719
    711         $char = ( $sym ) ? $this->cformat[$this->loc] : "%s";
     720        $char = ( $sym ) ? $this->currency_format[$this->loc] : "%s";
    712721        return sprintf( $before . $char, $price . $after );
    713722    }
  • image-store/trunk/_inc/galleries.php

    r3302739 r3302761  
    1717     * Public variables
    1818     */
     19    public $exts;
    1920    public $galpath = '';
    2021    public $disabled = '';
     
    3233    public $columns = array( );
    3334    public $metaboxes = array( );
     35    public $import_tabs = array( );
    3436
    3537    /**
  • image-store/trunk/_inc/pricing.php

    r3302739 r3302761  
    1515
    1616    public $tabs = array( );
     17    public $screen = array( );
     18    public $hidden = array( );
     19    public $columns = array( );
     20    public $metaboxes = array( );
     21
    1722
    1823    /**
     
    13121317            $data['promo_name'] = $promo->post_title;
    13131318            $data['startdate'] = date_i18n( 'Y-m-d', $date );
    1314             $data['starts'] = date_i18n( $this->dformat, $date );
    1315             $data['expires'] = date_i18n( $this->dformat, $expire );
     1319            $data['starts'] = date_i18n( $this->date_format, $date );
     1320            $data['expires'] = date_i18n( $this->date_format, $expire );
    13161321            $data['expiration_date'] = date_i18n( 'Y-m-d', $expire );
    13171322
     
    14671472                                break;
    14681473                            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>' ;
    14701475                                break;
    14711476                            case 'expires':
    14721477                                $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) . '" > ';
    14731478                                if ( $expires = get_post_meta( $promo->ID, '_ims_post_expire', true ) ){
    1474                                     if ( $this->is_ims_time( $expires ) ) $r .= esc_html( date_i18n( $this->dformat, $expires, true ) );
     1479                                    if ( $this->is_ims_time( $expires ) ) $r .= esc_html( date_i18n( $this->date_format, strtotime($expires), true ) );
    14751480                                }
    14761481                                $r .= '</td>' ;
  • image-store/trunk/_inc/store.php

    r3302739 r3302761  
    1515     * Public variables
    1616     */
    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;
    3641
    3742    public $post = array( );
     
    3944    public $sizes = array( );
    4045    public $subnav = array( );
     46    public $gateways = array( );
    4147    public $user_votes = array( );
    4248    public $attachments = array( );
     
    13651371        $output .= '<div class="ims-labels">';
    13661372        if( $this->gallery_expire > 0 && $this->imspage == 'photos' )
    1367             $output .= '<span class="ims-expires">' . esc_html__( "Expires: ", 'image-store' ) . esc_html( date_i18n( $this->dformat, $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>';
    13681374        $output .= '</div><!--.ims-labels-->';
    13691375
  • image-store/trunk/_store/shortcode.php

    r3302739 r3302761  
    1717
    1818    class ImStoreShortCode {
     19
     20        public $opts = array( );
     21
    1922
    2023        /**
  • image-store/trunk/admin/customers/customer-galleries.php

    r3302739 r3302761  
    9696                                        '<td class="%1$s">%2$s</td>',
    9797                                        esc_attr( "column-{$columnid}{$hide}" ),
    98                                         $this->is_ims_time( $post_expire ) ? esc_html( date_i18n( $this->dformat, strtotime($post_expire), true ) ) : ''
     98                                        $this->is_ims_time( $post_expire ) ? esc_html( date_i18n( $this->date_format, strtotime($post_expire), true ) ) : ''
    9999                                    );
    100100                                    break;
  • image-store/trunk/admin/galleries/gallery-info.php

    r3302739 r3302761  
    4646
    4747    if ( $time > 0 ){
    48         $expire = date_i18n( $this->dformat, $time );
     48        $expire = date_i18n( $this->date_format, $time );
    4949        $ims_expire = date_i18n( 'Y-m-d H:i', $time );
    5050    }
  • image-store/trunk/admin/sales/sales-details.php

    r3295969 r3302761  
    108108              <td class="column-thumb" scope="row">&nbsp;</td>
    109109              <td><?php esc_html_e('Date', 'image-store')?></td>
    110               <td><?php echo esc_html( date_i18n( $this->dformat, strtotime( $this->sale->post_date ) ) )?></td>
     110              <td><?php echo esc_html( date_i18n( $this->date_format, strtotime( $this->sale->post_date ) ) )?></td>
    111111              <td>&nbsp;</td>
    112112              <td><?php esc_html_e('Item subtotal', 'image-store')?></td>
  • image-store/trunk/admin/sales/sales.php

    r3302739 r3302761  
    154154                                break;
    155155                            case 'orderdate':
    156                                 $r .= "<td class='column-" . esc_attr( $columnid . $hide ) . "'>" . esc_html( date_i18n( $this->dformat, 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>";
    157157                                break;
    158158                            case 'amount':
Note: See TracChangeset for help on using the changeset viewer.