'+ + ' | '+ + ' | '+ + ' |
'+ + ' | '+
+ ' '+
+ ' '+
+ ' '+
+ ' '+
+ ''+
+ ''+
+ ' | '+
+ ''+ + ' |
'+ + ' | '+ + ' | '+ + ' |
' + descr + '
'); + } + animate_image(); + break; + + case 'single': + piro_close.add(btn_info).add(piro_capt).hide(); + div_reg.html('').css('overflow','hidden'); + resize.css('overflow','hidden'); + $('.my_frame').remove(); + if(descr == ""){ + piro_capt.html(''); + }else{ + piro_capt.html('' + descr + '
'); + } + animate_image(); + break + } + } + }); + $('.immagine').live('click',function(){ + piro_capt.slideToggle(200); + }); + + function close_all (){ + if($('.piro_close').is(':visible')){ + $('.my_frame').remove(); + wrapper.add(div_reg).add(resize).stop(); + var ie_sucks = wrapper; + if ( $.browser.msie ) { + ie_sucks = div_reg.add(piro_bg); + $('.div_reg img').remove(); + }else{ + ie_sucks = wrapper.add(piro_bg); + } + ie_sucks.piroFadeOut(200,function(){ + div_reg.html(''); + piro_loader.add(piro_capt).add(btn_info).hide(); + $('.nav_container').hide(); + piro_bg.add(wrapper).hide().css('visibility','visible'); + }); + } + } + piro_close.add(piro_loader).add(piro_bg).bind('click',function(y){y.preventDefault(); close_all(); }); + } +})(jQuery); \ No newline at end of file Index: main/plugin-explorer/resources/pirobox_ext/new_skin_left.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: main\plugin-explorer\resources\pirobox_ext\new_skin_left.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: main/plugin-explorer/resources/pirobox_ext/next.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: main\plugin-explorer\resources\pirobox_ext\next.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: main/plugin-explorer/resources/pirobox_ext/style.css =================================================================== --- main/plugin-explorer/resources/pirobox_ext/style.css (revision 0) +++ main/plugin-explorer/resources/pirobox_ext/style.css (revision 0) @@ -0,0 +1,44 @@ +*{ + margin:0; + padding:0; +} +.piro_html {position:absolute; top:0; left:0; padding:0; width:500px; height: 500px; margin:0; display:block; padding:0; z-index:150001; padding:0; } +.piro_html table,.piro_html tbody,.piro_html tr,.piro_html th,.piro_html td{margin:0;padding:0;border:none;} +.piro_html img{ margin:0; padding:0; border:none;} + +.piro_html .h_t_l{ width:10px; height:10px; background: url(caption.png);} +.piro_html .h_t_r{ width:10px; height:10px; background: url(caption.png);} +.piro_html .h_t_c{ cursor:move; height:10px;background: url(caption.png);} + +.piro_html .h_c_l{width:10px; background: url(caption.png); } +.piro_html .h_c_c{background: url(caption.png);margin:0; padding:0;} +.piro_html .h_c_c .div_reg{ background: url(caption.png); width:480px; overflow:hidden; height:480px; margin:0; padding:0; } +.piro_html .h_c_c .div_reg img{ cursor:move;} +.piro_html .h_c_r{width:10px; background: url(caption.png);} + +.piro_html .h_b_c{ cursor:move; height:10px;background: url(caption.png);} +.piro_html .h_b_l{ width:10px; height:10px;background: url(caption.png);} +.piro_html .h_b_r{ width:10px; height:10px;background: url(caption.png);} + +.piro_overlay{position:fixed; top:0; left:0; width:100%; height:100%; z-index:150000;background:#fff;display:none; cursor:pointer;} +.piro_loader{position:absolute;top:50%;left:50%;margin:-59px 0 0 -59px;width:118px;height:118px;display:block;z-index:150005; cursor:pointer; } +.piro_loader span{position:absolute;top:50%;left:50%;margin-top:-36px;margin-left:-36px;width:72px;height:72px;display:block;z-index:150009; background: url(loadinfo.gif) center top no-repeat; } +.piro_title{position:fixed; background: url(bg_title.png) bottom repeat-x;top:0;left:0;width:100%; text-align:center;display:block; padding:6px 0 10px 0; color:white; z-index:150000; font-size:18px; display:none;} +.btn_info{position:absolute;bottom:-7px;right:-7px;width:25px; height:25px;margin:0;display:block; padding:0px; color:black; cursor:pointer; background: url(b_w/info.png) no-repeat; z-index:1500440} +.caption{position:absolute;bottom:10px;left:10px;margin:0;display:block; padding:0px; color:black; cursor:text; background: url(caption.png); z-index:150018} +.caption p{ display:block; margin:0;padding:7px 5px; text-align:center; font-weight:normal; font-size:14px; color:white; z-index:150019; color:white;} + +.nav_container{position:absolute; bottom:-20px; right:0; height:20px; width:60px; background: url(caption.png); z-index:1500190000000;} +.piro_close{position:absolute;right:20px;height:20px;width:20px;background: transparent url(close.png) no-repeat center center;cursor:pointer;margin:0 0 0 0;z-index:150022;display:none;} +a.piro_next{position:absolute;width:20px; right:0px; height:20px;text-indent:-999em;outline:none; display:block; margin:0;background:url(next.png) center right no-repeat; border:none; cursor:pointer;z-index:150023} +a:hover.piro_next{background:url(next.png) center right no-repeat;} +.piro_next_fake{position:absolute;width:20px; right:0px; height:20px;outline:none; text-indent:-999em; display:none; margin:0;background: url(next.png) center right no-repeat; border:none; cursor:auto;z-index:150020} +.piro_prev_fake{position:absolute;width:20px; right:40px; height:20px;outline:none; text-indent:-999em; display:none; margin:0;background: url(prev.png) center right no-repeat; border:none; cursor:auto;z-index:150020} + +a.piro_prev{position:absolute;width:20px; right:40px; height:20px; text-indent:-999em; outline:none;display:block;margin:0;background: url(prev.png) center left no-repeat;border:none; cursor:pointer; z-index:150024} +a:hover.piro_prev{background:url(prev.png) center left no-repeat;} +a.close_pirobox{color:#bb0f05;} + + + + Index: main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js =================================================================== --- main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js (revision 9428) +++ main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/toolbar/ToolbarActions.i18n.js (working copy) @@ -14,21 +14,9 @@ * limitations under the License. */ -Ext.namespace('org.ametys.explorer.applications.resources.toolbar'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.add'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.rename'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.remove'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder.archive'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.add'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.rename'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.viewHistory'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.editDublinCore'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.remove'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.move'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.copy'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File.download'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.View.icons'); -Ext.namespace('org.ametys.explorer.applications.resources.toolbar.View.details'); +Ext.namespace('org.ametys.explorer.applications.resources.toolbar.Folder'); +Ext.namespace('org.ametys.explorer.applications.resources.toolbar.File'); +Ext.namespace('org.ametys.explorer.applications.resources.toolbar.View'); /*------------------------------------------------------------------------*/ org.ametys.explorer.applications.resources.toolbar.Folder.add = function (application) @@ -372,7 +360,42 @@ { application.queryCommandState ('resourceMoved', {'id': files[0], 'parentID': parentID}); } +/*------------------------------------------------------------------------*/ +org.ametys.explorer.applications.resources.toolbar.File.slideshow = function (btn, state, application) +{ + var divEl = Ext.get("div-slideshow"); + if (divEl == null) + { + var div = document.createElement("div"); + div.id = "div-slideshow"; + div.style.display = "none"; + document.body.appendChild(div); + divEl = Ext.get("div-slideshow"); + } + else + { + divEl.dom.innerHTML = ""; + } + + for (var i = 0; i < btn._ids.length; i++) + { + var link = document.createElement("a"); + link.id = "div-slideshow-" + i; + link.className = "pirobox" + (btn._ids.length == 1 ? "" : "_gall"); + link.rel = (btn._ids.length == 1 ? "single" : "gallery"); + link.href = getPluginDirectUrl("explorer") + "/resource?id=" + btn._ids[i]; + divEl.dom.appendChild(link); + } + + $('.piro_html').remove(); + $('.piro_overlay').remove(); + + $().piroBox_ext({bg_alpha : 0.5}); + + $('#div-slideshow-0').click(); +} + /*------------------------------------------------------------------------*/ org.ametys.explorer.applications.resources.toolbar.View.icons = function (btn, state, application) { @@ -390,6 +413,7 @@ } } /*------------------------------------------------------------------------*/ +/*------------------------------------------------------------------------*/ org.ametys.explorer.applications.resources.toolbar.AssignRights = function (btn, state, application) { application._explorer.showHideRightsPanel (state); Index: main/plugin-explorer/resources/pirobox_ext/new_skin_top.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: main\plugin-explorer\resources\pirobox_ext\new_skin_top.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: main/plugin-explorer/resources/pirobox_ext/pirobox_extended_min.js =================================================================== --- main/plugin-explorer/resources/pirobox_ext/pirobox_extended_min.js (revision 0) +++ main/plugin-explorer/resources/pirobox_ext/pirobox_extended_min.js (revision 0) @@ -0,0 +1,33 @@ +/** +* Name: PiroBox Extended v.1.0 +* Date: Gen 2011 +* Autor: Diego Valobra (http://www.pirolab.it),(http://www.diegovalobra.com) +* Version: 1.0 +* Licence: CC-BY-SA http://creativecommons.org/licenses/by-sa/3/it/ +**/ +(function($){$.fn.piroBox_ext=function(opt){opt=jQuery.extend({piro_speed:700,bg_alpha:0.9,piro_scroll:true},opt);$.fn.piroFadeIn=function(speed,callback){$(this).fadeIn(speed,function(){if(jQuery.browser.msie) +$(this).get(0).style.removeAttribute('filter');if(callback!=undefined) +callback();});};$.fn.piroFadeOut=function(speed,callback){$(this).fadeOut(speed,function(){if(jQuery.browser.msie) +$(this).get(0).style.removeAttribute('filter');if(callback!=undefined) +callback();});};var my_gall_obj=$('a[class*="pirobox"]');var map=new Object();for(var i=0;i'+' | '+' | '+' |
'+' | '+' '+' '+' '+' '+''+''+' | '+''+' |
'+' | '+' | '+' |
'+descr+'
');} +animate_image();break;case'single':piro_close.add(btn_info).add(piro_capt).hide();div_reg.html('').css('overflow','hidden');resize.css('overflow','hidden');$('.my_frame').remove();if(descr==""){piro_capt.html('');}else{piro_capt.html(''+descr+'
');} +animate_image();break}}});$('.immagine').live('click',function(){piro_capt.slideToggle(200);});function close_all(){if($('.piro_close').is(':visible')){$('.my_frame').remove();wrapper.add(div_reg).add(resize).stop();var ie_sucks=wrapper;if($.browser.msie){ie_sucks=div_reg.add(piro_bg);$('.div_reg img').remove();}else{ie_sucks=wrapper.add(piro_bg);} +ie_sucks.piroFadeOut(200,function(){div_reg.html('');piro_loader.add(piro_capt).add(btn_info).hide();$('.nav_container').hide();piro_bg.add(wrapper).hide().css('visibility','visible');});}} +piro_close.add(piro_loader).add(piro_bg).bind('click',function(y){y.preventDefault();close_all();});}})(jQuery); \ No newline at end of file Index: main/plugin-explorer/resources/pirobox_ext/close.png =================================================================== Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream Property changes on: main\plugin-explorer\resources\pirobox_ext\close.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Index: main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js =================================================================== --- main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js (revision 9428) +++ main/plugin-explorer/resources/js/org/ametys/explorer/applications/resources/ResourcesApplication.i18n.js (working copy) @@ -1,979 +0,0 @@ -/* - * Copyright 2010 Anyware Services - * - * 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. - */ - -Ext.namespace('org.ametys.explorer.applications.resources'); - -org.ametys.explorer.applications.resources.ResourcesApplication = function(explorer, id, pluginName) -{ - org.ametys.explorer.applications.resources.ResourcesApplication.superclass.constructor.call(this, id, pluginName); - this._explorer = explorer; -}; - -Ext.extend(org.ametys.explorer.applications.resources.ResourcesApplication, org.ametys.explorer.applications.Application, {}); - - -org.ametys.explorer.applications.resources.ResourcesApplication.prototype._appPrefix = 'resources-app-'; -org.ametys.explorer.applications.resources.ResourcesApplication.prototype._explorer; - -org.ametys.explorer.applications.resources.ResourcesApplication.prototype.createPanel = function(index) -{ - //org.ametys.explorer.applications.resources.Application.setApplication (this); - - this._store = this._getStore(); - - this._thumbnailView = new org.ametys.explorer.view.ImageThumbnailViewer ({ - id: this._appPrefix + 'resources-icons-view', - - store : this._store - }); - this._thumbnailView.addListener ('selectionchange', this._onSelectFiles, this); - this._thumbnailView.addListener ('dblclick', this._onDblClick, this); - this._thumbnailView.addListener ('beforeselect', this._onBeforeSelect, this); - - this._detailsView = new org.ametys.explorer.view.DetailsViewer ({ - id : this._appPrefix + 'resources-details-view', - store : this._store, - border: false, - columns: this._getColumns (this._detailsView) - }); - this._detailsView.getSelectionModel().addListener ('selectionchange', this._onSelectFiles, this); - this._detailsView.addListener ('celldblclick', this._onDblClick, this); - this._detailsView.addListener ('cellclick', this._onClick, this); - - this._panel = new Ext.Panel({ - layout: 'card', - activeItem : 0, - border: false, - autoScroll: true, - - items: [this._detailsView, this._thumbnailView] - }); - - this._panel.addListener ('afterrender', this._initView, this); - - return this._panel; -}; - -org.ametys.explorer.applications.resources.ResourcesApplication.prototype._getColumns = function (view) -{ - return [ - {header: "