Changeset 6366


Ignore:
Timestamp:
May 26, 2010, 4:14:57 AM (10 years ago)
Author:
repie38
Message:

nicer code for icon dir option, and add of montblancxl icon set

Location:
extensions/blancmontxl
Files:
136 added
67 deleted
7 edited

Legend:

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

    r6286 r6366  
    88  'picture',
    99  'other',
    10   'ico',
     10  'icon_dir',
    1111);
    1212
     
    1717    $_POST['bmxl'][$option] = empty($_POST['bmxl'][$option]) ? false : true;
    1818  }
    19   
    20   $_POST['bmxl']['ico'] = file_exists('themes/montblancxl/icon/add_tag.png') ? $_POST['bmxl']['ico'] : false ;
     19 
     20  $_POST['bmxl']['icon_dir'] = $_POST['bmxl']['icon_dir'] ? 'montblancxl' : 'blancmontxl' ;
    2121
    2222  $query = '
  • extensions/blancmontxl/admin/admin.tpl

    r6286 r6366  
    2626                 <li>
    2727          <span class="property">{'Use MontBlancXL icon set'|@translate}</span>
    28           <input type="checkbox" name="bmxl[ico]" value="true" {if $bmxl.ico}checked="checked"{/if}>
     28          <input type="checkbox" name="bmxl[icon_dir]" value="true" {if $bmxl.icon_dir=='montblancxl'}checked="checked"{/if}>
    2929        </li>
    3030      </ul>
  • extensions/blancmontxl/admin/maintain.inc.php

    r6286 r6366  
    1212      'picture'    => false,
    1313      'other'      => true,
    14           'ico'        => false,
     14          'icon_dir'   => 'blancmontxl',
    1515      );
    1616     
  • extensions/blancmontxl/language/en_UK/theme.lang.php

    r6286 r6366  
    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)';
     7$lang['Use MontBlancXL icon set'] = 'Use <a href="http://piwigo.org/ext/extension_view.php?eid=133">MontBlancXL</a> icon set (theme not necessary)';
    88
    99?>
  • extensions/blancmontxl/language/es_ES/theme.lang.php

    r6286 r6366  
    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)';
     7$lang['Use MontBlancXL icon set'] = 'Utilice <a href="http://piwigo.org/ext/extension_view.php?eid=133">MontBlancXL</a> iconos (tema no necesario)';
    88
    99?>
  • extensions/blancmontxl/language/fr_FR/theme.lang.php

    r6286 r6366  
    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)';
     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 non nécessaire)';
    88
    99?>
  • extensions/blancmontxl/themeconf.inc.php

    r6286 r6366  
    99*/
    1010
     11global $config;
     12$config = unserialize($conf['BlancmontXL']);//echo '<pre>'; print_r($config); echo '</pre>';
     13
    1114$themeconf = array(
    1215  'parent'      => 'default',
    1316  'local_head'  => 'local_head.tpl',
     17  'icon_dir'    => 'themes/blancmontxl/icon/'. $config['icon_dir']
    1418);
    15 
    16 global $conf;
    17 $config = unserialize($conf['BlancmontXL']);
    18 $themeconf['icon_dir']=$config['ico'] ? 'themes/montblancxl/icon' : 'themes/blancmontxl/icon' ;
    1919
    2020add_event_handler('loc_begin_page_header', 'set_bmxl_header');
     
    2222function set_bmxl_header()
    2323{
    24   global $page, $conf, $template;
    25 
    26   $config = unserialize($conf['BlancmontXL']);
     24  global $page, $config, $template;
    2725
    2826  if (isset($page['body_id']) and $page['body_id'] == 'theCategoryPage')
Note: See TracChangeset for help on using the changeset viewer.