mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 04:40:44 +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(
|
$linkData = array(
|
||||||
'link_name' => $link_name,
|
'link_name' => $link_name,
|
||||||
'link_url' => $path,
|
'link_url' => $path,
|
||||||
'link_description' => vartrue($options['link_desription'],''),
|
'link_description' => vartrue($options['link_desription']),
|
||||||
'link_button' => vartrue($options['link_icon'],''),
|
'link_button' => vartrue($options['link_icon']),
|
||||||
'link_category' => '1',
|
'link_category' => vartrue($options['link_category'],'1'),
|
||||||
'link_order' => $link_t + 1,
|
'link_order' => $link_t + 1,
|
||||||
'link_parent' => '0',
|
'link_parent' => '0',
|
||||||
'link_open' => '0',
|
'link_open' => '0',
|
||||||
@@ -3855,6 +3855,11 @@ class e107plugin
|
|||||||
'link_description' => vartrue($attrib['description'])
|
'link_description' => vartrue($attrib['description'])
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(isset($attrib['category']))
|
||||||
|
{
|
||||||
|
$options['link_category'] = (int) $attrib['category'];
|
||||||
|
}
|
||||||
|
|
||||||
switch ($function)
|
switch ($function)
|
||||||
{
|
{
|
||||||
case 'upgrade':
|
case 'upgrade':
|
||||||
|
@@ -17,7 +17,8 @@
|
|||||||
<link url="admin_config.php?mode=options" description="Configure Blank Prefs" icon="manage" >Blank Prefs</link>
|
<link url="admin_config.php?mode=options" description="Configure Blank Prefs" icon="manage" >Blank Prefs</link>
|
||||||
</adminLinks>
|
</adminLinks>
|
||||||
<siteLinks>
|
<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>
|
</siteLinks>
|
||||||
<pluginPrefs>
|
<pluginPrefs>
|
||||||
<pref name="blank_pref_1">1</pref>
|
<pref name="blank_pref_1">1</pref>
|
||||||
|
Reference in New Issue
Block a user