Dotclear

Changeset 926:49b29651bbd3


Ignore:
Timestamp:
10/28/12 06:59:43 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Official plugins are now identified in extension's list, fixes #1052

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/plugins.php

    r907 r926  
    231231     '</tr>'; 
    232232      
     233     $distrib_plugins = array('aboutConfig','akismet','antispam','attachments','blogroll','blowupConfig','fairTrackbacks', 
     234          'importExport','maintenance','pages','pings','simpleMenu','tags','themeEditor','userPref','widgets'); 
     235     $distrib_img = '<img src="images/dotclear_pw.png"'. 
     236          ' alt="'.__('Plugin from official distribution').'" title="'.__('Plugin from official distribution').'" />'; 
     237 
    233238     foreach ($p_available as $k => $v) 
    234239     { 
    235240          $is_deletable = $is_writable && preg_match('!^'.$p_path_pat.'!',$v['root']); 
    236241          $is_deactivable = $v['root_writable']; 
     242          $is_distrib = in_array($k, $distrib_plugins); 
    237243           
    238244          echo 
     
    240246          '<td class="minimal nowrap"><strong>'.html::escapeHTML($k).'</strong></td>'. 
    241247          '<td class="minimal">'.html::escapeHTML($v['version']).'</td>'. 
    242           '<td class="maximal"><strong>'.html::escapeHTML($v['name']).'</strong> '. 
    243           '<br />'.html::escapeHTML($v['desc']).'</td>'. 
     248          '<td class="maximal'.($is_distrib ? ' distrib' : '').'"><strong>'.html::escapeHTML($v['name']).'</strong> '. 
     249          '<br />'.html::escapeHTML($v['desc']).($is_distrib ? ' '.$distrib_img : '').'</td>'. 
    244250          '<td class="nowrap action">'; 
    245251           
  • admin/style/default.css

    r903 r926  
    999999     top: 2px; 
    10001000     right: 0; 
     1001} 
     1002.distrib img { 
     1003     display: block; 
     1004     float: right; 
     1005     margin-top: -1em; 
    10011006} 
    10021007/* TABLES 
  • locales/fr/main.po

    r924 r926  
    14891489msgstr "Pour activer cette fonction, donnez un accès en écriture à votre répertoire d'extensions." 
    14901490 
     1491msgid "Plugin from official distribution" 
     1492msgstr "Extension de la distribution officielle" 
     1493 
    14911494msgid "Add a link" 
    14921495msgstr "Ajouter un lien" 
Note: See TracChangeset for help on using the changeset viewer.

Sites map