diff options
author | cash <cash.costello@gmail.com> | 2010-07-04 19:39:29 +0000 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2010-07-04 19:39:29 +0000 |
commit | 16da0ce0f606397012c65950b07262fbecb2fc84 (patch) | |
tree | 4d504a62f679c3b0d307e95ca8d7a91634215afa /views/default/widgets/feed_reader/edit.php | |
parent | 14025a5462c77d841801e00b2eda993bba62264d (diff) | |
download | elgg-16da0ce0f606397012c65950b07262fbecb2fc84.tar.gz elgg-16da0ce0f606397012c65950b07262fbecb2fc84.tar.bz2 |
brought the simplepie plugin up to Elgg coding standards
Diffstat (limited to 'views/default/widgets/feed_reader/edit.php')
-rw-r--r-- | views/default/widgets/feed_reader/edit.php | 119 |
1 files changed, 64 insertions, 55 deletions
diff --git a/views/default/widgets/feed_reader/edit.php b/views/default/widgets/feed_reader/edit.php index 5fd987701..77355bfa4 100644 --- a/views/default/widgets/feed_reader/edit.php +++ b/views/default/widgets/feed_reader/edit.php @@ -1,55 +1,64 @@ -<?php
- $num_items = $vars['entity']->num_items;
- if (!isset($num_items)) $num_items = 10;
-
- $excerpt = $vars['entity']->excerpt;
- if (!isset($excerpt)) $excerpt = 0;
-
- $post_date = $vars['entity']->post_date;
- if (!isset($post_date)) $post_date = 0;
-
-?>
-
- <p>
- <?php echo elgg_echo("simplepie:feed_url"); ?>
- <input type="text" onclick="this.select();" name="params[feed_url]" value="<?php echo htmlentities($vars['entity']->feed_url); ?>" />
- </p>
-
- <p>
-<?php echo elgg_echo('simplepie:num_items'); ?>
-
-<?php
- echo elgg_view('input/pulldown', array(
- 'internalname' => 'params[num_items]',
- 'options_values' => array( '3' => '3',
- '5' => '5',
- '8' => '8',
- '10' => '10',
- '12' => '12',
- '15' => '15',
- '20' => '20',
- ),
- 'value' => $num_items
- ));
-?>
- </p>
-
- <p>
-<?php
- echo elgg_view('input/hidden', array('internalname' => 'params[excerpt]', 'js' => 'id="params[excerpt]"', 'value' => $excerpt ));
- echo "<input class='input-checkboxes' type='checkbox' value='' name='excerptcheckbox' onclick=\"document.getElementById('params[excerpt]').value = 1 - document.getElementById('params[excerpt]').value;\" ";
- if ($excerpt) echo "checked='yes'";
- echo " />";
- echo ' ' . elgg_echo('simplepie:excerpt');
-?>
- </p>
-
- <p>
-<?php
- echo elgg_view('input/hidden', array('internalname' => 'params[post_date]', 'js' => 'id="params[post_date]"', 'value' => $post_date ));
- echo "<input class='input-checkboxes' type='checkbox' value='' name='post_datecheckbox' onclick=\"document.getElementById('params[post_date]').value = 1 - document.getElementById('params[post_date]').value;\" ";
- if ($post_date) echo "checked='yes'";
- echo " />";
- echo ' ' . elgg_echo('simplepie:post_date');
-?>
- </p>
+<?php + $num_items = $vars['entity']->num_items; + if (!isset($num_items)) { + $num_items = 10; + } + + $excerpt = $vars['entity']->excerpt; + if (!isset($excerpt)) { + $excerpt = 0; + } + + $post_date = $vars['entity']->post_date; + if (!isset($post_date)) { + $post_date = 0; + } +?> + +<p> + <?php echo elgg_echo("simplepie:feed_url"); ?> + <input type="text" onclick="this.select();" name="params[feed_url]" value="<?php echo htmlentities($vars['entity']->feed_url); ?>" /> +</p> + +<p> +<?php echo elgg_echo('simplepie:num_items'); ?> + +<?php + echo elgg_view('input/pulldown', array( + 'internalname' => 'params[num_items]', + 'options_values' => array( '3' => '3', + '5' => '5', + '8' => '8', + '10' => '10', + '12' => '12', + '15' => '15', + '20' => '20', + ), + 'value' => $num_items + )); +?> +</p> + +<p> +<?php +echo elgg_view('input/hidden', array('internalname' => 'params[excerpt]', 'js' => 'id="params[excerpt]"', 'value' => $excerpt )); +echo "<input class='input-checkboxes' type='checkbox' value='' name='excerptcheckbox' onclick=\"document.getElementById('params[excerpt]').value = 1 - document.getElementById('params[excerpt]').value;\" "; +if ($excerpt) { + echo "checked='yes'"; +} +echo " />"; +echo ' ' . elgg_echo('simplepie:excerpt'); +?> +</p> + +<p> +<?php +echo elgg_view('input/hidden', array('internalname' => 'params[post_date]', 'js' => 'id="params[post_date]"', 'value' => $post_date )); +echo "<input class='input-checkboxes' type='checkbox' value='' name='post_datecheckbox' onclick=\"document.getElementById('params[post_date]').value = 1 - document.getElementById('params[post_date]').value;\" "; +if ($post_date) { + echo "checked='yes'"; +} +echo " />"; +echo ' ' . elgg_echo('simplepie:post_date'); +?> +</p> |