Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Change default navigation link class

Asked Modified Viewed 1,206 times
E
electrox73
E
-----------------------------------------------
Gaming Portal: http://gamblerz.6f.sk
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions
asked
Junior Member

I am using the default navigation(css_navigation_panel) and the link have the class of "side" and I want it to be "side-nav" cuz other thing are also using "side".

Here is the css_navigation_panel code, where i tryed to change "side" to "side-nav" but it didn't work_
<?php   
/*-------------------------------------------------------+
| PHPFusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: navigation_panel.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }

$list_open = false;

openside($locale['global_001']);
$result = dbquery(
   "SELECT link_name, link_url, link_window, link_visibility FROM ".DB_SITE_LINKS."
   WHERE link_position='1' OR link_position='2' ORDER BY link_order"
);
if (dbrows($result)) {
   echo "<div id='navigation'>\n";
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
         if ($data['link_name'] != "---" && $data['link_url'] == "---") {
            if ($list_open) { echo "</ul>\n"; $list_open = false; }
            echo "<h2>".parseubb($data['link_name'], "b|i|u|color")."</h2>\n";
         } else if ($data['link_name'] == "---" && $data['link_url'] == "---") {
            if ($list_open) { echo "</ul>\n"; $list_open = false; }
            echo "<hr class='side-hr' />\n";
         } else {
            if (!$list_open) { echo "<ul>\n"; $list_open = true; }
            $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
            if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
               echo "<li><a href='".$data['link_url']."'".$link_target." class='side-nav'>".THEME_BULLET." <span>".parseubb($data['link_name'], "b|i|u|color")."</span></a></li>\n";
            } else {
               echo "<li><a href='".BASEDIR.$data['link_url']."'".$link_target." class='side-nav'>".THEME_BULLET." <span>".parseubb($data['link_name'], "b|i|u|color")."</span></a></li>\n";
            }
         }
      }
   }
   if ($list_open) { echo "</ul>\n"; }
   echo "</div>\n";
} else {
   echo $locale['global_002'];

}
closeside();
?>


I changed
echo "<li><a href='".$data['link_url']."'".$link_target." class='side'>".THEME_BULLET." <span>".parseubb($data['link_name'], "b|i|u|color")."</span></a></li>\n";

to
echo "<li><a href='".$data['link_url']."'".$link_target." class='side-nav'>".THEME_BULLET." <span>".parseubb($data['link_name'], "b|i|u|color")."</span></a></li>\n";
but nothing happened with the class.

The site where I'm doing this is http://defuse-design.6f.sk
HELP!
Edited by electrox73 on 26-06-2011 12:45,
0 replies

1 post

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

You need to add a class in the theme styles.css for the new class.
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 1 post
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
E
E
-----------------------------------------------
Gaming Portal: http://gamblerz.6f.sk
  • Junior Member, joined since
  • Contributed 10 posts on the community forums.
  • Started 6 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet