Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/_photo_list.tpl.php
Строк: 27
<?php defined('_VALID') or die('Restricted Access!'); ?>
                <ul class="photos<?php if (isset($this->submenu) && $this->submenu == 'profile'): echo ' photos-profile'; endif; ?>">
                <?php foreach ($this->photos as $photo): $percent = ($photo['likes'] > && $photo['rated_by']) ? round($photo['likes']*100/$photo['rated_by']) : 100$class = ($percent 50) ? 'up' 'down'?>
                    <li id="photo-<?php echo $photo['photo_id']; ?>">
                        <div class="photo">
                            <a href="<?php echo REL_URL,'/photo/',$photo['photo_id']; ?>/" title="<?php echo e($photo['caption']); ?>" class="thumbnail">
                                <img src="<?php echo PHOTO_URL,'/thumbs/',$photo['photo_id'],'.jpg" alt="',e($photo['caption']); ?>" />
                                <div class="photo-details">
                                    <span class="pull-left"><i class="fa fa-eye"></i> <?php echo $photo['total_views']; ?></span>
                                    <span class="pull-right text-right">
                                        <?php echo $percent,'% <i class="fa fa-lg fa-thumbs-',$class?>"></i>
                                    </span>
                                    <div class="clearfix"></div>
                                </div>
                            </a>
                            <?php if (isset($this->colmenu)): ?>
                            <div class="actions">
                                <button id="photo-delete-<?= $photo['photo_id'],'" class="btn btn-danger btn-xs">',__('delete'); ?></button>
                            </div>
                            <?php endif; ?>                            
                        </div>
                    </li>
                <?php endforeach; ?>
                </ul>
                <div class="clearfix"></div>
Онлайн: 1
Реклама