aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Views/Desktop/Project
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/Desktop/Project
parentb381d1188565cf2ed5a2fc8e0b634af282922d28 (diff)
improved the way the template is built
Diffstat (limited to 'h-source/Application/Views/Desktop/Project')
-rw-r--r--h-source/Application/Views/Desktop/Project/index.php20
-rw-r--r--h-source/Application/Views/Desktop/Project/index_es.php31
-rw-r--r--h-source/Application/Views/Desktop/Project/index_it.php31
3 files changed, 11 insertions, 71 deletions
diff --git a/h-source/Application/Views/Desktop/Project/index.php b/h-source/Application/Views/Desktop/Project/index.php
index 7bbad78..0ca0dad 100644
--- a/h-source/Application/Views/Desktop/Project/index.php
+++ b/h-source/Application/Views/Desktop/Project/index.php
@@ -20,12 +20,14 @@
// along with h-source. If not, see <http://www.gnu.org/licenses/>.
?>
- <div id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; h-project
- </div>
-
- <p>write in the file <b>Application/Views/Project/index.php</b> your project information</p>
-
- </div>
+<?php
+ if (file_exists(ROOT."/Template/".Params::$viewSubfolder."/Project/index_$lang.php"))
+ {
+ include(ROOT."/Template/".Params::$viewSubfolder."/Project/index_$lang.php");
+ }
+ else
+ {
+ include(ROOT."/Template/".Params::$viewSubfolder."/Project/index.php");
+ }
+?>
+
diff --git a/h-source/Application/Views/Desktop/Project/index_es.php b/h-source/Application/Views/Desktop/Project/index_es.php
deleted file mode 100644
index d46fa19..0000000
--- a/h-source/Application/Views/Desktop/Project/index_es.php
+++ /dev/null
@@ -1,31 +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 id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; h-project
- </div>
-
-
-
- </div>
diff --git a/h-source/Application/Views/Desktop/Project/index_it.php b/h-source/Application/Views/Desktop/Project/index_it.php
deleted file mode 100644
index d46fa19..0000000
--- a/h-source/Application/Views/Desktop/Project/index_it.php
+++ /dev/null
@@ -1,31 +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 id="left">
-
- <div class="position_tree_box">
- <a href="<?php echo $this->baseUrl."/home/index/$lang";?>">Home</a> &raquo; h-project
- </div>
-
-
-
- </div>