diff --git a/modules/batchtag/controllers/batchtag.php b/modules/batchtag/controllers/batchtag.php index db4b081f..9b24b657 100644 --- a/modules/batchtag/controllers/batchtag.php +++ b/modules/batchtag/controllers/batchtag.php @@ -39,15 +39,13 @@ class BatchTag_Controller extends Controller { } else { // Generate an array of all non-album items in the current album // and any sub albums. - $children = ORM::factory("item", $input->post("item_id")) - ->where("type", "!=", "album") - ->descendants(); + $item = ORM::factory("item", $input->post("item_id")); + $children = $item->descendants(); } - // Loop through each item in the album and make sure the user has // access to view and edit it. foreach ($children as $child) { - if (access::can("view", $child) && access::can("edit", $child)) { + if (access::can("view", $child) && access::can("edit", $child) && !$child->is_album()) { // Assuming the user can view/edit the current item, loop // through each tag that was submitted and apply it to diff --git a/modules/batchtag/helpers/batchtag_event.php b/modules/batchtag/helpers/batchtag_event.php new file mode 100644 index 00000000..511eff73 --- /dev/null +++ b/modules/batchtag/helpers/batchtag_event.php @@ -0,0 +1,34 @@ +deactivate)) { + site_status::warning( + t("The BatchTag module requires the Tags module. " . + "Activate the Tags module now", + array("url" => url::site("admin/modules"))), + "batchtag_needs_tag"); + } else { + site_status::clear("batchtag_needs_tag"); + } + } +} diff --git a/modules/batchtag/helpers/batchtag_installer.php b/modules/batchtag/helpers/batchtag_installer.php new file mode 100644 index 00000000..6bb17a70 --- /dev/null +++ b/modules/batchtag/helpers/batchtag_installer.php @@ -0,0 +1,34 @@ +where("type", "=", "album") + ->where("id", "!=", "1") + ->viewable() + ->find_all(); + + // Loop through each album and output the necessary information. + foreach ($albums as $album) { + $album_contents = ORM::factory("item") + ->where("parent_id", "=", $album->id) + ->where("type", "=", "photo") + ->viewable() + ->find_all(); + + print ($album->level-2) . "\t" . $album->id . "\t" . $album->name . "\t" . count($album_contents) . "\n"; + } + + } else if ($_GET['a'] == "photos") { + // Generate an array of photo's in the specified album. + $photos = ORM::factory("item") + ->where("type", "=", "photo") + ->where("parent_id", "=", $_GET['id']) + ->viewable() + ->find_all(); + + // Loop through each photo, generate a list of tags (if available) and then output the necessary information. + foreach ($photos as $photo) { + $photo_keywords = ""; + if (module::is_active("tag")) { + $photo_tags = ORM::factory("tag") + ->join("items_tags", "tags.id", "items_tags.tag_id") + ->where("items_tags.item_id", "=", $photo->id) + ->find_all(); + foreach ($photo_tags as $tag) { + $photo_keywords = $photo_keywords . $tag->name . ", "; + } + // Cut off the ", " from the end of the string. + if ($photo_keywords != "") { + $photo_keywords = substr($photo_keywords, 0, -2); + } + } + print $photo->id . "\t" . $photo->title . "\t" . stristr($photo->resize_url(false),"/var/") . "\t" . stristr($photo->thumb_url(false), "/var/") . "\t\t" . $photo->description . "\t" . $photo_keywords . "\n"; + } + } + } +} \ No newline at end of file diff --git a/modules/export_facebook/module.info b/modules/export_facebook/module.info new file mode 100644 index 00000000..1f65154a --- /dev/null +++ b/modules/export_facebook/module.info @@ -0,0 +1,3 @@ +name = "export_facebook" +description = "Export Photos from Gallery 3 to Facebook." +version = 1 diff --git a/modules/gwtorganise/.classpath b/modules/gwtorganise/.classpath index a240a4e4..f3207544 100644 --- a/modules/gwtorganise/.classpath +++ b/modules/gwtorganise/.classpath @@ -4,8 +4,9 @@ - - + + + diff --git a/modules/gwtorganise/.settings/com.google.appengine.eclipse.core.prefs b/modules/gwtorganise/.settings/com.google.appengine.eclipse.core.prefs index 1a43c478..2d415391 100644 --- a/modules/gwtorganise/.settings/com.google.appengine.eclipse.core.prefs +++ b/modules/gwtorganise/.settings/com.google.appengine.eclipse.core.prefs @@ -1,3 +1,3 @@ -#Sun Aug 30 20:30:24 NZST 2009 +#Tue Dec 22 13:14:57 NZDT 2009 eclipse.preferences.version=1 -filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.2.2.jar|datanucleus-appengine-1.0.2.final.jar|datanucleus-core-1.1.4-gae.jar|datanucleus-jpa-1.1.4.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-ea.jar +filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.2.5.jar|appengine-api-labs-1.2.5.jar|datanucleus-appengine-1.0.3.jar|datanucleus-core-1.1.5.jar|datanucleus-jpa-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar diff --git a/modules/gwtorganise/.settings/com.google.gdt.eclipse.core.prefs b/modules/gwtorganise/.settings/com.google.gdt.eclipse.core.prefs new file mode 100644 index 00000000..62909a5c --- /dev/null +++ b/modules/gwtorganise/.settings/com.google.gdt.eclipse.core.prefs @@ -0,0 +1,3 @@ +#Thu Dec 31 12:58:02 NZDT 2009 +eclipse.preferences.version=1 +jarsExcludedFromWebInfLib= diff --git a/modules/gwtorganise/.settings/com.google.gwt.eclipse.core.prefs b/modules/gwtorganise/.settings/com.google.gwt.eclipse.core.prefs index 3e2783ad..661aaef1 100644 --- a/modules/gwtorganise/.settings/com.google.gwt.eclipse.core.prefs +++ b/modules/gwtorganise/.settings/com.google.gwt.eclipse.core.prefs @@ -1,4 +1,5 @@ -#Thu Sep 24 11:47:04 NZST 2009 +#Tue Jan 26 16:51:26 NZDT 2010 eclipse.preferences.version=1 +entryPointModules= filesCopiedToWebInfLib=gwt-servlet.jar gwtCompileSettings=PGd3dC1jb21waWxlLXNldHRpbmdzPjxsb2ctbGV2ZWw+SU5GTzwvbG9nLWxldmVsPjxvdXRwdXQtc3R5bGU+T0JGVVNDQVRFRDwvb3V0cHV0LXN0eWxlPjxleHRyYS1hcmdzPjwhW0NEQVRBW11dPjwvZXh0cmEtYXJncz48dm0tYXJncz48IVtDREFUQVstWG14NTEybV1dPjwvdm0tYXJncz48L2d3dC1jb21waWxlLXNldHRpbmdzPg\=\= diff --git a/modules/gwtorganise/controllers/admin_upload_configure.php b/modules/gwtorganise/controllers/admin_upload_configure.php new file mode 100644 index 00000000..27266194 --- /dev/null +++ b/modules/gwtorganise/controllers/admin_upload_configure.php @@ -0,0 +1,45 @@ +validate()) { + + upload_configuration::extractForm($form); + message::success(t("GWTOrganise Module Configured!")); + } + } + else + { + upload_configuration::populateForm($form); + } + + print $form; + } +} diff --git a/modules/gwtorganise/controllers/json_album.php b/modules/gwtorganise/controllers/json_album.php index a4f7b483..d07b7aad 100644 --- a/modules/gwtorganise/controllers/json_album.php +++ b/modules/gwtorganise/controllers/json_album.php @@ -53,7 +53,6 @@ class Json_Album_Controller extends Controller { } function albums($item_id) { - print $this->child_elements($item_id, array(array("type", "=", "album"))); } @@ -128,7 +127,6 @@ class Json_Album_Controller extends Controller { ->where("weight", ">=", $target_weight) ->where("parent_id", "=", $album->id) ->execute(); - // Insert source items into the hole foreach ($source_ids as $source_id) { db::build() @@ -253,7 +251,7 @@ class Json_Album_Controller extends Controller { } if ($degrees) { - graphics::rotate($item->file_path(), $item->file_path(), array("degrees" => $degrees)); + gallery_graphics::rotate($item->file_path(), $item->file_path(), array("degrees" => $degrees)); list($item->width, $item->height) = getimagesize($item->file_path()); $item->resize_dirty= 1; @@ -274,5 +272,18 @@ class Json_Album_Controller extends Controller { print json_encode(self::child_json_encode($item)); } + public function resize_config(){ + if (upload_configuration::isResize()) + { + print json_encode(array( + "resize" => true, + "max_width" => upload_configuration::getMaxWidth(), + "max_height" => upload_configuration::getMaxHeight())); + } + else + { + print json_encode(array("resize" => false)); + } + } } \ No newline at end of file diff --git a/modules/gwtorganise/helpers/gwtorganise_installer.php b/modules/gwtorganise/helpers/gwtorganise_installer.php index f06e911d..ca3f6842 100644 --- a/modules/gwtorganise/helpers/gwtorganise_installer.php +++ b/modules/gwtorganise/helpers/gwtorganise_installer.php @@ -22,6 +22,9 @@ class gwtorganise_installer { static function install(){ module::set_version("gwtorganise", 1); + upload_configuration::setResize(false); + upload_configuration::setMaxWidth(500); + upload_configuration::setMaxHeight(400); } static function activate() { } diff --git a/modules/gwtorganise/helpers/upload_configuration.php b/modules/gwtorganise/helpers/upload_configuration.php new file mode 100644 index 00000000..41c20770 --- /dev/null +++ b/modules/gwtorganise/helpers/upload_configuration.php @@ -0,0 +1,70 @@ + "gConfigureForm")); + $group = $form->group("configure")->label(t("Configure Upload Options")); + $group->checkbox("resize")->label(t("Resize before upload"))->id("gResize"); + $group->input("max_width")->label(t("Max Width"))->id("gMaxWidth"); + $group->input("max_height")->label(t("Max Height"))->id("gMax Height"); + $group->submit("")->value(t("Save")); + return $form; + } + + static function populateForm($form){ + $form->configure->resize->checked(upload_configuration::isResize()); + $form->configure->max_width->value(upload_configuration::getMaxWidth()); + $form->configure->max_height->value(upload_configuration::getMaxHeight()); + } + + static function extractForm($form){ + $resize = $form->configure->resize->value; + $max_width = $form->configure->max_width->value; + $max_height= $form->configure->max_height->value; + upload_configuration::setResize($resize); + upload_configuration::setMaxWidth($max_width); + upload_configuration::setMaxHeight($max_height); + } + + static function isResize(){ + return module::get_var("gwtorganise","resize"); + } + + static function getMaxWidth(){ + return intval(module::get_var("gwtorganise","max_width")); + } + + static function getMaxHeight(){ + return intval(module::get_var("gwtorganise","max_height")); + } + + static function setResize($isResize){ + module::set_var("gwtorganise","resize",$isResize); + } + + static function setMaxWidth($max_width){ + module::set_var("gwtorganise","max_width",$max_width); + } + + static function setMaxHeight($max_height){ + module::set_var("gwtorganise","max_height",$max_height); + } +} \ No newline at end of file diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/G3viewer.gwt.xml b/modules/gwtorganise/src/com/gloopics/g3viewer/G3viewer.gwt.xml index 02bcf924..389a35ef 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/G3viewer.gwt.xml +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/G3viewer.gwt.xml @@ -2,8 +2,10 @@ - + + + + @@ -11,4 +13,21 @@ + + + + + + + + + + + + + + + + + diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Album.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Album.java index 7667005a..cb0be367 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Album.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Album.java @@ -62,7 +62,7 @@ public class Album extends TreeItem { public Album(JSONObject jsonObject, G3Viewer a_Container) { - m_ID = (int)((JSONNumber)jsonObject.get("id")).doubleValue(); + m_ID = Utils.extractId(jsonObject.get("id")); m_Title = ((JSONString)jsonObject.get("title")).stringValue(); m_Sort = ((JSONString)jsonObject.get("sort")).stringValue(); @@ -233,7 +233,9 @@ public class Album extends TreeItem { for (int i = 0; i < jsonArray.size(); ++i) { JSONObject jso = (JSONObject)jsonArray.get(i); - int id = (int)((JSONNumber)jso.get("id")).doubleValue(); + + + int id = Utils.extractId(jso.get("id")); if (m_IDtoAlbum.containsKey(id)) { @@ -268,7 +270,7 @@ public class Album extends TreeItem { * moves the given array of ids to this album */ public void moveTo(JSONArray a_Ids){ - Loading.getInstance().loading(); + Loading.getInstance().loading("Moving Items.."); m_Container.doJSONRequest(G3Viewer.MOVE_TO_ALBUM_URL + getId() + "?sourceids=" + a_Ids.toString(), new HttpSuccessHandler() { @@ -287,7 +289,7 @@ public class Album extends TreeItem { */ public void rearrangeTo(JSONArray a_Ids, Item m_CompareTo, boolean m_Before){ - Loading.getInstance().loading(); + Loading.getInstance().loading("Re-arranging.."); String bora = m_Before?"before":"after"; m_Container.doJSONRequest(G3Viewer.REARRANGE_URL + m_CompareTo.getID() + "/" + bora @@ -334,7 +336,7 @@ public class Album extends TreeItem { public void select() { - Loading.getInstance().loading(); + Loading.getInstance().loading("Loading Contents.."); m_Container.doJSONRequest(G3Viewer.VIEW_CHILDREN_URL + getId(), new HttpSuccessHandler() { @@ -362,7 +364,7 @@ public class Album extends TreeItem { for (int i = 0; i < jsonArray.size(); ++i) { jso = (JSONObject)jsonArray.get(i); - id = (int)((JSONNumber)jso.get("id")).doubleValue(); + id = Utils.extractId(jso.get("id")); if (m_IDtoItem.containsKey(id)){ item = m_IDtoItem.get(id); @@ -414,24 +416,40 @@ public class Album extends TreeItem { desktop.openFiles(new OpenFilesHandler() { public void onOpenFiles(OpenFilesEvent event) { - File[] files = event.getFiles(); - UploadFile uf; - for (File file : files){ - uf = new UploadFile(Album.this, file); - m_View.addToView(uf); - m_UploadQueue.addLast(uf); - } - - if (!m_Running){ - m_Running = true; - next(); - } - + uploadFiles(event.getFiles()); } }, false); } + public void uploadFiles(final File[] files){ + + m_Container.doJSONRequest(G3Viewer.RESIZE_DETAILS_URL, new HttpSuccessHandler() { + + public void success(JSONValue a_Value) { + JSONObject jso = a_Value.isObject(); + if (jso != null) { + + ResizeOptions ro = new ResizeOptions(jso); + UploadFile uf; + for (File file : files){ + uf = new UploadFile(Album.this, file, ro); + m_View.addToView(uf); + m_UploadQueue.addLast(uf); + m_Container.addUpload(uf); + } + + if (!m_Running){ + m_Running = true; + next(); + } + } + } + },false); + + + } + public void addPendingDownloads() { for (UploadFile uf: m_UploadQueue) @@ -443,6 +461,7 @@ public class Album extends TreeItem { public void finishedUpload(UploadFile uf, JSONValue a_Return) { m_UploadQueue.remove(uf); + m_Container.removeUpload(uf); next(); JSONObject jo = a_Return.isObject(); diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/AsyncResizer.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/AsyncResizer.java new file mode 100644 index 00000000..03a7aaaf --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/AsyncResizer.java @@ -0,0 +1,58 @@ +package com.gloopics.g3viewer.client; + +import com.gloopics.g3viewer.client.canvas.Canvas; + +import com.google.gwt.core.client.RunAsyncCallback; +import com.google.gwt.gears.client.blob.Blob; + +public class AsyncResizer implements RunAsyncCallback{ + + private final Blob m_Blob; + + private final UploadFile m_UploadFile; + + private final ResizeOptions m_ResizeOptions; + + public AsyncResizer(Blob a_Blob, UploadFile a_UploadFile){ + m_Blob = a_Blob; + m_UploadFile = a_UploadFile; + m_ResizeOptions = a_UploadFile.getResizeOptions(); + } + + @Override + public void onFailure(Throwable reason) { + G3Viewer.displayError("Error Resizing image", reason.toString()); + } + + @Override + public void onSuccess() { + // resize file + Canvas upThumb = com.gloopics.g3viewer.client.canvas.Factory.getInstance().createCanvas(); + upThumb.decode(m_Blob); + + + int imageWidth = upThumb.getWidth(); + int imageHeight = upThumb.getHeight(); + + int widthRatio = imageWidth/m_ResizeOptions.getMaxWidth(); + int heightRatio = imageHeight/m_ResizeOptions.getMaxHeight(); + + if (widthRatio > heightRatio){ + if (widthRatio > 1) { + upThumb.resize(m_ResizeOptions.getMaxWidth(), imageHeight / widthRatio ); + m_UploadFile.uploadBlob(upThumb.encode()); + } + } + else + { + if (heightRatio > 1){ + upThumb.resize(imageWidth / heightRatio, m_ResizeOptions.getMaxHeight()); + m_UploadFile.uploadBlob(upThumb.encode()); + } + } + + + } + + +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/G3Viewer.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/G3Viewer.java index a05f1f8c..d520319b 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/G3Viewer.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/G3Viewer.java @@ -19,6 +19,7 @@ package com.gloopics.g3viewer.client; import com.allen_sauer.gwt.dnd.client.PickupDragController; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.InputElement; +import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.http.client.RequestBuilder; @@ -30,6 +31,7 @@ import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DialogBox; +import com.google.gwt.user.client.ui.DockLayoutPanel; import com.google.gwt.user.client.ui.DockPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.HorizontalSplitPanel; @@ -128,12 +130,22 @@ public class G3Viewer { * rotate url */ public static final String ROTATE_URL = BASE_URL + "index.php/json_album/rotate/"; - + + /** + * Resize details URL + */ + public static final String RESIZE_DETAILS_URL = BASE_URL + "index.php/json_album/resize_config"; + /* * tree */ private final AlbumTree m_Tree; + /** + * the info panel + */ + private final InformationBar m_InfoBar; + /** * the only image dialog box */ @@ -221,7 +233,9 @@ public class G3Viewer { m_DragController.setBehaviorDragStartSensitivity(5); m_DragController.setBehaviorDragProxy(true); + m_InfoBar = new InformationBar(this); m_Tree = new AlbumTree(this); + checkAdmin(); } @@ -293,6 +307,13 @@ public class G3Viewer { return m_View; } + public void addUpload(UploadFile a_UF){ + m_InfoBar.addUpload(a_UF); + } + + public void removeUpload(UploadFile a_UF){ + m_InfoBar.removeUpload(a_UF); + } public void doDialog(String a_Url, HttpDialogHandler a_Handler) @@ -328,8 +349,24 @@ public class G3Viewer { @Override public void onError(Throwable aThrowable) { - displayError("Unexpected Error", + + if (aThrowable.getCause() != null) + { + StringBuffer stack = new StringBuffer(); + StackTraceElement[] stes = aThrowable.getCause().getStackTrace(); + for (StackTraceElement ste: stes){ + stack.append(ste.toString()); + stack.append(" \n "); + } + displayError("a Unexpected Error ", + aThrowable.toString() + " - " + a_URL + "\n " + stack.toString()); + + } + else + { + displayError("a Unexpected Error ", aThrowable.toString() + " - " + a_URL); + } }} )); @@ -356,8 +393,10 @@ public class G3Viewer { SimplePanel sp = new SimplePanelEx(); sp.add(m_SplitPanel); - - RootPanel.get("main").add(sp); + + m_InfoBar.initializeForm(); + RootPanel.get("main").add(sp); + RootPanel.get("main").add(m_InfoBar); } } diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/HttpDialogBox.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/HttpDialogBox.java index 8c61e9cd..b40cfc34 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/HttpDialogBox.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/HttpDialogBox.java @@ -61,7 +61,7 @@ public class HttpDialogBox extends DialogBox{ } HttpDialogBox.this.hide(); - Loading.getInstance().loading(); + Loading.getInstance().loading("Please Wait.."); } }); @@ -155,7 +155,7 @@ public class HttpDialogBox extends DialogBox{ public void doDialog(String url, HttpDialogHandler a_Callback){ m_Callback = a_Callback; - Loading.getInstance().loading(); + Loading.getInstance().loading("Please Wait"); RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url); try { diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/ImageDialogBox.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/ImageDialogBox.java index 49dda06a..5b95d116 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/ImageDialogBox.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/ImageDialogBox.java @@ -42,7 +42,7 @@ public class ImageDialogBox extends PopupPanel{ public void doDialog(String a_Image){ - Loading.getInstance().loading(); + Loading.getInstance().loading("Loading Image.."); if (m_Image != null){ m_Image.removeFromParent(); diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/InformationBar.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/InformationBar.java new file mode 100644 index 00000000..1e26df5d --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/InformationBar.java @@ -0,0 +1,77 @@ +package com.gloopics.g3viewer.client; + +import java.util.HashSet; +import java.util.Set; + +import com.google.gwt.event.dom.client.ClickEvent; +import com.google.gwt.event.dom.client.ClickHandler; +import com.google.gwt.user.client.ui.Anchor; +import com.google.gwt.user.client.ui.Button; +import com.google.gwt.user.client.ui.FlowPanel; +import com.google.gwt.user.client.ui.Label; + +public class InformationBar extends FlowPanel{ + + private final G3Viewer m_Container; + + private final Label m_Label = new Label(); + + private final Set m_Uploads = new HashSet(); + + public InformationBar(G3Viewer a_Container){ + m_Container = a_Container; + setStylePrimaryName("infobar"); + } + + public void initializeForm(){ + Anchor button = new Anchor("Upload Options"); + button.addClickHandler(new ClickHandler() { + + @Override + public void onClick(ClickEvent event) { + m_Container.doDialog("index.php/admin/upload_configure", new HttpDialogHandler() { + @Override + public void success(String aResult) { + } + }); + + + } + }); + + add(button); + + updateInformation(); + add(m_Label); + } + + private void updateInformation() + { + int size = m_Uploads.size(); + if (size == 0){ + m_Label.setText(""); + } + else + { + if (size == 1){ + m_Label.setText("Uploading file."); + } + else{ + m_Label.setText("Uploading " + size + " files."); + } + + } + } + + public void addUpload(UploadFile a_Upload) + { + m_Uploads.add(a_Upload); + updateInformation(); + } + + public void removeUpload(UploadFile a_Upload) + { + m_Uploads.remove(a_Upload); + updateInformation(); + } +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Item.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Item.java index c2c5744c..46119aa9 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Item.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Item.java @@ -1,5 +1,11 @@ package com.gloopics.g3viewer.client; +import java.util.Iterator; + +import com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile; +import com.gloopics.g3viewer.client.dnddesktop.DesktopDroppableWidget; +import com.gloopics.g3viewer.client.dnddesktop.DndDesktopFactory; +import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ContextMenuEvent; import com.google.gwt.event.dom.client.ContextMenuHandler; import com.google.gwt.event.dom.client.DoubleClickEvent; @@ -20,6 +26,7 @@ import com.google.gwt.event.dom.client.MouseWheelHandler; import com.google.gwt.event.logical.shared.CloseEvent; import com.google.gwt.event.logical.shared.CloseHandler; import com.google.gwt.event.shared.HandlerRegistration; +import com.google.gwt.gears.client.desktop.File; import com.google.gwt.json.client.JSONNumber; import com.google.gwt.json.client.JSONObject; import com.google.gwt.json.client.JSONString; @@ -34,9 +41,10 @@ import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.MenuBar; import com.google.gwt.user.client.ui.MenuItem; import com.google.gwt.user.client.ui.PopupPanel; +import com.google.gwt.user.client.ui.Widget; -public class Item extends Composite implements HasAllMouseHandlers{ +public class Item extends Composite implements HasAllMouseHandlers, DesktopDroppableWidget{ private final int m_ID; @@ -69,7 +77,7 @@ public class Item extends Composite implements HasAllMouseHandlers{ m_Container = a_Container; m_View = a_Container.getView(); m_Parent = a_Parent; - m_ID = (int)((JSONNumber)a_Value.get("id")).doubleValue(); + m_ID = Utils.extractId(a_Value.get("id")); m_Title = ((JSONString)a_Value.get("title")).stringValue(); m_Thumb = ((JSONString)a_Value.get("thumb")).stringValue(); m_Type = ((JSONString)a_Value.get("type")).stringValue(); @@ -78,6 +86,7 @@ public class Item extends Composite implements HasAllMouseHandlers{ m_IsPhoto = m_Type.equals("photo"); FlowPanel dp = new FlowPanel(); + m_ThumbImage = new Image(m_Thumb); dp.add(m_ThumbImage); @@ -114,6 +123,11 @@ public class Item extends Composite implements HasAllMouseHandlers{ },DoubleClickEvent.getType()); a_Container.getDragController().makeDraggable(this); + + if (m_IsAlbum) + { + ((DndDesktopFactory)GWT.create(DndDesktopFactory.class)).getInstance(this); + } } @@ -176,6 +190,20 @@ public class Item extends Composite implements HasAllMouseHandlers{ } public void showPopupMenu(ContextMenuEvent event){ + Iterator iter = m_Container.getDragController().getSelectedWidgets().iterator(); + + // show views popup menu if items are selected + if (iter.hasNext()) + { + iter.next(); + if (iter.hasNext()) + { + m_View.showPopupMenu(event); + return; + } + + } + this.addStyleName("popped"); final PopupPanel popupPanel = new PopupPanel(true); popupPanel.setAnimationEnabled(true); @@ -332,6 +360,20 @@ public class Item extends Composite implements HasAllMouseHandlers{ public HandlerRegistration addMouseWheelHandler(MouseWheelHandler handler) { return addDomHandler(handler, MouseWheelEvent.getType()); } + + @Override + public void dropFiles(File[] aFile) { + if (m_IsAlbum) + { + m_LinkedAlbum.uploadFiles(aFile); + } + + } + + @Override + public Widget getActualWidget() { + return this; + } diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Loading.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Loading.java index 9d7fead4..5b453e2f 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Loading.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Loading.java @@ -1,54 +1,78 @@ package com.gloopics.g3viewer.client; + +import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.AbsolutePanel; import com.google.gwt.user.client.ui.HTML; +import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; -public class Loading extends AbsolutePanel{ - +public class Loading{ + + public static final String URL = GWT.getModuleBaseURL() + "loading.gif"; + private static final Loading INSTANCE = new Loading(); - public static final String URL = "images/loading.gif"; - - /** - * the image widget - */ - private Image m_Image = new Image("images/loading.gif"); + /** + * the image widget + */ + private final Image m_Image = new Image(URL); + + private final Label m_Label = new Label(); + + private final HTML m_Back = new HTML(); - private Loading(){ - HTML back = new HTML(); - back.addStyleName("loading"); - add(back, 0, 0); - Image.prefetch(URL); - } - - /** - * get instance - */ - public static Loading getInstance(){ - return INSTANCE; - } - - public void loading(){ - int width = RootPanel.get().getOffsetWidth(); - int height = RootPanel.get().getOffsetHeight(); - height = height / 2 - 25; - width = width / 2 - 25; - add(m_Image); - this.setWidgetPosition(m_Image, width, height); - RootPanel.get().add(this); - } - - public void endLoading(){ - if (m_Image.isAttached()){ - remove(m_Image); + private Loading(){ + m_Back.addStyleName("loading"); + m_Label.setStyleName("loading-label"); + m_Image.setStyleName("loading-image"); } - RootPanel.get().remove(this); - } - - public void hideAnimation(){ - remove(m_Image); - } - + + /** + * get instance + */ + public static Loading getInstance(){ + return INSTANCE; + } + + public void loading(String message){ + RootPanel.get().add(m_Back); + + int width = RootPanel.get().getOffsetWidth(); + int height = RootPanel.get().getOffsetHeight(); + height = height / 2 - 20; + width = width / 2 - 40; + RootPanel.get().add(m_Image, width, height); + + if (message != null) + { + m_Label.setText(message); + RootPanel.get().add(m_Label, 0, height + 45); + } + + //RootPanel.get().add(this); + } + + public void endLoading(){ + if (m_Image.isAttached()){ + RootPanel.get().remove(m_Image); + } + if (m_Label.isAttached()){ + RootPanel.get().remove(m_Label); + } + if (m_Back.isAttached()){ + RootPanel.get().remove(m_Back); + } + } + + public void hideAnimation(){ + if (m_Image.isAttached()){ + RootPanel.get().remove(m_Image); + } + if (m_Label.isAttached()){ + RootPanel.get().remove(m_Label); + } + } + } diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/ResizeOptions.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/ResizeOptions.java new file mode 100644 index 00000000..e83c21bd --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/ResizeOptions.java @@ -0,0 +1,50 @@ +package com.gloopics.g3viewer.client; + +import com.google.gwt.json.client.JSONBoolean; +import com.google.gwt.json.client.JSONNumber; +import com.google.gwt.json.client.JSONObject; +import com.google.gwt.json.client.JSONString; + +public class ResizeOptions { + + private final boolean m_Resize; + + private final int m_MaxWidth; + + private final int m_MaxHeight; + + + public ResizeOptions(JSONObject a_Value){ + JSONBoolean jbool = a_Value.get("resize").isBoolean(); + if (jbool == null) + { + throw new RuntimeException("JBool was null."); + } + m_Resize = jbool.booleanValue(); + if (m_Resize) + { + m_MaxWidth = Integer.parseInt(a_Value.get("max_width").toString()); + m_MaxHeight = Integer.parseInt(a_Value.get("max_height").toString()); + } + else + { + m_MaxWidth = 0; + m_MaxHeight = 0; + } + } + + public boolean isResize() + { + return m_Resize; + } + + public int getMaxHeight() + { + return m_MaxHeight; + } + + public int getMaxWidth() + { + return m_MaxWidth; + } +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/UploadFile.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/UploadFile.java index 1d858d44..ef234ab4 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/UploadFile.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/UploadFile.java @@ -1,19 +1,28 @@ package com.gloopics.g3viewer.client; -import com.google.gwt.user.client.ui.AbsolutePanel; +import com.gloopics.g3viewer.client.canvas.Canvas; +import com.google.gwt.user.client.ui.Composite; +import com.google.gwt.user.client.ui.FlowPanel; +import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.SimplePanel; +import com.google.gwt.core.client.GWT; import com.google.gwt.gears.client.Factory; +import com.google.gwt.gears.client.blob.Blob; import com.google.gwt.gears.client.desktop.File; import com.google.gwt.gears.client.httprequest.HttpRequest; import com.google.gwt.gears.client.httprequest.ProgressEvent; import com.google.gwt.gears.client.httprequest.ProgressHandler; import com.google.gwt.gears.client.httprequest.RequestCallback; +import com.google.gwt.gears.client.localserver.ResourceStore; import com.google.gwt.json.client.JSONParser; import com.google.gwt.json.client.JSONValue; -public class UploadFile extends AbsolutePanel{ +public class UploadFile extends Composite{ + private final static ResourceStore RS = Factory.getInstance().createLocalServer().createStore("temp"); + + private class ProgressBar extends SimplePanel{ private final SimplePanel m_ProgressInner; public ProgressBar(){ @@ -29,35 +38,66 @@ public class UploadFile extends AbsolutePanel{ } } - private final File m_LocalFile; + private final ResizeOptions m_ResizeOptions; private final String m_Name; private final Album m_Parent; - //private final Label m_PendingLabel = new Label("Upload Pending"); + private final Blob m_Blob; + + //private final Canvas m_UpThumb; + + private final Label m_Label = new Label("Pending.."); private final ProgressBar m_ProgressBar = new ProgressBar(); - public UploadFile(Album a_Parent, File a_File){ + + /** + * Loads an image into this Canvas, replacing the Canvas' current dimensions + * and contents. + * + * @param blob The Blob to decode. The image should be in PNG or JPEG format. + */ + public final native void captureBlob(ResourceStore rs, Blob blob, String a_Url) /*-{ + rs.captureBlob(blob, a_Url, "image/JPEG"); + }-*/; + + /** + * Loads an image into this Canvas, replacing the Canvas' current dimensions + * and contents. + * + * @param blob The Blob to decode. The image should be in PNG or JPEG format. + */ + public final native void removeCapture(ResourceStore rs, String a_Url) /*-{ + rs.remove(a_Url); + }-*/; + + public UploadFile(Album a_Parent, File a_File, ResizeOptions a_ResizeOptions){ + m_ResizeOptions = a_ResizeOptions; m_Parent = a_Parent; - m_LocalFile = a_File; m_Name = a_File.getName(); - Label name = new Label(m_Name); - name.addStyleName("label"); - add(name,5,20); + m_Blob = a_File.getBlob(); + captureBlob(RS, m_Blob , m_Name); + + Image img = new Image(m_Name); + FlowPanel dp = new FlowPanel(); - add(m_ProgressBar,0,80); + dp.add(img); + + dp.add(m_ProgressBar); + dp.add(m_Label); + + initWidget(dp); setStylePrimaryName("item"); addStyleName("iUpload"); } - public void startUpload(){ + protected void uploadBlob(Blob a_Blob){ + m_Label.setText("Uploading.."); HttpRequest request = Factory.getInstance().createHttpRequest(); request.open("POST", G3Viewer.UPLOAD_URL + m_Parent.getId() + "?filename=" + m_Name + "&csrf=" + G3Viewer.getCSRF()); - //request.setRequestHeader("Content-Type", "image/jpg"); - //request.setRequestHeader("Content-Type", "image/jpg"); request.getUpload().setProgressHandler(new ProgressHandler() { @@ -78,17 +118,39 @@ public class UploadFile extends AbsolutePanel{ { G3Viewer.displayError("Upload Error", request.getResponseText() + request.getStatus() + request.getStatusText()); } + removeCapture(RS, m_Name); + try{ - JSONValue jv = JSONParser.parse(request.getResponseText()); - m_Parent.finishedUpload(UploadFile.this, jv); - } catch (Exception e) - { + JSONValue jv = JSONParser.parse(request.getResponseText()); + m_Parent.finishedUpload(UploadFile.this, jv); + } + catch (Exception e){ G3Viewer.displayError("Exception on Upload", e.toString() + " " + request.getResponseText()); } + + } }); - request.send(m_LocalFile.getBlob()); + request.send(a_Blob); + + } + + public ResizeOptions getResizeOptions(){ + return m_ResizeOptions; + } + + public void startUpload(){ + + if (m_ResizeOptions.isResize()) + { + m_Label.setText("Resizing.."); + GWT.runAsync(new AsyncResizer(m_Blob, this)); + } + else + { + uploadBlob(m_Blob); + } } } diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/Utils.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Utils.java new file mode 100644 index 00000000..f1432276 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/Utils.java @@ -0,0 +1,18 @@ +package com.gloopics.g3viewer.client; + +import com.google.gwt.json.client.JSONNumber; +import com.google.gwt.json.client.JSONValue; + +public class Utils { + public static int extractId(JSONValue a_Value){ + JSONNumber jn = a_Value.isNumber(); + if (jn != null){ + return (int) jn.doubleValue(); + } + else{ + String val = a_Value.isString().stringValue(); + return Integer.parseInt(val); + } + } + +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/View.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/View.java index 602db116..7035683c 100644 --- a/modules/gwtorganise/src/com/gloopics/g3viewer/client/View.java +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/View.java @@ -3,17 +3,35 @@ package com.gloopics.g3viewer.client; import java.util.ArrayList; import java.util.List; +import com.allen_sauer.gwt.dnd.client.DragController; +import com.allen_sauer.gwt.dnd.client.PickupDragController; +import com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile; +import com.gloopics.g3viewer.client.dnddesktop.DesktopDroppableWidget; +import com.gloopics.g3viewer.client.dnddesktop.DndDesktopFactory; +import com.google.gwt.core.client.GWT; +import com.google.gwt.event.dom.client.ContextMenuEvent; +import com.google.gwt.event.logical.shared.CloseEvent; +import com.google.gwt.event.logical.shared.CloseHandler; +import com.google.gwt.gears.client.desktop.File; +import com.google.gwt.json.client.JSONValue; +import com.google.gwt.user.client.Command; +import com.google.gwt.user.client.DOM; +import com.google.gwt.user.client.Event; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.HTML; +import com.google.gwt.user.client.ui.MenuBar; +import com.google.gwt.user.client.ui.MenuItem; +import com.google.gwt.user.client.ui.PopupPanel; import com.google.gwt.user.client.ui.Widget; -public class View extends FlowPanel{ +public class View extends FlowPanel implements DesktopDroppableWidget{ /** * the current album being viewed */ private Album m_Album; + /** * the list of drop zones */ @@ -24,12 +42,15 @@ public class View extends FlowPanel{ public View(G3Viewer a_Container){ m_Container = a_Container; + ((DndDesktopFactory)GWT.create(DndDesktopFactory.class)).getInstance(this); } + private void clearView(){ + PickupDragController pdc = m_Container.getDragController(); if (m_DropZones.size() > 0){ for (DropZoneController dropController : m_DropZones){ - m_Container.getDragController().unregisterDropController(dropController); + pdc.unregisterDropController(dropController); } m_DropZones.clear(); } @@ -39,6 +60,7 @@ public class View extends FlowPanel{ ((Item)widget).hidding(); } } + pdc.clearSelection(); clear(); } @@ -93,6 +115,58 @@ public class View extends FlowPanel{ public Album getCurrentAlbum(){ return m_Album; } + + + @Override + public void dropFiles(File[] aFile) { + if (m_Album != null){ + m_Album.uploadFiles(aFile); + } + } + + + @Override + public Widget getActualWidget() { + return this; + } + + public void showPopupMenu(ContextMenuEvent event){ + final PopupPanel popupPanel = new PopupPanel(true); + popupPanel.setAnimationEnabled(true); + popupPanel.setStyleName("popup"); + MenuBar popupMenuBar = new MenuBar(true); + + MenuItem deleteItem = new MenuItem("Delete Selected Items", true, new Command() { + + @Override + public void execute() { + /* + m_Container.doDialog("index.php/quick/form_delete/" + m_ID, new HttpDialogHandler() { + public void success(String aResult) { + m_View.removeFromView(Item.this); + if (m_LinkedAlbum != null){ + m_LinkedAlbum.remove(); + } + } + }); + */ + popupPanel.hide(); + + } + }); + deleteItem.addStyleName("popup-item"); + popupMenuBar.addItem(deleteItem); + + popupMenuBar.setVisible(true); + popupPanel.add(popupMenuBar); + + int x = DOM.eventGetClientX((Event)event.getNativeEvent()); + int y = DOM.eventGetClientY((Event)event.getNativeEvent()); + popupPanel.setPopupPosition(x, y); + + popupPanel.show(); + + } } diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/Canvas.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/Canvas.java new file mode 100644 index 00000000..3e47a126 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/Canvas.java @@ -0,0 +1,178 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.gloopics.g3viewer.client.canvas; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.gears.client.blob.Blob; + +/** + * The Canvas module is a graphics API that is inspired by the HTML5 canvas, with additional methods to decode from and encode to + * binary formats (such as PNG and JPEG), represented by Blobs. A Gears Canvas + * is not yet a complete implementation of the HTML5 canvas specification, and + * there are two significant differences: + *
    + *
  • A Gears Canvas is off-screen, in that creating a Canvas object doesn't + * directly paint any pixels on the screen. Furthermore, for technical reasons, + * a Gears Canvas is not a DOM Element. On the other hand, you can create a + * Gears Canvas in a Worker. + *
  • A Gears Canvas does not implement getContext, and in + * particular does not provide a 2D context. + *
+ *

+ * Permission + *

+ * This API requires user permission. If you would like to customize the default + * dialog, you can explicitly call + * {@link com.google.gwt.gears.client.Factory#getPermission()}. + */ +public class Canvas extends JavaScriptObject { + + public static final String MIMETYPE_JPEG = "image/jpeg"; + public static final String MIMETYPE_PNG = "image/png"; + + protected Canvas() { + // required for overlay types + } + + /** + * Crops the Canvas. The crop happens "in-place", as opposed to returning a + * new Canvas. + * + * @param x The left co-ordinate of the crop rectangle. + * @param y The top co-ordinate of the crop rectangle. + * @param w The width of the crop rectangle. + * @param h The height of the crop rectangle. + */ + public final native void crop(int x, int y, int w, int h) /*-{ + this.crop(x, y, w, h); + }-*/; + + /** + * Loads an image into this Canvas, replacing the Canvas' current dimensions + * and contents. + * + * @param blob The Blob to decode. The image should be in PNG or JPEG format. + */ + public final native void decode(Blob blob) /*-{ + this.decode(blob); + }-*/; + + /** + * Saves the Canvas' contents to PNG format. + * + * @return A new Blob encoding the Canvas' image data. + */ + public final native Blob encode() /*-{ + return this.encode(); + }-*/; + + /** + * Saves the Canvas' contents to a binary format, such as PNG or JPEG. + * + * @param mimeType The image format to encode to. Valid values include + * "image/png" and "image/jpeg". + * @return A new Blob encoding the Canvas' image data. + */ + public final native Blob encode(String mimeType) /*-{ + return this.encode(mimeType); + }-*/; + + /** + * Saves the Canvas' contents to JPEG format. + * + * @param quality the JPEG quality as a number between 0.0 and 1.0 inclusive. + * @return A new Blob encoding the Canvas' image data. + */ + public final native Blob encodeJpeg(float quality) /*-{ + return this.encode("image/jpeg", { quality: quality }); + }-*/; + + /** + * Returns the height of the Canvas. The default value is 150. + * + * @return the canvas height. + */ + public final native int getHeight()/*-{ + return this.height; + }-*/; + + /** + * Returns the width of the Canvas. The default value is 300. + * + * @return the canvas width. + */ + public final native int getWidth() /*-{ + return this.width; + }-*/; + + /** + * Resizes the Canvas. The resize happens "in-place", as opposed to returning + * a new Canvas. + *

+ * Uses bi-linear filtering. + * + * @param w The new width. + * @param h The new height. + */ + public final native void resize(int w, int h) /*-{ + this.resize(w, h); + }-*/; + + /** + * Resizes the Canvas. The resize happens "in-place", as opposed to returning + * a new Canvas. + * + * @param w The new width. + * @param h The new height. + * @param filter The image filter. + */ + public final void resize(int w, int h, ResizeFilter filter) { + resize(w, h, filter.getFilter()); + } + + /** + * Resizes the Canvas. The resize happens "in-place", as opposed to returning + * a new Canvas. + * + * @param w The new width. + * @param h The new height. + * @param filter A string specifying the image filter. There are two options: + * "nearest" for nearest-neighbor filtering, and "bilinear" for + * bi-linear filtering. + */ + public final native void resize(int w, int h, String filter) /*-{ + this.resize(w, h, filter); + }-*/; + + /** + * Sets the height of the Canvas. The default value is 150. + * + * @param height the canvas height. + */ + public final native void setHeight(int height) /*-{ + this.height = height; + }-*/; + + /** + * Sets the width of the Canvas. The default value is 300. + * + * @param width the canvas width. + */ + public final native void setWidth(int width) /*-{ + this.width = width; + }-*/; +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/Factory.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/Factory.java new file mode 100644 index 00000000..8ac5ba59 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/Factory.java @@ -0,0 +1,69 @@ +/* + * Copyright 2008 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.gloopics.g3viewer.client.canvas; + +import com.google.gwt.core.client.JavaScriptObject; + +/** + * Factory class used to create all other Gears objects. + */ +public final class Factory extends JavaScriptObject { + /** + * String used to request a BlobBuilder instance from Gears. + */ + public static final String BLOBBUILDER = "beta.blobbuilder"; + + /** + * String used to request a Canvas instance from Gears. + */ + public static final String CANVAS = "beta.canvas"; + + + /** + * Returns the singleton instance of the Factory class or null + * if Gears is not installed or accessible. + * + * @return singleton instance of the Factory class or null if + * Gears is not installed or accessible + */ + public static native Factory getInstance() /*-{ + return $wnd.google && $wnd.google.gears && $wnd.google.gears.factory; + }-*/; + + protected Factory() { + // Required for overlay types + } + + /** + * Creates a new {@link Canvas} instance. + * + * @return a new {@link Canvas} instance + */ + public Canvas createCanvas() { + return create(CANVAS); + } + + /** + * Creates an instance of the specified Gears object. + * + * @param Gears object type to return + * @param className name of the object to create + * @return an instance of the specified Gears object + */ + private native T create(String className) /*-{ + return this.create(className); + }-*/; +} \ No newline at end of file diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/ResizeFilter.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/ResizeFilter.java new file mode 100644 index 00000000..198ad8ea --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/canvas/ResizeFilter.java @@ -0,0 +1,36 @@ +/* + * Copyright 2009 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.gloopics.g3viewer.client.canvas; + +/** + * Filters used when resizing a Canvas. + */ +public enum ResizeFilter { + NEAREST { + @Override + public String getFilter() { + return "nearest"; + } + }, + BILINEAR { + @Override + public String getFilter() { + return "bilinear"; + } + }; + + public abstract String getFilter(); +} \ No newline at end of file diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropBase.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropBase.java new file mode 100644 index 00000000..17373305 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropBase.java @@ -0,0 +1,61 @@ +package com.gloopics.g3viewer.client.dnddesktop; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.gears.client.Factory; +import com.google.gwt.gears.client.desktop.Desktop; +import com.google.gwt.gears.client.desktop.File; +import com.google.gwt.user.client.ui.Widget; + +public abstract class DesktopDropBase { + private final DesktopDroppableWidget m_DropFile; + protected final Widget m_Widget; + private final Desktop m_Desktop; + + public DesktopDropBase (DesktopDroppableWidget a_Widget){ + m_DropFile = a_Widget; + m_Widget = a_Widget.getActualWidget(); + + m_Desktop = Factory.getInstance().createDesktop(); + } + + public void onDragEnter(JavaScriptObject e) + { + m_Widget.addStyleName("drop-target"); + setDropEffect(m_Desktop, e); + finishDrag(e); + } + + public final native void finishDrag(JavaScriptObject e) /*-{ + if (e.stopPropagation) e.stopPropagation(); + else e.cancelBubble = true; + if (e.preventDefault) e.preventDefault(); + else e.returnValue = false; + }-*/; + + public void onDragLeave(JavaScriptObject e) + { + m_Widget.removeStyleName("drop-target"); + finishDrag(e); + + } + + public void onDrop(JavaScriptObject e) + { + File[] files = getDragData(m_Desktop, e); + if (files != null) + { + m_DropFile.dropFiles(files); + } + + onDragLeave(e); + } + + public final native File[] getDragData(Desktop d, JavaScriptObject e) /*-{ + var data = d.getDragData(e, 'application/x-gears-files'); + return data && data.files; + }-*/; + + public final native File[] setDropEffect(Desktop d, JavaScriptObject e) /*-{ + var data = d.setDropEffect(e, 'copy'); + }-*/; +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFile.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFile.java new file mode 100644 index 00000000..c44f7eea --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFile.java @@ -0,0 +1,69 @@ +package com.gloopics.g3viewer.client.dnddesktop; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.dom.client.Element; +import com.google.gwt.gears.client.Factory; +import com.google.gwt.gears.client.desktop.Desktop; +import com.google.gwt.gears.client.desktop.File; +import com.google.gwt.user.client.Window.Navigator; +import com.google.gwt.user.client.ui.Widget; + +public class DesktopDropFile extends DesktopDropBase{ + + public DesktopDropFile(DesktopDroppableWidget a_Widget){ + super(a_Widget); + String nav = Navigator.getUserAgent().toLowerCase(); + + addDropEvents(m_Widget.getElement()); + } + + + public native void addDropEvents(Element e) /*-{ + var t = this; + + e.addEventListener('dragenter', + function(e) + { + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDragEnter(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + } + , false); + + + e.addEventListener('dragleave', + function(e) + { + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDragLeave(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + } + , false); + + e.addEventListener('dragexit', + function(e) + { + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDragLeave(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + } + , false); + + e.addEventListener('dragover', + function(e) + { + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::finishDrag(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + } + , false); + + e.addEventListener('dragdrop', + function(e) + { + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDrop(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + } + , false); + + e.addEventListener('drop', + function(e) + { + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDrop(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + } + , false); + + }-*/; + +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFileIE.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFileIE.java new file mode 100644 index 00000000..ae0773d0 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFileIE.java @@ -0,0 +1,44 @@ +package com.gloopics.g3viewer.client.dnddesktop; + +import com.google.gwt.core.client.JavaScriptObject; +import com.google.gwt.dom.client.Element; + +public class DesktopDropFileIE extends DesktopDropBase{ + + public DesktopDropFileIE(DesktopDroppableWidget a_Widget){ + super(a_Widget); + addDropEvents(m_Widget.getElement()); + } + + + public native void addDropEvents(Element e) /*-{ + var t = this; + e.attachEvent('ondragenter', + function(e){ + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDragEnter(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + return false; + + }); + + e.attachEvent('ondragover', + function(e){ + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::finishDrag(Lcom/google/gwt/core/client/JavaScriptObject;)(e); + return false; + }); + + e.attachEvent('ondragleave', + function(e){ + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDragLeave(Lcom/google/gwt/core/client/JavaScriptObject;)(e) + return false; + }); + + e.attachEvent('ondrop', + function(e){ + t.@com.gloopics.g3viewer.client.dnddesktop.DesktopDropFile::onDrop(Lcom/google/gwt/core/client/JavaScriptObject;)(e) + return false; + }); + + }-*/; + + +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDroppableWidget.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDroppableWidget.java new file mode 100644 index 00000000..a3efaaf0 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DesktopDroppableWidget.java @@ -0,0 +1,11 @@ +package com.gloopics.g3viewer.client.dnddesktop; + +import com.google.gwt.gears.client.desktop.File; +import com.google.gwt.user.client.ui.Widget; + +public interface DesktopDroppableWidget { + + Widget getActualWidget(); + + void dropFiles(File[] a_File); +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactory.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactory.java new file mode 100644 index 00000000..14939d25 --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactory.java @@ -0,0 +1,9 @@ +package com.gloopics.g3viewer.client.dnddesktop; + +public class DndDesktopFactory { + + public DesktopDropBase getInstance(DesktopDroppableWidget a_Widget) + { + return new DesktopDropFile(a_Widget); + } +} diff --git a/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactoryIE.java b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactoryIE.java new file mode 100644 index 00000000..d0ab032f --- /dev/null +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactoryIE.java @@ -0,0 +1,9 @@ +package com.gloopics.g3viewer.client.dnddesktop; + +public class DndDesktopFactoryIE extends DndDesktopFactory{ + + public DesktopDropBase getInstance(DesktopDroppableWidget a_Widget) + { + return new DesktopDropFileIE(a_Widget); + } +} diff --git a/modules/gwtorganise/war/G3viewer.css b/modules/gwtorganise/src/com/gloopics/g3viewer/public/G3viewer.css similarity index 76% rename from modules/gwtorganise/war/G3viewer.css rename to modules/gwtorganise/src/com/gloopics/g3viewer/public/G3viewer.css index 622f3c48..e9b7d304 100644 --- a/modules/gwtorganise/war/G3viewer.css +++ b/modules/gwtorganise/src/com/gloopics/g3viewer/public/G3viewer.css @@ -4,16 +4,20 @@ .error {width:300px; height:200px;} -.item {width:100px; height: 100px; padding:3px; border: 2px solid #FFF; overflow: hidden; float:left; text-align:center; position:relative;margin:3px;} +.item {width:100px; height: 130px; padding:3px; border: 2px solid #FFF; overflow: hidden; float:left; text-align:center; position:relative;margin:3px;} .item img{max-width:96px; max-height:76px; *width:96px; *height:76px; border:2px solid #AAA;} .item h3{font-size:10px; font-weight:normal; position:absolute; bottom:5px; left:0px; width:100%; text-align:center; padding:0; margin:0;} .ialbum {background-color: #e3effb; border: 2px solid #91c0ef; } .popped {background-color: #e3effb;} -.view {padding:3px;} +.view {height: 100%;} .DropZone {height: 100px; width:6px; margin: 0 -3px 0 -3px; padding: 0; float:left; text-align:center; position:relative;} - -.loading{position:absolute; top:0px; left:0px; width:100%; height: 100%; background-color:#888; opacity: 0.3; filter: alpha(opacity = 30);} - +.infobar {background-color: #fff; position: absolute; bottom:0px; border-width: 4px 4px 0 4px; border-style: solid; + border-color: #d2e1f6; height: 15px; width: 240px; right: 50px; font-size:10px; padding: 2px 5px 1px 5px;} +.infobar div {float:right; } +.infobar a {float:left;} +.loading{position:absolute; top:0px; left:0px; width:100%; height: 100%; background-color:#FFF; opacity: 0.7; filter: alpha(opacity = 70);} +.loading-label{z-index:10; position:absolute; width:100%; left:0px; text-align:center;} +.loading-image{z-index:10;} .gwt-TreeItem-selected .Tree-Album {background-color: #333; color: #FFF;} .Tree-Album {padding: 1px;} .Tree-Album:hover{text-decoration:underline;} diff --git a/modules/gwtorganise/war/images/loading.gif b/modules/gwtorganise/src/com/gloopics/g3viewer/public/loading.gif similarity index 100% rename from modules/gwtorganise/war/images/loading.gif rename to modules/gwtorganise/src/com/gloopics/g3viewer/public/loading.gif diff --git a/modules/gwtorganise/views/gwtorganise_view.html.php b/modules/gwtorganise/views/gwtorganise_view.html.php index 7f246ec5..25d4a702 100644 --- a/modules/gwtorganise/views/gwtorganise_view.html.php +++ b/modules/gwtorganise/views/gwtorganise_view.html.php @@ -1,6 +1,6 @@ diff --git a/modules/gwtorganise/war/WEB-INF/appengine-web.xml b/modules/gwtorganise/war/WEB-INF/appengine-web.xml deleted file mode 100644 index 99223a5a..00000000 --- a/modules/gwtorganise/war/WEB-INF/appengine-web.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - 1 - - - - - - - \ No newline at end of file diff --git a/modules/gwtorganise/war/WEB-INF/classes/META-INF/jdoconfig.xml b/modules/gwtorganise/war/WEB-INF/classes/META-INF/jdoconfig.xml new file mode 100644 index 00000000..5f56aa19 --- /dev/null +++ b/modules/gwtorganise/war/WEB-INF/classes/META-INF/jdoconfig.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/G3viewer.gwt.xml b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/G3viewer.gwt.xml new file mode 100644 index 00000000..389a35ef --- /dev/null +++ b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/G3viewer.gwt.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$1.class new file mode 100644 index 00000000..03e8d371 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$10.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$10.class new file mode 100644 index 00000000..75765a5c Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$10.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$11.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$11.class new file mode 100644 index 00000000..91129746 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$11.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$12.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$12.class new file mode 100644 index 00000000..8e6d5234 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$12.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$2$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$2$1.class new file mode 100644 index 00000000..ab033485 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$2$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$2.class new file mode 100644 index 00000000..fbc37486 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$3.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$3.class new file mode 100644 index 00000000..7a0a2b59 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$3.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$4$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$4$1.class new file mode 100644 index 00000000..cf455ca2 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$4$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$4.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$4.class new file mode 100644 index 00000000..66118607 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$4.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$5$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$5$1.class new file mode 100644 index 00000000..33365323 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$5$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$5.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$5.class new file mode 100644 index 00000000..6db9d264 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$5.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$6.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$6.class new file mode 100644 index 00000000..a4ac7459 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$6.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$7.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$7.class new file mode 100644 index 00000000..25eddc4f Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$7.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$8.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$8.class new file mode 100644 index 00000000..35d138d2 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$8.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$9.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$9.class new file mode 100644 index 00000000..4260f422 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album$9.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album.class new file mode 100644 index 00000000..ee9e0a6e Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Album.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumItemDropContainer.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumItemDropContainer.class new file mode 100644 index 00000000..d6a3aa43 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumItemDropContainer.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTree$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTree$1.class new file mode 100644 index 00000000..b5142ea0 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTree$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTree.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTree.class new file mode 100644 index 00000000..0f8db508 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTree.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTreeDropController.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTreeDropController.class new file mode 100644 index 00000000..b540915a Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AlbumTreeDropController.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AsyncResizer.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AsyncResizer.class new file mode 100644 index 00000000..392ed4f2 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/AsyncResizer.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/DropZoneController.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/DropZoneController.class new file mode 100644 index 00000000..f8fed7cf Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/DropZoneController.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$1$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$1$1.class new file mode 100644 index 00000000..28ec08b1 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$1$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$1.class new file mode 100644 index 00000000..3b9c4601 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$2.class new file mode 100644 index 00000000..b7fe6c19 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$ErrorDialog$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$ErrorDialog$1.class new file mode 100644 index 00000000..7075faa5 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$ErrorDialog$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$ErrorDialog.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$ErrorDialog.class new file mode 100644 index 00000000..f2b3519f Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$ErrorDialog.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$SimplePanelEx.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$SimplePanelEx.class new file mode 100644 index 00000000..d54caa33 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer$SimplePanelEx.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer.class new file mode 100644 index 00000000..a7ce7a58 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/G3Viewer.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$1.class new file mode 100644 index 00000000..a872cfc3 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$2.class new file mode 100644 index 00000000..620a5286 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$3.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$3.class new file mode 100644 index 00000000..454e2fe2 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$3.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$RequestCallbackImpl.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$RequestCallbackImpl.class new file mode 100644 index 00000000..7d9a5c74 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox$RequestCallbackImpl.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox.class new file mode 100644 index 00000000..18bd62d6 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogBox.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogHandler.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogHandler.class new file mode 100644 index 00000000..ced48bc3 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpDialogHandler.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpSuccessHandler.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpSuccessHandler.class new file mode 100644 index 00000000..f5dc523a Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/HttpSuccessHandler.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$1.class new file mode 100644 index 00000000..bce80447 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$2.class new file mode 100644 index 00000000..d390264c Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$3.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$3.class new file mode 100644 index 00000000..c1ff1330 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox$3.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox.class new file mode 100644 index 00000000..6d9c834b Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ImageDialogBox.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar$1$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar$1$1.class new file mode 100644 index 00000000..6ffb0d5b Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar$1$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar$1.class new file mode 100644 index 00000000..e09159d3 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar.class new file mode 100644 index 00000000..bebe68d3 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/InformationBar.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$1.class new file mode 100644 index 00000000..444af50b Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$2.class new file mode 100644 index 00000000..cd9258fa Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$3.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$3.class new file mode 100644 index 00000000..4f3fe711 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$3.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$4$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$4$1.class new file mode 100644 index 00000000..2ace32b3 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$4$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$4.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$4.class new file mode 100644 index 00000000..a6073ad0 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$4.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$5$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$5$1.class new file mode 100644 index 00000000..61e51f61 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$5$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$5.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$5.class new file mode 100644 index 00000000..082b7397 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$5.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$6$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$6$1.class new file mode 100644 index 00000000..329187d4 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$6$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$6.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$6.class new file mode 100644 index 00000000..5d43e6be Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$6.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$7$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$7$1.class new file mode 100644 index 00000000..de9cac81 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$7$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$7.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$7.class new file mode 100644 index 00000000..c02cd8b3 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$7.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$8$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$8$1.class new file mode 100644 index 00000000..f9fe4dc4 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$8$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$8.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$8.class new file mode 100644 index 00000000..9a4a1041 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$8.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$9.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$9.class new file mode 100644 index 00000000..77c496c5 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item$9.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item.class new file mode 100644 index 00000000..3d90297b Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Item.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/JSONResponseCallback.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/JSONResponseCallback.class new file mode 100644 index 00000000..78d986d0 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/JSONResponseCallback.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/JSONResponseTextHandler.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/JSONResponseTextHandler.class new file mode 100644 index 00000000..05ed41b1 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/JSONResponseTextHandler.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Loading.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Loading.class new file mode 100644 index 00000000..a193937b Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Loading.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/NoGears.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/NoGears.class new file mode 100644 index 00000000..268a3117 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/NoGears.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ResizeOptions.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ResizeOptions.class new file mode 100644 index 00000000..dc4050a7 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/ResizeOptions.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$1.class new file mode 100644 index 00000000..bc8f7ecb Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$2.class new file mode 100644 index 00000000..4b915dda Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$ProgressBar.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$ProgressBar.class new file mode 100644 index 00000000..d01d465d Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile$ProgressBar.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile.class new file mode 100644 index 00000000..9d888857 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/UploadFile.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Utils.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Utils.class new file mode 100644 index 00000000..3c7d9d9e Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/Utils.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/View$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/View$1.class new file mode 100644 index 00000000..71b9cb7e Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/View$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/View.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/View.class new file mode 100644 index 00000000..ec1a7780 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/View.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/Canvas.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/Canvas.class new file mode 100644 index 00000000..e3224e8c Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/Canvas.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/Factory.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/Factory.class new file mode 100644 index 00000000..8431ae44 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/Factory.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter$1.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter$1.class new file mode 100644 index 00000000..a7211aca Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter$1.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter$2.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter$2.class new file mode 100644 index 00000000..de43b25f Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter$2.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter.class new file mode 100644 index 00000000..e7a21338 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/canvas/ResizeFilter.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropBase.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropBase.class new file mode 100644 index 00000000..b6e58e1d Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropBase.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFile.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFile.class new file mode 100644 index 00000000..0f3950bb Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFile.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFileIE.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFileIE.class new file mode 100644 index 00000000..b7717c7e Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDropFileIE.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDroppableWidget.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDroppableWidget.class new file mode 100644 index 00000000..9aaaf96d Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DesktopDroppableWidget.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactory.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactory.class new file mode 100644 index 00000000..ebf79bbf Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactory.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactoryIE.class b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactoryIE.class new file mode 100644 index 00000000..b31054d1 Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/client/dnddesktop/DndDesktopFactoryIE.class differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/public/G3viewer.css b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/public/G3viewer.css new file mode 100644 index 00000000..e9b7d304 --- /dev/null +++ b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/public/G3viewer.css @@ -0,0 +1,44 @@ +* {padding:0; margin:0;} + +#main {position:relative; width:100%; height:100%} + +.error {width:300px; height:200px;} + +.item {width:100px; height: 130px; padding:3px; border: 2px solid #FFF; overflow: hidden; float:left; text-align:center; position:relative;margin:3px;} +.item img{max-width:96px; max-height:76px; *width:96px; *height:76px; border:2px solid #AAA;} +.item h3{font-size:10px; font-weight:normal; position:absolute; bottom:5px; left:0px; width:100%; text-align:center; padding:0; margin:0;} +.ialbum {background-color: #e3effb; border: 2px solid #91c0ef; } +.popped {background-color: #e3effb;} +.view {height: 100%;} +.DropZone {height: 100px; width:6px; margin: 0 -3px 0 -3px; padding: 0; float:left; text-align:center; position:relative;} +.infobar {background-color: #fff; position: absolute; bottom:0px; border-width: 4px 4px 0 4px; border-style: solid; + border-color: #d2e1f6; height: 15px; width: 240px; right: 50px; font-size:10px; padding: 2px 5px 1px 5px;} +.infobar div {float:right; } +.infobar a {float:left;} +.loading{position:absolute; top:0px; left:0px; width:100%; height: 100%; background-color:#FFF; opacity: 0.7; filter: alpha(opacity = 70);} +.loading-label{z-index:10; position:absolute; width:100%; left:0px; text-align:center;} +.loading-image{z-index:10;} +.gwt-TreeItem-selected .Tree-Album {background-color: #333; color: #FFF;} +.Tree-Album {padding: 1px;} +.Tree-Album:hover{text-decoration:underline;} +.drop-target{background-color: #91c0ef; color: #000;} + +.popup {padding: 2px; border: 1px solid #91c0ef;background-color:#FFF} + +.dialog fieldset{ border: none; padding: 0px; margin: 0px;} +.dialog legend{ display: none;} +.dialog ul {padding:0; margin:0;} +.dialog ul ul li {float:left;} +.dialog li {list-style: none; padding:0;margin:0;} +.dialog form input[type="password"], .dialog form input[type="text"], .dialog form textarea .dialog form select {border: 1px solid #000; padding: 0.2em; display:block; clear: both;} +.dialog form input[type="password"], .dialog form input[type="text"], .dialog form textarea {width: 100%} +.dialog form textarea {height: 12em;} + +.label {width:90px; text-align:center;} +.progressBar {border: 1px solid #cccccc; width: 100px; height: 10px;} +.progessInner {background: #34628c;width: 0px;height: 10px;} + +.dContents {padding: 2px 5px 2px 5px;} +.dButtons {text-align: right} + +.hideme {overflow:hidden; width:0; height:0; margin:0; padding:0;} \ No newline at end of file diff --git a/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/public/loading.gif b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/public/loading.gif new file mode 100644 index 00000000..8f56a82c Binary files /dev/null and b/modules/gwtorganise/war/WEB-INF/classes/com/gloopics/g3viewer/public/loading.gif differ diff --git a/modules/gwtorganise/war/WEB-INF/classes/log4j.properties b/modules/gwtorganise/war/WEB-INF/classes/log4j.properties new file mode 100644 index 00000000..d9c3edc9 --- /dev/null +++ b/modules/gwtorganise/war/WEB-INF/classes/log4j.properties @@ -0,0 +1,24 @@ +# A default log4j configuration for log4j users. +# +# To use this configuration, deploy it into your application's WEB-INF/classes +# directory. You are also encouraged to edit it as you like. + +# Configure the console as our one appender +log4j.appender.A1=org.apache.log4j.ConsoleAppender +log4j.appender.A1.layout=org.apache.log4j.PatternLayout +log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n + +# tighten logging on the DataNucleus Categories +log4j.category.DataNucleus.JDO=WARN, A1 +log4j.category.DataNucleus.Persistence=WARN, A1 +log4j.category.DataNucleus.Cache=WARN, A1 +log4j.category.DataNucleus.MetaData=WARN, A1 +log4j.category.DataNucleus.General=WARN, A1 +log4j.category.DataNucleus.Utility=WARN, A1 +log4j.category.DataNucleus.Transaction=WARN, A1 +log4j.category.DataNucleus.Datastore=WARN, A1 +log4j.category.DataNucleus.ClassLoading=WARN, A1 +log4j.category.DataNucleus.Plugin=WARN, A1 +log4j.category.DataNucleus.ValueGeneration=WARN, A1 +log4j.category.DataNucleus.Enhancer=WARN, A1 +log4j.category.DataNucleus.SchemaTool=WARN, A1 diff --git a/modules/gwtorganise/war/WEB-INF/logging.properties b/modules/gwtorganise/war/WEB-INF/logging.properties deleted file mode 100644 index 4a78b7f3..00000000 --- a/modules/gwtorganise/war/WEB-INF/logging.properties +++ /dev/null @@ -1,28 +0,0 @@ -# A default java.util.logging configuration. -# (All App Engine logging is through java.util.logging by default). -# -# To use this configuration, copy it into your application's WEB-INF -# folder and add the following to your appengine-web.xml: -# -# -# -# -# - -# Set the default logging level for all loggers to WARNING -.level = WARNING - -# Set the default logging level for ORM, specifically, to WARNING -DataNucleus.JDO.level=WARNING -DataNucleus.Persistence.level=WARNING -DataNucleus.Cache.level=WARNING -DataNucleus.MetaData.level=WARNING -DataNucleus.General.level=WARNING -DataNucleus.Utility.level=WARNING -DataNucleus.Transaction.level=WARNING -DataNucleus.Datastore.level=WARNING -DataNucleus.ClassLoading.level=WARNING -DataNucleus.Plugin.level=WARNING -DataNucleus.ValueGeneration.level=WARNING -DataNucleus.Enhancer.level=WARNING -DataNucleus.SchemaTool.level=WARNING diff --git a/modules/gwtorganise/war/WEB-INF/web.xml b/modules/gwtorganise/war/WEB-INF/web.xml deleted file mode 100644 index e552dd69..00000000 --- a/modules/gwtorganise/war/WEB-INF/web.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - greetServlet - com.gloopics.g3viewer.server.GreetingServiceImpl - - - - greetServlet - /g3viewer/greet - - - - - G3viewer.html - - - diff --git a/modules/gwtorganise/war/g3viewer/0031994593072F3F8665BB367C2904F3.cache.html b/modules/gwtorganise/war/g3viewer/0031994593072F3F8665BB367C2904F3.cache.html new file mode 100644 index 00000000..198faab1 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/0031994593072F3F8665BB367C2904F3.cache.html @@ -0,0 +1,1839 @@ + + + + + + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/063AB00068E7F94442F89D1B4262AD00.cache.html b/modules/gwtorganise/war/g3viewer/063AB00068E7F94442F89D1B4262AD00.cache.html new file mode 100644 index 00000000..f19e7d27 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/063AB00068E7F94442F89D1B4262AD00.cache.html @@ -0,0 +1,313 @@ + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/0A9476898799A150D840F0B1C3672921.cache.png b/modules/gwtorganise/war/g3viewer/0A9476898799A150D840F0B1C3672921.cache.png new file mode 100644 index 00000000..08671ce8 Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/0A9476898799A150D840F0B1C3672921.cache.png differ diff --git a/modules/gwtorganise/war/g3viewer/2625E6CD0659684104018A069A188996.cache.html b/modules/gwtorganise/war/g3viewer/2625E6CD0659684104018A069A188996.cache.html new file mode 100644 index 00000000..319f475f --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/2625E6CD0659684104018A069A188996.cache.html @@ -0,0 +1,1811 @@ + + + + + + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/36CF5446615AAE9D0FDDA0B123643155.cache.html b/modules/gwtorganise/war/g3viewer/36CF5446615AAE9D0FDDA0B123643155.cache.html new file mode 100644 index 00000000..e46fe353 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/36CF5446615AAE9D0FDDA0B123643155.cache.html @@ -0,0 +1,308 @@ + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/373CE923F09A0C2270E1B0F2D934E253.cache.html b/modules/gwtorganise/war/g3viewer/373CE923F09A0C2270E1B0F2D934E253.cache.html new file mode 100644 index 00000000..e1f106b9 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/373CE923F09A0C2270E1B0F2D934E253.cache.html @@ -0,0 +1,326 @@ + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/396F806CD63ABD414BFBB9D57429F05B.cache.png b/modules/gwtorganise/war/g3viewer/396F806CD63ABD414BFBB9D57429F05B.cache.png new file mode 100644 index 00000000..009e9872 Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/396F806CD63ABD414BFBB9D57429F05B.cache.png differ diff --git a/modules/gwtorganise/war/g3viewer/4FEE434A493BF0E4969DA18CF936A5FD.cache.html b/modules/gwtorganise/war/g3viewer/4FEE434A493BF0E4969DA18CF936A5FD.cache.html new file mode 100644 index 00000000..e24602d9 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/4FEE434A493BF0E4969DA18CF936A5FD.cache.html @@ -0,0 +1,1807 @@ + + + + + + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/5DDD50A96AC2DC41C6BF0EB870994C49.cache.html b/modules/gwtorganise/war/g3viewer/5DDD50A96AC2DC41C6BF0EB870994C49.cache.html new file mode 100644 index 00000000..1f4fd91f --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/5DDD50A96AC2DC41C6BF0EB870994C49.cache.html @@ -0,0 +1,1793 @@ + + + + + + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/6B11280F72B8881FCDF44A0B47F1E96A.cache.html b/modules/gwtorganise/war/g3viewer/6B11280F72B8881FCDF44A0B47F1E96A.cache.html new file mode 100644 index 00000000..073bb0dc --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/6B11280F72B8881FCDF44A0B47F1E96A.cache.html @@ -0,0 +1,314 @@ + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/8603379B5088782D2C0620FAE856E112.cache.png b/modules/gwtorganise/war/g3viewer/8603379B5088782D2C0620FAE856E112.cache.png new file mode 100644 index 00000000..ded37855 Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/8603379B5088782D2C0620FAE856E112.cache.png differ diff --git a/modules/gwtorganise/war/g3viewer/8E9AF58E0E2BDFC35328028FC368ECD2.cache.html b/modules/gwtorganise/war/g3viewer/8E9AF58E0E2BDFC35328028FC368ECD2.cache.html new file mode 100644 index 00000000..dbce1394 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/8E9AF58E0E2BDFC35328028FC368ECD2.cache.html @@ -0,0 +1,1834 @@ + + + + + + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/DF7764EEC1903CD03C9545B354D8D8E4.cache.png b/modules/gwtorganise/war/g3viewer/DF7764EEC1903CD03C9545B354D8D8E4.cache.png new file mode 100644 index 00000000..fbae9473 Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/DF7764EEC1903CD03C9545B354D8D8E4.cache.png differ diff --git a/modules/gwtorganise/war/g3viewer/E44767377485D18D6B6864F65BA8EF73.cache.png b/modules/gwtorganise/war/g3viewer/E44767377485D18D6B6864F65BA8EF73.cache.png new file mode 100644 index 00000000..030ffab4 Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/E44767377485D18D6B6864F65BA8EF73.cache.png differ diff --git a/modules/gwtorganise/war/g3viewer/EDC7827FEEA59EE44AD790B1C6430C45.cache.png b/modules/gwtorganise/war/g3viewer/EDC7827FEEA59EE44AD790B1C6430C45.cache.png new file mode 100644 index 00000000..714cbb11 Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/EDC7827FEEA59EE44AD790B1C6430C45.cache.png differ diff --git a/modules/gwtorganise/war/g3viewer/F0ACC41901D1A45069B29563B600C0E1.cache.html b/modules/gwtorganise/war/g3viewer/F0ACC41901D1A45069B29563B600C0E1.cache.html new file mode 100644 index 00000000..9cf0edc6 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/F0ACC41901D1A45069B29563B600C0E1.cache.html @@ -0,0 +1,1835 @@ + + + + + + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/FFDD2B79ACD26336C36A836612DAEC0A.cache.html b/modules/gwtorganise/war/g3viewer/FFDD2B79ACD26336C36A836612DAEC0A.cache.html new file mode 100644 index 00000000..6380f246 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/FFDD2B79ACD26336C36A836612DAEC0A.cache.html @@ -0,0 +1,311 @@ + \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/G3viewer.css b/modules/gwtorganise/war/g3viewer/G3viewer.css new file mode 100644 index 00000000..e9b7d304 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/G3viewer.css @@ -0,0 +1,44 @@ +* {padding:0; margin:0;} + +#main {position:relative; width:100%; height:100%} + +.error {width:300px; height:200px;} + +.item {width:100px; height: 130px; padding:3px; border: 2px solid #FFF; overflow: hidden; float:left; text-align:center; position:relative;margin:3px;} +.item img{max-width:96px; max-height:76px; *width:96px; *height:76px; border:2px solid #AAA;} +.item h3{font-size:10px; font-weight:normal; position:absolute; bottom:5px; left:0px; width:100%; text-align:center; padding:0; margin:0;} +.ialbum {background-color: #e3effb; border: 2px solid #91c0ef; } +.popped {background-color: #e3effb;} +.view {height: 100%;} +.DropZone {height: 100px; width:6px; margin: 0 -3px 0 -3px; padding: 0; float:left; text-align:center; position:relative;} +.infobar {background-color: #fff; position: absolute; bottom:0px; border-width: 4px 4px 0 4px; border-style: solid; + border-color: #d2e1f6; height: 15px; width: 240px; right: 50px; font-size:10px; padding: 2px 5px 1px 5px;} +.infobar div {float:right; } +.infobar a {float:left;} +.loading{position:absolute; top:0px; left:0px; width:100%; height: 100%; background-color:#FFF; opacity: 0.7; filter: alpha(opacity = 70);} +.loading-label{z-index:10; position:absolute; width:100%; left:0px; text-align:center;} +.loading-image{z-index:10;} +.gwt-TreeItem-selected .Tree-Album {background-color: #333; color: #FFF;} +.Tree-Album {padding: 1px;} +.Tree-Album:hover{text-decoration:underline;} +.drop-target{background-color: #91c0ef; color: #000;} + +.popup {padding: 2px; border: 1px solid #91c0ef;background-color:#FFF} + +.dialog fieldset{ border: none; padding: 0px; margin: 0px;} +.dialog legend{ display: none;} +.dialog ul {padding:0; margin:0;} +.dialog ul ul li {float:left;} +.dialog li {list-style: none; padding:0;margin:0;} +.dialog form input[type="password"], .dialog form input[type="text"], .dialog form textarea .dialog form select {border: 1px solid #000; padding: 0.2em; display:block; clear: both;} +.dialog form input[type="password"], .dialog form input[type="text"], .dialog form textarea {width: 100%} +.dialog form textarea {height: 12em;} + +.label {width:90px; text-align:center;} +.progressBar {border: 1px solid #cccccc; width: 100px; height: 10px;} +.progessInner {background: #34628c;width: 0px;height: 10px;} + +.dContents {padding: 2px 5px 2px 5px;} +.dButtons {text-align: right} + +.hideme {overflow:hidden; width:0; height:0; margin:0; padding:0;} \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/clear.cache.gif b/modules/gwtorganise/war/g3viewer/clear.cache.gif new file mode 100644 index 00000000..e565824a Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/clear.cache.gif differ diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/0031994593072F3F8665BB367C2904F3/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/0031994593072F3F8665BB367C2904F3/1.cache.js new file mode 100644 index 00000000..28aba6f0 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/0031994593072F3F8665BB367C2904F3/1.cache.js @@ -0,0 +1,6 @@ +function sS(){} +function ES(){return dP} +function IS(){var a;while(xS){a=xS;xS=xS.c;!xS&&(yS=null);qo(a.b)}} +function FS(){AS=true;zS=(CS(),new sS);jy((gy(),fy),1);!!$stats&&$stats(Py(irb,kib,null,null));zS.ac();!!$stats&&$stats(Py(irb,jrb,null,null))} +function qo(a){var b,c,d,e,f;e=($wnd.google&&$wnd.google.gears&&$wnd.google.gears.factory).create(hrb);e.decode(a.b);d=e.width;c=e.height;f=~~(d/a.c.c);b=~~(c/a.c.b);if(f>b){if(f>1){e.resize(a.c.c,~~(c/f));fv(a.d,e.encode())}}else{if(b>1){e.resize(~~(d/b),a.c.b);fv(a.d,e.encode())}}} +var krb='AsyncLoader1',hrb='beta.canvas',irb='runCallbacks1';_=sS.prototype=new tS;_.gC=ES;_.ac=IS;_.tI=0;var dP=P3(Xob,krb);FS(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/0031994593072F3F8665BB367C2904F3/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/0031994593072F3F8665BB367C2904F3/2.cache.js new file mode 100644 index 00000000..f801762e --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/0031994593072F3F8665BB367C2904F3/2.cache.js @@ -0,0 +1,4 @@ +function ry(){my(fy)} +function my(a){jy(a,a.e)} +function jy(a,b){var c;c=b==a.e?iib:jib+b;oy(c,jrb,O4(b),null);if(ly(a,b)){Ay(a.f);Y6(a.b,O4(b));qy(a)}} +var jrb='end';ry(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/063AB00068E7F94442F89D1B4262AD00/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/063AB00068E7F94442F89D1B4262AD00/1.cache.js new file mode 100644 index 00000000..51ec2fbc --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/063AB00068E7F94442F89D1B4262AD00/1.cache.js @@ -0,0 +1,7 @@ +function _g(){} +function Zg(){} +function eh(){} +function Yg(){} +function bh(){bh=op;ah=new Zg} +function dh(){ah=(bh(),new Yg);dc((ac(),_b),1);!!$stats&&$stats(Fc(Ir,Jr,null,null));ah.m();!!$stats&&$stats(Fc(Ir,Kr,null,null))} +var Ir='runCallbacks1';_=Zg.prototype=new O;_.m=_g;_.tI=0;_=Yg.prototype=new Zg;_.m=eh;_.tI=0;var ah;dh(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/063AB00068E7F94442F89D1B4262AD00/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/063AB00068E7F94442F89D1B4262AD00/2.cache.js new file mode 100644 index 00000000..e32edc87 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/063AB00068E7F94442F89D1B4262AD00/2.cache.js @@ -0,0 +1,75 @@ +function $b(){} +function lc(){} +function uc(){} +function xc(){} +function Nc(){} +function Hk(){} +function Gk(){} +function tn(){} +function An(){} +function Fn(){} +function wo(){} +function Ho(){} +function Qo(){} +function kc(){fc(_b)} +function fc(a){dc(a,a.c)} +function Bc(a){Ac(this,a)} +function qc(a){a.b=0;a.c=0} +function tc(a){return a.c-a.b} +function Mk(){return this.a} +function Nk(){return this.a} +function Go(){return this.b} +function Po(){return No(this)} +function rc(a){return a.a[a.b]} +function pc(a,b){a.a[a.c++]=b} +function wc(a,b){Hd();return a} +function zc(a,b){a.a=b;return a} +function Kk(a,b){a.a=b;return a} +function Cn(a,b){a.a=b;return a} +function sc(a){return a.a[a.b++]} +function zn(){return this.b.a.d} +function Dn(){return _m(this.a.a)} +function xn(a){return Pl(this.a,a)} +function Oo(){return this.b!=this.d.a} +function Kn(){return Bo(pg(this,24),0)} +function So(a){a.a=a.b=a;return a} +function Pc(a,b,c){a.b=b;a.a=c;return a} +function vn(a,b,c){a.a=b;a.b=c;return a} +function Fo(a){return To(new Qo,a,this.a),++this.b,true} +function Eo(a){if(a.b==0){throw hp(new fp)}} +function yo(a){a.a=So(new Qo);a.b=0;return a} +function Ao(a,b,c){To(new Qo,b,c);++a.b} +function Ko(a,b,c,d){a.d=d;a.b=c;a.a=b;return a} +function To(a,b,c){a.c=b;a.a=c;a.b=c.b;c.b.a=a;c.b=a;return a} +function oc(a,b){a.a=_f(Cg,0,-1,b,1);return a} +function Rk(){Rk=op;Qk=_f(Eg,0,12,256,0)} +function ac(){ac=op;_b=cc(new $b,2,ag(Cg,0,-1,[]))} +function Fl(a){var b;b=im(new cm,a);return vn(new tn,a,b)} +function En(){var a;a=pg(an(this.a.a),20).D();return a} +function yn(){var a;a=rm(new pm,this.b.a);return Cn(new An,a)} +function In(a,b){var c;c=Bo(this,a);Ao(c.d,b,c.b);++c.a;c.c=null} +function Co(a){var b;Eo(a);--a.b;b=a.a.a;b.a.b=b.b;b.b.a=b.a;b.a=b.b=b;return b.c} +function Lk(a){return a!=null&&ng(a.tI,12)&&pg(a,12).a==this.a} +function Lc(b,c){function d(a){c.h(a)} +return __gwtStartLoadingFragment(b,d)} +function Pl(a,b){if(a.c&&io(a.b,b)){return true}else if(Ol(a,b)){return true}else if(Ml(a,b)){return true}return false} +function kk(c,a){var b=c;c.onreadystatechange=$entry(function(){a.i(b)})} +function ek(b){var a=b;$wnd.setTimeout(function(){a.onreadystatechange=new Function},0)} +function lk(){if($wnd.XMLHttpRequest){return new XMLHttpRequest}else{try{return new ActiveXObject(Pr)}catch(a){return new ActiveXObject(Qr)}}} +function No(a){if(a.b==a.d.a){throw hp(new fp)}a.c=a.b;a.b=a.b.a;++a.a;return a.c.c} +function cc(a,b,c){ac();a.a=ho(new fo);a.f=yo(new wo);a.c=b;a.b=c;a.e=oc(new lc,b+1);return a} +function Mc(a,b){var c,d;c=Lc(a,b);if(c==null){return}d=lk();d.open(Or,c,true);kk(d,Pc(new Nc,d,b));d.send(null)} +function dc(a,b){var c;c=b==a.c?Lr:Mr+b;hc(c,Kr,Ok(b),null);if(ec(a,b)){sc(a.d);Zl(a.a,Ok(b));jc(a)}} +function Bo(a,b){var c,d;(b<0||b>a.b)&&Vm(b,a.b);if(b>=a.b>>1){d=a.a;for(c=a.b;c>b;--c){d=d.b}}else{d=a.a.a;for(c=0;c-129&&a<128){b=a+128;c=(Rk(),Qk)[b];!c&&(c=Qk[b]=Kk(new Gk,a));return c}return Kk(new Gk,a)} +function Jn(b){var a,d;d=Bo(this,b);try{return No(d)}catch(a){a=Og(a);if(sg(a,23)){throw Fk(new Ck,Rr+b)}else throw a}} +function Rn(a,b){if(b.b.a.d==0){return false}Array.prototype.splice.apply(a.a,[a.b,0].concat(xl(b,_f(Fg,0,0,b.b.a.d,0))));a.b+=b.b.a.d;return true} +function Ac(b,c){var a,e,f,g,h,i;h=On(new Ln);while(tc(b.a.e)>0){Pn(h,pg(Co(b.a.f),2));sc(b.a.e)}qc(b.a.e);Rn(h,Fl(b.a.a));Ll(b.a.a);i=null;for(g=$m(new Xm,h);g.a1){return}if(tc(a.d)>0){c=rc(a.d);hc(c==a.c?Lr:Mr+c,Jr,Ok(c),null);Mc(c,zc(new xc,a));return}while(tc(a.e)>0){c=sc(a.e);b=pg(Co(a.f),2);hc(c==a.c?Lr:Mr+c,Jr,Ok(c),null);Mc(c,b)}} +var Rr="Can't get element ",Or='GET',Pr='MSXML2.XMLHTTP.3.0',Qr='Microsoft.XMLHTTP',Jr='begin',Mr='download',Kr='end',Lr='leftoversDownload',Nr='runAsync';_=$b.prototype=new O;_.tI=0;_.b=null;_.c=0;_.d=null;_.e=null;var _b;_=lc.prototype=new O;_.tI=0;_.a=null;_.b=0;_.c=0;_=uc.prototype=new mb;_.tI=7;_=xc.prototype=new O;_.h=Bc;_.tI=8;_.a=null;_=Nc.prototype=new O;_.i=Qc;_.tI=0;_.a=null;_.b=null;_=Hk.prototype=new O;_.tI=27;_=Gk.prototype=new Hk;_.eQ=Lk;_.hC=Mk;_.w=Nk;_.tI=30;_.a=0;var Qk;_=tn.prototype=new ul;_.y=xn;_.s=yn;_.z=zn;_.tI=0;_.a=null;_.b=null;_=An.prototype=new O;_.u=Dn;_.v=En;_.tI=0;_.a=null;_=Fn.prototype=new Nm;_.F=In;_.G=Jn;_.s=Kn;_.tI=41;_=wo.prototype=new Fn;_.x=Fo;_.z=Go;_.tI=45;_.a=null;_.b=0;_=Ho.prototype=new O;_.u=Oo;_.v=Po;_.tI=0;_.a=0;_.b=null;_.c=null;_.d=null;_=Qo.prototype=new O;_.tI=0;_.a=null;_.b=null;_.c=null;var Cg=new rk,Eg=new rk;kc(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/2625E6CD0659684104018A069A188996/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/2625E6CD0659684104018A069A188996/1.cache.js new file mode 100644 index 00000000..a0015130 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/2625E6CD0659684104018A069A188996/1.cache.js @@ -0,0 +1,6 @@ +function _R(){} +function lS(){return OO} +function pS(){var a;while(eS){a=eS;eS=eS.c;!eS&&(fS=null);jo(a.b)}} +function mS(){hS=true;gS=(jS(),new _R);cy((_x(),$x),1);!!$stats&&$stats(Iy(uqb,Bhb,null,null));gS.Zb();!!$stats&&$stats(Iy(uqb,vqb,null,null))} +function jo(a){var b,c,d,e,f;e=($wnd.google&&$wnd.google.gears&&$wnd.google.gears.factory).create(tqb);e.decode(a.b);d=e.width;c=e.height;f=~~(d/a.c.c);b=~~(c/a.c.b);if(f>b){if(f>1){e.resize(a.c.c,~~(c/f));$u(a.d,e.encode())}}else{if(b>1){e.resize(~~(d/b),a.c.b);$u(a.d,e.encode())}}} +var wqb='AsyncLoader1',tqb='beta.canvas',uqb='runCallbacks1';_=_R.prototype=new aS;_.gC=lS;_.Zb=pS;_.tI=0;var OO=e3(job,wqb);mS(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/2625E6CD0659684104018A069A188996/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/2625E6CD0659684104018A069A188996/2.cache.js new file mode 100644 index 00000000..4b86a30d --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/2625E6CD0659684104018A069A188996/2.cache.js @@ -0,0 +1,4 @@ +function ky(){fy($x)} +function fy(a){cy(a,a.e)} +function cy(a,b){var c;c=b==a.e?zhb:Ahb+b;hy(c,vqb,d4(b),null);if(ey(a,b)){ty(a.f);n6(a.b,d4(b));jy(a)}} +var vqb='end';ky(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/36CF5446615AAE9D0FDDA0B123643155/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/36CF5446615AAE9D0FDDA0B123643155/1.cache.js new file mode 100644 index 00000000..8ac56017 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/36CF5446615AAE9D0FDDA0B123643155/1.cache.js @@ -0,0 +1,7 @@ +function Yg(){} +function Wg(){} +function bh(){} +function Vg(){} +function $g(){$g=ep;Zg=new Wg} +function ah(){Zg=($g(),new Vg);ac((Zb(),Yb),1);!!$stats&&$stats(Cc(mr,nr,null,null));Zg.m();!!$stats&&$stats(Cc(mr,or,null,null))} +var mr='runCallbacks1';_=Wg.prototype=new O;_.m=Yg;_.tI=0;_=Vg.prototype=new Wg;_.m=bh;_.tI=0;var Zg;ah(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/36CF5446615AAE9D0FDDA0B123643155/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/36CF5446615AAE9D0FDDA0B123643155/2.cache.js new file mode 100644 index 00000000..26150e15 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/36CF5446615AAE9D0FDDA0B123643155/2.cache.js @@ -0,0 +1,75 @@ +function Xb(){} +function ic(){} +function rc(){} +function uc(){} +function Kc(){} +function xk(){} +function wk(){} +function jn(){} +function qn(){} +function vn(){} +function mo(){} +function xo(){} +function Go(){} +function hc(){cc(Yb)} +function cc(a){ac(a,a.d)} +function yc(a){xc(this,a)} +function nc(a){a.c=0;a.d=0} +function qc(a){return a.d-a.c} +function Ck(){return this.b} +function Dk(){return this.b} +function wo(){return this.c} +function Fo(){return Do(this)} +function oc(a){return a.b[a.c]} +function mc(a,b){a.b[a.d++]=b} +function tc(a,b){Dd();return a} +function wc(a,b){a.b=b;return a} +function Ak(a,b){a.b=b;return a} +function sn(a,b){a.b=b;return a} +function pc(a){return a.b[a.c++]} +function pn(){return this.c.b.e} +function tn(){return Rm(this.b.b)} +function nn(a){return Fl(this.b,a)} +function Eo(){return this.c!=this.e.b} +function An(){return ro(mg(this,24),0)} +function Io(a){a.b=a.c=a;return a} +function Mc(a,b,c){a.c=b;a.b=c;return a} +function ln(a,b,c){a.b=b;a.c=c;return a} +function lc(a,b){a.b=Yf(zg,0,-1,b,1);return a} +function qo(a,b,c){Jo(new Go,b,c);++a.c} +function Ao(a,b,c,d){a.e=d;a.c=c;a.b=b;return a} +function Jo(a,b,c){a.d=b;a.b=c;a.c=c.c;c.c.b=a;c.c=a;return a} +function oo(a){a.b=Io(new Go);a.c=0;return a} +function uo(a){if(a.c==0){throw Zo(new Xo)}} +function vo(a){return Jo(new Go,a,this.b),++this.c,true} +function Zb(){Zb=ep;Yb=_b(new Xb,2,Zf(zg,0,-1,[]))} +function Hk(){Hk=ep;Gk=Yf(Bg,0,12,256,0)} +function un(){var a;a=mg(Sm(this.b.b),20).D();return a} +function vl(a){var b;b=$l(new Ul,a);return ln(new jn,a,b)} +function on(){var a;a=hm(new fm,this.c.b);return sn(new qn,a)} +function yn(a,b){var c;c=ro(this,a);qo(c.e,b,c.c);++c.b;c.d=null} +function so(a){var b;uo(a);--a.c;b=a.b.b;b.b.c=b.c;b.c.b=b.b;b.b=b.c=b;return b.d} +function Bk(a){return a!=null&&kg(a.tI,12)&&mg(a,12).b==this.b} +function ec(a,b,c,d){!!$stats&&$stats(Cc(a,b,c,d))} +function Ic(b,c){function d(a){c.i(a)} +return __gwtStartLoadingFragment(b,d)} +function Fl(a,b){if(a.d&&Zn(a.c,b)){return true}else if(El(a,b)){return true}else if(Cl(a,b)){return true}return false} +function Do(a){if(a.c==a.e.b){throw Zo(new Xo)}a.d=a.c;a.c=a.c.b;++a.b;return a.d.d} +function _b(a,b,c){Zb();a.b=Yn(new Wn);a.g=oo(new mo);a.d=b;a.c=c;a.f=lc(new ic,b+1);return a} +function Jc(a,b){var c,d;c=Ic(a,b);if(c==null){return}d=bk();d.open(sr,c,true);ak(d,Mc(new Kc,d,b));d.send(null)} +function ac(a,b){var c;c=b==a.d?pr:qr+b;ec(c,or,Ek(b),null);if(bc(a,b)){pc(a.e);Pl(a.b,Ek(b));gc(a)}} +function ro(a,b){var c,d;(b<0||b>a.c)&&Lm(b,a.c);if(b>=a.c>>1){d=a.b;for(c=a.c;c>b;--c){d=d.c}}else{d=a.b.b;for(c=0;c-129&&a<128){b=a+128;c=(Hk(),Gk)[b];!c&&(c=Gk[b]=Ak(new wk,a));return c}return Ak(new wk,a)} +function Hn(a,b){if(b.c.b.e==0){return false}Array.prototype.splice.apply(a.b,[a.c,0].concat(nl(b,Yf(Cg,0,0,b.c.b.e,0))));a.c+=b.c.b.e;return true} +function xc(b,c){var a,e,f,g,h,i;h=En(new Bn);while(qc(b.b.f)>0){Fn(h,mg(so(b.b.g),2));pc(b.b.f)}nc(b.b.f);Hn(h,vl(b.b.b));Bl(b.b.b);i=null;for(g=Qm(new Nm,h);g.b1){return}if(qc(a.e)>0){c=oc(a.e);ec(c==a.d?pr:qr+c,nr,Ek(c),null);Jc(c,wc(new uc,a));return}while(qc(a.f)>0){c=pc(a.f);b=mg(so(a.g),2);ec(c==a.d?pr:qr+c,nr,Ek(c),null);Jc(c,b)}} +var vr="Can't get element ",sr='GET',tr='MSXML2.XMLHTTP.3.0',ur='Microsoft.XMLHTTP',nr='begin',qr='download',or='end',pr='leftoversDownload',rr='runAsync';_=Xb.prototype=new O;_.tI=0;_.c=null;_.d=0;_.e=null;_.f=null;var Yb;_=ic.prototype=new O;_.tI=0;_.b=null;_.c=0;_.d=0;_=rc.prototype=new mb;_.tI=7;_=uc.prototype=new O;_.i=yc;_.tI=8;_.b=null;_=Kc.prototype=new O;_.j=Nc;_.tI=0;_.b=null;_.c=null;_=xk.prototype=new O;_.tI=27;_=wk.prototype=new xk;_.eQ=Bk;_.hC=Ck;_.w=Dk;_.tI=30;_.b=0;var Gk;_=jn.prototype=new kl;_.y=nn;_.s=on;_.z=pn;_.tI=0;_.b=null;_.c=null;_=qn.prototype=new O;_.u=tn;_.v=un;_.tI=0;_.b=null;_=vn.prototype=new Dm;_.F=yn;_.G=zn;_.s=An;_.tI=41;_=mo.prototype=new vn;_.x=vo;_.z=wo;_.tI=45;_.b=null;_.c=0;_=xo.prototype=new O;_.u=Eo;_.v=Fo;_.tI=0;_.b=0;_.c=null;_.d=null;_.e=null;_=Go.prototype=new O;_.tI=0;_.b=null;_.c=null;_.d=null;var zg=new hk,Bg=new hk;hc(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/373CE923F09A0C2270E1B0F2D934E253/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/373CE923F09A0C2270E1B0F2D934E253/1.cache.js new file mode 100644 index 00000000..6625256a --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/373CE923F09A0C2270E1B0F2D934E253/1.cache.js @@ -0,0 +1,7 @@ +function jh(){} +function hh(){} +function oh(){} +function gh(){} +function lh(){lh=sp;kh=new hh} +function nh(){kh=(lh(),new gh);ac((Zb(),Yb),1);!!$stats&&$stats(Cc(Dr,Er,null,null));kh.q();!!$stats&&$stats(Cc(Dr,Fr,null,null))} +var Dr='runCallbacks1';_=hh.prototype=new O;_.q=jh;_.tI=0;_=gh.prototype=new hh;_.q=oh;_.tI=0;var kh;nh(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/373CE923F09A0C2270E1B0F2D934E253/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/373CE923F09A0C2270E1B0F2D934E253/2.cache.js new file mode 100644 index 00000000..4cd6961e --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/373CE923F09A0C2270E1B0F2D934E253/2.cache.js @@ -0,0 +1,75 @@ +function Xb(){} +function ic(){} +function rc(){} +function uc(){} +function Kc(){} +function Ik(){} +function Hk(){} +function xn(){} +function En(){} +function Jn(){} +function Ao(){} +function Lo(){} +function Uo(){} +function hc(){cc(Yb)} +function cc(a){ac(a,a.d)} +function yc(a){xc(this,a)} +function nc(a){a.c=0;a.d=0} +function qc(a){return a.d-a.c} +function Nk(){return this.b} +function Ok(){return this.b} +function Ko(){return this.c} +function To(){return Ro(this)} +function oc(a){return a.b[a.c]} +function mc(a,b){a.b[a.d++]=b} +function tc(a,b){Ed();return a} +function wc(a,b){a.b=b;return a} +function Lk(a,b){a.b=b;return a} +function Gn(a,b){a.b=b;return a} +function pc(a){return a.b[a.c++]} +function Dn(){return this.c.b.e} +function Hn(){return dn(this.b.b)} +function Bn(a){return Tl(this.b,a)} +function So(){return this.c!=this.e.b} +function On(){return Fo(yg(this,24),0)} +function Wo(a){a.b=a.c=a;return a} +function Mc(a,b,c){a.c=b;a.b=c;return a} +function zn(a,b,c){a.b=b;a.c=c;return a} +function Jo(a){return Xo(new Uo,a,this.b),++this.c,true} +function Io(a){if(a.c==0){throw lp(new jp)}} +function Co(a){a.b=Wo(new Uo);a.c=0;return a} +function Eo(a,b,c){Xo(new Uo,b,c);++a.c} +function Oo(a,b,c,d){a.e=d;a.c=c;a.b=b;return a} +function Xo(a,b,c){a.d=b;a.b=c;a.c=c.c;c.c.b=a;c.c=a;return a} +function lc(a,b){a.b=ig(Mg,0,-1,b,1);return a} +function Sk(){Sk=sp;Rk=ig(Og,0,12,256,0)} +function In(){var a;a=yg(en(this.b.b),20).H();return a} +function Cn(){var a;a=vm(new tm,this.c.b);return Gn(new En,a)} +function Jl(a){var b;b=mm(new gm,a);return zn(new xn,a,b)} +function Zb(){Zb=sp;Yb=_b(new Xb,2,jg(Mg,0,-1,[]))} +function ec(a,b,c,d){!!$stats&&$stats(Cc(a,b,c,d))} +function Ic(b,c){function d(a){c.i(a)} +return __gwtStartLoadingFragment(b,d)} +function Mn(a,b){var c;c=Fo(this,a);Eo(c.e,b,c.c);++c.b;c.d=null} +function Go(a){var b;Io(a);--a.c;b=a.b.b;b.b.c=b.c;b.c.b=b.b;b.b=b.c=b;return b.d} +function lk(c,a){var b=c;c.onreadystatechange=$entry(function(){a.j(b)})} +function fk(b){var a=b;$wnd.setTimeout(function(){a.onreadystatechange=new Function},0)} +function Nn(b){var a,d;d=Fo(this,b);try{return Ro(d)}catch(a){a=Yg(a);if(Bg(a,23)){throw Gk(new Dk,Mr+b)}else throw a}} +function Ro(a){if(a.c==a.e.b){throw lp(new jp)}a.d=a.c;a.c=a.c.b;++a.b;return a.d.d} +function _b(a,b,c){Zb();a.b=lo(new jo);a.g=Co(new Ao);a.d=b;a.c=c;a.f=lc(new ic,b+1);return a} +function Tl(a,b){if(a.d&&mo(a.c,b)){return true}else if(Sl(a,b)){return true}else if(Ql(a,b)){return true}return false} +function ac(a,b){var c;c=b==a.d?Gr:Hr+b;ec(c,Fr,Pk(b),null);if(bc(a,b)){pc(a.e);bm(a.b,Pk(b));gc(a)}} +function Jc(a,b){var c,d;c=Ic(a,b);if(c==null){return}d=mk();d.open(Jr,c,true);lk(d,Mc(new Kc,d,b));d.send(null)} +function bc(a,b){var c,d,e,f;if(b==a.d){return true}for(d=a.c,e=0,f=d.length;e-129&&a<128){b=a+128;c=(Sk(),Rk)[b];!c&&(c=Rk[b]=Lk(new Hk,a));return c}return Lk(new Hk,a)} +function Sl(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=b[c];if(e.F(a,d)){return true}}}return false} +function Ql(i,a){var b=i.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;e0){Tn(h,yg(Go(b.b.g),2));pc(b.b.f)}nc(b.b.f);Vn(h,Jl(b.b.b));Pl(b.b.b);i=null;for(g=cn(new _m,h);g.b1){return}if(qc(a.e)>0){c=oc(a.e);ec(c==a.d?Gr:Hr+c,Er,Pk(c),null);Jc(c,wc(new uc,a));return}while(qc(a.f)>0){c=pc(a.f);b=yg(Go(a.g),2);ec(c==a.d?Gr:Hr+c,Er,Pk(c),null);Jc(c,b)}} +function Fo(a,b){var c,d;(b<0||b>a.c)&&Zm(b,a.c);if(b>=a.c>>1){d=a.b;for(c=a.c;c>b;--c){d=d.c}}else{d=a.b.b;for(c=0;cb){if(f>1){e.resize(a.b.b,~~(c/f));Yu(a.c,e.encode())}}else{if(b>1){e.resize(~~(d/b),a.b.a);Yu(a.c,e.encode())}}} +var grb='AsyncLoader1',drb='beta.canvas',erb='runCallbacks1';_=hS.prototype=new iS;_.gC=tS;_.Zb=xS;_.tI=0;var RO=K3(Pob,grb);uS(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/4FEE434A493BF0E4969DA18CF936A5FD/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/4FEE434A493BF0E4969DA18CF936A5FD/2.cache.js new file mode 100644 index 00000000..6cb0eb93 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/4FEE434A493BF0E4969DA18CF936A5FD/2.cache.js @@ -0,0 +1,4 @@ +function ly(){gy(_x)} +function gy(a){dy(a,a.d)} +function dy(a,b){var c;c=b==a.d?Yhb:Zhb+b;iy(c,frb,J4(b),null);if(fy(a,b)){uy(a.e);S6(a.a,J4(b));ky(a)}} +var frb='end';ly(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/5DDD50A96AC2DC41C6BF0EB870994C49/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/5DDD50A96AC2DC41C6BF0EB870994C49/1.cache.js new file mode 100644 index 00000000..dc57ad14 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/5DDD50A96AC2DC41C6BF0EB870994C49/1.cache.js @@ -0,0 +1,6 @@ +function YR(){} +function iS(){return MO} +function mS(){var a;while(bS){a=bS;bS=bS.c;!bS&&(cS=null);io(a.b)}} +function jS(){eS=true;dS=(gS(),new YR);ay((Zx(),Yx),1);!!$stats&&$stats(Gy(cqb,nhb,null,null));dS.$b();!!$stats&&$stats(Gy(cqb,dqb,null,null))} +function io(a){var b,c,d,e,f;e=($wnd.google&&$wnd.google.gears&&$wnd.google.gears.factory).create(bqb);e.decode(a.b);d=e.width;c=e.height;f=~~(d/a.c.c);b=~~(c/a.c.b);if(f>b){if(f>1){e.resize(a.c.c,~~(c/f));Yu(a.d,e.encode())}}else{if(b>1){e.resize(~~(d/b),a.c.b);Yu(a.d,e.encode())}}} +var eqb='AsyncLoader1',bqb='beta.canvas',cqb='runCallbacks1';_=YR.prototype=new ZR;_.gC=iS;_.$b=mS;_.tI=0;var MO=R2(Unb,eqb);jS(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/5DDD50A96AC2DC41C6BF0EB870994C49/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/5DDD50A96AC2DC41C6BF0EB870994C49/2.cache.js new file mode 100644 index 00000000..304e5f17 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/5DDD50A96AC2DC41C6BF0EB870994C49/2.cache.js @@ -0,0 +1,4 @@ +function iy(){dy(Yx)} +function dy(a){ay(a,a.e)} +function ay(a,b){var c;c=b==a.e?lhb:mhb+b;fy(c,dqb,Q3(b),null);if(cy(a,b)){ry(a.f);_5(a.b,Q3(b));hy(a)}} +var dqb='end';iy(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/6B11280F72B8881FCDF44A0B47F1E96A/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/6B11280F72B8881FCDF44A0B47F1E96A/1.cache.js new file mode 100644 index 00000000..4629cb0b --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/6B11280F72B8881FCDF44A0B47F1E96A/1.cache.js @@ -0,0 +1,7 @@ +function Xg(){} +function Vg(){} +function ah(){} +function Ug(){} +function Zg(){Zg=fp;Yg=new Vg} +function _g(){Yg=(Zg(),new Ug);ac((Zb(),Yb),1);!!$stats&&$stats(Cc(qr,rr,null,null));Yg.m();!!$stats&&$stats(Cc(qr,sr,null,null))} +var qr='runCallbacks1';_=Vg.prototype=new O;_.m=Xg;_.tI=0;_=Ug.prototype=new Vg;_.m=ah;_.tI=0;var Yg;_g(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/6B11280F72B8881FCDF44A0B47F1E96A/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/6B11280F72B8881FCDF44A0B47F1E96A/2.cache.js new file mode 100644 index 00000000..4f19fa5f --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/6B11280F72B8881FCDF44A0B47F1E96A/2.cache.js @@ -0,0 +1,75 @@ +function Xb(){} +function ic(){} +function rc(){} +function uc(){} +function Kc(){} +function yk(){} +function xk(){} +function kn(){} +function rn(){} +function wn(){} +function no(){} +function yo(){} +function Ho(){} +function hc(){cc(Yb)} +function cc(a){ac(a,a.d)} +function yc(a){xc(this,a)} +function nc(a){a.c=0;a.d=0} +function qc(a){return a.d-a.c} +function Dk(){return this.b} +function Ek(){return this.b} +function xo(){return this.c} +function Go(){return Eo(this)} +function oc(a){return a.b[a.c]} +function mc(a,b){a.b[a.d++]=b} +function tc(a,b){Ed();return a} +function wc(a,b){a.b=b;return a} +function Bk(a,b){a.b=b;return a} +function tn(a,b){a.b=b;return a} +function pc(a){return a.b[a.c++]} +function qn(){return this.c.b.e} +function un(){return Sm(this.b.b)} +function on(a){return Gl(this.b,a)} +function Fo(){return this.c!=this.e.b} +function Bn(){return so(lg(this,24),0)} +function Jo(a){a.b=a.c=a;return a} +function Mc(a,b,c){a.c=b;a.b=c;return a} +function mn(a,b,c){a.b=b;a.c=c;return a} +function wo(a){return Ko(new Ho,a,this.b),++this.c,true} +function vo(a){if(a.c==0){throw $o(new Yo)}} +function po(a){a.b=Jo(new Ho);a.c=0;return a} +function ro(a,b,c){Ko(new Ho,b,c);++a.c} +function Bo(a,b,c,d){a.e=d;a.c=c;a.b=b;return a} +function Ko(a,b,c){a.d=b;a.b=c;a.c=c.c;c.c.b=a;c.c=a;return a} +function lc(a,b){a.b=Xf(yg,0,-1,b,1);return a} +function Ik(){Ik=fp;Hk=Xf(Ag,0,12,256,0)} +function Zb(){Zb=fp;Yb=_b(new Xb,2,Yf(yg,0,-1,[]))} +function wl(a){var b;b=_l(new Vl,a);return mn(new kn,a,b)} +function vn(){var a;a=lg(Tm(this.b.b),20).D();return a} +function pn(){var a;a=im(new gm,this.c.b);return tn(new rn,a)} +function zn(a,b){var c;c=so(this,a);ro(c.e,b,c.c);++c.b;c.d=null} +function to(a){var b;vo(a);--a.c;b=a.b.b;b.b.c=b.c;b.c.b=b.b;b.b=b.c=b;return b.d} +function Ck(a){return a!=null&&jg(a.tI,12)&&lg(a,12).b==this.b} +function ec(a,b,c,d){!!$stats&&$stats(Cc(a,b,c,d))} +function Ic(b,c){function d(a){c.i(a)} +return __gwtStartLoadingFragment(b,d)} +function Gl(a,b){if(a.d&&$n(a.c,b)){return true}else if(Fl(a,b)){return true}else if(Dl(a,b)){return true}return false} +function Eo(a){if(a.c==a.e.b){throw $o(new Yo)}a.d=a.c;a.c=a.c.b;++a.b;return a.d.d} +function _b(a,b,c){Zb();a.b=Zn(new Xn);a.g=po(new no);a.d=b;a.c=c;a.f=lc(new ic,b+1);return a} +function Xj(b){var a=b;$wnd.setTimeout(function(){a.onreadystatechange=new Function},0)} +function bk(c,a){var b=c;c.onreadystatechange=$entry(function(){a.j(b)})} +function Fl(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=b[c];if(e.B(a,d)){return true}}}return false} +function Dl(i,a){var b=i.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;ea.c)&&Mm(b,a.c);if(b>=a.c>>1){d=a.b;for(c=a.c;c>b;--c){d=d.c}}else{d=a.b.b;for(c=0;c-129&&a<128){b=a+128;c=(Ik(),Hk)[b];!c&&(c=Hk[b]=Bk(new xk,a));return c}return Bk(new xk,a)} +function ck(){if($wnd.XMLHttpRequest){return new XMLHttpRequest}else{try{return new ActiveXObject(xr)}catch(a){return new ActiveXObject(yr)}}} +function xc(b,c){var a,e,f,g,h,i;h=Fn(new Cn);while(qc(b.b.f)>0){Gn(h,lg(to(b.b.g),2));pc(b.b.f)}nc(b.b.f);In(h,wl(b.b.b));Cl(b.b.b);i=null;for(g=Rm(new Om,h);g.b1){return}if(qc(a.e)>0){c=oc(a.e);ec(c==a.d?tr:ur+c,rr,Fk(c),null);Jc(c,wc(new uc,a));return}while(qc(a.f)>0){c=pc(a.f);b=lg(to(a.g),2);ec(c==a.d?tr:ur+c,rr,Fk(c),null);Jc(c,b)}} +var zr="Can't get element ",wr='GET',xr='MSXML2.XMLHTTP.3.0',yr='Microsoft.XMLHTTP',rr='begin',ur='download',sr='end',tr='leftoversDownload',vr='runAsync';_=Xb.prototype=new O;_.tI=0;_.c=null;_.d=0;_.e=null;_.f=null;var Yb;_=ic.prototype=new O;_.tI=0;_.b=null;_.c=0;_.d=0;_=rc.prototype=new mb;_.tI=7;_=uc.prototype=new O;_.i=yc;_.tI=8;_.b=null;_=Kc.prototype=new O;_.j=Nc;_.tI=0;_.b=null;_.c=null;_=yk.prototype=new O;_.tI=27;_=xk.prototype=new yk;_.eQ=Ck;_.hC=Dk;_.w=Ek;_.tI=30;_.b=0;var Hk;_=kn.prototype=new ll;_.y=on;_.s=pn;_.z=qn;_.tI=0;_.b=null;_.c=null;_=rn.prototype=new O;_.u=un;_.v=vn;_.tI=0;_.b=null;_=wn.prototype=new Em;_.F=zn;_.G=An;_.s=Bn;_.tI=41;_=no.prototype=new wn;_.x=wo;_.z=xo;_.tI=45;_.b=null;_.c=0;_=yo.prototype=new O;_.u=Fo;_.v=Go;_.tI=0;_.b=0;_.c=null;_.d=null;_.e=null;_=Ho.prototype=new O;_.tI=0;_.b=null;_.c=null;_.d=null;var yg=new ik,Ag=new ik;hc(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/8E9AF58E0E2BDFC35328028FC368ECD2/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/8E9AF58E0E2BDFC35328028FC368ECD2/1.cache.js new file mode 100644 index 00000000..c628482d --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/8E9AF58E0E2BDFC35328028FC368ECD2/1.cache.js @@ -0,0 +1,6 @@ +function zS(){} +function LS(){return fP} +function PS(){var a;while(ES){a=ES;ES=ES.b;!ES&&(FS=null);ko(a.a)}} +function MS(){HS=true;GS=(JS(),new zS);gy((dy(),cy),1);!!$stats&&$stats(My(zsb,Oib,null,null));GS.Zb();!!$stats&&$stats(My(zsb,Asb,null,null))} +function ko(a){var b,c,d,e,f;e=($wnd.google&&$wnd.google.gears&&$wnd.google.gears.factory).create(ysb);e.decode(a.a);d=e.width;c=e.height;f=~~(d/a.b.b);b=~~(c/a.b.a);if(f>b){if(f>1){e.resize(a.b.b,~~(c/f));$u(a.c,e.encode())}}else{if(b>1){e.resize(~~(d/b),a.b.a);$u(a.c,e.encode())}}} +var Bsb='AsyncLoader1',ysb='beta.canvas',zsb='runCallbacks1';_=zS.prototype=new AS;_.gC=LS;_.Zb=PS;_.tI=0;var fP=z4(gqb,Bsb);MS(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/8E9AF58E0E2BDFC35328028FC368ECD2/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/8E9AF58E0E2BDFC35328028FC368ECD2/2.cache.js new file mode 100644 index 00000000..22bb2db7 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/8E9AF58E0E2BDFC35328028FC368ECD2/2.cache.js @@ -0,0 +1,4 @@ +function oy(){jy(cy)} +function jy(a){gy(a,a.d)} +function gy(a,b){var c;c=b==a.d?Mib:Nib+b;ly(c,Asb,y5(b),null);if(iy(a,b)){xy(a.e);H7(a.a,y5(b));ny(a)}} +var Asb='end';oy(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/F0ACC41901D1A45069B29563B600C0E1/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/F0ACC41901D1A45069B29563B600C0E1/1.cache.js new file mode 100644 index 00000000..f4c58224 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/F0ACC41901D1A45069B29563B600C0E1/1.cache.js @@ -0,0 +1,6 @@ +function zS(){} +function LS(){return jP} +function PS(){var a;while(ES){a=ES;ES=ES.c;!ES&&(FS=null);po(a.b)}} +function MS(){HS=true;GS=(JS(),new zS);hy((ey(),dy),1);!!$stats&&$stats(Ny(hrb,hib,null,null));GS.cc();!!$stats&&$stats(Ny(hrb,irb,null,null))} +function po(a){var b,c,d,e,f;e=($wnd.google&&$wnd.google.gears&&$wnd.google.gears.factory).create(grb);e.decode(a.b);d=e.width;c=e.height;f=~~(d/a.c.c);b=~~(c/a.c.b);if(f>b){if(f>1){e.resize(a.c.c,~~(c/f));dv(a.d,e.encode())}}else{if(b>1){e.resize(~~(d/b),a.c.b);dv(a.d,e.encode())}}} +var jrb='AsyncLoader1',grb='beta.canvas',hrb='runCallbacks1';_=zS.prototype=new AS;_.gC=LS;_.cc=PS;_.tI=0;var jP=R3(Vob,jrb);MS(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/F0ACC41901D1A45069B29563B600C0E1/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/F0ACC41901D1A45069B29563B600C0E1/2.cache.js new file mode 100644 index 00000000..35b948e8 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/F0ACC41901D1A45069B29563B600C0E1/2.cache.js @@ -0,0 +1,4 @@ +function py(){ky(dy)} +function ky(a){hy(a,a.e)} +function hy(a,b){var c;c=b==a.e?fib:gib+b;my(c,irb,Q4(b),null);if(jy(a,b)){yy(a.f);$6(a.b,Q4(b));oy(a)}} +var irb='end';py(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/FFDD2B79ACD26336C36A836612DAEC0A/1.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/FFDD2B79ACD26336C36A836612DAEC0A/1.cache.js new file mode 100644 index 00000000..1ae48cc1 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/FFDD2B79ACD26336C36A836612DAEC0A/1.cache.js @@ -0,0 +1,7 @@ +function Ug(){} +function Sg(){} +function Zg(){} +function Rg(){} +function Wg(){Wg=cp;Vg=new Sg} +function Yg(){Vg=(Wg(),new Rg);ac((Zb(),Yb),1);!!$stats&&$stats(Cc(nr,or,null,null));Vg.m();!!$stats&&$stats(Cc(nr,pr,null,null))} +var nr='runCallbacks1';_=Sg.prototype=new O;_.m=Ug;_.tI=0;_=Rg.prototype=new Sg;_.m=Zg;_.tI=0;var Vg;Yg(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/deferredjs/FFDD2B79ACD26336C36A836612DAEC0A/2.cache.js b/modules/gwtorganise/war/g3viewer/deferredjs/FFDD2B79ACD26336C36A836612DAEC0A/2.cache.js new file mode 100644 index 00000000..852a926c --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/deferredjs/FFDD2B79ACD26336C36A836612DAEC0A/2.cache.js @@ -0,0 +1,75 @@ +function Xb(){} +function ic(){} +function rc(){} +function uc(){} +function Kc(){} +function vk(){} +function uk(){} +function gn(){} +function on(){} +function tn(){} +function ko(){} +function vo(){} +function Eo(){} +function hc(){cc(Yb)} +function cc(a){ac(a,a.d)} +function yc(a){xc(this,a)} +function nc(a){a.c=0;a.d=0} +function qc(a){return a.d-a.c} +function Ak(){return this.b} +function Bk(){return this.b} +function uo(){return this.c} +function Do(){return Bo(this)} +function oc(a){return a.b[a.c]} +function mc(a,b){a.b[a.d++]=b} +function tc(a,b){Ed();return a} +function wc(a,b){a.b=b;return a} +function yk(a,b){a.b=b;return a} +function qn(a,b){a.b=b;return a} +function pc(a){return a.b[a.c++]} +function nn(){return this.c.b.e} +function rn(){return Pm(this.b.b)} +function ln(a){return Dl(this.b,a)} +function Co(){return this.c!=this.e.b} +function yn(){return po(ig(this,24),0)} +function so(a){if(a.c==0){throw Xo(new Vo)}} +function Go(a){a.b=a.c=a;return a} +function Mc(a,b,c){a.c=b;a.b=c;return a} +function jn(a,b,c){a.b=b;a.c=c;return a} +function to(a){return Ho(new Eo,a,this.b),++this.c,true} +function oo(a,b,c){Ho(new Eo,b,c);++a.c} +function mo(a){a.b=Go(new Eo);a.c=0;return a} +function yo(a,b,c,d){a.e=d;a.c=c;a.b=b;return a} +function Ho(a,b,c){a.d=b;a.b=c;a.c=c.c;c.c.b=a;c.c=a;return a} +function lc(a,b){a.b=Uf(vg,0,-1,b,1);return a} +function Fk(){Fk=cp;Ek=Uf(xg,0,12,256,0)} +function Zb(){Zb=cp;Yb=_b(new Xb,2,Vf(vg,0,-1,[]))} +function tl(a){var b;b=Yl(new Sl,a);return jn(new gn,a,b)} +function sn(){var a;a=ig(Qm(this.b.b),20).D();return a} +function mn(){var a;a=fm(new dm,this.c.b);return qn(new on,a)} +function wn(a,b){var c;c=po(this,a);oo(c.e,b,c.c);++c.b;c.d=null} +function qo(a){var b;so(a);--a.c;b=a.b.b;b.b.c=b.c;b.c.b=b.b;b.b=b.c=b;return b.d} +function zk(a){return a!=null&&gg(a.tI,12)&&ig(a,12).b==this.b} +function ec(a,b,c,d){!!$stats&&$stats(Cc(a,b,c,d))} +function Ic(b,c){function d(a){c.i(a)} +return __gwtStartLoadingFragment(b,d)} +function Dl(a,b){if(a.d&&Xn(a.c,b)){return true}else if(Cl(a,b)){return true}else if(Al(a,b)){return true}return false} +function Bo(a){if(a.c==a.e.b){throw Xo(new Vo)}a.d=a.c;a.c=a.c.b;++a.b;return a.d.d} +function _b(a,b,c){Zb();a.b=Wn(new Un);a.g=mo(new ko);a.d=b;a.c=c;a.f=lc(new ic,b+1);return a} +function Uj(b){var a=b;$wnd.setTimeout(function(){a.onreadystatechange=new Function},0)} +function $j(c,a){var b=c;c.onreadystatechange=$entry(function(){a.j(b)})} +function Cl(e,a){var b=e.f;for(var c in b){if(c.charCodeAt(0)==58){var d=b[c];if(e.B(a,d)){return true}}}return false} +function Al(i,a){var b=i.b;for(var c in b){if(c==parseInt(c)){var d=b[c];for(var e=0,f=d.length;ea.c)&&Jm(b,a.c);if(b>=a.c>>1){d=a.b;for(c=a.c;c>b;--c){d=d.c}}else{d=a.b.b;for(c=0;c-129&&a<128){b=a+128;c=(Fk(),Ek)[b];!c&&(c=Ek[b]=yk(new uk,a));return c}return yk(new uk,a)} +function _j(){if($wnd.XMLHttpRequest){return new XMLHttpRequest}else{try{return new ActiveXObject(ur)}catch(a){return new ActiveXObject(vr)}}} +function xc(b,c){var a,e,f,g,h,i;h=Cn(new zn);while(qc(b.b.f)>0){Dn(h,ig(qo(b.b.g),2));pc(b.b.f)}nc(b.b.f);Fn(h,tl(b.b.b));zl(b.b.b);i=null;for(g=Om(new Lm,h);g.b1){return}if(qc(a.e)>0){c=oc(a.e);ec(c==a.d?qr:rr+c,or,Ck(c),null);Jc(c,wc(new uc,a));return}while(qc(a.f)>0){c=pc(a.f);b=ig(qo(a.g),2);ec(c==a.d?qr:rr+c,or,Ck(c),null);Jc(c,b)}} +var wr="Can't get element ",tr='GET',ur='MSXML2.XMLHTTP.3.0',vr='Microsoft.XMLHTTP',or='begin',rr='download',pr='end',qr='leftoversDownload',sr='runAsync';_=Xb.prototype=new O;_.tI=0;_.c=null;_.d=0;_.e=null;_.f=null;var Yb;_=ic.prototype=new O;_.tI=0;_.b=null;_.c=0;_.d=0;_=rc.prototype=new mb;_.tI=7;_=uc.prototype=new O;_.i=yc;_.tI=8;_.b=null;_=Kc.prototype=new O;_.j=Nc;_.tI=0;_.b=null;_.c=null;_=vk.prototype=new O;_.tI=27;_=uk.prototype=new vk;_.eQ=zk;_.hC=Ak;_.w=Bk;_.tI=30;_.b=0;var Ek;_=gn.prototype=new il;_.y=ln;_.s=mn;_.z=nn;_.tI=0;_.b=null;_.c=null;_=on.prototype=new O;_.u=rn;_.v=sn;_.tI=0;_.b=null;_=tn.prototype=new Bm;_.F=wn;_.G=xn;_.s=yn;_.tI=41;_=ko.prototype=new tn;_.x=to;_.z=uo;_.tI=45;_.b=null;_.c=0;_=vo.prototype=new O;_.u=Co;_.v=Do;_.tI=0;_.b=0;_.c=null;_.d=null;_.e=null;_=Eo.prototype=new O;_.tI=0;_.b=null;_.c=null;_.d=null;var vg=new fk,xg=new fk;hc(); \ No newline at end of file diff --git a/modules/gwtorganise/war/g3viewer/g3viewer.nocache.js b/modules/gwtorganise/war/g3viewer/g3viewer.nocache.js new file mode 100644 index 00000000..c70e2b26 --- /dev/null +++ b/modules/gwtorganise/war/g3viewer/g3viewer.nocache.js @@ -0,0 +1,11 @@ +function g3viewer(){var M='',nb='" for "gwt:onLoadErrorFn"',lb='" for "gwt:onPropertyErrorFn"',Y='"><\/script>',$='#',Wb='.cache.html',ab='/',Lb='0031994593072F3F8665BB367C2904F3',Mb='063AB00068E7F94442F89D1B4262AD00',Nb='2625E6CD0659684104018A069A188996',Ob='36CF5446615AAE9D0FDDA0B123643155',Pb='373CE923F09A0C2270E1B0F2D934E253',Qb='4FEE434A493BF0E4969DA18CF936A5FD',Rb='5DDD50A96AC2DC41C6BF0EB870994C49',Sb='6B11280F72B8881FCDF44A0B47F1E96A',Tb='8E9AF58E0E2BDFC35328028FC368ECD2',gc=' + +This html file is for hosted mode support. + diff --git a/modules/gwtorganise/war/g3viewer/loading.gif b/modules/gwtorganise/war/g3viewer/loading.gif new file mode 100644 index 00000000..8f56a82c Binary files /dev/null and b/modules/gwtorganise/war/g3viewer/loading.gif differ diff --git a/modules/gwtorganise/war/index.php b/modules/gwtorganise/war/index.php index 965b69cd..8928ee20 100644 --- a/modules/gwtorganise/war/index.php +++ b/modules/gwtorganise/war/index.php @@ -1,3 +1,3 @@ Gallery Administration

+?>Gallery Administration
diff --git a/modules/jhead/helpers/jhead_event.php b/modules/jhead/helpers/jhead_event.php new file mode 100644 index 00000000..260189ca --- /dev/null +++ b/modules/jhead/helpers/jhead_event.php @@ -0,0 +1,53 @@ +is_photo()) { + return; + } + + // Locate jhead + if ( ! is_file($path = exec('which jhead'))) { + // @todo throw an exception ? + Kohana::log('error', 'jhead is not installed'); + } + $binary = str_replace('\\', '/', realpath(dirname($path))); + $binary .= '/jhead'; + $binary .= (PHP_SHLIB_SUFFIX === 'dll') ? '.exe' : ''; + + if ( ! is_file($binary)) { + // @todo throw an exception ? + Kohana::log('error', 'Unable to locate jhead binary'); + } + + // Invoke jhead + if ($error = exec(escapeshellcmd($binary).' -q -autorot '.$item->file_path())) { + // @todo throw an exception ? + Kohana::log('error', 'Error during execution of jhead'); + } + + // Update item + $image_info = getimagesize($item->file_path()); + $item->width = $image_info[0]; + $item->height = $image_info[1]; + $item->save(); + } +} diff --git a/modules/jhead/helpers/jhead_installer.php b/modules/jhead/helpers/jhead_installer.php new file mode 100644 index 00000000..ed2bb243 --- /dev/null +++ b/modules/jhead/helpers/jhead_installer.php @@ -0,0 +1,33 @@ +deactivate)) { + site_status::warning( + t("The MetaDescription module requires the Tags module. " . + "Activate the Tags module now", + array("url" => url::site("admin/modules"))), + "metadescription_needs_tag"); + } else { + site_status::clear("metadescription_needs_tag"); + } + } +} diff --git a/modules/metadescription/helpers/metadescription_installer.php b/modules/metadescription/helpers/metadescription_installer.php new file mode 100644 index 00000000..07cdd8ec --- /dev/null +++ b/modules/metadescription/helpers/metadescription_installer.php @@ -0,0 +1,34 @@ +id}") . ">" . html::clean($tag->name) . ""; + $anchors[] = "" . html::clean($tag->name) . ""; } $results .= join(", ", $anchors) . ""; } diff --git a/modules/rwinfo/views/rwinfo_block.html.php b/modules/rwinfo/views/rwinfo_block.html.php index 20f6efa8..97bb3054 100644 --- a/modules/rwinfo/views/rwinfo_block.html.php +++ b/modules/rwinfo/views/rwinfo_block.html.php @@ -43,7 +43,7 @@ - name}") ?>">name) ?> + name) ?> diff --git a/modules/tagfaces/controllers/tagfaces.php b/modules/tagfaces/controllers/tagfaces.php index 26f1284e..c9f3059d 100644 --- a/modules/tagfaces/controllers/tagfaces.php +++ b/modules/tagfaces/controllers/tagfaces.php @@ -20,7 +20,6 @@ class tagfaces_Controller extends Controller { public function drawfaces($id) { // Generate the page that allows the user to draw boxes over a photo. - // Make sure user has access to view and edit the photo. $item = ORM::factory("item", $id); access::required("view", $item); @@ -48,29 +47,44 @@ class tagfaces_Controller extends Controller { access::verify_csrf(); // Convert submitted data to local variables. + // Figure out which tagged faces and notes to delete. $tag_data = Input::instance()->post("facesList"); + $note_data = Input::instance()->post("notesList"); + // Figure out the item id, in order to reload the correct face tagging page. $item_data = Input::instance()->post("item_id"); - // If the user didn't select a tag, display and error and abort. - if (count($tag_data) == 0) { - message::error(t("Please select a tag.")); + // If the user didn't select a tag or note, display and error and abort. + if ((count($tag_data) == 0) && (count($note_data) == 0)) { + message::error(t("Please select a tag or note to delete.")); url::redirect("tagfaces/drawfaces/$item_data"); return; } // Delete the face(s) from the database. foreach ($tag_data as $one_tag) { - ORM::factory("items_face") - ->where("id", "=", $one_tag) - ->delete_all(); + db::build()->delete("items_faces")->where("id", "=", $one_tag)->execute(); } - // Display a success message. + // Delete the notes(s) from the database. + foreach ($note_data as $one_note) { + db::build()->delete("items_notes")->where("id", "=", $one_note)->execute(); + } + + // Display a success message for deleted faces. if (count($tag_data) == 1) { message::success(t("One face deleted.")); - } else { + } elseif (count($tag_data) > 1) { message::success(count($tag_data) . t(" faces deleted.")); } + + // Display a success message for deleted notes. + if (count($note_data) == 1) { + message::success(t("One note deleted.")); + } elseif (count($note_data) > 1) { + message::success(count($note_data) . t(" notes deleted.")); + } + + // Re-load the face tagging page. url::redirect("tagfaces/drawfaces/$item_data"); } @@ -179,20 +193,23 @@ class tagfaces_Controller extends Controller { ->label(t("Select a tag or enter in a title:")); $tags_group->dropdown('tagsList') - ->label(t("Select a tag:")) + ->label(t("Tag:")) + ->id('tagsList') ->options($array_tags); $tags_group->input("face_title") - ->label(t("Title")); + ->id('face_title') + ->label(t("Note Title:")); $tags_description = $form->group("TagsDescription") ->label(t("Description (optional):")); - $tags_description->input("face_description"); + $tags_description->input("face_description") + ->id('face_description'); // Generate input boxes to hold the coordinates of the face. $coordinates_group = $form->group("FaceCoordinates") ->label(t("Coordinates:")); - $coordinates_group->input("x1") + $coordinates_group->input('x1') ->id('x1') ->label(t("X1")); $coordinates_group->input("y1") @@ -206,7 +223,7 @@ class tagfaces_Controller extends Controller { ->label(t("Y2")); // Add the id# of the photo and a save button to the form. - $form->hidden("item_id")->value($id); + $coordinates_group->hidden("item_id")->value($id); $form->submit("SaveFace")->value(t("Save face")); // Return the newly generated form. @@ -216,7 +233,6 @@ class tagfaces_Controller extends Controller { private function _get_delfaces_form($id) { // Generate a form to allow the user to remove face data // from a photo. - // Make a new Form. $form = new Forge("tagfaces/delface", "", "post", array("id" => "g-tag-del-faces-form")); @@ -238,14 +254,44 @@ class tagfaces_Controller extends Controller { // Add a checklist to the form. $tags_group = $form->group("ExistingFaces") ->label(t("Tags with faces:")); + // Add the id# of the photo and a delete button to the form. + $tags_group->hidden("item_id")->value($id); + $tags_group->checklist("facesList") ->options($array_faces) ->label(t("Select the tag(s) that correspond(s) to the face(s) you wish to delete:")); } - // Add the id# of the photo and a delete button to the form. - $form->hidden("item_id")->value($id); - $form->submit("DeleteFace")->value(t("Delete face(s)")); + // Create an array of all the notes associated with this photo. + $existing_notes = ORM::factory("items_note") + ->where("item_id", "=", $id) + ->find_all(); + + // turn the $existing_notes array into an array that can be used + // for a checklist. + $array_notes = ""; + foreach ($existing_notes as $oneNote) { + $array_notes[$oneNote->id] = array($oneNote->title, false); + } + + if ($array_notes) { + // Add a checklist to the form. + $notes_group = $form->group("ExistingNotes") + ->label(t("Notes:")); + // Add the id# of the photo and a delete button to the form. + $notes_group->hidden("item_id")->value($id); + + $notes_group->checklist("notesList") + ->options($array_notes) + ->label(t("Select the notes you wish to delete:")); + } + + // Hide the delete button when there's nothing to delete. + if (($array_notes) || ($array_faces)) { + $form->submit("DeleteFace")->value(t("Delete face(s) / note(s)")); + } else { + $form->group("NoFacesNotes")->label(t("There is nothing to delete for this photo.")); + } // Return the newly generated form. return $form; diff --git a/modules/tagfaces/helpers/tagfaces_event.php b/modules/tagfaces/helpers/tagfaces_event.php index 77613304..d0478f23 100644 --- a/modules/tagfaces/helpers/tagfaces_event.php +++ b/modules/tagfaces/helpers/tagfaces_event.php @@ -58,18 +58,14 @@ class tagfaces_event_Core { ->where("item_id", "=", $item->id) ->find_all(); if (count($existingFaces) > 0) { - ORM::factory("items_face") - ->where("item_id", "=", $item->id) - ->delete_all(); + db::build()->delete("items_faces")->where("item_id", "=", $item->id)->execute(); } $existingNotes = ORM::factory("items_note") ->where("item_id", "=", $item->id) ->find_all(); if (count($existingNotes) > 0) { - ORM::factory("items_note") - ->where("item_id", "=", $item->id) - ->delete_all(); + db::build()->delete("items_notes")->where("item_id", "=", $item->id)->execute(); } } } diff --git a/modules/tagfaces/views/drawfaces.html.php b/modules/tagfaces/views/drawfaces.html.php index 161f717a..981854c8 100644 --- a/modules/tagfaces/views/drawfaces.html.php +++ b/modules/tagfaces/views/drawfaces.html.php @@ -115,18 +115,11 @@ li {
-

-

+

- - - - - -
diff --git a/modules/tagfaces/views/drawfaces_highlight_block.html.php b/modules/tagfaces/views/drawfaces_highlight_block.html.php index 26321461..efd9c7c4 100644 --- a/modules/tagfaces/views/drawfaces_highlight_block.html.php +++ b/modules/tagfaces/views/drawfaces_highlight_block.html.php @@ -42,7 +42,7 @@ divface.style.display = 'block'; divface.style.left = (photoimg.offsetLeft + x1) + 'px'; - divface.style.top = (photodiv.offsetTop + y1) + 'px'; + divface.style.top = (photodiv.offsetTop + 24 + y1) + 'px'; divface.style.width=(x2-x1) + 'px'; divface.style.height=(y2-y1) + 'px'; if (str_url == '') { diff --git a/modules/tagsmap/controllers/admin_tagsmap.php b/modules/tagsmap/controllers/admin_tagsmap.php index d461de37..c0af4bea 100644 --- a/modules/tagsmap/controllers/admin_tagsmap.php +++ b/modules/tagsmap/controllers/admin_tagsmap.php @@ -68,10 +68,8 @@ class Admin_TagsMap_Controller extends Admin_Controller { // If the tag no longer exists then delete the record. if (count($oneTag) == 0) { - // Delete the record. - ORM::factory("tags_gps") - ->where("tag_id", "=", $oneGPS->tag_id) - ->delete_all(); + // Delete the record. + db::build()->delete("tags_gpses")->where("tag_id", "=", $oneGPS->tag_id)->execute(); $int_deleted_records++; } } @@ -100,9 +98,7 @@ class Admin_TagsMap_Controller extends Admin_Controller { // Delete the GSP data associated with a tag. // Delete the record. - ORM::factory("tags_gps") - ->where("tag_id", "=", $tag_id) - ->delete_all(); + db::build()->delete("tags_gpses")->where("tag_id", "=", $tag_id)->execute(); // Redirect back to the main screen and display a "success" message. message::success(t("Your Settings Have Been Saved.")); diff --git a/modules/tagsmap/views/tagsmap_googlemap.html.php b/modules/tagsmap/views/tagsmap_googlemap.html.php index fdc7a1aa..8e08eabd 100644 --- a/modules/tagsmap/views/tagsmap_googlemap.html.php +++ b/modules/tagsmap/views/tagsmap_googlemap.html.php @@ -1,4 +1,5 @@ + @@ -43,12 +44,13 @@ // Create markers for each tag with GPS coordinates. + tag_id); ?> var myGeographicCoordinates = new GLatLng(latitude ?>, longitude ?>); map.addOverlay(createMarker(myGeographicCoordinates, - "description ?>", - "tag_id")?>", - "tag_id)->name ?>" + "description; ?>", + "url(); ?>", + "name); ?>" )); diff --git a/themes/okat_dark/admin/helpers/three_nids_event.php b/themes/okat_dark/admin/helpers/three_nids_event.php new file mode 100644 index 00000000..25f54b0b --- /dev/null +++ b/themes/okat_dark/admin/helpers/three_nids_event.php @@ -0,0 +1,42 @@ +group("three_nids")->label(t("3nids Theme Settings")); + $group->input("title") + ->rules("required") + ->label(t("item title : parent or item.")) + ->value(module::get_var("three_nids", "title")); + $group->input("description") + ->rules("required") + ->label(t("item description : tags or item or parent or nothing. If item description chosen and not available, then parent description is used.")) + ->value(module::get_var("three_nids", "description")); + $group->input("photo_size") + ->rules("required") + ->label(t("Photo size: resize or full.")) + ->value(module::get_var("three_nids", "photo_size")); + } + + static function theme_edit_form_completed($form) { + module::set_var("three_nids", "description", $form->three_nids->description->value); + module::set_var("three_nids", "title", $form->three_nids->title->value); + module::set_var("three_nids", "photo_size", $form->three_nids->photo_size->value); + } +} \ No newline at end of file diff --git a/themes/okat_dark/controllers/three_nids.php b/themes/okat_dark/controllers/three_nids.php new file mode 100644 index 00000000..07236556 --- /dev/null +++ b/themes/okat_dark/controllers/three_nids.php @@ -0,0 +1,36 @@ +where("item_id", "=", $item->id) + ->where("state", "=", "published") + ->order_by("created", "ASC") + ->find_all(); + + $v = new Theme_View("comments.html", "other", "comment-fragment"); + $v->comments = $comments; + $v->item = $item; + print $v; + } +} diff --git a/themes/okat_dark/css/fix-ie.css b/themes/okat_dark/css/fix-ie.css new file mode 100644 index 00000000..fcebeea8 --- /dev/null +++ b/themes/okat_dark/css/fix-ie.css @@ -0,0 +1,29 @@ +/** + * Fix display in IE 6, 7 + */ + +#g-banner { + z-index: 2; +} + +input.submit { + clear: none !important; + display: inline !important; +} + +#g-add-tag-form input.textbox { + width: 110px; +} + +#g-dialog .g-cancel { + display: inline-block !important; + float: none !important; +} + +.g-pager .g-text-right { + width: 29%; +} + +.g-pager .ui-icon-right { + width: 60px; +} diff --git a/themes/okat_dark/css/jquery.fancybox.css b/themes/okat_dark/css/jquery.fancybox.css new file mode 100644 index 00000000..35fe8bea --- /dev/null +++ b/themes/okat_dark/css/jquery.fancybox.css @@ -0,0 +1,658 @@ +html, body { + height: 100%; +} + +div#fancy_overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: black; + display: none; + z-index: 30; +} + +* html div#fancy_overlay { + position: absolute; + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); +} + +div#fancy_wrap { + text-align: middle; +} + +div#fancy_loading { + position: absolute; + height: 40px; + width: 40px; + cursor: pointer; + display: none; + overflow: hidden; + background: transparent; + z-index: 100; +} + +div#fancy_loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background: transparent url('../images/fancy_progress.png') no-repeat; +} + +div#fancy_loading_overlay { + position: absolute; + background-color: #FFF; + z-index: 30; +} + +div#fancy_outer { + position: absolute; + top: 0; + left: 0; + z-index: 90; + padding: 18px 18px 20px 0px; + margin: 0; + overflow: hidden; + background: transparent; + display: none; +} + +div#fancy_inner { + position: relative; + width:100%; + height:100%; + border: 1px solid #BBB; + background: #FFF; +} + +div#fancy_content { + margin: 0; + z-index: 100; + position: absolute; +} + +div#fancy_div { + background: #000; + color: #FFF; + height: 100%; + width: 100%; + z-index: 100; +} + +img#fancy_img { + position: absolute; + top: 0; + left: 0; + border:0; + padding: 0; + margin: 0; + z-index: 100; + width: 100%; + height: 100%; +} + +div#fancy_close { + position: absolute; + top: -12px; + right: -15px; + height: 30px; + width: 30px; + background: url('../images/fancy_closebox.png') top left no-repeat; + cursor: pointer; + z-index: 181; + display: none; +} + +#fancy_frame { + position: relative; + width: 100%; + height: 100%; + display: none; +} + +#fancy_ajax { + width: 100%; + height: 100%; + overflow: auto; +} + +a#fancy_left, a#fancy_right { + position: absolute; + top: 15px; + height: 50px; + width: 30%; + cursor: pointer; + z-index: 111; + display: none; + background-image: url('data:image/gif;base64,AAAA'); + outline: none; +} + +a#fancy_left { + left: 0px; +} + +a#fancy_right { + right: 0px; +} + +span.fancy_ico { + position: absolute; + top: 50%; + margin-top: -15px; + width: 30px; + height: 30px; + z-index: 112; + cursor: pointer; + display: block; +} + +span#fancy_left_ico { + left: -9999px; + background: transparent url('../images/fancy_left.png') no-repeat; +} + +span#fancy_right_ico { + right: -9999px; + background: transparent url('../images/fancy_right.png') no-repeat; +} + +a#fancy_left:hover { + visibility: visible; +} + +a#fancy_right:hover { + visibility: visible; +} + +a#fancy_left:hover span { + left: 20px; +} + +a#fancy_right:hover span { + right: 20px; +} + +.fancy_bigIframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; +} + +div#fancy_bg { + position: absolute; + top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 70; + border: 0; + padding: 0; + margin: 0; +} + +div.fancy_bg { + position: absolute; + display: block; + z-index: 70; + border: 0; + padding: 0; + margin: 0; +} + +div.fancy_bg_n { + top: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_n.png') repeat-x; +} + +div.fancy_bg_ne { + top: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_ne.png') no-repeat; +} + +div.fancy_bg_e { + right: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_e.png') repeat-y; +} + +div.fancy_bg_se { + bottom: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_se.png') no-repeat; +} + +div.fancy_bg_s { + bottom: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_s.png') repeat-x; +} + +div.fancy_bg_sw { + bottom: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_sw.png') no-repeat; +} + +div.fancy_bg_w { + left: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_w.png') repeat-y; +} + +div.fancy_bg_nw { + top: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_nw.png') no-repeat; +} + +div#fancy_title { + position: absolute; + bottom: -20px; + left: 0; + z-index: 100; + display: none; +} + +div#fancy_title div { + color: #FFF; + font: bold 10px Arial; + padding-bottom: 3px; +} + +div#fancy_title table { + margin: 0 auto; +} + +div#fancy_title table td { + padding: 0; + vertical-align: middle; +} + +td#fancy_title_left { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_left.png') repeat-x; +} + +td#fancy_title_main { + height: 32px; + background: transparent url('../images/fancy_title_main.png') repeat-x; +} + +td#fancy_title_right { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_right.png') repeat-x; +} + +div#fancy_modules { + position: absolute; + bottom: -20px; + right: 0px; + z-index: 100; + display: none; +} +div#fancy_modules div { + color: #FFF; + font: bold 10px Arial; + padding-bottom: 3px; +} + +div#fancy_modules table { + margin: 0 auto; +} + +div#fancy_modules table td { + padding: 0; + vertical-align: middle; +} + +td#fancy_modules_left { + border-color: #333333; + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_left.png') repeat-x; +} + +td#fancy_modules_main { + border-color: #333333; + height: 32px; + background: transparent url('../images/fancy_title_main.png') repeat-x; +} + +td#fancy_modules_right { + border-color: #333333; + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_right.png') repeat-x; +} + +/* ************************************************* */ +/* ************************************************* */ +/* ************************************************* */ +/* ************************************************* */ + +div#mod_overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: black; + display: none; + z-index: 1030; +} + +* html div#mod_overlay { + position: absolute; + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); +} + +div#mod_wrap { + text-align: middle; +} + +div#mod_loading { + position: absolute; + height: 40px; + width: 40px; + cursor: pointer; + display: none; + overflow: hidden; + background: transparent; + z-index: 10100; +} + +div#mod_loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background: transparent url('../images/fancy_progress.png') no-repeat; +} + +div#mod_loading_overlay { + position: absolute; + background-color: #FFF; + z-index: 1030; +} + +div#mod_outer { + position: absolute; + top: 0; + left: 0; + z-index: 1090; + padding: 18px 18px 20px 0px; + margin: 0; + overflow: hidden; + background: transparent; + display: none; +} + +div#mod_inner { + position: relative; + width:100%; + height:100%; + border: 1px solid #BBB; + background: #FFF; +} + +div#mod_content { + margin: 0; + z-index: 10100; + position: absolute; +} + +div#mod_div { + background: #000; + color: #FFF; + height: 100%; + width: 100%; + z-index: 10100; +} + +img#mod_img { + position: absolute; + top: 0; + left: 0; + border:0; + padding: 0; + margin: 0; + z-index: 10100; + width: 100%; + height: 100%; +} + +div#mod_close { + position: absolute; + top: -12px; + right: -15px; + height: 30px; + width: 30px; + background: url('../images/fancy_closebox.png') top left no-repeat; + cursor: pointer; + z-index: 10181; + display: none; +} + +#mod_frame { + position: relative; + width: 100%; + height: 100%; + display: none; +} + +#mod_ajax { + width: 100%; + height: 100%; + overflow: auto; +} + +a#mod_left, a#mod_right { + position: absolute; + bottom: 0px; + height: 100%; + width: 35%; + cursor: pointer; + z-index: 10111; + display: none; + background-image: url('data:image/gif;base64,AAAA'); + outline: none; +} + +a#mod_left { + left: 0px; +} + +a#mod_right { + right: 0px; +} + +span.mod_ico { + position: absolute; + top: 50%; + margin-top: -15px; + width: 30px; + height: 30px; + z-index: 10112; + cursor: pointer; + display: block; +} + +span#mod_left_ico { + left: -9999px; + background: transparent url('../images/fancy_left.png') no-repeat; +} + +span#mod_right_ico { + right: -9999px; + background: transparent url('../images/fancy_right.png') no-repeat; +} + +a#mod_left:hover { + visibility: visible; +} + +a#mod_right:hover { + visibility: visible; +} + +a#mod_left:hover span { + left: 20px; +} + +a#mod_right:hover span { + right: 20px; +} + +.mod_bigIframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; +} + +div#mod_bg { + position: absolute; + top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 1070; + border: 0; + padding: 0; + margin: 0; +} + +div.mod_bg { + position: absolute; + display: block; + z-index: 1070; + border: 0; + padding: 0; + margin: 0; +} + +div.mod_bg_n { + top: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_n.png') repeat-x; +} + +div.mod_bg_ne { + top: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_ne.png') no-repeat; +} + +div.mod_bg_e { + right: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_e.png') repeat-y; +} + +div.mod_bg_se { + bottom: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_se.png') no-repeat; +} + +div.mod_bg_s { + bottom: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_s.png') repeat-x; +} + +div.mod_bg_sw { + bottom: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_sw.png') no-repeat; +} + +div.mod_bg_w { + left: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_w.png') repeat-y; +} + +div.mod_bg_nw { + top: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_nw.png') no-repeat; +} + +div#mod_title { + position: absolute; + bottom: -20px; + left: 0; + z-index: 10100; + display: none; +} + +div#mod_title div { + color: #FFF; + font: bold 10px Arial; + padding-bottom: 3px; +} + +div#mod_title table { + margin: 0 auto; +} + +div#mod_title table td { + padding: 0; + vertical-align: middle; +} + +td#mod_title_left { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_left.png') repeat-x; +} + +td#mod_title_main { + height: 32px; + background: transparent url('../images/fancy_title_main.png') repeat-x; +} + +td#mod_title_right { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_right.png') repeat-x; +} + + diff --git a/themes/okat_dark/css/screen.css b/themes/okat_dark/css/screen.css new file mode 100644 index 00000000..da31e1f5 --- /dev/null +++ b/themes/okat_dark/css/screen.css @@ -0,0 +1,847 @@ +/** + * Gallery 3 Default Theme Screen Styles + * + * @requires YUI reset, font, grids CSS + * + * Sheet organization: + * 1) Basic HTML elements + * 2) Reusable content blocks + * 3) Page layout containers + * 4) Content blocks in specific layout containers + * 5) Navigation and menus + * 6) Browser hacks + * 7) jQuery and jQuery UI + * 8) Right-to-left language styles + */ + +/** ******************************************************************* + * 1) Basic HTML elements + **********************************************************************/ + +body, html { + background-color: #000000; + font-family: 'Corbel', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif; + color: #e8e8e8; +} + +p { + margin-bottom: 1em; +} + +em { + font-style: oblique; +} + +h1, h2, h3, h4, h5, strong, th { + font-weight: none; +} + +h1 { + font-size: 1.2em; +} +h2{ + font-size: 1.1em; + color: #ffffff; +} + +#g-search-results h1 { + margin-bottom: 1em; +} + +#g-progress h1 { + font-size: 1.1em; +} + +#g-sidebar .g-block h2 { + font-size: 1.2em; +} + +#g-sidebar .g-block li { + margin-bottom: .6em; +} + +h3 { + font-size: 1.2em; +} +h4 { + font-size: 0.9em; +} + +/* Links ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +a, +.g-menu a, +#g-dialog a, +.g-button, +.g-button:hover, +.g-button:active, +a.ui-state-hover, +input.ui-state-hover, +button.ui-state-hover { + color: #eeeeee !important; + cursor: pointer !important; + text-decoration: none; + -moz-outline-style: none; +} + +#g-button{ + font-size: 0.4em; +} + +a:hover, +#g-dialog a:hover { + text-decoration: underline; +} + +.g-menu a:hover { + text-decoration: none; + font-size: 0.4em; +} + +#g-dialog #g-action-status li { + width: 400px; + white-space: normal; + padding-left: 32px; +} + +/* Tables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +table { + width: 100%; +} + +#g-content table { + margin: 1em 0; +} + +caption, +th { + text-align: left; +} + +th, +td { + border: none; + border-bottom: 1px solid #ccc; + padding: .5em; + vertical-align: top; +} + +/* Forms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +fieldset { + border: 1px solid #ccc; + padding-bottom: .8em; +} + +#g-banner fieldset, +#g-sidebar fieldset, +.g-short-form fieldset { + border: none; +} + +legend { + font-weight: bold; + margin-left: 1em; + color: #e8e8e8; +} + +#g-banner legend, +#g-sidebar legend, +#g-content #g-search-form legend, +input[type="hidden"], +.g-short-form label { + display: none; +} + +label { + cursor: help; +} + +input[type="text"], +input[type="password"] { + width: 50%; +} + +input[type="text"], +input[type="password"], +textarea { + border: 1px solid #e8e8e8; + border-top-color: #ccc; + border-left-color: #ccc; + color: #333; +} + +textarea { + width: 90%; + height: 12em; +} + +input:focus, +textarea:focus, +option:focus { + background-color: #ffc; + color: #000; +} + +/* Form layout ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +form li { + margin: 0 !important; + padding: .3em 1.5em .3em 1em; +} + +form ul ul { + clear: both; +} + +form ul ul li { + float: left; +} + +input, +select, +textarea { + display: block; + clear: both; + padding: .2em; +} + +input[type="submit"], +input[type="reset"] { + display: inline; + clear: none; + float: left; +} + +/* Form validation ~~~~~~~~~~~~~~~~~~~~~~~ */ + +form.g-error input[type="text"], +li.g-error input[type="text"], +form.g-error input[type="password"], +li.g-error input[type="password"], +form.g-error input[type="checkbox"], +li.g-error input[type="checkbox"], +form.g-error input[type="radio"], +li.g-error input[type="radio"], +form.g-error textarea, +li.g-error textarea, +form.g-error select, +li.g-error select { + border: 2px solid red; +} + +/** ******************************************************************* + * 2) Reusable content blocks + *********************************************************************/ + +.g-block h2 { + background-color: #333; + padding: .3em .8em; +} + +.g-block-content { + margin-top: 1em; +} + +/* Status messages ~~~~~~~~~~~~~~~~~~~~~~~ */ + +/* Inline layout (forms, lists) ~~~~~~~~~~ */ + +.g-short-form li { + float: left; + padding: .4em 0; +} + +.g-short-form input[type="text"] { + color: #666; + padding: .3em .6em; + width: 11em; +} + +/*** ****************************************************************** + * 3) Page layout containers + *********************************************************************/ + +/* View container ~~~~~~~~~~~~~~~~~~~~~~~~ */ + +.g-view { + background-color: #4C4C4C; + border: 1px solid #e8e8e8; + border-bottom: none; +} + +/* Layout containers ~~~~~~~~~~~~~~~~~~~~~ */ + +#g-header { + margin-bottom: 1em; + background-color: #484848; + border-bottom: 1px solid #e8e8e8; +} + +#g-banner { + background-color: #333333; + border-bottom: 1px solid #e8e8e8; + font-size: .8em; + min-height: 5em; + padding: 1em 20px; + position: relative; +} + +#g-content { + font-size: 1.2em; + padding-left: 20px; + position: relative; + width: 95%; +} + +#g-sidebar { + background-color: #333333; + font-size: .9em; + margin-right: 10px; + padding: 0 20px; + width: 220px; +} + +#g-footer { + background-color: #484848; + border-top: 1px solid #ccc; + font-size: .8em; + margin-top: 20px; + padding: 10px 20px; +} + +/** ******************************************************************* + * 4) Content blocks in specific layout containers + *********************************************************************/ + +/* Header ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-banner #g-logo img { + margin: 0; +} + +#g-banner #g-quick-search-form { + clear: right; + float: right; + margin-top: 1em; +} + +#g-banner #g-quick-search-form input[type='text'] { + width: 17em; +} + +#g-content .g-block h2 { + background-color: transparent; + padding-left: 0; +} + +#g-sidebar .g-block-content { + padding-left: 1em; +} + +/* Album content ~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-content #g-album-grid { + margin: 1em 0; + position: relative; + z-index: 1; +} + +#g-content #g-album-grid .g-item { + background-color: #484848; + border: 1px solid #000000; + margin: 2px; + float: left; + font-size: .7em; + padding: .6em 8px; + position: relative; + text-align: center; + width: 110px; + height: 140px; + z-index: 1; +} + +#g-content #g-album-grid .g-item h2 { + margin: 5px 0; +} + +#g-content .g-photo h2, +#g-content .g-item .g-metadata { + color: #ffffcc; + display: none; + margin-bottom: .6em; +} + +#g-content #g-album-grid .g-album { + background-color: #484848; +} + +#g-content #g-album-grid .g-album h2 span { + background: transparent url('../images/ico-album.png') no-repeat top left; + display: inline-block; + height: 16px; + margin-right: 5px; + width: 16px; +} + +#g-content #g-album-grid .g-hover-item { + background-color: #000; + position: absolute !important; + z-index: 1000 !important; + border: 1px solid #FFFFFF; +} + +#g-content .g-hover-item h2, +#g-content .g-hover-item .g-metadata { + display: block; +} + +#g-content #g-album-grid #g-place-holder { + position: relative; + visibility: hidden; + z-index: 1; +} + +/* Individual photo content ~~~~~~~~~~~~~~ */ + +#g-content #g-item { + position: relative; + width: 100%; +} + +#g-content #g-photo { + position: relative; +} + +#g-content #g-item .g-fullsize-link img { + display: block; + margin: 1em auto !important; +} + +#g-comments { + margin-top: 2em; + position: relative; +} + +#g-comments ul li { + margin: 1em 0; +} + +#g-comments .g-author { + border-bottom: 1px solid #ccc; + color: #999; + height: 32px; + line-height: 32px; +} + +#g-comments ul li div { + padding: 0 8px 8px 43px; +} + +#g-comments ul li #g-recaptcha { + padding: 0; +} + +#g-comments ul li #g-recaptcha div { + padding: 0; +} + +#g-comments .g-avatar { + height: 32px; + margin-right: .4em; + width: 32px; +} + +#g-admin-comment-button { + position: absolute; + right: 0; + top: 2px; +} + +#g-content #g-comment-form { + margin-top: 2em; +} + +/* Footer content ~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-footer #g-credits li { + padding-right: 1.2em; +} + +#g-content #g-search-results { + margin-top: 1em; + padding-top: 1em; +} + +/* In-line editing ~~~~~~~~~~~~~~~~~~~~~ */ +#g-in-place-edit-message { + background-color: #FFF; +} + +/** ******************************************************************* + * 5) Navigation and menus + *********************************************************************/ + +#g-site-menu, +#g-tag-cloud ul { + font-size: 1.2em; +} + +/* Login menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-banner #g-login-menu { + color: #999; + float: right; +} + +#g-banner #g-login-menu li { + padding-left: 1.2em; +} + +/* Site Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-site-menu { + bottom: 0; + display: none; + left: 300px; + position: absolute; +} + +#g-site-menu ul { + margin-bottom: 0 !important; +} + +/* Context Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +.g-context-menu { + font-size: 0.6em; + background-color: #fff; + bottom: 0; + left: 0; + position: absolute; +} + +.g-item .g-context-menu { + display: none; + margin-top: 2em; + width: 100%; +} + +#g-item .g-context-menu { + font-size: .7em; +} + +#g-item .g-context-menu ul { + display: none; +} + +.g-context-menu li { + border-left: none; + border-right: none; + border-bottom: none; +} + +.g-context-menu li a { + display: block; + line-height: 1.6em; +} + +.g-hover-item .g-context-menu { + display: block; +} + +.g-hover-item .g-context-menu li { + text-align: left; +} + +.g-hover-item .g-context-menu a:hover { + text-decoration: none; +} + +/* View Menu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-view-menu { + margin-bottom: 1em; +} + +#g-view-menu a { + background-repeat: no-repeat; + background-position: 50% 50%; + height: 28px !important; + width: 43px !important; +} + +#g-view-menu #g-slideshow-link { + background-image: url('../images/ico-view-slideshow.png'); +} + +#g-view-menu .g-fullsize-link { + background-image: url('../images/ico-view-fullsize.png'); +} + +#g-view-menu #g-comments-link { + background-image: url('../images/ico-view-comments.png'); +} + +#g-view-menu #g-print-digibug-link { + background-image: url('../images/ico-print.png'); +} + +/* Tags and cloud ~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-tag-cloud ul { + text-align: justify; +} + +#g-tag-cloud ul li { + display: inline; + line-height: 1.5em; + text-align: justify; +} + +#g-tag-cloud ul li a { + text-decoration: none; +} + +#g-tag-cloud ul li span { + display: none; +} + +#g-tag-cloud ul li.size1 a { + color: #9cf; + font-size: 80%; + font-weight: 100; +} + +#g-tag-cloud ul li.size2 a { + color: #69f; + font-size: 90%; + font-weight: 300; +} + +#g-tag-cloud ul li.size3 a { + color: #69c; + font-size: 100%; + font-weight: 500; +} + +#g-tag-cloud ul li.size4 a { + color: #369; + font-size: 110%; + font-weight: 700; +} + +#g-tag-cloud ul li.size5 a { + color: #0e2b52; + font-size: 120%; + font-weight: 900; +} + +#g-tag-cloud ul li.size6 a { + color: #0e2b52; + font-size: 130%; + font-weight: 900; +} + +#g-tag-cloud ul li.size7 a { + color: #0e2b52; + font-size: 140%; + font-weight: 900; +} + +#g-tag-cloud ul li a:hover { + color: #f30; + text-decoration: underline; +} + +#g-welcome-message p { + padding-bottom: 1em; +} + +/** ******************************************************************* + * 6) jQuery and jQuery UI + *********************************************************************/ + +/* Superfish menu overrides ~~~~~~~~~~~~~~ */ + +.sf-menu a { + font-size: 0.1em; + color: #fff; + border-left: 1px solid #e8e8e8; + border-top: 1px solid #e8e8e8; +} + +.sf-menu li { + color: #fff; + background-color: #333; + +} + +.sf-menu li li, .sf-menu li li ul li { + color: #fff; + background-color: #333; +} + +.sf-menu li:hover { + color: #eee; + background-color: #777; + +} + +.sf-menu li:hover, .sf-menu li.sfHover, +.sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { + background: #777; +} + +/* jQuery UI Dialog ~~~~~~~~~~~~~~~~~~~~~~ */ + +.ui-widget-overlay { + background: #000; + opacity: .7; +} + +/* jQuery UI ThemeRoller buttons */ + +.g-buttonset { + padding-left: 1px; +} + +.g-buttonset li { + float: left; +} + +.g-buttonset .g-button { + margin: 0; +} + +.ui-icon-left .ui-icon { + float: left; + margin-right: .2em; +} + +.ui-icon-right .ui-icon { + float: right; + margin-left: .2em; +} + +.ui-icon-rotate-ccw { + background-position: -192px -64px; +} + +.ui-icon-rotate-cw { + background-position: -208px -64px; +} + +/* STUFF THAT NEEDS A HOME */ + +#g-move ul { + padding-left: 1em; +} + +#g-move .selected { + background: #999; +} + + +/* Permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-edit-permissions-form { + clear: both; +} + +#g-edit-permissions-form td { + background-image: none; +} + +#g-edit-permissions-form fieldset { + border: 1px solid #ccc; + padding: 0; +} + +#g-permissions .g-denied, +#g-permissions .g-allowed { + text-align: center; + vertical-align: middle; +} + +#g-permissions .g-denied { + background-color: #fcc; +} + +#g-permissions .g-allowed { + background-color: #cfc; +} + +/*************** STUFF THAT NEEDS A HOME ****************/ +#g-uploadifyUploader { + color: #000000; +} + + +#g-admin-g2-import-notes { + padding-bottom: 20px; +} + +#g-admin-g2-import-details { + padding-top: 20px; +} + +#g-admin-g2-import-details .g-warning { + margin-top: 4px; +} + +#g-admin-g2-import-details .g-info { + padding: 2px; + border: 1px solid #999; + margin-bottom: 10px; +} + +#g-admin-g2-import-notes p, +#g-admin-g2-import-details .g-info p { + padding: 0; + margin: 0; +} + +#g-admin-g2-import-notes ul li, +#g-admin-g2-import .g-info ul li { + padding-left: 0; + margin-left: 20px; + list-style-type: disc; +} + +/* Right to left styles ~~~~~~~~~~~~~~~~~~~~ */ + +.rtl { + direction: rtl; +} + +.rtl caption, +.rtl th, +.rtl #g-dialog { + text-align: right; +} + +.rtl .g-right, +.rtl #g-header #g-quick-search-form, +.rtl #g-header #g-login-menu, +.rtl .ui-icon-right .ui-icon { + clear: left; + float: left; +} + +.rtl .g-left, +.rtl #g-dialog .g-cancel, +.rtl form ul ul li, +.rtl input[type="submit"], +.rtl input[type="reset"], +.rtl .g-short-form li, +.rtl #g-header #g-logo img, +.rtl #g-content #g-album-grid .g-item, +.rtl #g-site-menu, +.rtl .g-breadcrumbs li, +.rtl .g-pager li, +.rtl .g-buttonset li, +.rtl .ui-icon-left .ui-icon { + float: right; +} diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_333333_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_333333_40x100.png new file mode 100644 index 00000000..2f2c7a45 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_333333_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_484848_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_484848_40x100.png new file mode 100644 index 00000000..37979abe Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_484848_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_aaaaaa_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 00000000..5b5dab2a Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_000000_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_000000_40x100.png new file mode 100644 index 00000000..abdc0108 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_000000_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_333333_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_333333_40x100.png new file mode 100644 index 00000000..2f2c7a45 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_333333_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_484848_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_484848_40x100.png new file mode 100644 index 00000000..37979abe Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_484848_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_b30000_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_b30000_40x100.png new file mode 100644 index 00000000..121651a0 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_100_b30000_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_flat_55_fbec88_40x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_flat_55_fbec88_40x100.png new file mode 100644 index 00000000..47acaadd Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_flat_55_fbec88_40x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_glass_95_fef1ec_1x400.png b/themes/okat_dark/css/themeroller/images/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 00000000..4443fdc1 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_gloss-wave_16_121212_500x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_gloss-wave_16_121212_500x100.png new file mode 100644 index 00000000..c7a2ee1b Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_gloss-wave_16_121212_500x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_100_333333_1x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_100_333333_1x100.png new file mode 100644 index 00000000..254bb228 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_100_333333_1x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_15_888888_1x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_15_888888_1x100.png new file mode 100644 index 00000000..66e53e16 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_15_888888_1x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_55_555555_1x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_55_555555_1x100.png new file mode 100644 index 00000000..1453bc18 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-hard_55_555555_1x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_highlight-soft_35_adadad_1x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-soft_35_adadad_1x100.png new file mode 100644 index 00000000..5a5a41d4 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-soft_35_adadad_1x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_highlight-soft_60_dddddd_1x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-soft_60_dddddd_1x100.png new file mode 100644 index 00000000..747e1fa6 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_highlight-soft_60_dddddd_1x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-bg_inset-soft_15_121212_1x100.png b/themes/okat_dark/css/themeroller/images/ui-bg_inset-soft_15_121212_1x100.png new file mode 100644 index 00000000..e7692acd Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-bg_inset-soft_15_121212_1x100.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_222222_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_222222_256x240.png new file mode 100644 index 00000000..ee039dc0 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_222222_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_333333_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_333333_256x240.png new file mode 100644 index 00000000..379a4064 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_333333_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_444444_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_444444_256x240.png new file mode 100644 index 00000000..1d071b4e Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_444444_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_666666_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_666666_256x240.png new file mode 100644 index 00000000..05fae5ee Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_666666_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_aaaaaa_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_aaaaaa_256x240.png new file mode 100644 index 00000000..9b04537f Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_aaaaaa_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_bbbbbb_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_bbbbbb_256x240.png new file mode 100644 index 00000000..8340d085 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_bbbbbb_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_cccccc_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_cccccc_256x240.png new file mode 100644 index 00000000..12774b8f Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_cccccc_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_cd0a0a_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_cd0a0a_256x240.png new file mode 100644 index 00000000..7930a558 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_cd0a0a_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_f9bd01_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_f9bd01_256x240.png new file mode 100644 index 00000000..1619b868 Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_f9bd01_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/images/ui-icons_f9db01_256x240.png b/themes/okat_dark/css/themeroller/images/ui-icons_f9db01_256x240.png new file mode 100644 index 00000000..af18dccc Binary files /dev/null and b/themes/okat_dark/css/themeroller/images/ui-icons_f9db01_256x240.png differ diff --git a/themes/okat_dark/css/themeroller/ui.base.css b/themes/okat_dark/css/themeroller/ui.base.css new file mode 100644 index 00000000..54582d05 --- /dev/null +++ b/themes/okat_dark/css/themeroller/ui.base.css @@ -0,0 +1,406 @@ +/* +* jQuery UI CSS Framework +* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +*/ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute; left: -99999999px; } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } +.ui-helper-clearfix { display: inline-block; } +/* required comment for clearfix to work in Opera \*/ +* html .ui-helper-clearfix { height:1%; } +.ui-helper-clearfix { display:block; } +/* end clearfix */ +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } + + + +/* +* jQuery UI CSS Framework +* Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) +* Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses. +* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Helvetica,%20Arial,%20sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=5px&bgColorHeader=888888&bgTextureHeader=04_highlight_hard.png&bgImgOpacityHeader=15&borderColorHeader=404040&fcHeader=ffffff&iconColorHeader=cccccc&bgColorContent=121212&bgTextureContent=12_gloss_wave.png&bgImgOpacityContent=16&borderColorContent=404040&fcContent=eeeeee&iconColorContent=bbbbbb&bgColorDefault=adadad&bgTextureDefault=03_highlight_soft.png&bgImgOpacityDefault=35&borderColorDefault=cccccc&fcDefault=333333&iconColorDefault=666666&bgColorHover=dddddd&bgTextureHover=03_highlight_soft.png&bgImgOpacityHover=60&borderColorHover=dddddd&fcHover=000000&iconColorHover=444444&bgColorActive=121212&bgTextureActive=05_inset_soft.png&bgImgOpacityActive=15&borderColorActive=000000&fcActive=ffffff&iconColorActive=222222&bgColorHighlight=555555&bgTextureHighlight=04_highlight_hard.png&bgImgOpacityHighlight=55&borderColorHighlight=404040&fcHighlight=cccccc&iconColorHighlight=aaaaaa&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px +*/ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Helvetica, Arial, sans-serif; font-size: 1.1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Helvetica, Arial, sans-serif; font-size: 0.4em; } +.ui-widget-content { border: 1px solid #404040; background: #121212 url(images/ui-bg_gloss-wave_16_121212_500x100.png) 50% top repeat-x; color: #eeeeee; } +.ui-widget-content a { color: #eeeeee; } +.ui-widget-header { border: 1px solid #404040; background: #888888 url(images/ui-bg_highlight-hard_15_888888_1x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; } +.ui-widget-header a { color: #ffffff; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #cccccc; background: #adadad url(images/ui-bg_highlight-soft_35_adadad_1x100.png) 50% 50% repeat-x; font-weight: normal; color: #333333; outline: none; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #333333; text-decoration: none; outline: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus { border: 1px solid #dddddd; background: #dddddd url(images/ui-bg_highlight-soft_60_dddddd_1x100.png) 50% 50% repeat-x; font-weight: normal; color: #000000; outline: none; } +.ui-state-hover a, .ui-state-hover a:hover { color: #000000; text-decoration: none; outline: none; } +.ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #000000; background: #121212 url(images/ui-bg_inset-soft_15_121212_1x100.png) 50% 50% repeat-x; font-weight: normal; color: #ffffff; outline: none; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #ffffff; outline: none; text-decoration: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight {border: 1px solid #404040; background: #555555 url(images/ui-bg_highlight-hard_55_555555_1x100.png) 50% top repeat-x; color: #cccccc; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a { color: #cccccc; } +.ui-state-error, .ui-widget-content .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; } +.ui-state-error a, .ui-widget-content .ui-state-error a { color: #cd0a0a; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text { color: #cd0a0a; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_bbbbbb_256x240.png); } +.ui-widget-content .ui-icon {background-image: url(images/ui-icons_bbbbbb_256x240.png); } +.ui-widget-header .ui-icon {background-image: url(images/ui-icons_cccccc_256x240.png); } +.ui-state-default .ui-icon { background-image: url(images/ui-icons_666666_256x240.png); } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_444444_256x240.png); } +.ui-state-active .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); } +.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_aaaaaa_256x240.png); } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-tl { -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; } +.ui-corner-tr { -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; } +.ui-corner-bl { -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; } +.ui-corner-br { -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; } +.ui-corner-top { -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; } +.ui-corner-bottom { -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; } +.ui-corner-right { -moz-border-radius-topright: 5px; -webkit-border-top-right-radius: 5px; -moz-border-radius-bottomright: 5px; -webkit-border-bottom-right-radius: 5px; } +.ui-corner-left { -moz-border-radius-topleft: 5px; -webkit-border-top-left-radius: 5px; -moz-border-radius-bottomleft: 5px; -webkit-border-bottom-left-radius: 5px; } +.ui-corner-all { -moz-border-radius: 5px; -webkit-border-radius: 5px; } + +/* Overlays */ +.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); } +.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -webkit-border-radius: 8px; }/* Accordion +----------------------------------*/ +.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; } +.ui-accordion .ui-accordion-li-fix { display: inline; } +.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; } +.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em 2.2em; } +.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; } +.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; } +.ui-accordion .ui-accordion-content-active { display: block; }/* Datepicker +----------------------------------*/ +.ui-datepicker { width: 17em; padding: .2em .2em 0; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { float:left; font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker .ui-datepicker-title select.ui-datepicker-year { float: right; } +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +}/* Dialog +----------------------------------*/ +.ui-dialog { position: relative; padding: .2em; width: 300px; } +.ui-dialog .ui-dialog-titlebar { padding: .5em .3em .3em 1em; position: relative; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 0 .2em; } +.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } +.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } +.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } +.ui-dialog .ui-dialog-content { border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; } +.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; } +.ui-dialog .ui-dialog-buttonpane button { float: right; margin: .5em .4em .5em 0; cursor: pointer; padding: .2em .6em .3em .6em; line-height: 1.4em; width:auto; overflow:visible; } +.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } +.ui-draggable .ui-dialog-titlebar { cursor: move; } +/* Progressbar +----------------------------------*/ +.ui-progressbar { height:2em; text-align: left; } +.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }/* Resizable +----------------------------------*/ +.ui-resizable { position: relative;} +.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;} +.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; } +.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0px; } +.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0px; } +.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0px; height: 100%; } +.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0px; height: 100%; } +.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/* Slider +----------------------------------*/ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; }/* Tabs +----------------------------------*/ +.ui-tabs { padding: .2em; zoom: 1; } +.ui-tabs .ui-tabs-nav { list-style: none; position: relative; padding: .2em .2em 0; } +.ui-tabs .ui-tabs-nav li { position: relative; float: left; border-bottom-width: 0 !important; margin: 0 .2em -1px 0; padding: 0; } +.ui-tabs .ui-tabs-nav li a { float: left; text-decoration: none; padding: .5em 1em; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected { padding-bottom: 1px; border-bottom-width: 0; } +.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; } +.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */ +.ui-tabs .ui-tabs-panel { padding: 1em 1.4em; display: block; border-width: 0; background: none; } +.ui-tabs .ui-tabs-hide { display: none !important; } diff --git a/themes/okat_dark/css/three_nids.css b/themes/okat_dark/css/three_nids.css new file mode 100644 index 00000000..27f61a07 --- /dev/null +++ b/themes/okat_dark/css/three_nids.css @@ -0,0 +1,54 @@ +/* 3nids specific */ +.g-movie { + padding-top: 10px; +} + +.g-map-head img { + display: block; + margin: 3px; +} + +.g-map-head a { + float: right; +} + +.g-comment-thumb{ + padding: 5px; + text-align: left; +} + +.g-fancy-iframe-body{ + background-color: #333333; + height: auto; +} + +#mod_frame{ + background-color: #333333; + } + + .g-comment-box { + border-bottom: 1px solid #555; +} + +.g-comment-box:hover{ + background-color: black; + color: #ffffcc; +} + + #g-comment-detail { + width: 360px; + height: 100%; + background-color: #333333; + padding: 10px; + text-align: left; + margin-top: 30px; +} + +.g-block-content .g-parent-album h4 span { + background: transparent url('../images/ico-album.png') no-repeat top left; + display: inline-block; + height: 16px; + margin-right: 5px; + width: 16px; +} + diff --git a/themes/okat_dark/helpers/three_nids.php b/themes/okat_dark/helpers/three_nids.php new file mode 100644 index 00000000..63c4a9f6 --- /dev/null +++ b/themes/okat_dark/helpers/three_nids.php @@ -0,0 +1,125 @@ +is_movie()){ + $width = $item->width; + $height = $item->height; + }else{ + $width = $item->resize_width; + $height = $item->resize_height; + } + + $description_mode = module::get_var("three_nids", "description"); + $description = ""; + $tags = tag::item_tags($item); + if(count($tags) && $description_mode == "tags"){ + $description = " || " . implode(", ", $tags); + } else if ($description_mode == "item" && $item->description != ""){ + $description = " || " . str_replace("\"",""",$item->description); + } else if (($description_mode == "parent" || + $description_mode == "item") && $item->parent()->description != ""){ + $description = " || " . str_replace("\"", """, $item->parent()->description); + } + + $title_mode = module::get_var("three_nids", "title"); + if ($title_mode == "parent"){ + $title = html::clean($item->parent()->title); + } else { + $title = html::clean($item->title); + } + + $rel = ""; + if ($group_img == true) { + $rel = " rel=\"fancygroup\" "; + } + + if ($item->is_photo() || $item->is_movie()){ + $fancymodule = ""; + if (module::is_active("exif")) { + $fancymodule .= "exif::" . url::site("exif/show/{$item->id}") . ";;"; + } + if (module::is_active("comment")) { + $fancymodule .= "comment::" . url::site("three_nids/show_comments/{$item->id}") . + ";;comment_count::" . three_nids::comment_count($item) . ";;"; + } + if ($item->is_photo()){ + $link .= "id}") ."/?w=" . $width . + "xewx&h=" . $height . "xehx\" " . $rel . " class=\"fancyclass iframe\" title=\"" . + $title . $description ."\" name=\"" . $fancymodule . " \">"; + } else { + $link .= "id}") . "/?w=" . + strval(20 + $width) . "xewx&h=" . strval(50 + $height) . "xehx\" " . $rel . + " class=\"fancyclass iframe\" title=\"" . $item->parent()->title . $description . + "\" name=\"" . $fancymodule . " \">"; + } + } else if ($item->is_album() && $view_type != "header") { + $link .= "url() . "\">"; + } else { + // NOTE: we don't want to open an here because $view_type is "header", but lower down + // we're going to close one, so that's going to generate a mismatch. For now, just open a + // link anyway. + // @todo: figure out what we really should be doing here. + $link .= "url() . "\">"; + } + + if ($view_type != "header") { + $link .= $item->thumb_img(array("class" => "g-thumbnail")) . ""; + if ($item->is_album() && $view_type == "album") { + $link .= "url() . "?show=" . $item->id . + "\"><$parent_title_class>" . html::clean($item->title) . + ""; + } else if (!($item->is_album()) && $view_type == "dynamic") { + $link .= "parent()->url() . "?show=" . $item->id . + "\" class=\"g-parent-album\"><$parent_title_class>" . + html::clean($item->parent()->title) . ""; + } + + if (($item->is_photo() || $item->is_movie()) && $display_comment && + module::is_active("comment")) { + $link .= ""; + } + } else { + $link .= ""; + } + return $link; + } + + public function comment_count($item) { + access::required("view", $item); + + return ORM::factory("comment") + ->where("item_id", "=", $item->id) + ->where("state", "=", "published") + ->order_by("created", "DESC") + ->count_all(); + } +} +?> \ No newline at end of file diff --git a/themes/okat_dark/helpers/three_nids_theme.php b/themes/okat_dark/helpers/three_nids_theme.php new file mode 100644 index 00000000..a24d6ea3 --- /dev/null +++ b/themes/okat_dark/helpers/three_nids_theme.php @@ -0,0 +1,24 @@ +three_nids theme"; + } +} + diff --git a/themes/okat_dark/images/avatar.jpg b/themes/okat_dark/images/avatar.jpg new file mode 100644 index 00000000..d08724fc Binary files /dev/null and b/themes/okat_dark/images/avatar.jpg differ diff --git a/themes/okat_dark/images/fancy_closebox.png b/themes/okat_dark/images/fancy_closebox.png new file mode 100644 index 00000000..4de4396d Binary files /dev/null and b/themes/okat_dark/images/fancy_closebox.png differ diff --git a/themes/okat_dark/images/fancy_left.png b/themes/okat_dark/images/fancy_left.png new file mode 100644 index 00000000..61494e63 Binary files /dev/null and b/themes/okat_dark/images/fancy_left.png differ diff --git a/themes/okat_dark/images/fancy_progress.png b/themes/okat_dark/images/fancy_progress.png new file mode 100644 index 00000000..06b7c89a Binary files /dev/null and b/themes/okat_dark/images/fancy_progress.png differ diff --git a/themes/okat_dark/images/fancy_right.png b/themes/okat_dark/images/fancy_right.png new file mode 100644 index 00000000..0a56042f Binary files /dev/null and b/themes/okat_dark/images/fancy_right.png differ diff --git a/themes/okat_dark/images/fancy_shadow_e.png b/themes/okat_dark/images/fancy_shadow_e.png new file mode 100644 index 00000000..5db7b2b8 Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_e.png differ diff --git a/themes/okat_dark/images/fancy_shadow_n.png b/themes/okat_dark/images/fancy_shadow_n.png new file mode 100644 index 00000000..4e20abbe Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_n.png differ diff --git a/themes/okat_dark/images/fancy_shadow_ne.png b/themes/okat_dark/images/fancy_shadow_ne.png new file mode 100644 index 00000000..64ef7225 Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_ne.png differ diff --git a/themes/okat_dark/images/fancy_shadow_nw.png b/themes/okat_dark/images/fancy_shadow_nw.png new file mode 100644 index 00000000..9ef03377 Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_nw.png differ diff --git a/themes/okat_dark/images/fancy_shadow_s.png b/themes/okat_dark/images/fancy_shadow_s.png new file mode 100644 index 00000000..bf52bd61 Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_s.png differ diff --git a/themes/okat_dark/images/fancy_shadow_se.png b/themes/okat_dark/images/fancy_shadow_se.png new file mode 100644 index 00000000..12311ed3 Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_se.png differ diff --git a/themes/okat_dark/images/fancy_shadow_sw.png b/themes/okat_dark/images/fancy_shadow_sw.png new file mode 100644 index 00000000..923a8b50 Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_sw.png differ diff --git a/themes/okat_dark/images/fancy_shadow_w.png b/themes/okat_dark/images/fancy_shadow_w.png new file mode 100644 index 00000000..6f808d3e Binary files /dev/null and b/themes/okat_dark/images/fancy_shadow_w.png differ diff --git a/themes/okat_dark/images/fancy_title_left.png b/themes/okat_dark/images/fancy_title_left.png new file mode 100644 index 00000000..1e82b6da Binary files /dev/null and b/themes/okat_dark/images/fancy_title_left.png differ diff --git a/themes/okat_dark/images/fancy_title_main.png b/themes/okat_dark/images/fancy_title_main.png new file mode 100644 index 00000000..5f505b00 Binary files /dev/null and b/themes/okat_dark/images/fancy_title_main.png differ diff --git a/themes/okat_dark/images/fancy_title_right.png b/themes/okat_dark/images/fancy_title_right.png new file mode 100644 index 00000000..ef0dc201 Binary files /dev/null and b/themes/okat_dark/images/fancy_title_right.png differ diff --git a/themes/okat_dark/images/ico-album.png b/themes/okat_dark/images/ico-album.png new file mode 100644 index 00000000..e3bb4fc5 Binary files /dev/null and b/themes/okat_dark/images/ico-album.png differ diff --git a/themes/okat_dark/images/ico-help.png b/themes/okat_dark/images/ico-help.png new file mode 100644 index 00000000..5c870176 Binary files /dev/null and b/themes/okat_dark/images/ico-help.png differ diff --git a/themes/okat_dark/images/ico-print.png b/themes/okat_dark/images/ico-print.png new file mode 100644 index 00000000..b82a8e1e Binary files /dev/null and b/themes/okat_dark/images/ico-print.png differ diff --git a/themes/okat_dark/images/ico-view-comments.png b/themes/okat_dark/images/ico-view-comments.png new file mode 100644 index 00000000..e5d3630f Binary files /dev/null and b/themes/okat_dark/images/ico-view-comments.png differ diff --git a/themes/okat_dark/images/ico-view-fullsize.png b/themes/okat_dark/images/ico-view-fullsize.png new file mode 100644 index 00000000..0be23e9b Binary files /dev/null and b/themes/okat_dark/images/ico-view-fullsize.png differ diff --git a/themes/okat_dark/images/ico-view-slideshow.png b/themes/okat_dark/images/ico-view-slideshow.png new file mode 100644 index 00000000..82f61f63 Binary files /dev/null and b/themes/okat_dark/images/ico-view-slideshow.png differ diff --git a/themes/okat_dark/images/map.png b/themes/okat_dark/images/map.png new file mode 100644 index 00000000..1df93fb5 Binary files /dev/null and b/themes/okat_dark/images/map.png differ diff --git a/themes/okat_dark/images/select-photos-backg.png b/themes/okat_dark/images/select-photos-backg.png new file mode 100644 index 00000000..81c2d616 Binary files /dev/null and b/themes/okat_dark/images/select-photos-backg.png differ diff --git a/themes/okat_dark/js/jquery.easing.js b/themes/okat_dark/js/jquery.easing.js new file mode 100644 index 00000000..ef743210 --- /dev/null +++ b/themes/okat_dark/js/jquery.easing.js @@ -0,0 +1,205 @@ +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing['jswing'] = jQuery.easing['swing']; + +jQuery.extend( jQuery.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */ \ No newline at end of file diff --git a/themes/okat_dark/js/jquery.fancybox.js b/themes/okat_dark/js/jquery.fancybox.js new file mode 100644 index 00000000..a07c9cba --- /dev/null +++ b/themes/okat_dark/js/jquery.fancybox.js @@ -0,0 +1,1123 @@ +/* + * FancyBox - simple and fancy jQuery plugin + * Examples and documentation at: http://fancy.klade.lv/ + * Version: 1.2.1 (13/03/2009) + * Copyright (c) 2009 Janis Skarnelis + * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License + * Requires: jQuery v1.3+ +*/ +;(function($) { + + $.fn.fixPNG = function() { + return this.each(function () { + var image = $(this).css('backgroundImage'); + + if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) { + image = RegExp.$1; + $(this).css({ + 'backgroundImage': 'none', + 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=" + ($(this).css('backgroundRepeat') == 'no-repeat' ? 'crop' : 'scale') + ", src='" + image + "')" + }).each(function () { + var position = $(this).css('position'); + if (position != 'absolute' && position != 'relative') + $(this).css('position', 'relative'); + }); + } + }); + }; + + + var elem, opts, busy = false, imagePreloader = new Image, loadingTimer, loadingFrame = 1, imageRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i; + var isIE = ($.browser.msie && parseInt($.browser.version.substr(0,1)) < 8); + + $.fn.fancybox = function(settings) { + settings = $.extend({}, $.fn.fancybox.defaults, settings); + + var matchedGroup = this; + + function _initialize() { + elem = this; + opts = settings; + + _start(); + + return false; + }; + + function _start() { + if (busy) return; + + if ($.isFunction(opts.callbackOnStart)) { + opts.callbackOnStart(); + } + + opts.itemArray = []; + opts.itemCurrent = 0; + + if (settings.itemArray.length > 0) { + opts.itemArray = settings.itemArray; + + } else { + var item = {}; + + if (!elem.rel || elem.rel == '') { + var item = {href: elem.href, title: elem.title, modules: elem.name, fancyclass: elem.className}; + + if ($(elem).children("img:first").length) { + item.orig = $(elem).children("img:first"); + } + + opts.itemArray.push( item ); + + } else { + + var subGroup = $(matchedGroup).filter("a[rel=" + elem.rel + "]"); + + var item = {}; + + for (var i = 0; i < subGroup.length; i++) { + item = {href: subGroup[i].href, title: subGroup[i].title, modules: subGroup[i].name, fancyclass: subGroup[i].className}; + + if ($(subGroup[i]).children("img:first").length) { + item.orig = $(subGroup[i]).children("img:first"); + } + + opts.itemArray.push( item ); + } + + while ( opts.itemArray[ opts.itemCurrent ].href != elem.href ) { + opts.itemCurrent++; + } + } + } + + if (opts.overlayShow) { + if (isIE) { + $('embed, object, select').css('visibility', 'hidden'); + } + + $("#fancy_overlay").css('opacity', opts.overlayOpacity).show(); + } + + _change_item(); + }; + + function _change_item() { + $("#fancy_right, #fancy_left, #fancy_close, #fancy_title, #fancy_modules").hide(); + + var href = opts.itemArray[ opts.itemCurrent ].href; + + if (href.match(/#/)) { + var target = window.location.href.split('#')[0]; target = href.replace(target, ''); target = target.substr(target.indexOf('#')); + + _set_content('
' + $(target).html() + '
', opts.frameWidth, opts.frameHeight); + + } else if (href.match(imageRegExp)) { + imagePreloader = new Image; imagePreloader.src = href; + + if (imagePreloader.complete) { + _proceed_image(); + + } else { + $.fn.fancybox.showLoading(); + + $(imagePreloader).unbind().bind('load', function() { + $(".fancy_loading").hide(); + + _proceed_image(); + }); + } + } else if (href.match("iframe") || opts.itemArray[opts.itemCurrent].fancyclass.indexOf("iframe") >= 0) { + if (href.match('w=') && href.match('h=')){ + var ifrWidth = parseInt(href.substring(href.indexOf('w=')+2,href.indexOf('xewx'))); + var ifrHeight = parseInt(href.substring(href.indexOf('h=')+2,href.indexOf('xehx'))); + }else{ + var ifrWidth= opts.frameWidth; + var ifrHeight= opts.frameHeight; + } + $("#fancy_content").empty(); + _set_content('', ifrWidth, ifrHeight); + + } else { + $.get(href, function(data) { + _set_content( '
' + data + '
', opts.frameWidth, opts.frameHeight ); + }); + } + }; + + function _proceed_image() { + if (opts.imageScale) { + var w = $.fn.fancybox.getViewport(); + + var r = Math.min(Math.min(w[0] - 36, imagePreloader.width) / imagePreloader.width, Math.min(w[1] - 60, imagePreloader.height) / imagePreloader.height); + + var width = Math.round(r * imagePreloader.width); + var height = Math.round(r * imagePreloader.height); + + } else { + var width = imagePreloader.width; + var height = imagePreloader.height; + } + + _set_content('', width, height); + }; + + function _preload_neighbor_images() { + if ((opts.itemArray.length -1) > opts.itemCurrent) { + var href = opts.itemArray[opts.itemCurrent + 1].href; + $("'); + $("#fancy_close, .fancy_bg, .fancy_title, .fancy_modules, .fancy_ico").fixPNG(); + } + }; + + $.fn.fancybox.defaults = { + padding : 10, + imageScale : true, + zoomOpacity : false, + zoomSpeedIn : 0, + zoomSpeedOut : 0, + zoomSpeedChange : 300, + easingIn : 'swing', + easingOut : 'swing', + easingChange : 'swing', + frameWidth : 425, + frameHeight : 355, + overlayShow : true, + overlayOpacity : 0.8, + hideOnContentClick : false, + centerOnScroll : true, + itemArray : [], + callbackOnStart : null, + callbackOnShow : null, + callbackOnClose : null + }; + + $(document).ready(function() { + $.fn.fancybox.build(); + }); + +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* +// ************************************************************************************************************************************* + + var modelem, modopts, modbusy = false, imagePreloader = new Image, loadingTimer, loadingFrame = 1, imageRegExp = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i; + + $.fn.modbox = function(settings) { + settings = $.extend({}, $.fn.modbox.defaults, settings); + + var matchedGroup = this; + + function _initialize() { + modelem = this; + modopts = settings; + + _start(); + + return false; + }; + + function _start() { + if (modbusy) return; + + if ($.isFunction(modopts.callbackOnStart)) { + modopts.callbackOnStart(); + } + + modopts.itemArray = []; + modopts.itemCurrent = 0; + + if (settings.itemArray.length > 0) { + modopts.itemArray = settings.itemArray; + + } else { + var item = {}; + + if (!modelem.rel || modelem.rel == '') { + var item = {href: modelem.href, title: modelem.title}; + + if ($(modelem).children("img:first").length) { + item.orig = $(modelem).children("img:first"); + } + + modopts.itemArray.push( item ); + + } else { + + var subGroup = $(matchedGroup).filter("a[rel=" + modelem.rel + "]"); + + var item = {}; + + for (var i = 0; i < subGroup.length; i++) { + item = {href: subGroup[i].href, title: subGroup[i].title}; + + if ($(subGroup[i]).children("img:first").length) { + item.orig = $(subGroup[i]).children("img:first"); + } + + modopts.itemArray.push( item ); + } + + while ( modopts.itemArray[ modopts.itemCurrent ].href != modelem.href ) { + modopts.itemCurrent++; + } + } + } + + if (modopts.overlayShow) { + if (isIE) { + $('embed, object, select').css('visibility', 'hidden'); + } + + $("#mod_overlay").css('opacity', modopts.overlayOpacity).show(); + } + + _change_item(); + }; + + function _change_item() { + $("#mod_right, #mod_left, #mod_close, #mod_title").hide(); + + var href = modopts.itemArray[ modopts.itemCurrent ].href; + + if (href.match(/#/)) { + var target = window.location.href.split('#')[0]; target = href.replace(target, ''); target = target.substr(target.indexOf('#')); + + _set_content('
' + $(target).html() + '
', modopts.frameWidth, modopts.frameHeight); + + } else if (href.match(imageRegExp)) { + imagePreloader = new Image; imagePreloader.src = href; + + if (imagePreloader.complete) { + _proceed_image(); + + } else { + $.fn.modbox.showLoading(); + + $(imagePreloader).unbind().bind('load', function() { + $(".mod_loading").hide(); + + _proceed_image(); + }); + } + + } else if (href.match("iframe") || modelem.className.indexOf("iframe") >= 0) { + _set_content('', modopts.frameWidth, modopts.frameHeight); + + } else { + $.get(href, function(data) { + _set_content( '
' + data + '
', modopts.frameWidth, modopts.frameHeight ); + }); + } + }; + + function _proceed_image() { + if (modopts.imageScale) { + var w = $.fn.modbox.getViewport(); + + var r = Math.min(Math.min(w[0] - 36, imagePreloader.width) / imagePreloader.width, Math.min(w[1] - 60, imagePreloader.height) / imagePreloader.height); + + var width = Math.round(r * imagePreloader.width); + var height = Math.round(r * imagePreloader.height); + + } else { + var width = imagePreloader.width; + var height = imagePreloader.height; + } + + _set_content('', width, height); + }; + + function _preload_neighbor_images() { + if ((modopts.itemArray.length -1) > modopts.itemCurrent) { + var href = modopts.itemArray[modopts.itemCurrent + 1].href; + + if (href.match(imageRegExp)) { + objNext = new Image(); + objNext.src = href; + } + } + + if (modopts.itemCurrent > 0) { + var href = modopts.itemArray[modopts.itemCurrent -1].href; + + if (href.match(imageRegExp)) { + objNext = new Image(); + objNext.src = href; + } + } + }; + + function _set_content(value, width, height) { + modbusy = true; + + var pad = modopts.padding; + + if (isIE) { + $("#mod_content")[0].style.removeExpression("height"); + $("#mod_content")[0].style.removeExpression("width"); + } + + if (pad > 0) { + width += pad * 2; + height += pad * 2; + + $("#mod_content").css({ + 'top' : pad + 'px', + 'right' : pad + 'px', + 'bottom' : pad + 'px', + 'left' : pad + 'px', + 'width' : 'auto', + 'height' : 'auto' + }); + + if (isIE) { + $("#mod_content")[0].style.setExpression('height', '(this.parentNode.clientHeight - 20)'); + $("#mod_content")[0].style.setExpression('width', '(this.parentNode.clientWidth - 20)'); + } + + } else { + $("#mod_content").css({ + 'top' : 0, + 'right' : 0, + 'bottom' : 0, + 'left' : 0, + 'width' : '100%', + 'height' : '100%' + }); + } + + if ($("#mod_outer").is(":visible") && width == $("#mod_outer").width() && height == $("#mod_outer").height()) { + $("#mod_content").fadeOut("fast", function() { + $("#mod_content").empty().append($(value)).fadeIn("normal", function() { + _finish(); + }); + }); + + return; + } + + var w = $.fn.modbox.getViewport(); + + var itemLeft = (width + 36) > w[0] ? w[2] : (w[2] + Math.round((w[0] - width - 36) / 2)); + var itemTop = (height + 50) > w[1] ? w[3] : (w[3] + Math.round((w[1] - height - 50) / 2)); + + var itemOpts = { + 'left': itemLeft, + 'top': itemTop, + 'width': width + 'px', + 'height': height + 'px' + }; + + if ($("#mod_outer").is(":visible")) { + $("#mod_content").fadeOut("normal", function() { + $("#mod_content").empty(); + $("#mod_outer").animate(itemOpts, modopts.zoomSpeedChange, modopts.easingChange, function() { + $("#mod_content").append($(value)).fadeIn("normal", function() { + _finish(); + }); + }); + }); + + } else { + + if (modopts.zoomSpeedIn > 0 && modopts.itemArray[modopts.itemCurrent].orig !== undefined) { + $("#mod_content").empty().append($(value)); + + var orig_item = modopts.itemArray[modopts.itemCurrent].orig; + var orig_pos = $.fn.modbox.getPosition(orig_item); + + $("#mod_outer").css({ + 'left': (orig_pos.left - 18) + 'px', + 'top': (orig_pos.top - 18) + 'px', + 'width': $(orig_item).width(), + 'height': $(orig_item).height() + }); + + if (modopts.zoomOpacity) { + itemOpts.opacity = 'show'; + } + + $("#mod_outer").animate(itemOpts, modopts.zoomSpeedIn, modopts.easingIn, function() { + _finish(); + }); + + } else { + + $("#mod_content").hide().empty().append($(value)).show(); + $("#mod_outer").css(itemOpts).fadeIn("normal", function() { + _finish(); + }); + } + } + }; + + function _set_navigation() { + if (modopts.itemCurrent != 0) { + $("#mod_left, #mod_left_ico").unbind().bind("click", function(e) { + e.stopPropagation(); + + modopts.itemCurrent--; + _change_item(); + + return false; + }); + + $("#mod_left").show(); + } + + if (modopts.itemCurrent != ( modopts.itemArray.length -1)) { + $("#mod_right, #mod_right_ico").unbind().bind("click", function(e) { + e.stopPropagation(); + + modopts.itemCurrent++; + _change_item(); + + return false; + }); + + $("#mod_right").show(); + } + }; + + function _finish() { + _set_navigation(); + + _preload_neighbor_images(); + + $(document).keydown(function(e) { + if (e.keyCode == 27) { + $.fn.modbox.close(); + $(document).unbind("keydown"); + + } else if(e.keyCode == 37 && modopts.itemCurrent != 0) { + modopts.itemCurrent--; + _change_item(); + $(document).unbind("keydown"); + + } else if(e.keyCode == 39 && modopts.itemCurrent != (modopts.itemArray.length - 1)) { + modopts.itemCurrent++; + _change_item(); + $(document).unbind("keydown"); + } + }); + + if (modopts.centerOnScroll) { + $(window).bind("resize scroll", $.fn.modbox.scrollBox); + } else { + $("div#mod_outer").css("position", "absolute"); + } + + if (modopts.hideOnContentClick) { + $("#mod_wrap").click($.fn.modbox.close); + } + + $("#mod_overlay, #mod_close").bind("click", $.fn.modbox.close); + + $("#mod_close").show(); + + if (modopts.itemArray[ modopts.itemCurrent ].title !== undefined && modopts.itemArray[ modopts.itemCurrent ].title.length > 0) { + $('#mod_title div').html(modopts.itemArray[ modopts.itemCurrent ].title); + $('#mod_title').show(); + } + + if (modopts.overlayShow && isIE) { + $('embed, object, select', $('#mod_content')).css('visibility', 'visible'); + } + + if ($.isFunction(modopts.callbackOnShow)) { + modopts.callbackOnShow(); + } + + modbusy = false; + }; + + return this.unbind('click').click(_initialize); + }; + + $.fn.modbox.scrollBox = function() { + var pos = $.fn.modbox.getViewport(); + + $("#mod_outer").css('left', (($("#mod_outer").width() + 36) > pos[0] ? pos[2] : pos[2] + Math.round((pos[0] - $("#mod_outer").width() - 36) / 2))); + $("#mod_outer").css('top', (($("#mod_outer").height() + 50) > pos[1] ? pos[3] : pos[3] + Math.round((pos[1] - $("#mod_outer").height() - 50) / 2))); + }; + + $.fn.modbox.getNumeric = function(el, prop) { + return parseInt($.curCSS(el.jquery?el[0]:el,prop,true))||0; + }; + + $.fn.modbox.getPosition = function(el) { + var pos = el.offset(); + + pos.top += $.fn.modbox.getNumeric(el, 'paddingTop'); + pos.top += $.fn.modbox.getNumeric(el, 'borderTopWidth'); + + pos.left += $.fn.modbox.getNumeric(el, 'paddingLeft'); + pos.left += $.fn.modbox.getNumeric(el, 'borderLeftWidth'); + + return pos; + }; + + $.fn.modbox.showIframe = function() { + $(".mod_loading").hide(); + $("#mod_frame").show(); + }; + + $.fn.modbox.getViewport = function() { + return [$(window).width(), $(window).height(), $(document).scrollLeft(), $(document).scrollTop() ]; + }; + + $.fn.modbox.animateLoading = function() { + if (!$("#mod_loading").is(':visible')){ + clearInterval(loadingTimer); + return; + } + + $("#mod_loading > div").css('top', (loadingFrame * -40) + 'px'); + + loadingFrame = (loadingFrame + 1) % 12; + }; + + $.fn.modbox.showLoading = function() { + clearInterval(loadingTimer); + + var pos = $.fn.modbox.getViewport(); + + $("#mod_loading").css({'left': ((pos[0] - 40) / 2 + pos[2]), 'top': ((pos[1] - 40) / 2 + pos[3])}).show(); + $("#mod_loading").bind('click', $.fn.modbox.close); + + loadingTimer = setInterval($.fn.modbox.animateLoading, 66); + }; + + $.fn.modbox.close = function() { + modbusy = true; + + $(imagePreloader).unbind(); + + $("#mod_overlay, #mod_close").unbind(); + + if (modopts.hideOnContentClick) { + $("#mod_wrap").unbind(); + } + + $("#mod_close, .mod_loading, #mod_left, #mod_right, #mod_title").hide(); + + if (modopts.centerOnScroll) { + $(window).unbind("resize scroll"); + } + + __cleanup = function() { + $("#mod_overlay, #mod_outer").hide(); + + if (modopts.centerOnScroll) { + $(window).unbind("resize scroll"); + } + + if (isIE) { + $('embed, object, select').css('visibility', 'visible'); + } + + if ($.isFunction(modopts.callbackOnClose)) { + modopts.callbackOnClose(); + } + + modbusy = false; + }; + + if ($("#mod_outer").is(":visible") !== false) { + if (modopts.zoomSpeedOut > 0 && modopts.itemArray[modopts.itemCurrent].orig !== undefined) { + var orig_item = modopts.itemArray[modopts.itemCurrent].orig; + var orig_pos = $.fn.modbox.getPosition(orig_item); + + var itemOpts = { + 'left': (orig_pos.left - 18) + 'px', + 'top': (orig_pos.top - 18) + 'px', + 'width': $(orig_item).width(), + 'height': $(orig_item).height() + }; + + if (modopts.zoomOpacity) { + itemOpts.opacity = 'hide'; + } + + $("#mod_outer").stop(false, true).animate(itemOpts, modopts.zoomSpeedOut, modopts.easingOut, __cleanup); + + } else { + $("#mod_outer").stop(false, true).fadeOut("fast", __cleanup); + } + + } else { + __cleanup(); + } + + return false; + }; + + $.fn.modbox.build = function() { + var html = ''; + + html += '
'; + + html += '
'; + + html += '
'; + + html += '
'; + + html += '
'; + + html += '
'; + + html += '
'; + + html += ''; + + html += '
'; + + html += '
'; + + html += '
'; + + html += '
'; + + html += '
'; + + $(html).appendTo("body"); + + $('
').appendTo('#mod_title'); + + if (isIE) { + $("#mod_inner").prepend(''); + $("#mod_close, .mod_bg, .mod_title, .mod_ico").fixPNG(); + } + }; + + $.fn.modbox.defaults = { + padding : 0, + imageScale : true, + zoomOpacity : false, + zoomSpeedIn : 0, + zoomSpeedOut : 0, + zoomSpeedChange : 300, + easingIn : 'swing', + easingOut : 'swing', + easingChange : 'swing', + frameWidth : 400, + frameHeight : 400, + overlayShow : true, + overlayOpacity : 0.3, + hideOnContentClick : false, + centerOnScroll : true, + itemArray : [], + callbackOnStart : null, + callbackOnShow : null, + callbackOnClose : null + }; + + $(document).ready(function() { + $.fn.modbox.build(); + }); + +})(jQuery); \ No newline at end of file diff --git a/themes/okat_dark/js/ui.init.js b/themes/okat_dark/js/ui.init.js new file mode 100644 index 00000000..88139e22 --- /dev/null +++ b/themes/okat_dark/js/ui.init.js @@ -0,0 +1,123 @@ +/** + * Initialize jQuery UI and Gallery Plugin elements + */ + +$(document).ready(function() { + $(".fancyclass").fancybox(); + + // Initialize Superfish menus + $("ul.g-menu").addClass("sf-menu"); + $('ul.sf-menu').superfish({ + delay: 500, + animation: { + opacity:'show', + height:'show' + }, + speed: 'fast' + }); + $("#g-site-menu").css("display", "block"); + + // Initialize short forms + $(".g-short-form").gallery_short_form(); + + + // Initialize status message effects + $("#g-action-status li").gallery_show_message(); + + // Initialize dialogs + $("#g-login-link").addClass("g-dialog-link"); + $(".g-dialog-link").gallery_dialog(); + + // Initialize view menu + if ($("#g-view-menu").length) { + $("#g-view-menu ul").removeClass("g-menu").removeClass("sf-menu"); + $("#g-view-menu a").addClass("ui-icon"); + } + + // Apply jQuery UI button css to submit inputs + $("input[type=submit]:not(.g-short-form input)").addClass("ui-state-default ui-corner-all"); + + // Apply styles and icon classes to g-context-menu + if ($(".g-context-menu").length) { + $(".g-context-menu li").addClass("ui-state-default"); + $(".g-context-menu a").addClass("g-button ui-icon-left"); + $(".g-context-menu a").prepend(""); + $(".g-context-menu a span").each(function() { + var iconClass = $(this).parent().attr("class").match(/ui-icon-.[^\s]+/).toString(); + $(this).addClass(iconClass); + }); + } + + // Album view only + if ($("#g-album-grid").length) { + // Set equal height for album items and vertically align thumbnails/metadata + $('.g-item').equal_heights().gallery_valign(); + + // Initialize thumbnail hover effect + $(".g-item").hover( + function() { + // Insert a placeholder to hold the item's position in the grid + var placeHolder = $(this).clone().attr("id", "g-place-holder"); + $(this).after($(placeHolder)); + // Style and position the hover item + var position = $(this).position(); + $(this).css("top", position.top).css("left", position.left); + $(this).addClass("g-hover-item"); + // Initialize the contextual menu + $(this).gallery_context_menu(); + // Set the hover item's height + //$(this).height("auto"); + var context_menu = $(this).find(".g-context-menu"); + var adj_height = $(this).height() + context_menu.height(); + $(this).height(adj_height); + }, + function() { + // Reset item height and position + if ($(this).next().height()) { + var sib_height = $(this).next().height(); + } else { + var sib_height = $(this).prev().height(); + } + if ($.browser.msie && $.browser.version >= 8) { + sib_height = sib_height + 1; + } + $(this).css("height", sib_height); + $(this).css("position", "relative"); + $(this).css("top", 0).css("left", 0); + // Remove the placeholder and hover class from the item + $(this).removeClass("g-hover-item"); + $("#g-place-holder").remove(); + $(".fancyclass").fancybox(); + } + ); + } + + // Photo/Item item view lightbox + if ($("#g-item-box").length) { + $(this).gallery_context_menu(); + } + + + // Photo/Item item view + if ($("#g-item").length) { + // Ensure the resized image fits within its container + $("#g-item").gallery_fit_photo(); + + // Initialize context menus + var resize = $("#g-item").gallery_get_photo(); + $(resize).hover(function(){ + $(this).gallery_context_menu(); + }); + + // Add scroll effect for links to named anchors + $.localScroll({ + queue: true, + duration: 1000, + hash: true + }); + } + + // Initialize button hover effect + $.fn.gallery_hover_init(); + +}); diff --git a/themes/okat_dark/theme.info b/themes/okat_dark/theme.info new file mode 100644 index 00000000..e88154d7 --- /dev/null +++ b/themes/okat_dark/theme.info @@ -0,0 +1,6 @@ +name = "okat_dark" +description = "Customized 3nids theme based on Lightroom." +version = 1 +author = "Okat" +site = 1 +admin = 0 diff --git a/themes/okat_dark/thumbnail.png b/themes/okat_dark/thumbnail.png new file mode 100644 index 00000000..3b7bcfec Binary files /dev/null and b/themes/okat_dark/thumbnail.png differ diff --git a/themes/okat_dark/views/album.html.php b/themes/okat_dark/views/album.html.php new file mode 100644 index 00000000..ab67f100 --- /dev/null +++ b/themes/okat_dark/views/album.html.php @@ -0,0 +1,51 @@ + + +
+ album_top() ?> +

title) ?>

+
description)) ?>
+
+viewable()->children(); +$theme->pagination = new Pagination(); +$theme->pagination->initialize( + array("query_string" => "page", "total_items" => $children_count, "items_per_page" => $page_size, "style" => "classic")); +$children_offset = ($theme->pagination->current_page -1) * $page_size ; +?> +
    + + + + + + + $child): ?> + + is_album()): ?> + + +
  • + thumb_top($child) ?> + + thumb_bottom($child) ?> + context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?> +
  • + + + + + + + + admin || access::can("add", $item)): ?> + id") ?> +
  • Add some.", + array("attrs" => html::mark_clean("href=\"$addurl\" class=\"g-dialog-link\""))) ?>
  • + +
  • + + +
