Changeset 4716
- Timestamp:
- Jan 21, 2010, 9:32:59 PM (14 years ago)
- Location:
- extensions/Juza
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Juza/Juzabar.tpl
r4659 r4716 1 1 <table cellspacing="0" class="juzabar"> 2 2 <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> 4 4 <td>PORTFOLIO</td> 5 5 <td><a title="Gallery home" href="{''|make_index_url}"><strong>GALLERIES</strong></a></td> -
extensions/Juza/include/Juzaconfig.tpl
r4659 r4716 28 28 <span class="range">{'[-320:0]'|@translate}</span> 29 29 </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 < 900px (Height is free)'|@translate}</span>35 </label>36 </li>37 30 </ul> 38 31 </fieldset> -
extensions/Juza/include/functions.inc.php
r4659 r4716 86 86 } 87 87 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 96 88 function Juza_update() { 97 89 global $template, $conf, $user; … … 108 100 $conf_Juza['Juza_shift'] = ($conf_Juza['Juza_shift'] > 0) ? 0 : $conf_Juza['Juza_shift']; 109 101 $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;111 102 $conf['Juza Config'] = serialize($conf_Juza); 112 103 $query = 'REPLACE INTO '.CONFIG_TABLE.' … … 138 129 $template->assign('Juza_shift2', 150-$conf_Juza['Juza_height']); 139 130 $template->assign('Juza_shift3', -(12+$conf_Juza['Juza_height'])); 140 if ($conf_Juza['Juza_Auto_CS']) $template->assign('Juza_Auto_CS', 'checked="checked"');141 131 } 142 132 function Juza_default() { … … 144 134 'Juza_width' => 885, 145 135 'Juza_height' => 240, 146 'Juza_shift' => -160, 147 'Juza_Auto_CS' => true,); 136 'Juza_shift' => -160,); 148 137 } 149 138 ?> -
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"*}2 1 {known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} 3 2 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"} … … 7 6 <style type="text/css"> 8 7 .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; } 10 9 #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%; } 13 11 </style> 14 12 {/html_head} 15 13 <script type="text/javascript"> 16 $( ).ready(function() {ldelim}14 $('div.illustration a img').ready(function() {ldelim} 17 15 $('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 */ 31 31 }); 32 32 var $h = $('#jquery_local_img #relTag').height() + 50 + {$Juza_width}; … … 34 34 }); 35 35 </script> 36 {/html_head} 36 37 37 38 38 {if isset($thumbnails)} … … 60 60 61 61 {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> 63 63 </div> 64 64 {/if} … … 66 66 {$MENUBAR} 67 67 {assign var=MENUBAR value=''} 68 -
extensions/Juza/theme.css
r4659 r4716 14 14 .content div.thumbnailCategory div.description h3 { position:relative; top:10px; z-index:11; } 15 15 .content div.thumbnailCategory div.description ul { margin: 10px 5px 5px 30px; } 16 .content div.thumbnailCategory div.description.Juza-desc { he } 16 17 /* .content ul.thumbnailCategories li { width:100%; } Let user choice in case of noscript */ 17 18 .content ul.thumbnailCategories li.Juza-cat { margin:0 0 20px; height:auto; min-height:auto; } … … 20 21 .content ul.thumbnails span.wrap2 { -moz-border-radius: 0; border-radius: 0; } 21 22 .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; } 22 25 #copyright { margin-top: 0px; } 23 26 #copyright * { color: #383838; } … … 28 31 div.illustration { overflow: hidden; } 29 32 div.illustration img { border: 0; margin-left: 0px; } 30 .bigImg { position:relative; top:0px;width:auto; }33 .bigImg { position:relative; width:auto; } 31 34 img.icon[alt="(!)"] { display: none; } 32 35 input.Juza_conf, a { color: #FB9700 !important } … … 59 62 .maxIllustration a { overflow: hidden; display: block; position:relative; z-index:12; float:right; max-height: auto; height: auto; width:auto; } 60 63 .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; } 61 66 .middle_block * { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11pt; text-align:left; } 62 67 .content div.thumbnailCategory div.description p { display:none; } -
extensions/Juza/themeconf.inc.php
r4659 r4716 25 25 $user['nb_image_page']= 7; 26 26 load_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 */ 28 if ($conf['enable_plugins']) { 29 29 include_once(JUZA_PATH.'include/functions.inc.php'); 30 30 add_event_handler('loc_after_page_header', 'Juza_hook', 20); 31 31 add_event_handler('blockmanager_apply', 'Juza_tags'); 32 /* add_event_handler('init', 'remove_AkBookStyle_handlers', 50); */33 32 } 34 33 ?>
Note: See TracChangeset
for help on using the changeset viewer.