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
$regxp = 'River'; | |
$sql = "SELECT * FROM categories where catinclude RLIKE '(^|,)$regxp(,|\$)'"; |
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
<div id="note" ></div> | |
<br><br><br><br><br><br><br><br><br><br><br> | |
<div class="scrollratio" ></div> | |
<br><br><br><br><br><br><br><br><br><br><br> | |
<br><br><br><br><br><br><br><br><br><br><br> | |
<br><br><br><br><br><br><br><br><br><br><br> | |
<br><br><br><br><br><br><br><br><br><br><br> | |
<style> | |
body { |
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
https://stackoverflow.com/questions/56713668/custom-scrolling-animations-pausing-sections-and-scrolling-elements-horizontal | |
<script> | |
$('.nested').each(function() { | |
let $window = $(window), $body = $('body'); | |
let $nested = $(this), $nestedPlaceholder = $nested.parent(); | |
let verticalScrollRange, upperMargin, lowerMargin; | |
$window.resize(function(){ | |
$nested.removeClass("sticky").css({left: 0}); | |
let placeholderHeight = $nestedPlaceholder.css({height: ''}).height(); |
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
const $img = jQuery(".product__media-list img"); | |
jQuery(".color_input_fields input").on("click",function() { | |
$img.parents('li').hide(); | |
const val = this.value.trim().toLowerCase(); | |
if (val === "") return; | |
$img.filter(function() { return this.alt.toLowerCase().includes(val) }).parents('li').show() | |
}); |
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
/* ------------------------- ADD TO CART section start --------------------- */ | |
add_action('wp_ajax_nopriv_add_to_cart_ajax', 'add_to_cart_ajax_func'); | |
add_action('wp_ajax_add_to_cart_ajax', 'add_to_cart_ajax_func'); | |
function add_to_cart_ajax_func(){ | |
//print_r($_POST); | |
$product_id = $_POST['product_id']; | |
$product_quantity = $_POST['product_quantity']; | |
$total_price = $_POST['total_price']; |
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
// create next previous page for custom post type | |
function get_prevnext_custompost($post_ID, $postType, $taxonomy, $term) { | |
if($taxonomy){ | |
$args = array( | |
'post_type' => $postType, | |
'posts_per_page' => -1, | |
'post_status' => 'publish', | |
'tax_query' => array( | |
array( | |
'taxonomy' => $taxonomy, |
OlderNewer