diff options
Diffstat (limited to 'views/default/forms/photos')
| -rw-r--r-- | views/default/forms/photos/admin/settings.php | 26 | ||||
| -rw-r--r-- | views/default/forms/photos/admin/settings/activity.php | 31 | ||||
| -rw-r--r-- | views/default/forms/photos/admin/settings/image_lib.php | 20 | ||||
| -rw-r--r-- | views/default/forms/photos/admin/settings/main.php | 48 | ||||
| -rw-r--r-- | views/default/forms/photos/admin/settings/thumbnails.php | 33 | ||||
| -rw-r--r-- | views/default/forms/photos/album/save.php | 48 | ||||
| -rw-r--r-- | views/default/forms/photos/album/sort.php | 28 | ||||
| -rw-r--r-- | views/default/forms/photos/basic_upload.php | 48 | ||||
| -rw-r--r-- | views/default/forms/photos/batch/edit.php | 33 | ||||
| -rw-r--r-- | views/default/forms/photos/batch/edit/image.php | 35 | ||||
| -rw-r--r-- | views/default/forms/photos/image/save.php | 48 | ||||
| -rw-r--r-- | views/default/forms/photos/image/tag.php | 33 |
12 files changed, 0 insertions, 431 deletions
diff --git a/views/default/forms/photos/admin/settings.php b/views/default/forms/photos/admin/settings.php deleted file mode 100644 index 403203f69..000000000 --- a/views/default/forms/photos/admin/settings.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php -/** - * Tidypics admin settings form body - * - * @todo remove original image, group only upload not delete - */ - -$plugin = elgg_get_plugin_from_id('tidypics'); - -$title = elgg_echo('tidypics:settings:main'); -$content = elgg_view('forms/photos/admin/settings/main', array('plugin' => $plugin)); -echo elgg_view_module('inline', $title, $content); - -$title = elgg_echo('tidypics:settings:heading:img_lib'); -$content = elgg_view('forms/photos/admin/settings/image_lib', array('plugin' => $plugin)); -echo elgg_view_module('inline', $title, $content); - -$title = elgg_echo('tidypics:settings:heading:river'); -$content = elgg_view('forms/photos/admin/settings/activity', array('plugin' => $plugin)); -echo elgg_view_module('inline', $title, $content); - -$title = elgg_echo('tidypics:settings:heading:sizes'); -$content = elgg_view('forms/photos/admin/settings/thumbnails', array('plugin' => $plugin)); -echo elgg_view_module('inline', $title, $content); - -echo elgg_view('input/submit', array('value' => elgg_echo("save"))); diff --git a/views/default/forms/photos/admin/settings/activity.php b/views/default/forms/photos/admin/settings/activity.php deleted file mode 100644 index d62901af6..000000000 --- a/views/default/forms/photos/admin/settings/activity.php +++ /dev/null @@ -1,31 +0,0 @@ -<?php -/** - * River integration - */ - -$plugin = $vars['plugin']; - -echo '<div>'; -echo elgg_echo('tidypics:settings:img_river_view') . ': '; -echo elgg_view('input/dropdown', array( - 'name' => 'params[img_river_view]', - 'options_values' => array( - 'all' => elgg_echo('tidypics:option:all'), - 'batch' => '1', - 'none' => elgg_echo('tidypics:option:none'), - ), - 'value' => $plugin->img_river_view, -)); -echo '</div>'; -echo '<div>'; -echo elgg_echo('tidypics:settings:album_river_view') . ': '; -echo elgg_view('input/dropdown', array( - 'name' => 'params[album_river_view]', - 'options_values' => array( - 'cover' => elgg_echo('tidypics:option:cover'), - 'set' => elgg_echo('tidypics:option:set'), - ), - 'value' => $plugin->album_river_view, -)); -echo '</div>'; - diff --git a/views/default/forms/photos/admin/settings/image_lib.php b/views/default/forms/photos/admin/settings/image_lib.php deleted file mode 100644 index 4e3f7f2a0..000000000 --- a/views/default/forms/photos/admin/settings/image_lib.php +++ /dev/null @@ -1,20 +0,0 @@ -<?php -/** - * Image library settings - */ - -$plugin = $vars['plugin']; - -echo'<div>'; -echo elgg_echo('tidypics:settings:image_lib') . ': '; -echo elgg_view('input/dropdown', array( - 'name' => 'params[image_lib]', - 'options_values' => tidypics_get_image_libraries(), - 'value' => $plugin->image_lib, -)); -echo '</div>'; -echo '<div>'; -echo elgg_echo('tidypics:settings:im_path') . ' '; -echo elgg_view("input/text", array('name' => 'params[im_path]', 'value' => $plugin->im_path)); -echo '</div>'; - diff --git a/views/default/forms/photos/admin/settings/main.php b/views/default/forms/photos/admin/settings/main.php deleted file mode 100644 index f7950a7ad..000000000 --- a/views/default/forms/photos/admin/settings/main.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/** - * Primary settings for Elgg - */ - -$plugin = $vars['plugin']; - -$checkboxes = array('tagging', 'view_count', 'exif', 'download_link'); -foreach ($checkboxes as $checkbox) { - echo '<div>'; - $checked = $plugin->$checkbox ? 'checked' : false; - echo elgg_view('input/checkbox', array( - 'name' => "params[$checkbox]", - 'value' => true, - 'checked' => (bool)$plugin->$checkbox, - )); - echo ' ' . elgg_echo("tidypics:settings:$checkbox"); - echo '</div>'; -} - -// max image size -echo '<div>'; -echo elgg_echo('tidypics:settings:maxfilesize'); -echo elgg_view('input/text', array( - 'name' => 'params[maxfilesize]', - 'value' => $plugin->maxfilesize, -)); -echo '</div>'; - -// Watermark Text -echo '<div>' . elgg_echo('tidypics:settings:watermark'); -echo elgg_view("input/text", array( - 'name' => 'params[watermark_text]', - 'value' => $plugin->watermark_text, -)); -echo '</div>'; - -// Quota Size -$quota = $plugin->quota; -if (!$quota) { - $quota = 0; -} -echo '<div>' . elgg_echo('tidypics:settings:quota'); -echo elgg_view('input/text', array( - 'name' => 'params[quota]', - 'value' => $quota, -)); -echo '</div>'; diff --git a/views/default/forms/photos/admin/settings/thumbnails.php b/views/default/forms/photos/admin/settings/thumbnails.php deleted file mode 100644 index ec7a6d1b2..000000000 --- a/views/default/forms/photos/admin/settings/thumbnails.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * Thumbnail sizes - */ - -$plugin = $vars['plugin']; - -echo '<span class="elgg-text-help">' . elgg_echo('tidypics:settings:sizes:instructs') . '</span>'; -$image_sizes = unserialize($plugin->image_sizes); -echo '<table>'; -$sizes = array('large', 'small', 'tiny'); -foreach ($sizes as $size) { - echo '<tr>'; - echo '<td class="pas">'; - echo elgg_echo("tidypics:settings:{$size}size"); - echo '</td><td class="pas">'; - echo 'width: '; - echo elgg_view('input/text', array( - 'name' => "{$size}_image_width", - 'value' => $image_sizes["{$size}_image_width"], - 'class' => 'tidypics-input-thin', - )); - echo '</td><td class="pas">'; - echo 'height: '; - echo elgg_view('input/text', array( - 'name' => "{$size}_image_height", - 'value' => $image_sizes["{$size}_image_height"], - 'class' => 'tidypics-input-thin', - )); - echo '</td>'; - echo '</tr>'; -} -echo '</table>'; diff --git a/views/default/forms/photos/album/save.php b/views/default/forms/photos/album/save.php deleted file mode 100644 index 8a1202c07..000000000 --- a/views/default/forms/photos/album/save.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/** - * Save album form body - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -$title = elgg_extract('title', $vars, ''); -$description = elgg_extract('description', $vars, ''); -$tags = elgg_extract('tags', $vars, ''); -$access_id = elgg_extract('access_id', $vars, get_default_access()); -$container_guid = elgg_extract('container_guid', $vars, elgg_get_page_owner_guid()); -$guid = elgg_extract('guid', $vars, 0); - -?> - -<div> - <label><?php echo elgg_echo('album:title'); ?></label> - <?php echo elgg_view('input/text', array('name' => 'title', 'value' => $title)); ?> -</div> -<div> - <label><?php echo elgg_echo('album:desc'); ?></label> - <?php echo elgg_view('input/longtext', array('name' => 'description', 'value' => $description)); ?> -</div> -<div> - <label><?php echo elgg_echo('tags'); ?></label> - <?php echo elgg_view('input/tags', array('name' => 'tags', 'value' => $tags)); ?> -</div> -<?php - -$categories = elgg_view('input/categories', $vars); -if ($categories) { - echo $categories; -} - -?> -<div> - <label><?php echo elgg_echo('access'); ?></label> - <?php echo elgg_view('input/access', array('name' => 'access_id', 'value' => $access_id)); ?> -</div> -<div class="elgg-foot"> -<?php -echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $guid)); -echo elgg_view('input/hidden', array('name' => 'container_guid', 'value' => $container_guid)); -echo elgg_view('input/submit', array('value' => elgg_echo('save'))); -?> -</div> diff --git a/views/default/forms/photos/album/sort.php b/views/default/forms/photos/album/sort.php deleted file mode 100644 index 49bd016aa..000000000 --- a/views/default/forms/photos/album/sort.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php -/** - * Album sorting view - */ - -$album = $vars['album']; -$image_guids = $album->getImageList(); - -echo '<div>'; -echo elgg_echo('tidypics:sort:instruct'); -echo '</div>'; - -echo '<div>'; -echo elgg_view('input/hidden', array('name' => 'guids')); -echo elgg_view('input/hidden', array('name' => 'album_guid', 'value' => $album->guid)); -echo elgg_view('input/submit', array('value' => elgg_echo('save'))); -echo '</div>'; - -echo '<div class="elgg-foot">'; -echo '<ul id="tidypics-sort" class="elgg-gallery">'; -foreach ($image_guids as $image_guid) { - $image = get_entity($image_guid); - $img = elgg_view('output/img', array( - 'src' => $image->getIconURL(), - )); - echo "<li class=\"mam\" id=\"$image_guid\">$img</li>"; -} -echo '</ul>'; diff --git a/views/default/forms/photos/basic_upload.php b/views/default/forms/photos/basic_upload.php deleted file mode 100644 index ba849d1b4..000000000 --- a/views/default/forms/photos/basic_upload.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/** - * Basic uploader form - * - * This only handled uploading the images. Editing the titles and descriptions - * are handled with the edit forms. - * - * @uses $vars['entity'] - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -$album = $vars['entity']; -$access_id = $album->access_id; - -$maxfilesize = (float) elgg_get_plugin_setting('maxfilesize', 'tidypics'); - -$instructions = elgg_echo("tidypics:uploader:upload"); -$max = elgg_echo('tidypics:uploader:basic', array($maxfilesize)); - -$list = ''; -for ($x = 0; $x < 10; $x++) { - $list .= '<li>' . elgg_view('input/file', array('name' => 'images[]')) . '</li>'; -} - -$foot = elgg_view('input/hidden', array('name' => 'guid', 'value' => $album->getGUID())); -$foot .= elgg_view('input/submit', array('value' => elgg_echo("save"))); - -$form_body = <<<HTML -<div> - $max -</div> -<div> - <ol> - $list - </ol> -</div> -<div class='elgg-foot'> - $foot -</div> -HTML; - -echo elgg_view('input/form', array( - 'body' => $form_body, - 'action' => 'action/photos/image/upload', - 'enctype' => 'multipart/form-data', -)); diff --git a/views/default/forms/photos/batch/edit.php b/views/default/forms/photos/batch/edit.php deleted file mode 100644 index d843d8349..000000000 --- a/views/default/forms/photos/batch/edit.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * Edit properties on a batch of images - * - * @uses $vars['batch'] ElggObject - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -$batch = $vars['batch']; -$album = $batch->getContainerEntity(); - -$images = elgg_get_entities_from_relationship(array( - 'type' => 'object', - 'subtype' => 'image', - 'relationship' => 'belongs_to_batch', - 'relationship_guid' => $batch->getGUID(), - 'inverse_relationship' => true, - 'limit' => 0 -)); - -echo '<ul>'; -foreach ($images as $image) { - echo '<li>'; - echo elgg_view('forms/photos/batch/edit/image', array('entity' => $image)); - echo '</li>'; -} -echo '</ul>'; - -echo '<div class="elgg-foot">'; -echo elgg_view('input/submit', array('value' => elgg_echo('save'))); -echo '</div>'; diff --git a/views/default/forms/photos/batch/edit/image.php b/views/default/forms/photos/batch/edit/image.php deleted file mode 100644 index eed804e90..000000000 --- a/views/default/forms/photos/batch/edit/image.php +++ /dev/null @@ -1,35 +0,0 @@ -<?php -/** - * Form component for editing a single image - * - * @uses $vars['entity'] - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -$image = $vars['entity']; - -echo '<div class="elgg-image-block">'; - -echo '<div class="elgg-image">'; -echo elgg_view_entity_icon($image, 'small', array('href' => false)); -echo '</div>'; - -echo '<div class="elgg-body"><fieldset class="mlm">'; -echo '<div><label>' . elgg_echo('album:title') . '</label>'; -echo elgg_view('input/text', array('name' => 'title[]', 'value' => $title,)); -echo '</div>'; - -echo '<div><label>' . elgg_echo('caption') . '</label>'; -echo elgg_view('input/longtext', array('name' => 'caption[]')); -echo '</div>'; - -echo '<div><label>' . elgg_echo("tags") . '</label>'; -echo elgg_view('input/tags', array('name' => 'tags[]')); -echo '</div>'; - -echo elgg_view('input/hidden', array('name' => 'guid[]', 'value' => $image->getGUID())); -echo '<fieldset></div>'; - -echo '</div>'; diff --git a/views/default/forms/photos/image/save.php b/views/default/forms/photos/image/save.php deleted file mode 100644 index 47a08640a..000000000 --- a/views/default/forms/photos/image/save.php +++ /dev/null @@ -1,48 +0,0 @@ -<?php -/** - * Save image form body - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -$title = elgg_extract('title', $vars, ''); -$description = elgg_extract('description', $vars, ''); -$tags = elgg_extract('tags', $vars, ''); -$access_id = elgg_extract('access_id', $vars, get_default_access()); -$container_guid = elgg_extract('container_guid', $vars, elgg_get_page_owner_guid()); -$guid = elgg_extract('guid', $vars, 0); - -?> - -<div> - <label><?php echo elgg_echo('album:title'); ?></label> - <?php echo elgg_view('input/text', array('name' => 'title', 'value' => $title)); ?> -</div> -<div> - <label><?php echo elgg_echo('album:desc'); ?></label> - <?php echo elgg_view('input/longtext', array('name' => 'description', 'value' => $description)); ?> -</div> -<div> - <label><?php echo elgg_echo('tags'); ?></label> - <?php echo elgg_view('input/tags', array('name' => 'tags', 'value' => $tags)); ?> -</div> -<?php - -$categories = elgg_view('input/categories', $vars); -if ($categories) { - echo $categories; -} - -?> -<div> - <label><?php echo elgg_echo('access'); ?></label> - <?php echo elgg_view('input/access', array('name' => 'access_id', 'value' => $access_id)); ?> -</div> -<div class="elgg-foot"> -<?php -echo elgg_view('input/hidden', array('name' => 'guid', 'value' => $guid)); -echo elgg_view('input/hidden', array('name' => 'container_guid', 'value' => $container_guid)); -echo elgg_view('input/submit', array('value' => elgg_echo('save'))); -?> -</div> diff --git a/views/default/forms/photos/image/tag.php b/views/default/forms/photos/image/tag.php deleted file mode 100644 index 31869be9e..000000000 --- a/views/default/forms/photos/image/tag.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * Tag select form body - * - * @uses $vars['entity'] - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ - -echo '<div class="elgg-col elgg-col-4of5">'; - -echo elgg_view('input/autocomplete', array( - 'name' => 'username', - 'match_on' => 'friends', -)); - -echo elgg_view('input/hidden', array( - 'name' => 'guid', - 'value' => $vars['entity']->getGUID(), -)); - -echo elgg_view('input/hidden', array( - 'name' => 'coordinates', -)); - -echo '</div>'; - -echo '<div class="elgg-col elgg-col-1of5 center">'; -echo elgg_view('input/submit', array( - 'value' => elgg_echo('tidypics:actiontag'), -)); -echo '</div>'; |
