// Show some basic information about the number of posts, etc.
echo '
</div>
<div class="board_stats">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '
', $board['is_redirect'] ? '' : '<br> ' . comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
</div>
<div class="lastpost ',!empty($board['last_post']['id']) ? 'lpr_border' : 'hidden', '">';
if (!empty($board['last_post']['id']))
echo '
<p>', $board['last_post']['last_post_message'], '</p>';
echo '
</div>';// Show some basic information about the number of posts, etc.
echo '
</div>
<div class="board_stats">
<p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], '
', $board['is_redirect'] ? '' : '<br> ' . comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p>
</div>
<div class="lastpost ',!empty($board['last_post']['id']) ? 'lpr_border' : 'hidden', '">';
if (!empty($board['last_post']['id']))
echo '
<p>'.$board['last_post']['member']['avatar']['image'].' ', $board['last_post']['last_post_message'], '</p>';
echo '
</div>';function template_ic_block_recent()
{
global $context, $scripturl, $settings, $txt;function template_ic_block_recent()
{
global $context, $scripturl, $settings, $txt;$settings['avatars_on_boardIndex'] = false;$settings['avatars_on_boardIndex'] = false;.sonileti .avatar, .lastpost img.avatar {
float:left;
width: 40px;
height: 40px;
border-radius:50%;
border: 1px solid #ccc;
overflow: hidden;
}m.poster_time, m.subject, m.id_topic, m.id_member, m.id_msg,
COALESCE(mem.real_name, m.poster_name) AS poster_name, t.id_board, b.name AS board_name,, t.num_views, t.num_replies,'time' => timeformat($row['poster_time']),'views' => comma_format($row['num_views']),
'replies' => comma_format($row['num_replies']),// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table cellpadding="0" cellspacing="1" width="100%" border="0">
<tr>
<td class="catbg2" style="text-align:left;" colspan="2">',$txt['recent_title'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_replies'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_views'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_boardname'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_by'],'</td>
<td class="catbg2" style="text-align:right;">',$txt['recent_time'],'</td>
</tr>';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
$cnt = 0;
foreach ($context['latest_posts'] as $post){
$cnt++;
$class = ($cnt % 2) ? 'windowbg' : 'windowbg2';
echo '
<tr>
<td></td>
<td class="', $class, '" title="', $post['preview'] ,'">', $post['link'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['replies'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['views'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['board']['link'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['poster']['link'], '</td>
<td class="', $class, '" style="text-align:right;" nowrap="nowrap">', $post['time'], '</td>
</tr>';
}
echo '
</table>';?>$txt['recent_title'] = 'Subject';
$txt['recent_views'] = 'Views';
$txt['recent_replies'] = 'Replies';
$txt['recent_boardname'] = 'Board name';
$txt['recent_by'] = 'Author';
$txt['recent_time'] = 'Date';$txt['recent_title'] = 'Tópicos Recentes';
$txt['recent_views'] = 'Visualizações';
$txt['recent_replies'] = 'Respostas';
$txt['recent_boardname'] = 'Nome da Secção';
$txt['recent_by'] = 'Enviado por';
$txt['recent_time'] = 'Data';
// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
{
echo '
<div class="title_barIC">
<h4 class="titlebg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=recent"><img class="icon" src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
', $txt['recent_posts'], '
</span>
</h4>
</div>
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
</div>';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' "', $context['latest_post']['link'], '" ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<dl id="ic_recentposts" class="middletext">';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
foreach ($context['latest_posts'] as $post)
echo '
<dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
<dd>', $post['time'], '</dd>';
echo '
</dl>';
}
echo '
</div>';
}echo '
<div id="boardindex_table">
<table class="table_list">';// This is the "Recent Posts" bar.
if (!empty($settings['number_recent_posts']))
{
echo '
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft">
<a href="', $scripturl, '?action=recent"><i class="icon-edit-sign icon-large"></i></a>
', $txt['recent_posts'], '
</span>
</h3>
</div>
<div class="hslice" id="recent_posts_content">
<div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['RecentTopicsOnBoardIndex_recenttopics'], '</div>
<div class="entry-content" style="display: none;">
<a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a>
</div>';
// Only show one post.
if ($settings['number_recent_posts'] == 1)
{
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
echo '
<strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
<p id="infocenter_onepost" class="middletext">
', $txt['recent_view'], ' "', $context['latest_post']['link'], '" ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
</p>';
}
// Show lots of posts.
elseif (!empty($context['latest_posts']))
{
echo '
<table width="100%" cellpadding="0" cellspacing="2" style="font-size:11px;border:1px solid #ccc;padding:1px;">
<tr>
<td class="catbg2" style="text-align:left;" colspan="2">',$txt['recent_title'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_replies'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_views'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_boardname'],'</td>
<td class="catbg2" style="text-align:center;">',$txt['recent_by'],'</td>
<td class="catbg2" style="text-align:right;">',$txt['recent_time'],'</td>
</tr>';
/* Each post in latest_posts has:
board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
subject, short_subject (shortened with...), time, link, and href. */
$cnt = 0;
foreach ($context['latest_posts'] as $post){
$cnt++;
$class = ($cnt % 2) ? 'windowbg' : 'windowbg2';
echo '
<tr>
<td></td>
<td class="', $class, '" title="', $post['preview'] ,'">', $post['link'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['replies'], '</td>
<td class="', $class, '" style="text-align:center;">', $post['views'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['board']['link'], '</td>
<td class="', $class, '" style="text-align:center;">',$post['poster']['link'], '</td>
<td class="', $class, '" style="text-align:right;" nowrap="nowrap">', $post['time'], '</td>
</tr>';
}
echo '
</table>
<br/>';
}
echo '
</div>';
}//Tags text strings
$txt['smftags_tags'] = 'Etiquetas';
$txt['smftags_tagtosuggest'] = 'Etiqueta a Sugerir:';
$txt['smftags_popular'] = 'Etiquetas Populares';
$txt['smftags_latest'] = 'Últimas Mensagens com Etiqueta';
$txt['smftags_resultsfor'] = 'Resultados para ';
$txt['smftags_suggest'] = 'Sugerir Etiqueta';
$txt['smftags_addtag'] = '[Adicionar Etiqueta]';
$txt['smftags_deletetag'] = '[Apagar Etiqueta]';
$txt['smftags_addtag2'] = 'Adicionar Etiqueta';
$txt['smftags_tagtoadd'] = 'Etiqueta a Adicionar';
//Tags Admin Settings
$txt['smftags_set_mintaglength'] = 'Comprimento Mínimo da Etiqueta';
$txt['smftags_set_maxtaglength'] = 'Comprimento Máximo da Etiqueta';
$txt['smftags_set_maxtags'] = 'Número máximo de etiquetas por tópico';
$txt['smftags_tagcloud_settings'] = 'Definições da Nuvem de Etiquetas';
$txt['smftags_set_cloud_tags_to_show'] = 'Número de etiquetas a mostrar na nuvem';
$txt['smftags_set_cloud_tags_per_row'] = 'Número de etiquetas a mostrar por linha';
$txt['smftags_set_cloud_max_font_size_precent'] = 'Tamanho máximo da fonte na nuvem (em percentagem)';
$txt['smftags_set_cloud_min_font_size_precent'] = 'Tamanho mínimo da fonte na nuvem (em percentagem)';
$txt['smftags_err_deletetag'] = 'Não tem permissão para apagar a etiqueta.';
$txt['smftags_err_notopic'] = 'Nenhum tópico selecionado.';
$txt['smftags_err_notag'] = 'Precisa de inserir uma etiqueta.';
$txt['smftags_err_mintag'] = 'A etiqueta é menor que o comprimento mínimo de ';
$txt['smftags_err_maxtag'] = 'A etiqueta é maior que o comprimento máximo de ';
$txt['smftags_err_toomaxtag'] = 'O limite de etiquetas por tópico foi excedido.';
$txt['smftags_err_permaddtags'] = 'Não tem permissão para adicionar etiquetas a esse tópico.';
$txt['smftags_err_alreadyexists'] = 'Essa etiqueta já existe para esse tópico.';
$txt['smftags_settings'] = 'Definições de Etiquetas';
$txt['smftags_pages'] = 'Páginas: ';
$txt['smftags_savesettings'] = 'Guardar Definições';
///Results Display
$txt['smftags_subject'] = 'Assunto';
$txt['smftags_startedby'] = 'Iniciado por';
$txt['smftags_replies'] = 'Respostas';
$txt['smftags_views'] = 'Visualizações';
$txt['smftags_guest'] = 'Visitante';
$txt['smftags_topictag'] = 'Etiqueta';
$txt['smftags_set_msgindex'] = 'Mostrar etiquetas no índice de mensagens debaixo do tópico';
$txt['smftags_set_msgindex_max_show'] = 'Número máximo de etiquetas a mostrar debaixo do tópico';
$txt['smftags_set_use_css_tags'] = 'Usar CSS para exibir as etiquetas';
$txt['smftags_set_css_tag_background_color'] = 'Cor de Fundo da Etiqueta (CSS)';
$txt['smftags_set_css_tag_font_color'] = 'Cor da Fonte da Etiqueta (CSS)';Página criada em 0.046 segundos com 18 solicitações.