Initial Commit N° : 001 - V.4.3.3

This commit is contained in:
elmatadoor committed 2025-03-28 14:32:57 +01:00
commit 238e5d7999
809 files changed
+371149

No files matched your search

@@ -0,0 +1,72 @@
<?php
function nasa_elm_toys_1()
{
$placeholder_src = function_exists('wc_placeholder_img_src') ? wc_placeholder_img_src() : 'https://via.placeholder.com/1200x800?text=1200x800';
$imgs_1 = elessi_import_upload('/elementor/wp-content/uploads/2024/12/toy-banner-2.jpg', '3094', array(
'post_title' => 'toy-banner-2',
'post_name' => 'toy-banner-2',
));
$imgs_1_src = $imgs_1 ? wp_get_attachment_image_url($imgs_1, 'full') : 'https://via.placeholder.com/380x361?text=380x361';
$imgs_2 = elessi_import_upload('/elementor/wp-content/uploads/2024/12/toy-banner-3.jpg', '3094', array(
'post_title' => 'toy-banner-3',
'post_name' => 'toy-banner-3',
));
$imgs_2_src = $imgs_2 ? wp_get_attachment_image_url($imgs_2, 'full') : 'https://via.placeholder.com/380x361?text=380x361';
$imgs_3 = elessi_import_upload('/elementor/wp-content/uploads/2024/12/toy-banner-4-1.jpg', '3094', array(
'post_title' => 'toy-banner-4',
'post_name' => 'toy-banner-4',
));
$imgs_3_src = $imgs_3 ? wp_get_attachment_image_url($imgs_3, 'full') : 'https://via.placeholder.com/380x361?text=380x361';
$brand_1 = elessi_import_upload('/wp-content/uploads/2017/09/brand-1.jpg', '3074', array(
'post_title' => 'Brand IMG 1',
'post_name' => 'brand-1',
));
$brand_2 = elessi_import_upload('/wp-content/uploads/2017/09/brand-2.jpg', '3074', array(
'post_title' => 'Brand IMG 2',
'post_name' => 'brand-2',
));
$brand_3 = elessi_import_upload('/wp-content/uploads/2017/09/brand-3.jpg', '3074', array(
'post_title' => 'Brand IMG 3',
'post_name' => 'brand-3',
));
$brand_4 = elessi_import_upload('/wp-content/uploads/2017/09/brand-4.jpg', '3074', array(
'post_title' => 'Brand IMG 4',
'post_name' => 'brand-4',
));
$brand_5 = elessi_import_upload('/wp-content/uploads/2017/09/brand-5.jpg', '3074', array(
'post_title' => 'Brand IMG 5',
'post_name' => 'brand-5',
));
$brand_6 = elessi_import_upload('/wp-content/uploads/2017/09/brand-6.jpg', '3074', array(
'post_title' => 'Brand IMG 6',
'post_name' => 'brand-6',
));
return array(
'post' => array(
'post_title' => 'ELM Toys V1',
'post_name' => 'elm-toys-v1'
),
'post_meta' => array(
'_elementor_data' => '[ { "id": "56f03ecd", "elType": "section", "settings": { "border_radius": { "unit": "px", "top": "10", "right": "10", "bottom": "10", "left": "10", "isLinked": true }, "margin": { "unit": "px", "top": "0", "right": 0, "bottom": "50", "left": 0, "isLinked": false } }, "elements": [ { "id": "31cc0503", "elType": "column", "settings": { "_column_size": 100, "_inline_size": 100, "margin": { "unit": "px", "top": "0", "right": "0", "bottom": "0", "left": "0", "isLinked": false } }, "elements": [ { "id": "17a6e90d", "elType": "widget", "settings": { "alias": "slider-toys", "alias_m": "slider-toys", "_border_radius": { "unit": "px", "top": "10", "right": "10", "bottom": "10", "left": "10", "isLinked": true }, "_margin": { "unit": "px", "top": "0", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "el_class": "nasa-radius-10 ns-ovhd", "_padding": { "unit": "px", "top": "0", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "_element_width": "inherit", "_element_custom_width": { "unit": "%", "size": 1180, "sizes": [] } }, "elements": [], "widgetType": "nasa-rev-slider" } ], "isInner": false } ], "isInner": false }, { "id": "4d53ba97", "elType": "section", "settings": [], "elements": [ { "id": "173881d3", "elType": "column", "settings": { "_column_size": 100, "_inline_size": null }, "elements": [ { "id": "4bda3fcb", "elType": "widget", "settings": { "columns_number": "6", "el_class": "items-r50 items-padding-20px", "disp_type": "Horizontal6", "_margin": { "unit": "px", "top": "0", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "auto_slide": "", "_element_width": "initial", "_element_custom_width": { "unit": "%", "size": 85.714, "sizes": [] }, "_element_custom_width_tablet": { "unit": "%", "size": 100, "sizes": [] }, "_element_custom_width_mobile": { "unit": "%", "size": "", "sizes": [] }, "number": 6 }, "elements": [], "widgetType": "nasa-product-categories" }, { "id": "228a2476", "elType": "widget", "settings": { "html": "<style>\r\n .nasa-cat-link-extra svg path{\r\n transition: all 350ms ease;\r\n }\r\n \r\n .nasa-cat-link-extra .nasa-cat-thumb {\r\n transition: all 350ms ease;\r\n border-radius: 50%; \r\n overflow: hidden; \r\n border: 1px solid #b7b7b7; \r\n height: 100%; \r\n width: 100%; \r\n aspect-ratio: 1 \/ 1;\r\n }\r\n \r\n .nasa-cat-link-extra:hover svg path{\r\n fill:#333;\r\n }\r\n \r\n .nasa-cat-link-extra:hover .nasa-cat-thumb{\r\n border-color:#333;\r\n }\r\n<\/style>\r\n<div class=\"product-category-extra\">\r\n <a class=\"nasa-cat-link-extra\" href=\"https:\/\/elessi.nasatheme.com\/elementor\/product-category\/toys-kids\/\" title=\"Shop all\">\r\n <div class=\"nasa-cat-thumb nasa-flex jc\" style=\"\r\n \">\r\n <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 10 10\" width=\"15\" height=\"15\">\r\n <path d=\"M1.07692 10L0 8.92308L7.38462 1.53846H0.769231V0H10V9.23077H8.46154V2.61538L1.07692 10Z\" fill=\"#b7b7b7\"><\/path>\r\n <\/svg>\r\n <\/div>\r\n <p class=\"header-title text-center nasa-cat-title-extra margin-top-10 margin-bottom-5 nasa-bold\" style=\"font-size: 105%; color: #444;\">Shop all<\/p>\r\n <\/a>\r\n<\/div>", "_padding": { "unit": "px", "top": "20", "right": "10", "bottom": "20", "left": "30", "isLinked": false }, "_element_width": "initial", "_element_custom_width": { "unit": "%", "size": 14.285, "sizes": [] }, "_element_custom_width_mobile": { "unit": "px", "size": 0, "sizes": [] }, "_css_classes": "hide-for-small hide-for-medium", "_element_vertical_align": "center" }, "elements": [], "widgetType": "html" } ], "isInner": false } ], "isInner": false }, { "id": "53d1735", "elType": "section", "settings": { "margin": { "unit": "px", "top": "20", "right": 0, "bottom": "30", "left": 0, "isLinked": false }, "padding": { "unit": "px", "top": "0", "right": "0", "bottom": "0", "left": "0", "isLinked": false } }, "elements": [ { "id": "333ba3e2", "elType": "column", "settings": { "_column_size": 100, "_inline_size": null }, "elements": [ { "id": "78748589", "elType": "widget", "settings": { "editor": "<div class=\"nasa-flex jc flex-column\" style=\"gap: 10px;\">\n<h3 class=\"fs-29 tablet-fs-28 text-center mobile-fs-27 margin-bottom-0\">OUR BEST SELLER<\/h3>\n\n<hr class=\"primary-border nasa-border-top w-100 margin-bottom-10\" style=\"width: 150px; display: block; border-width: 1px;\" \/>\n\n<\/div>", "_margin": { "unit": "px", "top": "0", "right": "0", "bottom": "-10", "left": "0", "isLinked": false } }, "elements": [], "widgetType": "text-editor" }, { "id": "5ce850a9", "elType": "widget", "settings": { "wp": { "title": "", "title_font_size": "", "desc": "", "alignment": "center", "style": "2d-radius-dashed", "el_class": "nasa-img-product-force-radius-10", "tabs": { "1603386304507": { "before_tab_title": "", "tab_title": "New Arrivals Line truncated
'_elementor_controls_usage' => '',
'_elementor_css' => 'a:6:{s:4:"time";i:1734424195;s:5:"fonts";a:0:{}s:5:"icons";a:0:{}s:20:"dynamic_elements_ids";a:0:{}s:6:"status";s:4:"file";i:0;s:0:"";}',
),
'globals' => array(
'header-type' => '1',
'plus_wide_width' => '0',
'color_primary' => '',
'footer_mode' => 'builder-e',
'footer_elm' => elessi_elm_fid_by_slug('hfe-footer-toys'),
'footer_elm_mobile' => elessi_elm_fid_by_slug('hfe-footer-mobile'),
),
'css' => '.elementor-[inserted_id] .elementor-element.elementor-element-56f03ecd, .elementor-[inserted_id] .elementor-element.elementor-element-56f03ecd > .elementor-background-overlay{border-radius:10px 10px 10px 10px;}.elementor-[inserted_id] .elementor-element.elementor-element-56f03ecd{margin-top:0px;margin-bottom:50px;}.elementor-[inserted_id] .elementor-element.elementor-element-31cc0503 > .elementor-element-populated{margin:0px 0px 0px 0px;--e-column-margin-right:0px;--e-column-margin-left:0px;}.elementor-[inserted_id] .elementor-element.elementor-element-17a6e90d{width:100%;max-width:100%;}.elementor-[inserted_id] .elementor-element.elementor-element-17a6e90d > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;border-radius:10px 10px 10px 10px;}.elementor-[inserted_id] .elementor-element.elementor-element-4bda3fcb{width:var( --container-widget-width, 85.714% );max-width:85.714%;--container-widget-width:85.714%;--container-widget-flex-grow:0;}.elementor-[inserted_id] .elementor-element.elementor-element-4bda3fcb > .elementor-widget-container{margin:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-228a2476{width:var( --container-widget-width, 14.285% );max-width:14.285%;--container-widget-width:14.285%;--container-widget-flex-grow:0;align-self:center;}.elementor-[inserted_id] .elementor-element.elementor-element-228a2476 > .elementor-widget-container{padding:20px 10px 20px 30px;}.elementor-[inserted_id] .elementor-element.elementor-element-53d1735{margin-top:20px;margin-bottom:30px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-78748589 > .elementor-widget-container{margin:0px 0px -10px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-3d7f2a68{margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-4a6ec265{margin-top:70px;margin-bottom:40px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-6b3c361c > .elementor-widget-container{margin:0px 0px 05px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-6b3c361c .elementor-heading-title{font-weight:bold;}.elementor-[inserted_id] .elementor-element.elementor-element-4f3951cc > .elementor-widget-container{margin:0px 0px 5px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-63d03283 > .elementor-widget-container{margin:0px 0px 5px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-63d03283 .elementor-heading-title{font-weight:bold;}.elementor-[inserted_id] .elementor-element.elementor-element-2f4737ab{margin-top:0px;margin-bottom:0px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-65a308ee > .elementor-widget-container{margin:0px 0px 70px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-11ffe1e4:not(.elementor-motion-effects-element-type-background), .elementor-[inserted_id] .elementor-element.elementor-element-11ffe1e4 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#F8F8F8;}.elementor-[inserted_id] .elementor-element.elementor-element-11ffe1e4{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;padding:5px 0px 5px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-11ffe1e4 > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-[inserted_id] .elementor-element.elementor-element-546499c3{width:100%;max-width:100%;}.elementor-[inserted_id] .elementor-element.elementor-element-2d77ef99{margin-top:30px;margin-bottom:0px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-7c78d558 > .elementor-widget-wrap > .elementor-widget:not(.elementor-widget__width-auto):not(.elementor-widget__width-initial):not(:last-child):not(.elementor-absolute){margin-bottom:20px;}.elementor-[inserted_id] .elementor-element.elementor-element-7c78d558 > .elementor-element-populated{padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-107621ee > .elementor-widget-container{margin:60px 0px 0px 0px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-57f6f42c{margin-top:0px;margin-bottom:50px;padding:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-61c7519 > .elementor-widget-container{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}@media(min-width:768px){.elementor-[inserted_id] .elementor-element.elementor-element-31cc0503{width:100%;}}@media(max-width:1024px){.elementor-[inserted_id] .elementor-element.elementor-element-4bda3fcb{--container-widget-width:100%;--container-widget-flex-grow:0;width:var( --container-widget-width, 100% );max-width:100%;}}@media(max-width:767px){.elementor-[inserted_id] .elementor-element.elementor-element-228a2476{--container-widget-width:0px;--container-widget-flex-grow:0;wid Line truncated
);
}