Changeset 4474 for extensions/Juza


Ignore:
Timestamp:
12/12/09 00:00:13 (10 years ago)
Author:
vdigital
Message:

[Update] For Juza - Minor changes for plg

Pendings:

  • Configuration
  • Exception management
Location:
extensions/Juza
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/Juza/js/juzascript.js

    r4461 r4474  
    66    $(this).addClass('bigImg').attr('src', $(this).attr('src').replace('thumbnail/TN-', '')); 
    77  }); 
    8   $("ul.categoryActions li a[href*='category/'][href*='/flat']").each(function() { 
    9     /* $('ul.categoryActions').css('display','inline'); */ 
    10     /* $('div.titrePage h2').prepend('<a class="jQuery home" href="index.php" title="Home">Albums</a>'); */ 
     8  $('.thumbnailCategory .description h3 a').each(function() { 
     9    $cat_url = $(this).attr('href'); 
     10    $cat_tree = $('#menubar #mbCategories dd ul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html(); 
     11    if ($cat_tree == null) $cat_tree = ''; 
     12    $(this).parent('h3').next('.text').after('<ul>'+$cat_tree+'</ul>'); 
    1113  });  
     14        $('.thumbnailCategories li').addClass('Juza-cat'); 
     15        $('.description li').removeClass('Juza-cat'); 
    1216  $reltag = $('#menubar #mbTags').html(); 
    1317        if ($reltag == null) $reltag = ''; 
    1418        $reltag = '<div id="relTag">' + $reltag + '</div>'; 
    1519        $('#copyright').before('<div id="jquery_local_img">' + $reltag + '</div>'); 
    16   $temp = $('#content .navigationBar').html(); 
     20  $reltag = $('#content .navigationBar').html(); 
     21        if ($reltag == null) $reltag = ''; 
    1722        $('#content .navigationBar').css('display','none');  
    18         $('div.titrePage h2').after($temp);  
     23        $('div.titrePage h2').after('<div id="Juza-Thumbs"></div>'+$reltag);  
    1924  $('span.wrap2 a img').click(function() { 
    2025    $scr = $(this).attr('src').replace('thumbnail/TN-', ''); 
    2126    $href = $(this).parent('a').attr('href'); 
    2227    $alt = $(this).attr('alt'); 
    23     $(this).parent('a').attr('href', '#content'); 
     28    $(this).parent('a').attr('href', '#Juza-Thumbs'); 
    2429    $temp = $href.substr($href.indexOf('/')+1); 
    2530    $temp = $temp.substr(0,$temp.indexOf('/')); 
    2631    $title = $('#ix-desc .Thumb-'+$temp).attr('title'); 
    27     $('#jquery_local_img').fadeOut("slow").replaceWith('<div id="jquery_local_img"><img usemap="#picturetop" title="'+$title+'" alt="'+$alt+'" src="'+$scr+'"/><map name="picturetop"><area href="#" coords="0,0,1024,300" shape="rect" title="Index"/><area href="'+$href+'" coords="0,301,1024,600" shape="rect" title="'+$title+'"/></map><br/>'+ $title +' - <a href="#content"><em>Index</em></a>' + $reltag + '</div>').fadeIn("slow"); 
     32    $('#jquery_local_img').fadeOut("slow").replaceWith('<div id="jquery_local_img"><img usemap="#picturetop" title="'+$title+'" alt="'+$alt+'" src="'+$scr+'"/><map name="picturetop"><area href="#" coords="0,0,1024,300" shape="rect" title="Index"/><area href="'+$href+'" coords="0,301,1024,600" shape="rect" title="'+$title+'"/></map><br/>'+ $title +' - <a href="#Juza-Thumbs"><em>Index</em></a>' + $reltag + '</div>').fadeIn("slow"); 
    2833  }); 
    2934  $('span.wrap2 a img').hover(function() { },function() { 
    3035    $(this).parent('a').attr('href', $href); 
    3136  }); 
    32  
     37        if ($reltag == '') $('#jquery_local_img').hide(); 
    3338}); 
  • extensions/Juza/theme.css

    r4461 r4474  
    2121 
    2222.content div.titrePage ul.categoryActions { display: none; }  
    23 .content div.thumbnailCategory div.description { height:155px !important; position:relative; width:100%; z-index:10; top:-155px; } 
     23.content div.thumbnailCategory div.description { height:155px !important; position:relative; width:100%; z-index:10; top:-252px; overflow: visible; } 
    2424.bigImg { left:265px; position:relative; top:-160px; width:885px !important; } 
    25 .content div.thumbnailCategory div.description { height:155px; } 
    2625.content ul.thumbnails span, .content ul.thumbnails label, .content div.thumbnailCategory div.illustration { width:135px; } 
    2726.content { margin:0 3em !important; font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10pt; } 
    2827div.illustration { overflow: hidden; } 
    2928div.illustration img { border: 0; margin-left: 0px; } 
    30 .maxIllustration a { max-height: 110px; height: 110px; overflow: hidden; display: block; position:relative; z-index:12; } 
    31 .maxIllustration { height:145px !important; left:20px; margin-bottom:35px; max-height:145px !important; overflow: hidden; max-width:100% !important; position:relative; top:35px; width:100% !important; } 
    32 .content .thumbnailCategory { border-color:#383838; margin-bottom:15px; height:155px; 
    33 max-height:210px; } 
     29.maxIllustration a { max-height: 240px; height: 240px; overflow: hidden; display: block; position:relative; z-index:12; } 
     30.maxIllustration { left:20px; margin-bottom:35px; max-width:100% !important; position:relative; top:30px; width:100% !important; } 
     31.content .thumbnailCategory { border: 0 solid #383838 !important; border-top-width: 0.5px !important; margin-bottom:15px; height:155px; min-height:280px; } 
     32.content div.thumbnailCategory div.description h3 { position:relative; top:10px; } 
     33.content div.thumbnailCategory div.description ul { margin: 10px 5px 5px 30px; } 
    3434 
    3535.content ul.thumbnailCategories li { width:100%; } 
     36.content ul.thumbnailCategories li.Juza-cat { max-height:295px; height:295px; } 
    3637a.home { position: absolute; left: 20px; top: 20px; font-size:9px; } 
    3738.content ul.thumbnails span.wrap1 { background-color: #000 !important; width: 140px; height: 140px; min-width: 140px; min-height: 140px; max-width: 140px; max-height: 140px; margin:0 2px 2px 0; border: 1px solid #444; } 
     
    4142.content ul.thumbnails span.wrap2 { -moz-border-radius: 0; border-radius: 0; } 
    4243.content ul.thumbnails span.wrap2 img.thumbnail { margin:auto; border: 1px solid #111; } 
    43 #jquery_local_img { text-align: center; margin-top: 5px; min-height: 1200px; height: 1200px; } 
     44#jquery_local_img { text-align: center; margin-top: 5px; min-height: 850px; height: 850px; } 
    4445input[type="text"], input[type="password"], input[type="button"], input[type="submit"], input[type="reset"], input[type="file"] { 
    4546  background-color:#D3D3D3 !important; } 
     
    4950#imageHeaderBar .browsePath { color: #6DAA37; } 
    5051#imageToolBar { top:-90px; } 
    51 #menubar, table.infoTable, #imageHeaderBar  h2, 
     52#menubar, table.infoTable, #imageHeaderBar  h2, .menuInfoCat, 
    5253#imageToolBar  .randomButtons img { display: none; } 
    5354#imageToolBar  .randomButtons img[alt="slideshow"] { display: inline; } 
    54  
     55div.description div.text p.Nb_images { border-width: 0; } 
    5556#copyright { margin-top: 200px; } 
    5657#copyright * { color: #383838; } 
  • extensions/Juza/themeconf.inc.php

    r4439 r4474  
    1616    return $arg;'), 
    1717); 
     18global $user; 
     19$user["expand"] = true; /* Forced to assign subcategory links inside each category on index page */ 
    1820add_event_handler('loc_after_page_header', $themeconf['juza-handler']); 
    1921?> 
Note: See TracChangeset for help on using the changeset viewer.