diff options
Diffstat (limited to 'views/default/admin/settings/photos/thumbnail.php')
-rw-r--r-- | views/default/admin/settings/photos/thumbnail.php | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/views/default/admin/settings/photos/thumbnail.php b/views/default/admin/settings/photos/thumbnail.php deleted file mode 100644 index 5f9769e91..000000000 --- a/views/default/admin/settings/photos/thumbnail.php +++ /dev/null @@ -1,54 +0,0 @@ -<?php -/** - * Tidypics thumbnail creation tool - */ - -$title = elgg_echo('tidypics:settings:thumbnail'); -$body = '<p>' . elgg_echo('tidypics:thumbnail_tool_blurb') . '</p>'; -$im_id = elgg_echo('tidypics:settings:im_id'); -$input = elgg_view('input/text', array( - 'name' => 'image_id' -)); -$submit = elgg_view('input/submit', array( - 'value' => elgg_echo('submit'), - 'id' => 'elgg-tidypics-im-test' -)); - -$body .=<<<HTML - <p> - <label>$im_id $input</label> - </p> - <p> - $submit - <div id="elgg-tidypics-im-results"></div> - </p> -HTML; - -echo elgg_view_module('inline', $title, $body); - -?> - -<script type="text/javascript"> - $(function() { - $('#elgg-tidypics-im-test').click(function() { - var image_id = $('input[name=image_id]').val(); - $("#elgg-tidypics-im-results").html('<div class="elgg-ajax-loader"></div>'); - elgg.action('photos/admin/create_thumbnails', { - format: 'JSON', - data: {guid: image_id}, - cache: false, - success: function(result) { - // error - if (result.status < 0) { - var html = ''; - } else { - var html = '<img class="elgg-photo tidypics-photo" src="' - + result.output.thumbnail_src + '" alt="' + result.output.title - + '" />'; - } - $("#elgg-tidypics-im-results").html(html); - } - }); - }); - }); -</script>
\ No newline at end of file |