return response($return, 200)
->header("Content-type", "application/json")
->header("Access-Control-Allow-Credentials", "true")
->header("Access-Control-Allow-Origin", "*.ampproject.org")
//->header("AMP-Access-Control-Allow-Source-Origin", $ampxhr)
->header("Access-Control-Expose-Headers", "AMP-Access-Control-Allow-Source-Origin");
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WP_Query Object | |
| ( | |
| [query] => Array | |
| ( | |
| [post_type] => product | |
| [posts_per_page] => -1 | |
| [meta_key] => ohubsort_101 | |
| [orderby] => meta_value_num | |
| [order] => ASC | |
| [post_status] => Array |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WP_Query Object | |
| ( | |
| [query] => Array | |
| ( | |
| [post_type] => product | |
| [tax_query] => Array | |
| ( | |
| [0] => Array | |
| ( | |
| [taxonomy] => product_cat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function add_cartmagician(product_id, usdz_path) { | |
| jQuery(document).ready(function ($) { | |
| // iOS Safari | |
| if (navigator.userAgent.match(/(\(iPod|\(iPhone|\(iPad)/)) { | |
| var ua = window.navigator.userAgent; | |
| var iOSSafari = ((!!ua.match(/iPad/i)) || (!!ua.match(/iPhone/i))) && ((!!ua.match(/WebKit/i)) && (!!ua.match(/CriOS/i) != true)); | |
| // Var to know when the arview is open | |
| var arView = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( is_admin() ) { | |
| $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response' ), false, 1 ); | |
| did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array( | |
| 'noPerm' => __('You do not have permission to do that.'), | |
| 'broken' => __('An unidentified error has occurred.') | |
| )); | |
| $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'quicktags', 'jquery-query'), false, 1 ); | |
| did_action( 'init' ) && $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php get_header(); ?> | |
| <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); | |
| global $numpages; | |
| global $page; | |
| $featured_img_url = get_the_post_thumbnail_url($post->ID, 'full'); | |
| $is_gallery = $numpages>1 ? true : false; | |
| $ad_format = $is_gallery ? 'gallery' : 'single'; | |
| ?> | |
| <div class="container"> | |
| <div class="row mt-2"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var intervalHandle = setInterval(function() { | |
| var i = 0; | |
| $('.js-delete').each(function() { | |
| if (i > 5) { | |
| return false; | |
| } | |
| $(this).click(); | |
| if ($(this).parent().css('display') == 'block') { | |
| i++; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html ⚡> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>AMP #0</title> | |
| <link rel="canonical" href="amps.html" > | |
| <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | |
| <meta name="apple-mobile-web-app-title" content="AppTitle"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> |