コード例 #1
0
    $infiniteScroll = true;
}
// if we have a one column template
if ($p_tpl == "template-one-column.php") {
    $resize_images = get_post_meta($post->ID, '_' . MAX_SHORTNAME . '_page_original_aspect', true) == 'true' ? false : true;
}
// Template is the One Column Template so show larger images
if ($p_tpl == "template-one-column.php") {
    $image_size = 'tablet';
}
// Template is the Fullsize Scroller Template
if ($p_tpl == "template-scroller.php") {
    $per_page = 9999;
    $pageInfo = false;
    $infiniteScroll = false;
    $image_size = max_get_image_string();
    $resize_images = false;
}
// Template is the Fullsize Grid Template
if ($p_tpl == "template-grid-fullsize.php") {
    $pageInfo = false;
    $image_size = 'content';
}
// Template is the Sortable Grid Template
if ($p_tpl == "template-sortable.php") {
    $pageInfo = false;
    $categories = get_post_meta($post->ID, 'max_sortable_galleries', true);
    $per_page = 9999;
}
// query the posts if we are not in a tax page template
if (!is_tax()) {
コード例 #2
0
}
?>
 <?php 
if (get_option_max('fullsize_thumb_center', false, 'false') == 'true') {
    echo 'class="centered"';
}
?>
>

					<div id="fullsize" class="clearfix pulldown-items">

						<?php 
$img_greyscale = get_option_max('fullsize_use_greyscale') == 'true' ? " greyscaled" : "";
// get the image we need for the different devices
$max_mobile_detect = new Mobile_Detect();
$_img_string = max_get_image_string();
$_preload_images = "0";
// disable preload of fullsize images on mobile devices but preload if option is set
if ($max_mobile_detect->isTablet() || $max_mobile_detect->isMobile()) {
    $_preload_images = "0";
} else {
    if (get_option_max('fullsize_preload') == 'true') {
        $_preload_images = "1";
    }
}
// loop through full size gallery images if we have some
if (!empty($fullsize_gallery_posts)) {
    if ($fullsize_gallery_posts->have_posts()) {
        while ($fullsize_gallery_posts->have_posts()) {
            $fullsize_gallery_posts->the_post();
            // check if password protected posts should be shown