From 4e0c1576475390faa2f1fb4c4dc2902a953f440e Mon Sep 17 00:00:00 2001
From: Cash Costello
Date: Wed, 25 Feb 2009 12:16:53 +0000
Subject: First commit
---
views/default/tidypics/css.php | 128 +++++++++++++++++++++++++
views/default/tidypics/forms/edit.php | 115 ++++++++++++++++++++++
views/default/tidypics/forms/edit_multi.php | 44 +++++++++
views/default/tidypics/forms/upload.php | 79 +++++++++++++++
views/default/tidypics/groupprofile_albums.php | 60 ++++++++++++
views/default/tidypics/icon.php | 41 ++++++++
views/default/tidypics/menu.php | 16 ++++
7 files changed, 483 insertions(+)
create mode 100644 views/default/tidypics/css.php
create mode 100644 views/default/tidypics/forms/edit.php
create mode 100644 views/default/tidypics/forms/edit_multi.php
create mode 100644 views/default/tidypics/forms/upload.php
create mode 100644 views/default/tidypics/groupprofile_albums.php
create mode 100644 views/default/tidypics/icon.php
create mode 100644 views/default/tidypics/menu.php
(limited to 'views/default/tidypics')
diff --git a/views/default/tidypics/css.php b/views/default/tidypics/css.php
new file mode 100644
index 000000000..f9f5b09e6
--- /dev/null
+++ b/views/default/tidypics/css.php
@@ -0,0 +1,128 @@
+
+ /* --- independent view for image/album SHARED --- */
+
+#tidypics_title{
+ font-size:1.2em;
+ font-weight:bold;
+}
+#tidypics_desc{
+ padding:0 20px;
+ font-style:italic;
+}
+#tidypics_info{
+ padding:20px;
+ line-height:1.5em;
+}
+
+#tidypics_controls{
+ text-align:center;
+ margin-bottom:10px;
+}
+
+#tidypics_controls a{
+ margin:10px;
+}
+
+ /* independent album view only */
+
+.album_images{
+ float:left;
+ width:160px;
+ height:160px;
+ margin:4px;
+ padding:5px;
+ border:1px solid #ccc;
+ text-align:center;
+}
+
+ /* independent image view only */
+
+#image_full{
+ text-align:center;
+ margin:10px;
+}
+#image_full img{
+ padding:5px;
+ border:1px solid #ccc;
+ margin:7px 0;
+}
+
+/* --- albums gallery view --- */
+
+.album_cover{
+ padding:2px;
+ border:1px solid #ccc;
+ margin:8px 0;
+}
+
+
+/* ------ album WIDGET VIEW ------ */
+
+#album_widget_container{
+ text-align:center;
+}
+
+.album_widget_single_item{
+
+}
+.album_widget_title{
+
+}
+.album_widget_timestamp {
+ color:#666666;
+ margin:0;
+}
+.collapsable_box #album_widget_layout {
+ margin:0;
+}
+
+/* --------- image upload/edit forms ------------ */
+
+#image_upload_list li{
+ margin:3px 0;
+}
+.edit_image_container{
+ padding:5px;
+ margin:5px 0;
+ overflow:auto;
+}
+.edit_images{
+ float:right;
+ width:160px;
+ height:160px;
+ margin:4px;
+ padding:5px;
+ border:1px solid #ccc;
+ text-align:center;
+}
+.image_info{
+ float:left;
+ width:60%;
+}
+.image_info label{
+ font-size:1em;
+}
+.edit_image{
+ float:right;
+ border:1px solid #ccc;
+ width:153px;
+ height:153px;
+}
+
+/* --------- tidypics river items ------------ */
+
+.river_image_create {
+ background: url(mod/tidypics/graphics/icons/river_icon_image.gif) no-repeat left -1px;
+}
+.river_album_create {
+ background: url(mod/tidypics/graphics/icons/river_icon_album.gif) no-repeat left -1px;
+}
+
+.pagination {
+ clear:both !important;
+}
+
\ No newline at end of file
diff --git a/views/default/tidypics/forms/edit.php b/views/default/tidypics/forms/edit.php
new file mode 100644
index 000000000..efe4aa508
--- /dev/null
+++ b/views/default/tidypics/forms/edit.php
@@ -0,0 +1,115 @@
+title);
+ $action = "tidypics/editalbum";
+ $title = $vars['entity']->title;
+ $body = $vars['entity']->description;
+ $tags = $vars['entity']->tags;
+ $access_id = $vars['entity']->access_id;
+ $subtype = $vars['subtype'];
+
+ // if nothing is sent, create new, but only new albums are sent here
+ // new images are sent to upload.php
+ } else {
+ $title = elgg_echo("album:add");
+ $action = "tidypics/addalbum";
+ $tags = "";
+ $title = "";
+ $description = "";
+ }
+
+ // in case we have some cached details
+ if (isset($vars['albumtitle'])) {
+ $title = $vars['albumtitle'];
+ $body = $vars['albumbody'];
+ $tags = $vars['albumtags'];
+ }
+
+ $container_guid = get_input('container_guid');
+ if (!$container_guid) $container_guid = page_owner();
+
+?>
+
\ No newline at end of file
diff --git a/views/default/tidypics/forms/edit_multi.php b/views/default/tidypics/forms/edit_multi.php
new file mode 100644
index 000000000..252a660bd
--- /dev/null
+++ b/views/default/tidypics/forms/edit_multi.php
@@ -0,0 +1,44 @@
+
+
\ No newline at end of file
diff --git a/views/default/tidypics/forms/upload.php b/views/default/tidypics/forms/upload.php
new file mode 100644
index 000000000..35768f64c
--- /dev/null
+++ b/views/default/tidypics/forms/upload.php
@@ -0,0 +1,79 @@
+access_id;
+ if (get_plugin_setting('maxfilesize','tidypics')) {
+ if (((int) get_plugin_setting('maxfilesize','tidypics')) < 1 || ((int) get_plugin_setting('maxfilesize','tidypics')) > 1048576) {
+ $maxfilesize = 10240; //if file size is less than 1KB or greater than 1GB, default to 10MB
+ } else {
+ $maxfilesize = (int) get_plugin_setting('maxfilesize','tidypics');
+ }
+ } else {
+ $maxfilesize = 10240; //if the file size limit is not set, default to 10MB
+ }
+
+?>
+
+
+
+
+ 'access_id','value' => $access_id)); ?>
+
+
+ ';
+
+ ?>
+ " onclick="showhide('tidypics_loader');" />
+
+
+
\ No newline at end of file
diff --git a/views/default/tidypics/groupprofile_albums.php b/views/default/tidypics/groupprofile_albums.php
new file mode 100644
index 000000000..ea11006fa
--- /dev/null
+++ b/views/default/tidypics/groupprofile_albums.php
@@ -0,0 +1,60 @@
+num_display;
+ //if no number has been set, default to 5
+ if (!$number)
+ $number = 5;
+
+ $owner = page_owner_entity();
+ $owner_albums = get_entities("object", "album", page_owner(), "", $number, 0, false);
+
+ echo '";
+?>
\ No newline at end of file
diff --git a/views/default/tidypics/icon.php b/views/default/tidypics/icon.php
new file mode 100644
index 000000000..614fa3ad0
--- /dev/null
+++ b/views/default/tidypics/icon.php
@@ -0,0 +1,41 @@
+wwwroot}mod/tidypics/graphics/icons/album.gif\" border=\"0\" />";
+}
+else{
+
+ $mime = $vars['mimetype'];
+ if (isset($vars['thumbnail'])) {
+ $thumbnail = $vars['thumbnail'];
+ } else {
+ $thumbnail = false;
+ }
+
+ $size = $vars['size'];
+ if ($size != 'large') {
+ $size = 'small';
+ }
+
+ if ($thumbnail && strpos($mime, "image/")!==false)
+ echo " ";
+ else
+ {
+ if ($size == 'large')
+ echo " wwwroot}mod/tidypics/graphics/icons/general_lrg.gif\" border=\"0\" />";
+ else
+ echo " wwwroot}mod/tidypics/graphics/icons/general.gif\" border=\"0\" />";
+ }
+}
+?>
\ No newline at end of file
diff --git a/views/default/tidypics/menu.php b/views/default/tidypics/menu.php
new file mode 100644
index 000000000..4368993dd
--- /dev/null
+++ b/views/default/tidypics/menu.php
@@ -0,0 +1,16 @@
+
+
+
\ No newline at end of file
--
cgit v1.2.3