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
// 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
//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
<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
<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( |
NewerOlder