From: Florent Bruneau Date: Sat, 25 Aug 2007 16:51:27 +0000 (+0200) Subject: Add minimalist page layout and processing object X-Git-Tag: xorg/0.9.15~174^2~30 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=f118f685635cab5da61de708f5fdbe3d41301b37;p=platal.git Add minimalist page layout and processing object --- diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php new file mode 100644 index 0000000..a4b2d3c --- /dev/null +++ b/modules/profile/page.inc.php @@ -0,0 +1,48 @@ +wizard =& $wiz; + } + + public function template() + { + return 'profile/general.tpl'; + } + + public function prepare(PlatalPage &$page) + { + } + + public function process() + { + return PlWizard::CURRENT_PAGE; + } +} + + +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +?> diff --git a/templates/core/plwizard.tpl b/templates/core/plwizard.tpl new file mode 100644 index 0000000..808e7c7 --- /dev/null +++ b/templates/core/plwizard.tpl @@ -0,0 +1,40 @@ +{**************************************************************************} +{* *} +{* Copyright (C) 2003-2007 Polytechnique.org *} +{* http://opensource.polytechnique.org/ *} +{* *} +{* This program 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 2 of the License, or *} +{* (at your option) any later version. *} +{* *} +{* This program 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 this program; if not, write to the Free Software *} +{* Foundation, Inc., *} +{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} +{* *} +{**************************************************************************} + +
+
+ {foreach from=$pages item=title key=id} +
+ {if $stateless || $id gt $current}{/if} + {$title} + {if $stateless || $id gt $current}{/if} +
+ {/foreach} +
+
+
+ {include file=$wiz_page} +
+
+ +{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}