Esempio n. 1
0
 function render_photo_album($info)
 {
     global $locale;
     echo render_breadcrumbs();
     opentable($locale['430']);
     echo "<!--pre_album_info-->\n";
     echo "<div class='clearfix well'>\n";
     echo "<h4 class='album_title m-t-0'>" . $info['album_title'] . "</h4>\n";
     if (isset($info['album_stats'])) {
         echo "<span class='album_stats'>\n" . $info['album_stats'] . "</span>\n";
     }
     if ($info['album_description']) {
         echo "<div class='m-t-20'>\n";
         echo "<!--photogallery_album_desc-->\n";
         echo "<span class='album_description'>\n" . nl2br(parseubb($info['album_description'])) . "</span><br/>\n";
         echo "</div>\n";
     }
     echo "</div>\n";
     echo "<hr/>\n";
     if (isset($info['page_nav'])) {
         echo "<div class='text-right'>" . $info['page_nav'] . "</div>\n";
     }
     echo "<!--sub_album_info-->";
     $counter = 0;
     function render_photo_items(array $info = array())
     {
         global $locale, $gallery_settings;
         echo "<div class='panel panel-default'>\n";
         echo "<div class='overflow-hide' style='background: #ccc; height: " . ($gallery_settings['thumb_h'] - 15) . "px'>\n";
         echo $info['image'];
         echo "</div>\n";
         echo "<div class='panel-body'>\n";
         echo "<a class='word-break' href='" . $info['photo_link']['link'] . "'><strong>" . $locale['450'] . "</strong></a>\n<br/>";
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<span><i class='fa fa-eye fa-fw'></i>" . $info['photo_views'] . "</span></br>\n";
         if (isset($info['photo_comments'])) {
             echo "<span><i class='fa fa-comment-o fa-fw'></i><a href='" . $info['photo_comments']['link'] . "'>" . $info['photo_comments']['word'] . "</a>\n</span></br>\n";
         }
         if (isset($info['photo_ratings'])) {
             echo "<span><i class='fa fa-star-o fa-fw'></i><a href='" . $info['photo_ratings']['link'] . "'>" . $info['photo_ratings']['word'] . "</a>\n</span></br>\n";
         }
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<small><strong>" . $locale['434'] . "</strong></small>\n<br/>\n";
         echo "<div class='pull-left'>\n" . display_avatar($info, "15px", "", "", "") . "</div>";
         echo "<div class='overflow-hide'>\n" . profile_link($info['user_id'], $info['user_name'], $info['user_status']) . "</div>\n";
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<abbr title='" . $locale['464'] . showdate("shortdate", $info['photo_datestamp']) . "'>\n\t\t\t<i class='entypo calendar text-lighter'></i></abbr> " . timer($info['photo_datestamp']) . "";
         if (!empty($info['photo_edit']) && !empty($info['photo_delete'])) {
             echo "</div>\n<div class='panel-footer'>\n";
             echo "<a class='btn btn-default' href='" . $info['photo_edit']['link'] . "' title='" . $info['photo_edit']['name'] . "'><i class='fa fa-edit fa-lg'></i></a>\n";
             echo "<a class='btn btn-danger' href='" . $info['photo_delete']['link'] . "' title='" . $info['photo_delete']['name'] . "'><i class='fa fa-trash fa-lg'></i></a>\n";
         }
         echo "</div></div>\n";
     }
     if (isset($info['item'])) {
         echo "<div class='m-t-20 m-b-20' style='position:relative;'>\n";
         global $gallery_settings;
         // theme compat solutions
         $theme = fusion_get_settings("theme");
         switch ($theme) {
             case "Septenary":
                 $grid_offset = -10;
                 break;
             case "Bootstrap":
                 $grid_offset = 13;
                 break;
             case "debonair":
                 $grid_offset = 26;
                 break;
             default:
                 $grid_offset = 13;
         }
         foreach ($info['item'] as $data) {
             echo "<div style='margin:0 auto; width: " . ($gallery_settings['thumb_w'] - $grid_offset) . "px; float:left; padding-left:5px; padding-right:5px;'>\n";
             render_photo_items($data);
             echo "</div>\n";
             $counter++;
         }
         echo "</div>\n";
     } else {
         echo "<div class='well m-t-20 m-b-20 text-center'>" . $locale['425'] . "</div>\n";
     }
     if (isset($info['page_nav'])) {
         echo "<div class='text-right'>" . $info['page_nav'] . "</div>\n";
     }
     closetable();
 }
