@@ 209-211 (lines=3) @@ | ||
206 | } |
|
207 | ||
208 | //Avoid to refresh page if not needed |
|
209 | if ($this->request && ($this->request->getRequestUri() == $this->victoireLinkUrl($parameters, false))) { |
|
210 | $this->addAttr('class', $currentClass, $attr); |
|
211 | } |
|
212 | ||
213 | //Build the target attribute |
|
214 | if ($parameters['target'] == Link::TARGET_MODAL) { |
|
@@ 250-252 (lines=3) @@ | ||
247 | */ |
|
248 | public function victoireMenuLink($parameters, $label, $linkAttr = [], $listAttr = []) |
|
249 | { |
|
250 | if ($this->request && ($this->request->getRequestUri() == $this->victoireLinkUrl($parameters, false))) { |
|
251 | $this->addAttr('class', 'active', $listAttr); |
|
252 | } |
|
253 | ||
254 | return '<li '.$this->formatAttributes($listAttr).'>'.$this->victoireLink($parameters, $label, $linkAttr, false, '#top').'</li>'; |
|
255 | } |