aboutsummaryrefslogtreecommitdiff
path: root/views/default/html
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/html')
-rw-r--r--views/default/html/form.php11
-rw-r--r--views/default/html/input.php12
-rw-r--r--views/default/html/option.php1
-rw-r--r--views/default/html/tag.php3
-rw-r--r--views/default/html/textarea.php16
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