Товарищи, а подскажите пожалуйста, как быть с SEO-урлами в меню? именно из-за них перестали выделяться менюшки
На всякий случай скрипт:
<a href="<?php echo str_replace('&', '&', $home); ?>" id="tab_home"><b><?php echo $text_home; ?></b></a>
<a href="<?php echo str_replace('&', '&', $news); ?>" id="tab_news"><b><?php echo $text_news; ?></b></a>
<a href="<?php echo str_replace('&', '&', $prosp); ?>" id="tab_prosp"><b><?php echo $text_prosp; ></b></a>
<a href="<?php echo str_replace('&', '&', $rules); ?>" id="tab_rules"><b><?php echo $text_rules; ?></b></a>
<a href="<?php echo str_replace('&', '&', $shipping); ?>" id="tab_shipping"><b><?php echo $text_shipping; ?></b></a>
<a href="<?php echo str_replace('&', '&', $pay); ?>" id="tab_pay"><b><?php echo $text_pay; ?></b></a>
js:
$(document).ready(function() {
route = getURLVar('route');
information_id = getURLVar('information_id');
if (!route) {
$('#tab_home').addClass('selected');
} else {
part = route.split('/');
if (route == 'common/home') {
$('#tab_home').addClass('selected');
} else if (route == 'information/news') {
$('#tab_news').addClass('selected');
} else if (route == 'information/information' && information_id==7) {
$('#tab_shipping').addClass('selected');
} else if (route == 'information/information' && information_id==9) {
$('#tab_pay').addClass('selected'); }
information_id==7 соответствует ЧПУ "kak-poluchit-zakaz"
information_id==9 соответствует ЧПУ "oplata"
controller/common/header.php
$this->data['text_shipping'] = $this->language->get('text_shipping');
$this->data['text_pay'] = $this->language->get('text_pay');
$this->data['shipping'] = HTTP_SERVER . 'index.php?route=information/information&information_id=7';
$this->data['pay'] = HTTP_SERVER . 'index.php?route=information/information&information_id=9';