aboutsummaryrefslogtreecommitdiff
path: root/views/default/photos/sidebar
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/photos/sidebar')
-rw-r--r--views/default/photos/sidebar/exif.php20
-rw-r--r--views/default/photos/sidebar/quota.php27
2 files changed, 0 insertions, 47 deletions
diff --git a/views/default/photos/sidebar/exif.php b/views/default/photos/sidebar/exif.php
deleted file mode 100644
index 1d4444b53..000000000
--- a/views/default/photos/sidebar/exif.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * EXIF sidebar module
- */
-
-$image = $vars['image'];
-
-elgg_load_library('tidypics:exif');
-
-$exif = tp_exif_formatted($image);
-if ($exif) {
- $title = "EXIF";
- $body = '<table class="elgg-table elgg-table-alt">';
- foreach ($exif as $key => $value) {
- $body .= "<tr><td>$key</td><td>$value</td></tr>";
- }
- $body .= '</table>';
-
- echo elgg_view_module('aside', $title, $body);
-}
diff --git a/views/default/photos/sidebar/quota.php b/views/default/photos/sidebar/quota.php
deleted file mode 100644
index 16b7885c4..000000000
--- a/views/default/photos/sidebar/quota.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * User quota
- */
-
-$user = elgg_get_logged_in_user_entity();
-
-
-$quota = elgg_get_plugin_setting('quota', 'tidypics');
-if ($quota) {
- $image_repo_size = (int)$user->image_repo_size;
- $image_repo_size = $image_repo_size / 1024 / 1024;
- $quote_percentage = round(100 * ($image_repo_size / $quota));
- // for small quotas, so one decimal place
- if ($quota < 10) {
- $image_repo_size = sprintf('%.1f', $image_repo_size);
- } else {
- $image_repo_size = round($image_repo_size);
- }
- if ($image_repo_size > $quota) {
- $image_repo_size = $quota;
- }
-
- $title = elgg_echo('tidypics:title:quota');
- $body = elgg_echo("tidypics:quota") . ' ' . $image_repo_size . '/' . $quota . " MB ({$quote_percentage}%)";
- echo elgg_view_module('aside', $title, $body);
-}