diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2012-10-14 08:59:56 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2012-10-14 08:59:56 +0000 |
commit | bd08028d9186a3bf1c743fbeb98d5571db08bc0f (patch) | |
tree | 71117d968c589ace358e1e41f178d9b2b0b4a2c3 /h-source | |
parent | 1ac426c97e6b117e9507ad5effbf7ec62590930e (diff) |
improved the way the discover your hardware link in the right column is generated
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Controllers/BaseController.php | 3 | ||||
-rw-r--r-- | h-source/Application/Views/Desktop/right.php | 4 | ||||
-rw-r--r-- | h-source/config.xml | 11 |
3 files changed, 15 insertions, 3 deletions
diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php index b07d443..4b1246f 100644 --- a/h-source/Application/Controllers/BaseController.php +++ b/h-source/Application/Controllers/BaseController.php @@ -158,6 +158,9 @@ class BaseController extends Controller $mod = new BoxParser($this->getBox(array("top_menu","faq_link"))); $data["topMenuFaqLink"] = $mod->modules[0]->render($this->_topMenuClasses["faq"]); + //link to the "discover your hardware" wiki page + $data['discoverYourHardwareLink'] = $this->getModule(array('right_column','discover_your_hardware')); + $this->append($data); } diff --git a/h-source/Application/Views/Desktop/right.php b/h-source/Application/Views/Desktop/right.php index 1486181..14b6fbc 100644 --- a/h-source/Application/Views/Desktop/right.php +++ b/h-source/Application/Views/Desktop/right.php @@ -86,9 +86,7 @@ </div> - <div class="discover_hardware"> - <a href="<?php echo $this->baseUrl."/help/index/$lang#discover-hardware";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/discover.png"></a> - </div> + <?php echo $discoverYourHardwareLink;?> <div class="download_database"> <a href="<?php echo $this->baseUrl."/download/index/$lang";?>"><img src="<?php echo $this->baseUrl;?>/Public/Img/download.png"></a> diff --git a/h-source/config.xml b/h-source/config.xml index 1b0dfb6..a7d9e81 100644 --- a/h-source/config.xml +++ b/h-source/config.xml @@ -158,6 +158,17 @@ </fr> </top_news> <right_column> + <discover_your_hardware> + <en> + <mod> + <type>raw</type> + <div>discover_hardware</div> + <text><![CDATA[ + <a href="http://h-node.org/wiki/page/en/Discover-your-hardware"><img src="http://h-node.org/Public/Img/discover.png"></a> + ]]></text> + </mod> + </en> + </discover_your_hardware> <en> <mod> <type>raw</type> |