Esempio n. 2
0
 function render_photo_album($info)
 {
     global $locale;
     echo render_breadcrumbs();
     opentable($locale['430']);
     echo "<!--pre_album_info-->\n";
     echo "<div class='clearfix well'>\n";
     echo "<h4 class='album_title m-t-0'>" . $info['album_title'] . "</h4>\n";
     if (isset($info['album_stats'])) {
         echo "<span class='album_stats'>\n" . $info['album_stats'] . "</span>\n";
     }
     if ($info['album_description']) {
         echo "<div class='m-t-20'>\n";
         echo "<!--photogallery_album_desc-->\n";
         echo "<span class='album_description'>\n" . nl2br(parseubb($info['album_description'])) . "</span><br/>\n";
         echo "</div>\n";
     }
     echo "</div>\n";
     echo "<hr/>\n";
     if (isset($info['page_nav'])) {
         echo $info['page_nav'];
     }
     echo "<!--sub_album_info-->";
     $counter = 0;
     function render_photo_items(array $info = array())
     {
         global $locale, $gallery_settings;
         echo "<div class='panel panel-default'>\n";
         echo "<div class='overflow-hide' style='background: #ccc; height: " . ($gallery_settings['thumb_h'] - 15) . "px'>\n";
         echo $info['image'];
         echo "</div>\n";
         echo "<div class='panel-body'>\n";
         echo "<a class='word-break' href='" . $info['photo_link']['link'] . "'><strong>" . $locale['450'] . "</strong></a>\n<br/>";
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<span><i class='fa fa-eye fa-fw'></i>" . $info['photo_views'] . "</span></br>\n";
         if (isset($info['photo_comments'])) {
             echo "<span><i class='fa fa-comment-o fa-fw'></i><a href='" . $info['photo_comments']['link'] . "'>" . $info['photo_comments']['word'] . "</a>\n</span></br>\n";
         }
         if (isset($info['photo_ratings'])) {
             echo "<span><i class='fa fa-star-o fa-fw'></i><a href='" . $info['photo_ratings']['link'] . "'>" . $info['photo_ratings']['word'] . "</a>\n</span></br>\n";
         }
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<small><strong>" . $locale['434'] . "</strong></small>\n<br/>\n";
         echo "<div class='pull-left'>\n" . display_avatar($info, "15px", "", "", "") . "</div>";
         echo "<div class='overflow-hide'>\n" . profile_link($info['user_id'], $info['user_name'], $info['user_status']) . "</div>\n";
         echo "</div>\n";
         echo "<div class='panel-footer'>\n";
         echo "<abbr title='" . $locale['464'] . showdate("shortdate", $info['photo_datestamp']) . "'>\n\t\t\t<i class='entypo calendar text-lighter'></i></abbr> " . timer($info['photo_datestamp']) . "";
         if (!empty($info['photo_edit']) && !empty($info['photo_delete'])) {
             echo "</div>\n<div class='panel-footer'>\n";
             echo "<a class='btn btn-default' href='" . $info['photo_edit']['link'] . "' title='" . $info['photo_edit']['name'] . "'><i class='fa fa-edit fa-lg'></i></a>\n";
             echo "<a class='btn btn-danger' href='" . $info['photo_delete']['link'] . "' title='" . $info['photo_delete']['name'] . "'><i class='fa fa-trash fa-lg'></i></a>\n";
         }
         echo "</div></div>\n";
     }
     if (isset($info['item'])) {
         echo "<div class='row m-t-20 m-b-20'>\n";
         foreach ($info['item'] as $data) {
             echo "<div class='col-xs-12 col-sm-6 col-md-4 col-lg-3'>\n";
             render_photo_items($data);
             echo "</div>\n";
             $counter++;
         }
         echo "</div>\n";
     } else {
         echo "<div class='well m-t-20 m-b-20 text-center'>" . $locale['425'] . "</div>\n";
     }
     if (isset($info['page_nav'])) {
         echo $info['page_nav'];
     }
     closetable();
 }