source: extensions/stripped_black_bloc/local_head.tpl @ 17911

Last change on this file since 17911 was 17863, checked in by flop25, 12 years ago

small fix for album : if "no big thumbnails" is selected, generate big thumbnails only for panoramas
less margin for the menu

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