Changeset 8576 for extensions/gally/gally-cuise
- Timestamp:
- Jan 10, 2011, 1:57:40 PM (14 years ago)
- Location:
- extensions/gally/gally-cuise
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/gally/gally-cuise/conf/default.conf
r7459 r8576 1 1 # ------------------------------------------------------------------------------ 2 # GRUM: DARK-II2 # GRUM:CUISE 3 3 # Theme for Piwigo 4 4 # ------------------------------------------------------------------------------ … … 9 9 # << May the Little SpaceFrog be with you >> 10 10 # ------------------------------------------------------------------------------ 11 # Grum dark IIfor themes "Gally"11 # Cuise for themes "Gally" 12 12 # 13 13 # see the gally-default/release_notes.txt file for more informations … … 35 35 # works well with FF2, FF3, Opera, Safari 36 36 imageAutoScroll = "yes" 37 38 # -- 1.3.1 -- 39 # the 'imageSimulateHighRes' option can take theses values : 40 # "yes" => if there is no high res file and if the image need scroll, the 41 # template simulate an high res image managment 42 # "no" => don't simulate high res image 43 imageSimulateHighRes = "no" 37 44 38 45 # The 'imageCenterMode' option can take theses values : … … 106 113 # The 'animateDelay' option can take any positive integer value 107 114 # This option define the duration (in milliseconds) of effects 108 animateDelay= 115 animateDelay=250 109 116 110 117 # The 'marginContainer' option can take any positive integer value -
extensions/gally/gally-cuise/css/theme.css
r7498 r8576 3 3 Theme for Piwigo 4 4 ------------------------------------------------------------------------------ 5 file: gally-cuise/theme.css 6 file version: 1.0 7 date: 2008-11-11 5 file: gally/cuise/theme.css 6 file version: 1.2.0 8 7 ------------------------------------------------------------------------------ 9 8 author: grum modified cljosse … … 208 207 209 208 /* menubar_categories.tpl */ 210 #icon_start_filter { float:right,right:100px;209 #icon_start_filter { 211 210 background:url(./../icon/start_filter.png); 212 211 } … … 523 522 border-radius: 8px; /* round corners with CSS3 compliant browsers */ 524 523 background-color:#808080; 525 524 border:none; 526 525 } 527 526 … … 807 806 808 807 #navThumbNext, #navThumbPrev { 809 top:20%; 810 height:80%; 808 top:265px; 811 809 812 810 } 813 811 814 #navThumbPrevContainer, #navThumbNextContainer { 815 vertical-align:middle; top:30%; 816 height:30%; 812 #navThumbPrevContainer, #navThumbNextContainer { 813 height:200px; 817 814 } 818 815 … … 1290 1287 1291 1288 div ul.thumbnails SPAN.wrap2:hover { 1289 1290 } 1291 1292 #navThumbPrev, #navThumbPrev{ 1292 1293 1293 } 1294 1295 1294 1295 } 1296 1296 -
extensions/gally/gally-cuise/js/crossbrowser.js
r7459 r8576 66 66 67 67 var mode = document.documentMode || 0; 68 if ( obj.currentStyle.position!="absolute"){68 if (getStyles(obj).position!="absolute"){ 69 69 70 70 init_x0=init_x - (0.5*strokeWeight) ; … … 217 217 var limit = 100, i = 0; 218 218 var el = Obj; //(this) 219 style= el.currentStyle ; 219 style= getStyles(el); 220 strokeWeight = Get_stokeWeight( style.borderWidth); 221 strokeStyle = Get_style( style.borderStyle); 222 strokeColor = Get_Color( style.borderColor); 223 220 224 zindex = 3; 221 225 var El_src = el.element; 222 226 223 while ((typeof (El_src) != 'undefined') && ( El_src.currentStyle.position != 'relative') && (El_src.tagName != 'BODY')) {227 while ((typeof (El_src) != 'undefined') && ( getStyles(El_src).position != 'relative') && (El_src.tagName != 'BODY')) { 224 228 El_src = El_src.parentElement; 225 229 … … 230 234 231 235 232 var el_zindex = parseInt( el.currentStyle.zIndex);236 var el_zindex = parseInt(getStyles(el).zIndex); 233 237 if (isNaN(el_zindex)) { el_zindex = 3; } 234 238 var m = el.children; … … 244 248 245 249 246 switch( Obj.currentStyle.borderWidth)250 switch(getStyles(Obj).borderWidth) 247 251 { 248 252 case 'solid': 249 253 break; 250 254 default: 251 strokeWeight=parseInt( Obj.currentStyle.borderWidth);255 strokeWeight=parseInt(getStyles(Obj).borderWidth); 252 256 break; 253 257 } 254 258 255 switch( Obj.currentStyle.borderStyle)259 switch(getStyles(Obj).borderStyle) 256 260 { 257 261 case 'solid': 258 strokeStyle= Obj.currentStyle.borderStyle;262 strokeStyle=getStyles(Obj).borderStyle; 259 263 break; 260 264 case 'double': 261 strokeStyle= Obj.currentStyle.borderStyle;265 strokeStyle=getStyles(Obj).borderStyle; 262 266 break; 263 267 264 268 default: 265 strokeStyle= Obj.currentStyle.borderStyle;269 strokeStyle=getStyles(Obj).borderStyle; 266 270 267 271 break; … … 282 286 } 283 287 //================================== 284 var fillColor = translateColor( Obj.currentStyle.backgroundColor);285 var strokeColor = translateColor( Obj.currentStyle.borderColor);288 var fillColor = translateColor(getStyles(Obj).backgroundColor); 289 var strokeColor = translateColor(getStyles(Obj).borderColor); 286 290 287 291 … … 296 300 if (isNaN(Top)) Top=0 ; 297 301 //================================================================= 298 s = Obj.currentStyle;302 s = getStyles(Obj); 299 303 300 304 if (typeof s.transform != "undefined") { … … 312 316 313 317 314 alpha = Obj.currentStyle['opacity'] || 1;315 316 317 var fillSrc = Obj.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');318 319 if (fillSrc) var filltype = ( Obj.currentStyle['type']) || "tile";320 else var filltype = ( Obj.currentStyle['type']) || "gradientRadial";318 alpha = getStyles(Obj)['opacity'] || 1; 319 320 321 var fillSrc = getStyles(Obj).backgroundImage.replace(/^url\("(.+)"\)$/, '$1'); 322 323 if (fillSrc) var filltype = (getStyles(Obj)['type']) || "tile"; 324 else var filltype = (getStyles(Obj)['type']) || "gradientRadial"; 321 325 /* 322 326 var fillopacity = alpha; … … 423 427 424 428 /*===================================================================================*/ 425 var text_shadow = Obj.currentStyle['text-shadow'];426 427 var box_shadow = Obj.currentStyle['-moz-box-shadow'] ||428 Obj.currentStyle['box-shadow'] ||429 Obj.currentStyle['-webkit-box-shadow'] ||430 Obj.currentStyle['-khtml-box-shadow'];429 var text_shadow = getStyles(Obj)['text-shadow']; 430 431 var box_shadow = getStyles(Obj)['-moz-box-shadow'] || 432 getStyles(Obj)['box-shadow'] || 433 getStyles(Obj)['-webkit-box-shadow'] || 434 getStyles(Obj)['-khtml-box-shadow']; 431 435 432 436 … … 520 524 if (isIE6 && (strokeWeight > 0)) { 521 525 Obj.style.borderStyle = 'none'; 522 Obj.style.paddingTop = parseInt( Obj.currentStyle.paddingTop || 0) + strokeWeight;523 Obj.style.paddingBottom = parseInt( Obj.currentStyle.paddingBottom || 0) + strokeWeight;526 Obj.style.paddingTop = parseInt(getStyles(Obj).paddingTop || 0) + strokeWeight; 527 Obj.style.paddingBottom = parseInt(getStyles(Obj).paddingBottom || 0) + strokeWeight; 524 528 } 525 529 … … 563 567 564 568 var h0 = 0; 565 var strokeWeight = parseInt( obj.currentStyle.borderWidth);569 var strokeWeight = parseInt(getStyles(obj).borderWidth); 566 570 if (isNaN(strokeWeight)) { strokeWeight = 0; } 567 571 … … 896 900 if (!jQuery.browser.msie) return; 897 901 898 s= a.currentStyle;902 s= getStyles(a); 899 903 var moz = s['-moz-border-radius'] !== undefined ; 900 904 var webkit = s['-webkit-border-radius'] !== undefined; … … 941 945 jQuery(':Radius'); 942 946 943 947 944 948 }); 949 950 951 //==================================================================== 952 function Get_Tableau(Val_src) { 953 Val_src = removeExtraSpace(Val_src) 954 955 var tableau = Val_src.split(" "); 956 tableau = Val_src + " " + Val_src + " " + tableau[0] + " " + tableau[0]; 957 958 tableau = tableau.split(" "); 959 960 return { Top: tableau[0], Right: tableau[1], Bottom: tableau[2], Left: tableau[3] }; 961 } 962 //============================================================ 963 function Get_radius(obj) { 964 /* 965 1 La valeur spécifiée est appliquée aux quatre coins. 966 2 La première valeur est appliquée aux coins supérieur gauche et inférieur droit, et la seconde, aux coins supérieur droit et inférieur gauche 967 3 La première valeur est appliquée au coin supérieur gauche, la deuxième aux coins supérieur droit et inférieur gauche, et la troisième, au coin inférieur droit 968 4 Les angles supérieur gauche, supérieur droit, inférieur droit et inférieur gauche sont respectivement définis 969 */ 970 971 var m1 = "border-radius,-o-border-radius,-moz-border-radius,-webkit-border-radius,star"; 972 m1 += ",borderRadius,OBorderRadius,MozBorderRadius,WebkitBorderRadius,star"; 973 974 $e = jQuery(obj); 975 m1 = m1.split(","); 976 s = obj.currentStyle; 977 // s = obj.style.cssText.split(";"); 978 979 Attribut = false; 980 type = ""; 981 for (i in m1) 982 if (s[m1[i]] != undefined) { 983 Attribut = true; 984 radius = s[m1[i]]; 985 type = m1[i]; 986 break; 987 } 988 if (typeof radius == "undefined") { radius = "0" } 989 var reg = new RegExp("\ \ ", "g"); 990 nr = radius; 991 while (radius.match("\/")) { 992 radius = radius.replace("\/", " "); 993 } 994 995 while (radius.match("\ \ ")) { 996 radius = radius.replace(reg, " "); 997 } 998 999 if (type.match("star")) { 1000 var radius = (radius + " " + 1) 1001 var tableau = radius.split(" "); 1002 return { r: tableau[0], 1003 type: type 1004 } 1005 } 1006 1007 1008 v1 = Get_Tableau(radius); 1009 1010 1011 1012 top_left = parseInt(s['border-top-left-radius'] || v1.Top); 1013 top_right = parseInt(s['border-top-right-radius'] || v1.Right); 1014 bottom_right = parseInt(s['border-bottom-right-radius'] || v1.Bottom); 1015 bottom_left = parseInt(s['border-bottom-left-radius'] || v1.Left); 1016 1017 1018 1019 type = (nr.match("\/")) ? "oval" : (parseInt(v1.Left) == 0) ? "rect" : "shape"; 1020 1021 return { r: v1.Left, 1022 top_left: top_left, 1023 top_right: top_right, 1024 bottom_right: bottom_right, 1025 bottom_left: bottom_left, 1026 type: type 1027 }; 1028 1029 } 1030 //======================================================================================= 1031 /* 1032 Single (default) 1033 ThinThin 1034 ThinThick 1035 ThickThin 1036 ThickBetweenThin 1037 */ 1038 function Get_style(borderStyle_src) { 1039 1040 v1 = Get_Tableau(borderStyle_src); 1041 1042 for (i1 in v1) { 1043 borderStyle = v1[i1]; 1044 1045 1046 switch (borderStyle) { 1047 case 'solid': 1048 strokeStyle[i1] = "Single"; 1049 break; 1050 case 'double': 1051 strokeStyle[i1] = "thinThin"; 1052 break; 1053 case 'none': 1054 strokeStyle[i1] = "Single"; 1055 stroked = false 1056 break; 1057 default: 1058 strokeStyle[i1] = "Single"; 1059 1060 break; 1061 } 1062 1063 } 1064 return strokeStyle; 1065 } 1066 1067 //============================================================= 1068 function Get_Color(Color_src) { 1069 1070 v1 = Get_Tableau(Color_src); 1071 for (i1 in v1) { 1072 strokeColor[i1] = (translateColor(v1[i1]) == "transparent") ? "none" : translateColor(v1[i1]); 1073 1074 } 1075 1076 return strokeColor; 1077 } 1078 1079 //============================================================= 1080 function Get_stokeWeight(Weight_src) { 1081 1082 v1 = Get_Tableau(Weight_src); 1083 stroked = false; 1084 for (i1 in v1) { 1085 Weight = v1[i1]; 1086 p1 = Weight.match("%") 1087 1088 switch (Weight) { 1089 case p1: 1090 strokeWeight[i1] = 10; 1091 break; 1092 case 'thin': 1093 strokeWeight[i1] = 0.5; 1094 break; 1095 case 'medium': 1096 strokeWeight[i1] = 0.75; 1097 break; 1098 case 'thick': 1099 strokeWeight[i1] = 2; 1100 break; 1101 case 'inherit': 1102 if (Obj.parentElement) 1103 strokeWeight[i1] = Get_stokeWeight(Obj.parentElement.currentStyle.borderWidth); 1104 else 1105 strokeWeight[i1] = 0; 1106 1107 break; 1108 1109 default: 1110 1111 strokeWeight[i1] = Weight; 1112 break; 1113 } 1114 strokeWeight[i1] = parseInt(strokeWeight[i1]); 1115 if (isNaN(strokeWeight[i1])) { 1116 strokeWeight[i1] = 0; 1117 } 1118 1119 stroked = (strokeWeight[i1] > 0) ? true : stroked; 1120 } 1121 return strokeWeight; 1122 1123 } 1124 1125 // Récupérer la valeur d'une propriété CSS d'un élément id 1126 function getStyle(elt, pro) { 1127 var element = document.getElementById(elt); 1128 if (window.getComputedStyle) // Mozilla Firefox & cie 1129 { 1130 var propriete = window.getComputedStyle(element, null).getPropertyValue(pro); 1131 } 1132 else if (element.currentStyle) // Microsoft Internet Explorer 1133 { 1134 // Formatage (IE) de la propriété CSS 1135 while (pro.indexOf('-') != -1) { 1136 var lettresuivtiret = pro.charAt(pro.indexOf('-') + 1); 1137 pro = pro.replace(/-\S{1}/, lettresuivtiret.toUpperCase()); 1138 } 1139 var propriete = eval('element.currentStyle.' + pro); 1140 } 1141 return propriete; 1142 } 1143 // Récupérer la valeur CSS 1144 function getStyles(elt) { 1145 var element = elt; 1146 if (window.getComputedStyle) // Mozilla Firefox & cie 1147 { 1148 var propriete = window.getComputedStyle(element, null); 1149 } 1150 else if (element.currentStyle) // Microsoft Internet Explorer 1151 { 1152 1153 var propriete = element.currentStyle; 1154 } 1155 return propriete; 1156 }
Note: See TracChangeset
for help on using the changeset viewer.