Changeset 11677


Ignore:
Timestamp:
Jul 9, 2011, 4:41:55 PM (13 years ago)
Author:
flop25
Message:

masonry works for thumbnails album and thumbnails pics
all max-width cancelled
menu switch works

Location:
extensions/stripped_black_bloc
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped_black_bloc/local_head.tpl

    r10851 r11677  
    1212
    1313}
     14jQuery(document).ready(function(jQuery){
     15       
     16        jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
     17        var sidemenu = jQuery.cookie('side-menu');
     18        var isdisplayed;
     19                // if cookie says the menu is hiding, keep it hidden!
     20        if (sidemenu == 'hiding') {
     21                jQuery("#subcontent").css({'margin-left' : '0'});
     22                isdisplayed=false;
     23        }
     24        if (sidemenu == 'showing') {
     25                jQuery("#subcontent").css({'margin-left' : '20em'});
     26                isdisplayed=true;
     27        }
     28        // creates a variable with the contents of the cookie side-menu
     29        jQuery("#menuswitcher").click(function(){
     30                if (jQuery("#menubar").is(":hidden") || isdisplayed==false ) {
     31                        jQuery("#subcontent").css({'margin-left' : '20em'});
     32                        isdisplayed=true;
     33                } else {
     34                        jQuery("#subcontent").css({'margin-left' : '0'});
     35                        isdisplayed=false;
     36                }
     37        });
    1438
    15 jQuery(document).ready(function(){
    16         $('#subcontent').masonry({
     39        jQuery('#subcontent').masonry({
    1740                  singleMode: true,
    1841                columnWidth: 200,
     
    2043                animate: true
    2144        });
    22        
    23 $(".bloc a").hover(function() { $(this).fadeTo(500, 1); }, function() { $(this).fadeTo(500, 0.75);  });
    24 });
    25         jQuery("#menuswitcher").click(function(){
    26 
    2745});
    2846  </script>
  • extensions/stripped_black_bloc/theme.css

    r11630 r11677  
    11/**/
    2 #theCategoryPage #content, #content, #subcontent, #the_page, #thumbnails_block1 {
     2#theCategoryPage #content, #content, #subcontent, #the_page, #thumbnails_block1, #thePicturePage #content {
    33    max-width: none;
    44}
     
    2929*/
    3030 #subcontent {
    31     margin-left: 20em;
    3231    min-height: 466px;
    33                 display:inherit;
     32                display:block;
    3433}
    3534#menubar {
  • extensions/stripped_black_bloc/themeconf.inc.php

    r11498 r11677  
    2020  'local_head' => 'local_head.tpl',
    2121);
     22add_event_handler('loc_end_index_category_thumbnails', 'MY');
    2223add_event_handler('loc_end_index_thumbnails', 'MY');
    2324function MY($tpl_thumbnails_var)
Note: See TracChangeset for help on using the changeset viewer.