|
@@ -10,7 +10,7 @@
|
|
* @version 2.1 Alpha 1
|
|
* @version 2.1 Alpha 1
|
|
*/
|
|
*/
|
|
|
|
|
|
-function template_main()
|
|
|
|
|
|
+function template_recent()
|
|
{
|
|
{
|
|
global $context, $settings, $options, $txt, $scripturl;
|
|
global $context, $settings, $options, $txt, $scripturl;
|
|
|
|
|
|
@@ -223,21 +223,10 @@ function template_unread()
|
|
</form>';
|
|
</form>';
|
|
|
|
|
|
echo '
|
|
echo '
|
|
- <div class="description " id="topic_icons">
|
|
|
|
- <p class="smalltext floatleft">
|
|
|
|
- ', !empty($modSettings['enableParticipation']) ? '
|
|
|
|
- <img src="' . $settings['images_url'] . '/icons/profile_sm.png" alt="" class="centericon" /> ' . $txt['participation_caption'] . '<br />' : '', '
|
|
|
|
- <img src="', $settings['images_url'], '/topic/normal_post.png" alt="" class="centericon" /> ', $txt['normal_topic'], '<br />
|
|
|
|
- <img src="', $settings['images_url'], '/topic/hot_post.png" alt="" class="centericon" /> ', sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']), '<br />
|
|
|
|
- <img src="', $settings['images_url'], '/topic/veryhot_post.png" alt="" class="centericon" /> ', sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']), '
|
|
|
|
- </p>
|
|
|
|
- <p class="smalltext para2">
|
|
|
|
- <img src="', $settings['images_url'], '/icons/quick_lock.png" alt="" class="centericon" /> ', $txt['locked_topic'], '<br />
|
|
|
|
- <img src="', $settings['images_url'], '/icons/quick_sticky.png" alt="" class="centericon" /> ', $txt['sticky_topic'], '<br />', ($modSettings['pollMode'] == '1' ? '
|
|
|
|
- <img src="' . $settings['images_url'] . '/topic/normal_poll.png" alt="" class="centericon" /> ' . $txt['poll'] : ''), '
|
|
|
|
- </p>
|
|
|
|
- </div>
|
|
|
|
</div>';
|
|
</div>';
|
|
|
|
+
|
|
|
|
+ if (empty($context['no_topic_listing']))
|
|
|
|
+ template_topic_legend();
|
|
}
|
|
}
|
|
|
|
|
|
function template_replies()
|
|
function template_replies()
|
|
@@ -381,21 +370,10 @@ function template_replies()
|
|
</form>';
|
|
</form>';
|
|
|
|
|
|
echo '
|
|
echo '
|
|
- <div class="description flow_auto" id="topic_icons">
|
|
|
|
- <p class="smalltext floatleft">
|
|
|
|
- ', !empty($modSettings['enableParticipation']) ? '
|
|
|
|
- <img src="' . $settings['images_url'] . '/icons/profile_sm.png" alt="" class="centericon" /> ' . $txt['participation_caption'] . '<br />' : '', '
|
|
|
|
- <img src="', $settings['images_url'], '/topic/normal_post.png" alt="" class="centericon" /> ', $txt['normal_topic'], '<br />
|
|
|
|
- <img src="', $settings['images_url'], '/topic/hot_post.png" alt="" class="centericon" /> ', sprintf($txt['hot_topics'], $modSettings['hotTopicPosts']), '<br />
|
|
|
|
- <img src="', $settings['images_url'], '/topic/veryhot_post.png" alt="" class="centericon" /> ', sprintf($txt['very_hot_topics'], $modSettings['hotTopicVeryPosts']), '
|
|
|
|
- </p>
|
|
|
|
- <p class="smalltext para2">
|
|
|
|
- <img src="', $settings['images_url'], '/icons/quick_lock.png" alt="" class="centericon" /> ', $txt['locked_topic'], '<br />
|
|
|
|
- <img src="' . $settings['images_url'] . '/icons/quick_sticky.png" alt="" class="centericon" /> ' . $txt['sticky_topic'] . '<br />' . ($modSettings['pollMode'] == '1' ? '
|
|
|
|
- <img src="' . $settings['images_url'] . '/topic/normal_poll.png" alt="" class="centericon" /> ' . $txt['poll'] : '') . '
|
|
|
|
- </p>
|
|
|
|
- </div>
|
|
|
|
</div>';
|
|
</div>';
|
|
|
|
+
|
|
|
|
+ if (empty($context['no_topic_listing']))
|
|
|
|
+ template_topic_legend();
|
|
}
|
|
}
|
|
|
|
|
|
?>
|
|
?>
|