Changeset 25997 for extensions
- Timestamp:
- Dec 17, 2013, 11:22:53 PM (11 years ago)
- Location:
- extensions/Slim
- Files:
-
- 5 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Slim/Slim.php
r21059 r25997 2 2 if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 3 3 4 global $conf, $template ,$smarty, $repeat;4 global $conf, $template; 5 5 $params = array_merge(unserialize($conf['Slim'])); 6 6 $template->assign('Slim', $params); 7 7 8 8 9 … … 13 14 <link rel="stylesheet" type="text/css" href="themes/Slim/theme_black.css"> 14 15 15 ' ,$smarty, $repeat);16 '); 16 17 }; 17 18 if ($params['color_theme'] == 3 ) … … 20 21 <link rel="stylesheet" type="text/css" href="themes/Slim/theme_grey.css"> 21 22 22 ' ,$smarty, $repeat);23 '); 23 24 }; 24 25 -
extensions/Slim/admin/admin.tpl
r20564 r25997 1 1 {html_head} 2 <script src="themes/Slim/admin/js/jquery.screwdefaultbuttonsV2.min.js" type="text/javascript"></script>3 2 <style media="screen" type="text/css"> 4 3 {literal} … … 6 5 {/literal} 7 6 </style> 8 9 <script type="text/javascript">10 {literal}11 $(function(){12 13 $('input:radio').screwDefaultButtons({14 image: 'url("themes/Slim/admin/images/radioSmall_Blue.png")',15 width: 35,16 height: 3517 });18 19 });20 {/literal}21 </script>22 7 {/html_head} 23 8 -
extensions/Slim/js/jquery.jcarousel.min.js
r18811 r25997 12 12 * Inspired by the "Carousel Component" by Bill Scott 13 13 * http://billwscott.com/carousel/ 14 14 */ 15 15 16 16 (function(g){var q={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click", buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},m=!1;g(window).bind("load.jcarousel",function(){m=!0});g.jcarousel=function(a,c){this.options=g.extend({},q,c||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===void 0)this.options.rtl=(g(a).attr("dir")||g("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical? this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f<d.length;f++)if(d[f].indexOf("jcarousel-skin")!=-1){g(a).removeClass(d[f]);b=d[f];break}a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"?(this.list=g(a),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=g(a),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip"));if(this.clip.size()===0)this.clip= this.list.wrap("<div></div>").parent();if(this.container.size()===0)this.container=this.clip.wrap("<div></div>").parent();b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.buttonPrev=g(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=g(this.options.buttonPrevHTML).appendTo(this.container);this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext= g(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=g(this.options.buttonNextHTML).appendTo(this.container);this.buttonNext.addClass(this.className("jcarousel-next"));this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"}); !this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,b=this.list.children("li"),e=this;if(b.size()>0){var h=0,i=this.options.offset;b.each(function(){e.format(this,i++);h+=e.dimension(this,j)});this.list.css(this.wh,h+100+"px");if(!c||c.size===void 0)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display", "block");this.funcNext=function(){e.next()};this.funcPrev=function(){e.prev()};this.funcResize=function(){e.resizeTimer&&clearTimeout(e.resizeTimer);e.resizeTimer=setTimeout(function(){e.reload()},100)};this.options.initCallback!==null&&this.options.initCallback(this,"init");!m&&g.browser.safari?(this.buttons(!1,!1),g(window).bind("load.jcarousel",function(){e.setup()})):this.setup()};var f=g.jcarousel;f.fn=f.prototype={jcarousel:"0.2.8"};f.fn.extend=f.extend=g.extend;f.fn.extend({setup:function(){this.prevLast= this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(a,!1);g(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this)}},reset:function(){this.list.empty();this.list.css(this.lt, "0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this, c);f+1<a.first&&(d=b)});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0;this.buttons()},unlock:function(){this.locked=!1;this.buttons()},size:function(a){if(a!==void 0)this.options.size=a,this.locked||this.buttons();return this.options.size},has:function(a,c){if(c===void 0||!c)c=a;if(this.options.size!==null&&c>this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return!1}return!0}, get:function(a){return g(">.jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,p=g(c);if(b.length===0)for(var j,e=f.intval(a),b=this.create(a);;){if(j=this.get(--e),e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break}}else d=this.dimension(b);p.get(0).nodeName.toUpperCase()=="LI"?(b.replaceWith(p),b=p):b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);p=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible): null;d=this.dimension(b,p)-d;a>0&&a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,f.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(c.length&&!(a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,f.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.tail!==null&&!this.inTail?this.scrollTail(!1): this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!==null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.tail!==null&&this.inTail?this.scrollTail(!0):this.scroll((this.options.wrap=="both"||this.options.wrap=="first")&&this.options.size!==null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var c=f.intval(this.list.css(this.lt)), c=!a?c-this.tail:c+this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){!this.locked&&!this.animating&&(this.pauseAuto(),this.animate(this.pos(a),c))},pos:function(a,c){var b=f.intval(this.list.css(this.lt));if(this.locked||this.animating)return b;this.options.wrap!="circular"&&(a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a);for(var d=this.first>a,g=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(g): this.get(this.last),e=d?g:g-1,h=null,i=0,k=!1,l=0;d?--e>=a:++e<a;){h=this.get(e);k=!h.length;if(h.length===0&&(h=this.create(e).addClass(this.className("jcarousel-item-placeholder")),j[d?"before":"after"](h),this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size)))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));j=h;l=this.dimension(h);k&&(i+=l);if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<= this.options.size)))b=d?b+l:b-l}for(var g=this.clipping(),m=[],o=0,n=0,j=this.get(a-1),e=a;++o;){h=this.get(e);k=!h.length;if(h.length===0){h=this.create(e).addClass(this.className("jcarousel-item-placeholder"));if(j.length===0)this.list.prepend(h);else j[d?"before":"after"](h);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)))}j=h;l=this.dimension(h);if(l===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."); this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size?m.push(h):k&&(i+=l);n+=l;if(n>=g)break;e++}for(h=0;h<m.length;h++)m[h].remove();i>0&&(this.list.css(this.wh,this.dimension(this.list)+i+"px"),d&&(b-=i,this.list.css(this.lt,f.intval(this.list.css(this.lt))-i+"px")));i=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&i>this.options.size)i=this.options.size;if(e>i){o=0;e=i;for(n=0;++o;){h=this.get(e--);if(!h.length)break;n+=this.dimension(h);if(n>=g)break}}e=i-o+ 1;this.options.wrap!="circular"&&e<1&&(e=1);if(this.inTail&&d)b+=this.tail,this.inTail=!1;this.tail=null;if(this.options.wrap!="circular"&&i==this.options.size&&i-o+1>=1&&(d=f.intval(this.get(i).css(!this.options.vertical?"marginRight":"marginBottom")),n-d>g))this.tail=n-g-d;if(c&&a===this.options.size&&this.tail)b-=this.tail,this.inTail=!0;for(;a-- >e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=i;return b},animate:function(a,c){if(!this.locked&& !this.animating){this.animating=!0;var b=this,d=function(){b.animating=!1;a===0&&b.list.css(b.lt,0);!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last<b.options.size||b.last==b.options.size&&b.tail!==null&&!b.inTail)&&b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null)for(var c=b.prevFirst;c<=b.prevLast;c++)c!==null&&!(c>=b.first&&c<=b.last)&&(c<1||c>b.options.size)&&b.remove(c)}; this.notify("onBeforeAnimation");if(!this.options.animation||c===!1)this.list.css(this.lt,a+"px"),d();else{var f=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},d={duration:this.options.animation,easing:this.options.easing,complete:d};if(g.isFunction(this.options.animationStepCallback))d.step=this.options.animationStepCallback;this.list.animate(f,d)}}},startAuto:function(a){if(a!==void 0)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped= !1;var c=this;this.timer=window.setTimeout(function(){c.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){if(this.timer!==null)window.clearTimeout(this.timer),this.timer=null},buttons:function(a,c){if(a==null&&(a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last<this.options.size),!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!==null&& this.last>=this.options.size))a=this.tail!==null&&!this.inTail;if(c==null&&(c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1))c=this.tail!==null&&this.inTail;var b=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext), this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a)):this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev), c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState= a;this.buttonPrevState=c},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",a,c);this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",a,c,this.first),this.callback("itemFirstOutCallback",a,c,this.prevFirst));this.prevLast!==this.last&&(this.callback("itemLastInCallback",a,c,this.last),this.callback("itemLastOutCallback",a,c,this.prevLast));this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst, this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(a,c,b,d,f,j,e){if(!(this.options[a]==null||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var h=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(g.isFunction(h)){var i=this;if(d===void 0)h(i,b,c);else if(f===void 0)this.get(d).each(function(){h(i,this,d,b,c)});else for(var a=function(a){i.get(a).each(function(){h(i,this,a,b,c)})},k=d;k<=f;k++)k!== null&&!(k>=j&&k<=e)&&a(k)}}},create:function(a){return this.format("<li></li>",a)},format:function(a,c){for(var a=g(a),b=a.get(0).className.split(" "),d=0;d<b.length;d++)b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")}, dimension:function(a,c){var b=g(a);if(c==null)return!this.options.vertical?b.outerWidth(!0)||f.intval(this.options.itemFallbackDimension):b.outerHeight(!0)||f.intval(this.options.itemFallbackDimension);else{var d=!this.options.vertical?c-f.intval(b.css("marginLeft"))-f.intval(b.css("marginRight")):c-f.intval(b.css("marginTop"))-f.intval(b.css("marginBottom"));g(b).css(this.wh,d+"px");return this.dimension(b)}},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-f.intval(this.clip.css("borderLeftWidth"))- f.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-f.intval(this.clip.css("borderTopWidth"))-f.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==null)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});f.extend({defaults:function(a){return g.extend(q,a||{})},intval:function(a){a=parseInt(a,10);return isNaN(a)?0:a},windowLoaded:function(){m=!0}});g.fn.jcarousel=function(a){if(typeof a=="string"){var c=g(this).data("jcarousel"),b=Array.prototype.slice.call(arguments, 1);return c[a].apply(c,b)}else return this.each(function(){var b=g(this).data("jcarousel");b?(a&&g.extend(b.options,a),b.reload()):g(this).data("jcarousel",new f(this,a))})}})(jQuery); 17 18 -
extensions/Slim/js/menu.js
r19205 r25997 1 /*2 * jQuery Mega Drop Down Menu script by Soh Tanaka3 * http://www.sohtanaka.com/web-design/mega-drop-downs-w-css-jquery/4 *5 */6 1 $(document).ready(function(){ 2 $('.mcol').columnize({ columns: 4}); 3 $.each($('.mcol li'), function() { 4 var $li = $(this), 5 $test=$li.find('a'); 6 if($test.length == 0){ 7 $li.remove() 8 } 9 }) 10 11 $('li.liSub:last-child dt').addClass('dd_wrapper'); 12 $('li.liSub:last-child dd').addClass('sub'); 13 $('ul#topnav li .sub').hide(); 7 14 8 $("li.liSub:last-child dt").addClass('dd_wrapper'); 9 $("li.liSub:last-child dd").addClass('sub'); 15 function megaHoverOver(){ 16 $(this).find('.sub').stop().slideDown(200); 17 }; 18 19 function megaHoverOut(){ 20 $(this).find('.sub').stop().slideUp(200); 21 }; 22 23 var $configSub = { 24 over : megaHoverOver, 25 out : megaHoverOut 26 }; 27 28 $('ul#topnav li').hoverIntent($configSub); 29 $('ul#topnav .sub ul li:last-child a').css('border', 'none'); 30 31 32 $('.cl_wrapper').hover(function(){ 33 if($(this).next('div').is(':hidden')){ 34 $(this).addClass('activate').next('div').slideDown(200).attr(':visible'); 35 } 36 }); 37 38 $('.cl_wrapper').click(function(){ 39 if($(this).next('div').is(':visible')){ 40 $(this).next('div').slideUp(200, function(){ 41 $(this).hide() 42 }); 43 $(this).removeClass('activate').next('div').attr(':hidden'); 44 } 45 }); 46 47 $('.cc_wrapper').click(function(){ 48 if($(this).next('div').is(':visible')){ 49 $(this).removeClass('activate').next('div').slideUp(200, function(){ 50 $(this).hide().attr(':hidden'); 51 }); 52 } else { 53 $(this).next('div').slideDown(200).attr(':visible'); 54 } 55 }); 56 57 $('.close').click(function(){ 58 $(this).parent().slideUp(200, function(){ 59 $(this).hide().attr(':hidden') 60 }).prev().removeClass('activate'); 61 }); 62 63 }); 64 10 65 11 66 12 67 13 function megaHoverOver(){14 $(this).find(".sub").stop().fadeTo('slow', 1).show();15 16 }17 18 function megaHoverOut(){19 $(this).find(".sub").stop().fadeTo('slow', 0, function() {20 $(this).hide();21 });22 }23 68 24 69 25 var configSub = {26 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)27 interval: 0, // number = milliseconds for onMouseOver polling interval28 over: megaHoverOver, // function = onMouseOver callback (REQUIRED)29 timeout: 0, // number = milliseconds delay before onMouseOut30 out: megaHoverOut // function = onMouseOut callback (REQUIRED)31 };32 33 $("ul#topnav li .sub").css({'opacity':'0'});34 $("ul#topnav li").hoverIntent(configSub);35 36 var configSwitch = {37 sensitivity: 2, // number = sensitivity threshold (must be 1 or higher)38 interval: 0, // number = milliseconds for onMouseOver polling interval39 over: switchBoxOver, // function = onMouseOver callback (REQUIRED)40 timeout: 0, // number = milliseconds delay before onMouseOut41 out: switchBoxOut // function = onMouseOut callback (REQUIRED)42 };43 44 function switchBoxOver(){45 $(this).find(".switchBox").stop().fadeTo('slow', 1).show();46 47 }48 49 function switchBoxOut(){50 $(this).find(".switchBox").stop().fadeTo('slow', 0, function() {51 $(this).hide();52 });53 }54 $("ul.categoryActions li").hoverIntent(configSwitch);55 56 57 // Delete the border for the last li of the submenu58 $("ul#topnav .sub ul li:last-child a").css("border", "none");59 60 /*other menubar script*/61 //open form login menu62 63 64 65 $(".cl_wrapper").next("div").hide();66 67 68 $(".cl_wrapper").hover(function(){69 70 if($(this).next("div").is(":hidden")){71 $(this).next("div").fadeTo('fast', 1);72 $(this).addClass('activate');73 $(this).next("div").attr(":visible")74 }75 });76 77 78 $(".cl_wrapper").click(function(){79 if($(this).next("div").is(":visible")){80 $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});81 $(this).removeClass('activate');82 $(this).next("div").attr(":hidden")83 }84 });85 86 $(".close").click(function(){87 if($("#loger").is(":visible")){88 $("#loger").fadeTo('fast', 0, function(){$(this).hide()});89 $(".cl_wrapper").removeClass('activate');90 $("#loger").attr(":hidden");91 }92 });93 94 $(".cc_wrapper").click(function(){95 if($(this).next("div").is(":visible")){96 $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});97 $(this).removeClass('activate');98 $(this).next("div").attr(":hidden")99 }100 });101 102 $(".cc_wrapper").click(function(){103 if($(this).next("div").is(":hidden")){104 $(this).next("div").fadeTo('fast', 1);105 $(this).addClass('activate');106 $(this).next("div").attr(":visible")107 }108 });109 110 111 112 113 114 70 115 71 116 // make column menubar_categorie117 $('.mcol').makeacolumnlists({cols:4, colWidth:155, equalHeight: true, startN: 1});118 }); -
extensions/Slim/local_head.tpl
r21059 r25997 1 {php}2 global $Slim;3 $this->assign( 'Slim', $Slim );4 {/php}5 6 7 1 {if (($Slim.style_slim)!=3)} 8 2 {combine_script id='lytebox' load='header' require='jquery' path='themes/Slim/js/lytebox.js'} … … 11 5 {if (($Slim.style_slim)!=1)} 12 6 {combine_script id='menu' load='header' require='jquery' path='themes/Slim/js/menu.js'} 13 {combine_script id='hoverIntent' load='header' require='jquery' path='themes/Slim/js/jquery.hoverIntent. minified.js'}14 {combine_script id='columnizer' load='header' require='jquery' path='themes/Slim/js/ columnizer.js'}7 {combine_script id='hoverIntent' load='header' require='jquery' path='themes/Slim/js/jquery.hoverIntent.js'} 8 {combine_script id='columnizer' load='header' require='jquery' path='themes/Slim/js/jquery.columnizer.js'} 15 9 {/if} -
extensions/Slim/template/comments.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 4 1 {if ($Slim.style_slim)==3} 5 2 {$MENUBAR} -
extensions/Slim/template/header.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 4 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 5 2 <html lang="{$lang_info.code}" dir="{$lang_info.direction}"> … … 60 57 61 58 62 {combine_script id='jquery.jcarousel' load='header' require='jquery' path='themes/Slim/js/jquery.jcarousel.min.js'} 59 {combine_script id='jcarousel' load='header' require='jquery' path='themes/Slim/js/jquery.jcarousel.js'} 60 63 61 </head> 64 62 -
extensions/Slim/template/identification.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)!=1} 4 2 {$MENUBAR} -
extensions/Slim/template/index.tpl
r19205 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)!=1} 4 2 {$MENUBAR} … … 23 21 24 22 <div id="infoBlock"> 25 26 27 23 <div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}"> 24 25 <ul class="categoryActions"> 28 26 {if !empty($image_orders)} 29 27 <li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> … … 163 161 164 162 {if !empty($THUMBNAILS)} 165 <ul class="thumbnails" id="thumbnails">166 163 {$THUMBNAILS} 167 </ul> 164 {footer_script}{literal} 165 $('.jcarousel') 166 .jcarousel({ 167 wrap: 'circular' 168 }) 169 .jcarouselAutoscroll({ 170 autostart: false 171 }); 172 173 $('.jcarousel-control-prev') 174 .on('jcarouselcontrol:active', function() { 175 $(this).removeClass('inactive'); 176 }) 177 .on('jcarouselcontrol:inactive', function() { 178 $(this).addClass('inactive'); 179 }) 180 .jcarouselControl({ 181 target: '-=1' 182 }); 183 184 $('.jcarousel-control-next') 185 .on('jcarouselcontrol:active', function() { 186 $(this).removeClass('inactive'); 187 }) 188 .on('jcarouselcontrol:inactive', function() { 189 $(this).addClass('inactive'); 190 }) 191 .jcarouselControl({ 192 target: '+=1' 193 }); 194 {/literal}{/footer_script} 195 168 196 {/if} 169 197 … … 171 199 {if !empty($CATEGORIES)} 172 200 {$CATEGORIES} 201 {footer_script}{literal} 202 $('.jcarousel') 203 .jcarousel({ 204 wrap: 'circular' 205 }) 206 .jcarouselAutoscroll({ 207 interval: 3000, 208 target: '+=1', 209 autostart: true 210 }); 211 212 $('.jcarousel-control-prev') 213 .on('jcarouselcontrol:active', function() { 214 $(this).removeClass('inactive'); 215 }) 216 .on('jcarouselcontrol:inactive', function() { 217 $(this).addClass('inactive'); 218 }) 219 .jcarouselControl({ 220 target: '-=1' 221 }); 222 223 $('.jcarousel-control-next') 224 .on('jcarouselcontrol:active', function() { 225 $(this).removeClass('inactive'); 226 }) 227 .on('jcarouselcontrol:inactive', function() { 228 $(this).addClass('inactive'); 229 }) 230 .jcarouselControl({ 231 target: '+=1' 232 }); 233 234 $('.jcarousel') 235 .on('mouseenter', function(){ 236 $(this).jcarouselAutoscroll('stop') 237 }) 238 .on('mouseleave', function(){ 239 $(this).jcarouselAutoscroll('start') 240 }); 241 {/literal}{/footer_script} 242 173 243 {/if} 174 244 {/if} -
extensions/Slim/template/mainpage_categories.tpl
r18905 r25997 1 1 {define_derivative name='carousel' width='300' height='300' min_width='300'} 2 3 4 {html_style} 5 .jcarousel-skin-cat .jcarousel-list li{ldelim} 6 min-width:{$carousel->max_width()}px; 7 {/html_style} 8 9 10 <div id="carouselcat"> 11 2 <div id="carousel"> 12 3 <div id="wrap"> 13 <ul id="carousel" class="jcarousel-skin-cat"> 14 15 {foreach from=$category_thumbnails item=cat} 16 17 18 <li class="test"> 19 <div class="illustration"> 20 <a href="{$cat.URL}"> 21 <img src="{$pwg->derivative_url($carousel, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$carousel->max_width()}" height="{$carousel->max_height()-22}"/> 22 </a> 23 </div> 24 25 <div class="CatMPdescription"> 26 4 <div class="jcarousel"> 5 <ul> 6 {foreach from=$category_thumbnails item=cat} 7 <li> 8 <div class="illustration"> 9 <a href="{$cat.URL}"> 10 <img src="{$pwg->derivative_url($carousel, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$carousel->max_width()}" height="{$carousel->max_height()-22}"/> 11 </a> 12 </div> 13 <div class="CatMPdescription"> 27 14 <h3> 28 15 <a href="{$cat.URL}">{$cat.NAME}</a> 29 16 </h3> 30 17 <div> 31 {$cat.CAPTION_NB_IMAGES}18 {$cat.CAPTION_NB_IMAGES} 32 19 </div> 33 </div> 34 </li> 35 {/foreach} 36 </ul> 37 {footer_script}{literal} 38 function mycarousel_initCallback(carousel) 39 { 40 // Pause autoscrolling if the user moves with the cursor over the clip. 41 carousel.clip.hover(function() { 42 carousel.stopAuto(); 43 }, function() { 44 carousel.startAuto(); 45 }); 46 }; 47 48 jQuery(document).ready(function() { 49 jQuery('#carousel').jcarousel({ 50 auto: 1, 51 wrap: 'circular', 52 scroll: 2, 53 animation: 2000, 54 initCallback: mycarousel_initCallback, 55 56 }); 57 }); 58 {/literal}{/footer_script} 20 </div> 21 </li> 22 {/foreach} 23 </ul> 24 </div> 59 25 </div> 26 <a href="#" class="jcarousel-control-prev">‹</a> 27 <a href="#" class="jcarousel-control-next">›</a> 60 28 </div> -
extensions/Slim/template/menubar.tpl
r21059 r25997 1 <div id= "menubar">1 <div id=menubar> 2 2 <span id="menu_start"> 3 3 <a href="index.php?/categories"></a> -
extensions/Slim/template/menubar_categories.tpl
r19205 r25997 1 <span class="dd_wrapper">{'Categories'|@translate}</span>1 <span class="dd_wrapper">{'Albums'|@translate}</span> 2 2 3 <div class="sub" style="width:700px"> 4 {assign var='ref_level' value=0} 5 <div id="menu_cat_act"> 6 <div id="nbImg"> 7 <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p> 8 </div> 9 <div id="filter"> 10 {if isset($U_START_FILTER)} 11 <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"> 12 <span class="pwg-icon pwg-icon-filter"> </span> 13 </a> 14 {/if} 15 {if isset($U_STOP_FILTER)} 16 <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span 17 class="pwg-icon pwg-icon-filter-del"> </span></a> 18 {/if} 19 </div> 20 21 </div> 3 <div class="sub" style="width:700px"> 4 <div id="menu_cat_act"> 5 <div id="nbImg"> 6 <p class="totalImages">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</p> 7 </div> 8 <div id="filter"> 9 {if isset($U_START_FILTER)} 10 <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow"> 11 <span class="pwg-icon pwg-icon-filter"> </span> 12 </a> 13 {/if} 14 15 {if isset($U_STOP_FILTER)} 16 <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"> 17 <span class="pwg-icon pwg-icon-filter-del"> </span> 18 </a> 19 {/if} 20 </div> 21 </div> 22 <div class="mcol"> 23 {assign var='ref_level' value=0} 24 {foreach from=$block->data.MENU_CATEGORIES item=cat} 25 {if $cat.LEVEL > $ref_level} 26 <ul> 27 {else} 28 </li> 29 {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)} 30 {/if} 31 <li {if $cat.SELECTED}class="selected dontsplit"{/if}class="level{$cat.LEVEL} dontsplit"> 32 <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}</a> 33 {if $cat.count_images > 0} 34 <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span> 35 {/if} 22 36 23 24 {foreach from=$block->data.MENU_CATEGORIES item=cat} 25 {if $cat.LEVEL > $ref_level} 26 <ul class="mcol"> 27 {else} 28 29 </li> 30 {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL} 31 {/if} 32 <li {if $cat.SELECTED}class="selected"{/if}class="level{$cat.LEVEL}"> 33 <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME} [{$cat.count_images}] </a> 34 {assign var='ref_level' value=$cat.LEVEL} 35 {/foreach} 36 {'</li></ul>'|@str_repeat:$ref_level} 37 38 {if isset($block->data.U_UPLOAD)} 39 40 <ul> 41 42 <li> 43 <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a> 44 </li> 45 46 </ul> 47 48 {/if} 49 50 51 </div> 37 {if !empty($cat.icon_ts)} 38 <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)"> 39 {/if} 40 {assign var='ref_level' value=$cat.LEVEL} 41 {/foreach} 42 {'</li></ul>'|@str_repeat:$ref_level} 43 </div> 44 </div> -
extensions/Slim/template/notification.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {html_head} 4 2 <link rel="alternate" type="application/rss+xml" title="{'Photos only RSS feed'|@translate}" href="{$U_FEED_IMAGE_ONLY}"> -
extensions/Slim/template/password.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)==1} 4 2 -
extensions/Slim/template/picture.tpl
r18811 r25997 69 69 <form method="post" action="{$comment_add.F_ACTION}" id="addComment"> 70 70 {if $comment_add.SHOW_AUTHOR} 71 <p><label for="author">{'Author'|@translate} :</label></p>71 <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> 72 72 <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p> 73 <p><label for="contentid">{'Comment'|@translate} :</label></p>74 73 {/if} 75 <p><textarea name="content" id="contentid" rows="8" cols="100">{$comment_add.CONTENT}</textarea></p> 74 {if $comment_add.SHOW_EMAIL} 75 <p><label for="email">{'Email'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> 76 <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p> 77 {/if} 78 <p><label for="website_url">{'Website'|@translate} :</label></p> 79 <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p> 80 <p><label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label></p> 81 <p><textarea name="content" id="contentid" rows="5" cols="100">{$comment_add.CONTENT}</textarea></p> 76 82 <p><input type="hidden" name="key" value="{$comment_add.KEY}"> 77 83 <input type="submit" value="{'Submit'|@translate}"></p> -
extensions/Slim/template/profile.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)==1} 4 2 {php} -
extensions/Slim/template/register.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)==1} 4 2 {php} -
extensions/Slim/template/search.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)==1} 4 2 {php} -
extensions/Slim/template/tags.tpl
r18811 r25997 1 {php} global $Slim; $this->assign( 'Slim', $Slim );{/php}2 3 1 {if ($Slim.style_slim)==1} 4 2 {php} -
extensions/Slim/template/thumbnails.tpl
r18905 r25997 4 4 $template->assign('cat_name', $page['category']['name']); 5 5 6 global $Slim; $this->assign( 'Slim', $Slim );7 6 {/php} 8 7 9 8 10 <div id="carouselthumb"> 11 <div id="wrap"> 12 <ul id="carousel" class="jcarousel-skin-cat"> 13 {if !empty($category_thumbnails)} 14 15 {foreach from=$category_thumbnails item=cat} 16 17 18 <li> 9 <div id="carousel"> 10 <div id="wrap"> 11 <div class="jcarousel"> 12 <ul> 13 {if !empty($category_thumbnails)} 14 {foreach from=$category_thumbnails item=cat} 15 <li> 19 16 <div class="illustration"> 20 17 <a href="{$cat.URL}"> 21 <img src="{$pwg->derivative_url($carousel, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$carousel->max_width()}" height="{$carousel->max_height() }"/>18 <img src="{$pwg->derivative_url($carousel, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}" min-width="{$carousel->max_width()}" height="{$carousel->max_height()-22}"/> 22 19 </a> 23 20 </div> 24 25 26 <div class="CatMPdescription"> 27 <h3> 28 <a href="{$cat.URL}">{$cat.NAME}</a> 29 </h3> 30 <div> 21 <div class="CatMPdescription"> 22 <h3> 23 <a href="{$cat.URL}">{$cat.NAME}</a> 24 </h3> 25 <div> 31 26 {$cat.CAPTION_NB_IMAGES} 32 </div> 33 </div> 34 </li> 35 {/foreach}{/if} 36 37 38 {foreach from=$thumbnails item=thumbnail} 39 {assign var=derivative value=$pwg->derivative($carousel, $thumbnail.src_image)} 40 <li> 41 <div class="iIllustration"> 42 <a href="{if ($Slim.style_slim)!=3}{$thumbnail.path}" class="lytebox" rev="slide:true group:name showNavigation:true navType:1 slideInterval:6000"{else}{$thumbnail.URL}"{/if} title="{$thumbnail.NAME|strip_tags:false|replace:'\'':'''|replace:'"':'"'}"> 43 <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" height="{$carousel->max_height()}"/> 44 27 </div> 28 </div> 29 </li> 30 {/foreach} 31 {/if} 32 {foreach from=$thumbnails item=thumbnail} 33 {assign var=derivative value=$pwg->derivative($carousel, $thumbnail.src_image)} 34 <li> 35 <div class="illustration"> 36 <a href="{if ($Slim.style_slim)!=3}{$thumbnail.path}" class="lytebox" rev="slide:true group:name showNavigation:true navType:1 slideInterval:6000"{else}{$thumbnail.URL}"{/if} title="{$thumbnail.NAME|strip_tags:false|replace:'\'':'''|replace:'"':'"'}"> 37 <img class="thumbnail" src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}" height="{$carousel->max_height()-22}"/> 45 38 {if $SHOW_THUMBNAIL_CAPTION } 46 39 <div class="CatMPdescription"> 47 40 <H3> 48 41 {$thumbnail.NAME} 49 50 42 {if !empty($thumbnail.icon_ts)} 51 43 <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)"> … … 53 45 </h3> 54 46 {if isset($thumbnail.NB_COMMENTS) or isset($thumbnail.NB_HITS)} 55 <div>47 <div> 56 48 {if isset($thumbnail.NB_COMMENTS)} 57 49 <p class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments"> 58 {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)}50 {$pwg->l10n_dec('%d comment', '%d comments',$thumbnail.NB_COMMENTS)} 59 51 </p> 60 52 {/if} 61 53 {if isset($thumbnail.NB_HITS)} 62 54 <p class="{if 0==$thumbnail.NB_HITS}zero {/if}nb-hits"> 63 {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)}55 {$pwg->l10n_dec('%d hit', '%d hits',$thumbnail.NB_HITS)} 64 56 </p> 65 57 {/if} 66 </div>58 </div> 67 59 {/if} 68 60 </div> 69 61 {/if} 70 </a> 71 </div> 72 </li> 73 {/foreach} 74 </ul> 75 {footer_script}{literal} 76 function mycarousel_initCallback(carousel) 77 { 78 // Pause autoscrolling if the user moves with the cursor over the clip. 79 carousel.clip.hover(function() { 80 carousel.stopAuto(); 81 }, function() { 82 carousel.startAuto(); 83 }); 84 }; 85 86 jQuery(document).ready(function() { 87 jQuery('#carousel').jcarousel({ 88 auto: 0, 89 wrap: 'circular', 90 scroll: 2, 91 initCallback: mycarousel_initCallback, 92 93 }); 94 }); 95 96 {/literal}{/footer_script} 97 62 </a> 63 </div> 64 </li> 65 {/foreach} 66 </ul> 67 </div> 68 </div> 69 <a href="#" class="jcarousel-control-prev">‹</a> 70 <a href="#" class="jcarousel-control-next">›</a> 98 71 </div> 99 </div> -
extensions/Slim/theme.css
r21059 r25997 1 BODY{background:url("images/texture.png") #fff}1 BODY{background:url("images/texture.png")} 2 2 BODY,H1,H3,INPUT.rateButtonSelected,H2,#menubar DT{color:#666} 3 3 FIELDSET,INPUT,SELECT,TEXTAREA,.content .thumbnailCategory,.thumbnails .wrap2{background:#EFEFEF;border-radius:5px;border:1px solid #afafaf} … … 18 18 .content H2{margin:3px 0 0} 19 19 #infoBlock,#imageHeaderBar{background:rgba(239, 239, 239, 1);border-radius:3px;box-shadow:0 1px 1px rgba(0, 0, 0, 0.4) inset, 0 1px rgba(255, 255, 255, 0.4)} 20 .switchBox{background:#5f5f5f} 20 .switchBox{background:#5f5f5f; color:#fff} 21 .switchBox a{color:#fff} 21 22 #imageHeaderBar{width:auto;height:20px;margin:40px 50px 20px;padding:10px} 22 23 #imageHeaderBar H2{background-image:none;border:none} … … 63 64 #topnav{margin:0;padding:0 2px 0 0;list-style:none;height:30px;position:relative;z-index:999;display:inline-block} 64 65 #topnav .liSub{float:left;position:relative;padding-right:2px} 65 #topnav .sub, #topnav #loger{position:absolute;top:30px;margin-left:0;background:# FFF;padding:5px 8px 10px 5px;float:left;max-width:100em;min-width:200px;display:none;max-height:500px;overflow:auto;border-bottom-right-radius:10px;border-bottom-left-radius:10px;box-shadow:0px 0px 5px #5A5A5A;z-index:100}66 #topnav .sub, #topnav #loger{position:absolute;top:30px;margin-left:0;background:#eFeFeF;padding:5px 8px 10px 5px;float:left;max-width:100em;min-width:200px;max-height:500px;overflow:auto;border-bottom-right-radius:10px;border-bottom-left-radius:10px;border-left:1px solid rgba(0, 0, 0, 0.5);border-right:1px solid rgba(0, 0, 0, 0.5);border-bottom:1px solid rgba(0, 0, 0, 0.5);z-index:100} 66 67 #topnav #loger{z-index:50} 67 68 .sub{z-index:100;max-width:600px} … … 70 71 .sub a:hover{color:#4c4c4c} 71 72 ul#topnav .sub ul li,ul#topnav #loger ul li,ul#topnav .sub #menuTagCloud div{width:95%;color:#757575;background:none;font-size:10px;margin-bottom:2px;border:1px solid #CBCBCB;border-radius:10px} 72 ul#topnav .sub ul li a,ul#topnav #loger ul li a{float:none;text-indent:0;height:auto;margin:0 8px;display: block;text-decoration:none;color:#757575;font-size:1.1em;text-shadow:none;text-transform:none;line-height:17px;padding:0 0 0 15px}73 ul#topnav .sub ul li a,ul#topnav #loger ul li a{float:none;text-indent:0;height:auto;margin:0 8px;display:inline;text-decoration:none;color:#757575;font-size:1.1em;text-shadow:none;text-transform:none;line-height:17px;padding:0 0 0 15px} 73 74 ul#topnav .sub ul .level1 li,ul#topnav .sub ul .level1 li .selected{border:none;background:none} 74 75 ul#topnav .sub ul li.selected a{background:url(images/menu/navlist_arrow_hover.png) no-repeat 0 4px;color:#4C4C4C;text-decoration:none;border:none} … … 158 159 159 160 /*=========================================carousel======================================================*/ 160 <<<<<<< .mine 161 ======= 162 /*#carousel{min-width:10000px}*/ 163 >>>>>>> .r18905 164 .jcarousel-item a:hover{border-bottom:none} 165 .jcarousel-list li,.jcarousel-item{float:left;list-style:none} 166 .jcarousel-container-horizontal .jcarousel-clip,.jcarousel-skin-cat .jcarousel-list li{position:relative} 167 .jcarousel-skin-cat .jcarousel-list li{height:325px} 168 .jcarousel-skin-cat .jcarousel-container{border:1px solid rgba(0,0,0,0.5);border-radius:8px;background:rgba(0,0,0,0.25);box-shadow:0 2px 6px rgba(0,0,0,0.5),inset 0 1px rgba(255,255,255,0.3),inset 0 2px rgba(255,255,255,0.2),inset 0 10px 20px rgba(255,255,255,0.25),inset 0 -15px 30px rgba(0,0,0,0.3)} 169 .jcarousel-skin-cat{padding:40px} 170 .jcarousel-container-horizontal{padding:30px 7px} 171 .jcarousel-skin-cat .jcarousel-clip{max-height:323px;overflow:hidden} 172 .jcarousel-skin-cat .jcarousel-item:hover,.jcarousel-skin-cat .jcarousel-item:focus{border-color:gray} 173 .jcarousel-skin-cat .jcarousel-item-horizontal{margin-left:0;margin-right:7px;list-style:none} 174 .jcarousel-skin-cat .jcarousel-direction-rtl .jcarousel-item-horizontal{margin-left:7px;margin-right:0} 175 .jcarousel-skin-cat .jcarousel-next-horizontal{position:absolute;right:20px;width:32px;cursor:pointer;top:0;height:100%;background:url("images/next-horizontal.png") no-repeat 0 50%} 176 .jcarousel-skin-cat .jcarousel-direction-rtl .jcarousel-next-horizontal{left:5px;right:auto;background:url("images/prev-horizontal.png")} 177 .jcarousel-skin-cat .jcarousel-prev-horizontal{position:absolute;left:20px;width:32px;cursor:pointer;height:100%;background:url("images/prev-horizontal.png") no-repeat 0 50%;top:0} 178 .jcarousel-skin-cat .jcarousel-direction-rtl .jcarousel-prev-horizontal{left:auto;right:5px;background:url("images/next-horizontal.png")} 179 .jcarousel-skin-cat .jcarousel-next-horizontal:hover,.jcarousel-skin-cat .jcarousel-next-horizontal:focus,.jcarousel-skin-cat .jcarousel-prev-horizontal:hover,.jcarousel-skin-cat .jcarousel-prev-horizontal:focus{background-position:-32px 50%} 180 .jcarousel-skin-cat .jcarousel-next-horizontal:active,.jcarousel-skin-cat .jcarousel-prev-horizontal:active{background-position:-64px 50%} 181 .jcarousel-skin-cat .jcarousel-next-disabled-horizontal,.jcarousel-skin-cat .jcarousel-next-disabled-horizontal:hover,.jcarousel-skin-cat .jcarousel-next-disabled-horizontal:focus,.jcarousel-skin-cat .jcarousel-next-disabled-horizontal:active,.jcarousel-skin-cat .jcarousel-prev-disabled-horizontal,.jcarousel-skin-cat .jcarousel-prev-disabled-horizontal:hover,.jcarousel-skin-cat .jcarousel-prev-disabled-horizontal:focus,.jcarousel-skin-cat .jcarousel-prev-disabled-horizontal:active{cursor:default;background-position:-96px 0} 161 #carousel{position:relative} 162 .jcarousel{position:relative;overflow:hidden} 163 .jcarousel ul{width:20000em;position:relative;list-style:none;margin:0;padding:0} 164 .jcarousel li {float: left} 165 #wrap{position:relative;margin:50px;padding:20px 20px 40px;border:1px solid rgba(0,0,0,0.5);border-radius:8px;background:rgba(0,0,0,0.25);box-shadow:0 2px 6px rgba(0,0,0,0.5),inset 0 1px rgba(255,255,255,0.3),inset 0 2px rgba(255,255,255,0.2),inset 0 10px 20px rgba(255,255,255,0.25),inset 0 -15px 30px rgba(0,0,0,0.3)} 166 .jcarousel-control-prev,.jcarousel-control-next{position:absolute;top:160px;width:30px;height:30px;text-align:center;background:#4E443C;color:#fff;text-decoration:none;text-shadow:0 0 1px #000;font:24px/27px Arial, sans-serif;-webkit-border-radius:30px;-moz-border-radius:30px;border-radius:30px;-webkit-box-shadow:0 0 2px #999;-moz-box-shadow:0 0 2px #999;box-shadow:0 0 2px #999} 167 .jcarousel-control-prev{left:80px} 168 .jcarousel-control-next{right:80px} 169 .jcarousel-control-prev:hover span,.jcarousel-control-next:hover span{display:block} 170 .jcarousel-control-prev.inactive,.jcarousel-control-next.inactive{opacity: .5;cursor:default} 182 171 183 172 /*=========================================Lytebox======================================================*/ … … 213 202 /*==========================================plugin=====================================================*/ 214 203 #mbContact dd{padding:0!important} 204 205 -
extensions/Slim/themeconf.inc.php
r19499 r25997 2 2 /* 3 3 Theme Name: Slim 4 Version: auto4 Version: 1.3 5 5 Description: Slim. 6 6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=643 … … 32 32 function modify_nb_thumbnail_page() 33 33 { 34 global $user, $page ;34 global $user, $page, $conf; 35 35 $user['nb_image_page']=999; 36 36 $page['nb_image_page']=999; 37 $conf['nb_categories_page']=999; 37 38 } 38 39 } 39 40 40 add_event_handler('get_categories_menu_sql_where', 'mic_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 ); 41 41 if(!function_exists('mic_get_categories_menu_sql_where')) … … 48 48 } 49 49 50 if($user['theme']=='Slim'){ 51 add_event_handler('loc_end_page_header', 'load_Slim' ); 52 50 add_event_handler('init', 'load_Slim' ); 53 51 function load_Slim() 54 52 { 55 global $user, $page; 56 if($page['body_id']=='theAdminPage' ) 57 {} 58 else{ 59 if($user['theme']=='Slim') 60 {include('Slim.php');} 61 62 } 53 include('Slim.php'); 63 54 } 64 55 … … 74 65 } 75 66 } 76 }77 67 ?>
Note: See TracChangeset
for help on using the changeset viewer.