Skip to content

Commit

Permalink
removed smarty from setup_form.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Ancona Novelo committed Nov 9, 2011
1 parent f1eb8a4 commit 3aaf6a1
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 56 deletions.
4 changes: 2 additions & 2 deletions development/File Status
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
83 changes: 44 additions & 39 deletions 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');

46 changes: 46 additions & 0 deletions 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';
15 changes: 0 additions & 15 deletions themes/default/admin/setup/setup_form.tpl

This file was deleted.

0 comments on commit 3aaf6a1

Please sign in to comment.