Plugin Directory

Changeset 3302867


Ignore:
Timestamp:
05/29/2025 10:35:28 AM (10 months ago)
Author:
Hax
Message:

add trunk

Location:
image-store/trunk
Files:
10 edited
1 copied

Legend:

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

    r3302739 r3302867  
    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 r3302867  
    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     public $sym;
     24     public $units;
     25     public $locale;
     26
     27    public $baseurl;
     28    public $wp_version;
     29    public $content_url;
     30    public $content_dir;
     31    public $date_format;
     32    public $currency_format;
    2533
    2634    public $sync = false;
    27     public $perma = false;
    2835    public $blog_id = false;
     36    public $permalinks = false;
    2937
    3038    public $color = array( );
     
    3240    public $pages = array( );
    3341    public $page_slugs = array( );
     42    public $rules_logic = array( );
    3443    public $promo_types = array( );
    3544    public $rules_property = array( );
     
    240249        $this->sym = $this->opts['symbol'];
    241250
    242         $this->dformat = get_option( 'date_format' );
    243         $this->perma = get_option( 'permalink_structure' );
    244         $this->cformat = array( '', "$this->sym%s", "$this->sym %s", "%s$this->sym", "%s $this->sym");
     251        $this->date_format      = get_option( 'date_format' );
     252        $this->permalinks = get_option( 'permalink_structure' );
     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 r3302867  
    1717     * Public variables
    1818     */
    19     public $galpath = '';
    20     public $disabled = '';
     19    public $galpath;
     20    public $disabled;
    2121
    2222    public $error = false;
     
    2525    public $imgnonce = false;
    2626
     27    public $exts = array( );
    2728    public $order = array( );
    2829    public $meta = array( );
     
    3233    public $columns = array( );
    3334    public $metaboxes = array( );
     35    public $import_tabs = array( );
    3436
    3537    /**
  • image-store/trunk/_inc/pricing.php

    r3302739 r3302867  
    1515
    1616    public $tabs = array( );
     17    public $hidden = array( );
     18    public $screen = array( );
     19    public $columns = array( );
     20    public $metaboxes = array( );
    1721
    1822    /**
     
    13121316            $data['promo_name'] = $promo->post_title;
    13131317            $data['startdate'] = date_i18n( 'Y-m-d', $date );
    1314             $data['starts'] = date_i18n( $this->dformat, $date );
    1315             $data['expires'] = date_i18n( $this->dformat, $expire );
     1318            $data['starts'] = date_i18n( $this->date_format, $date );
     1319            $data['expires'] = date_i18n( $this->date_format, $expire );
    13161320            $data['expiration_date'] = date_i18n( 'Y-m-d', $expire );
    13171321
     
    14671471                                break;
    14681472                            case 'starts':
    1469                                 $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) .'" > ' . esc_html(  date_i18n( $this->dformat, strtotime( $promo->post_date ) ) ) . '</td>' ;
     1473                                $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) .'" > ' . esc_html(  date_i18n( $this->date_format, strtotime( $promo->post_date ) ) ) . '</td>' ;
    14701474                                break;
    14711475                            case 'expires':
    14721476                                $r .= '<td class="' . esc_attr( "column-{$column_id}{$hide}" ) . '" > ';
    14731477                                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 ) );
     1478                                    if ( $this->is_ims_time( $expires ) ) $r .= esc_html( date_i18n( $this->date_format, $expires, true ) );
    14751479                                }
    14761480                                $r .= '</td>' ;
  • image-store/trunk/_inc/store.php

    r3302739 r3302867  
    1515     * Public variables
    1616     */
     17
    1718    public $gal = false;
     19    public $term = false;
    1820    public $error = false;
    19     public $term = false;
     21    public $order = false;
    2022    public $imgurl = false;
     23    public $sortby = false;
    2124    public $is_grid = false;
    2225    public $user_id = false;
     
    2629    public $message = false;
    2730    public $is_widget = false;
     31    public $is_taxonomy = false;
    2832    public $pricelist_id = false;
    2933    public $cart_status = false;
    3034    public $active_store = false;
    3135    public $favorites_ids = false;
    32     public $is_taxonomy = false;
    3336    public $post_logged_in = false;
    3437    public $show_comments = false;
    3538    public $is_embed_page = false;
     39    public $use_trailing_slashes = false;
    3640
    3741    public $post = array( );
    3842    public $meta = array( );
    3943    public $sizes = array( );
     44    public $feeds = 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 r3302867  
    1717
    1818    class ImStoreShortCode {
     19
     20        public $opts = array();
    1921
    2022        /**
  • image-store/trunk/admin/customers/customer-galleries.php

    r3302739 r3302867  
    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 r3302867  
    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 r3302867  
    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 r3302867  
    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.