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
add_action( 'init', 'metro_pro_infinite_transporter_init' ); | |
function metro_pro_infinite_transporter_init() { | |
add_theme_support( 'infinite-transporter', array( | |
'container' => 'main-content', | |
'footer' => false, | |
'render' => 'genesis_render' | |
) ); | |
} | |
function genesis_render() { | |
if ( have_posts() ) : |
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
UPDATE wp_5_posts SET post_excerpt='' WHERE 1=1 AND ( wp_5_posts.ID NOT IN ( SELECT object_id FROM wp_5_term_relationships WHERE term_taxonomy_id IN (95225) ) ) AND wp_5_posts.post_type = 'post' |
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
$slides = get_transient( 'home_slides_test' ); | |
if( false === $slides ) { | |
$slides = new WP_Query(array( | |
'meta_query' => array( | |
array( | |
'key' => '_tdrfeatured', | |
'value' => 'on', | |
'compare' => '=' |
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 acf_fix_old_full_width( $field ) { | |
$tdrfullwidth = get_post_custom_values('_tdrfullwidth'); | |
if( isset( $tdrfullwidth ) ) { | |
if( $tdrfullwidth[0] === 'on') { | |
update_post_meta( get_the_id(), 'full_width_header', 'parallax'); | |
} | |
delete_post_meta( get_the_id(), '_tdrfullwidth'); | |
} |
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 my_acf_load_field( $field ) { | |
$tdrfullwidth = get_post_custom_values('_tdrfullwidth'); | |
if( isset( $tdrfullwidth ) ) { | |
if( $tdrfullwidth === 'on') { | |
$field['default_value'] = 'parallax'; | |
} | |
delete_post_meta( get_the_id(), '_tdrfullwidth'); | |
} | |
return $field; | |
} |
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 woo_featured_slider_loader () { | |
wooslider( array('slider_type' => 'slides'), array('imageslide' => 'true', 'overlay' => 'natural', 'layout' => 'text-left') ); | |
} // End woo_featured_slider_loader() |
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 | |
// File Security Check | |
if ( ! function_exists( 'wp' ) && ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) { | |
die ( 'You do not have sufficient permissions to access this page!' ); | |
} | |
?><?php | |
/** | |
* Index Template | |
* | |
* Here we setup all logic and XHTML that is required for the index template, used as both the homepage |
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 woo_options_add($options) { | |
global $woo_options; | |
$homepage_slide_options = array( __( 'Select a number:', 'woothemes' ) ); | |
$total_possible_slides = 10; | |
for ( $i = 1; $i <= $total_possible_slides; $i++ ) { $homepage_slide_options[] = $i; } | |
$shortname = 'woo'; |
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
@import url(http://fonts.googleapis.com/css?family=Allerta+Stencil); | |
h1.page-title,h1.product_title { | |
color: #fff; | |
font-family: 'Allerta Stencil'; | |
} |
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
ul.products.list li.product .img-wrap { | |
background: none; | |
width: auto; | |
-webkit-box-shadow: none; | |
-moz-box-shadow: none; | |
box-shadow: none; | |
padding: 0; | |
} | |
ul.products.list li.product .img-wrap:before { | |
content: none; |