Открываем
Код: Выделить всё
if (!function_exists('display_forums') || !function_exists('topic_status'))
{
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
}
Код: Выделить всё
$user->add_lang('mods/pe');
Код: Выделить всё
// Grab icons
if ($obtain_icons)
{
$icons = $cache->obtain_icons();
}
else
{
$icons = array();
}
Код: Выделить всё
post_expire_remove();
Код: Выделить всё
$template->assign_block_vars($tpl_loopname, array(
'FORUM_ID' => $forum_id,
Код: Выделить всё
switch($row['topic_expire_type'])
{
case 0:
$l_topic_expire_type = $user->lang['TOPIC_EXPIRE_DELETE'];
break;
case 1:
$l_topic_expire_type = ($row['topic_status'] == ITEM_LOCKED) ? $user->lang['TOPIC_EXPIRE_UNLOCK'] : $user->lang['TOPIC_EXPIRE_LOCK'];
break;
case 2:
$l_topic_expire_type = $user->lang['TOPIC_EXPIRE_MOVE'];
break;
case 3:
$l_topic_expire_type = ($row['topic_status'] == ITEM_LOCKED) ? $user->lang['TOPIC_EXPIRE_UNLOCK_AND_MOVE'] : $user->lang['TOPIC_EXPIRE_LOCK_AND_MOVE'];
break;
default:
$l_topic_expire_type = '';
break;
}
Код: Выделить всё
'TOPIC_EXPIRE' => ($row['topic_expire_time']) ? $user->format_date($row['topic_expire_time']) : 0,
'L_TOPIC_EXPIRE_TYPE' => $l_topic_expire_type,
Код: Выделить всё
<!-- IF recent_topics.S_TOPIC_UNAPPROVED or recent_topics.S_POSTS_UNAPPROVED -->
Код: Выделить всё
<!-- IF recent_topics.TOPIC_EXPIRE --> <br /><strong>{L_TOPIC_WILL_EXPIRE} [{recent_topics.L_TOPIC_EXPIRE_TYPE}]:</strong> {recent_topics.TOPIC_EXPIRE}<!-- ENDIF -->