Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed smarty from setup_form.php

  • Loading branch information...
commit 3aaf6a14a99ac4f015420c50c8d2ddb767a3f2f3 1 parent f1eb8a4
Adrian Ancona Novelo authored
View
4 development/File Status
@@ -39,7 +39,7 @@ process.php
README
setup_configure.php DONE
setup_fields.php DONE
-setup_form.php
+setup_form.php DONE
subscribe.php
subscribers_groups.php
subscribers_import.php
@@ -343,7 +343,7 @@ admin_setup.php
form_embed.tpl
setup_configure.php DONE
setup_fields.php DONE
-setup_form.tpl
+setup_form.php DONE
./themes/default/admin/setup/ajax:
field_edit.php DONE
View
83 setup_form.php
@@ -1,39 +1,44 @@
-<?php
-/**
- * Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
- *
- * This file is part of poMMo (http://www.pommo.org)
- *
- * poMMo 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, or any later version.
- *
- * poMMo 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 program; see the file docs/LICENSE. If not, write to the
- * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/**********************************
- INITIALIZATION METHODS
- *********************************/
-
-
-require('bootstrap.php');
-
-Pommo::init();
-$logger = Pommo::$_logger;
-$dbo = Pommo::$_dbo;
-
-/**********************************
- SETUP TEMPLATE, PAGE
- *********************************/
-require_once(Pommo::$_baseDir.'classes/Pommo_Template.php');
-$smarty = new Pommo_Template();
-
-$smarty->display('admin/setup/setup_form.tpl');
-
+<?php
+/**
+ * Original Code Copyright (C) 2005, 2006, 2007, 2008 Brice Burgess <bhb@iceburg.net>
+ * released originally under GPLV2
+ *
+ * This file is part of poMMo.
+ *
+ * poMMo 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.
+ *
+ * poMMo 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 Pommo. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * This fork is from https://github.com/soonick/poMMo
+ * Please see docs/contribs for Contributors
+ *
+ */
+
+/**********************************
+ INITIALIZATION METHODS
+ *********************************/
+
+
+require 'bootstrap.php';
+
+Pommo::init();
+$logger = Pommo::$_logger;
+$dbo = Pommo::$_dbo;
+
+/**********************************
+ SETUP TEMPLATE, PAGE
+ *********************************/
+require_once Pommo::$_baseDir.'classes/Pommo_Template.php';
+$view = new Pommo_Template();
+
+$view->display('admin/setup/setup_form');
+
View
46 themes/default/admin/setup/setup_form.php
@@ -0,0 +1,46 @@
+<?php
+
+include $this->template_dir.'/inc/admin.header.php';
+
+?>
+
+<h2><?php echo _('Subscription Forms'); ?></h2>
+
+<div id="boxMenu">
+
+<div class="advanced">
+ <a href="<?php echo $this->url['base']; ?>subscribe.php">
+ <img src="<?php echo $this->url['theme']['shared']; ?>images/icons/form.png"
+ alt="form icon" class="navimage" />
+ <?php echo _('Default Subscription Form'); ?>
+ </a>
+ - <?php echo _('Preview the default subscription form. Its look and feel can
+ be adjusted through the theme template
+ ([theme]/user/subscribe.tpl).'); ?>
+</div>
+
+<div>
+ <a href="<?php echo $this->url['base']; ?>form_embed.php">
+ <img src="<?php echo $this->url['theme']['shared']; ?>images/icons/embed.png"
+ alt="embed icon" class="navimage" />
+ <?php echo _('Embedded Subscription From'); ?>
+ </a>
+ - <?php echo _('Preview subscription forms that you can embed into an area
+ of an existing webpage.'); ?>
+</div>
+
+<div>
+ <a href="<?php echo $this->url['base']; ?>form_generate.php">
+ <img src="<?php echo $this->url['theme']['shared']; ?>images/icons/plain.png"
+ alt="plain icon" class="navimage" />
+ <?php echo _('HTML Subscription Form'); ?>
+ </a>
+ - <?php echo _('Generate a plain HTML subscription form that you can
+ customize to fit your site.'); ?>
+</div>
+
+</div>
+
+<?php
+
+include $this->template_dir.'/inc/admin.footer.php';
View
15 themes/default/admin/setup/setup_form.tpl
@@ -1,15 +0,0 @@
-{include file="inc/admin.header.tpl"}
-
-<h2>{t}Subscription Forms{/t}</h2>
-
-<div id="boxMenu">
-
-<div class="advanced"><a href="{$url.base}subscribe.php"><img src="{$url.theme.shared}images/icons/form.png" alt="form icon" class="navimage" />{t}Default Subscription Form{/t}</a> - {t}Preview the default subscription form. Its look and feel can be adjusted through the theme template ([theme]/user/subscribe.tpl).{/t}</div>
-
-<div><a href="{$url.base}form_embed.php"><img src="{$url.theme.shared}images/icons/embed.png" alt="embed icon" class="navimage" />{t}Embedded Subscription From{/t}</a> - {t}Preview subscription forms that you can embed into an area of an existing webpage.{/t}</div>
-
-<div><a href="{$url.base}form_generate.php"><img src="{$url.theme.shared}images/icons/plain.png" alt="plain icon" class="navimage" />{t}HTML Subscription Form{/t}</a> - {t}Generate a plain HTML subscription form that you can customize to fit your site.{/t}</div>
-
-</div>
-
-{include file="inc/admin.footer.tpl"}
Please sign in to comment.
Something went wrong with that request. Please try again.