Changeset 28523


Ignore:
Timestamp:
May 21, 2014, 6:39:06 PM (10 years ago)
Author:
Miklfe
Message:

Bug corrigé: compatibilité avec contactform

Location:
extensions/Full_Background
Files:
5 edited

Legend:

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

    r25999 r28523  
    168168                                                if($tf_bg_img.is(':animated'))
    169169                                                        return false;
    170                                                         scroll('tb');
     170                                                        scroll('bt');
    171171                                        });
    172172                                       
     
    175175                                                if($tf_bg_img.is(':animated'))
    176176                                                return false;
    177                                                 scroll('bt');
     177                                                scroll('tb');
    178178                                        });
    179179                                       
     
    197197                                                switch(e.which){
    198198                                                        case 38:       
     199                                                                scroll('tb');
     200                                                                break; 
     201
     202                                                        case 40:       
    199203                                                                scroll('bt');
    200                                                                 break; 
    201 
    202                                                         case 40:       
    203                                                                 scroll('tb');
    204204                                                                break;
    205205                                                }
     
    215215                                        //if dir is "tb" (top -> bottom) increment current,
    216216                                        //else if "bt" decrement it
    217                                         current = (dir == 'tb')?current + 1:current - 1;
     217                                        current = (dir == 'bt')?current + 1:current - 1;
    218218                                       
    219219                                        //we want a circular slideshow,
     
    283283                                               
    284284                                        //we want the old image to slide in the same direction, out of the viewport
    285                                                 var slideTo     = (dir == 'tb')?-$tf_bg_img.height() + 'px':$(window).height() + 'px';
     285                                                var slideTo     = (dir == 'bt')?-$tf_bg_img.height() + 'px':$(window).height() + 'px';
    286286                                                $tf_bg_img.stop().animate({
    287287                                                        top     : slideTo
  • extensions/Full_Background/template/index.tpl

    r28522 r28523  
     1{combine_script id='core.switchbox' load='async' require='jquery' path='themes/default/js/switchbox.js'}
    12{$MENUBAR}
    23
     4
     5{if isset($errors) or isset($infos)}
     6<div class="content messages{if isset($MENUBAR)} contentWithMenu{/if}">
     7{include file='infos_errors.tpl'}
     8</div>
     9{/if}
     10
    311{if !empty($PLUGIN_INDEX_CONTENT_BEFORE)}{$PLUGIN_INDEX_CONTENT_BEFORE}{/if}
     12<div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
     13<div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if}">
    414
    5 
    6 <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}">
    7 
    8 <div class="titrePage{if isset($chronology.TITLE)} calendarTitleBar{/if} visible">
    9         <ul class="categoryActions">
    10 {if !empty($PLUGIN_INDEX_ACTIONS)}{$PLUGIN_INDEX_ACTIONS}{/if}
    11         </ul>
    12 <div id="title_page">
    1315<h2>{$TITLE}</h2>
    14 </div>
    1516
    1617{if isset($chronology_views)}
    1718<div class="calendarViews">{'View'|@translate}:
    18         <select onchange="document.location = this.options[this.selectedIndex].value;">
    19                 {foreach from=$chronology_views item=view}
    20                 <option value="{$view.VALUE}"{if $view.SELECTED} selected="selected"{/if}>{$view.CONTENT}</option>
     19        <a id="calendarViewSwitchLink" href="#">
     20        {foreach from=$chronology_views item=view}{if $view.SELECTED}{$view.CONTENT}{/if}{/foreach}
     21        </a>
     22        <div id="calendarViewSwitchBox" class="switchBox">
     23                {foreach from=$chronology_views item=view name=loop}{if !$smarty.foreach.loop.first}<br>{/if}
     24                <span{if !$view.SELECTED} style="visibility:hidden"{/if}>&#x2714; </span><a href="{$view.VALUE}">{$view.CONTENT}</a>
    2125                {/foreach}
    22         </select>
     26        </div>
     27        {footer_script}(SwitchBox=window.SwitchBox||[]).push("#calendarViewSwitchLink", "#calendarViewSwitchBox");{/footer_script}
    2328</div>
    2429{/if}
    25 
    2630
    2731{if isset($chronology.TITLE)}
     
    3135</div>{* <!-- titrePage --> *}
    3236
    33 {if isset($errors) or not empty($infos)}
    34 {include file='infos_errors.tpl'}
    35 {/if}
    3637{if !empty($PLUGIN_INDEX_CONTENT_BEGIN)}{$PLUGIN_INDEX_CONTENT_BEGIN}{/if}
    3738
    38 
    39 
    4039{if !empty($category_search_results)}
    41 <div style="font-size:16px;margin:10px 16px">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     40<div class="category_search_results">{'Album results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
    4241        <em><strong>
    4342        {foreach from=$category_search_results item=res name=res_loop}
     
    5049
    5150{if !empty($tag_search_results)}
    52 <div style="font-size:16px;margin:10px 16px">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
     51<div class="tag_search_results">{'Tag results for'|@translate} <strong>{$QUERY_SEARCH}</strong> :
    5352        <em><strong>
    54         {foreach from=$tag_search_results item=res name=res_loop}
    55         {if !$smarty.foreach.res_loop.first} &mdash; {/if}
    56         {$res}
     53        {foreach from=$tag_search_results item=tag name=res_loop}
     54        {if !$smarty.foreach.res_loop.first} &mdash; {/if} <a href="{$tag.URL}">{$tag.name}</a>
    5755        {/foreach}
    5856        </strong></em>
     
    6462{/if}
    6563
    66 
    6764{if !empty($CONTENT_DESCRIPTION)}
    68 <div class="additional_info visible">
     65<div class="additional_info">
    6966        {$CONTENT_DESCRIPTION}
    7067</div>
    7168{/if}
    7269
     70{if !empty($CONTENT)}{$CONTENT}{/if}
     71
     72{if !empty($CATEGORIES)}{$CATEGORIES}{/if}
     73
     74{if !empty($cats_navbar)}
     75        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$cats_navbar}
     76{/if}
    7377
    7478{if !empty($THUMBNAILS)}
    75                 {$THUMBNAILS}
    76 {else}
    77         {if !empty($CATEGORIES)}
    78                 {$CATEGORIES}
    79         {/if}
     79<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div>
     80<ul class="thumbnails" id="thumbnails">
     81  {$THUMBNAILS}
     82</ul>
    8083{/if}
    81 
    82 
    83 {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
     84{if !empty($thumb_navbar)}
     85        {include file='navigation_bar.tpl'|@get_extent:'navbar' navbar=$thumb_navbar}
     86{/if}
    8487
    8588{if !empty($PLUGIN_INDEX_CONTENT_END)}{$PLUGIN_INDEX_CONTENT_END}{/if}
    8689</div>{* <!-- content --> *}
    8790{if !empty($PLUGIN_INDEX_CONTENT_AFTER)}{$PLUGIN_INDEX_CONTENT_AFTER}{/if}
    88 
    89 
    90                 </div> <!-- page_content -->                   
    91         </div> <!--the_page -->
  • extensions/Full_Background/template/mainpage_categories.tpl

    r22335 r28523  
    1717<div id="tf_content_wrapper" class="tf_content_wrapper">
    1818        {foreach from=$category_thumbnails item=cat name=cat_loop}
    19                 <div class="tf_content" id="content" {if $smarty.foreach.cat_loop.first}style="display:block;"{/if}>
     19                <div class="tf_content" {if $smarty.foreach.cat_loop.first}style="display:block;"{/if}>
    2020                        <h2>
    2121                                <a href="{$cat.URL}">{$cat.NAME}</a>
  • extensions/Full_Background/template/thumbnails.tpl

    r19033 r28523  
    3636{if !empty($category_thumbnails)}
    3737        {foreach from=$category_thumbnails item=cat name=cat_loop}
    38                 <div class="tf_content" id="content" {if $smarty.foreach.cat_loop.first}style="display:block;"{/if}>
     38                <div class="tf_content" {if $smarty.foreach.cat_loop.first}style="display:block;"{/if}>
    3939                        <h2>
    4040                                <a href="{$cat.URL}">{$cat.NAME}</a>
  • extensions/Full_Background/themeconf.inc.php

    r25999 r28523  
    2323        function modify_nb_thumbnail_page()
    2424        {
    25         global $user, $page;
     25        global $user, $page, $conf;
    2626                $user['nb_image_page']=999;
    2727                $page['nb_image_page']=999;
Note: See TracChangeset for help on using the changeset viewer.