aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Mobile/Home
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Views/Mobile/Home')
-rw-r--r--h-source/Application/Views/Mobile/Home/left.php24
-rw-r--r--h-source/Application/Views/Mobile/Home/left_es.php33
-rw-r--r--h-source/Application/Views/Mobile/Home/left_fr.php32
-rw-r--r--h-source/Application/Views/Mobile/Home/left_it.php32
4 files changed, 10 insertions, 111 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");
+ }
+?>
diff --git a/h-source/Application/Views/Mobile/Home/left_es.php b/h-source/Application/Views/Mobile/Home/left_es.php
deleted file mode 100644
index 1c961e8..0000000
--- a/h-source/Application/Views/Mobile/Home/left_es.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// h-source is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// 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;?>
-
-
-
- </div>
diff --git a/h-source/Application/Views/Mobile/Home/left_fr.php b/h-source/Application/Views/Mobile/Home/left_fr.php
deleted file mode 100644
index 7b53682..0000000
--- a/h-source/Application/Views/Mobile/Home/left_fr.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// h-source is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// 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;?>
-
-
- </div>
diff --git a/h-source/Application/Views/Mobile/Home/left_it.php b/h-source/Application/Views/Mobile/Home/left_it.php
deleted file mode 100644
index 7b53682..0000000
--- a/h-source/Application/Views/Mobile/Home/left_it.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php if (!defined('EG')) die('Direct access not allowed!'); ?>
-
-<?php
-// h-source, a web software to build a community of people that want to share their hardware information.
-// Copyright (C) 2010 Antonio Gallo (h-source-copyright.txt)
-//
-// This file is part of h-source
-//
-// h-source is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// h-source is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// 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;?>
-
-
- </div>