Changeset 20153 for extensions/hr_os


Ignore:
Timestamp:
Jan 14, 2013, 8:07:25 PM (11 years ago)
Author:
flop25
Message:

optimal size
switchlanguage style

todo lang file to spread

Location:
extensions/hr_os
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/hr_os/theme.css

    r16380 r20153  
    7777#derivativeSwitchBox A:hover, #sortOrderBox A:hover {
    7878        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;
    79102}
    80103
  • extensions/hr_os/themeconf.inc.php

    r16380 r20153  
    1616  'activable'     => true,
    1717);
    18 // Need upgrade?
    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 = '
     18//// [update check]
     19if (!isset($conf['hr_os']))
     20{
     21  $config = array(
     22    'home'       => true,
     23    'categories' => true,
     24    'picture'    => false,
     25    'other'      => true,
     26    );
     27   
     28  $query = '
    2929INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment)
    3030VALUES ("hr_os" , "'.pwg_db_real_escape_string(serialize($config)).'" , "hr_os parameters");';
    3131
     32  pwg_query($query);
     33  load_conf_from_db();
     34}
     35if (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';
    3245    pwg_query($query);
    3346    load_conf_from_db();
    3447  }
     48}
     49//// [/update check]
     50
     51
    3552// thx to P@t
    3653add_event_handler('loc_begin_page_header', 'set_hr_os_header');
     
    117134
    118135/************************************ 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 );
    120137function hr_os_picture($content, $element_info)
    121138{
Note: See TracChangeset for help on using the changeset viewer.