Changeset 5874


Ignore:
Timestamp:
04/16/10 00:08:37 (9 years ago)
Author:
plg
Message:

feature 1605: ability to forbid theme activation, needed for gally-default.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/themes.class.php

    r5452 r5874  
    382382          { 
    383383            $theme['parent'] = $val[1]; 
     384          } 
     385          if (preg_match('/["\']activable["\'].*?(true|false)/', $theme_data, $val)) 
     386          { 
     387            $theme['activable'] = get_boolean($val[1]); 
    384388          } 
    385389 
  • trunk/admin/themes_installed.php

    r5642 r5874  
    100100  { 
    101101    // is the theme "activable" ? 
    102     $fs_theme['activable'] = true; 
     102    if (isset($fs_theme['activable']) and !$fs_theme['activable']) 
     103    { 
     104      $fs_theme['activate_tooltip'] = l10n('This theme was not designed to be directly activated'); 
     105    } 
     106    else 
     107    { 
     108      $fs_theme['activable'] = true; 
     109    } 
    103110 
    104111    $missing_parent = $themes->missing_parent_theme($theme_id); 
  • trunk/language/en_UK/admin.lang.php

    r5853 r5874  
    765765$lang['There is no other theme available.'] = 'There is no other theme available.'; 
    766766$lang['Add another set of photos'] = 'Add another set of photos'; 
    767  
    768767$lang['Order of menubar items has been updated successfully.'] = 'Order of menubar items has been updated successfully.'; 
     768$lang['This theme was not designed to be directly activated'] = 'This theme was not designed to be directly activated'; 
    769769?> 
  • trunk/language/fr_FR/admin.lang.php

    r5853 r5874  
    770770$lang['delete'] = 'effacer'; 
    771771$lang['Add another set of photos'] = 'Ajouter d\'autres photos'; 
    772  
    773772$lang['Order of menubar items has been updated successfully.'] = 'L\'ordre des éléments du menu a été mis à jour avec succès.'; 
     773$lang['This theme was not designed to be directly activated'] = 'Ce thème n\'est pas conçu pour être activé directement'; 
    774774?> 
Note: See TracChangeset for help on using the changeset viewer.