Changeset 25999


Ignore:
Timestamp:
Dec 17, 2013, 11:33:32 PM (10 years ago)
Author:
Miklfe
Message:
 
Location:
extensions/Full_Background
Files:
4 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/Full_Background/js/full_BG.js

    r21903 r25999  
    1 $(document).ready(function(){
    2                         (function($) {
     1(function($) {
     2        $(document).ready(function(){
    33                                $.fn.preload = function(options) {
    44                                        var opts        = $.extend({}, $.fn.preload.defaults, options);
     
    1717                                        onComplete      : function(){return false;}
    1818                                };
    19                         })(jQuery);
    2019       
    2120       
     
    6968                                       
    7069                                        //expand and fit the image to the screen
    71                                         $('#tf_zoom').live('click',
     70                                        $(document).on('click', '#tf_zoom',
    7271                                                function(){
    7372                                                if($tf_bg_img.is(':animated'))
     
    120119                                                );
    121120                                                               
    122                                         $('#tf_fullscreen').live('click',
     121                                        $(document).on('click', '#tf_fullscreen',
    123122                                                function(){
    124123                                                if($tf_bg_img.is(':animated'))
     
    373372                                        }
    374373                        });
    375 });
     374        });
     375})(jQuery);
  • extensions/Full_Background/js/menu.js

    r19549 r25999  
    1 /*
    2  * jQuery Mega Drop Down Menu script by Soh Tanaka
    3  * http://www.sohtanaka.com/web-design/mega-drop-downs-w-css-jquery/
    4  *
    5  */
    61$(document).ready(function(){
     2        $('.mcol').columnize({ columns: 4});
     3        $.each($('.mcol li'), function() {
     4                var $li = $(this),
     5                        $test=$li.find('a');
     6                if($test.length == 0){
     7                        $li.remove()
     8                }
     9        })
     10       
     11        $('li.liSub:last-child dt').addClass('dd_wrapper');
     12        $('li.liSub:last-child dd').addClass('sub');
     13        $('ul#topnav li .sub').hide();
    714
    8         $("#page_content #nav_wrapper").css("display", "none");
     15        function megaHoverOver(){
     16                $(this).find('.sub').stop().slideDown(200);
     17        };
     18       
     19        function megaHoverOut(){
     20         $(this).find('.sub').stop().slideUp(200);
     21        };
    922
    10         $("li.liSub:last-child dt").addClass('dd_wrapper');
    11         $("li.liSub:last-child dd").addClass('sub');
     23        var $configSub  = {
     24                                                over    : megaHoverOver,   
     25                                                out             : megaHoverOut     
     26                                                };
     27
     28        $('ul#topnav li').hoverIntent($configSub);
     29        $('ul#topnav .sub ul li:last-child a').css('border', 'none');
     30
     31       
     32        $('.cl_wrapper').hover(function(){
     33                if($(this).next('div').is(':hidden')){
     34                        $(this).addClass('activate').next('div').slideDown(200).attr(':visible');
     35                }
     36        });
     37               
     38        $('.cl_wrapper').click(function(){
     39                if($(this).next('div').is(':visible')){
     40                        $(this).next('div').slideUp(200, function(){
     41                                $(this).hide()
     42                        });
     43                        $(this).removeClass('activate').next('div').attr(':hidden');
     44                }
     45        });
     46       
     47        $('.cc_wrapper').click(function(){
     48                if($(this).next('div').is(':visible')){
     49                        $(this).removeClass('activate').next('div').slideUp(200, function(){
     50                                $(this).hide().attr(':hidden');
     51                        });
     52                } else {
     53                        $(this).next('div').slideDown(200).attr(':visible');
     54                }
     55        });
     56
     57        $('.close').click(function(){
     58                $(this).parent().slideUp(200, function(){
     59                                $(this).hide().attr(':hidden')
     60                        }).prev().removeClass('activate');
     61        });
     62               
     63});
     64       
    1265
    1366
    1467
    15         function megaHoverOver(){
    16                 $(this).find(".sub").stop().fadeTo('slow', 1).show();
    17                        
    18         }
    19        
    20         function megaHoverOut(){
    21          $(this).find(".sub").stop().fadeTo('slow', 0, function() {
    22                   $(this).hide();
    23           });
    24         }
    2568
    2669
    27         var configSub = {
    28                  sensitivity: 2,                // number = sensitivity threshold (must be 1 or higher)   
    29                  interval: 0,                   // number = milliseconds for onMouseOver polling interval   
    30                  over: megaHoverOver,   // function = onMouseOver callback (REQUIRED)   
    31                  timeout: 0,                    // number = milliseconds delay before onMouseOut   
    32                  out: megaHoverOut              // function = onMouseOut callback (REQUIRED)   
    33         };
    34 
    35         $("ul#topnav li .sub").css({'opacity':'0'});
    36         $("ul#topnav li").hoverIntent(configSub);
    37        
    38        
    39         // Delete the border for the last li of the submenu
    40         $("ul#topnav .sub ul li:last-child a").css("border", "none");
    41 
    42         /*other menubar script*/
    43         //open form login menu         
    44        
    45 
    46        
    47         $(".cl_wrapper").next("div").hide();
    48 
    49        
    50         $(".cl_wrapper").hover(function(){
    51        
    52                 if($(this).next("div").is(":hidden")){
    53                         $(this).next("div").fadeTo('fast', 1);
    54                         $(this).addClass('activate');
    55                         $(this).next("div").attr(":visible")
    56                 }
    57         });
    58                
    59        
    60         $(".cl_wrapper").click(function(){
    61                 if($(this).next("div").is(":visible")){
    62                 $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
    63                 $(this).removeClass('activate');
    64                 $(this).next("div").attr(":hidden")
    65                 }
    66         });
    67 
    68         $(".close").click(function(){
    69                 if($("#loger").is(":visible")){
    70                         $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
    71                         $(".cl_wrapper").removeClass('activate');
    72                         $("#loger").attr(":hidden");
    73                 }
    74         });
    75        
    76         $(".cc_wrapper").click(function(){
    77                 if($(this).next("div").is(":visible")){
    78                         $(this).next("div").fadeTo('slow', 0, function(){$(this).hide()});
    79                         $(this).removeClass('activate');
    80                         $(this).next("div").attr(":hidden")
    81                 }
    82         });
    83        
    84         $(".cc_wrapper").click(function(){
    85                 if($(this).next("div").is(":hidden")){
    86                         $(this).next("div").fadeTo('fast', 1);
    87                         $(this).addClass('activate');
    88                         $(this).next("div").attr(":visible")
    89                 }
    90         });
    91        
    92                 $(".close").click(function(){
    93                 if($("#loger").is(":visible")){
    94                         $("#loger").fadeTo('fast', 0, function(){$(this).hide()});
    95                         $(".cc_wrapper").removeClass('activate');
    96                         $("#loger").attr(":hidden");
    97                 }
    98                
    99         });
    100        
    101        
    102        
    10370
    10471
    105         // make column menubar_categorie
    106         $('.mcol').makeacolumnlists({cols:4, colWidth:155, equalHeight: true, startN: 1});
    107 });
  • extensions/Full_Background/local_head.tpl

    r21903 r25999  
    11{combine_script id='mousewheel' load='footer' require='jquery' path='themes/Full_Background/js/minified/jquery.mousewheel.min.js'}
    2 {combine_script id='flip' load='footer' require='jquery' path='themes/Full_Background/js/minified/jquery.flip.min.js'}
    3 {combine_script id='fullbg' load='footer' require='jquery' path='themes/Full_Background/js/minified/full_BG.min.js'}
     2{combine_script id='flip' load='footer' require='jquery' path='themes/Full_Background/js/jquery.flip.min.js'}
     3{combine_script id='fullbg' load='footer' require='jquery' path='themes/Full_Background/js/full_BG.js'}
    44
    5 {combine_script id='lytebox' load='header' require='jquery' path='themes/Full_Background/js/minified/lytebox.min.js'}
    6 {combine_script id='menu' load='header'  path='themes/Full_Background/js/minified/menu.min.js'}
    7 {combine_script id='hoverIntent' load='header' require='jquery' path='themes/Full_Background/js/minified/jquery.hoverIntent.min.js'}
    8 {combine_script id='columnizer' load='header' require='jquery' path='themes/Full_Background/js/minified/columnizer.min.js'}
    9 {combine_script id='fullscreen' load='header' require='jquery' path='themes/Full_Background/js/minified/jquery.fullscreen.min.js'}
     5{combine_script id='lytebox' load='header' require='jquery' path='themes/Full_Background/js/lytebox.js'}
     6{combine_script id='menu' load='header'  path='themes/Full_Background/js/menu.js'}
     7{combine_script id='hoverIntent' load='header' require='jquery' path='themes/Full_Background/js/jquery.hoverIntent.min.js'}
     8{combine_script id='columnizer' load='header' require='jquery' path='themes/Full_Background/js/jquery.columnizer.js'}
     9{combine_script id='fullscreen' load='header' require='jquery' path='themes/Full_Background/js/jquery.fullscreen.js'}
    1010
    1111<link href="{$ROOT_URL}themes/Full_Background/theme_max-width1280.css" type="text/css" rel="stylesheet" media="screen and (max-width:1280px)">
  • extensions/Full_Background/template/menubar_categories.tpl

    r19492 r25999  
    1         <span class="dd_wrapper">{'Albums'|@translate}</span>
     1<span class="dd_wrapper">{'Albums'|@translate}</span>
    22       
    3                 <div class="sub" style="width:700px">
    4                 {assign var='ref_level' value=0}
    5                         <div id="menu_cat_act">
    6                                 <div id="nbImg">
    7                         <p class="totalImages">{$pwg->l10n_dec('%d image', '%d images', $block->data.NB_PICTURE)}</p>
    8                                 </div>
    9                                 <div id="filter">
    10                                         {if isset($U_START_FILTER)}
    11                                                 <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow">
    12                                                 <span class="pwg-icon pwg-icon-filter"> </span>
    13                                                 </a>
    14                                         {/if}
    15                                         {if isset($U_STOP_FILTER)}
    16                                         <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}"><span
    17                                         class="pwg-icon pwg-icon-filter-del"> </span></a>
    18                                         {/if}
    19                                 </div>
    20 
    21                         </div>
     3<div class="sub" style="width:700px">
     4        <div id="menu_cat_act">
     5                <div id="nbImg">
     6                        <p class="totalImages">{$block->data.NB_PICTURE|@translate_dec:'%d photo':'%d photos'}</p>
     7                </div>
     8                <div id="filter">
     9                        {if isset($U_START_FILTER)}
     10                        <a href="{$U_START_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'display only recently posted photos'|@translate}" rel="nofollow">
     11                                <span class="pwg-icon pwg-icon-filter"> </span>
     12                        </a>
     13                        {/if}
     14                       
     15                        {if isset($U_STOP_FILTER)}
     16                                <a href="{$U_STOP_FILTER}" class="pwg-state-default pwg-button menubarFilter" title="{'return to the display of all photos'|@translate}">
     17                                <span class="pwg-icon pwg-icon-filter-del"> </span>
     18                                </a>
     19                        {/if}
     20                </div>
     21        </div>
     22        <div class="mcol">
     23        {assign var='ref_level' value=0}       
     24        {foreach from=$block->data.MENU_CATEGORIES item=cat}
     25                {if $cat.LEVEL > $ref_level}
     26                        <ul>
     27                {else}
     28                        </li>
     29                        {'</ul></li>'|@str_repeat:($ref_level-$cat.LEVEL)}
     30                {/if}
     31                        <li {if $cat.SELECTED}class="level{$cat.LEVEL} dontsplit selected"{/if}class="level{$cat.LEVEL} dontsplit">
     32                                <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}</a>
     33                                {if $cat.count_images > 0}
     34                                        <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
     35                                {/if}
    2236                               
    23                                
    24                                 {foreach from=$block->data.MENU_CATEGORIES item=cat}
    25                                 {if $cat.LEVEL > $ref_level}
    26                                 <ul class="mcol">
    27                                 {else}
    28 
    29                                                 </li>
    30                                                         {'</ul></li>'|@str_repeat:$ref_level-$cat.LEVEL}
    31                                                   {/if}
    32                                                    <li {if $cat.SELECTED}class="selected"{/if}class="level{$cat.LEVEL}">
    33                                                    <a href="{$cat.URL}" {if $cat.IS_UPPERCAT}rel="up"{/if} title="{$cat.TITLE}" >{$cat.NAME}   [{$cat.count_images}] </a>
    34                                                   {assign var='ref_level' value=$cat.LEVEL}
    35                                                 {/foreach}
    36                                         {'</li></ul>'|@str_repeat:$ref_level}   
    37 
    38                                                 {if isset($block->data.U_UPLOAD)}
    39                                                
    40                                         <ul>
    41                                                
    42                                                         <li>
    43                                                                 <a href="{$block->data.U_UPLOAD}">{'Upload a picture'|@translate}</a>
    44                                                         </li>
    45 
    46                                         </ul>
    47                                                
    48                                         {/if}
    49                
    50 
    51                 </div>
     37                                {if !empty($cat.icon_ts)}
     38                                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)">
     39                                {/if}
     40                {assign var='ref_level' value=$cat.LEVEL}
     41        {/foreach}
     42        {'</li></ul>'|@str_repeat:$ref_level}   
     43        </div>
     44</div>
  • extensions/Full_Background/template/picture.tpl

    r19549 r25999  
    281281                        <form method="post" action="{$comment_add.F_ACTION}" id="addComment">
    282282                                {if $comment_add.SHOW_AUTHOR}
    283                                         <p><label for="author">{'Author'|@translate} :</label></p>
     283                                        <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p>
    284284                                        <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p>
    285                                         <p><label for="contentid">{'Comment'|@translate} :</label></p>
    286285                                {/if}
     286                                {if $comment_add.SHOW_EMAIL}
     287                                        <p><label for="email">{'Email'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p>
     288                                        <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p>
     289                                {/if}
     290                                <p><label for="website_url">{'Website'|@translate} :</label></p>
     291                                <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p>
     292                                <p><label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label></p>
    287293                                <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p>
    288294                                <p><input type="hidden" name="key" value="{$comment_add.KEY}">
     
    290296                        </form>
    291297                </div>
    292                 {/if}
     298                {/if}   
    293299                {if isset($comments)}
    294300                <div id="pictureCommentList">
  • extensions/Full_Background/theme.css

    r20563 r25999  
    6767#fullscreen{position:absolute;left:20px}
    6868#copyright{position:absolute;right:20px}
     69
    6970/*======================================================Menu======================================================*/
    7071#nav_wrapper{width:100%;margin:auto;z-index:1000;left:0;background:0% 0% rgba(0, 0, 0, 0.8);height:40px;border-bottom:1px solid #3F3F3F;min-width:1000px;position:fixed}
     
    9899#nbImg{height:30px;float:right;line-height:10px}
    99100ul#topnav li .sub ul,ul#topnav #loger ul{list-style:none outside none;margin:0 5px 0 8px;padding:0}
    100 ul#topnav .sub ul li,ul#topnav #loger ul li,ul#topnav .sub #menuTagCloud div{width:95%;color:#757575;background:none repeat scroll 0 0 transparent;font-size:10px;margin-bottom:2px;border-radius:10px 10px 10px 10px}
     101ul#topnav .sub ul li,ul#topnav #loger ul li,ul#topnav .sub #menuTagCloud div{width:95%;color:#757575;background:none repeat scroll 0 0 transparent;font-size:10px;margin-bottom:2px;border-radius:10px 10px 10px 10px;border:1px solid}
    101102ul#topnav li .sub, ul#topnav li #loger{border:1px solid #3f3f3f;border-radius:0;box-shadow:5px 5px 20px #000;background: none repeat scroll 0% 0% rgba(0, 0, 0, 0.8);margin-top:10px}
    102 ul#topnav .sub ul li.selected{text-decoration:none;border:none;border-radius:10px 10px 10px 10px}
     103ul#topnav .sub ul li.selected{text-decoration:none;border:1px solid ;border-radius:10px 10px 10px 10px}
    103104ul#topnav .sub ul li.selected a,ul#topnav .sub ul li.selected a:hover{color:#FF8A00;text-decoration:none;border:none}
    104105ul#topnav .sub ul li.selected a{background:url(images/menu/navlist_arrow_select.png) no-repeat 0 5px}
    105106ul#topnav .sub ul .level1 li,ul#topnav .sub ul .level1 li .selected{border:medium none;background-image:none}
    106 ul#topnav .sub ul li a,ul#topnav #loger ul li a{border-radius:0;margin-top: 5px;color: #FFF;float:none;text-indent:0;height:auto;margin:0 8px;display:block;text-decoration:none;font-size:1.1em;text-shadow:none;text-transform:none;line-height:17px;padding:0 0 0 12px}
     107ul#topnav .sub ul li a,ul#topnav #loger ul li a{border-radius:0;margin-top: 5px;color: #FFF;float:none;text-indent:0;height:auto;margin:0 8px;display:inline;text-decoration:none;font-size:1.1em;text-shadow:none;text-transform:none;line-height:17px;padding:0 0 0 8px;}
     108#mbCategories IMG{margin-bottom:8px}
    107109ul#topnav #loger ul li a:hover{color:#ff8a00}
    108110ul#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;text-decoration:none}
  • extensions/Full_Background/themeconf.inc.php

    r19492 r25999  
    22/*
    33Theme Name: Full_Background
    4 Version: auto
     4Version: 2.3
    55Description: theme Full_Background pour Piwigo.
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=649
     
    2626                $user['nb_image_page']=999;
    2727                $page['nb_image_page']=999;
     28                $conf['nb_categories_page']=999;
    2829        }
    2930}
Note: See TracChangeset for help on using the changeset viewer.