/**
 * Prints Portfolio socials if used
 */
function grve_print_portfolio_media()
{
    global $post;
    $post_id = $post->ID;
    $portfolio_media = get_post_meta($post_id, 'grve_portfolio_media_selection', true);
    $portfolio_image_mode = grve_post_meta('grve_portfolio_media_image_mode');
    $image_size_slider = 'grve-image-large-rect-horizontal';
    if ('resize' == $portfolio_image_mode) {
        $image_size_slider = 'grve-image-fullscreen';
    }
    switch ($portfolio_media) {
        case 'slider':
        case 'feature-slider':
            $slider_items = get_post_meta($post_id, 'grve_portfolio_slider_items', true);
            grve_print_gallery_slider('slider', $slider_items, $image_size_slider);
            break;
        case 'gallery':
            $slider_items = get_post_meta($post_id, 'grve_portfolio_slider_items', true);
            grve_print_gallery_slider('gallery', $slider_items, '', 'grve-classic-style');
            break;
        case 'gallery-vertical':
            $slider_items = get_post_meta($post_id, 'grve_portfolio_slider_items', true);
            grve_print_gallery_slider('gallery-vertical', $slider_items, $image_size_slider, 'grve-vertical-style');
            break;
        case 'video':
            grve_print_portfolio_video();
            break;
        case 'video-html5':
            grve_print_portfolio_video('html5');
            break;
        case 'none':
            break;
        default:
            grve_print_post_feature_media();
            break;
    }
}
Beispiel #2
0
    the_ID();
    ?>
" <?php 
    post_class($grve_post_class);
    ?>
 itemscope itemType="http://schema.org/BlogPosting">
		<?php 
    $slider_items = grve_post_meta('grve_post_slider_items');
    $gallery_mode = grve_post_meta('grve_post_type_gallery_mode', 'gallery');
    $gallery_image_mode = grve_post_meta('grve_post_type_gallery_image_mode');
    $image_size_slider = 'grve-image-large-rect-horizontal';
    if ('resize' == $gallery_image_mode) {
        $image_size_slider = 'grve-image-fullscreen';
    }
    if (!empty($slider_items)) {
        grve_print_gallery_slider($gallery_mode, $slider_items, $image_size_slider);
    }
    ?>

		<div class="grve-post-content">
			<?php 
    the_title('<a href="' . esc_url(get_permalink()) . '" rel="bookmark"><h4 class="grve-post-title" itemprop="name headline">', '</h4></a>');
    ?>
			<div class="grve-post-meta">
				<?php 
    grve_print_post_author_by();
    ?>
				<?php 
    grve_print_post_date();
    ?>
				<?php