+album_bottom() ?> + +paginator() ?> diff --git a/themes/okat_dark/views/block.html.php b/themes/okat_dark/views/block.html.php new file mode 100644 index 00000000..699d7c22 --- /dev/null +++ b/themes/okat_dark/views/block.html.php @@ -0,0 +1,10 @@ + + + + +
+

+
+ +
+
diff --git a/themes/okat_dark/views/comments.html.php b/themes/okat_dark/views/comments.html.php new file mode 100644 index 00000000..01eeadd3 --- /dev/null +++ b/themes/okat_dark/views/comments.html.php @@ -0,0 +1,60 @@ + + + + + + css("yui/reset-fonts-grids.css") ?> + css("superfish/css/superfish.css") ?> + css("themeroller/ui.base.css") ?> + css("gallery.common.css") ?> + css("jquery.fancybox.css") ?> + css("screen.css") ?> + css("three_nids.css") ?> + script("jquery.js") ?> + script("jquery.form.js") ?> + script("jquery-ui.js") ?> + script("gallery.common.js") ?> + + + script("gallery.ajax.js") ?> + script("gallery.dialog.js") ?> + script("superfish/js/superfish.js") ?> + script("jquery.localscroll.js") ?> + script("jquery.easing.js") ?> + script("jquery.fancybox.js") ?> + script("ui.init.js") ?> + head() ?> + + +
+ thumb_img() ?> +
+ id}") ?>" id="g-admin-comment-button" + class="g-button ui-corner-all ui-icon-left ui-state-default right"> + + + +
+ count()): ?> +

