source: extensions/stripped_black_bloc/local_head.tpl @ 21635

Last change on this file since 21635 was 21516, checked in by flop25, 11 years ago

bug correction
-no custom color on picture page
-the number of total pages was wrong in the navigation bar (will be improved on 2.5.1 piwigo update)

navigation bar for thumbs slightly improved

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