diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-27 12:49:05 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-27 12:49:05 +0200 |
commit | c07218b9c7b256e998f0a31c0226b3bd6d8011d7 (patch) | |
tree | b13c83d01bf4cb488a783a4b65cdfc9837bdc514 /trunk/views/default/widgets/event_calendar/edit.php | |
parent | 446a0679509f2206cbf26f4a795fe0468b715f64 (diff) | |
download | elgg-c07218b9c7b256e998f0a31c0226b3bd6d8011d7.tar.gz elgg-c07218b9c7b256e998f0a31c0226b3bd6d8011d7.tar.bz2 |
added main code
Diffstat (limited to 'trunk/views/default/widgets/event_calendar/edit.php')
-rw-r--r-- | trunk/views/default/widgets/event_calendar/edit.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/trunk/views/default/widgets/event_calendar/edit.php b/trunk/views/default/widgets/event_calendar/edit.php new file mode 100644 index 000000000..716920c8a --- /dev/null +++ b/trunk/views/default/widgets/event_calendar/edit.php @@ -0,0 +1,35 @@ +<?php + +/** + * Elgg event_calendar group widget + * + * @package event_calendar + * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2 + * @author Kevin Jardine <kevin@radagast.biz> + * @copyright Radagast Solutions 2008 + * @link http://radagast.biz/ + * + */ + +if (!$vars['entity']->num_display) { + $num_display = 5; +} else { + $num_display = $vars['entity']->num_display; +} +?> + +<p> + <?php echo elgg_echo("event_calendar:num_display"); ?>: + <select name="params[num_display]"> + <option value="1" <?php if($num_display == 1) echo "SELECTED"; ?>>1</option> + <option value="2" <?php if($num_display == 2) echo "SELECTED"; ?>>2</option> + <option value="3" <?php if($num_display == 3) echo "SELECTED"; ?>>3</option> + <option value="4" <?php if($num_display == 4) echo "SELECTED"; ?>>4</option> + <option value="5" <?php if($num_display == 5) echo "SELECTED"; ?>>5</option> + <option value="6" <?php if($num_display == 6) echo "SELECTED"; ?>>6</option> + <option value="7" <?php if($num_display == 7) echo "SELECTED"; ?>>7</option> + <option value="8" <?php if($num_display == 8) echo "SELECTED"; ?>>8</option> + <option value="9" <?php if($num_display == 9) echo "SELECTED"; ?>>9</option> + <option value="10" <?php if($num_display == 10) echo "SELECTED"; ?>>10</option> + </select> +</p> |