46 $this->_directory =
$fct;
61 if (!isset($instance)) {
63 $instance =
new $class(
$fct);
70 $this->_directory =
$fct;
79 $this->_bread[] = array(
80 'link' =>
$link,
'title' => $title,
'home' => $home
99 $this->_tips = $value;
110 $xoops->tpl()->assign(
'xo_sys_breadcrumb', $this->_bread);
111 $xoops->tpl()->assign(
'xo_sys_help', $this->_help);
113 if (
$xoops->getModuleConfig(
'usetips',
'system')) {
114 $xoops->tpl()->assign(
'xo_sys_tips', $this->_tips);
120 ->assign(
'help_content', \
XoopsBaseConfig::get(
'root-path') .
'/modules/system/language/' .
$xoops->getConfig(
'language') .
'/help/' . $this->_directory .
'.html');
124 ->assign(
'help_content', \
XoopsBaseConfig::get(
'root-path') .
'/modules/system/language/english/help/' . $this->_directory .
'.html');
126 $xoops->tpl()->assign(
'load_error', 1);
130 $out =
$menu =
'<style type="text/css" media="screen">@import ' .
\XoopsBaseConfig::get(
'url') .
'/modules/system/css/menu.css;</style>';
131 $out .=
'<ul id="xo-breadcrumb">';
132 foreach ($this->_bread as
$menu) {
134 $out .=
'<li><a href="' . $menu[
'link'] .
'" title="' . $menu[
'title'] .
'"><img src="images/home.png" alt="' . $menu[
'title'] .
'" class="home" /></a></li>';
136 if ($menu[
'link'] !=
'') {
137 $out .=
'<li><a href="' . $menu[
'link'] .
'" title="' . $menu[
'title'] .
'">' . $menu[
'title'] .
'</a></li>';
139 $out .=
'<li>' . $menu[
'title'] .
'</li>';
145 $out .=
'<div class="tips">' . $this->_tips .
'</div>';
static getInstance($fct= '')
addLink($title= '', $link= '', $home=false)