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 TemplateHelper = { | |
Init : function() { | |
var objectInstance = this; | |
this.EventManager.registerEvent('displayMovement'); | |
this.Component.Init(objectInstance); | |
jQuery(window).bind('resize scroll', function(){ |
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 | |
global $wpdb; | |
$query = 'SELECT oinfo.ID | |
FROM ' . $wpdb->base_prefix . 'woocommerce_order_items as oitem | |
LEFT JOIN ' . $wpdb->base_prefix . 'posts as oinfo ON oinfo.ID = oitem.order_id | |
LEFT JOIN ' . $wpdb->base_prefix . 'postmeta as ometa ON ometa.post_id = oinfo.ID AND ometa.meta_key = "_customer_user" | |
LEFT JOIN ' . $wpdb->base_prefix . 'woocommerce_order_itemmeta as oimeta ON oimeta.order_item_id = oitem.order_item_id | |
AND oimeta.meta_key = "_product_id" |
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 Layout = { | |
_handleSmartIFrameContainers : function() { | |
var objectInstance = this; | |
jQuery('[data-smart-iframe]').each(function() { | |
var smartIFrameContainer = jQuery(this); | |
jQuery(this).find(jQuery(this).attr('data-smart-iframe')).bind("click", function(event) { | |
event.preventDefault(); |
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 | |
namespace WPEPAddOnImportExport\Coordinator; | |
class AssetMatcher { | |
public $website_url; | |
public function __construct() { | |
$this->website_url = get_site_url(); |
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 | |
// This is an PHP Trait http://php.net/manual/ro/language.oop5.traits.php | |
trait FilterProxy { | |
protected $_filter_proxy_storage = []; | |
public function _filter_proxy_setup( $information ) { | |
if( empty( $information ) ) |
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
SELECT p.ID as license_id, | |
c_exp.meta_value as child_expiration, | |
p_exp.meta_value as parent_expiration | |
FROM `wp_posts` p | |
LEFT JOIN `wp_postmeta` c_exp ON c_exp.post_id = p.ID AND c_exp.meta_key = "_edd_sl_expiration" | |
LEFT JOIN `wp_postmeta` p_exp ON p_exp.post_id = p.post_parent AND p_exp.meta_key = "_edd_sl_expiration" | |
WHERE p.`post_type` = 'edd_license' | |
AND p.post_parent != 0 |
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
$.fn.wpepSerializeObject = function () { | |
"use strict"; | |
var result = {}, | |
objectInstance = this; | |
var extend = function (i, element) { | |
var node = result[element.name]; | |
if ('undefined' !== typeof node && node !== null) { |
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 | |
$user_entries = FrmEntry::getAll( [ | |
'form_id' => $required_form_id_any, | |
'user_id' => get_current_user_id(), | |
'parent_item_id' => 0 | |
] ); | |
if( empty( $user_entries ) ) |
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( !defined( 'WPEP_PLACEHOLDER_IMAGE' ) ) | |
define( "WPEP_PLACEHOLDER_IMAGE", "your-image-link-goes-here" ); | |
?> |
OlderNewer