[10851] | 1 | {if ($BODY_ID=='theCategoryPage')} |
---|
[13211] | 2 | {combine_script id='jquery.isotope' load='header' require='jquery' path='themes/stripped_black_bloc/js/isotope.js'} |
---|
[16787] | 3 | {combine_script id='jquery.cookie' load='header' require='jquery' path='themes/stripped_black_bloc/js/jquery.ck.min.js'} |
---|
| 4 | {html_style}{literal} |
---|
[11823] | 5 | #theHeader a, .titrePage a, .footer_login a, .navigationBar a { |
---|
| 6 | color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal}; |
---|
| 7 | } |
---|
[13920] | 8 | .bloc, .gmapsMarkup { |
---|
[11842] | 9 | max-width: {/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px; |
---|
[11699] | 10 | } |
---|
[13211] | 11 | .bloc a{ |
---|
[11699] | 12 | max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px; |
---|
| 13 | } |
---|
[12048] | 14 | .bloc_big { |
---|
| 15 | max-width: {/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width}{/if}{literal}px; |
---|
| 16 | } |
---|
| 17 | .bloc_big a { |
---|
| 18 | max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width+$stripped_black_bloc.column_width}{/if}{literal}px; |
---|
| 19 | } |
---|
[11823] | 20 | .content_block, .bloc_stuff, .two_columns { |
---|
| 21 | width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.column_width*2-10}{/if}{literal}px; |
---|
[11709] | 22 | } |
---|
[11823] | 23 | .stuffs_thumbnails, .stuffs_thumbnails #thumbnails, .one_column { |
---|
| 24 | width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width-10 }{/if}{literal}px; |
---|
[11709] | 25 | } |
---|
[13892] | 26 | .bloc, .bloc_big { |
---|
| 27 | {/literal} |
---|
| 28 | margin-top: {math equation="( x - y - 10)/2" y=$stripped_black_bloc.thumbnail_width x=$stripped_black_bloc.column_width}px; |
---|
| 29 | margin-bottom:{math equation="( x - y - 10)/2" y=$stripped_black_bloc.thumbnail_width x=$stripped_black_bloc.column_width}px; |
---|
| 30 | {literal} |
---|
| 31 | } |
---|
[11871] | 32 | {/literal}{if isset($chronology_calendar)}{literal} |
---|
| 33 | #subcontent { |
---|
| 34 | min-height: inherit; |
---|
| 35 | } |
---|
[16787] | 36 | {/literal}{/if} |
---|
| 37 | {/html_style} |
---|
[11871] | 38 | |
---|
[16787] | 39 | {footer_script load="async"} |
---|
| 40 | {literal} |
---|
| 41 | jQuery(window).bind("rvtsUp", function() { |
---|
| 42 | jQuery('#rvtsUp').remove(); |
---|
| 43 | }); |
---|
| 44 | {/literal} |
---|
| 45 | {/footer_script} |
---|
| 46 | |
---|
| 47 | {html_head} |
---|
| 48 | {literal} |
---|
[10851] | 49 | <script type="text/javascript"> |
---|
[11679] | 50 | |
---|
[11699] | 51 | // MASONRY |
---|
| 52 | |
---|
[10851] | 53 | function tnb_resize() { |
---|
[13211] | 54 | $('#content_cell').isotope({ |
---|
| 55 | masonry: { |
---|
| 56 | columnWidth: {/literal} {if $stripped_black_bloc.column_width}{$stripped_black_bloc.column_width}{/if}{literal} |
---|
| 57 | }, |
---|
[12048] | 58 | itemSelector: '.bloc, .bloc_big, .content_block, .bloc_stuff', |
---|
[11679] | 59 | isAnimated: true |
---|
[10851] | 60 | }); |
---|
| 61 | } |
---|
[16787] | 62 | function FadeSC() { |
---|
| 63 | jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); |
---|
| 64 | jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); |
---|
| 65 | } |
---|
| 66 | jQuery(window).bind("RVTS_loaded", FadeSC); |
---|
[11699] | 67 | |
---|
| 68 | |
---|
[11677] | 69 | jQuery(document).ready(function(jQuery){ |
---|
[16787] | 70 | jQuery('#rvtsUp').remove(); |
---|
[11699] | 71 | |
---|
| 72 | // fade onmouseover |
---|
[11677] | 73 | jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); |
---|
[16787] | 74 | jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); |
---|
| 75 | |
---|
[11699] | 76 | // sidemenu managment |
---|
[11677] | 77 | var sidemenu = jQuery.cookie('side-menu'); |
---|
| 78 | var isdisplayed; |
---|
| 79 | // if cookie says the menu is hiding, keep it hidden! |
---|
[11679] | 80 | {/literal} {if $stripped.hideMenu} {literal} |
---|
| 81 | if (sidemenu == 'showing') { |
---|
[12406] | 82 | jQuery("#content_cell").css({'margin-left' : '20em'}); |
---|
[11679] | 83 | isdisplayed=true; |
---|
| 84 | } |
---|
| 85 | else { |
---|
[12406] | 86 | jQuery("#content_cell").css({'margin-left' : '0'}); |
---|
[11679] | 87 | isdisplayed=false; |
---|
| 88 | } |
---|
| 89 | {/literal} {else} {literal} |
---|
[11677] | 90 | if (sidemenu == 'hiding') { |
---|
[12406] | 91 | jQuery("#content_cell").css({'margin-left' : '0'}); |
---|
[11677] | 92 | isdisplayed=false; |
---|
| 93 | } |
---|
[11679] | 94 | else { |
---|
[12406] | 95 | jQuery("#content_cell").css({'margin-left' : '20em'}); |
---|
[11677] | 96 | isdisplayed=true; |
---|
| 97 | } |
---|
[11679] | 98 | {/literal} {/if} {literal} |
---|
[11677] | 99 | // creates a variable with the contents of the cookie side-menu |
---|
| 100 | jQuery("#menuswitcher").click(function(){ |
---|
| 101 | if (jQuery("#menubar").is(":hidden") || isdisplayed==false ) { |
---|
[12406] | 102 | jQuery("#content_cell").css({'margin-left' : '20em'}); |
---|
[11677] | 103 | isdisplayed=true; |
---|
| 104 | } else { |
---|
[12406] | 105 | jQuery("#content_cell").css({'margin-left' : '0'}); |
---|
[11677] | 106 | isdisplayed=false; |
---|
| 107 | } |
---|
| 108 | }); |
---|
[11679] | 109 | tnb_resize(); |
---|
[10851] | 110 | |
---|
| 111 | }); |
---|
| 112 | </script> |
---|
| 113 | {/literal} |
---|
| 114 | {/html_head} |
---|
| 115 | {/if} |
---|