Changeset 2777865
- Timestamp:
- 08/30/2022 05:22:43 PM (4 years ago)
- Location:
- themefarmer-companion/trunk
- Files:
-
- 4 added
- 2 edited
-
theme-files/demos/storez/images/screenshot.jpg (added)
-
theme-files/demos/storez/storez-customizer.dat (added)
-
theme-files/demos/storez/storez-demo-data.xml (added)
-
theme-files/demos/storez/storez-widget.wie (added)
-
theme-files/storez-functions.php (modified) (6 diffs)
-
themefarmer-companion.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
themefarmer-companion/trunk/theme-files/storez-functions.php
r2770286 r2777865 17 17 'sanitize_callback' => 'themefarmer_field_repeater_sanitize', 18 18 '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 ) 19 43 )); 20 44 … … 39 63 'type' => 'image', 40 64 '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'), 42 66 ), 43 67 'button_text' => array( … … 55 79 56 80 $wp_customize->selective_refresh->add_partial('themefarmer_home_slider', array( 57 'selector' => '. home-carousel.carousel-caption',81 'selector' => '.section-slider .carousel-caption', 58 82 'fallback_refresh' => false, 59 83 )); … … 218 242 add_action('customize_register', 'themefarmer_companion_storez_customize_register', 99); 219 243 244 245 246 247 function 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 } 260 add_filter('pt-ocdi/import_files', 'themefarmer_companion_newstore_ocdi_import_files'); 261 262 220 263 function themefarmer_companion_storez_ocdi_after_import($selected_import) { 221 264 … … 230 273 )); 231 274 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 232 281 if (absint($cat_1->term_id)) { 233 282 set_theme_mod('storez_frontpage_cat_id_1', absint($cat_1->term_id)); … … 246 295 } 247 296 248 if (absint($cat_5->term_id)) { 249 set_theme_mod('storez_frontpage_cat_id_5', absint($cat_5->term_id)); 250 } 297 251 298 252 299 // Assign front page and posts page (blog page). -
themefarmer-companion/trunk/themefarmer-companion.php
r2770286 r2777865 6 6 Author URI: https://www.themefarmer.com/ 7 7 Domain Path: /lang/ 8 Version: 1.3. 48 Version: 1.3.5 9 9 Text Domain: themefarmer-companion 10 10
Note: See TracChangeset
for help on using the changeset viewer.