+ +

+ +
    + +
  • + %name %date: ', + array("date" => date(module::get_var("gallery", "date_time_format", "Y-M-d H:i:s"), $comment->created), + "name" => html::clean($comment->author_name()))); ?> +
    + text)) ?> +
    +
  • + +
+
+ + diff --git a/themes/okat_dark/views/dynamic.html.php b/themes/okat_dark/views/dynamic.html.php new file mode 100644 index 00000000..7c0e7131 --- /dev/null +++ b/themes/okat_dark/views/dynamic.html.php @@ -0,0 +1,37 @@ + +
+
+ dynamic_top() ?> +
+

+
+items(); + $theme->pagination = new Pagination(); + $theme->pagination->initialize(array("query_string" => "page","total_items" => $children_count,"items_per_page" => $page_size,"style" => "classic")); + $children_offset = ($theme->pagination->current_page -1) * $page_size ; ?> + + +
    + + + + + + $child): ?> + + +
  • + thumb_top($child) ?> + + thumb_bottom($child) ?> + context_menu($child, "#g-ItemId-{$child->id} .g-Thumbnail") ?> +
  • + +
+ + + + +dynamic_bottom() ?> + +paginator() ?> diff --git a/themes/okat_dark/views/exif_dialog.html.php b/themes/okat_dark/views/exif_dialog.html.php new file mode 100644 index 00000000..8ce20cc3 --- /dev/null +++ b/themes/okat_dark/views/exif_dialog.html.php @@ -0,0 +1,44 @@ + + + + + + + + +
+
+ + + + + + + + + + + + + + + +
+ + + + + + + +
+
+
+ + diff --git a/themes/okat_dark/views/image_block_block.html.php b/themes/okat_dark/views/image_block_block.html.php new file mode 100644 index 00000000..0b56af20 --- /dev/null +++ b/themes/okat_dark/views/image_block_block.html.php @@ -0,0 +1,3 @@ + + + diff --git a/themes/okat_dark/views/movie.html.php b/themes/okat_dark/views/movie.html.php new file mode 100644 index 00000000..3ebe0632 --- /dev/null +++ b/themes/okat_dark/views/movie.html.php @@ -0,0 +1,45 @@ + + + + + + css("yui/reset-fonts-grids.css") ?> + css("superfish/css/superfish.css") ?> + css("themeroller/ui.base.css") ?> + css("gallery.common.css") ?> + css("jquery.fancybox.css") ?> + css("screen.css") ?> + css("three_nids.css") ?> + script("jquery.js") ?> + script("jquery.form.js") ?> + script("jquery-ui.js") ?> + script("gallery.common.js") ?> + + + script("gallery.ajax.js") ?> + script("gallery.dialog.js") ?> + script("superfish/js/superfish.js") ?> + script("jquery.localscroll.js") ?> + script("jquery.easing.js") ?> + script("jquery.fancybox.js") ?> + script("ui.init.js") ?> + script("flowplayer.js") ?> + head() ?> + + +
+
+ movie_img( + array("class" => "g-movie", "id" => "g-movie-id-{$item->id}", + "style" => "display:block;width:{$item->width}px;height:{$item->height}px")) ?> + context_menu($item, "#g-movie-id-{$item->id}") ?> +
+

