1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 13:47:31 +02:00

Administration top navigation - draft to working state sections (work in progress)

This commit is contained in:
SecretR
2013-02-09 16:36:04 +02:00
parent 6e5f0bfb36
commit 90f4545481

View File

@@ -565,13 +565,14 @@ class admin_shortcodes
return $ret;
}
// FIXME - make it work
function sc_admin_pm($parm)
{
$text = '<li class="dropdown">
if(!e107::isInstalled('pm')) return;
$text = '
<li class="dropdown">
<a class="dropdown-toggle" title="Messages" role="button" data-toggle="dropdown" href="#" >
<i class="icon-envelope icon-white active"></i> 3
<b class="caret"></b>
<i class="icon-envelope icon-white active"></i> 3 <b class="caret"></b>
</a>
<div id="dropdown" class="dropdown-menu pull-right e-noclick" style="padding:10px;width:300px">
<ul class="nav-list">
@@ -582,7 +583,7 @@ class admin_shortcodes
<li class="divider"></li>
</ul>
<textarea class="e-tip input-block-level" title="Example Only"></textarea>
<button class="dropdown-toggle btn btn-primary" >Send</button>
<button class="dropdown-toggle btn btn-primary">Send</button>
</div>
</li>
';
@@ -1651,15 +1652,18 @@ class admin_shortcodes
if($type == 'language')
{
$languages = array('English','French');
$languages = e107::getLanguage()->installed();//array('English','French');
if(count($languages) > 1)
{
$c = 0;
foreach($languages as $lng)
{
$checked = ($lng == e_LANGUAGE) ? "<i class='icon-ok icon-black'></i> " : "&nbsp;";
$tmp[$c]['text'] = $lng." (TO DO)";
$tmp[$c]['text'] = $lng;
$tmp[$c]['description'] = '';
$tmp[$c]['link'] = '#';
$tmp[$c]['link'] = $lng == e_LANGUAGE ? '#' : e_SELF.'?elan='.$lng;
$tmp[$c]['image'] = $checked;
$tmp[$c]['image_large'] = '';
$tmp[$c]['image_src'] = '';
@@ -1674,9 +1678,9 @@ class admin_shortcodes
$menu_vars['language']['image_src'] = ADLAN_46;
$menu_vars['language']['perm'] = '';
$menu_vars['language']['sub'] = $tmp;
}
}
return $menu_vars;
}