Changeset 10378 for trunk


Ignore:
Timestamp:
Apr 15, 2011, 1:17:49 AM (14 years ago)
Author:
mistic100
Message:

plugin manager : description tooltip on the title, tooltip for restoration link

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/plugins_list.tpl

    r10305 r10378  
    6161    'fadeOut' : 200,
    6262    'maxWidth':'250px'
    63   }).click(function(){
    64     return false;
     63  });
     64  jQuery('.plugin-restore').tipTip({
     65    'delay' : 0,
     66    'fadeIn' : 200,
     67    'fadeOut' : 200
    6568  });
    6669  jQuery('.pluginMiniBoxDesc').tipTip({
     
    6972    'fadeOut' : 200,
    7073    'maxWidth':'300px', /* not effective, TipTip bug */
     74    'defaultPosition':'left',
    7175    'keepAlive':true
    72   }).click(function(){
    73     return false;
    7476  });
    7577});
     
    150152          {if $plugin.STATE == 'active'}
    151153            <a href="{$plugin.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a>
    152             | <a href="{$plugin.U_ACTION}&amp;action=restore" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
     154            | <a href="{$plugin.U_ACTION}&amp;action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost your plugin settings!'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
    153155
    154156          {elseif $plugin.STATE == 'inactive'}
     
    187189    <div id="{$plugin.ID}" class="pluginMiniBox {$plugin.STATE}{if $plugin.INCOMPATIBLE} incompatible{/if}">
    188190      <div class="pluginMiniBoxNameCell">
    189         {if $plugin.INCOMPATIBLE}<a class="warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}"></a>{/if}
    190         {$plugin.NAME}
    191         <a class="pluginMiniBoxDesc" title="{if !empty($author)}{'By %s'|@translate|@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$plugin.DESC|@escape:'html'}"></a>
     191        {if $plugin.INCOMPATIBLE}<span class="warning" title="{'WARNING! This plugin does not seem to be compatible with this version of Piwigo.'|@translate|@escape:'html'}"></span>{/if}
     192        <span class="pluginMiniBoxDesc" title="{if !empty($author)}{'By %s'|@translate|@sprintf:$author} | {/if}{'Version'|@translate} {$version}<br/>{$plugin.DESC|@escape:'html'}">{$plugin.NAME}</span>
    192193      </div>
    193194      <div class="pluginActions">
     
    195196        {if $plugin.STATE == 'active'}
    196197          <a href="{$plugin.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a>
    197           | <a href="{$plugin.U_ACTION}&amp;action=restore" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
     198          | <a href="{$plugin.U_ACTION}&amp;action=restore" class="plugin-restore" title="{'Restore default configuration. You will lost all your settings !'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Restore'|@translate}</a>
    198199
    199200        {elseif $plugin.STATE == 'inactive'}
  • trunk/admin/themes/default/theme.css

    r10305 r10378  
    946946.pluginsByState .pluginMiniBox.inactive, .pluginsByState .pluginMiniBox.uninstalled {opacity:0.8;filter:alpha(opacity=80);}
    947947
    948 .pluginMiniBoxDesc{float:right;margin:0 4px 0 -20px;}
    949 .pluginMiniBoxDesc:after{content:url(icon/help-min.png);}
    950948.warning:before {content:url(icon/warning.png);vertical-align:top;}
    951949fieldset.pluginsByName{border:none;}
  • trunk/language/en_UK/admin.lang.php

    r10305 r10378  
    573573$lang['Resize'] = 'Resize';
    574574$lang['Restore'] = "Restore";
     575$lang['Restore default configuration. You will lost your plugin settings!'] = "Restore default configuration. You will lost your plugin settings!";
    575576$lang['Results of miniaturization'] = "Miniaturization process results";
    576577$lang['Save order'] = "Save order";
  • trunk/language/fr_CA/admin.lang.php

    r10253 r10378  
    795795$lang['THIS PLUGIN IS NOW PART OF PIWIGO CORE! DELETE IT NOW.'] = 'CE GREFFON FAIT DÉSORMAIS PARTIE DU CŒUR DE PIWIGO! SUPPRIMEZ-LE.';
    796796$lang['ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW.'] = 'ERREUR: CE GREFFON EST MANQUANT MAIS TOUJOURS INSTALLÉ! DÉSINSTALLEZ-LE.';
     797$lang['display'] = 'Afficher';
     798$lang['Compact'] = "Compact";
     799$lang['Complete'] = "Complet";
     800$lang['Restore'] = "Restaurer";
     801$lang['Restore default configuration. You will lost your plugin settings!'] = "Restaurer la configuration par défaut? Vous perdrez vos réglages personnels !";
    797802?>
  • trunk/language/fr_FR/admin.lang.php

    r10306 r10378  
    798798$lang['Complete'] = "Complet";
    799799$lang['Restore'] = "Restaurer";
     800$lang['Restore default configuration. You will lost your plugin settings!'] = "Restaurer la configuration par défaut? Vous perdrez vos réglages personnels !";
    800801?>
Note: See TracChangeset for help on using the changeset viewer.