title) ?>

+
description)) ?>
+
+
+ + diff --git a/themes/okat_dark/views/no_sidebar.html.php b/themes/okat_dark/views/no_sidebar.html.php new file mode 100644 index 00000000..378bd971 --- /dev/null +++ b/themes/okat_dark/views/no_sidebar.html.php @@ -0,0 +1,6 @@ + +
    +
  • + Add blocks", + array("url" => html::mark_clean(url::site("admin/sidebar")))) ?>
  • +
diff --git a/themes/okat_dark/views/page.html.php b/themes/okat_dark/views/page.html.php new file mode 100644 index 00000000..8a39fbc4 --- /dev/null +++ b/themes/okat_dark/views/page.html.php @@ -0,0 +1,178 @@ + + + + + + + + + + + + + <? if ($page_title): ?> + <?= $page_title ?> + <? else: ?> + <? if ($theme->item()): ?> + <? if ($theme->item()->is_album()): ?> + <?= t("Gallery :: %album_title", array("album_title" => $theme->item()->title)) ?> + <? elseif ($theme->item()->is_photo()): ?> + <?= t("Gallery :: %photo_title", array("photo_title" => $theme->item()->title)) ?> + <? else: ?> + <?= t("Gallery :: %movie_title", array("movie_title" => $theme->item()->title)) ?> + <? endif ?> + <? elseif ($theme->tag()): ?> + <?= t("Gallery :: %tag_title", array("tag_title" => $theme->tag()->name)) ?> + <? else: /* Not an item, not a tag, no page_title specified. Help! */ ?> + <?= t("Gallery") ?> + <? endif ?> + <? endif ?> + + " type="image/x-icon" /> + css("yui/reset-fonts-grids.css") ?> + css("superfish/css/superfish.css") ?> + css("themeroller/ui.base.css") ?> + css("gallery.common.css") ?> + css("jquery.fancybox.css") ?> + css("screen.css") ?> + css("three_nids.css") ?> + + page_type == 'collection'): ?> + + + + + + + script("jquery.js") ?> + script("jquery.form.js") ?> + script("jquery-ui.js") ?> + script("gallery.common.js") ?> + + + script("gallery.ajax.js") ?> + script("gallery.dialog.js") ?> + script("superfish/js/superfish.js") ?> + script("jquery.localscroll.js") ?> + script("jquery.easing.js") ?> + script("jquery.fancybox.js") ?> + script("ui.init.js") ?> + + head() they get combined */ ?> + page_subtype == "photo"): ?> + script("jquery.scrollTo.js") ?> + script("gallery.show_full_size.js") ?> + page_subtype == "movie"): ?> + script("flowplayer.js") ?> + + + head() ?> + + + body_attributes() ?>> + page_top() ?> +
+ site_status() ?> +
+
+ user_menu() ?> + header_top() ?> + + + + + +
+ admin): ?> + site_menu() ?> + +
+ header_bottom() ?> +
+ + + + tag()): ?> +
    +
  • + + + +
  • +
  • tag()->name) ?>
  • +
