diff options
Diffstat (limited to 'views/default/widgets/latest_photos')
-rw-r--r-- | views/default/widgets/latest_photos/content.php | 18 | ||||
-rw-r--r-- | views/default/widgets/latest_photos/edit.php | 25 |
2 files changed, 0 insertions, 43 deletions
diff --git a/views/default/widgets/latest_photos/content.php b/views/default/widgets/latest_photos/content.php deleted file mode 100644 index 8a3bb4891..000000000 --- a/views/default/widgets/latest_photos/content.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/** - * Display the latest photos uploaded by an individual - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -echo elgg_list_entities(array( - 'type' => 'object', - 'subtype' => 'image', - 'limit' => $vars['entity']->num_display, - 'owner_guid' => elgg_get_page_owner_guid(), - 'full_view' => false, - 'list_type' => 'gallery', - 'list_type_toggle' => false, - 'gallery_class' => 'tidypics-gallery-widget', -)); diff --git a/views/default/widgets/latest_photos/edit.php b/views/default/widgets/latest_photos/edit.php deleted file mode 100644 index dd32e2b6d..000000000 --- a/views/default/widgets/latest_photos/edit.php +++ /dev/null @@ -1,25 +0,0 @@ -<?php -/** - * Widget settings for latest photos - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -// set default value -if (!isset($vars['entity']->num_display)) { - $vars['entity']->num_display = 6; -} - -$params = array( - 'name' => 'params[num_display]', - 'value' => $vars['entity']->num_display, - 'options' => array(3, 6, 9, 12), -); -$dropdown = elgg_view('input/dropdown', $params); - -?> -<div> - <?php echo elgg_echo('tidypics:widget:num_latest'); ?>: - <?php echo $dropdown; ?> -</div> |