<?php
function nasa_hfe_footer_book()
{
    $imgs_1 = elessi_import_upload('/elementor/wp-content/uploads/2025/03/book-store-logo-1.png', '1698', array(
        'post_title' => 'book-store-logo-1.png',
        'post_name' => 'book-store-logo-1.png',
    ));
    $imgs_1_src = $imgs_1 ? wp_get_attachment_image_url($imgs_1, 'full') : 'https://dummyimage.com/124x30?text=124x30';

    $imgs_2 = elessi_import_upload('/elementor/wp-content/uploads/2025/03/book-store-image-footer-4.png', '1698', array(
        'post_title' => 'book-store-image-footer-4',
        'post_name' => 'book-store-image-footer-4',
    ));
    $imgs_2_src = $imgs_2 ? wp_get_attachment_image_url($imgs_2, 'full') : 'https://dummyimage.com/298x207?text=298x207';

    $imgs_3 = elessi_import_upload('/elementor/wp-content/uploads/2025/03/book-store-footer-background.jpg', '1698', array(
        'post_title' => 'book-store-footer-background.jpg',
        'post_name' => 'book-store-footer-background.jpg',
    ));
    $imgs_3_src = $imgs_3 ? wp_get_attachment_image_url($imgs_3, 'full') : 'https://dummyimage.com/1728x460?text=1728x460';

    return array(
        'post' => array(
            'post_title' => 'HFE Footer Book',
            'post_name' => 'hfe-footer-book',
        ),

        'post_meta' => array(
            '_elementor_data' => '[ { "id": "100899d3", "settings": { "content_position": "middle", "structure": "20", "border_border": "solid", "border_width": { "unit": "px", "top": "001", "right": "0", "bottom": "1", "left": "0", "isLinked": false }, "border_color": "#CCCCCC", "margin": { "unit": "px", "top": "0", "right": 0, "bottom": "0", "left": 0, "isLinked": false }, "padding": { "unit": "px", "top": "30", "right": "0", "bottom": "30", "left": "0", "isLinked": false }, "padding_mobile": { "unit": "px", "top": "15", "right": "0", "bottom": "35", "left": "0", "isLinked": false } }, "elements": [ { "id": "69a91d08", "settings": { "_column_size": 50, "_inline_size": null, "css_classes": "mobile-padding-bottom-0 " }, "elements": [ { "id": "6112b69", "settings": { "editor": "<h2 class=\"margin-bottom-0 mobile-margin-bottom-10 margin-top-0 fs-26 mobile-fs-22\">Subcribe to our Newsletter<\/h2>\n<p class=\"margin-top-0\">Be the first to know about new products, sales and promotions.<\/p>", "_css_classes": "margin-bottom-0 " }, "elements": [], "isInner": false, "widgetType": "text-editor", "elType": "widget" }, { "id": "67cddb6b", "settings": { "html": "<style>\n    .hand-tool-ctf7 .btn-submit-newsletters {\n        position: absolute;\n        right: 0;\n        border-radius: 0 5px 5px 0 !important;\n    }\n<\/style>", "_css_classes": "hidden-tag" }, "elements": [], "isInner": false, "widgetType": "html", "elType": "widget" } ], "isInner": false, "elType": "column" }, { "id": "3aaa3730", "settings": { "_column_size": 50, "_inline_size": null }, "elements": [ { "id": "1c4d43c1", "settings": { "shortcode": "[contact-form-7 id=\"210\" title=\"Elessi Newsletter Footer\"]", "_css_classes": "hand-tool-ctf7" }, "elements": [], "isInner": false, "widgetType": "shortcode", "elType": "widget" } ], "isInner": false, "elType": "column" } ], "isInner": false, "elType": "section" }, { "id": "7f9a7e62", "settings": { "background_background": "classic", "background_image": { "id": ' . $imgs_3 . ', "url": ' . json_encode($imgs_3_src) . ' }, "background_repeat": "no-repeat", "background_size": "cover" }, "elements": [ { "id": "aad4cd7", "settings": { "_column_size": 100, "_inline_size": null }, "elements": [ { "id": "63885436", "settings": { "image": { "id": ' . $imgs_1 . ', "url": ' . json_encode($imgs_1_src) . ' }, "_margin": { "unit": "px", "top": "30", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "_margin_mobile": { "unit": "px", "top": "30", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "image_size": "full" }, "elements": [], "isInner": false, "widgetType": "image", "elType": "widget" }, { "id": "69d1f67f", "settings": { "html": "<div class=\"nasa-flex margin-bottom-25 flex-wrap jc\" style=\"gap: 15px 40px;\">\n<a href=\"#\">Delivery Information<\/a>\n<a href=\"#\">Privacy Policy<\/a>\n<a href=\"#\">Terms & Condition<\/a>\n<a href=\"#\">Search Terms<\/a>\n<a href=\"#\">Order & Return<\/a>\n<\/div>", "_margin": { "unit": "px", "top": "20", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "_element_width": "inherit", "_margin_mobile": { "unit": "px", "top": "10", "right": "0", "bottom": "10", "left": "0", "isLinked": false } }, "elements": [], "isInner": false, "widgetType": "html", "elType": "widget" }, { "id": "64f414c8", "settings": { "image": { "id": ' . $imgs_2 . ', "url": ' . json_encode($imgs_2_src) . ' }, "_margin": { "unit": "px", "top": "0", "right": "0", "bottom": "0", "left": "0", "isLinked": false }, "_css_classes": "margin-bottom-0", "image_size": "full" }, "elements": [], "isInner": false, "widgetType": "image", "elType": "widget" }, { "id": "276f8e88", "settings": { "el_class": "nasa-flex jc", "_css_classes": "margin-bottom-10" }, "elements": [], "isInner": false, "widgetType": "nasa-share", "elType": "widget" }, { "id": "5a4ca2e3", "settings": { "editor": "\u00a9 2025 <span style=\"font-weight: 500;\">Nasatheme<\/span> - All Right reserved!", "align": "center", "_margin": { "unit": "px", "top": "0", "right": "0", "bottom": "20", "left": "0", "isLinked": false } }, "elements": [], "isInner": false, "widgetType": "text-editor", "elType": "widget" } ], "isInner": false, "elType": "column" } ], "isInner": false, "elType": "section" } ]',

            '_elementor_css' => '.elementor-[inserted_id] .elementor-element.elementor-element-74102a41 > .elementor-container > .elementor-column > .elementor-widget-wrap{align-content:center;align-items:center;}.elementor-[inserted_id] .elementor-element.elementor-element-74102a41{border-style:solid;border-width:001px 0px 1px 0px;border-color:#CCCCCC;margin-top:0px;margin-bottom:0px;padding:30px 0px 30px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-6e2ce9a2:not(.elementor-motion-effects-element-type-background), .elementor-[inserted_id] .elementor-element.elementor-element-6e2ce9a2 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://elessi.b-cdn.net/elementor/wp-content/uploads/2025/03/book-store-footer-background.jpg");background-repeat:no-repeat;background-size:cover;}.elementor-[inserted_id] .elementor-element.elementor-element-6e2ce9a2{transition:background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;}.elementor-[inserted_id] .elementor-element.elementor-element-6e2ce9a2 > .elementor-background-overlay{transition:background 0.3s, border-radius 0.3s, opacity 0.3s;}.elementor-[inserted_id] .elementor-element.elementor-element-12ce378b > .elementor-widget-container{margin:30px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-28034e99{width:100%;max-width:100%;}.elementor-[inserted_id] .elementor-element.elementor-element-28034e99 > .elementor-widget-container{margin:20px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-4aa97c80 > .elementor-widget-container{margin:0px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-32e1e1b4 > .elementor-widget-container{margin:0px 0px 20px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-32e1e1b4{text-align:center;}@media(max-width:767px){.elementor-[inserted_id] .elementor-element.elementor-element-74102a41{padding:15px 0px 35px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-12ce378b > .elementor-widget-container{margin:30px 0px 0px 0px;}.elementor-[inserted_id] .elementor-element.elementor-element-28034e99 > .elementor-widget-container{margin:10px 0px 10px 0px;}}',
        ),
    );
}
