Changeset 16380 for extensions
- Timestamp:
- Jul 5, 2012, 10:24:53 PM (12 years ago)
- Location:
- extensions
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/hr_glass_xl/theme.css
r16305 r16380 49 49 color: #000000; 50 50 } 51 #derivativeSwitchBox, #sortOrderBox { 52 font-size: 11px; 53 color: #000033; 54 text-shadow: 0 0 2px #ccc; 55 padding: 4px 8px; 56 border: 1px solid rgba(255,255,255,0.25); 57 background-color: rgb(255,255,255); 58 background-color: rgba(255,255,255,0.92); 59 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff)); 60 border-radius: 3px; 61 -webkit-border-radius: 3px; 62 -moz-border-radius: 3px; 63 box-shadow: 0 0 5px #555; 64 -webkit-box-shadow: 0 0 5px #555; 65 -moz-box-shadow: 0 0 5px #555; 66 } 67 #derivativeSwitchBox A, #sortOrderBox A { 68 color: #000; 69 } 70 71 #derivativeSwitchBox A:hover, #sortOrderBox A:hover { 72 text-shadow: 0 0 2px #000; 73 } 74 75 51 76 /* Page 52 77 -------------------------------------------------------- */ … … 56 81 width: 940px; 57 82 margin: 0 auto; 58 position: relative;59 83 background: transparent url(img/fond_milieu.png) repeat-y top center; 60 84 } … … 149 173 padding: 5px 8px; 150 174 } 151 175 #imageToolBar .imageNumber { 176 float: right; 177 margin: -30px 9px 0 0; 178 } 152 179 #theImage IMG { 153 180 padding: 5px; 154 181 border: 1px solid #aaa; 155 } 182 margin-left: -10px; 183 } 184 #theMainImage {max-width:900px} 156 185 157 186 #imageHeaderBar H2 { … … 219 248 position:absolute; 220 249 } 221 #menubar { position: relative; z-index: 2; } 222 #content { position: relative; z-index: 1; } 223 250 #menubar { position: relative; } 251 #theHeader { position: relative; } 224 252 #content div.thumbnailCategory div.description { 225 253 overflow: hidden; /* bug in FF 1.0 (not 1.5) */ -
extensions/hr_glass_xl/themeconf.inc.php
r12265 r16380 58 58 $template->assign('display_hr_glass_xl_banner', $header); 59 59 } 60 61 // function load_pattern 62 // include the right ***.pattern.php 63 // not compatible 2.2and<2.2 64 65 function load_pattern() 66 { 67 global $pattern; 68 $pwgversion=str_replace('.','',PHPWG_VERSION); 69 $pwgversion_array=explode('.', PHPWG_VERSION); 70 if (file_exists($pwgversion.'pattern.php')) 71 { 72 include($pwgversion.'.pattern.php'); 73 return true; 74 } 75 elseif (file_exists(PHPWG_ROOT_PATH.'themes/hr_glass_xl/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php')) 76 { 77 include(PHPWG_ROOT_PATH.'themes/hr_glass_xl/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php'); 78 return true; 79 } 80 else 81 { 82 $list_pattern_path=array(); 83 $dir=PHPWG_ROOT_PATH.'themes/hr_glass_xl'; 84 $dh = opendir($dir); 85 while (($file = readdir ($dh)) !== false ) { 86 if ($file !== '.' && $file !== '..') { 87 $path =$dir.'/'.$file; 88 if (!is_dir ($path)) { 89 if(strpos($file,'pattern.php')!==false) { //On ne prend que les .pattern.php 90 $list_pattern_path[]=$file; 91 } 92 } 93 } 94 } 95 closedir($dh); 96 $f=0; 97 for($i = 10; $i >=0; $i--) 98 { 99 if (in_array($pwgversion_array[0].$i.'.pattern.php',$list_pattern_path)) 100 { 101 include($pwgversion_array[0].$i.'.pattern.php'); 102 return true; 103 $f=1; 104 break; 105 } 106 } 107 if ($f=0) 108 { 109 return false; 110 } 111 } 112 113 } 114 if(!load_pattern()) 115 { 116 global $page; 117 $page['errors'][]='Theme not compatible'; 118 } 119 120 /************************************ picture.tpl ************************************/ 121 add_event_handler('render_element_content', 'hr_glass_xl_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 122 function hr_glass_xl_picture($content, $element_info) 123 { 124 global $template; 125 $template->set_prefilter('default_content', 'hr_glass_xl_prefilter_picture'); 126 return $content; 127 } 128 function hr_glass_xl_prefilter_picture($content, &$smarty) 129 { 130 global $pattern; 131 $r=$pattern['hr_glass_xl_prefilter_picture']['R']; 132 $ps=$pattern['hr_glass_xl_prefilter_picture']['S']; 133 foreach($r as $i => $pr) 134 { 135 $content = str_replace($ps[$i], $pr, $content); 136 } 137 138 $content ='{define_derivative name=\'der_hr_glass_xl\' width=900 height=9999 crop=false} 139 {assign var=der value=$pwg->derivative($der_hr_glass_xl, $current.src_image)} 140 '.$content; 141 return $content; 142 } 143 144 60 145 ?> -
extensions/hr_os/theme.css
r16305 r16380 55 55 56 56 img{ border: 0; } 57 #derivativeSwitchBox, #sortOrderBox { 58 font-size: 11px; 59 color: #000033; 60 text-shadow: 0 0 2px #ccc; 61 padding: 4px 8px; 62 border: 1px solid rgba(255,255,255,0.25); 63 background-color: rgb(255,255,255); 64 background-color: rgba(255,255,255,0.92); 65 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff)); 66 border-radius: 3px; 67 -webkit-border-radius: 3px; 68 -moz-border-radius: 3px; 69 box-shadow: 0 0 5px #555; 70 -webkit-box-shadow: 0 0 5px #555; 71 -moz-box-shadow: 0 0 5px #555; 72 } 73 #derivativeSwitchBox A, #sortOrderBox A { 74 color: #000; 75 } 76 77 #derivativeSwitchBox A:hover, #sortOrderBox A:hover { 78 text-shadow: 0 0 2px #000; 79 } 80 57 81 58 82 /* Page … … 63 87 width: 800px; 64 88 margin: 0 auto; 65 position: relative;66 89 background: transparent url(img/back.jpg) repeat-y top center; 67 90 } … … 127 150 margin: 10px auto; 128 151 } 152 #imageToolBar .imageNumber { 153 float: right; 154 margin: -30px 9px 0 0; 155 } 129 156 #imageHeaderBar{ 130 157 background: #F5F5F5; … … 200 227 } 201 228 202 #menubar { position: relative; z-index: 2; } 203 #content { position: relative; z-index: 1; } 204 229 #menubar { position: relative; } 230 #theHeader { position: relative; } 205 231 #content div.thumbnailCategory div.description { 206 232 overflow: hidden; /* bug in FF 1.0 (not 1.5) */ -
extensions/hr_os/themeconf.inc.php
r12264 r16380 57 57 $template->assign('display_hr_os_banner', $header); 58 58 } 59 // function load_pattern 60 // include the right ***.pattern.php 61 // not compatible 2.2and<2.2 62 63 function load_pattern() 64 { 65 global $pattern; 66 $pwgversion=str_replace('.','',PHPWG_VERSION); 67 $pwgversion_array=explode('.', PHPWG_VERSION); 68 if (file_exists($pwgversion.'pattern.php')) 69 { 70 include($pwgversion.'.pattern.php'); 71 return true; 72 } 73 elseif (file_exists(PHPWG_ROOT_PATH.'themes/hr_os/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php')) 74 { 75 include(PHPWG_ROOT_PATH.'themes/hr_os/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php'); 76 return true; 77 } 78 else 79 { 80 $list_pattern_path=array(); 81 $dir=PHPWG_ROOT_PATH.'themes/hr_os'; 82 $dh = opendir($dir); 83 while (($file = readdir ($dh)) !== false ) { 84 if ($file !== '.' && $file !== '..') { 85 $path =$dir.'/'.$file; 86 if (!is_dir ($path)) { 87 if(strpos($file,'pattern.php')!==false) { //On ne prend que les .pattern.php 88 $list_pattern_path[]=$file; 89 } 90 } 91 } 92 } 93 closedir($dh); 94 $f=0; 95 for($i = 10; $i >=0; $i--) 96 { 97 if (in_array($pwgversion_array[0].$i.'.pattern.php',$list_pattern_path)) 98 { 99 include($pwgversion_array[0].$i.'.pattern.php'); 100 return true; 101 $f=1; 102 break; 103 } 104 } 105 if ($f=0) 106 { 107 return false; 108 } 109 } 110 111 } 112 if(!load_pattern()) 113 { 114 global $page; 115 $page['errors'][]='Theme not compatible'; 116 } 117 118 /************************************ picture.tpl ************************************/ 119 add_event_handler('render_element_content', 'hr_os_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 120 function hr_os_picture($content, $element_info) 121 { 122 global $template; 123 $template->set_prefilter('default_content', 'hr_os_prefilter_picture'); 124 return $content; 125 } 126 function hr_os_prefilter_picture($content, &$smarty) 127 { 128 global $pattern; 129 $r=$pattern['hr_os_prefilter_picture']['R']; 130 $ps=$pattern['hr_os_prefilter_picture']['S']; 131 foreach($r as $i => $pr) 132 { 133 $content = str_replace($ps[$i], $pr, $content); 134 } 135 136 $content ='{define_derivative name=\'der_hr_os\' width=730 height=9999 crop=false} 137 {assign var=der value=$pwg->derivative($der_hr_os, $current.src_image)} 138 '.$content; 139 return $content; 140 } 141 59 142 60 143 ?> -
extensions/hr_os_xl/theme.css
r16305 r16380 59 59 color: #FFF; 60 60 } 61 #derivativeSwitchBox, #sortOrderBox { 62 font-size: 11px; 63 color: #000033; 64 text-shadow: 0 0 2px #ccc; 65 padding: 4px 8px; 66 border: 1px solid rgba(255,255,255,0.25); 67 background-color: rgb(255,255,255); 68 background-color: rgba(255,255,255,0.92); 69 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff)); 70 border-radius: 3px; 71 -webkit-border-radius: 3px; 72 -moz-border-radius: 3px; 73 box-shadow: 0 0 5px #555; 74 -webkit-box-shadow: 0 0 5px #555; 75 -moz-box-shadow: 0 0 5px #555; 76 } 77 #derivativeSwitchBox A, #sortOrderBox A { 78 color: #000; 79 } 80 81 #derivativeSwitchBox A:hover, #sortOrderBox A:hover { 82 text-shadow: 0 0 2px #000; 83 } 84 61 85 /* Page 62 86 -------------------------------------------------------- */ … … 66 90 width: 940px; 67 91 margin: 0 auto; 68 position: relative;69 92 background: transparent url(img/back.jpg) repeat-y top center; 70 93 } … … 135 158 padding: 5px 8px; 136 159 } 137 160 #imageToolBar .imageNumber { 161 float: right; 162 margin: -30px 9px 0 0; 163 } 138 164 #theImage IMG { 139 165 padding: 5px; 140 166 border: 1px solid #aaa; 141 167 } 168 #theMainImage {max-width:880px} 142 169 143 170 #imageHeaderBar H2 { … … 201 228 } 202 229 203 #menubar { position: relative; z-index: 2;}204 # content { position: relative; z-index: 1; }230 #menubar { position: relative; } 231 #theHeader { position: relative; } 205 232 206 233 #content div.thumbnailCategory div.description { -
extensions/hr_os_xl/themeconf.inc.php
r12266 r16380 57 57 $template->assign('display_hr_os_xl_banner', $header); 58 58 } 59 // function load_pattern 60 // include the right ***.pattern.php 61 // not compatible 2.2and<2.2 62 63 function load_pattern() 64 { 65 global $pattern; 66 $pwgversion=str_replace('.','',PHPWG_VERSION); 67 $pwgversion_array=explode('.', PHPWG_VERSION); 68 if (file_exists($pwgversion.'pattern.php')) 69 { 70 include($pwgversion.'.pattern.php'); 71 return true; 72 } 73 elseif (file_exists(PHPWG_ROOT_PATH.'themes/hr_os_xl/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php')) 74 { 75 include(PHPWG_ROOT_PATH.'themes/hr_os_xl/'.$pwgversion_array[0].$pwgversion_array[1].'x.pattern.php'); 76 return true; 77 } 78 else 79 { 80 $list_pattern_path=array(); 81 $dir=PHPWG_ROOT_PATH.'themes/hr_os_xl'; 82 $dh = opendir($dir); 83 while (($file = readdir ($dh)) !== false ) { 84 if ($file !== '.' && $file !== '..') { 85 $path =$dir.'/'.$file; 86 if (!is_dir ($path)) { 87 if(strpos($file,'pattern.php')!==false) { //On ne prend que les .pattern.php 88 $list_pattern_path[]=$file; 89 } 90 } 91 } 92 } 93 closedir($dh); 94 $f=0; 95 for($i = 10; $i >=0; $i--) 96 { 97 if (in_array($pwgversion_array[0].$i.'.pattern.php',$list_pattern_path)) 98 { 99 include($pwgversion_array[0].$i.'.pattern.php'); 100 return true; 101 $f=1; 102 break; 103 } 104 } 105 if ($f=0) 106 { 107 return false; 108 } 109 } 110 111 } 112 if(!load_pattern()) 113 { 114 global $page; 115 $page['errors'][]='Theme not compatible'; 116 } 117 118 /************************************ picture.tpl ************************************/ 119 add_event_handler('render_element_content', 'hr_os_xl_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 120 function hr_os_xl_picture($content, $element_info) 121 { 122 global $template; 123 $template->set_prefilter('default_content', 'hr_os_xl_prefilter_picture'); 124 return $content; 125 } 126 function hr_os_xl_prefilter_picture($content, &$smarty) 127 { 128 global $pattern; 129 $r=$pattern['hr_os_xl_prefilter_picture']['R']; 130 $ps=$pattern['hr_os_xl_prefilter_picture']['S']; 131 foreach($r as $i => $pr) 132 { 133 $content = str_replace($ps[$i], $pr, $content); 134 } 135 136 $content ='{define_derivative name=\'der_hr_os_xl\' width=900 height=9999 crop=false} 137 {assign var=der value=$pwg->derivative($der_hr_os_xl, $current.src_image)} 138 '.$content; 139 return $content; 140 } 141 142 59 143 ?>
Note: See TracChangeset
for help on using the changeset viewer.