Changeset 9119


Ignore:
Timestamp:
02/08/11 17:41:12 (9 years ago)
Author:
flop25
Message:

config var extend : for dynamic_tab
adding the ability to create a local file : themeconf_local.inc.php
adding tiptip for icons
language code in smarty tag changed -> I hate that change !!

Location:
extensions/floOS/OS_glass
Files:
4 added
4 edited

Legend:

Unmodified
Added
Removed
  • extensions/floOS/OS_glass/local_head.tpl

    r9109 r9119  
    11{literal} 
    22<script type="text/javascript" src="themes/default/js/jquery.js"></script> 
     3<script type="text/javascript" src="themes/OS_glass/tiptip/jquery.tipTip.minified.js"></script> 
    34  <script type="text/javascript"> 
    45jQuery(document).ready(function(){ 
     
    1213        }).next().show(); 
    1314}); 
    14    
     15$(function(){ 
     16    $(".categoryActions A").tipTip({delay : 0, fadeIn : 200, fadeOut : 200, }); 
     17    $("#home_icon A").tipTip({edgeOffset : 10, fadeIn : 200, fadeOut : 200, defaultPosition : "top" }); 
     18    $(".randomButtons A").tipTip({delay : 0, fadeIn : 200, fadeOut : 200, }); 
     19    $(".navButtons A").tipTip({delay : 0, fadeIn : 200, fadeOut : 200, }); 
     20    $("#mbCategories a").tipTip({delay : 0, fadeIn : 200, fadeOut : 200, }); 
     21}); 
    1522  </script> 
    1623    <!--[if lt IE 7]> 
  • extensions/floOS/OS_glass/template/picture_nav_buttons.tpl

    r9109 r9119  
    22   
    33{if isset($last)} 
    4   <a class="navButton prev" href="{$last.U_IMG}" title="{'last_page'|@translate} : {$last.TITLE}" rel="last"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'last_page'|@translate}"></a> 
     4  <a class="navButton prev" href="{$last.U_IMG}" title="{'Last'|@translate} : {$last.TITLE}" rel="last"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last.png" class="button" alt="{'Last'|@translate}"></a> 
    55{else} 
    66  <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/last_unactive.png" class="button" alt=""></a> 
     
    88   
    99{if isset($next)} 
    10   <a class="navButton next" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'next_page'|@translate}"></a> 
     10  <a class="navButton next" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right.png" class="button" alt="{'Next'|@translate}"></a> 
    1111{else} 
    1212  <a class="navButton next"><img src="{$ROOT_URL}{$themeconf.icon_dir}/right_unactive.png" class="button" alt=""></a> 
    1313{/if} 
    1414{if isset($next) } 
    15 <a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"> 
     15<a class="navThumb" id="thumbNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> 
    1616  <img src="{$next.THUMB_SRC}" class="thumbLink" id="linkNext" alt="{$next.TITLE}"> 
    1717</a> 
     
    1919    <img src="{$current.THUMB_SRC}" class="thumbLink" id="thumbCurrent" alt="{$ALT_IMG}"> 
    2020{if isset($previous) } 
    21 <a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"> 
     21<a class="navThumb" id="thumbPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> 
    2222  <img src="{$previous.THUMB_SRC}" class="thumbLink" id="linkPrev" alt="{$previous.TITLE}"> 
    2323</a> 
     
    2525 
    2626{if isset($slideshow.U_START_PLAY)} 
    27   <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'start_play'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'start_play'|@translate}"></a> 
     27  <a class="navButton play" href="{$slideshow.U_START_PLAY}" title="{'Play of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/play.png" class="button" alt="{'Play of slideshow'|@translate}"></a> 
    2828{/if} 
    2929 
    3030{if isset($slideshow.U_STOP_PLAY)} 
    31   <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'stop_play'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'stop_play'|@translate}"></a> 
     31  <a class="navButton play" href="{$slideshow.U_STOP_PLAY}" title="{'Pause of slideshow'|@translate}" rel="play"><img src="{$ROOT_URL}{$themeconf.icon_dir}/pause.png" class="button" alt="{'Pause of slideshow'|@translate}"></a> 
    3232{/if} 
    3333 
    3434   
    3535{if isset($previous)} 
    36   <a class="navButton prev" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'previous_page'|@translate}"></a> 
     36  <a class="navButton prev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left.png" class="button" alt="{'Previous'|@translate}"></a> 
    3737{else} 
    3838  <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/left_unactive.png" class="button" alt=""></a> 
     
    4040   
    4141{if isset($first)} 
    42   <a class="navButton prev" href="{$first.U_IMG}" title="{'first_page'|@translate} : {$first.TITLE}" rel="first"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'first_page'|@translate}"></a> 
     42  <a class="navButton prev" href="{$first.U_IMG}" title="{'First'|@translate} : {$first.TITLE}" rel="first"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first.png" class="button" alt="{'First'|@translate}"></a> 
    4343{else} 
    4444  <a class="navButton prev"><img src="{$ROOT_URL}{$themeconf.icon_dir}/first_unactive.png" class="button" alt=""></a> 
     
    4747 
    4848{if isset($slideshow.U_START_REPEAT)} 
    49   <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'start_repeat'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'start_repeat'|@translate}"></a> 
     49  <a class="navButton repeat" href="{$slideshow.U_START_REPEAT}" title="{'Repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/start_repeat.png" class="button" alt="{'Repeat the slideshow'|@translate}"></a> 
    5050{/if} 
    5151 
    5252{if isset($slideshow.U_STOP_REPEAT)} 
    53   <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'stop_repeat'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'stop_repeat'|@translate}"></a> 
     53  <a class="navButton repeat" href="{$slideshow.U_STOP_REPEAT}" title="{'Not repeat the slideshow'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/stop_repeat.png" class="button" alt="{'Not repeat the slideshow'|@translate}"></a> 
    5454{/if} 
    5555 
    5656{if isset($slideshow)} 
    5757  {if isset($slideshow.U_DEC_PERIOD)} 
    58     <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'dec_period'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'dec_period'|@translate}"></a> 
     58    <a class="navButton dec_period" href="{$slideshow.U_DEC_PERIOD}" title="{'Accelerate diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period.png" class="button" alt="{'Accelerate diaporama speed'|@translate}"></a> 
    5959  {else} 
    6060    <a class="navButton dec_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/dec_period_unactive.png" class="button" alt=""></a> 
     
    6262 
    6363  {if isset($slideshow.U_INC_PERIOD)} 
    64     <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'inc_period'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'inc_period'|@translate}"></a> 
     64    <a class="navButton inc_period" href="{$slideshow.U_INC_PERIOD}" title="{'Reduce diaporama speed'|@translate}" rel="repeat"><img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period.png" class="button" alt="{'Reduce diaporama speed'|@translate}"></a> 
    6565  {else} 
    6666    <a class="navButton inc_period"> <img src="{$ROOT_URL}{$themeconf.icon_dir}/inc_period_unactive.png" class="button" alt=""></a> 
  • extensions/floOS/OS_glass/theme.css

    r9109 r9119  
    44pour le template floOS 
    55 
    6 by flop25(.free.fr) 
     6by flop25 
     7 
    78------------------------------------------------------------------------------ */ 
    89 
     10@import "tiptip/tipTip.css" ; 
    911 
    1012/* text color */ 
     
    249251        background-position: center bottom; 
    250252        background-color: #000000; 
    251 } 
     253}/* 
    252254#imageToolBar A:hover { 
    253255background-image: url(images/fondMenuSurvol.gif); 
     
    255257background-position:center; 
    256258background-color:transparent; 
    257 } 
     259}*/ 
    258260#action_pict { 
    259261        border: 2px solid #FFFFFF; 
     
    299301UL.tabsheet LI.normal_tab:hover { border-color: black; } 
    300302 
    301 /*______________-------------------___________________________---------*/ 
    302 /* $Id: picture.css 2295 2008-04-02 00:51:08Z rvelices $ */ 
  • extensions/floOS/OS_glass/themeconf.inc.php

    r9109 r9119  
    1616  'local_head' => 'local_head.tpl', 
    1717  'activable' => true, 
     18        'add_menu_on_public_pages'                      => true,        # activation 
     19        'Exclude'                       => array('theNBMPage','thePicturePage','thePopuphelpPage',),    # Excluded pages 
     20        'tab_system'                    => true,        # activation 
     21        'tab_closed'                    => array('mbLinks','mbTags','mbSpecials','mbIdentification'),   # tabs which are closed when the page is loaded 
    1822); 
     23@include('themeconf_local.inc.php'); 
    1924 
     25        add_event_handler('init', 'dynamic_tab', 20); 
     26 
     27        function  dynamic_tab() { 
     28global $template, $conf; 
     29$template->assign( 
     30  array( 
     31    'tab_system' => get_themeconf('tab_system'), 
     32    'tab_closed' => get_themeconf('tab_closed'), 
     33    )); 
     34        } 
    2035?> 
Note: See TracChangeset for help on using the changeset viewer.