Пример #1
0
             }
         } else {
             if ($forum_url) {
                 $forum_name = '<a href="' . htmlentities($forum_url) . '"' . ($forum_target ? ' target="' . $forum_target . '"' : '') . '>' . $forum_group['forum_name'] . '</a>';
             } else {
                 $forum_name = $forum_group['forum_name'];
             }
         }
         $HTML .= '<li class="mod_dphpbb3_last_topics-forum"' . $style_li . '>' . $forum_name . '</li>' . "\n";
     }
     $forum_group = null;
 }
 // Prepare string items for topic output
 $topic['forum_name'] = modDphpBB3LastTopicsHelper::truncTitle($topic['forum_name'], $max_titles_length);
 $topic['topic_title'] = modDphpBB3LastTopicsHelper::truncTitle($topic['topic_title'], $max_titles_length);
 $topic['topic_last_post_subject'] = modDphpBB3LastTopicsHelper::truncTitle($topic['topic_last_post_subject'], $max_titles_length);
 // posts/replies count
 if ($params->get('show_posts_count', 'hide') == 'hide') {
     $posts_replies = '';
 } else {
     $posts_replies = '<span class="mod_dphpbb3_last_topics-postr-replies-count">&nbsp;(';
     if ($params->get('show_posts_count') == 'posts') {
         $posts_replies .= $topic['topic_replies'] + 1;
     } else {
         $posts_replies .= $topic['topic_replies'];
     }
     $posts_replies .= ')</span>';
 }
 // forum name
 if ($viewforum_format) {
     $forum_name = '<a href="' . htmlentities($forum_url . ($topic['forum_id'] ? str_replace('$forum_id', $topic['forum_id'], $viewforum_format) : '')) . '"' . ($forum_target ? ' target="' . $forum_target . '"' : '') . '>' . $topic['forum_name'] . '</a>';
<?php

/**
 * @version	1.2
 * @author	Darkick	<*****@*****.**>
 * @license	http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */
// no direct access
defined('_JEXEC') or die;
// Include the syndicate functions only once
require_once dirname(__FILE__) . DS . 'helper.php';
list($forums_list, $topics_list) = modDphpBB3LastTopicsHelper::getList($params);
require JModuleHelper::getLayoutPath('mod_dphpbb3_last_topics');