aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Mobile/Home/left.php
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2012-12-31 06:17:27 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2012-12-31 06:17:27 +0000
commit4ad856927ba7174a569b706340aebebfbf85e922 (patch)
tree248b6c08376734f821d3ec09f95c88b21624c2e1 /h-source/Application/Views/Mobile/Home/left.php
parentb381d1188565cf2ed5a2fc8e0b634af282922d28 (diff)
improved the way the template is built
Diffstat (limited to 'h-source/Application/Views/Mobile/Home/left.php')
-rw-r--r--h-source/Application/Views/Mobile/Home/left.php24
1 files changed, 10 insertions, 14 deletions
diff --git a/h-source/Application/Views/Mobile/Home/left.php b/h-source/Application/Views/Mobile/Home/left.php
index ea43b56..156ec85 100644
--- a/h-source/Application/Views/Mobile/Home/left.php
+++ b/h-source/Application/Views/Mobile/Home/left.php
@@ -20,17 +20,13 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <div data-role="content">
-
- <div class="position_tree_box">
- Home
- </div>
-
- <?php echo $htmlNewsBox;?>
-
- <p>it works!!</p>
-
- <p>modify the file <b>Application/Views/Home/left.php</b> in order to change the english version of your homepage</p>
-
- <p>modify the file <b>Application/Include/languages.php</b> in order to add new languages</p>
- </div>
+<?php
+ if (file_exists(ROOT."/Template/".Params::$viewSubfolder."/Home/left_$lang.php"))
+ {
+ include(ROOT."/Template/".Params::$viewSubfolder."/Home/left_$lang.php");
+ }
+ else
+ {
+ include(ROOT."/Template/".Params::$viewSubfolder."/Home/left.php");
+ }
+?>