Вход Регистрация
Файл: adultscript-2.0.3-pro/files/templates/defboot/_photo_albums_list.tpl.php
Строк: 36
<?php defined('_VALID') or die('Restricted Access!'); ?>
                <ul class="albums<?php if (isset($this->submenu) && $this->submenu == 'profile'): echo ' albums-profile'; endif; ?>">
                <?php foreach ($this->albums as $album): $percent = ($album['likes'] > && $album['rated_by']) ? round($album['likes']*100/$album['rated_by']) : 100$class = ($percent 50) ? 'up' 'down'?>
                    <li id="album-<?php echo $album['album_id']; ?>">
                        <div class="album">
                            <a href="<?php echo REL_URL,'/photo/',$album['album_id'],'/',$album['slug']; ?>/" title="<?php echo e($album['title']); ?>" class="thumbnail">
                                <img src="<?php echo PHOTO_URL,'/covers/',$album['album_id'],'.jpg" alt="',e($album['title']),'" />'; if ($album['type'] == 'private'): echo '<img src="',TPL_REL,'/images/private.png" alt="" class="private" />'; endif; ?>
                                <span class="album-title"><?php echo e($album['title']); ?></span>
                                <span class="album-overlay badge"><i class="fa fa-camera"></i> <?php echo $album['total_photos']; ?></span>
                                <div class="album-details">
                                    <span class="pull-left"><i class="fa fa-eye"></i> <?php echo $album['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">
                                <?php if ($this->submenu == 'user-albums'): ?>
                                <a href="<?= REL_URL,'/photo/edit/',$album['album_id'],'/" class="btn btn-primary btn-xs">',__('edit'); ?></a>
                                <?php endif; ?>
                                <button id="album-delete-<?= $album['album_id'],'" class="btn btn-danger btn-xs">',__('delete'); ?></button>
                            </div>
                            <?php endif; ?>                            
                        </div>
                    </li>
                <?php endforeach; ?>
                </ul>
                <div class="clearfix"></div>
Онлайн: 1
Реклама