function display_forum_tags($info) { $locale = fusion_get_locale(); echo render_breadcrumbs(); if (isset($_GET['tag_id'])) { // thread design echo "<!--pre_forum-->\n"; echo "<div class='forum-title m-t-20'>" . $locale['forum_0341'] . "</div>\n"; echo "<div class='filter'>\n"; forum_filter($info); echo "</div>\n"; if (!empty($info['threads']['pagenav'])) { echo "<div class='text-right'>\n"; echo $info['threads']['pagenav']; echo "</div>\n"; } if (!empty($info['threads'])) { echo "<div class='forum-container list-group-item'>\n"; if (!empty($info['threads']['sticky'])) { foreach ($info['threads']['sticky'] as $cdata) { render_thread_item($cdata); } } if (!empty($info['threads']['item'])) { foreach ($info['threads']['item'] as $cdata) { render_thread_item($cdata); } } echo "</div>\n"; } else { echo "<div class='text-center'>" . $locale['forum_0269'] . "</div>\n"; } if (!empty($info['threads']['pagenav'])) { echo "<div class='text-right hidden-xs m-t-15'>\n"; echo $info['threads']['pagenav']; echo "</div>\n"; } if (!empty($info['threads']['pagenav2'])) { echo "<div class='hidden-sm hidden-md hidden-lg m-t-15'>\n"; echo $info['threads']['pagenav2']; echo "</div>\n"; } } else { ?> <div class="row m-0"> <?php if (!empty($info['tags'])) { ?> <?php unset($info['tags'][0]); ?> <?php foreach ($info['tags'] as $tag_id => $tag_data) { ?> <div class="col-xs-12 col-sm-4" style="height: 200px; max-height:200px; background-color: <?php echo $tag_data['tag_color']; ?> "> <a href="<?php echo $tag_data['tag_link']; ?> "> <div class="panel-body"> <h4 class="text-white"><?php echo $tag_data['tag_title']; ?> </h4> <p class="text-white"><?php echo $tag_data['tag_description']; ?> </p> </div> <hr/> <?php if (!empty($tag_data['threads'])) { ?> <span class="tag_result text-white"> <?php echo trim_text($tag_data['threads']['thread_subject'], 10) . " - " . timer($tag_data['threads']['thread_lastpost']); ?> </span> <?php } ?> </a> </div> <?php } ?> <?php } ?> </div> <?php } }
function render_unsolved($info) { global $locale; echo render_breadcrumbs(); if (!empty($info['item'])) { $i = 0; foreach ($info['item'] as $data) { // do a thread. render_thread_item($data); $i++; } } else { echo "<div class='well text-center'>" . $locale['global_023'] . "</div>\n"; } }