Ignore:
Timestamp:
01/21/10 21:32:59 (10 years ago)
Author:
vdigital
Message:

[Update] - Juza Theme is full working (Not tested with plugins).

Recommended organization: Don't mixed Pictures and subcategories in a category.

Location:
extensions/Juza/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/include/Juzaconfig.tpl

    r4659 r4716  
    2828          <span class="range">{'[-320:0]'|@translate}</span> 
    2929        </li> 
    30         <li> 
    31           <label> 
    32             <span class="property">{'Auto cropping and shifting'|@translate}</span> 
    33             <input type="checkbox" name="Juza_Auto_CS" {$Juza_Auto_CS}> 
    34             <span class="range">{'Inactive, maintain picture width &lt; 900px (Height is free)'|@translate}</span> 
    35           </label> 
    36         </li> 
    3730      </ul> 
    3831    </fieldset> 
  • extensions/Juza/include/functions.inc.php

    r4659 r4716  
    8686} 
    8787 
    88 function remove_AkBookStyle_handlers() { 
    89   global $public_content; 
    90   remove_event_handler('loc_begin_index_thumbnails', array($public_content, 'loc_begin_index_thumbnails')); 
    91   remove_event_handler('loc_end_index_thumbnails', array($public_content, 'loc_end_index_thumbnails')); 
    92   remove_event_handler('loc_begin_index', array($public_content, 'page_force')); 
    93   remove_event_handler('loc_end_picture', array($public_content, 'loc_end_picture')); 
    94 } 
    95  
    9688function Juza_update() { 
    9789  global $template, $conf, $user; 
     
    108100    $conf_Juza['Juza_shift'] = ($conf_Juza['Juza_shift'] > 0) ? 0 : $conf_Juza['Juza_shift']; 
    109101    $conf_Juza['Juza_shift'] = ($conf_Juza['Juza_shift'] < -320) ? 320 : $conf_Juza['Juza_shift']; 
    110     $conf_Juza['Juza_Auto_CS'] = isset($_POST['Juza_Auto_CS']) ? true:false; 
    111102    $conf['Juza Config'] = serialize($conf_Juza); 
    112103    $query = 'REPLACE INTO '.CONFIG_TABLE.' 
     
    138129  $template->assign('Juza_shift2', 150-$conf_Juza['Juza_height']); 
    139130  $template->assign('Juza_shift3', -(12+$conf_Juza['Juza_height'])); 
    140   if ($conf_Juza['Juza_Auto_CS']) $template->assign('Juza_Auto_CS', 'checked="checked"'); 
    141131} 
    142132function Juza_default() { 
     
    144134    'Juza_width'    => 885, 
    145135    'Juza_height'   => 240, 
    146     'Juza_shift'    => -160, 
    147     'Juza_Auto_CS'  => true,); 
     136    'Juza_shift'    => -160,); 
    148137} 
    149138?> 
Note: See TracChangeset for help on using the changeset viewer.