B3P v2: Added link block
and added phpBB3 core files includes/cache.php and includes/constants.php and a Datebase backup. :-)
This commit is contained in:
@@ -167,9 +167,9 @@ $result = $db->sql_query($sql);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
// Grab navigation links
|
||||
//if ($portal_config['num_links'] > 0)
|
||||
//{
|
||||
/* $links = $cache->obtain_links();
|
||||
if ($portal_config['num_links'] > 0)
|
||||
{
|
||||
$links = $cache->obtain_links();
|
||||
|
||||
if (sizeof($links))
|
||||
{
|
||||
@@ -183,8 +183,8 @@ $db->sql_freeresult($result);
|
||||
));
|
||||
}
|
||||
}
|
||||
//}
|
||||
*/
|
||||
}
|
||||
|
||||
// Assign specific vars
|
||||
$template->assign_vars(array(
|
||||
'WELCOME_USERNAME' => get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']),
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
<!--version $Id$ //-->
|
||||
{$LR_BLOCK_H_L}<img src="{T_THEME_PATH}/images/portal/portal_links.png" width="16" height="16" alt="" /> {L_LINKS}{$LR_BLOCK_H_R}
|
||||
<!-- IF .links -->
|
||||
<div class="portal-navigation">
|
||||
<ul>
|
||||
<!-- IF .link -->
|
||||
<!-- BEGIN link -->
|
||||
<li><a href="{link.URL}" title="{link.TEXT}">{link.TEXT}</a></li>
|
||||
<!-- END link -->
|
||||
<!-- ELSE -->
|
||||
<span style="float:left;" class="gensmall"><strong>{L_NO_LINKS}</strong></span><br />
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN links -->
|
||||
<!-- IF links.S_IS_CAT --><div class="menutitle">{links.TITLE}</div><!-- ELSE --><li><a href="{links.URL}">{links.TITLE}</a></li><!-- ENDIF -->
|
||||
<!-- END links -->
|
||||
</ul>
|
||||
</div>
|
||||
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}
|
||||
<!-- ELSE -->
|
||||
<span style="float:left;" class="gensmall"><strong>{L_NO_LINKS}</strong></span><br />
|
||||
<!-- ENDIF -->
|
||||
|
||||
Reference in New Issue
Block a user