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 $user_ID = get_current_user_id(); ?> | |
<div ng-controller="singletype" ng-cloak> | |
<div class="col-md-8"> | |
<?php | |
if( is_user_logged_in() ) { | |
while ( have_posts() ) : the_post(); | |
//Default values | |
$pluginClass = ClientExchangePlugin::get_instance(); | |
$checkresults = count( $wpdb->get_results( "SELECT ID FROM wp_watchlist WHERE watching = $post->ID AND userID = $user_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
<?php get_header(); ?> | |
<?php $user_ID = get_current_user_id(); ?> | |
<div id="content" ng-controller="singletype" class="<?php echo $content_class; ?>" style="<?php echo $content_css; ?>" ng-cloak> | |
<div class="avada-row" style=""> | |
<div id="content" class="full-width"> | |
<?php | |
if( is_user_logged_in() ) { | |
while ( have_posts() ) : the_post(); | |
$checkresults = count( $wpdb->get_results( "SELECT ID FROM wp_watchlist WHERE watching = $post->ID AND userID = $user_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
jQuery(document).ready(function() { | |
jQuery("a").each(function() { | |
var e = jQuery(this); | |
var t = e.attr("href"); | |
if (t == undefined || t == "") | |
return; | |
var n = t.replace("http://", "").replace("https://", ""); | |
var r = t.split(".").reverse(); | |
var i = r[0].toLowerCase(); | |
var r = t.split("/").reverse(); |
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
/** | |
* Retruns cat as buttons children for isotope loop | |
*/ | |
function woocommerce_get_cat_children(){ | |
if (is_product_category()) { | |
global $wp_query; | |
$cat = $wp_query->get_queried_object(); | |
$catID = $cat->term_id; | |
$taxonomy_name = "product_cat"; | |
$termchildren = get_term_children( $catID, $taxonomy_name ); |
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 | |
/** | |
* Edit post function endpoint | |
*/ | |
function json_return(){ | |
//Ok here we get the values postsed to this end point | |
$request_body = file_get_contents( 'php://input' ); | |
$decodeit = json_decode( $request_body ); | |
//return result to ajax call |
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 | |
/** Default values used later **/ | |
//Sample items array | |
$items = array( | |
'item_one' => "value one",//simple string | |
'number' => 3,//Number | |
'multidimension' => array( | |
"sub_item_one" => "subvalue_one", | |
"sub_item_two" => "subvalue_two" | |
),//Multidimensional |
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 | |
/** | |
* GQ | |
* | |
* @package gq | |
* @author vimes1984 <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://buildawebdoctor.com | |
* @copyright 2-7-2015 BAWD | |
*/ |
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 | |
/** | |
* Sales force integration | |
*/ | |
add_action( 'wpcf7_before_send_mail', 'my_conversion' ); | |
function my_conversion( $cf7 ){ | |
ob_start(); // start buffer capture |
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 | |
/** | |
* | |
*/ | |
public function get_closed(){ | |
if(isset( $_GET['start'] ) && !empty( $_GET['start'] )){ | |
$StartClassDateTime = new DateTime($_GET['start']); | |
$EndClassDateTime = new DateTime($_GET['end']); |
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 | |
/** | |
* GQimport | |
* | |
* @package gqimport | |
* @author Vimes1984 <[email protected]> | |
* @license GPL-2.0+ | |
* @link http://buildawebdoctor.com | |
* @copyright 6-28-2015 BAWD | |
*/ |