Plugin Directory

Changeset 2777865


Ignore:
Timestamp:
08/30/2022 05:22:43 PM (4 years ago)
Author:
ThemeFarmer
Message:

v 1.3.5

Location:
themefarmer-companion/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • themefarmer-companion/trunk/theme-files/storez-functions.php

    r2770286 r2777865  
    1717        'sanitize_callback' => 'themefarmer_field_repeater_sanitize',
    1818        'transport'         => 'postMessage',
     19        'default'           => array(
     20            array(
     21                    'heading'     => esc_attr__('Slide 1 Heading', 'storez'),
     22                    'description' => esc_attr__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'storez'),
     23                    'image'       => esc_url(THEMEFARMER_COMPANION_URI . 'theme-files/demos/storez/images/slide1-left-img.jpg'),
     24                    'button_text' => esc_attr__('View Details', 'storez'),
     25                    'button_url'  => '#',
     26                ),
     27                array(
     28                    'heading'     => esc_attr__('Slide 2 Heading', 'storez'),
     29                    'description' => esc_attr__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'storez'),
     30                    'image'       => esc_url(THEMEFARMER_COMPANION_URI . 'theme-files/demos/storez/images/slide2-left-img.jpg'),
     31                    'button_text' => esc_attr__('View Details', 'storez'),
     32                    'button_url'  => '#',
     33                ),
     34
     35                array(
     36                    'heading'     => esc_attr__('Slide 3 Heading', 'storez'),
     37                    'description' => esc_attr__('Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 'storez'),
     38                    'image'       => esc_url(THEMEFARMER_COMPANION_URI . 'theme-files/demos/storez/images/slide3-left-img.jpg'),
     39                    'button_text' => esc_attr__('View Details', 'storez'),
     40                    'button_url'  => '#',
     41                )
     42        )
    1943    ));
    2044
     
    3963                'type'    => 'image',
    4064                'label'   => esc_attr__('Image', 'themefarmer-companion'),
    41                 'default' => esc_url(THEMEFARMER_COMPANION_URI . 'theme-files/demos/storez/images/slide1.jpg'),
     65                'default' => esc_url(THEMEFARMER_COMPANION_URI . 'theme-files/demos/storez/images/slide1-left-img.jpg'),
    4266            ),
    4367            'button_text' => array(
     
    5579
    5680    $wp_customize->selective_refresh->add_partial('themefarmer_home_slider', array(
    57         'selector'         => '.home-carousel .carousel-caption',
     81        'selector'         => '.section-slider .carousel-caption',
    5882        'fallback_refresh' => false,
    5983    ));
     
    218242add_action('customize_register', 'themefarmer_companion_storez_customize_register', 99);
    219243
     244
     245
     246
     247function themefarmer_companion_newstore_ocdi_import_files() {
     248    return array(
     249        array(
     250            'import_file_name'             => 'StoreZ',
     251            'categories'                   => array('Customizer'),
     252            'local_import_file'            => trailingslashit(THEMEFARMER_COMPANION_DIR) . 'theme-files/demos/storez/storez-demo-data.xml',
     253            'local_import_widget_file'     => trailingslashit(THEMEFARMER_COMPANION_DIR) . 'theme-files/demos/storez/storez-widget.wie',
     254            'local_import_customizer_file' => trailingslashit(THEMEFARMER_COMPANION_DIR) . 'theme-files/demos/storez/storez-customizer.dat',
     255            'import_preview_image_url'     => esc_url(THEMEFARMER_COMPANION_URI . 'theme-files/demos/storez/images/screenshot.jpg'),
     256            'preview_url'                  => esc_url('https://demo.themefarmer.com/storez/'),
     257        )
     258    );
     259}
     260add_filter('pt-ocdi/import_files', 'themefarmer_companion_newstore_ocdi_import_files');
     261
     262
    220263function themefarmer_companion_storez_ocdi_after_import($selected_import) {
    221264
     
    230273    ));
    231274
     275    $cat_1           = get_term_by('name', 'Accessories', 'product_cat');
     276    $cat_2           = get_term_by('name', 'Men', 'product_cat');
     277    $cat_3           = get_term_by('name', 'Decor', 'product_cat');
     278    $cat_4           = get_term_by('name', 'Jewelry', 'product_cat');
     279   
     280
    232281    if (absint($cat_1->term_id)) {
    233282        set_theme_mod('storez_frontpage_cat_id_1', absint($cat_1->term_id));
     
    246295    }
    247296
    248     if (absint($cat_5->term_id)) {
    249         set_theme_mod('storez_frontpage_cat_id_5', absint($cat_5->term_id));
    250     }
     297   
    251298
    252299    // Assign front page and posts page (blog page).
  • themefarmer-companion/trunk/themefarmer-companion.php

    r2770286 r2777865  
    66Author URI: https://www.themefarmer.com/
    77Domain Path: /lang/
    8 Version: 1.3.4
     8Version: 1.3.5
    99Text Domain: themefarmer-companion
    1010
Note: See TracChangeset for help on using the changeset viewer.