The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 916 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
li to not include "current" class?
#1
Hi all, just installed GetSimple and so far so good with importing my theme in.

There's just one issue I've come across so far and that is with the navigation. In the HTML mark-up I had the following:

Code:
<ul class="Navigation">
<li class="current"><a href="#" title="Homepage"><b>Home</b></a></li>
<li><a href="#" title="Link 1"><b>Link 1</b></a></li>
<li><a href="#" title="Link 2"><b>Link 2</b></a></li>
<li><a href="#" title="Link 2"><b>Link 2</b></a></li>
<li><a href="#" title="Link 2"><b>Link 2</b></a></li>
</ul>

This used CSS for the a:hover of the links to have the same CSS as "current" which gave a rollover effect.

Currently with GetSimple the list's current class would change to class="current index", class="current about" etc. Is there anyway I can stop this to just get it back to "current"?

I've found the following PHP code in theme_functions.php in admin/inc, though I'm hopeless with PHP and haven't a clue how to change it.

Code:
if ($page['menuStatus'] == 'Y') {
                if ("$currentpage" == "$url_nav") { $classes = "current". $page['parent'] ." ". $url_nav; } else { $classes = trim($page['parent'] ." ". $url_nav); }
                if ($page['menu'] == '') { $page['menu'] = $page['title']; }
                if ($page['title'] == '') { $page['title'] = $page['menu']; }
                $menu .= '<li class="'. $classes .'"><a href="'. find_url($page['url'],$page['parent']) . '" title="'. strip_quotes($page['title']) .'">'.$page['menu'].'</a></li>'."\n";
            }

MTIA
Reply


Messages In This Thread
li to not include "current" class? - by TheController - 2011-11-16, 12:28:14
li to not include "current" class? - by Connie - 2011-11-16, 16:06:30
li to not include "current" class? - by mvlcek - 2011-11-16, 21:56:58
li to not include "current" class? - by mvlcek - 2011-11-17, 05:24:11



Users browsing this thread: 2 Guest(s)