+ + + + + + + +
+
+
+
+
+ messages() ?> + +
+
+
+
+ page_subtype != "login"): ?> + + +
+
+ +
+ page_bottom() ?> + + diff --git a/themes/okat_dark/views/paginator.html.php b/themes/okat_dark/views/paginator.html.php new file mode 100644 index 00000000..5034c965 --- /dev/null +++ b/themes/okat_dark/views/paginator.html.php @@ -0,0 +1,87 @@ + + + +
    +
  • + + + + + + + + + + + + + + + + + +
  • + +
  • + + + $first_visible_position, + "to_number" => $last_visible_position, + "count" => $total)) ?> + + $position, "total" => $total)) ?> + + + + +
  • + +
  • + + + + + + + + + + + + + + + + + +
  • +
diff --git a/themes/okat_dark/views/photo.html.php b/themes/okat_dark/views/photo.html.php new file mode 100644 index 00000000..80a499b6 --- /dev/null +++ b/themes/okat_dark/views/photo.html.php @@ -0,0 +1,42 @@ + + + + + + css("yui/reset-fonts-grids.css") ?> + css("superfish/css/superfish.css") ?> + css("themeroller/ui.base.css") ?> + css("gallery.common.css") ?> + css("jquery.fancybox.css") ?> + css("screen.css") ?> + css("three_nids.css") ?> + script("jquery.js") ?> + script("jquery.form.js") ?> + script("jquery-ui.js") ?> + script("gallery.common.js") ?> + + + script("gallery.ajax.js") ?> + script("gallery.dialog.js") ?> + script("superfish/js/superfish.js") ?> + script("jquery.localscroll.js") ?> + script("jquery.easing.js") ?> + script("jquery.fancybox.js") ?> + script("ui.init.js") ?> + head() ?> + + +
+ + + + + + + context_menu($item, "#g-item-id-{$item->id}") ?> +
+ + diff --git a/themes/okat_dark/views/search.html.php b/themes/okat_dark/views/search.html.php new file mode 100644 index 00000000..0699decd --- /dev/null +++ b/themes/okat_dark/views/search.html.php @@ -0,0 +1,39 @@ + + + +pagination = new Pagination(); + $theme->pagination->initialize(array("query_string" => "page","total_items" => $children_count_true,"items_per_page" => $page_size,"style" => "classic")); + $children_offset = ($theme->pagination->current_page -1) * $page_size ; ?> + +
+

