source: extensions/stripped_black_bloc/local_head.tpl @ 18727

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

fix for errors/info msg

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