Forum Default Curve Core Vis Albastru Vis Verde Vis Roșu
0 Members and 1 Guest are viewing this topic.
global $context, $scripturl, $txt, $settings, $color_profile;echo '<table cellpadding="5" cellspacing="15" width="100%";><tr width="100%";><td class="tborder windowbg2" width="50%"; style="text-align: center;">Latest Posts</td><td class="tborder windowbg2" width="50%"; style="text-align: center;">Active Topics</td></tr><tr width="100%";><td class="tborder windowbg" width="50%";>'; $block_parameters = array( 'limit' => 'int', ); if ($return_parameters) return $block_parameters; $limit = empty($parameters['limit']) ? 7 : (int) $parameters['limit']; $posts = ssi_recentPosts($limit, null, null, 'array'); if (empty($posts)) { echo ' ', $txt['error_sp_no_posts_found']; return; } $colorids = array(); foreach ($posts as $post) $colorids[] = $post['poster']['id']; if (!empty($colorids) && sp_loadColors($colorids) !== false) { foreach ($posts as $k => $p) { if (!empty($color_profile[$p['poster']['id']]['link'])) $posts[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link']; } } echo ' <table class="sp_fullwidth">'; foreach ($posts as $post) echo ' <tr> <td class="sp_recent_icon sp_center"> ', sp_embed_image('post'), ' </td> <td class="sp_recent_subject"> <a href="', $post['href'], '">', $post['subject'], '</a> ', $post['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $post['topic'] . '.msg' . $post['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $post['board']['link'], '] </td> <td class="sp_recent_info sp_right"> ', $post['poster']['link'], '<br />', $post['time'], ' </td> </tr>'; echo ' </table>';echo'</td><td class="tborder windowbg" width="50%";>'; $block_parameters = array( 'limit' => 'int', ); if ($return_parameters) return $block_parameters; $limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 7; $topics = ssi_recentTopics($limit, null, null, 'array'); if (empty($topics)) { echo ' ', $txt['error_sp_no_topics_found']; return; } $colorids = array(); foreach ($topics as $topic) $colorids[] = $topic['poster']['id']; if (!empty($colorids) && sp_loadColors($colorids) !== false) { foreach ($topics as $k => $p) { if (!empty($color_profile[$p['poster']['id']]['link'])) $topics[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link']; } } echo ' <table class="sp_fullwidth">'; foreach ($topics as $topic) echo ' <tr> <td class="sp_recent_icon sp_center"> ', sp_embed_image('topic'), ' </td> <td class="sp_recent_subject"> <a href="', $topic['href'], '">', $topic['subject'], '</a> ', $topic['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $topic['topic'] . '.msg' . $topic['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $topic['board']['link'], '] </td> <td class="sp_recent_info sp_right"> ', $topic['poster']['link'], '<br />', $topic['time'], ' </td> </tr>'; echo ' </table>';echo'</td></tr></table>';
Fatal error: Function name must be a string in /home/graphic3/public_html/subdomains/acs/testdp/Themes/default/DreamPortal.template.php on line 152