%term", array("term" => $q)) ?>

+ + +
    + + + + + +
  • + thumb_top($child) ?> + + thumb_bottom($child) ?> + context_menu($child, "#g-item-id-{$child->id} .g-thumbnail") ?> +
  • + + + + + +
+ paginator() ?> + + +

+ %term", array("term" => $q)) ?> +

+ + +
diff --git a/themes/okat_dark/views/sidebar.html.php b/themes/okat_dark/views/sidebar.html.php new file mode 100644 index 00000000..54f1d00d --- /dev/null +++ b/themes/okat_dark/views/sidebar.html.php @@ -0,0 +1,18 @@ + +sidebar_top() ?> +
+
+ + album_menu() ?> + + photo_menu() ?> + + movie_menu() ?> + + tag_menu() ?> + +
+
+ +sidebar_blocks() ?> +sidebar_bottom() ?> diff --git a/themes/stopdesign/css/aus04.css b/themes/stopdesign/css/aus04.css new file mode 100644 index 00000000..7b8321c3 --- /dev/null +++ b/themes/stopdesign/css/aus04.css @@ -0,0 +1,68 @@ +/* +----------------------------------------------- +Photos +Author: Douglas Bowman +Version: 9 Nov 2004 +----------------------------------------------- */ + +body { + background:#ccb url("img/bg.jpg") repeat-x 0 0; + } + + +/* Header +----------------------------------------------- */ +#path { + border-color:#bba; + } +h1 { + color:#543; + border-color:#ddc; + } +h1 strong { + color:#234; + } +#title h1 { + width:733px; + } +.galleryinfo fieldset { + border-color:#bba; + } + + +/* Index +----------------------------------------------- */ +#gallerydesc { + margin:-110px 20px 0 398px; + } + + +/* Individual photo +----------------------------------------------- */ +#ind { + background-color:#bba; + } +html>body #ind { + background-color:transparent; + } +#comments-form td, #comments-form th, .commentlist dd, .commentlist li { + border-color:#AAAB9B; + } + + +/* Count +----------------------------------------------- */ +#info p.count { + border-color:#ddc; + } +.galleryinfo .count { + background:#bba; + } + + +/* Footer +----------------------------------------------- */ +#footer p { + border-color:#ddc; + color:#887; + } diff --git a/themes/stopdesign/css/custom.css b/themes/stopdesign/css/custom.css new file mode 100644 index 00000000..ad0af9a9 --- /dev/null +++ b/themes/stopdesign/css/custom.css @@ -0,0 +1,81 @@ +/* +----------------------------------------------- +Photo Gallery Templates: +Custom Dimensions +----------------------------------------------- */ + +/* This file containes isolated measurement values you should change if you'd like +to use different dimensions for the main photo. All measurements are based off main +photos' maximum width. Default "MaxWidth" for photos (per template docs) is 480. +------------------------------------------------------------------------------------- */ + + + +/* Sets width of main (center) column. +[value] = MaxWidth + 20 +EG: 480 + 20 = 500 +----------------------------------------------- */ +.main { + width:660px; + } + +/* Determines position of prev/next thumbnails. +Measurement is distance from center of main +photo to the nearest edge of slide background +image. */ +#prev { + /* [value] = (MaxWidth / 2) + 22 */ + right:342px; + } +#next { + /* [value] = (MaxWidth / 2) + 25 */ + left:345px; + } + +/* Determines offset of prev/next hoverable +regions that overlay the main photo. Measurement +is distance from nearest edge of slide +background image back to center of main photo. */ +#prev a strong { + /* [value] = 0 - (MaxWidth / 2) - 22 */ + right:-342px; + } +#next a strong { + /* [value] = 0 - (MaxWidth / 2) - 25 */ + left:-345px; + } + +/* Determines position of title and description. +Measurement is distance from center of main +photo to left edge of content. +Note: Second value for background position +should always be 0. */ +#desc h1, #desc p { + /* [value] = (MaxWidth / 2) + 25 */ + background-position:345px 0; + padding-left:345px; + } + +/* Determines position of meta info such as +Photo x of y, date, & keywords. Measurement is +distance from center of main photo to left +edge of content. */ +#meta ul { + /* [value] = (MaxWidth / 2) + 25 */ + padding-right:345px; + } + +/* If customizing the photo dimensions, one +more value needs to change in the Individual +Photo template (t_photo.php). Search for the +following tag: +<$MTSetVar2 name="padvalue" value="480"$> +and change the value to your new photo MaxWidth. + + + +/* End of custom values +------------------------------------------------------------------------------------- */ + + + diff --git a/themes/stopdesign/css/custom.gallery3-dialog.css b/themes/stopdesign/css/custom.gallery3-dialog.css new file mode 100644 index 00000000..549a8224 --- /dev/null +++ b/themes/stopdesign/css/custom.gallery3-dialog.css @@ -0,0 +1,113 @@ +.ui-widget-overlay { + background: #000; + opacity: 0.7; + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: 0; +} + +.ui-dialog { + background: #e5e5e5; + position: absolute; + /*top: 25px !important;*/ + -moz-box-shadow: 10px 10px 5px #fff; + box-shadow: 10px 10px 5px #fff; +} + +.ui-dialog-titlebar { + display: none; +} + +.ui-dialog-titlebar-close { + display: none; +} + +.ui-dialog fieldset { + border: 0; +} + +.ui-dialog fieldset legend { + text-align: center; + font-weight: bold; + font-size: 1em; +} + +/*#gDialog > form > fieldset { + border: 0; + margin: 0; + padding: 0; +} + +#gDialog > form > fieldset > legend { + font-weight: bold; +} + +#gDialog > form > fieldset > ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +#gDialog > form > fieldset > ul > li > input { + width: 100%; +} + +#gPermissions { + + +}*/ +/* Simple uploader ~~~~~~~~~~~~~~~~~~~~~~~ */ + +#g-add-photos-canvas { + border: 1px solid #ccc; + height: 200px; + margin: .5em 0; + overflow: auto; + width: 469px; +} + +#g-add-photos-status { + border: 1px solid #ccc; + height: 125px; + margin: .5em 0; + overflow: auto; + width: 469px; +} + +#g-add-photos button { + float: right; + margin-bottom: .5em; + margin-left: .5em; +} + +#g-add-photos-status li { + text-align: left; + padding-left: 2em; +} + +#g-add-photos-status li.g-success { + background: #d9efc2 url('images/ico-success.png') no-repeat .4em 50%; + width: 429px; +} + +#g-add-photos-status li.g-error { + background: #f6cbca url('images/ico-error.png') no-repeat .4em 50%; + width: 429px; +/* color: #f00;*/ +} + +#g-add-photos-button { + background: #DFEFFC; + border: 1px solid #C5DBEC; + color: #2E6E9E +} + +#g-add-photos p { + margin: 0 +} + +#g-add-photos .g-breadcrumbs li { + padding-top: .5em; +} diff --git a/themes/stopdesign/css/custom.gallery3.css b/themes/stopdesign/css/custom.gallery3.css new file mode 100644 index 00000000..f9ffae3c --- /dev/null +++ b/themes/stopdesign/css/custom.gallery3.css @@ -0,0 +1,108 @@ +body { +background-image: url("../img/bg.jpg"); +} +.thumb a strong { + /* MaxWidth / 2 */ + width: 320px; + /* MaxHeight */ + height: 480px; +} +.vertical .thumb a strong { + /* MaxWidth / 2 */ + width: 180px; + /* MaxHeight */ + height: 480px; +} +.vertical .main { + width: 380px; +} +.thumb a strong { + margin-top: 11px; +} +.thumb a:hover strong { + background-position:50% 0px !important; +} + +.thumb a { + /* thumb size + 31 */ + width: 231px !important; + height: 231px !important; +} + +#prev, #next { + /* thumb size + 34 */ + width: 234px; +} +#prev a, #next a { + /* thumb size + 34 */ + width: 231px; +} + +#desc, #meta { + /* thumb size + 80 */ + top:280px; +} + +.slideset .thumb a { + position: relative; + line-height: 234px !important; + text-align: center; + text-indent: 0 !important; + font-size: 12px !important; +} + +.slideset .thumb a span { + position: absolute; + line-height: 12px; + bottom: 2px; + width: 100%; + font-size:90%; + line-height:1.4em; + font-family:"Gill Sans","Trebuchet MS",Verdana,Sans-serif; + font-weight:normal; + text-transform:uppercase; + letter-spacing:.2em; + text-align:center; + color:#333; +} + +.slideset .thumb a:hover span { + /*background: #ddd;*/ +} + +.galleryinfo p { + position: relative; +} + +.galleryinfo .count { + text-align: center; +} + +#next-page { + position: absolute; + right: 0; + clear: both; +} + +#footer #credits { + margin: 0; + padding: 0; + list-style-type: none; +} +#footer #credits li { + background: none; + padding: 0; + display: inline; +} + +#meta ul#actions { + margin-top: 10px; +} + +#meta ul#actions li:first-child { + background:url("../img/divider_l.gif") no-repeat 100% 0; + padding-top:10px; + } +html>body #meta ul#actions li:first-child { + background-image:url("../img/divider_l.png"); + } diff --git a/themes/stopdesign/css/photos.css b/themes/stopdesign/css/photos.css new file mode 100644 index 00000000..84367843 --- /dev/null +++ b/themes/stopdesign/css/photos.css @@ -0,0 +1,1056 @@ +/* +----------------------------------------------- +Photo Gallery Templates: Main Style Sheet +Author: Douglas Bowman +Version: 1.1 - 10 May 2006 +The design and Movable Type templates that +build these pages are available for anyone to +download and use: +http://stopdesign.com/templates/photos/ +----------------------------------------------- */ + +body { + background:#ddd url("../img/bg_page.jpg") repeat-x 0 0; + margin:0; + padding:0; + font:small Verdana,Sans-serif; + color:#333; + } +.title, .index { + text-align:center; + } +#content { + position:relative; + margin:1.6em 0 0; + padding:26px 15px 15px; + font-size:85%; + line-height:1.6; + } +.photosolo #content { + padding:25px 0 15px; + } +.index #content, .archive #content, .recentcomments #content, .comments-entry #content { + width:720px; + margin-left:auto; + margin-right:auto; + } +.title #content { + width:733px; + margin-left:auto; + margin-right:auto; + padding:40px 20px 0; + text-align:left; + } +.comments-entry #content { + margin-top:1em; + padding-top:0; + } + + +/* =Links +----------------------------------------------- */ +a, a:visited { + color:#258; + text-decoration:none; + border-bottom:1px solid #469; + outline:none; + } +html>body a, html>body a:visited { + border-bottom-style:dotted; + } +a:hover, a:active { + color:#933; + border-color:#b55; + border-bottom-style:solid; + } +a img, a.btn, a.btn:visited, a.i, a.i:visited, a.i:hover { + border-width:0; + } +a.btn img, a.i>img { + position:relative; + top:2px; + } + + +/* =Headings +----------------------------------------------- */ +h2 { + margin:.5em 0 .75em; + font:145% "Trebuchet MS",Verdana,Sans-serif; + color:#974; + } +h2 .btn { + margin-left:.25em; + font-weight:normal; + color:#666; + } +.index h2, .archive h2, .recentcomments h2 { + background:url("../img/slide_minis.gif") no-repeat 50% 0; + margin:0 0 8px; + padding:24px 0 0; + font-size:100%; + line-height:1.4em; + font-family:"Gill Sans","Trebuchet MS",Verdana,Sans-serif; + font-weight:normal; + text-transform:uppercase; + letter-spacing:.2em; + text-align:center; + color:#333; + } +.galleries h2 { + position:relative; + top:-10px; + margin-bottom:0; + } + + +/* =Lists +----------------------------------------------- */ +ul { + margin:.5em 0 1.5em; + padding:0; + } +li { + background:url("../img/bullet_white.gif") no-repeat 5px .55em; + margin:0; + padding:0 0 0 15px; + list-style:none; + } +dl { + margin:.5em 0 1em; + padding:0; + } +dt { + font-weight:bold; + } +dd { + margin:0 0 1em; + padding:0; + } + + +/* =Forms +----------------------------------------------- */ +form { + margin:0 0 .75em; + } +input.text, textarea { + border:1px solid; + border-color:#999 #fff #fff #999; + } +input.text:focus, textarea:focus { + background:#ffc; + } +#btn-preview, #btn-post { + background:#888; + padding:2px 5px; + border:2px solid; + border-color:#aaa #666 #666 #aaa; + font:100% Verdana,Sans-serif; + text-transform:uppercase; + color:#fff; + } +#btn-post { + background:#354; + border-color:#576 #243 #243 #576; + } + + +/* =Misc +----------------------------------------------- */ +p { + margin:0 0 .75em; + } +.buttons p { + margin:0; + } +.note, .error { + color:#c33; + } +.inset, .inset2 { + float:left; + margin:3px 10px 5px 0; + } +.inset2 { + float:right; + margin:3px 0 5px 10px; + } +img.inset, img.inset2 { + display:block; + } +.reset { + clear:both; + display:block; + height:1px; + font-size:1px; + line-height:1px; + } +hr.reset { + overflow:hidden; + visibility:hidden; + } +th, td { + text-align:left; + vertical-align:top; + } +input, textarea, select, code { + margin:1px 0; + font:117%/1.2em Monaco,Monospace; + } +.mainbutton { + margin:0; + padding:5px 0 10px; + font-size:100%; + text-align:center; + } +.galleries .mainbutton { + margin:0; + } +#commentblock .mainbutton { + padding-top:0; + } +em.date { + font-style:normal; + } + + +/* =Path +Breadcrumb navigation that gets positioned to +the top of the page. +----------------------------------------------- */ +#path { + background:#000 url("../img/bg_path.gif"); + position:absolute; + top:0; + left:0; + width:100%; + margin:0; + padding:4px 0 6px; + border-bottom:3px solid #555; + font-size:85%; + line-height:1.6em; + color:#777; + text-align:center; + } +#path a { + font-weight:normal; + border-color:#777; + color:#888; + } + + +/* =Header +----------------------------------------------- */ +h1 { + margin:0 0 3px; + padding:0 0 .35em; + border-bottom:1px solid #ddd; + font:200% "Gill Sans","Trebuchet MS",Verdana,Sans-serif; + line-height:1.2em; + text-align:center; + text-transform:uppercase; + letter-spacing:.15em; + } +.title h1 { + margin:0; + padding:0 0 10px; + border-width:0; + } +.title h1 a, .title h1 a:visited { + border-bottom-width:0; + border-style:none; + } + +h1 a, h1 a:hover, .auto #titleimg a { + border-style:none; + } +h1 em { + margin-left:.25em; + padding-left:.5em; + border-left:1px solid #aaa; + font:66% Verdana,Sans-serif; + color:#666; + } +h1 img { + display:block; + } + + +/* =Auto-generated title images +----------------------------------------------- */ +.auto h1 { + margin:10px 0 .5em; + padding:0; + border-width:0; + font-size:170%; + line-height:1.2em; + color:#333; + text-align:left; + text-transform:none; + letter-spacing:0; + } +.auto #titleimg { + background:#bbb; + position:relative; + top:3px; + left:3px; + float:left; + margin:0 0 10px 0; + padding:0; + border-width:0; + } +html>body .auto #titleimg { + background:url("../img/bg_shadow.png"); + } +.auto #titleimg img { + display:block; + position:relative; + top:-3px; + left:-3px; + border:10px solid #fff; + } + + +/* =Gallery Description +Text block appearing on Gallery Title page +----------------------------------------------- */ +#gallerydesc { + position:relative; + margin:-110px 29px 0 405px; + font-size:100%; + } +.auto #gallerydesc, .v #gallerydesc { + float:right; + width:218px; + position:static; + margin:0; + } +.v #gallerydesc { + width:338px; + } +#gallerydesc p { + margin:0 0 .75em; + } +#gallerydesc .date { + display:block; + margin-bottom:.5em; + } + + +/* =Gallery Listing +Module showing all galleries in system +----------------------------------------------- */ +#secondary { + float:left; + width:705px; + padding:10px 0 0 15px; + margin:0; + } +.index .module { + float:left; + width:210px; + margin:0 17px 0 0; + padding:0 4px; + text-align:left; + } + +.galleries { + background:#eee; + float:left; + width:100%; + margin:0 0 15px; + position:relative; + } +.index .galleries { + margin-bottom:5px; + } +.galleries ul { + float:left; + margin-left:0; + margin-bottom:0; + list-style:none; + text-align:left; + } +.galleries li { + background-image:none; + float:left; + position:relative; + width:220px; + height:6.4em; + overflow:hidden; + margin-bottom:0; + padding:75px 0 1.6em 15px; + } +.archive .galleries li { + height:10.5em; + } +.galleries h3 { + margin:0 10px 0 4px; + font-size:100%; + } +.galleries h3 a, .galleries a.img, .galleries h3 a:visited { + border-width:0; + } +.galleries .img { + position:absolute; + top:0; + left:15px; + } +.galleries .img img { + display:block; + } +.galleries p { + margin:0 10px 0 4px; + } +.galleries div { + margin:0 4px; + } + + +/* =Auto-generated Gallery Index +Slide-formatted list of all galleries +----------------------------------------------- */ +.useslides ul { + text-align:center; + } +.useslides li { + padding-top:128px; + } +.useslides .thumb { + position:absolute; + top:0; + left:62px; + } +.useslides p { + margin-right:4px; + } + + +/* Feed links +Links to feeds appearing at bottom of Gallery Archive +----------------------------------------------- */ +#feeds { + float:left; + width:100%; + margin:0 0 10px; + } +#feeds ul { + margin:15px 0 0; + padding:9px 0; + list-style:none; + text-align:center; + } +#feeds li { + background-color:transparent; + background-image:none; + float:none; + width:auto; + display:inline; + margin:0 2px; + padding:0; + text-align:center; + } +#feeds li a { + background-color:#eee; + padding:8px 5px; + border:1px solid #fff; + } +#feeds li a:hover { + background-color:#ddd; + } + + +/* =GalleryData +Table of stats appearing on Gallery Index +----------------------------------------------- */ +.gallerydata { + width:100%; + border-top:1px solid #ccc; + font-size:100%; + } +.gallerydata th, .gallerydata td { + padding:5px; + border-bottom:1px solid #ccc; + font-weight:normal; + vertical-align:middle; + } +.gallerydata td { + text-align:right; + white-space:nowrap; + } + + +/* =FavList +Module on Index page displaying tiny thumbnails +of most recent favorite photos +----------------------------------------------- */ +#favlist { + float:left; + width:204px; + margin:0 -3px 0 0; + padding:0 0 0 6px; + list-style:none; + } +#favlist li { + background:url("../img/bg_slide_sm.gif") 0 0 no-repeat; + float:left; + width:62px; + margin:0 6px 6px 0; + padding:0; + } +html>body #favlist li { + background-image:url("../img/bg_slide_sm.png"); + } +#favlist table { + width:62px; + height:62px; + margin:0; + border-collapse:collapse; + font-size:1px; + } +#favlist td { + padding:0 2px 2px 0; + text-align:center; + vertical-align:middle; + } +#favlist li a { + border-width:0; + } + + +/* =Gallery Info +Title, description, & prefs on Photo Gallery page +----------------------------------------------- */ +.galleryinfo { + clear:left; + float:left; + width:22%; + margin:0; + line-height:1.4em; + } +.galleryinfo h1 { + margin:0 0 .5em; + text-align:left; + text-transform:none; + letter-spacing:0; + } +.galleryinfo .desc { + line-height:1.6em; + margin-bottom:1em; + } +.galleryinfo form { + margin:0 0 .5em; + padding:5px 0; + } +.galleryinfo fieldset { + margin:0 0 .75em; + padding:.25em 0 .5em; + border-width:0; + border-bottom:1px dotted #ccc; + } +.galleryinfo form strong { + display:block; + margin:0; + padding:0 0 .25em; + color:#222; + } +.galleryinfo fieldset div { + margin:0 0 .25em; + } + + +/* =Thumbs +Reusable style for thumbnail photos as slides +----------------------------------------------- */ +.thumb { + background:url("../img/bg_slide.gif") 0 0 no-repeat; + display:block; + float:left; + margin:0; + padding:0 3px 3px 0; + } +html>body .thumb { + background-image:url("../img/bg_slide.png"); + } +.thumb span { + background-repeat:no-repeat; + background-position:50% 104px; + display:block; + } +.thumbv span { + background-position:9px 50%; + } +.thumb em { + background-repeat:no-repeat; + background-position:50% 50%; + display:block; + } +.thumb a, .thumb a:link, .thumb a:visited { + background:none !important; + display:block; + width:120px; + height:120px; + border:none; + text-indent:-9999px; + font-size:1px; + line-height:1px; + } + + +/* =Slideset +Normal group of slide-like thumbnails +----------------------------------------------- */ +.slideset { + float:right; + position:relative; + width:75%; + margin:0 0 15px; + padding:0; + list-style:none; + line-height:1.4em; + } +.slideset .thumb { + float:left; + margin:0 10px 10px 0; + } + + +/* =Individual Photo +----------------------------------------------- */ +/* NOTE: + See [custom.css] to customize your own + photo dimensions with override values. */ +.main { + width:500px; + margin:0 auto; + text-align:center; + } +#photo { + margin:0 0 10px; + } +#photo strong { + background:#bbb; + position:relative; + display:block; + top:3px; + left:3px; + margin:0 0 10px 0; + border-width:0; + } +html>body #photo strong { + background:url("../img/bg_shadow.png"); + } +#photo img { + display:block; + position:relative; + top:-3px; + left:-3px; + border:10px solid #fff; + } + + +/* =PrevNext Nav (Individual Photo template) +Thumbnails used for prev/next photo navigation +----------------------------------------------- */ +#prevnext { + position:absolute; + top:25px; + left:50%; + } +#prev, #next { + position:absolute; + top:0; + width:123px; + margin:0; + font-weight:bold; + } +#prev { + right:262px; + } +#next { + left:265px; + } +#prev a, #next a { + width:120px; + } + + +/* =PrevNextHovers (Individual Photo template) +The two hoverable regions overlaying the main photo +----------------------------------------------- */ +/* Note: + Width and height for the following + strong element is set inline using the style + attribute. Both values are automatically + determined by taking the width/height of the + main photo. + Width is ((width of main photo + 20) / 2). + Height is (height of main photo + 20). */ +#prevnext a strong { + position:absolute; + top:0; + } +#prev a strong { + background:url("../img/photonav_prev.gif") no-repeat 50% -100px; + right:-262px; + } +#next a strong { + background:url("../img/photonav_next.gif") no-repeat 50% -100px; + left:-265px; + } +html>body #prev a strong { + background-image:url("../img/photonav_prev.png"); + } +html>body #next a strong { + background-image:url("../img/photonav_next.png"); + } +#prev a:hover strong, #next a:hover strong, #prev a:active strong, #next a:active strong { + background-position:50% 10px; + cursor:pointer; + } + + +/* =Description (Individual Photo template) +Title and description of photo +----------------------------------------------- */ +#desc { + position:absolute; + top:170px; + right:0; + width:50%; + text-align:left; + } +#desc h1 { + background:url("../img/divider_r.gif") no-repeat 265px 0; + max-width:30em; + margin:0; + padding:10px 15px 5px 265px; + border-width:0; + font:bold 100% Verdana,Sans-serif; + line-height:1.6em; + letter-spacing:0; + text-transform:none; + text-align:left; + } +html>body #desc h1 { + background-image:url("../img/divider_r.png"); + } +#desc p { + max-width:30em; + margin:0 0 .75em; + padding:0 15px 0 0; + } +#desc p.posted { + margin-top:1.25em; + } + + +/* =Meta info (Individual Photo template) +Photo x of y, date, and keywords +----------------------------------------------- */ +#meta { + position:absolute; + top:170px; + left:0; + width:50%; + } +#meta ul { + margin:0; + padding:0 265px 0 15px; + list-style:none; + } +#meta li { + background:none; + margin:0; + padding:0; + text-align:right; + } +#meta li.count { + background:url("../img/divider_l.gif") no-repeat 100% 0; + padding-top:10px; + padding-bottom:5px; + } +html>body #meta li.count { + background-image:url("../img/divider_l.png"); + } + + +/* =Count +Miscellaneous portions of the UI that display +a total count of photos for each gallery +----------------------------------------------- */ +.count { + font-style:italic; + } +.galleryinfo .count { + background:#ccc; + display:block; + margin:0 0 .5em; + padding:2px 5px; + font-style:normal; + } +#info p.count { + margin:3em 0 1.5em; + padding:5px 0; + border:solid #bbb; + border-width:1px 0; + font-size:100%; + line-height:1.6em; + } +input.btn, .header form select { + vertical-align:middle; + font-size:100%; + } + + +/* =Comments +General div IDs and headings that surround the +comment listing for an entry. These are the divs +the JavaScript uses to hide/show comments +----------------------------------------------- */ +#commentblock { + display:block; + width:480px; + margin:0 auto; + text-align:left; + } +#commentblock h2, #commentblock p.sub { + text-align:center; + font-weight:normal; + } +#commentblock h2 { + margin-top:0; + font:100% Verdana,Sans-serif; + color:#333; + } +#commentblock h2 a { + margin-left:.25em; + font-weight:normal; + border-width:0; + color:#666; + } +#commentblock h2 a img { + position:relative; + top:2px; + } +#showcomments, #hidecomments, #addcommentbutton { + display:none; + } +#addcomment h2 { + margin-top:.5em; + text-align:left; + font:140% "Trebuchet MS",Verdana,Sans-serif; + color:#974; + } + + +/* =Comment photo +Region on comment preview/error pages that displays +the thumbnail image, photo name, date, & keywords +----------------------------------------------- */ +#comment-photo { + float:left; + width:100%; + padding:35px 0 12px; + } +#comment-photo #desc { + position:static; + width:auto; + margin-left:133px; + padding:22px 0 2px; + } +#comment-photo #desc h1 { + background:none; + padding:0; + } +#comment-photo #desc p { + margin:0; + padding:0; + } + + +/* =CommentList +List of existing comments for an entry +----------------------------------------------- */ +dl.commentlist, ul.commentlist { + margin-bottom:1.5em; + } +#commentblock .commentlist { + margin-bottom:1em; + } +.commentlist dt, .commentlist li p.commenter { + padding:8px 0 .25em; + font-weight:normal; + } +.commentlist dd, .commentlist li { + background-image:none; + padding:2px 18px 4px; + margin:0 0 .5em; + border-bottom:1px dotted #bbb; + } +.commentlist .postno { + background:url("../img/icon_pushpin.gif") no-repeat 0 50%; + border-width:0; + padding:0 0 0 18px; + margin-right:2px; + font:150% "Gill Sans","Trebuchet MS",Georgia,Serif; + color:#567; + } +.commentlist a.postno { + border-bottom-width:0; + border-style:none; + } + +p.comment-error { + margin:0 0 1.5em; + color:#c33; + } +#comment-notes { + margin-top:2em; + } +#comment-notes p { + color:#554; + } + +.commentlink, .commentlink:visited { + background:url("../img/icon_pushpin.gif") no-repeat 0 50%; + border-width:0; + padding-left:17px; + white-space:nowrap; + } +a.commentlink, a.commentlink:visited { + color:#359; + font-weight:normal; + } +a.commentlink:hover { + color:#933; + border-color:#ccb; + text-decoration:none; + } + + +/* =Recent Comments +Only used on recent comments listing page +----------------------------------------------- */ +.recentcomments .commentlist { + float:left; + width:100%; + margin:0 0 15px; + padding:0; + list-style:none; + } +.recentcomments .commentlist li { + background-color:#eee; + float:left; + width:100%; + min-height:138px; + margin:0 0 15px; + padding:0 0 15px; + border-bottom-width:0; + } +.recentcomments li p { + margin-left:148px; + margin-right:15px; + } +.recentcomments li p.commenter { + margin-left:0; + padding-top:20px; + padding-left:148px; + font-style:italic; + } +.recentcomments p.thumb { + float:left; + background-position:15px 0; + height:123px; + margin:15px 10px 0 0; + padding-left:15px; + } +.commenton { + margin-bottom:5px; + padding-top:.5em; + border-top:1px solid #ccc; + color:#888; + } +.commenton a { + font-weight:bold; + } + + +/* =Comment Form +Comment Submission form +----------------------------------------------- */ +#comments-form table { + width:100%; + margin:0; + padding:0; + border-width:0; + font-size:100%; + color:#333; + } +#comments-form td { + width:100%; + } +#comments-form td, #comments-form th { + padding:5px 10px 5px 0; + border-bottom:1px dotted #bbb; + font-weight:normal; + } +#comments-form th { + text-transform:lowercase; + white-space:nowrap; + } +#comments-form td.buttons, #comments-form th.buttons { + border-width:0; + text-align:right; + } +#comments-form label { + text-transform:lowercase; + cursor:pointer; + } +#comments-form label:hover { + color:#963; + } +#comments-form textarea { + background:#fff; + display:block; + width:97%; + color:#000; + } +#comments-form textarea:focus { + background:#ffc; + } +#comments-form form p { + margin:.5em 0; + } +#comments-form .text { + width:65%; + } + + +/* =Footer +----------------------------------------------- */ +#footer { + clear:both; + width:100%; + padding:15px 0; + font-size:85%; + line-height:1.8em; + text-align:center; + color:#888; + } +#footer p { + margin:0 15px; + padding:5px 0; + border-top:1px solid #eee; + } +#footer hr { + display:none; + } +#footer a { + font-weight:normal; + color:#678; + } +#footer a:hover, #footer a:active { + color:#933; + border-bottom-width:1px; + } diff --git a/themes/stopdesign/img/bg.jpg b/themes/stopdesign/img/bg.jpg new file mode 100644 index 00000000..36273d69 Binary files /dev/null and b/themes/stopdesign/img/bg.jpg differ diff --git a/themes/stopdesign/img/bg_page.jpg b/themes/stopdesign/img/bg_page.jpg new file mode 100644 index 00000000..aebe2d8f Binary files /dev/null and b/themes/stopdesign/img/bg_page.jpg differ diff --git a/themes/stopdesign/img/bg_path.gif b/themes/stopdesign/img/bg_path.gif new file mode 100644 index 00000000..f923d9aa Binary files /dev/null and b/themes/stopdesign/img/bg_path.gif differ diff --git a/themes/stopdesign/img/bg_shadow.png b/themes/stopdesign/img/bg_shadow.png new file mode 100644 index 00000000..25703b76 Binary files /dev/null and b/themes/stopdesign/img/bg_shadow.png differ diff --git a/themes/stopdesign/img/bg_slide.gif b/themes/stopdesign/img/bg_slide.gif new file mode 100644 index 00000000..a801e33d Binary files /dev/null and b/themes/stopdesign/img/bg_slide.gif differ diff --git a/themes/stopdesign/img/bg_slide.png b/themes/stopdesign/img/bg_slide.png new file mode 100644 index 00000000..b54fa198 Binary files /dev/null and b/themes/stopdesign/img/bg_slide.png differ diff --git a/themes/stopdesign/img/bg_slide_sm.gif b/themes/stopdesign/img/bg_slide_sm.gif new file mode 100644 index 00000000..8ddd2c18 Binary files /dev/null and b/themes/stopdesign/img/bg_slide_sm.gif differ diff --git a/themes/stopdesign/img/bg_slide_sm.png b/themes/stopdesign/img/bg_slide_sm.png new file mode 100644 index 00000000..1df1a4b2 Binary files /dev/null and b/themes/stopdesign/img/bg_slide_sm.png differ diff --git a/themes/stopdesign/img/bullet_white.gif b/themes/stopdesign/img/bullet_white.gif new file mode 100644 index 00000000..d7545b2c Binary files /dev/null and b/themes/stopdesign/img/bullet_white.gif differ diff --git a/themes/stopdesign/img/divider_l.gif b/themes/stopdesign/img/divider_l.gif new file mode 100644 index 00000000..88ab52d2 Binary files /dev/null and b/themes/stopdesign/img/divider_l.gif differ diff --git a/themes/stopdesign/img/divider_l.png b/themes/stopdesign/img/divider_l.png new file mode 100644 index 00000000..0c8de096 Binary files /dev/null and b/themes/stopdesign/img/divider_l.png differ diff --git a/themes/stopdesign/img/divider_r.gif b/themes/stopdesign/img/divider_r.gif new file mode 100644 index 00000000..92605376 Binary files /dev/null and b/themes/stopdesign/img/divider_r.gif differ diff --git a/themes/stopdesign/img/divider_r.png b/themes/stopdesign/img/divider_r.png new file mode 100644 index 00000000..813fe176 Binary files /dev/null and b/themes/stopdesign/img/divider_r.png differ diff --git a/themes/stopdesign/img/icon_pushpin.gif b/themes/stopdesign/img/icon_pushpin.gif new file mode 100644 index 00000000..b9e8461e Binary files /dev/null and b/themes/stopdesign/img/icon_pushpin.gif differ diff --git a/themes/stopdesign/img/moreslide_next.gif b/themes/stopdesign/img/moreslide_next.gif new file mode 100644 index 00000000..987a638e Binary files /dev/null and b/themes/stopdesign/img/moreslide_next.gif differ diff --git a/themes/stopdesign/img/moreslide_prev.gif b/themes/stopdesign/img/moreslide_prev.gif new file mode 100644 index 00000000..93c2e11f Binary files /dev/null and b/themes/stopdesign/img/moreslide_prev.gif differ diff --git a/themes/stopdesign/img/photonav_next.gif b/themes/stopdesign/img/photonav_next.gif new file mode 100644 index 00000000..f2f572e1 Binary files /dev/null and b/themes/stopdesign/img/photonav_next.gif differ diff --git a/themes/stopdesign/img/photonav_next.png b/themes/stopdesign/img/photonav_next.png new file mode 100644 index 00000000..d0986f5e Binary files /dev/null and b/themes/stopdesign/img/photonav_next.png differ diff --git a/themes/stopdesign/img/photonav_prev.gif b/themes/stopdesign/img/photonav_prev.gif new file mode 100644 index 00000000..2c774ae7 Binary files /dev/null and b/themes/stopdesign/img/photonav_prev.gif differ diff --git a/themes/stopdesign/img/photonav_prev.png b/themes/stopdesign/img/photonav_prev.png new file mode 100644 index 00000000..d5773739 Binary files /dev/null and b/themes/stopdesign/img/photonav_prev.png differ diff --git a/themes/stopdesign/img/slide_minis.gif b/themes/stopdesign/img/slide_minis.gif new file mode 100644 index 00000000..2f31ed93 Binary files /dev/null and b/themes/stopdesign/img/slide_minis.gif differ diff --git a/themes/stopdesign/js/comments.js b/themes/stopdesign/js/comments.js new file mode 100644 index 00000000..0f92405f --- /dev/null +++ b/themes/stopdesign/js/comments.js @@ -0,0 +1,73 @@ + diff --git a/themes/stopdesign/js/rememberMe.js b/themes/stopdesign/js/rememberMe.js new file mode 100644 index 00000000..71fcb2f0 --- /dev/null +++ b/themes/stopdesign/js/rememberMe.js @@ -0,0 +1,60 @@ + diff --git a/themes/stopdesign/js/stopdesign.ui.init.js b/themes/stopdesign/js/stopdesign.ui.init.js new file mode 100644 index 00000000..895f9333 --- /dev/null +++ b/themes/stopdesign/js/stopdesign.ui.init.js @@ -0,0 +1,9 @@ +/** + * Initialize jQuery UI and Gallery Plugin elements + */ + +$(document).ready(function() { + $(".g-dialog-link").gallery_dialog('option', 'position', 'top'); + $(".g-dialog-link").gallery_dialog('option', 'draggable', false); + $(".g-ajax-link").gallery_ajax(); +}); diff --git a/themes/stopdesign/js/ui.init.js b/themes/stopdesign/js/ui.init.js new file mode 100644 index 00000000..465eda86 --- /dev/null +++ b/themes/stopdesign/js/ui.init.js @@ -0,0 +1,111 @@ +/** + * Initialize jQuery UI and Gallery Plugins + */ + +$(document).ready(function() { + + // Initialize Superfish menus (hidden, then shown to address IE issue) + /*$("#g-site-menu .g-menu").hide().addClass("sf-menu"); + $("#g-site-menu .g-menu").superfish({ + delay: 500, + animation: { + opacity:'show', + height:'show' + }, + pathClass: "g-selected", + speed: 'fast' + }).show();*/ + + // Initialize status message effects + /*$("#g-action-status li").gallery_show_message();*/ + + // Initialize dialogs + $(".g-dialog-link").gallery_dialog(); + + // Initialize short forms + /*$(".g-short-form").gallery_short_form();*/ + + // Apply jQuery UI icon, hover, and rounded corner styles + /*$("input[type=submit]:not(.g-short-form input)").addClass("ui-state-default ui-corner-all"); + if ($("#g-view-menu").length) { + $("#g-view-menu ul").removeClass("g-menu").removeClass("sf-menu"); + $("#g-view-menu a").addClass("ui-icon"); + }*/ + + // Apply jQuery UI icon and hover styles to context menus + /*if ($(".g-context-menu").length) { + $(".g-context-menu li").addClass("ui-state-default"); + $(".g-context-menu a").addClass("g-button ui-icon-left"); + $(".g-context-menu a").prepend(""); + $(".g-context-menu a span").each(function() { + var iconClass = $(this).parent().attr("class").match(/ui-icon-.[^\s]+/).toString(); + $(this).addClass(iconClass); + }); + }*/ + + // Album view only + /*if ($("#g-album-grid").length) { + // Set equal height for album items and vertically align thumbnails/metadata + $('.g-item').equal_heights().gallery_valign(); + + // Initialize thumbnail hover effect + $(".g-item").hover( + function() { + // Insert a placeholder to hold the item's position in the grid + var placeHolder = $(this).clone().attr("id", "g-place-holder"); + $(this).after($(placeHolder)); + // Style and position the hover item + var position = $(this).position(); + $(this).css("top", position.top).css("left", position.left); + $(this).addClass("g-hover-item"); + // Initialize the contextual menu + $(this).gallery_context_menu(); + // Set the hover item's height + $(this).height("auto"); + var context_menu = $(this).find(".g-context-menu"); + var adj_height = $(this).height() + context_menu.height(); + $(this).height(adj_height); + }, + function() { + // Reset item height and position + if ($(this).next().height()) { + var sib_height = $(this).next().height(); + } else { + var sib_height = $(this).prev().height(); + } + if ($.browser.msie && $.browser.version >= 8) { + sib_height = sib_height + 1; + } + $(this).css("height", sib_height); + $(this).css("position", "relative"); + $(this).css("top", 0).css("left", 0); + // Remove the placeholder and hover class from the item + $(this).removeClass("g-hover-item"); + $("#g-place-holder").remove(); + } + ); + }*/ + + // Photo/Item item view + /*if ($("#g-photo,#g-movie").length) { + // Ensure the resized image fits within its container + $("#g-photo,#g-movie").gallery_fit_photo(); + + // Initialize context menus + var resize = $("#g-photo,#g-movie").gallery_get_photo(); + $(resize).hover(function(){ + $(this).gallery_context_menu(); + }); + + // Add scroll effect for links to named anchors + $.localScroll({ + queue: true, + duration: 1000, + hash: true + }); + }*/ + + // Initialize button hover effect + /*$.fn.gallery_hover_init();*/ + +}); diff --git a/themes/stopdesign/theme.info b/themes/stopdesign/theme.info new file mode 100644 index 00000000..660cda32 --- /dev/null +++ b/themes/stopdesign/theme.info @@ -0,0 +1,6 @@ +name = "Stop Design" +description = "A clean and sober theme from stopdesign.com, by Douglas Bowman." +version = 1 +author = "Romain LE DISEZ" +site = 1 +admin = 0 diff --git a/themes/stopdesign/thumbnail.png b/themes/stopdesign/thumbnail.png new file mode 100644 index 00000000..53abcecf Binary files /dev/null and b/themes/stopdesign/thumbnail.png differ diff --git a/themes/stopdesign/views/album.html.php b/themes/stopdesign/views/album.html.php new file mode 100644 index 00000000..f235ecd2 --- /dev/null +++ b/themes/stopdesign/views/album.html.php @@ -0,0 +1,61 @@ + + +
+

title) ?>

