Exemple #1
0
if ($items) {
    ?>

    <div class="widget_content_list">
        <?php 
    foreach ($items as $item) {
        ?>

            <?php 
        $url = href_to($ctype['name'], $item['slug']) . '.html';
        $is_private = $item['is_private'] && $hide_except_title && !$item['user']['is_friend'];
        $image = $image_field && !empty($item[$image_field]) ? $item[$image_field] : '';
        if ($is_private) {
            if ($image_field && !empty($item[$image_field])) {
                $image = default_images('private', 'small');
            }
            $url = '';
        }
        ?>

            <div class="item">
                <?php 
        if ($image) {
            ?>
                    <div class="image">
                        <?php 
            if ($url) {
                ?>
                            <a href="<?php 
                echo $url;
Exemple #2
0
            }
            ?>
    </div>
<?php 
        }
        ?>

                <?php 
        if (isset($fields['photo']) && $fields['photo']['is_in_list'] && !empty($item['photo'])) {
            ?>
                    <div class="photo">
                        <?php 
            if ($is_private) {
                ?>
                            <?php 
                echo html_image(default_images('private', $fields['photo']['options']['size_teaser']), $fields['photo']['options']['size_teaser'], $item['title']);
                ?>
                        <?php 
            } else {
                ?>
                            <a href="<?php 
                echo href_to($ctype['name'], $item['slug'] . '.html');
                ?>
">
                                <?php 
                echo html_image($item['photo'], $fields['photo']['options']['size_teaser'], $item['title']);
                ?>
                            </a>
                        <?php 
            }
            ?>
    ?>

    <div class="widget_content_list featured">
        <?php 
    foreach ($items as $item) {
        ?>

            <?php 
        $url = href_to($ctype['name'], $item['slug']) . '.html';
        $is_first = !isset($is_first);
        $size = $is_first ? 'normal' : 'small';
        $is_private = $item['is_private'] && $hide_except_title && !$item['user']['is_friend'];
        $image = $image_field && !empty($item[$image_field]) ? $item[$image_field] : '';
        if ($is_private) {
            if ($image_field && !empty($item[$image_field])) {
                $image = default_images('private', $size);
            }
            $url = '';
        }
        ?>

            <div class="item <?php 
        if ($is_first) {
            ?>
item-first<?php 
        }
        ?>
">
                <?php 
        if ($image) {
            ?>
if ($items) {
    ?>

    <div class="widget_content_list compact">
        <?php 
    foreach ($items as $item) {
        ?>

            <?php 
        $url = href_to($ctype['name'], $item['slug']) . '.html';
        $is_private = $item['is_private'] && $hide_except_title && !$item['user']['is_friend'];
        $image = $image_field && !empty($item[$image_field]) ? $item[$image_field] : '';
        if ($is_private) {
            if ($image_field && !empty($item[$image_field])) {
                $image = default_images('private', 'micro');
            }
            $url = '';
        }
        ?>

            <div class="item">
                <?php 
        if ($image) {
            ?>
                    <div class="image">
                        <?php 
            if ($url) {
                ?>
                            <a href="<?php 
                echo $url;
                            <div class="note" title="<?php 
                echo $fields['date_pub']['title'];
                ?>
">
                                <?php 
                echo $fields['date_pub']['handler']->parse($item['date_pub']);
                ?>
                            </div>
                        <?php 
            }
            ?>
                        <?php 
            if ($is_private) {
                ?>
                            <?php 
                echo html_image(default_images('private', 'normal'), 'normal', $item['title']);
                ?>
                        <?php 
            } else {
                ?>
                            <a href="<?php 
                echo href_to($ctype['name'], $item['slug'] . '.html');
                ?>
">
                                <?php 
                echo html_image($item['photo'], 'normal', $item['title']);
                ?>
                            </a>
                        <?php 
            }
            ?>
                            <div class="note" title="<?php 
                echo $fields['date_pub']['title'];
                ?>
">
                                <?php 
                echo $fields['date_pub']['handler']->parse($item['date_pub']);
                ?>
                            </div>
                        <?php 
            }
            ?>
                        <?php 
            if ($is_private) {
                ?>
                            <?php 
                echo html_image(default_images('private', $preset), $preset, $item['title']);
                ?>
                        <?php 
            } else {
                ?>
                            <a href="<?php 
                echo href_to($ctype['name'], $item['slug'] . '.html');
                ?>
">
                                <?php 
                echo html_image($item['photo'], $preset, $item['title']);
                ?>
                            </a>
                        <?php 
            }
            ?>
if ($items) {
    ?>

    <div class="widget_content_list tiles-big">
        <?php 
    foreach ($items as $item) {
        ?>

            <?php 
        $url = href_to($ctype['name'], $item['slug']) . '.html';
        $is_private = $item['is_private'] && $hide_except_title && !$item['user']['is_friend'];
        $image = $image_field && !empty($item[$image_field]) ? $item[$image_field] : '';
        if ($is_private) {
            if ($image_field && !empty($item[$image_field])) {
                $image = default_images('private', 'normal');
            }
            $url = '';
        }
        ?>

            <div class="item">
                <?php 
        if ($image) {
            ?>
                    <div class="image">
                        <?php 
            if ($url) {
                ?>
                            <a style="background-image:url('<?php 
                echo html_image_src($image, 'normal', true);
        if (!empty($item['is_vip'])) {
            ?>
 is_vip<?php 
        }
        ?>
">

                <?php 
        if (isset($fields['photo']) && $fields['photo']['is_in_list'] && !empty($item['photo'])) {
            ?>
                    <div class="photo">
                        <?php 
            if ($is_private) {
                ?>
                            <?php 
                echo html_image(default_images('private', $size), $size, $item['title']);
                ?>
                        <?php 
            } else {
                ?>
                            <a href="<?php 
                echo href_to($ctype['name'], $item['slug'] . '.html');
                ?>
">
                                <?php 
                echo html_image($item['photo'], $size, $item['title']);
                ?>
                            </a>
                        <?php 
            }
            ?>
Exemple #9
0
						<?php 
        if ($item['is_public']) {
            ?>
							/ <span><?php 
            echo LANG_PHOTOS_PUBLIC_ALBUM;
            ?>
</span>
						<?php 
        }
        ?>
                    </div>
                    <?php 
        if ($is_private) {
            ?>
                        <?php 
            echo html_image(default_images('private', $ctype['photos_options']['preset_small']), $ctype['photos_options']['preset_small'], $item['title']);
            ?>
                    <?php 
        } else {
            ?>
                        <a href="<?php 
            echo href_to($ctype['name'], $item['slug'] . '.html');
            ?>
" style="background-image: url(<?php 
            echo html_image_src($item['cover_image'], $ctype['photos_options']['preset_small'], true);
            ?>
);">
                            <?php 
            if (!empty($item['cover_image'])) {
                ?>
                                <?php