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
<h2>Technology</h2> | |
<ul> | |
<?php | |
//Target The Client CPT & Taxonomy | |
$technology_args = array( | |
'post_type' => 'client', | |
'order_by' => 'title', | |
'order' => 'ASC', | |
'posts_per_page' => '-1', | |
'tax_query' => 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
<h2>Technology</h2> | |
<ul> | |
<?php | |
//Target The Client CPT & Taxonomy | |
$technology_args = array( | |
'post_type' => 'client', | |
'order_by' => 'title', | |
'order' => 'ASC', | |
'posts_per_page'=> '-1', | |
'tax_query' => 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
<script type="text/javascript"> | |
//determine navigation width for centering | |
jQuery(document).ready(function($) { | |
var width = 1; | |
$('ul.menu-primary li').each(function() { | |
width += $(this).outerWidth( true ); | |
}); | |
$('ul.menu-primary').css('width', width); | |
}); | |
</script> |
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
//In featured_meta.php | |
<div class="my_meta_control"> | |
<p> | |
<?php $metabox->the_field('featured'); ?> | |
<input type="checkbox" name="<?php $metabox->the_name(); ?>" value="1" <?php if ($metabox->get_the_value()) echo ' checked="checked"'; ?>/> Add to Home Page Slider | |
</p> | |
</div> | |
//In home.php | |
<?php |
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
// in metaboxes.php | |
// Featured Portfolio Metabox | |
<?php | |
$featured_portfolio_mb = new WPAlchemy_MetaBox(array | |
( | |
'id' => '_ssm_featured_meta', | |
'title' => 'Featured Portfolio Item', | |
'template' => SSM_DIR . '/lib/functions/wpalchemy/custom/featured_meta.php', | |
'context' => 'side', |
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
<div class="col col-1"> | |
<?php $marketID = $data['ssm_market_post']; // Pull Post ID From SMOF ?> | |
<p class="go-to-market cat-header">Go To Market</p> | |
<h3><?php echo get_the_title($marketID); ?></h3> | |
<?php echo pippin_excerpt_by_id($marketID); ?> |
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
add_filter('body_class','add_category_to_single'); | |
function add_category_to_single($classes, $class) { | |
if (is_single() ) { | |
global $post; | |
foreach((get_the_category($post->ID)) as $category) { | |
// add category slug to the $classes array | |
$classes[] = $category->category_nicename; | |
} | |
} | |
// return the $classes 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
/** these are additions or replacements to the existing elements **/ | |
div.page {overflow:hidden;} /** base.css line 35 **/ | |
/** can we make the overall width match our site? 960px. It seems to hold up when I test in the browser **/ | |
/** update the #title-area width to 186px **/ | |
#title-area {width: 186px;} /** client.css line 13 **/ | |
/** update the background color to #f1f2f2 **/ | |
div.page_wrapper {background-color: #f1f2f2;} /** base.css line 56 **/ |
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
do_action( 'woothemes_testimonials', array( | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'testimonial-category', | |
'field' => 'id', | |
'terms' => array( $testimonial_id ) | |
) | |
), | |
'limit' => 1, |
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(document).ready(function($){ // so as to wait for any CSS-effecting assets to download | |
setTimeout(function() { // prepare the timeout | |
if(location.hash){ // is there a location hash? | |
if($(location.hash)){ // is there an element with an id that matches the location hash? | |
// determine the x location of the element we want to be in the viewport | |
var targetTop = $('#content').offset().top; |
OlderNewer