1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Closes #1625 - e_sitelink added to Plugin Builder and mega-menu example added.

This commit is contained in:
Cameron 2016-05-07 09:17:37 -07:00
parent 996b1f3285
commit 0376fc43f9
2 changed files with 11 additions and 11 deletions

View File

@ -14,11 +14,11 @@
if (!defined('e107_INIT')) { exit; }
if(USER_AREA) // do not include JS in the admin area.
if(USER_AREA) // prevents inclusion of JS/CSS/meta in the admin area.
{
e107::js('_blank', 'js/blank.js'); // loads e107_plugins/_blank/js/blank.js
e107::css('_blank', 'css/blank.css'); // loads e107_plugins/_blank/css/blank.css
e107::meta('keywords', 'blank,words');
e107::js('_blank', 'js/blank.js'); // loads e107_plugins/_blank/js/blank.js on every page.
e107::css('_blank', 'css/blank.css'); // loads e107_plugins/_blank/css/blank.css on every page
e107::meta('keywords', 'blank,words'); // sets meta keywords on every page.
}

View File

@ -16,7 +16,7 @@
*/
if (!defined('e107_INIT')) { exit; }
/*if(!e107::isInstalled('gsitemap'))
/*if(!e107::isInstalled('_blank'))
{
return;
}*/
@ -78,20 +78,20 @@ class _blank_sitelink // include plugin-folder in the name.
$tp = e107::getParser();
$sublinks = array();
$sql->select("_blank_info","*","faq_info_id != '' ORDER BY faq_info_order");
$sql->select("blank","*","blank_id != '' ");
while($row = $sql->fetch())
{
$sublinks[] = array(
'link_name' => $tp->toHtml($row['faq_info_title'],'','TITLE'),
'link_url' => e107::url('_blank', 'category', $row),
'link_description' => $row['faq_info_about'],
'link_button' => $row['faq_info_icon'],
'link_name' => $tp->toHtml($row['blank_name'],'','TITLE'),
'link_url' => e107::url('_blank', 'other', $row),
'link_description' => '',
'link_button' => $row['blank_icon'],
'link_category' => '',
'link_order' => '',
'link_parent' => '',
'link_open' => '',
'link_class' => intval($row['faq_info_class'])
'link_class' => e_UC_PUBLIC
);
}