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