Esempio n. 1
0
        ?>
			</div><!-- artwork-content-wrap -->
				<!--<aside id="contact-share" class="container_24 ">-->
					<?php 
        get_sidebar('artwork-tabs');
        ?>
				<!--</aside>-->
			</section><!-- #artwork-section -->
			<?php 
    }
    ?>
			<?php 
} else {
    ?>

			<article class="container_24 c24slim">
				<?php 
    include mbudm_get_template_file_path('noposts.php');
    ?>
			</article>

			<?php 
}
?>
			<!-- hide if empty -->
 			<?php 
get_sidebar('artwork-footer');
?>

<?php 
get_footer();
Esempio n. 2
0
function mbudm_get_artwork_list($sticky_mode, $category, $thumb_size, $num_artworks = -1)
{
    $sticky_array = get_option('sticky_posts');
    // get products as list
    switch ($sticky_mode) {
        case 'unfeatured':
            $args = array('numberposts' => $num_artworks, 'post__not_in' => $sticky_array, 'post_type' => MBUDM_PT_ARTWORK, 'orderby' => 'title', 'order' => 'ASC');
            break;
        case 'featured':
            $args = array('numberposts' => $num_artworks, 'post__in' => $sticky_array, 'post_type' => MBUDM_PT_ARTWORK, 'orderby' => 'title', 'order' => 'ASC');
            break;
        case 'all':
        default:
            $args = array('numberposts' => $num_artworks, 'post_type' => MBUDM_PT_ARTWORK, 'orderby' => 'title', 'order' => 'ASC');
            break;
    }
    if (isset($category)) {
        $args['category'] = $category;
    }
    $query = get_posts($args);
    if (count($query) > 0) {
        $filepath = mbudm_get_template_file_path('artwork_list.php');
        ob_start();
        require_once get_stylesheet_directory() . '/' . $filepath;
        $is_single = false;
        $output = ob_get_contents();
        ob_end_clean();
        echo $output;
    }
}
Esempio n. 3
0
function mbudm_customize_css()
{
    include mbudm_get_template_file_path('css_overrides.php');
}