+

description)) ?>

+
+ +
    + + + $child): ?> + is_album() ): ?> +
  • title) ?>
  • + + + + $child): ?> + is_album() ): ?> +
  • title) ?>
  • + + + +
+ +
+

+ ($page - 1) * $page_size + 1, + "to_number" => min($page * $page_size, $children_count), + "count" => $children_count)) ?> + + + $page - 1))) ?>" accesskey="z">« + +   + + $page + 1))) ?>" accesskey="x"> » + +

+ + +

Actions

+ + +
\ No newline at end of file diff --git a/themes/stopdesign/views/block.html.php b/themes/stopdesign/views/block.html.php new file mode 100644 index 00000000..699d7c22 --- /dev/null +++ b/themes/stopdesign/views/block.html.php @@ -0,0 +1,10 @@ + + + + +
+

+
+ +
+
diff --git a/themes/stopdesign/views/dynamic.html.php b/themes/stopdesign/views/dynamic.html.php new file mode 100644 index 00000000..a8a4d362 --- /dev/null +++ b/themes/stopdesign/views/dynamic.html.php @@ -0,0 +1,29 @@ + +
+
+ dynamic_top() ?> +
+

+
+ +
    + $child): ?> +
  • "> + thumb_top($child) ?> + + photo + +

    title) ?>

    + thumb_bottom($child) ?> + +
  • + +
