This file contains 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 | |
function _wgt_scripts() { | |
// styles and scripts code... | |
$form_html = array( | |
'trip_signup_form' => _wgt_get_trip_signup_form_html(), | |
'request_trip_quote' => _wgt_request_trip_quote_form_html() | |
); | |
wp_localize_script( |
This file contains 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 | |
// Include in your theme functions.php: | |
// require get_template_directory() . '/includes/svg/social-media-icons.php'; | |
// require get_template_directory() . '/includes/svg/material-design.php'; | |
// | |
// Add the desired function in the appropriate theme file | |
// _themename_md_expand_more() | |
// | |
// If a class or id is needed include them as param1, param 2 | |
// _themename_md_expand_more( 'class1 class2', 'id' ) |
This file contains 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 shareFbUi(data) { | |
FB.ui({ | |
href: data.href, | |
hashtag: data.hashtag, | |
method: 'share_open_graph', | |
action_type: 'og.shares', | |
action_properties: JSON.stringify({ | |
object: { | |
'og:url': data.href, | |
'og:title': data.title, |
This file contains 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 | |
/* | |
* | |
* | |
* Add acf repeater fields that have different classes to style them depending on how many. | |
* | |
* | |
*/ | |
add_action( 'genesis_entry_content', 'contact_page_boxes_row_1', 1 ); | |
function contact_page_boxes_row_1() { |
This file contains 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 | |
/** | |
* Template part for the home page. | |
* | |
* @package _njl | |
*/ | |
// check if the flexible content field has rows of data | |
if( have_rows('content') ): | |
// loop through the rows of data | |
while ( have_rows('content') ) : the_row(); |
This file contains 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 | |
use net\authorize\api\contract\v1 as AnetAPI; | |
use net\authorize\api\controller as AnetController; | |
if ( ! defined( 'ABSPATH' ) ) { | |
die( 'You are not allowed to call this page directly.' ); | |
} | |
if ( class_exists( 'FrmAuthNetAim' ) ) { | |
return; | |
} |
This file contains 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
public $type; | |
public $entry; | |
public $form; | |
public $action; | |
public $invoice_id; | |
public $invoice; | |
public $amount; | |
public $response; | |
public function __construct( $atts ) { |
This file contains 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 | |
$params = array( 'limit' => get_option('posts_per_page', 24) ); | |
$pit_portfolios = pods( 'pit_portfolio', $params ); | |
if ( $pit_portfolios->total() > 0 ): | |
while ( $pit_portfolios->fetch() ): | |
$portfolio_id = $pit_portfolios->id(); | |
$portfolio_gallery = $pit_portfolios->field( 'portfolio_gallery', false ); |
This file contains 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
mc_gross => 15.00 | |
protection_eligibility => Eligible | |
address_status => confirmed | |
payer_id => NQALT2U5J9NNS | |
address_street => 107 Tate Court | |
payment_date => 10:44:27 Mar 28, 2016 PDT | |
payment_status => Completed | |
charset => windows-1252 | |
address_zip => 32828 | |
first_name => Mike |