{"id":6,"date":"2024-09-20T15:33:09","date_gmt":"2024-09-20T15:33:09","guid":{"rendered":"https:\/\/iframe.live-pinnacle.com\/toybox\/rent-storage\/"},"modified":"2024-09-20T17:17:49","modified_gmt":"2024-09-20T17:17:49","slug":"rent-storage","status":"publish","type":"page","link":"https:\/\/iframe.live-pinnacle.com\/toybox\/rent-storage\/","title":{"rendered":"Rent Storage"},"content":{"rendered":"\n<div class=\"ajax_theme_load\" data-theme=\"candee_units0894864001783714773\"><div class=\"activeSpinner showSpinner\" style=\"margin-left: 32px;\">Loading...<\/div><\/div>\n\n<script class=\"candee_units0894864001783714773__setupScript\">\n    \/\/ Put theme in prop to be used in ajax request and remove data-theme attribute\n    var el = cQuery('[data-theme=\"candee_units0894864001783714773\"]');\n\n    docReady(function() {\n        cQuery.ajax({\n            type: 'POST',\n            url: ajaxurl,\n            data: {\n                action: 'candee_ajax_load_template', \/\/ PHP function from candee.php\n                query_vars: JSON.parse(atob('eyJzaG9ydGNvZGUiOiJbY2FuZGVlX3VuaXRzICBhamF4PVwiZmFsc2VcIiAgYWpheF90aGVtZT1cIjJcIiAgXSIsImxhbmciOiJlbiJ9')), \/\/ Base64-encoded to prevent page builders from corrupting inline JSON\n                current_url: 'https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/pages\/6', \/\/ Current page url\n                ajax_data: { 'theme' : 'templates\/ajax_load\/ajax_load_theme_2.php' },\n            },\n            success: function(response){\n                var el = cQuery('[data-theme=\"candee_units0894864001783714773\"]');\n                if (el.length > 0){\n                    el.replaceWith(response); \/\/ Replace element with loaded theme template\n                }\n\n                cQuery('.googleTagManager').each(function(){ \/\/ Move google data to element object as a property for html cleanup\n                    var gtagData = cQuery(this).attr('data-google');\n                    if (SHARED.isset(gtagData) && gtagData != ''){\n                        cQuery(this)[0].googleTagManager = gtagData;\n                        cQuery(this).removeAttr('data-google');\n                    }\n                });\n\n                \n                cQuery(\".candee_units0894864001783714773__setupScript\").remove(); \/\/ Cleanup\n                \n                cQuery(document).trigger('ajax_complete'); \/\/ jQuery trigger custom event\n                document.dispatchEvent(new Event('v_ajax_complete')); \/\/ Vanilla js trigger custom event (for specific clients)\n                \n                                    cQuery(document).trigger('ajax_complete_candee_units');\n                    document.dispatchEvent(new Event('v_ajax_complete_candee_units'));\n                            },\n            error: function(){\n                var el = cQuery('[data-theme=\"candee_units0894864001783714773\"]');\n                if (el.length > 0){\n                    el.empty(); \/\/ Replace element with loaded theme template\n                }\n                console.warn('ERROR: '+response);\n                \n                cQuery(\".candee_units0894864001783714773__setupScript\").remove(); \/\/ Cleanup\n            },\n            fail: function(response){ \/\/ Empty element and show warning if failed\n                var el = cQuery('[data-theme=\"candee_units0894864001783714773\"]');\n                if (el.length > 0){\n                    el.empty(); \/\/ Replace element with loaded theme template\n                }\n                console.warn('ERROR: '+response);\n                \n                cQuery(\".candee_units0894864001783714773__setupScript\").remove(); \/\/ Cleanup\n            }\n        });\n    });\n\n<\/script>\r\n\r\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/pages\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":4,"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/pages\/6\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/pages\/6\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/iframe.live-pinnacle.com\/toybox\/wp-json\/wp\/v2\/media?parent=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}