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 | 39 | ||||
-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 | 63 | ||||
-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 |
11 files changed, 0 insertions, 404 deletions
diff --git a/views/default/forms/photos/admin/settings.php b/views/default/forms/photos/admin/settings.php deleted file mode 100644 index e0b8a9880..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('lightpics'); - -$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 a35c9ab59..000000000 --- a/views/default/forms/photos/admin/settings/main.php +++ /dev/null @@ -1,39 +0,0 @@ -<?php -/** - * Primary settings for Elgg - */ - -$plugin = $vars['plugin']; - -$checkboxes = array('view_count', 'exif', 'download_link'); -foreach ($checkboxes as $checkbox) { - echo '<div>'; - 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>'; - -// 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 9e71cf59e..000000000 --- a/views/default/forms/photos/basic_upload.php +++ /dev/null @@ -1,63 +0,0 @@ -<?php -$album = $vars['entity']; -$help = elgg_echo('tidypics:uploader:help'); - -$input = elgg_view('input/file', array( - 'name' => 'images[]', - 'multiple' => 'multiple', - 'class' => 'hidden-js', -)); - -$button = elgg_view('output/url', array( - 'text' => elgg_echo('tidypics:uploader:upload') . $input, - 'class' => 'elgg-button elgg-button-action fileinput-button', -)); - -$reset = elgg_view('input/reset', array( - 'value' => elgg_echo('cancel'), - 'class' => 'hidden', -)); - -$foot = elgg_view('input/hidden', array('name' => 'guid', 'value' => $album->getGUID())); -$foot .= elgg_view('input/submit', array('value' => elgg_echo("save"))); - -echo <<<HTML -<div> - $max -</div> -<div class="fileinput-container"> - $button - $reset - <p class="elgg-text-help">$help</p> -</div> -<div class="mtm"><!-- The table listing the files available for upload/download --> - <table role="presentation" class="elgg-table-alt clearfloat mtm"> - <tbody class="files"></tbody> - </table> -</div> -<div class='elgg-foot'> - $foot -</div> -HTML; - -?> - -<noscript><style type="text/css">hidden-nojs {display: hidden}</style></noscript> - -<!-- The template to display files available for upload --> -<script id="template-upload" type="text/x-tmpl"> -{% for (var i=0, file; file=o.files[i]; i++) { %} - <tr class="template-upload fade"> - {% if (file.error) { %} - <td class="error"><span class="elgg-message elgg-state-error">{%=locale.fileupload.error%} {%=locale.fileupload.errors[file.error] || file.error%}</span></td> - {% } else { %} - <td class="preview"><span class="fade"></span></td> - {% } %} - <td class="name"><span>{%=file.name%}</span></td> - <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td> - - </tr> -{% } %} -</script> -<!-- The template to display files available for download --> -<script id="template-download" type="text/x-tmpl" /> 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> |