" rel="bookmark"><?php 
            echo $media;
            ?>
<div class="inner-overlay"></div></a>
									</div>
									<?php 
        }
        // Media selected by post format
        switch (get_post_format()) {
            case "audio":
                // Audio Player
                theme_audio_player($post->ID);
                break;
            case "gallery":
                // Gallery slide show (rotator)
                $size = get_post_image_size('full-thumb');
                // Check for specific width and height settings
                $max_w = '';
                $max_h = '';
                $style = '';
                if (is_array($size)) {
                    if ($size[0] != 0) {
                        $max_w = 'max-width: ' . $size[0] . 'px;';
                    }
                    if ($size[1] != 0) {
                        $max_h = 'max-height: ' . $size[0] . 'px;';
                    }
                    $style = 'style="' . $max_w . ' ' . $max_h . '"';
                    $size = $size[0] . 'x' . $size[1];
                }
                $rotatorParams = array('columns' => 1, 'type' => 'post-gallery', 'image_size' => $size, 'transition' => 'fade', 'slide_paging' => 'true', 'autoplay' => 'true', 'interval' => '3500', 'class' => 'slideshow');
<?php

global $custom_query, $column_left, $column_right, $headerClass;
/**
 * 
 * The template for displaying posts in the Gallery post format
 *
 */
// Title (for everything except image left layout)
if (!$column_right) {
    theme_post_title();
}
$headerClass = $column_left ? 'span' . $column_left : '';
// Image size
$shortcode = isset($custom_query->query) ? $custom_query->query : false;
$size = get_post_image_size('post-thumbnail', $shortcode);
// Check for specific width and height settings
$max_w = '';
$max_h = '';
$style = '';
if (is_array($size)) {
    if ($size[0] != 0) {
        $max_w = 'max-width: ' . $size[0] . 'px;';
    }
    if ($size[1] != 0) {
        $max_h = 'max-height: ' . $size[0] . 'px;';
    }
    $style = 'style="' . $max_w . ' ' . $max_h . '"';
    $size = $size[0] . 'x' . $size[1];
}
$rotatorParams = array('columns' => 1, 'type' => 'post-gallery', 'image_size' => $size, 'transition' => 'fade', 'slide_paging' => 'true', 'autoplay' => 'true', 'interval' => '3500', 'class' => 'slideshow');
Beispiel #3
0
"><?php 
            echo $media;
            ?>
<div class="inner-overlay"></div></a>
							</div>
							<?php 
        }
        // Media selected by post format
        switch (get_post_format()) {
            case "audio":
                // Audio Player
                theme_audio_player($post->ID);
                break;
            case "gallery":
                // Image size
                $size = get_post_image_size($thumbnail_size, $params);
                // Check for specific width and height settings
                if (is_array($size)) {
                    $size = $size[0] . 'x' . $size[1];
                }
                // Content rotator parameters
                $rotatorParams = array('columns' => 1, 'type' => 'post-gallery', 'image_size' => $size, 'transition' => 'fade', 'slide_paging' => 'true', 'autoplay' => 'true', 'interval' => '3500', 'class' => 'slideshow');
                ?>
								<div class="featured-image">
									<div class="styled-image <?php 
                echo get_post_format();
                ?>
"><?php 
                echo theme_content_rotator($rotatorParams);
                ?>
</div>