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 isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/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
"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),function(){var e=function(){this.options={menuToggleDuration:300},this.menuSidebarState="closed",this.isPreviewing=document.body.classList.contains("customize-previewing"),this.init()};e.prototype.checkTouchScreen=function(){"ontouchstart"in document.documentElement?document.body.classList.add("ontouch-screen"):document.body.classList.add("not-touch-screen")},e.prototype.isMobile=function(){return!!(navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.us |
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_action( 'init', 'add_my_custom_header' ); | |
function add_my_custom_header() { | |
remove_action( 'onepress_site_start', 'onepress_site_header' ); | |
add_action( 'onepress_site_start', 'custom_onepress_site_header' ); | |
} | |
function custom_onepress_site_header() { | |
$header_width = get_theme_mod( 'onepress_header_width', 'contained' ); | |
$is_disable_sticky = sanitize_text_field( get_theme_mod( 'onepress_sticky_header_disable' ) ); | |
$classes = 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
var onepressIsMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); | |
}, | |
iOS: function() { | |
return navigator.userAgent.match(/iPhone|iPad|iPod/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
<?php | |
$google_fonts = ' | |
{ | |
"kind": "webfonts#webfontList", | |
"items": [ | |
{ | |
"kind": "webfonts#webfont", | |
"family": "ABeeZee", |
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
/** | |
* Shipping City for WooCommerce | |
* | |
* @author longnguyen [email protected] | |
* https://profiles.wordpress.org/longnguyen | |
*/ | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
add_action( 'woocommerce_shipping_init', 'woocommerce_shipping_city_init' ); | |
add_filter( 'woocommerce_shipping_methods', 'woocommerce_shipping_city_method' ); |
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 | |
/** | |
* News Recent Posts | |
*/ | |
class my_passionate_recent_posts extends WP_Widget { | |
public function __construct() { | |
parent::__construct( | |
'passionate_recent_posts', |
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
/** | |
* Set Cookie | |
* | |
* @param cname | |
* @param cvalue | |
* @param exdays | |
*/ | |
function setCookie( cname, cvalue, exdays ) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays*24*60*60*1000)); |
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
== Changelog == | |
## 1.3.0 | |
* FIXED: js error in page theme options. | |
## 1.2.9 | |
* NEW: add option to show/hide the post meta on single post. | |
* NEW: add option to enable/disable group of expired coupons. | |
## 1.2.8 | |
* NEW: add option to hide the "submit a coupon" on store page. | |
* NEW: support RTL for coupon slider & carousel. | |
* IMPROVED: Update a small typo issue. |
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
<html lang="en"> <head> <title>gateway</title> <meta http-equiv="Expires" content="28FEB2002" /> <meta http-equiv="CACHE-CONTROL" content="NO-CACHE" /> <script type="text/javascript"> function addFields(formObj){}function redirect(commitType){var cookieenabled=false;if(navigator.cookieEnabled){if(navigator.cookieEnabled==true){var exdate=new Date();exdate.setDate(exdate.getDate()+1);document.cookie="DGCC="+escape(genPid())+";path=/;expires="+exdate.toGMTString();cookieenabled=(document.cookie.indexOf("DGCC")!=-1)? true : false;}}if(cookieenabled){if(commitType=="reload")window.location.reload(true);else{var oFrm=document.createElement("form");var oEnvlp=document.getElementById("frmPlsHldr");oFrm.method="post";addFields(oFrm);oEnvlp.appendChild(oFrm);oFrm.submit();}}else{var oJSCookieMSGObj=document.getElementById('JSCookieMSG');oJSCookieMSGObj.style.display='block';}}</script> </he |