Changeset 4537 for extensions/Juza


Ignore:
Timestamp:
Dec 20, 2009, 8:34:50 PM (14 years ago)
Author:
vdigital
Message:

[Update] For Juza - Juza Theme Configuration Menu is working at 99% at least
Solved:

  • Multi-view Controller error removed.
  • IE8 Category descriptions removed (already in Title).
  • Category menu: Not expanded.
  • Page numbers on Picture page is visible.
  • Links (Home / Category of Books / Book Demo ) on Picture page are available.
Location:
extensions/Juza
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/include/functions.inc.php

    r4516 r4537  
    4343        return $src;
    4444}
     45
     46function 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
    4554function Juza_update() {
    46   global $template, $conf;
     55  global $template, $conf, $user;
    4756  $conf_Juza = Juza_default();
    4857  if (isset($conf['Juza Config'])) $conf_Juza = array_merge($conf_Juza, unserialize($conf['Juza Config']));
     
    8695  if ($conf['Juza_active']) $template->assign('Juza_active', true);
    8796  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;
    88100  $template->assign('Juza_width', $conf_Juza['Juza_width']);
    89101  $template->assign('Juza_height', $conf_Juza['Juza_height']);
  • extensions/Juza/js/juzascript.js

    r4530 r4537  
    3636  $('.thumbnailCategory .description h3 a').each(function() {
    3737    $cat_url = $(this).attr('href');
    38     $cat_tree = $('#menubar #mbCategories dd ul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html();
     38    $cat_tree = $('#menu-cat ul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html();
    3939    if ($cat_tree == null) $cat_tree = '';
    4040    $(this).parent('h3').eq(0).next('.text').after('<ul>'+$cat_tree+'</ul>');
  • extensions/Juza/script.tpl

    r4530 r4537  
    8787<div id="ix-cat" style="display:none">
    8888{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"/>
    9090{/foreach}
     91</div>
     92{/if}
     93{if isset($Juza_cats)}
     94<div id="menu-cat" style="display:none">
     95{$Juza_cats}
    9196</div>
    9297{/if}
  • extensions/Juza/theme.css

    r4530 r4537  
    4949.middle_block h2, h2 { color: #6daa37; font-size:16px; text-align: center; }
    5050.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; }
    5253#imageHeaderBar .browsePath { color: #6DAA37; }
    5354#imageHeaderBar  h2, .menuInfoCat,
     
    6263#theHeader h1 { font-family:Verdana,Arial,Helvetica,sans-serif; font-size:60px; font-style:normal; font-weight:normal; line-height:0.89em; color: #fff;}
    6364#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  
    2020);
    2121global $user, $conf, $lang;
    22 $user["expand"] = true; /* Forced to assign subcategory links inside each category on index page */
     22$user["expand"] = false;
    2323$user['nb_image_line']= 7;
    2424$user['nb_line_page']= 1;
     
    2626load_language('lang', JUZA_PATH);
    2727/* No handlers at all or Open ? */
    28 if ($conf['enable_plugins']) {
     28if ($conf['enable_plugins'] and is_file(JUZA_PATH.'include/functions.inc.php')) {
    2929  include_once(JUZA_PATH.'include/functions.inc.php');
    3030  add_event_handler('loc_after_page_header', 'Juza_hook', 20);
     31  /* add_event_handler('init', 'remove_AkBookStyle_handlers', 50); */
    3132}
    3233?>
Note: See TracChangeset for help on using the changeset viewer.