mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Closes #4810 - Allow plugins to add navigation links in areas other than 'Main' eg. footer navigation. Example added to _blank/plugin.xml
This commit is contained in:
@@ -2396,9 +2396,9 @@ class e107plugin
|
||||
$linkData = array(
|
||||
'link_name' => $link_name,
|
||||
'link_url' => $path,
|
||||
'link_description' => vartrue($options['link_desription'],''),
|
||||
'link_button' => vartrue($options['link_icon'],''),
|
||||
'link_category' => '1',
|
||||
'link_description' => vartrue($options['link_desription']),
|
||||
'link_button' => vartrue($options['link_icon']),
|
||||
'link_category' => vartrue($options['link_category'],'1'),
|
||||
'link_order' => $link_t + 1,
|
||||
'link_parent' => '0',
|
||||
'link_open' => '0',
|
||||
@@ -3855,6 +3855,11 @@ class e107plugin
|
||||
'link_description' => vartrue($attrib['description'])
|
||||
);
|
||||
|
||||
if(isset($attrib['category']))
|
||||
{
|
||||
$options['link_category'] = (int) $attrib['category'];
|
||||
}
|
||||
|
||||
switch ($function)
|
||||
{
|
||||
case 'upgrade':
|
||||
|
@@ -17,7 +17,8 @@
|
||||
<link url="admin_config.php?mode=options" description="Configure Blank Prefs" icon="manage" >Blank Prefs</link>
|
||||
</adminLinks>
|
||||
<siteLinks>
|
||||
<link url="{e_PLUGIN}_blank/_blank.php" perm='everyone' sef='index'>LAN_PLUGIN__BLANK_LINK</link>
|
||||
<link category="1" url="{e_PLUGIN}_blank/_blank.php" perm='everyone' sef='index'>LAN_PLUGIN__BLANK_LINK</link>
|
||||
<link category="3" url="{e_PLUGIN}_blank/_blank.php" perm='everyone' sef='index'>Footer Link</link>
|
||||
</siteLinks>
|
||||
<pluginPrefs>
|
||||
<pref name="blank_pref_1">1</pref>
|
||||
|
Reference in New Issue
Block a user