X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=application%2Fviews%2Fhelpers%2FAnchor.php;h=63cf9c45b8aecc5b6905ceaec309effb3e8f4f60;hb=9595d8b7134bd616b9326d24ee245bfacd106354;hp=ddfe74479cf29f266c20b876ec2c53ee8e1cc404;hpb=190fd621df4920c56a422c03663874cddaa67d64;p=syj.git
diff --git a/application/views/helpers/Anchor.php b/application/views/helpers/Anchor.php
index ddfe744..63cf9c4 100644
--- a/application/views/helpers/Anchor.php
+++ b/application/views/helpers/Anchor.php
@@ -1,24 +1,16 @@
getRequest()->getQuery('lang');
- if ($lang) {
- $translator = Zend_Registry::get('Zend_Translate');
- $adapter = $translator->getAdapter();
- if ($adapter->isAvailable($lang)) {
- $href = $this->view->addParamToUrl($href, 'lang', $lang);
- }
- }
-
+ public function Anchor($href, $text = null, array $attribs=array(), $escape = true) {
$attribs = array_merge(array('href' => $href), $attribs);
if (!isset($text)) {
$text = $href;
}
- $html = '_htmlAttribs($attribs) . '>' . $this->view->escape($text) . '';
+ $content = $escape ? $this->view->escape($text) : $text;
+ $html = '_htmlAttribs($attribs) . '>' . $content . '';
return $html;
}
}