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
$page_fpc = array( | |
'2' => array( | |
'per_row' => 3, | |
'fp' => array( | |
'one' => '8', | |
'two' => '9', | |
'three' => '10', | |
'4' => '12', | |
'5' => '7' | |
), |
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 | |
/** | |
* The template for displaying Listing Archive pages | |
* | |
* @link http://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package WP Listings | |
* @since 0.1.0 | |
*/ |
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 | |
/** | |
* The Template for displaying all single listing posts | |
* | |
* @package WP Listings | |
* @since 0.1.0 | |
*/ | |
add_action('wp_enqueue_scripts', 'enqueue_single_listing_scripts'); | |
function enqueue_single_listing_scripts() { |
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_filter('tc_opt_tc_img_smart_load', 'smartload_in_one_page'); | |
function smartload_in_one_page() { | |
//is_page parameter : Page ID, title, slug, or array of such | |
return is_page('A') ? true : 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
@media (max-width: 979px) { | |
.tc-header { | |
border-bottom: none; | |
} | |
header.tc-header { | |
min-height: 40px; | |
} | |
.tc-header .brand { |
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_filter('tc_skins_to_randomize', 'exclude_skins'); | |
function exclude_skins( $_skins ){ | |
$_my_excluded = array( | |
'grey.css', | |
'grey2.css' | |
); | |
foreach ( $_my_excluded as $key ) | |
if ( array_key_exists( $key, $_skins ) ) | |
unset( $_skins[$key] ); |
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
//remove customizr metaboxes from custom post types edit screen | |
add_action( 'add_meta_boxes', 'remove_customizr_metaboxes', 20 ); | |
function remove_customizr_metaboxes() { | |
//array of custom post types | |
$custom_post_types = get_post_types( array( '_builtin' => false ) ); | |
$current_post_type = get_post_type(); | |
if ( in_array( $current_post_type, $custom_post_types ) ) { | |
remove_meta_box('layout_sectionid', $current_post_type, 'normal' ); | |
remove_meta_box('slider_sectionid', $current_post_type, 'normal' ); | |
} |