Changeset 11679 for extensions/stripped_black_bloc
- Timestamp:
- Jul 9, 2011, 7:12:39 PM (13 years ago)
- Location:
- extensions/stripped_black_bloc
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/stripped_black_bloc/local_head.tpl
r11677 r11679 3 3 {html_head}{literal} 4 4 <script type="text/javascript"> 5 /** 6 * jQuery Cookie plugin 7 * 8 * Copyright (c) 2010 Klaus Hartl (stilbuero.de) 9 * Dual licensed under the MIT and GPL licenses: 10 * http://www.opensource.org/licenses/mit-license.php 11 * http://www.gnu.org/licenses/gpl.html 12 * 13 */ 14 jQuery.cookie = function (key, value, options) { 15 16 // key and at least value given, set cookie... 17 if (arguments.length > 1 && String(value) !== "[object Object]") { 18 options = jQuery.extend({}, options); 19 20 if (value === null || value === undefined) { 21 options.expires = -1; 22 } 23 24 if (typeof options.expires === 'number') { 25 var days = options.expires, t = options.expires = new Date(); 26 t.setDate(t.getDate() + days); 27 } 28 29 value = String(value); 30 31 return (document.cookie = [ 32 encodeURIComponent(key), '=', 33 options.raw ? value : encodeURIComponent(value), 34 options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE 35 options.path ? '; path=' + options.path : '', 36 options.domain ? '; domain=' + options.domain : '', 37 options.secure ? '; secure' : '' 38 ].join('')); 39 } 40 41 // key and possibly options given, get cookie... 42 options = value || {}; 43 var result, decode = options.raw ? function (s) { return s; } : decodeURIComponent; 44 return (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; 45 }; 5 46 function tnb_resize() { 6 47 $('#subcontent').masonry({ 7 singleMode: true, 8 columnWidth: 200, 9 itemSelector: '.bloc', 10 animate: true 48 columnWidth: 170, 49 itemSelector: '.bloc, .content_block, .bloc_stuff', 50 isAnimated: true 11 51 }); 12 13 52 } 14 53 jQuery(document).ready(function(jQuery){ 15 16 54 jQuery(".bloc a").hover(function() { jQuery(this).fadeTo(500, 1); }, function() { jQuery(this).fadeTo(500, 0.75); }); 17 55 var sidemenu = jQuery.cookie('side-menu'); 18 56 var isdisplayed; 19 57 // if cookie says the menu is hiding, keep it hidden! 58 {/literal} {if $stripped.hideMenu} {literal} 59 if (sidemenu == 'showing') { 60 jQuery("#subcontent").css({'margin-left' : '20em'}); 61 isdisplayed=true; 62 } 63 else { 64 jQuery("#subcontent").css({'margin-left' : '0'}); 65 isdisplayed=false; 66 } 67 {/literal} {else} {literal} 20 68 if (sidemenu == 'hiding') { 21 69 jQuery("#subcontent").css({'margin-left' : '0'}); 22 70 isdisplayed=false; 23 71 } 24 if (sidemenu == 'showing'){72 else { 25 73 jQuery("#subcontent").css({'margin-left' : '20em'}); 26 74 isdisplayed=true; 27 75 } 76 {/literal} {/if} {literal} 28 77 // creates a variable with the contents of the cookie side-menu 29 78 jQuery("#menuswitcher").click(function(){ … … 36 85 } 37 86 }); 87 tnb_resize(); 38 88 39 jQuery('#subcontent').masonry({40 singleMode: true,41 columnWidth: 200,42 itemSelector: '.bloc',43 animate: true44 });45 89 }); 46 90 </script> -
extensions/stripped_black_bloc/template/mainpage_categories.tpl
r11677 r11679 1 1 {foreach from=$category_thumbnails item=cat} 2 <div class="bloc ">2 <div class="bloc album"> 3 3 <a href="{$cat.URL}" style="background: url({$cat.TN_SRC}) no-repeat scroll center center transparent; height: {$cat.TN_HEIGHT}px; width: {$cat.TN_WIDTH}px; opacity: 0.75; max-width:150px;" > 4 4 {$cat.NAME} -
extensions/stripped_black_bloc/template/stuffs_blocks.tpl
r10851 r11679 1 1 {foreach from=$blocks item=block key=key} 2 <div id="stuffs_block_{$block.ID}" class="content bloc {$block.CLASS} {$block.TEMPLATE|replace:'.tpl':''}" {if !empty($block.WIDTH)}style="width: {$block.WIDTH}%;"{/if}>2 <div id="stuffs_block_{$block.ID}" class="content bloc_stuff {$block.CLASS} {$block.TEMPLATE|replace:'.tpl':''}" {if !empty($block.WIDTH)}style="width: {$block.WIDTH}%;"{/if}> 3 3 {if isset($block.TITLE)} 4 4 <div class="titrePage"> -
extensions/stripped_black_bloc/theme.css
r11677 r11679 29 29 */ 30 30 #subcontent { 31 min-height: 4 66px;31 min-height: 490px; 32 32 display:block; 33 33 } … … 39 39 width: 18em; 40 40 } 41 41 .stuffs_thumbnails .bloc { 42 position:relative !important; 43 top:auto !important; 44 left:auto !important; 45 } 46 .stuffs_thumbnails .bloc { 47 display: inline-block !important; 48 } 49 .stuffs_thumbnails { 50 width:400px; 51 } 52 .stuffs_thumbnails #thumbnails { 53 margin:0; 54 } 55 #thePicturePage .stuffs_thumbnails { 56 width:auto; 57 } 42 58 .bloc { 43 59 display: block; … … 45 61 padding: 5px; 46 62 width: 150px; 63 z-index:999; 64 } 65 .content_block { 66 z-index:999; 47 67 } 48 68 .bloc * { … … 50 70 } 51 71 .bloc .title { 52 color: #FFFFFF;53 72 left: 6px; 54 73 max-width: 138px !important; … … 57 76 top: 6px; 58 77 z-index: 1; 59 background-image: url("img/btn.png");60 border-radius: 5px 5px 5px 5px;61 78 cursor: pointer; 62 79 display: block; 63 80 float: left; 64 font-family: Helvetica,Arial,sans-serif;65 font-size: 9px;66 font-weight: bold;67 81 margin-right: 5px; 68 82 padding: 7px 10px 8px; 69 text-align: center;70 text-decoration: none;71 text-transform: uppercase;72 white-space: normal;73 83 } 74 84 .bloc a { 75 border-radius: 5px 5px 5px 5px;76 85 display: block; 77 86 overflow: hidden; … … 80 89 width: 160px; 81 90 } 82 /** color **/ 91 .nav_bulle { 92 font-size: 9px; 93 font-weight: bold; 94 margin-right: 5px; 95 padding: 7px 10px 8px; 96 } 97 #thumb_navigation { 98 display:none 99 } 100 /**************** 101 color backgroung etc 102 ************************/ 83 103 body { 84 104 background-color: #1E1E1E; … … 91 111 text-decoration: none; 92 112 } 113 .bloc .title, .nav_bulle { 114 color: #FFFFFF; 115 background-image: url("img/btn.png"); 116 border-radius: 5px 5px 5px 5px; 117 font-family: Helvetica,Arial,sans-serif; 118 font-size: 9px; 119 font-weight: bold; 120 text-align: center; 121 text-decoration: none; 122 text-transform: uppercase; 123 white-space: normal; 124 125 } 126 .bloc a { 127 border-radius: 5px 5px 5px 5px; 128 } 93 129 #thePicturePage .left_block, #thePicturePage .right_block, #thePicturePage .middle_block, #content { 94 130 background: transparent 95 131 } 96 #theHeader, .titrePage, .titrePage a {132 #theHeader, .titrePage, .titrePage a, .footer_login a, .navigationBar a { 97 133 color: #E6554F; 98 134 } 135 .album .title { 136 color:#F8CDCB; 137 } 138 139 .content_block .additional_info { 140 color:inherit; 141 } -
extensions/stripped_black_bloc/themeconf.inc.php
r11677 r11679 1 1 <?php 2 2 /* 3 Theme Name: stripped_black_bloc3 Theme Name: Stripped & Columns 4 4 Version: 0 5 5 Description: stripped_black_bloc
Note: See TracChangeset
for help on using the changeset viewer.