Changeset 20153
- Timestamp:
- Jan 14, 2013, 8:07:25 PM (11 years ago)
- Location:
- extensions
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/hr_glass_xl/theme.css
r16380 r20153 72 72 text-shadow: 0 0 2px #000; 73 73 } 74 74 #languageSwitchBox{ 75 font-size: 11px; 76 color: #000033 !important; 77 text-shadow: 0 0 2px #ccc; 78 padding: 4px 8px; 79 border: 1px solid rgba(255,255,255,0.25); 80 background-color: rgb(255,255,255) !important; 81 background-color: rgba(255,255,255,0.92)!important; 82 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff)); 83 border-radius: 3px; 84 -webkit-border-radius: 3px; 85 -moz-border-radius: 3px; 86 box-shadow: 0 0 5px #555; 87 -webkit-box-shadow: 0 0 5px #555; 88 -moz-box-shadow: 0 0 5px #555; 89 } 90 #languageSwitchBox A { 91 color: #000 !important; 92 } 93 94 #languageSwitchBox A:hover { 95 text-shadow: 0 0 2px #000 !important; 96 } 75 97 76 98 /* Page -
extensions/hr_glass_xl/themeconf.inc.php
r16380 r20153 16 16 'activable' => true, 17 17 ); 18 // Need upgrade?19 20 21 22 23 24 25 26 27 28 18 //// [update check] 19 if (!isset($conf['hr_glass_xl'])) 20 { 21 $config = array( 22 'home' => true, 23 'categories' => true, 24 'picture' => false, 25 'other' => true, 26 ); 27 28 $query = ' 29 29 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 30 30 VALUES ("hr_glass_xl" , "'.pwg_db_real_escape_string(serialize($config)).'" , "hr_glass_xl parameters");'; 31 31 32 pwg_query($query); 33 load_conf_from_db(); 34 } 35 if (isset($conf['derivatives'])) { 36 $new = @unserialize($conf['derivatives']); 37 if(!isset($new['d']['Optimal'])) 38 { 39 $new['d']['Optimal']=ImageStdParams::get_custom(900,9999); 40 $query = ' 41 UPDATE '.CONFIG_TABLE.' 42 SET value="'.addslashes(serialize($new)).'" 43 WHERE param = "derivatives" 44 LIMIT 1'; 32 45 pwg_query($query); 33 46 load_conf_from_db(); 34 47 } 48 }//// [/update check] 49 50 35 51 36 52 // thx to P@t … … 119 135 120 136 /************************************ picture.tpl ************************************/ 121 add_event_handler('render_element_content', 'hr_glass_xl_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );137 //add_event_handler('render_element_content', 'hr_glass_xl_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 122 138 function hr_glass_xl_picture($content, $element_info) 123 139 { -
extensions/hr_os/theme.css
r16380 r20153 77 77 #derivativeSwitchBox A:hover, #sortOrderBox A:hover { 78 78 text-shadow: 0 0 2px #000; 79 } 80 #languageSwitchBox{ 81 font-size: 11px; 82 color: #000033 !important; 83 text-shadow: 0 0 2px #ccc; 84 padding: 4px 8px; 85 border: 1px solid rgba(255,255,255,0.25); 86 background-color: rgb(255,255,255) !important; 87 background-color: rgba(255,255,255,0.92)!important; 88 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff)); 89 border-radius: 3px; 90 -webkit-border-radius: 3px; 91 -moz-border-radius: 3px; 92 box-shadow: 0 0 5px #555; 93 -webkit-box-shadow: 0 0 5px #555; 94 -moz-box-shadow: 0 0 5px #555; 95 } 96 #languageSwitchBox A { 97 color: #000 !important; 98 } 99 100 #languageSwitchBox A:hover { 101 text-shadow: 0 0 2px #000 !important; 79 102 } 80 103 -
extensions/hr_os/themeconf.inc.php
r16380 r20153 16 16 'activable' => true, 17 17 ); 18 // Need upgrade?19 20 21 22 23 24 25 26 27 28 18 //// [update check] 19 if (!isset($conf['hr_os'])) 20 { 21 $config = array( 22 'home' => true, 23 'categories' => true, 24 'picture' => false, 25 'other' => true, 26 ); 27 28 $query = ' 29 29 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 30 30 VALUES ("hr_os" , "'.pwg_db_real_escape_string(serialize($config)).'" , "hr_os parameters");'; 31 31 32 pwg_query($query); 33 load_conf_from_db(); 34 } 35 if (isset($conf['derivatives'])) { 36 $new = @unserialize($conf['derivatives']); 37 if(!isset($new['d']['Optimal'])) 38 { 39 $new['d']['Optimal']=ImageStdParams::get_custom(730,9999); 40 $query = ' 41 UPDATE '.CONFIG_TABLE.' 42 SET value="'.addslashes(serialize($new)).'" 43 WHERE param = "derivatives" 44 LIMIT 1'; 32 45 pwg_query($query); 33 46 load_conf_from_db(); 34 47 } 48 } 49 //// [/update check] 50 51 35 52 // thx to P@t 36 53 add_event_handler('loc_begin_page_header', 'set_hr_os_header'); … … 117 134 118 135 /************************************ picture.tpl ************************************/ 119 add_event_handler('render_element_content', 'hr_os_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );136 //add_event_handler('render_element_content', 'hr_os_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 120 137 function hr_os_picture($content, $element_info) 121 138 { -
extensions/hr_os_xl/admin/maintain.inc.php
r11027 r20153 20 20 pwg_query($query); 21 21 } 22 if (isset($conf['derivatives'])) { 23 $new = @unserialize($conf['derivatives']); 24 $new['d']['Optimal']=ImageStdParams::get_custom(900,9999); 25 $query = ' 26 UPDATE '.CONFIG_TABLE.' 27 SET value="'.pwg_db_real_escape_string(serialize($new)).'" 28 WHERE param = "derivatives" 29 LIMIT 1'; 30 pwg_query($query); 31 load_conf_from_db(); 32 } 33 22 34 } 23 35 24 36 function theme_deactivate() 25 37 { 26 global $prefixeTable ;38 global $prefixeTable, $conf; 27 39 28 40 $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="hr_os_xl" LIMIT 1;'; 29 41 pwg_query($query); 42 if (isset($conf['derivatives'])) { 43 $new = @unserialize($conf['derivatives']); 44 if( isset($new['d']['Optimal'])) 45 { 46 unset($new['d']['Optimal']); 47 $conf['derivatives']=serialize($new); 48 $query = ' 49 UPDATE '.CONFIG_TABLE.' 50 SET value="'.addslashes(serialize($new)).'" 51 WHERE param = "derivatives" 52 LIMIT 1'; 53 pwg_query($query); 54 } 55 } 56 30 57 } 31 58 -
extensions/hr_os_xl/theme.css
r16380 r20153 59 59 color: #FFF; 60 60 } 61 # derivativeSwitchBox, #sortOrderBox {61 #languageSwitchBox, #derivativeSwitchBox, #sortOrderBox { 62 62 font-size: 11px; 63 63 color: #000033; … … 75 75 -moz-box-shadow: 0 0 5px #555; 76 76 } 77 #languageSwitchBox{ 78 font-size: 11px; 79 color: #000033 !important; 80 text-shadow: 0 0 2px #ccc; 81 padding: 4px 8px; 82 border: 1px solid rgba(255,255,255,0.25); 83 background-color: rgb(255,255,255) !important; 84 background-color: rgba(255,255,255,0.92)!important; 85 background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(transparent), to(#fff)); 86 border-radius: 3px; 87 -webkit-border-radius: 3px; 88 -moz-border-radius: 3px; 89 box-shadow: 0 0 5px #555; 90 -webkit-box-shadow: 0 0 5px #555; 91 -moz-box-shadow: 0 0 5px #555; 92 } 77 93 #derivativeSwitchBox A, #sortOrderBox A { 78 94 color: #000; … … 81 97 #derivativeSwitchBox A:hover, #sortOrderBox A:hover { 82 98 text-shadow: 0 0 2px #000; 99 } 100 #languageSwitchBox A { 101 color: #000 !important; 102 } 103 104 #languageSwitchBox A:hover { 105 text-shadow: 0 0 2px #000 !important; 83 106 } 84 107 -
extensions/hr_os_xl/themeconf.inc.php
r16380 r20153 16 16 'activable' => true, 17 17 ); 18 if (!isset($conf['hr_os_xl'])) 19 { 20 $config = array( 21 'home' => true, 22 'categories' => true, 23 'picture' => false, 24 'other' => true, 25 ); 26 27 $query = ' 18 //// [update check] 19 if (!isset($conf['hr_os_xl'])) 20 { 21 $config = array( 22 'home' => true, 23 'categories' => true, 24 'picture' => false, 25 'other' => true, 26 ); 27 28 $query = ' 28 29 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 29 30 VALUES ("hr_os_xl" , "'.pwg_db_real_escape_string(serialize($config)).'" , "hr_os_xl parameters");'; 30 31 32 pwg_query($query); 33 load_conf_from_db(); 34 } 35 if (isset($conf['derivatives'])) { 36 $new = @unserialize($conf['derivatives']); 37 if(!isset($new['d']['Optimal'])) 38 { 39 $new['d']['Optimal']=ImageStdParams::get_custom(900,9999); 40 $query = ' 41 UPDATE '.CONFIG_TABLE.' 42 SET value="'.addslashes(serialize($new)).'" 43 WHERE param = "derivatives" 44 LIMIT 1'; 31 45 pwg_query($query); 32 46 load_conf_from_db(); 33 47 } 48 } 49 //// [/update check] 34 50 35 51 // thx to P@t … … 117 133 118 134 /************************************ picture.tpl ************************************/ 119 add_event_handler('render_element_content', 'hr_os_xl_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 );135 //add_event_handler('render_element_content', 'hr_os_xl_picture', EVENT_HANDLER_PRIORITY_NEUTRAL, 20 ); 120 136 function hr_os_xl_picture($content, $element_info) 121 137 {
Note: See TracChangeset
for help on using the changeset viewer.