source: extensions/stripped_black_bloc/local_head.tpl @ 16790

Last change on this file since 16790 was 16790, checked in by flop25, 9 years ago

better display of the calendar page

File size: 4.0 KB
Line 
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{html_style}{literal}
5#theHeader a, .titrePage a, .footer_login a, .navigationBar a, #calendar_block A  {
6        color: {/literal}{if $stripped_black_bloc.color_main}#{$stripped_black_bloc.color_main}{/if}{literal};
7}
8.bloc, .gmapsMarkup {
9        max-width: {/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
10}
11.bloc a{
12        max-width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.thumbnail_width}{/if}{literal}px;
13}
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}
20.content_block, .bloc_stuff, .two_columns {
21        width:{/literal}{if $stripped_black_bloc.thumbnail_width}{$stripped_black_bloc.column_width*2-20}{/if}{literal}px;
22}
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;
25}
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}
32{/literal}{if isset($chronology_calendar)}{literal}
33#subcontent {
34        min-height: inherit;
35}
36{/literal}{/if}
37{/html_style}
38
39{footer_script load="async"}
40{literal}
41jQuery(window).bind("rvtsUp", function() {
42jQuery('#rvtsUp').remove();
43});
44{/literal}
45{/footer_script}
46
47{html_head}
48{literal}
49<script type="text/javascript">
50
51    // MASONRY
52
53function tnb_resize() {
54        $('#content_cell').isotope({
55         masonry: {
56                columnWidth: {/literal} {if $stripped_black_bloc.column_width}{$stripped_black_bloc.column_width}{/if}{literal}
57 },
58                itemSelector: '.bloc, .bloc_big, .content_block, .bloc_stuff',
59                isAnimated: true
60        });
61}
62function FadeSC() {
63jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
64jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
65}
66jQuery(window).bind("RVTS_loaded", FadeSC);
67
68
69jQuery(document).ready(function(jQuery){
70  jQuery('#rvtsUp').remove();
71
72        // fade onmouseover
73        jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
74  jQuery(".bloc_big a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75);  });
75 
76        // sidemenu managment
77        var sidemenu = jQuery.cookie('side-menu');
78        var isdisplayed;
79                // if cookie says the menu is hiding, keep it hidden!
80        {/literal} {if $stripped.hideMenu} {literal}
81        if (sidemenu == 'showing') {
82                jQuery("#content_cell").css({'margin-left' : '20em'});
83                isdisplayed=true;
84        }
85        else {
86                jQuery("#content_cell").css({'margin-left' : '0'});
87                isdisplayed=false;
88        }
89        {/literal} {else} {literal}
90        if (sidemenu == 'hiding') {
91                jQuery("#content_cell").css({'margin-left' : '0'});
92                isdisplayed=false;
93        }
94        else {
95                jQuery("#content_cell").css({'margin-left' : '20em'});
96                isdisplayed=true;
97        }
98        {/literal} {/if} {literal}
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 ) {
102                        jQuery("#content_cell").css({'margin-left' : '20em'});
103                        isdisplayed=true;
104                } else {
105                        jQuery("#content_cell").css({'margin-left' : '0'});
106                        isdisplayed=false;
107                }
108        });
109        tnb_resize();
110
111});
112  </script>
113{/literal}
114{/html_head}
115{/if}
Note: See TracBrowser for help on using the repository browser.