File: /home/httpd/html/baretube.com.new/templates/default_tube2016/template.content_item.php
<?
$link = generateUrl('video', $row['title'], $row['record_num']);
$dirname = str_replace('.flv', '', $row['orig_filename']);
$subdir = $row['filename'][0] . '/' . $row['filename'][1] . '/' . $row['filename'][2] . '/' . $row['filename'][3] . '/' . $row['filename'][4] . '/';
$dirname = $subdir . $dirname;
$uniq = uniqid();
?>
<!-- item -->
<div class="item-col col">
<div class="item-inner-col inner-col">
<a href="<? echo $link; ?>" title="<? echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?>">
<span class="image">
<? if ($row['embed']) { ?>
<img src="<? echo $thumb_url; ?>/embedded/<? echo $row['record_num']; ?>.jpg" alt="<? echo htmlentities($row['title'], ENT_QUOTES, 'UTF-8'); ?>">
<? } else { ?>
<img data-mb="shuffle-thumbs" data-opt-timeout="500" data-opt-limit="10" src="<? echo $thumb_url; ?>/<? echo $dirname; ?>/<? echo $row['orig_filename']; ?>-<? echo $row['main_thumb']; ?>.jpg" alt="<? echo $row['title']; ?>" >
<? } ?>
<span class="time"><? echo sec2time($row['length']); ?></span>
<? if ($row['movie_height'] >= 720) { ?>
<span class="quality">
<span class="quality-icon q-hd">HD</span>
</span>
<? } ?>
</span>
<span class="item-info">
<span class="title">
<? echo $row['title']; ?>
</span>
<span class="item-stats">
<span class="s-elem s-e-rate">
<span class="icon i-thumbs-up"></span>
<span class="sub-desc"><? echo $row['rating']; ?>%</span>
</span>
<span class="s-elem s-e-views">
<span class="icon i-eye"></span>
<span class="sub-desc"><? echo $row['views']; ?></span>
</span>
<? if($row['access_level'] > 0) { ?>
<span class="s-elem s-e-views">
<span class="icon i-lock"></span>
<span class="sub-desc"><? if($row['access_level'] == 1) { echo _t("Private"); } else { echo _t("Premium"); } ?></span>
</span>
<? } ?>
<? if($row['vr'] > 0) { ?>
<span class="s-elem s-e-views">
<span class="icon i-compas"></span>
<span class="sub-desc"><? echo _t("VR/360"); ?></span>
</span>
<? } ?>
</span>
</span>
</a>
<a href="<? if ($_GET['mode'] == 'favorites') { ?><? echo $basehttp; ?>/action.php?action=remove_favorites&id=<? echo $row['record_num']; ?><? } else { ?><? echo $basehttp; ?>/action.php?action=add_favorites&id=<? echo $row['record_num']; ?><? } ?>" data-mb="modal" data-opt-type="ajax" data-opt-close="<?php echo _t("Close") ?>" data-toggle="tooltip" title="<? if ($_GET[mode] == 'favorites') { ?><?php echo _t("Remove from favorites") ?><? } else { ?><?php echo _t("Add to favorites") ?><? } ?>" class="add-to-fav"><? if ($_GET[mode] == 'favorites') { ?><span class="icon i-minus-o"></span><? } else { ?><span class="icon i-plus-o"></span><? } ?></a>
<? if ($_SESSION['userid'] && ($row['submitter'] == $_SESSION['userid'])) { ?><a href="<? echo $basehttp; ?>/edit-content/?id=<? echo $row['record_num']; ?>" title="<?php echo _t("Edit") ?>" class="edit-content"><span class="icon i-edit"></span></a><? } ?>
</div>
</div>
<!-- item END -->