Changeset 4716


Ignore:
Timestamp:
Jan 21, 2010, 9:32:59 PM (14 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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/Juzabar.tpl

    r4659 r4716  
    11<table cellspacing="0" class="juzabar">
    22<tbody><tr>
    3 <td>HOME PAGE</td>
     3<td><a title="Juza home" href="http://www.juzaphoto.com/eng/photo_galleries.htm" target="_blank"><strong>REAL JUZA HOME</strong></a></td>
    44<td>PORTFOLIO</td>
    55<td><a title="Gallery home" href="{''|make_index_url}"><strong>GALLERIES</strong></a></td>
  • 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?>
  • extensions/Juza/script.tpl

    r4659 r4716  
    1   {*known_script id="jquery" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"*}
    21  {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    32  {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
     
    76<style type="text/css">
    87.maxIllustration a {ldelim} max-height: {$Juza_height}px; height: {$Juza_height}px; width:{$Juza_width}px; }
    9 .bigImg {ldelim} top:{$Juza_shift}px; width:{$Juza_width}px !important; }
     8.bigImg {ldelim} width:{$Juza_width}px !important; }
    109#imageToolBar {ldelim} top:{$Juza_shift2}px; }
    11 .content ul.thumbnailCategories li.Juza-cat {ldelim} height:{$Juza_height2}px; min-height:{$Juza_height2}px; width: 100%; }
    12 .content div.thumbnailCategory div.Juza-desc {ldelim} height:{$Juza_height3}px !important; top:{$Juza_shift3}px; }
     10.content ul.thumbnailCategories li.Juza-cat {ldelim} width: 100%; }
    1311</style>
    14 
     12  {/html_head}
    1513<script type="text/javascript">
    16 $().ready(function() {ldelim}
     14$('div.illustration a img').ready(function() {ldelim}
    1715  $('div.illustration a img').each(function() {ldelim}
    18     $(this).ready(function() {ldelim}
    19       var $h = $(this).height();
    20       {if isset($Juza_Auto_CS)}if ($h  < {$Juza_height}) /* Kill Auto crop */ {/if} {literal} {
    21         var $i = ($h + 55)+'px';
    22         var $j = ($h + 325)+'px';
    23         var $k = ($h + 12)+'px';
    24         var $h = $h+'px';
    25         $(this).css('top', '0px');
    26         $(this).parents('li').eq(0).addClass('Juza-cat').css('height', $i).css('min-height', $i).css('width','100%');
    27         $(this).parents('li.Juza-cat').eq(0).find('.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
    28         $(this).parents('.maxIllustration a').eq(0).css('height', $h);
    29       };{/literal}
    30     });
     16    var $h = $(this).height();
     17    $(this).css('top', '{$Juza_shift}px');
     18    $(this).parents('li').eq(0).css('height', '{$Juza_height2}px').css('min-height', '{$Juza_height2}px');
     19    $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , '{$Juza_height3}px').css('top', '{$Juza_shift3}px').find('li').css('width','100%');
     20    $(this).parents('.maxIllustration a').eq(0).css('height', '{$Juza_height}px');
     21    if ($h  < {$Juza_height3+20})  {ldelim} /* Kill Auto crop */
     22      var $i = ($h + 55)+'px';
     23      var $j = ($h + 325)+'px';
     24      var $k = ($h + 12)+'px';
     25      var $h = $h+'px';
     26      $(this).css('top', '0px');
     27      $(this).parents('li').eq(0).css('height', $i).css('min-height', $i);
     28      $(this).parents('li').eq(0).find('div.description').eq(0).css('height' , $j).css('top', '-'+$k).find('li').css('width','100%');
     29      $(this).parents('.maxIllustration a').eq(0).css('height', $h);
     30    }; /* Kill Auto crop */
    3131  });
    3232  var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width};
     
    3434});
    3535</script>
    36   {/html_head}
     36
    3737
    3838{if isset($thumbnails)}
     
    6060
    6161{if is_admin()}
    62 <div id="Juza_call" style="display:none"><a class="Juza_conf" href="#" alt="">{'Juza Theme Configuration'|@translate}</a>
     62<div id="Juza_call" style="display:none"><a class="Juza_conf" href="#">{'Juza Theme Configuration'|@translate}</a>
    6363</div>
    6464{/if}
     
    6666{$MENUBAR}
    6767{assign var=MENUBAR value=''}
    68 
  • extensions/Juza/theme.css

    r4659 r4716  
    1414.content div.thumbnailCategory div.description h3 { position:relative; top:10px; z-index:11; }
    1515.content div.thumbnailCategory div.description ul { margin: 10px 5px 5px 30px; }
     16.content div.thumbnailCategory div.description.Juza-desc { he }
    1617/* .content ul.thumbnailCategories li { width:100%; }  Let user choice in case of noscript */
    1718.content ul.thumbnailCategories li.Juza-cat { margin:0 0 20px; height:auto; min-height:auto; }
     
    2021.content ul.thumbnails span.wrap2 { -moz-border-radius: 0; border-radius: 0; }
    2122.content ul.thumbnails span.wrap2 img.thumbnail { margin:auto; border: 1px solid #111; }
     23.content div.thumbnailCategory div.Juza-desc ul { width:280px; }
     24.content ul.thumbnailCategories div.Juza-desc li { width:280px; }
    2225#copyright { margin-top: 0px; }
    2326#copyright * { color: #383838; }
     
    2831div.illustration { overflow: hidden; }
    2932div.illustration img { border: 0; margin-left: 0px; }
    30 .bigImg { position:relative; top:0px; width:auto; }
     33.bigImg { position:relative; width:auto; }
    3134img.icon[alt="(!)"] { display: none; }
    3235input.Juza_conf, a { color: #FB9700 !important }
     
    5962.maxIllustration a { overflow: hidden; display: block; position:relative; z-index:12; float:right; max-height: auto; height: auto; width:auto; }
    6063.middle_block h2, h2 { color: #6daa37; font-size:16px; text-align: center; }
     64#copyright a .Piwigo { color: #6daa37; }
     65#copyright a:hover  .Piwigo { color: #ef5810; }
    6166.middle_block * { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11pt; text-align:left; }
    6267.content div.thumbnailCategory div.description p { display:none; }
  • extensions/Juza/themeconf.inc.php

    r4659 r4716  
    2525$user['nb_image_page']= 7;
    2626load_language('lang', JUZA_PATH);
    27 /* No handlers at all or Open ? */
    28 if ($conf['enable_plugins'] and is_file(JUZA_PATH.'include/functions.inc.php')) {
     27/* No handlers or plugin handlers agreed */
     28if ($conf['enable_plugins']) {
    2929  include_once(JUZA_PATH.'include/functions.inc.php');
    3030  add_event_handler('loc_after_page_header', 'Juza_hook', 20);
    3131  add_event_handler('blockmanager_apply', 'Juza_tags');
    32   /* add_event_handler('init', 'remove_AkBookStyle_handlers', 50); */
    3332}
    3433?>
Note: See TracChangeset for help on using the changeset viewer.