\n";
echo "
\n";
echo "\n";
echo $info['image'];
echo "
\n";
echo "\n";
echo "
".format_word($info['photo_rows'], $locale['gallery_461'])."";
echo "
".timer($info['album_datestamp']).'';
echo "
\n";
if (!empty($info['album_edit']) && !empty($info['album_delete'])) {
echo "';
}
echo "\n";
}
echo "\n";
foreach ($info['item'] as $data) {
echo "
\n";
render_photoAlbum($data);
echo "
\n";
}
echo "
\n";
} else {
echo "".$locale['gallery_406']."
\n";
}
if (!empty($info['page_nav'])) {
echo $info['page_nav'];
}
closetable();
}
}
/* Photo Category Page */
if (!function_exists('render_photo_album')) {
function render_photo_album($info) {
$locale = fusion_get_locale();
echo render_breadcrumbs();
add_to_css("
.panel-default > .panel-image-wrapper {
height: 120px;
max-height: 120px;
min-width: 100%;
overflow: hidden;
}
.panel-default > .panel-image-wrapper img {
margin-top: inherit !important;
margin-left: inherit !important;
}
.panel-default > .panel-image-wrapper .thumb > a > img {
display: block;
width: 100%;
}");
opentable($info['album_title']);
echo "\n";
if (!empty($info['album_stats']) || !empty($info['album_description'])) {
echo "\n";
if (isset($info['album_stats'])) {
echo "
\n".$info['album_stats']."\n";
}
if ($info['album_description']) {
echo "
\n";
echo "\n";
echo "\n".parse_textarea($info['album_description'], TRUE, TRUE, FALSE, '', TRUE)."
\n";
echo "
\n";
}
echo "
\n";
}
if (isset($info['page_nav'])) {
echo $info['page_nav'];
}
echo "";
$counter = 0;
function render_photo_items(array $info = []) {
$locale = fusion_get_locale();
echo "\n";
echo "
\n";
echo $info['image'];
echo "
\n";
echo "';
echo "\n
\n";
}
if (isset($info['item'])) {
echo "\n";
foreach ($info['item'] as $data) {
echo "
\n";
render_photo_items($data);
echo "
\n";
$counter++;
}
echo "
\n";
} else {
echo "".$locale['gallery_425']."
\n";
}
if (isset($info['page_nav'])) {
echo $info['page_nav'];
}
closetable();
}
}
if (!function_exists('render_photo')) {
function render_photo($info) {
$locale = fusion_get_locale();
opentable($locale['gallery_450']);
echo render_breadcrumbs();
echo "";
echo "";
echo "";
echo "\n";
echo "\n";
echo "
\n";
echo isset($info['nav']['first']) ? "
\n" : '';
echo isset($info['nav']['prev']) ? "
\n" : '';
echo isset($info['nav']['next']) ? "
\n" : '';
echo isset($info['nav']['last']) ? "
\n" : '';
echo "
\n";
echo "
\n";
echo "
".$info['photo_title']."\n
\n";
echo "\n";
if ($info['photo_description']) {
echo "
".parse_textarea($info['photo_description'], TRUE, TRUE, TRUE, '', TRUE)."";
}
echo "
\n";
echo "
\n";
echo "
\n";
echo "
".$locale['gallery_434']." ".profile_link($info['user_id'], $info['user_name'], $info['user_status'])."
\n";
echo "
".$locale['gallery_403']." ".timer($info['photo_datestamp'])."";
echo "
".$locale['gallery_454']." ".$info['photo_size'][0]." x ".$info['photo_size'][1]." ".$locale['gallery_455']."
\n";
echo "
".$locale['gallery_456']." ".$info['photo_byte'];
echo "
\n";
echo "".$locale['gallery_457']." ".number_format($info['photo_views'])."
\n";
if ($info['photo_allow_ratings'] && fusion_get_settings('ratings_enabled') == 1) {
echo "".$locale['gallery_437']." ".$info['photo_ratings']."
\n";
}
if ($info['photo_allow_comments'] && fusion_get_settings('comments_enabled') == 1) {
echo "".$locale['gallery_436']." ".$info['photo_comment']."
\n";
}
echo "
\n
\n";
echo "
\n
\n";
echo "";
echo $info['photo_show_comments'];
echo $info['photo_show_ratings'];
closetable();
}
}