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 $faq_categories = get_categories(array( 'taxonomy' => 'question-category' )); ?> | |
<?php foreach($faq_categories as $category):?> | |
<?php | |
$category_custom_fields = get_option( "taxonomy_term_$category->term_id" ); | |
$category_order = $category_custom_fields[question_category_order]; | |
$category_column = $category_custom_fields[question_category_column]; | |
?> | |
<?php query_posts(array( 'post_type' => 'question', 'showposts' => -1, 'question-category' => $category->slug, 'order' => 'ASC' ));?> | |
<?php if (have_posts()) : ?> | |
<section> |
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
//---- CUSTOM POST TYPE - FAQs -------------------------------------------------------- | |
add_action('init', '_init_question_post_type'); | |
function _init_question_post_type() { | |
// USED FOR CUSTOM TAXONOMY FIELDS | |
global $wpdb; | |
// MAKE POST TYPE |
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
$(document).ready(function() { | |
$(window).resize(function(){ | |
$("iframe").css({ | |
width: "100%", | |
height: ($(this).width()) * .58 | |
}); |
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 foreach($primary_nav_items as $level_one_page_id) : | |
// LOOP LEVEL ONE ?> | |
<section> | |
<h2> | |
<a href="<?= get_permalink($level_one_page_id); ?>"> | |
<?= get_the_title($level_one_page_id); ?> | |
</a> | |
</h2> | |
<?php if($level_one_page_id==12): | |
// TEST FOR BLOG SECTION ?> |
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
<div id="featured"> | |
<ul class="tabs"> | |
<?php for ($i=1;$i<6;$i++): ?> | |
<?php | |
${"tab_".$i} = get_option('panel_tab_'.$i); | |
${"summary_".$i} = get_option('panel_summary_'.$i); | |
${"text_".$i} = get_option('panel_content_'.$i); | |
${"img_".$i} = get_option('panel_img_'.$i); | |
${"link_".$i} = get_option('panel_link_'.$i); | |
?> |
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 | |
/** | |
* Bookmark Template Functions for usage in Themes | |
* | |
* @package WordPress | |
* @subpackage Template | |
*/ | |
/** | |
* The formatted output of a list of bookmarks. |
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
// Home animation | |
///------------------------------------------------------------- | |
// set the elements | |
$("#splash img").remove(); | |
$("#splash").append('<div></div><em></em>'); | |
animImg = $("#splash div"); | |
animText = $("#splash em"); | |
// define text for slides |
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
// Navigation | |
// -------------------------------- | |
var navType = 'hover'; | |
var navLinks = $("nav > ul > li > a"); | |
var navDropdown = $("nav div"); | |
var nestedLists = $("nav > ul > li > ul"); | |
// Add ATTRs to links | |
var counter = 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 | |
// gets the ID from a custom field to show posts on a specific page | |
$buildType = get_post_meta($post->ID, 'build_type_id', true); | |
// run query | |
query_posts(array( | |
'post_type' => 'portfolio', | |
'showposts' => -1, | |
'tax_query' => array( | |
array( |
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 is_blog() { | |
global $post; | |
$post_type = get_post_type($post); | |
return (is_home() || is_archive() || is_single()) && ($post_type == 'post')); | |
} | |
?> |