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
<section id="home-sub-hero" class="container-fluid"> | |
<article class="row center-xs around-xs"> | |
<div class="col-xs-12 col-md-8"><?php | |
if( get_field( 'subhero_heading', $post_id ) ) : | |
?><h3 class="subhero_heading"><?php | |
_e( the_field( 'subhero_heading', $post_id ), '_tvk' ); | |
?></h3><?php | |
endif; | |
if( get_field( 'subhero_content', $post_id ) ) : | |
?><div class="subhero_content"><?php |
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 _pit_month_names() { | |
for ( $m=1; $m<=12; $m++ ) { | |
$months[] = array( | |
'month_display_name' => date( 'F', mktime( 0,0,0, $m, 1, date('Y') ) ), | |
'month_attr_name' => date( 'M', mktime( 0,0,0, $m, 1, date('Y') ) ), | |
); | |
} | |
return $months; |
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
/* | |
Welcome to Custom CSS! | |
CSS (Cascading Style Sheets) is a kind of code that tells the browser how | |
to render a web page. You may delete these comments and get started with | |
your customizations. | |
By default, your stylesheet will be loaded after the theme stylesheets, | |
which means that your rules can take precedence and override the theme CSS | |
rules. Just write here what you want to change, you don't need to copy all |
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
(function ($) { | |
var siteUrl = '<?php echo site_url()?>'; | |
$('#wp_contact_us_modal') | |
.on('show.bs.modal', function (event) { | |
var formBtn = $(event.relatedTarget); | |
var form = $('form.wp_contact_us_form'); | |
form.on('submit', function (event) { | |
event.preventDefault(); | |
form.validate(); | |
if (form.valid()) { |
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 validateForm() { | |
// set variable isItValid so its available outside the .each() function | |
var isItValid; | |
// check each size hidden input for a value | |
$('.product_choices .row .size.required').each(function() { | |
// if the value is empty show the alert | |
// set isItValid variable to false | |
if ($(this).val() == "") { | |
$('.modal-title').addClass('hidden'); | |
$('#choose_size').removeClass('hidden'); |