Changeset 6286 for extensions


Ignore:
Timestamp:
May 22, 2010, 10:35:40 PM (14 years ago)
Author:
repie38
Message:

conf panel new option : use montblancxl icon set (option can't be set if montblancxl isn't installed)

Location:
extensions/blancmontxl
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/blancmontxl/admin/admin.inc.php

    r6262 r6286  
    88  'picture',
    99  'other',
     10  'ico',
    1011);
    1112
     
    1617    $_POST['bmxl'][$option] = empty($_POST['bmxl'][$option]) ? false : true;
    1718  }
     19 
     20  $_POST['bmxl']['ico'] = file_exists('themes/montblancxl/icon/add_tag.png') ? $_POST['bmxl']['ico'] : false ;
    1821
    1922  $query = '
  • extensions/blancmontxl/admin/admin.tpl

    r6262 r6286  
    2424          <input type="checkbox" name="bmxl[other]" value="true" {if $bmxl.other}checked="checked"{/if}>
    2525        </li>
     26                 <li>
     27          <span class="property">{'Use MontBlancXL icon set'|@translate}</span>
     28          <input type="checkbox" name="bmxl[ico]" value="true" {if $bmxl.ico}checked="checked"{/if}>
     29        </li>
    2630      </ul>
    2731  </fieldset>
  • extensions/blancmontxl/admin/maintain.inc.php

    r6262 r6286  
    1212      'picture'    => false,
    1313      'other'      => true,
     14          'ico'        => false,
    1415      );
    1516     
  • extensions/blancmontxl/language/en_UK/theme.lang.php

    r6262 r6286  
    55$lang['Display page banner on picture page'] = 'Display page banner on picture page';
    66$lang['Display page banner on other pages'] = 'Display page banner on other pages';
     7$lang['Use MontBlancXL icon set'] = 'Use <a href="http://piwigo.org/ext/extension_view.php?eid=133">MontBlancXL</a> icon set (theme needed)';
    78
    89?>
  • extensions/blancmontxl/language/es_ES/theme.lang.php

    r6262 r6286  
    55$lang['Display page banner on picture page'] = 'Fijar la bandera sobre la página de las fotos';
    66$lang['Display page banner on other pages'] = 'Fijar la bandera sobre otras páginas';
     7$lang['Use MontBlancXL icon set'] = 'Utilice <a href="http://piwigo.org/ext/extension_view.php?eid=133">MontBlancXL</a> iconos (tema es necesario)';
    78
    89?>
  • extensions/blancmontxl/language/fr_FR/theme.lang.php

    r6262 r6286  
    55$lang['Display page banner on picture page'] = 'Afficher la bannière sur la page des photos';
    66$lang['Display page banner on other pages'] = 'Afficher la bannière sur les autres pages';
     7$lang['Use MontBlancXL icon set'] = 'Utiliser le jeu d\'icones de <a href="http://piwigo.org/ext/extension_view.php?eid=133">MontBlancXL</a> (theme nécessaire)';
    78
    89?>
  • extensions/blancmontxl/themeconf.inc.php

    r6262 r6286  
    22/*
    33Theme Name: BlancMont XL
    4 Version: 2.1.a
     4Version: 2.1.c
    55Description: Night theme
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=232
     
    1111$themeconf = array(
    1212  'parent'      => 'default',
    13   'icon_dir'    => 'themes/blancmontxl/icon',
    1413  'local_head'  => 'local_head.tpl',
    1514);
    1615
     16global $conf;
     17$config = unserialize($conf['BlancmontXL']);
     18$themeconf['icon_dir']=$config['ico'] ? 'themes/montblancxl/icon' : 'themes/blancmontxl/icon' ;
    1719
    1820add_event_handler('loc_begin_page_header', 'set_bmxl_header');
     
    3638    $header = $config['other'];
    3739  }
    38 
    3940  $template->assign('display_bmxl_banner', $header);
    4041}
    41 
    4242?>
Note: See TracChangeset for help on using the changeset viewer.