diff options
author | Evan Winslow <evan.b.winslow@gmail.com> | 2010-10-19 00:38:13 +0000 |
---|---|---|
committer | Evan Winslow <evan.b.winslow@gmail.com> | 2010-10-19 00:38:13 +0000 |
commit | 4e34bacad758404f7a713e31d2ff5864c0d91c30 (patch) | |
tree | 3dcca816eff365125fa3b725a08f687586c7d45b /views/default/html | |
parent | 6cf50446e4071095c0b18a76038fb96de5a10475 (diff) | |
download | elgg-4e34bacad758404f7a713e31d2ff5864c0d91c30.tar.gz elgg-4e34bacad758404f7a713e31d2ff5864c0d91c30.tar.bz2 |
Updated to new directory structure
Diffstat (limited to 'views/default/html')
-rw-r--r-- | views/default/html/form.php | 11 | ||||
-rw-r--r-- | views/default/html/input.php | 12 | ||||
-rw-r--r-- | views/default/html/option.php | 1 | ||||
-rw-r--r-- | views/default/html/tag.php | 3 | ||||
-rw-r--r-- | views/default/html/textarea.php | 16 |
5 files changed, 43 insertions, 0 deletions
diff --git a/views/default/html/form.php b/views/default/html/form.php new file mode 100644 index 000000000..b93c62051 --- /dev/null +++ b/views/default/html/form.php @@ -0,0 +1,11 @@ +<?php +$defaults = array( + 'method' => 'POST', + 'body' => '', +); + +$overrides = array( + 'tag' => 'form', +); + +echo elgg_view('html/tag', array_merge($defaults, $vars, $overrides));
\ No newline at end of file diff --git a/views/default/html/input.php b/views/default/html/input.php new file mode 100644 index 000000000..7350ae308 --- /dev/null +++ b/views/default/html/input.php @@ -0,0 +1,12 @@ +<?php +$defaults = array( + 'type' => 'text', +); + +$overrides = array( + 'tag' => 'input', +); + +$args = array_merge($defaults, $vars, $overrides); + +echo elgg_view('html/tag', $args);
\ No newline at end of file diff --git a/views/default/html/option.php b/views/default/html/option.php new file mode 100644 index 000000000..b3d9bbc7f --- /dev/null +++ b/views/default/html/option.php @@ -0,0 +1 @@ +<?php diff --git a/views/default/html/tag.php b/views/default/html/tag.php index c8a49dd61..b4875d953 100644 --- a/views/default/html/tag.php +++ b/views/default/html/tag.php @@ -12,17 +12,20 @@ foreach ($_SESSION as $key=>$value) { // backwards compatibility code if (isset($vars['internalname'])) { + //@todo put deprecated notice $vars['name'] = $vars['internalname']; unset($vars['internalname']); } if (isset($vars['internalid'])) { + //@todo put deprecated notice $vars['id'] = $vars['internalid']; unset($vars['internalid']); } $js = ''; if (isset($vars['js'])) { + //@todo put deprecated notice $js = $vars['js']; unset($vars['js']); } diff --git a/views/default/html/textarea.php b/views/default/html/textarea.php new file mode 100644 index 000000000..0c3813246 --- /dev/null +++ b/views/default/html/textarea.php @@ -0,0 +1,16 @@ +<?php +$defaults = array( + 'body' => '', + 'class' => 'input-textarea', +); + +$overrides = array( + 'tag' => 'textarea', +); + +if (isset($vars['value'])) { + $vars['body'] = $vars['value']; + unset($vars['value']); +} + +echo elgg_view('html/tag', array_merge($defaults, $vars, $overrides));
\ No newline at end of file |