aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--views/default/input/checkboxes.php18
-rw-r--r--views/default/input/file.php20
-rw-r--r--views/default/input/gender.php13
-rw-r--r--views/default/input/longtext.php21
-rw-r--r--views/default/input/password.php21
-rw-r--r--views/default/input/pulldown.php23
-rw-r--r--views/default/input/radio.php18
-rw-r--r--views/default/input/tags.php18
-rw-r--r--views/default/input/text.php21
-rw-r--r--views/default/input/url.php21
10 files changed, 179 insertions, 15 deletions
diff --git a/views/default/input/checkboxes.php b/views/default/input/checkboxes.php
index 22af8d994..3addef0f6 100644
--- a/views/default/input/checkboxes.php
+++ b/views/default/input/checkboxes.php
@@ -1,5 +1,23 @@
<?php
+ /**
+ * Elgg checkbox input
+ * Displays a checkbox input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ * @uses $vars['options'] An array of strings representing the options for the checkbox field
+ *
+ */
+
foreach($vars['options'] as $option) {
if (!in_array($option,$vars['value'])) {
$selected = "";
diff --git a/views/default/input/file.php b/views/default/input/file.php
index 339cd0ed2..103159566 100644
--- a/views/default/input/file.php
+++ b/views/default/input/file.php
@@ -1,8 +1,24 @@
<?php
+ /**
+ * Elgg file input
+ * Displays a file input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ *
+ */
+
if (!empty($vars['value'])) {
- echo "A file has already been uploaded. To replace it, select it below:<br />";
+ echo elgg_echo('fileexists') . "<br />";
}
?>
-<input type="file" size="30" name="<?php echo $vars['internalname']; ?>" /> \ No newline at end of file
+<input type="file" size="30" <?php echo $vars['js']; ?>name="<?php echo $vars['internalname']; ?>" /> \ No newline at end of file
diff --git a/views/default/input/gender.php b/views/default/input/gender.php
deleted file mode 100644
index e54fb8e70..000000000
--- a/views/default/input/gender.php
+++ /dev/null
@@ -1,13 +0,0 @@
-<?php
-
- $options = array('Male' => "Male", 'Female' => "Female");
- foreach($options as $option => $label) {
- if ($option != $vars['value']) {
- $selected = "";
- } else {
- $selected = "checked = \"checked\"";
- }
- echo "<label><input type=\"radio\" {$vars['js']} name=\"{$vars['internalname']}\" value=\"".htmlentities($option)."\" {$selected} />{$label}</label><br />";
- }
-
-?> \ No newline at end of file
diff --git a/views/default/input/longtext.php b/views/default/input/longtext.php
index 5077a68d0..06c62c855 100644
--- a/views/default/input/longtext.php
+++ b/views/default/input/longtext.php
@@ -1 +1,22 @@
+<?php
+
+ /**
+ * Elgg long text input
+ * Displays a long text input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ *
+ */
+
+?>
+
<textarea class="input-textarea" name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>><?php echo $vars['value']; ?></textarea> \ No newline at end of file
diff --git a/views/default/input/password.php b/views/default/input/password.php
index 84ac9b161..efa0fc74b 100644
--- a/views/default/input/password.php
+++ b/views/default/input/password.php
@@ -1 +1,22 @@
+<?php
+
+ /**
+ * Elgg password input
+ * Displays a password input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ *
+ */
+
+?>
+
<input type="password" <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" value="<?php echo $vars['value']; ?>" /> \ No newline at end of file
diff --git a/views/default/input/pulldown.php b/views/default/input/pulldown.php
index 4dcffcc1d..a83534c41 100644
--- a/views/default/input/pulldown.php
+++ b/views/default/input/pulldown.php
@@ -1,3 +1,26 @@
+<?php
+
+ /**
+ * Elgg pulldown input
+ * Displays a pulldown input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ * @uses $vars['options'] An array of strings representing the options for the pulldown field
+ *
+ */
+
+?>
+
+
<select name="<?php echo $vars['internalname']; ?>" <?php echo $vars['js']; ?>>
<?php
diff --git a/views/default/input/radio.php b/views/default/input/radio.php
index 6c60fab54..8f20131b2 100644
--- a/views/default/input/radio.php
+++ b/views/default/input/radio.php
@@ -1,5 +1,23 @@
<?php
+ /**
+ * Elgg radio input
+ * Displays a radio input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ * @uses $vars['options'] An array of strings representing the options for the radio field
+ *
+ */
+
foreach($vars['options'] as $option => $label) {
if ($option != $vars['value']) {
$selected = "";
diff --git a/views/default/input/tags.php b/views/default/input/tags.php
index 057a6d56b..1b0f647fb 100644
--- a/views/default/input/tags.php
+++ b/views/default/input/tags.php
@@ -1,5 +1,23 @@
<?php
+ /**
+ * Elgg tag input
+ * Displays a tag input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ * @uses $vars['value'] An array of tags
+ *
+ */
+
$tags = "";
if (!empty($vars['value']) && is_array($vars['value'])) {
diff --git a/views/default/input/text.php b/views/default/input/text.php
index 2ee2ef03c..0da751942 100644
--- a/views/default/input/text.php
+++ b/views/default/input/text.php
@@ -1 +1,22 @@
+<?php
+
+ /**
+ * Elgg text input
+ * Displays a text input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ *
+ */
+
+?>
+
<input type="text" <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" value="<?php echo $vars['value']; ?>" class="input-text"/> \ No newline at end of file
diff --git a/views/default/input/url.php b/views/default/input/url.php
index d7830266e..2b7b7fd94 100644
--- a/views/default/input/url.php
+++ b/views/default/input/url.php
@@ -1 +1,22 @@
+<?php
+
+ /**
+ * Elgg URL input
+ * Displays a URL input field
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @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.org/
+ *
+ * @uses $vars['value'] The current value, if any
+ * @uses $vars['js'] Any Javascript to enter into the input tag
+ * @uses $vars['internalname'] The name of the input field
+ *
+ */
+
+?>
+
<input type="text" <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" value="<?php echo $vars['value']; ?>" class="input-url"/> \ No newline at end of file