Changeset 25981


Ignore:
Timestamp:
Dec 17, 2013, 4:51:31 PM (7 years ago)
Author:
Miklfe
Message:
 
Location:
extensions/Wood
Files:
5 added
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/Wood/local_head.tpl

    r18813 r25981  
    1         <!--[if lt IE 8]>
    2                 <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/elegant/fix-ie7.css">
    3         <![endif]-->
    4        
    5 {combine_script id='jquery.masonry.min' require='jquery' path='themes/Float/js/masonry.min.js' load='footer'}
     1{combine_script id='jquery.masonry.min' require='jquery' path='themes/Float/js/masonry.js' load='footer'}
  • extensions/Wood/template/mainpage_categories.tpl

    r18813 r25981  
     1{define_derivative name='derivative_params' type='xsmall'}
    12{html_style}
    2 
    33{if $derivative_params->max_width() > 600}
    44.thumbLegend {ldelim}font-size: 130%}
     
    1414<div class="thumbContent">
    1515
    16 <div id="container" >
     16<div id="container">
    1717
    1818{foreach from=$category_thumbnails item=cat name=cat_loop}
    19         <div class="box photo colMainpage">
    20         <li class="{if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
     19        <div class="box {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}">
    2120                <div class="thumbnailCategory">
    2221                        <div class="illustration">
     
    4443                        </div>
    4544                </div>
    46         </li>
    4745        </div>
    4846{/foreach}
     
    5149</div>
    5250{footer_script require='jquery'}{literal}
    53                         window.onload = function() {
    54                           var wall1 = new Masonry( document.getElementById('container'), {
    55                                 gutterWidth: 10,
    56                                 isFitWidth: true,
    57                           });
    58                                 var wall2 = new Masonry( document.getElementById('containerThumb'), {
    59                                 gutterWidth: 10,
    60                                 isFitWidth: true,
    61                           });
     51  $(function(){
    6252
    63                         };
     53    var $container = $('#container');
     54 
     55    $container.imagesLoaded( function(){
     56      $container.masonry({
     57        itemSelector : '.box',
     58                isFitWidth: true
     59      });
     60    });
     61 
     62  });
    6463{/literal}{/footer_script}
    6564</div>
  • extensions/Wood/template/thumbnails.tpl

    r21060 r25981  
     1{define_derivative name='derivative_params' type='xsmall'}
    12{if !empty($thumbnails)}{strip}
    23
     
    4142
    4243<div class="thumbContent">
    43 <div id="containerThumb" class="clearfix">
     44<div id="containerThumb">
    4445
    4546{foreach from=$thumbnails item=thumbnail}
     
    9091</div>         
    9192{footer_script require='jquery'}{literal}
    92                         window.onload = function() {
    93                           var wall1 = new Masonry( document.getElementById('container'), {
    94                                 gutterWidth: 10,
    95                                 isFitWidth: true
    96                           });
    97                                 var wall2 = new Masonry( document.getElementById('containerThumb'), {
    98                                 gutterWidth: 10,
    99                                 isFitWidth: true
    100                           });
     93  $(function(){
    10194
    102                         };
     95    var $container = $('#containerThumb');
     96 
     97    $container.imagesLoaded( function(){
     98      $container.masonry({
     99        itemSelector : '.box',
     100                isFitWidth: true
     101      });
     102    });
     103 
     104  });
    103105{/literal}{/footer_script}
    104106</div>
  • extensions/Wood/theme.css

    r21060 r25981  
    11BODY{background:url("images/background/wood_pattern.jpg") fixed repeat;color:#FF8a00}
    2 A,INPUT.rateButton {color:#6F6F6F}
     2A,INPUT.rateButton {color:#373737}
    33H2{background-image:none;padding:8px 0 0 10px}
    44INPUT[type=submit],INPUT[type=reset]{cursor:pointer;background:-moz-linear-gradient(center top , #555555, #2C2C2C) repeat scroll 0% 0% transparent;color:#ff8a00;border-radius:8px 8px 8px 8px;text-shadow:none;box-shadow:none;border:none}
     
    1313#Header{margin-bottom:50px;background:none}
    1414#header_bgDef{background:none;width:20%;float:left}
    15 #theHeader{text-align:left;padding-top:40px;font-size:2.1em;position:fixed;width:20%;right:auto;padding-left:5px}
    16 #theHeader h1{text-align:left;color:rgba(0, 0, 0, 0.3);font-size:2.6em;margin-top:0px;margin-bottom:0}
     15#theHeader{text-align:left;padding-top:40px;font-size:1.8em;position:fixed;width:18%;right:auto;padding-left:5px}
     16#theHeader h1{text-align:left;color:rgba(0, 0, 0, 0.3);font-size:2.3em;margin-top:0px;margin-bottom:0}
    1717#headertransi{background:none;height:0}
    1818#headertransiH{background-image:none}
     
    5353#menubar{background:#000;height:35px}
    5454.dd_wrapper,.cl_wrapper,.cc_wrapper,#menubar dt,#menubar dt a{line-height:35px}
    55 .dd_wrapper:hover,.cl_wrapper:hover,.cc_wrapper:hover,.activate,#menubar dt a:hover,#menubar dt:hover{z-index:100;height:29px;background:#4f4f4f;color:#ff8a00;padding:0 16px 6px;text-shadow:none}
    56 #menubar dt a,#menubar dt a:hover{padding:0 0}
     55.dd_wrapper:hover,.cl_wrapper:hover,.cc_wrapper:hover,.activate,#menubar dt:hover,#menubar dt a:hover{z-index:100;height:29px;background:#4f4f4f;color:#c2c2c2;padding:0 16px 6px;text-shadow:none}
     56#menubar dt a:hover{z-index:100;height:29px;background:#4f4f4f;color:#c2c2c2;padding:0 0;text-shadow:none}
    5757span#menu_start{background:none}
    5858span#menu_start a{background:url(images/menu/home_w.png) no-repeat left top}
    59 ul#topnav #loger ul li a:hover,ul#topnav .sub ul li a:hover,ul#topnav .sub #menuTagCloud div a:hover,ul#topnav .liSub dt a:hover{color:#ff8a00}
     59ul#topnav #loger ul li a:hover,ul#topnav .sub ul li a:hover,ul#topnav .sub #menuTagCloud div a:hover,ul#topnav .liSub dt a:hover{color:#c2c2c2}
    6060#topnav .liSub{background:none}
    61 #topnav .sub, #topnav #loger{top:35px;border-radius:0;box-shadow:5px 5px 20px #000;background:rgba(0, 0, 0, 0.8)}
    62 ul#topnav .sub ul li,ul#topnav #loger ul li,ul#topnav .sub #menuTagCloud div{border:none}
    63 ul#topnav .sub ul li a,ul#topnav #loger ul li a{background:none}
    64 ul#topnav .sub ul li.selected a{background:url(images/menu/navlist_arrow_select.png) no-repeat 0 5px}
    65 ul#topnav .sub ul li a:hover,ul#topnav .sub #menuTagCloud div a:hover{color:#ff8a00;background:url(images/menu/navlist_arrow_hover.png) no-repeat 0 5px}
    66 .sub p{color:#ff8a00}
     61ul#topnav li .sub, ul#topnav li #loger{top:35px;border-radius:0;box-shadow:5px 5px 20px #000;background:rgba(0, 0, 0, 0.95)}
     62ul#topnav .sub ul li,ul#topnav #loger ul li,ul#topnav .sub #menuTagCloud div{border:1px solid #2c2c2c}
     63ul#topnav .sub ul li a,ul#topnav #loger ul li a{background:none;font-size:1.5em}
     64ul#topnav .sub ul li a:hover,ul#topnav .sub #menuTagCloud div a:hover{color:#c2c2c2}
     65.sub p{color:#c2c2c2}
    6766#quicksearch input[type=text]{background:#3F3F3F}
    6867#quicksearch input[type=submit]{background:url(images/menu/search.png) no-repeat}
    69 #log{color:#ff8a00}
     68#log{color:#c2c2c2}
    7069#log INPUT[type=password],#log INPUT[type="text"]{background:#fff}
    7170#log INPUT[type=text]:hover{background-position:left bottom}
    72 #go INPUT[type=submit]{color:transparent;border:none;height:32px;width:64px;min-width:inherit;background:url(images/menu/go.png) no-repeat left top;margin-left:65px;margin-top:20px;text-shadow:none}
    73 #go INPUT[type="submit"]{background:-moz-linear-gradient(center top , #555555, #2C2C2C);color:#ff8a00;width:auto}
    74 #go INPUT[type="submit"]:hover{color:#ff8a00;background:-moz-linear-gradient(center top , #5f5f5f, #2C2C2C)}
    75 #go INPUT[type=submit]:active{color:#ff8a00;background:-moz-linear-gradient(center top , #555555, #2C2C2C);box-shadow:1px 1px 1px #000 inset,0px 1px 0px rgba(255,255,255,0.4)}
     71#go INPUT[type=submit]{color:transparent;border:none;height:32px;width:64px;min-width:inherit;margin-left:65px;margin-top:20px;text-shadow:none}
     72#go INPUT[type="submit"]{background:-moz-linear-gradient(center top , #555555, #2C2C2C);color:#c2c2c2;width:auto}
     73#go INPUT[type="submit"]:hover{color:#c2c2c2;background:-moz-linear-gradient(center top , #5f5f5f, #2C2C2C)}
     74#go INPUT[type=submit]:active{color:#c2c2c2;background:-moz-linear-gradient(center top , #555555, #2C2C2C);box-shadow:1px 1px 1px #000 inset,0px 1px 0px rgba(255,255,255,0.4)}
    7675
    7776/*======================================================Panel======================================================*/
     
    8382.box li{list-style: none outside none}
    8483.box img{display: block;margin-left:auto;margin-right:auto}
     84.colMainpage{width:340px}
     85.colMainpage img{width:340px}
    8586.col img{width:100%}
    8687.clearfix:before,.clearfix:after{content:"";display:table}
  • extensions/Wood/themeconf.inc.php

    r19500 r25981  
    22/*
    33Theme Name: Wood
    4 Version: auto
     4Version: 1.0.0
    55Description: Piwigo theme.
    6 Theme URI: http://piwigo.org/ext/extension_view.php?eid=641
    7 Author:Miklfe [piwitheme.fr]
    8 Author URI: http://piwitheme.fr
     6Theme URI:
     7Author: Miklfe
     8Author URI: http://piwigo.org
    99*/
    1010$themeconf = array(
     
    1616
    1717add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page');
    18 if(!function_exists('modify_nb_thumbnail_page'))
     18function modify_nb_thumbnail_page()
    1919{
    20         function modify_nb_thumbnail_page()
    21         {
    22         global $user, $page;
    23                 $user['nb_image_page']=999;
    24                 $page['nb_image_page']=999;
    25         }
     20global $user, $page;
     21        $user['nb_image_page']=999;
     22        $page['nb_image_page']=999;
     23
    2624}
    2725
Note: See TracChangeset for help on using the changeset viewer.