Changeset 4537 for extensions/Juza
- Timestamp:
- Dec 20, 2009, 8:34:50 PM (14 years ago)
- Location:
- extensions/Juza
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Juza/include/functions.inc.php
r4516 r4537 43 43 return $src; 44 44 } 45 46 function remove_AkBookStyle_handlers() { 47 global $public_content; 48 remove_event_handler('loc_begin_index_thumbnails', array($public_content, 'loc_begin_index_thumbnails')); 49 remove_event_handler('loc_end_index_thumbnails', array($public_content, 'loc_end_index_thumbnails')); 50 remove_event_handler('loc_begin_index', array($public_content, 'page_force')); 51 remove_event_handler('loc_end_picture', array($public_content, 'loc_end_picture')); 52 } 53 45 54 function Juza_update() { 46 global $template, $conf ;55 global $template, $conf, $user; 47 56 $conf_Juza = Juza_default(); 48 57 if (isset($conf['Juza Config'])) $conf_Juza = array_merge($conf_Juza, unserialize($conf['Juza Config'])); … … 86 95 if ($conf['Juza_active']) $template->assign('Juza_active', true); 87 96 if ($conf_Juza['Juza_handlers']) $template->assign('Juza_handlers', 'checked="checked"'); 97 $user["expand"] = true; 98 $template->assign('Juza_cats', get_categories_menu()); 99 $user["expand"] = false; 88 100 $template->assign('Juza_width', $conf_Juza['Juza_width']); 89 101 $template->assign('Juza_height', $conf_Juza['Juza_height']); -
extensions/Juza/js/juzascript.js
r4530 r4537 36 36 $('.thumbnailCategory .description h3 a').each(function() { 37 37 $cat_url = $(this).attr('href'); 38 $cat_tree = $('#menu bar #mbCategories ddul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html();38 $cat_tree = $('#menu-cat ul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html(); 39 39 if ($cat_tree == null) $cat_tree = ''; 40 40 $(this).parent('h3').eq(0).next('.text').after('<ul>'+$cat_tree+'</ul>'); -
extensions/Juza/script.tpl
r4530 r4537 87 87 <div id="ix-cat" style="display:none"> 88 88 {foreach from=$category_thumbnails item=cat} 89 <img src="{$cat.TN_SRC}" title="{$cat.TN_SRC|@Juza_file}" alt="{$cat.DESCRIPTION|@ htmlspecialchars}" class="Cat"/>89 <img src="{$cat.TN_SRC}" title="{$cat.TN_SRC|@Juza_file}" alt="{$cat.DESCRIPTION|@strip_tags|@htmlspecialchars}" class="Cat"/> 90 90 {/foreach} 91 </div> 92 {/if} 93 {if isset($Juza_cats)} 94 <div id="menu-cat" style="display:none"> 95 {$Juza_cats} 91 96 </div> 92 97 {/if} -
extensions/Juza/theme.css
r4530 r4537 49 49 .middle_block h2, h2 { color: #6daa37; font-size:16px; text-align: center; } 50 50 .middle_block * { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:11pt; text-align:left; } 51 51 .content div.thumbnailCategory div.description p { display:none; } 52 .content div.thumbnailCategory div.description p.Nb_images { display:block; } 52 53 #imageHeaderBar .browsePath { color: #6DAA37; } 53 54 #imageHeaderBar h2, .menuInfoCat, … … 62 63 #theHeader h1 { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:60px; font-style:normal; font-weight:normal; line-height:0.89em; color: #fff;} 63 64 #theHeader p { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:20px; letter-spacing:5px; line-height:2.1em; colour: #fff; } 65 #the_page #imageToolBar { top:-90px; } -
extensions/Juza/themeconf.inc.php
r4530 r4537 20 20 ); 21 21 global $user, $conf, $lang; 22 $user["expand"] = true; /* Forced to assign subcategory links inside each category on index page */22 $user["expand"] = false; 23 23 $user['nb_image_line']= 7; 24 24 $user['nb_line_page']= 1; … … 26 26 load_language('lang', JUZA_PATH); 27 27 /* No handlers at all or Open ? */ 28 if ($conf['enable_plugins'] ) {28 if ($conf['enable_plugins'] and is_file(JUZA_PATH.'include/functions.inc.php')) { 29 29 include_once(JUZA_PATH.'include/functions.inc.php'); 30 30 add_event_handler('loc_after_page_header', 'Juza_hook', 20); 31 /* add_event_handler('init', 'remove_AkBookStyle_handlers', 50); */ 31 32 } 32 33 ?>
Note: See TracChangeset
for help on using the changeset viewer.