\n";
} else {
echo "
\n";
}
$i = 0;
if (!empty($data[$id])) {
foreach ($data[$id] as $link_id => $link_data) {
if ($link_data['link_name'] != "---" && $link_data['link_name'] != "===") {
$link_target = ($link_data['link_window'] == "1" ? "target='_blank'" : "");
if ($start_page == $link_data['link_url']) {
$link_is_active = TRUE;
} else if (fusion_get_settings('site_path').$start_page == $link_data['link_url']) {
$link_is_active = TRUE;
} else if (($start_page == fusion_get_settings("opening_page") && $i == 0 && $id === 0)) {
$link_is_active = TRUE;
} else {
$link_is_active = FALSE;
}
if (preg_match("!^(ht|f)tp(s)?://!i", $link_data['link_url'])) {
$item_link = $link_data['link_url'];
} else {
$item_link = BASEDIR.$link_data['link_url'];
}
$item_link = str_replace('%aidlink%', fusion_get_aidlink(), $item_link);
$link_icon = $link_data['link_icon'] ? "" : "";
echo "- ";
echo "";
echo $link_icon.$link_data['link_name'];
echo "";
if (isset($data[$link_id])) {
showsidelinks($options, $link_data['link_id']);
}
echo "
\n";
} else if ($link_data['link_name'] == '---' || $link_data['link_name'] == '===') {
echo "\n";
}
$i++;
}
}
echo "
\n";
}
add_to_jquery("
$('.fusion_css_navigation_panel li:has(ul)').on('click', function(e) {
e.preventDefault();
$(this).find('.sub-nav').slideToggle('fast');
});
$('.fusion_css_navigation_panel').find('.sub-nav li').click(function(e) {
e.stopPropagation();
});
$('.fusion_css_navigation_panel li:has(ul)').find('a:first').append(' ยป');
");
}
openside(fusion_get_locale('global_001'));
echo "\n";
showsidelinks();
echo "
\n";
closeside();