diff options
Diffstat (limited to 'views/default/photos')
-rw-r--r-- | views/default/photos/css.php | 470 | ||||
-rw-r--r-- | views/default/photos/group_module.php | 45 | ||||
-rw-r--r-- | views/default/photos/sidebar.php | 18 | ||||
-rw-r--r-- | views/default/photos/sidebar/exif.php | 20 | ||||
-rw-r--r-- | views/default/photos/sidebar/quota.php | 27 |
5 files changed, 0 insertions, 580 deletions
diff --git a/views/default/photos/css.php b/views/default/photos/css.php deleted file mode 100644 index 9a2b1768f..000000000 --- a/views/default/photos/css.php +++ /dev/null @@ -1,470 +0,0 @@ -<?php -/** - * Tidypics CSS - * - * @author Cash Costello - * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2 - */ -?> - -/* *************************************** - TIDYPICS -*************************************** */ -.elgg-module-tidypics-album, -.elgg-module-tidypics-image { - width: 161px; - text-align: center; - margin: 5px 0; -} -.elgg-module-tidypics-image { - margin: 5px auto; - height: 80%; -} - -.tidypics-gallery-widget > li { - width: 100%; -} -.tidypics-photo-wrapper { - position: relative; -} - -.tidypics-heading { - color: #0054A7; -} -.tidypics-heading:hover { - color: #0054A7; - text-decoration: none; -} - -.tidypics-input-thin { - width: 120px; -} - -#tidypics-sort li { - width:153px; - height:153px; - cursor: move; -} - -.tidypics-river-list > li { - display: inline-block; -} - -.tidypics-photo-item + .tidypics-photo-item { - margin-left: 7px; -} - -.tidypics-gallery > li { - padding: 0 10px; -} - -.tidypics-album-nav { - margin: 3px 0; - text-align: center; - color: #aaa; -} - -.tidypics-album-nav > li { - padding: 0 3px; -} - -.tidypics-album-nav > li { - vertical-align: top; -} - -/* *************************************** - UPLOADER -*************************************** */ - -.fileinput-container { - text-align: center; -} -.fileinput-button { - cursor: pointer; -} -.fileinput-button input { - position: absolute; - top: 0; - right: 0; - margin: 0; - opacity: 0; - filter: alpha(opacity=0); - -} -.files .fade { - display: none; -} -/* Fix for IE 6: */ -*html .fileinput-button { - margin-right: -2px; -} -*html .fileinput-button .elgg-button { - line-height: 24px; -} -*html .fileupload-buttonbar .elgg-button { - margin-left: 3px; -} - -/* Fix for IE 7: */ -*+html .fileinput-button { - margin-right: 1px; -} -*+html .fileinput-button .elgg-button { - line-height: 24px; -} -*+html .fileupload-buttonbar .elgg-button { - margin-left: 3px; -} - -@media (max-width: 480px) { - .files .preview * { - width: 40px; - } - .files .name * { - width: 80px; - display: inline-block; - word-wrap: break-word; - } -} - -/* Fix for Webkit (Safari, Chrome) */ -@media screen and (-webkit-min-device-pixel-ratio:0) { - .fileinput-button { - margin-top: 2px; - } -} - -<?php -return true; -?> - -/* ---- tidypics object views ---- */ - -.tidypics_wrapper > table.entity_gallery { - border-spacing: 0; -} - -.tidypics_wrapper .entity_gallery td { - padding: 0; -} - -.tidypics_wrapper .entity_gallery_item, -.tidypics_wrapper .entity_gallery_item:hover { - background-color: transparent; - color: inherit; -} - -#tidypics_breadcrumbs { -margin:5px 0 15px 0; -font-size:80%; -} - -#tidypics_desc { -padding:0 20px; -font-style:italic; -} - -#tidypics_image_nav { -text-align:center; -} - -#tidypics_image_wrapper { -margin:10px 0 10px 0; -text-align:center; -} - -#tidypics_image { -border:1px solid #dedede; -padding:5px; -} - -#tidypics_image_nav ul li { -display:inline; -margin-right:15px; -} - -#tidypics_controls { -text-align:center; -margin-bottom:10px; -} - -#tidypics_controls a { -margin:10px; -} - -#tidypics_controls ul { -list-style:none; -margin:0px; -padding:8px; -} - -#tidypics_controls ul li { -padding:2px 10px 2px 22px; -margin:2px 0px; -display:inline; -} - -.tidypics_info { -padding:20px; -} - -#tidypics_exif { -padding-left:20px; -font-size:80%; -} - -.tidypics_album_images { -float:left; -width:153px; -height:153px; -margin:3px; -padding:4px; -border:1px solid #dedede; -text-align:center; -} - -.tidypics_album_cover { -padding:2px; -border:1px solid #dedede; -margin:5px 0; -} - -.tidypics_album_widget_single_item { -margin-bottom:8px; -} - -.tidypics_album_gallery_item { -float:left; -margin-bottom:20px; -padding: 4px; -text-align:center; -width: 160px; -} - -.tidypics_line_break { -width: 100%; -clear: both; -} - -.tidypics_gallery_title { -font-weight:bold; -} - -.tidypics_popup { -border:1px solid #3B5999; -width:200px; -position:absolute; -z-index:10000; -display:none; -background:#ffffff; -padding:10px; -font-size:12px; -text-align:left; -} - -/* ------ tidypics widget view ------ */ - -#tidypics_album_widget_container { -text-align:center; -} - -.tidypics_album_widget_timestamp { -color:#333333; -} - -.tidypics_widget_latest { -margin: 0 auto; -width: 208px; -} - -/* --------- image upload/edit forms ------------ */ - -#tidpics_image_upload_list li { -margin:3px 0; -} - -.tidypics_edit_image_container { -padding:5px; -margin:5px 0; -overflow:auto; -} - -.tidypics_edit_images { -float:right; -width:160px; -height:160px; -margin:4px; -padding:5px; -border:1px solid #dedede; -text-align:center; -} - -.tidypics_image_info { -float:left; -width:60%; -} - -.tidypics_image_info label { -font-size:1em; -} - -.tidypics_caption_input { - width:98%; - height:100px; -} - -/* ---- tidypics group css ----- */ - -#tidypics_group_profile { --webkit-border-radius: 8px; --moz-border-radius: 8px; -background:white none repeat scroll 0 0; -margin:0 0 20px; -padding:0 0 5px; -} - - -/* --------- tidypics river items ------------ */ - -.river_object_image_create { - background: url(<?php echo $vars['url']; ?>mod/lightpics/graphics/icons/river_icon_image.gif) no-repeat left -1px; -} -.river_object_album_create { - background: url(<?php echo $vars['url']; ?>mod/lightpics/graphics/icons/river_icon_album.gif) no-repeat left -1px; -} -.river_object_image_comment { - background: url(<?php echo $vars['url']; ?>_graphics/river_icons/river_icon_comment.gif) no-repeat left -1px; -} -.river_object_album_comment { - background: url(<?php echo $vars['url']; ?>_graphics/river_icons/river_icon_comment.gif) no-repeat left -1px; -} -.river_user_tag { - background: url(<?php echo $vars['url']; ?>mod/lightpics/graphics/icons/river_icon_tag.gif) no-repeat left -1px; -} - -/* ----------- tagging ---------------- */ -#tidypics_tag_instructions { -background:#BBDAF7; -border:1px solid #4690D6; -padding:10px; -height:25px; -min-width:360px; -display:none; -overflow:hidden; -position:absolute; -z-index:10000; --webkit-border-radius: 8px; --moz-border-radius: 8px; -} - -#tidypics_tag_instruct_text { -padding-top: 3px; -float: left; -} - -#tidypics_tag_instruct_button_div { -float: left; -margin-left: 15px; -} - -#tidypics_tag_instruct_button { -margin:0; -} - -#tidypics_tag_menu { -width:240px; -max-height:400px; -overflow:hidden; --webkit-border-radius: 8px; --moz-border-radius: 8px; -} - -.tidypics_popup_header { -width:100%; -margin-bottom:10px; -} - - -#tidypics_tagmenu_left { -width:175px; -float:left; -} - -#tidypics_tagmenu_right { -float:left; -} - -#tidypics_tagmenu_left .input-filter { -width:150px; -} - -#tidypics_tagmenu_right .submit_button { -margin-top:2px; -} - -#tidypics_delete_tag_menu { --webkit-border-radius: 8px; --moz-border-radius: 8px; -overflow:hidden; -} - -.tidypics_tag { -display:none; -background:url(<?php echo $vars['url']; ?>mod/lightpics/graphics/spacer.gif); -border:2px solid #ffffff; -overflow:hidden; -position:absolute; -z-index:0; -} - -.tidypics_tag_text { -display:none; -overflow:hidden; -position:absolute; -z-index:0; -text-align:center; -background:#BBDAF7; -border:1px solid #3B5999; --webkit-border-radius:3px; --moz-border-radius:3px; -padding:1px; -} - -#tidypics_phototags_list { -padding:0 20px 0 20px; -} - -#tidypics_phototags_list ul { -list-style:none; -margin:0px; -padding:8px; -} - -#tidypics_phototags_list ul li { -padding-right:10px; -margin:2px 0px; -display:inline; -} - -#tidypics_image_upload_list { -list-style: none; -} - -#tidypics_album_sort { -padding:0; -margin:0; -} - -#tidypics_album_sort li { -float:left; -margin:3px; -width:161px; -height:161px; -list-style:none; -} - -#tidypics_album_sort img { -border:1px solid #dedede; -padding:4px; -} - diff --git a/views/default/photos/group_module.php b/views/default/photos/group_module.php deleted file mode 100644 index de7a451c4..000000000 --- a/views/default/photos/group_module.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php -/** - * Group blog module - */ - -$group = $vars['entity']; - -if ($group->photos_enable == "no") { - return true; -} - -$all_link = elgg_view('output/url', array( - 'href' => "photos/group/$group->guid/all", - 'text' => elgg_echo('link:view:all'), - 'is_trusted' => true, -)); - -elgg_push_context('widgets'); -$options = array( - 'type' => 'object', - 'subtype' => 'album', - 'container_guid' => elgg_get_page_owner_guid(), - 'limit' => 6, - 'full_view' => false, - 'pagination' => false, -); -$content = elgg_list_entities($options); -elgg_pop_context(); - -if (!$content) { - $content = '<p>' . elgg_echo('tidypics:none') . '</p>'; -} - -$new_link = elgg_view('output/url', array( - 'href' => "photos/add/$group->guid", - 'text' => elgg_echo('photos:add'), - 'is_trusted' => true, -)); - -echo elgg_view('groups/profile/module', array( - 'title' => elgg_echo('photos:group'), - 'content' => $content, - 'all_link' => $all_link, - 'add_link' => $new_link, -)); diff --git a/views/default/photos/sidebar.php b/views/default/photos/sidebar.php deleted file mode 100644 index fd5202691..000000000 --- a/views/default/photos/sidebar.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/** - * Sidebar view - */ - -$page = elgg_extract('page', $vars); -$image = elgg_extract('image', $vars); -if ($image && $page == 'view') { - if (elgg_get_plugin_setting('exif', 'tidypics')) { - echo elgg_view('photos/sidebar/exif', $vars); - } -} - -if ($page == 'upload') { - if (elgg_get_plugin_setting('quota', 'tidypics')) { - echo elgg_view('photos/sidebar/quota', $vars); - } -}
\ No newline at end of file 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); -} |