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 | |
echo do_shortcode( '[searchandfilter id="1050"]' ); | |
// Get the correct featured image size | |
$post_featured_image_size = avada_get_portfolio_image_size( $current_page_id ); | |
$post_featured_image_size_dimensions = avada_get_image_size_dimensions( $post_featured_image_size ); | |
// Set picture size as data attribute; needed for resizing placeholders |
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
jQuery(function ($) { | |
var windowHeight = $(window).height(); | |
function getChildHeight(parent) { | |
var insideparentheight = $( parent + ' .infoslide_inside' ).height(); | |
$( parent + ' .infoslide_half' ).each(function() { | |
var infoslidehalfheight = $(this).height(); | |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("#map > #states > img") | |
.css("cursor","pointer") | |
.click(function() { | |
// Gets the id from the img and uses it to click the appropriate #switcher > li | |
$("#_" + $(this).attr('id')).click(); | |
}); | |
switchers = $('#switchers > li'); | |
states = $('#state_info > div'); |
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 for displaying post content from a custom type for feed page with pagination */ | |
function env_display_posts_from_type($the_type, $the_num, $orderby, $the_order, $meta_url, $detailpg = 'false', $thumbsize ='', $inc_date = 'false', $status = 'publish') | |
{ | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$args = array( | |
'post_type' => $the_type, | |
'posts_per_page' => $the_num, | |
'orderby' => $orderby, | |
'order' => $the_order, | |
'paged' => $paged, |
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 Name: Partners | |
* Description: Partners Feed Page | |
*/ | |
get_header(); ?> | |
<div id="container" class="clear"> | |
<div id="content"> |
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 | |
/* ------------ Linked PHP Files ------------ | |
*/ | |
require_once( get_stylesheet_directory() . '/extensions/theme-options.php'); | |
require_once( get_stylesheet_directory() . '/extensions/testimonial-post-type.php'); | |
require_once( get_stylesheet_directory() . '/extensions/news-post-type.php'); | |
require_once( get_stylesheet_directory() . '/extensions/resources-post-type.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 create_news_post_type() { | |
register_post_type( 'news', | |
array( | |
'labels' => array( | |
'name' => __( 'News' ), | |
'singular_name' => __( 'News' ), | |
'add_new' => __( 'Add News Item' ), | |
'add_new_item' => __( 'Add News Item' ), | |
'edit_item' => __( 'Edit News Item' ), |
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 Post Date Metabox */ | |
function my_postdatemeta_init() | |
{ | |
add_meta_box('env_post_date_meta', 'Admin Meta', 'env_post_date_meta', 'post', 'normal', 'low'); | |
add_meta_box('env_post_date_meta', 'Admin Meta', 'env_post_date_meta', 'news', 'normal', 'low'); | |
add_meta_box('env_event_date_meta', 'Admin Meta', 'env_event_date_meta', 'ai1ec_event', 'normal', 'low'); | |
} | |
add_action('admin_init','my_postdatemeta_init'); |
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 Name: Map | |
* Description: Map Page Design | |
*/ | |
get_header(); ?> | |
<script type="text/javascript"> |
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
<script type="text/javascript"> | |
$(document).ready(function() { | |
switchers = $('#switchers > li'); | |
states = $('#state_info > div'); | |
switchers.each(function(idx) { | |
$(this).data('state', states.eq(idx)); | |
}).click( | |
function() { | |
switchers.removeClass('active'); | |
states.removeClass('active'); |
NewerOlder