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
| [ | |
| { | |
| "key": "group_55490c0964f25", | |
| "title": "CTA-boxes", | |
| "fields": [ | |
| { | |
| "key": "field_55490d5e86a78", | |
| "label": "CTA Box Row", | |
| "name": "cta_box_row", | |
| "type": "repeater", |
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
| [ | |
| { | |
| "key": "group_55c65ddbd14ea", | |
| "title": "Progress Module", | |
| "fields": [ | |
| { | |
| "key": "field_55c66f980c854", | |
| "label": "Progress Title", | |
| "name": "progress_title", | |
| "type": "text", |
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
| function _mytheme_custom_background_cb() { | |
| $is_big = (wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' )[0]) ? true : false; | |
| if( has_post_thumbnail() && $is_big ){ | |
| $background= wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' )[0]; | |
| $background_lg = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' )[0]; | |
| $background_med = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium' )[0]; | |
| $color = 'dddddd'; | |
| } else { |
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("#sorting li:first-child").addClass('active'); | |
| jQuery('#sorting li').click(function() { | |
| // Remove the current active class | |
| // Add the active class to the clicked button | |
| jQuery('#sorting li.active').removeClass('active'); | |
| jQuery(this).addClass('active'); | |
| // Get the button text (filter value) | |
| var filterValue = jQuery(this).data('sort'); |
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
| // for 672-673 this might work better: | |
| add_action('save_post','wpc_save_metabox'); | |
| function wpc_save_metabox($post_id){ | |
| if ( 'wpc-weather' === $get_post_type($post_id)) { | |
| //do stuff... | |
| } |
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
| $images = get_field('slides'); | |
| if( $images ) : ?> | |
| <div id="slider" class="flexslider"> | |
| <ul class="slides"> | |
| <?php foreach( $images as $image ): ?> | |
| <?php if(function_exists('tevkori_get_srcset_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
| $images = get_field('slides'); | |
| if( $images ) { ?> | |
| <div id="slider" class="flexslider"> | |
| <ul class="slides"> | |
| <?php foreach( $images as $image ): ?> | |
| <li> | |
| <img src="<?php echo $image['sizes']['large']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
| </li> | |
| <?php endforeach; ?> |
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
| function have_https_for_media( $url ) { | |
| if ( is_ssl() ) | |
| $url = str_replace( 'http://', 'https://', $url ); | |
| return $url; | |
| } | |
| add_filter( 'wp_get_attachment_url', 'have_https_for_media' ); |
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
| .ir { | |
| font: 0/0 a; | |
| text-shadow: none; | |
| color: transparent; | |
| } |
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
| .ninja-forms-form-wrap .ninja-forms-all-fields-wrap{ | |
| font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif; | |
| color: #333333; | |
| label{ | |
| font-weight: normal; | |
| } | |
| h2{ | |
| display: none; | |
| } | |
| .ninja-forms-required-items{ |