Changeset 25996 for extensions/PwgCarbon


Ignore:
Timestamp:
Dec 17, 2013, 11:19:05 PM (10 years ago)
Author:
Miklfe
Message:
 
Location:
extensions/PwgCarbon
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/PwgCarbon/PwgCarbon.php

    r19015 r25996  
    33
    44global $conf, $template;
    5   $params = array_merge(unserialize($conf['PwgCarbon']));
    6  
     5        $params = array_merge(unserialize($conf['PwgCarbon']));
     6        $template->assign('PwgCarbon', $params);
    77
    88 
     
    110110                ');
    111111                };
    112                
    113 
    114 
    115 
    116 
    117                
    118112?>
  • extensions/PwgCarbon/admin/admin.tpl

    r20562 r25996  
    11{html_head}
    22        <link rel="stylesheet" type="text/css" href="themes/PwgCarbon/admin/theme.css">
    3         <script src="themes/PwgCarbon/admin/js/jquery.screwdefaultbuttonsV2.min.js" type="text/javascript"></script>
    43        <script src="themes/PwgCarbon/js/lytebox.js" type="text/javascript"></script>
    54
    6         <script type="text/javascript">
    7         {literal}
    8                 $(function(){
    9                
    10                         $('input:radio').screwDefaultButtons({
    11                                 image: 'url("themes/PwgCarbon/admin/images/radioSmall_Blue.png")',
    12                                 width: 35,
    13                                 height: 35
    14                         });
    15                        
    16                         $('input:checkbox').screwDefaultButtons({
    17                                 image: 'url("themes/PwgCarbon/admin/images/checkboxSmall_Blue.jpg")',
    18                                 width: 35,
    19                                 height: 35
    20                         });
    21                
    22                 });
    23         {/literal}
    24         </script>
    255       
    266{/html_head}   
  • extensions/PwgCarbon/local_head.tpl

    r18843 r25996  
    1 {php}
    2         global $PwgCarbon;
    3         $this->assign( 'PwgCarbon', $PwgCarbon );
    4 {/php}
    5 
    6 
    7 
    8 
    9 <!--[if lt IE 7]>
    10         <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/default/fix-ie5-ie6.css">
    11 <![endif]-->
    12 <!--[if IE 7]>
    13         <link rel="stylesheet" type="text/css" href="{$ROOT_URL}themes/default/fix-ie7.css">
    14 <![endif]-->
    15 <link rel="stylesheet" type="text/css" media="print" href="{$ROOT_URL}themes/default/print.css">
    16 
    17 
    18 
    19 
     1{combine_script id='reflection' load='header' require='jquery' path='themes/PwgCarbon_dft/js/reflection.js'}
     2{combine_script id='menu' load='header' require='jquery' path='themes/PwgCarbon_dft/js/menu.js'}
     3{combine_script id='hoverIntent' load='header' require='jquery' path='themes/PwgCarbon_dft/js/jquery.hoverIntent.minified.js'}
     4{combine_script id='columnizer' load='footer' require='jquery' path='themes/PwgCarbon_dft/js/jquery.columnizer.js'}
    205
    216{if ($PwgCarbon.lytebox)==1}{combine_script id='lytebox' load='header' require='jquery' path='themes/PwgCarbon/js/lytebox.js'}{/if}
  • extensions/PwgCarbon/template/mainpage_categories.tpl

    r19823 r25996  
    11{define_derivative name='derivative_params' type='2small'}
    22
    3 {php}
    4         global $PwgCarbon;
    5         $this->assign( 'PwgCarbon', $PwgCarbon );
    6 {/php}
    73{html_style}
    84
  • extensions/PwgCarbon/template/menubar_identification.tpl

    r18843 r25996  
    1 {php}
    2         global $PwgCarbon;
    3         $this->assign( 'PwgCarbon', $PwgCarbon );
    4 {/php}
    5 
    6 
    71{if isset($U_LOGIN)}
    8 <li class="liSub">
    92
    103        {if ($PwgCarbon.menuident)==1}
     
    6558                        </form>
    6659                </div>
    67 </li>
    6860       
    6961        {else}
    7062       
    71 <li class="liSub">
    7263
    7364<span class="dd_wrapper">{'Identification'|@translate}</span>
    74                                         <div style="opacity: 0; display: none; " class="sub">
     65                                        <div class="sub">
    7566
    7667        {if isset($USERNAME)}
     
    9990        {/if}
    10091        </ul>
    101 </li>
     92
    10293        {/if}
    103 
  • extensions/PwgCarbon/template/thumbnails.tpl

    r19026 r25996  
    1 {php}
    2         global $PwgCarbon;
    3         $this->assign( 'PwgCarbon', $PwgCarbon );
    4 {/php}
    5 
    6 
    71{if !empty($thumbnails)}{strip}
    82{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     
    4943                        </a>
    5044                        {if $SHOW_THUMBNAIL_CAPTION }
     45                        {if ($PwgCarbon.lytebox)==1}
     46                                <a href="{$thumbnail.path}" class="lytebox" data-lyte-options="borderSize:100 slide:true group:name showNavigation:true navType:1 slideInterval:10000 pauseOnPrevClick:true pauseOnNextClick:true" title="{$thumbnail.NAME|strip_tags:false|replace:'\'':'&#39;'|replace:'"':'&quot;'}">
     47                                        {else}
    5148                        <a href="{$thumbnail.URL}">
     49                        {/if}
    5250
    5351                        <div class=description>
  • extensions/PwgCarbon/themeconf.inc.php

    r19823 r25996  
    22/*
    33Theme Name: PwgCarbon
    4 Version: auto
     4Version: 1.3
    55Description: theme PwgCarbon pour Piwigo.
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=640
     
    99*/
    1010
    11         global $conf, $user, $PwgCarbon;
     11        global $conf, $user, $PwgCarbon, $template;
    1212                       
    1313                               
     
    2222        );
    2323
    24        
    25        
    26 $PwgCarbon = array_merge( unserialize( $conf['PwgCarbon'] ), (array)$PwgCarbon );
    27 
    28 
    29 
    30 add_event_handler('loc_end_page_header', 'load_PwgCarbon' );
    31 
    32 
     24add_event_handler('init', 'load_PwgCarbon' );
    3325function load_PwgCarbon()
    3426{
    35 global $user, $page;
    36 if($user['theme']=='PwgCarbon')
    37  
    38                 {
    3927        include('PwgCarbon.php');
    40                 }
    4128        }
    4229
Note: See TracChangeset for help on using the changeset viewer.