+dynamic_bottom() ?> + +paginator() ?> diff --git a/themes/stopdesign/views/movie.html.php b/themes/stopdesign/views/movie.html.php new file mode 100644 index 00000000..27c293ce --- /dev/null +++ b/themes/stopdesign/views/movie.html.php @@ -0,0 +1,18 @@ + +
+ photo_top() ?> + + paginator() ?> + +
+ movie_img(array("class" => "g-movie", "id" => "g-movie-id-{$item->id}")) ?> + context_menu($item, "#g-movie-id-{$item->id}") ?> +
+ +
+

title) ?>

+
description)) ?>
+
+ + photo_bottom() ?> +
diff --git a/themes/stopdesign/views/no_sidebar.html.php b/themes/stopdesign/views/no_sidebar.html.php new file mode 100644 index 00000000..378bd971 --- /dev/null +++ b/themes/stopdesign/views/no_sidebar.html.php @@ -0,0 +1,6 @@ + +
    +
  • + Add blocks", + array("url" => html::mark_clean(url::site("admin/sidebar")))) ?>
  • +
diff --git a/themes/stopdesign/views/page.html.php b/themes/stopdesign/views/page.html.php new file mode 100644 index 00000000..e7703272 --- /dev/null +++ b/themes/stopdesign/views/page.html.php @@ -0,0 +1,96 @@ + + + + + + + <? if ($page_title): ?> + <?= $page_title ?> + <? else: ?> + <? if ($theme->item()): ?> + <? if ($theme->item()->is_album()): ?> + <?= t("Browse Album :: %album_title", array("album_title" => $theme->item()->title)) ?> + <? elseif ($theme->item()->is_photo()): ?> + <?= t("Photo :: %photo_title", array("photo_title" => $theme->item()->title)) ?> + <? else: ?> + <?= t("Movie :: %movie_title", array("movie_title" => $theme->item()->title)) ?> + <? endif ?> + <? elseif ($theme->tag()): ?> + <?= t("Browse Tag :: %tag_title", array("tag_title" => $theme->tag()->name)) ?> + <? else: /* Not an item, not a tag, no page_title specified. Help! */ ?> + <?= t("Gallery") ?> + <? endif ?> + <? endif ?> + + " type="image/x-icon" /> + + css("_DISABLED_yui/reset-fonts-grids.css") ?> + css("_DISABLED_superfish/css/superfish.css") ?> + css("_DISABLED_themeroller/ui.base.css") ?> + css("_DISABLED_gallery.common.css") ?> + script("jquery.js") ?> + script("jquery.form.js") ?> + script("jquery-ui.js") ?> + script("gallery.common.js") ?> + + + script("gallery.ajax.js") ?> + script("gallery.dialog.js") ?> + script("superfish/js/superfish.js") ?> + script("jquery.localscroll.js") ?> + script("ui.init.js") ?> + + head() they get combined */ ?> + page_subtype == "photo"): ?> + script("jquery.scrollTo.js") ?> + script("gallery.show_full_size.js") ?> + page_subtype == "movie"): ?> + script("flowplayer.js") ?> + + + css("photos.css") ?> + css("aus04.css") ?> + css("custom.css") ?> + css("custom.gallery3.css") ?> + css("custom.gallery3-dialog.css") ?> + script("_DISABLED_rememberMe.js") ?> + script("_DISABLED_comments.js") ?> + script("stopdesign.ui.init.js") ?> + + head() ?> + + + +
+ +
+ + item() && !empty($parents)): ?> +

+ + + item()->id}" : null) ?>"> + title) ?> + » + + + item()->title) ?> +

+ + + + + diff --git a/themes/stopdesign/views/paginator.html.php b/themes/stopdesign/views/paginator.html.php new file mode 100644 index 00000000..5034c965 --- /dev/null +++ b/themes/stopdesign/views/paginator.html.php @@ -0,0 +1,87 @@ + + + +
    +
  • + + + + + + + + + + + + + + + + + +
  • + +
  • + + + $first_visible_position, + "to_number" => $last_visible_position, + "count" => $total)) ?> + + $position, "total" => $total)) ?> + + + + +
  • + +
  • + + + + + + + + + + + + + + + + + +
  • +
diff --git a/themes/stopdesign/views/photo.html.php b/themes/stopdesign/views/photo.html.php new file mode 100644 index 00000000..fb3d99de --- /dev/null +++ b/themes/stopdesign/views/photo.html.php @@ -0,0 +1,49 @@ + + +
+
+

title) ?>

+

description)) ?>

+
+ +
+

resize_img(array()) ?>

+
+ + + +
+ +
+ + + + + + + +
+
+ + photo_bottom() ?> diff --git a/themes/stopdesign/views/sidebar.html.php b/themes/stopdesign/views/sidebar.html.php new file mode 100644 index 00000000..086d1359 --- /dev/null +++ b/themes/stopdesign/views/sidebar.html.php @@ -0,0 +1,16 @@ + +sidebar_top() ?> +
+ + album_menu() ?> + + photo_menu() ?> + + movie_menu() ?> + + tag_menu() ?> + +
+ +sidebar_blocks() ?> +sidebar_bottom() ?> diff --git a/themes/three_nids/views/comments.html.php b/themes/three_nids/views/comments.html.php index 01eeadd3..5086aceb 100644 --- a/themes/three_nids/views/comments.html.php +++ b/themes/three_nids/views/comments.html.php @@ -46,7 +46,7 @@
  • - %name %date: ', + %name %date: ', array("date" => date(module::get_var("gallery", "date_time_format", "Y-M-d H:i:s"), $comment->created), "name" => html::clean($comment->author_name()))); ?>