diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 12:28:33 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-13 12:28:33 +0000 |
commit | 090f60fb6ace958748752e439548f1fa8673258f (patch) | |
tree | a39aa1cf7beeb1ae657feb00edd785fecae94fc4 /mod/pages/views/default/forms | |
parent | 55724ff6f6818f2c1b16d4bacd912ae2eb745fdb (diff) | |
download | elgg-090f60fb6ace958748752e439548f1fa8673258f.tar.gz elgg-090f60fb6ace958748752e439548f1fa8673258f.tar.bz2 |
Once again removing an accidentally committed plugin
git-svn-id: https://code.elgg.org/elgg/trunk@1896 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/views/default/forms')
-rw-r--r-- | mod/pages/views/default/forms/pages/edit.php | 66 | ||||
-rw-r--r-- | mod/pages/views/default/forms/pages/editwelcome.php | 57 |
2 files changed, 0 insertions, 123 deletions
diff --git a/mod/pages/views/default/forms/pages/edit.php b/mod/pages/views/default/forms/pages/edit.php deleted file mode 100644 index 8c9e5ccfc..000000000 --- a/mod/pages/views/default/forms/pages/edit.php +++ /dev/null @@ -1,66 +0,0 @@ -<?php - /** - * Elgg Pages - * - * @package ElggPages - * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 - * @author Curverider Ltd - * @copyright Curverider Ltd 2008 - * @link http://elgg.com/ - */ - - $parent_guid = get_input('parent_guid'); - $container_guid = get_input('container_guid'); - if (!$container_guid) $container_guid = page_owner(); -?> -<form action="<?php echo $vars['url']; ?>action/pages/edit" method="post"> - -<?php - - //var_export($vars['profile']); - if (is_array($vars['config']->pages) && sizeof($vars['config']->pages) > 0) - foreach($vars['config']->pages as $shortname => $valtype) { - - $disabled = ""; - - if (($vars['entity']) && ($shortname == 'title')) - { - $disabled = true; - } -?> - - <p> - <label> - <?php echo elgg_echo("pages:{$shortname}") ?><br /> - <?php echo elgg_view("input/{$valtype}",array( - 'internalname' => $shortname, - 'value' => $vars['entity']->$shortname, - 'disabled' => $disabled - )); ?> - </label> - </p> - -<?php - - } - -?> - <p> - <?php - if ($vars['entity']) - { - ?><input type="hidden" name="pages_guid" value="<?php echo $vars['entity']->getGUID(); ?>" /><?php - } - ?> - <?php - if ($container_guid) - { - ?><input type="hidden" name="container_guid" value="<?php echo $container_guid; ?>" /><?php - } - ?> - <input type="hidden" name="parent_guid" value="<?php if ($vars['entity']) echo $vars['entity']->parent_guid; else echo $parent_guid; ?>" /> - <input type="hidden" name="owner_guid" value="<?php if ($vars['entity']) echo $vars['entity']->owner_guid; else echo page_owner(); ?>" /> - <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" /> - </p> - -</form>
\ No newline at end of file diff --git a/mod/pages/views/default/forms/pages/editwelcome.php b/mod/pages/views/default/forms/pages/editwelcome.php deleted file mode 100644 index d8960bf9c..000000000 --- a/mod/pages/views/default/forms/pages/editwelcome.php +++ /dev/null @@ -1,57 +0,0 @@ -<?php
- /**
- * Elgg Pages Edit welcome page
- *
- * @package ElggPages
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- //set some variables
- if($vars['entity']){
- foreach($vars['entity'] as $welcome){
- $current_message = $welcome->description;
- $object_guid = $welcome->guid;
- $access_id = $welcome->access_id;
- }
- }else{
- $current_message = '';
- $object_guid = '';
- $access_id = 0;
- }
-
- $page_owner = $vars['owner']->guid;
-
-?>
-<form action="<?php echo $vars['url']; ?>action/pages/editwelcome" method="post">
-
- <p>
- <label>
- <?php echo elgg_view("input/longtext",array(
- 'internalname' => "pages_welcome",
- 'value' => $current_message,
- 'disabled' => $disabled
- )); ?>
- </label>
- </p>
- <p>
- <label>
- <?php echo elgg_echo('access'); ?><br />
- <?php echo elgg_view('input/access', array('internalname' => 'access_id','value' => $access_id)); ?>
- </label>
- </p>
- <input type="hidden" name="owner_guid" value="<?php echo $page_owner; ?>" />
-
- <?php
- //if it is editing, include the object guid
- if($object_guid != ''){
- ?>
- <input type="hidden" name="object_guid" value="<?php echo $object_guid; ?>" />
- <?php
- }
- ?>
-
- <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" />
-</form>
|