mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 06:38:00 +02:00
Sorting of Doc items.
This commit is contained in:
@@ -45,30 +45,17 @@ e107::css('inline', 'div.qitem { margin-top:20px }
|
|||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
protected $adminMenu = array();
|
||||||
|
|
||||||
protected $adminMenu = array(
|
protected $adminMenuAliases = array();
|
||||||
|
|
||||||
// 'main/list' => array('caption'=> LAN_MANAGE, 'perm' => 'P'),
|
|
||||||
// 'main/create' => array('caption'=> LAN_CREATE, 'perm' => 'P'),
|
|
||||||
// 'main/prefs' => array('caption'=> LAN_PREFS, 'perm' => 'P'),
|
|
||||||
|
|
||||||
// 'main/custom' => array('caption'=> 'Custom Page', 'perm' => 'P')
|
|
||||||
);
|
|
||||||
|
|
||||||
protected $adminMenuAliases = array(
|
|
||||||
'main/edit' => 'main/list'
|
|
||||||
);
|
|
||||||
|
|
||||||
protected $menuTitle = LAN_DOCS;
|
protected $menuTitle = LAN_DOCS;
|
||||||
|
|
||||||
public static $helpList = array();
|
protected static $helpList = array();
|
||||||
|
|
||||||
|
|
||||||
public static function getDocs()
|
public static function getDocs()
|
||||||
{
|
{
|
||||||
|
|
||||||
return self::$helpList;
|
return self::$helpList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -87,6 +74,8 @@ e107::css('inline', 'div.qitem { margin-top:20px }
|
|||||||
$helplist = $fl->get_files(DOC_PATH);
|
$helplist = $fl->get_files(DOC_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sort($helplist);
|
||||||
|
|
||||||
self::$helpList = $helplist;
|
self::$helpList = $helplist;
|
||||||
|
|
||||||
foreach($helplist as $key=>$helpdata)
|
foreach($helplist as $key=>$helpdata)
|
||||||
@@ -95,12 +84,7 @@ e107::css('inline', 'div.qitem { margin-top:20px }
|
|||||||
$id = 'doc-'.$key;
|
$id = 'doc-'.$key;
|
||||||
$k = 'main/'.$id;
|
$k = 'main/'.$id;
|
||||||
|
|
||||||
// $text_h .= "
|
|
||||||
// <div class='qitem'>".E_16_DOCS." <a href='#{$id}' class='scroll-to'>".str_replace("_", " ", $helpdata['fname'])."</a></div>
|
|
||||||
// ";
|
|
||||||
|
|
||||||
$this->adminMenu[$k] = array('caption'=> str_replace("_", " ", $helpdata['fname']), 'perm' => false, 'uri'=>"#".$id );
|
$this->adminMenu[$k] = array('caption'=> str_replace("_", " ", $helpdata['fname']), 'perm' => false, 'uri'=>"#".$id );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -145,7 +129,7 @@ e107::css('inline', 'div.qitem { margin-top:20px }
|
|||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<div class='docs-item' id='{$id}' {$display}>
|
<div class='docs-item' id='{$id}' {$display}>
|
||||||
<h4>".str_replace("_", " ", $helpdata['fname'])."</h4>
|
<h4>".LAN_DOCS.SEP.str_replace("_", " ", $helpdata['fname'])."</h4>
|
||||||
{$tmp}
|
{$tmp}
|
||||||
|
|
||||||
</div>";
|
</div>";
|
||||||
|
Reference in New Issue
Block a user