Added Link Us Block;

Fixed a small bug in user menu;
This commit is contained in:
Marc Alexander
2010-10-03 19:55:56 +00:00
parent 0ccf538b1f
commit 73681a4b43
6 changed files with 130 additions and 1 deletions

View File

@@ -0,0 +1,84 @@
<?php
/**
* @package Portal - Link Us
* @version $Id$
* @copyright (c) 2009, 2010 Board3 Portal Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
if (!defined('IN_PHPBB'))
{
exit;
}
/**
* @package Clock
*/
class portal_link_us_module
{
/**
* Allowed columns: Just sum up your options (Exp: left + right = 10)
* top 1
* left 2
* center 4
* right 8
* bottom 16
*/
var $columns = 10;
/**
* Default modulename
*/
var $name = 'LINK_US';
/**
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
var $image_src = 'portal_link_us.png';
/**
* module-language file
* file must be in "language/{$user->lang}/mods/portal/"
*/
var $language = 'portal_link_us_module';
function get_template_side($module_id)
{
global $config, $template, $user;
//doing the easy way ;)
$u_link = generate_board_url();
// Assign specific vars
$template->assign_vars(array(
'LINK_US_TXT' => sprintf($user->lang['LINK_US_TXT'], $config['sitename']),
'U_LINK_US' => '&lt;a&nbsp;href=&quot;' . $u_link . '&quot;&nbsp;' . (($config['site_desc']) ? 'title=&quot;' . $config['site_desc'] . '&quot;' : '' ) . '&gt;' . (($config['sitename']) ? $config['sitename'] : $u_link ) . '&lt;/a&gt;',
));
return 'link_us_side.html';
}
function get_template_acp($module_id)
{
return false;
}
/**
* API functions
*/
function install($module_id)
{
return true;
}
function uninstall($module_id)
{
return true;
}
}
?>

View File

@@ -157,7 +157,7 @@ class portal_user_menu_module
function get_template_acp($module_id)
{
return false
return false;
}
/**