Changeset 12029


Ignore:
Timestamp:
09/01/11 16:01:52 (8 years ago)
Author:
plg
Message:

plugin manager: replace the top left "Display Compact/Complete" select box by a
simpler link "show details" or "hide details" on top right.

Location:
trunk
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_installed.php

    r11227 r12029  
    3131$template->set_filenames(array('plugins' => 'plugins_installed.tpl')); 
    3232 
    33 // display mode 
    34 $plugin_display = isset($_GET['plugin_display']) ? $_GET['plugin_display'] : (pwg_get_session_var('plugin_display') != null ? pwg_get_session_var('plugin_display') : 'compact'); 
    35 pwg_set_session_var('plugin_display', $plugin_display); 
     33// should we display details on plugins? 
     34if (isset($_GET['show_details'])) 
     35{ 
     36  if (1 == $_GET['show_details']) 
     37  { 
     38    $show_details = true; 
     39  } 
     40  else 
     41  { 
     42    $show_details = false; 
     43  } 
     44 
     45  pwg_set_session_var('plugins_show_details', $show_details); 
     46} 
     47elseif (null != pwg_get_session_var('plugins_show_details')) 
     48{ 
     49  $show_details = pwg_get_session_var('plugins_show_details'); 
     50} 
     51else 
     52{ 
     53  $show_details = false; 
     54} 
    3655 
    3756$base_url = get_root_url().'admin.php?page='.$page['page']; 
     
    177196usort($tpl_plugins, 'cmp'); 
    178197 
    179 $template->assign(array( 
    180   'plugin_display' => $plugin_display, 
    181   'plugins' => $tpl_plugins, 
    182   'active_plugins' => $active_plugins, 
    183   'PWG_TOKEN' => $pwg_token, 
    184 )); 
     198$template->assign( 
     199  array( 
     200    'plugins' => $tpl_plugins, 
     201    'active_plugins' => $active_plugins, 
     202    'PWG_TOKEN' => $pwg_token, 
     203    'base_url' => $base_url, 
     204    'show_details' => $show_details, 
     205    ) 
     206  ); 
    185207 
    186208$template->assign_var_from_handle('ADMIN_CONTENT', 'plugins'); 
  • trunk/admin/themes/default/template/plugins_installed.tpl

    r11838 r12029  
    5050        for (i=0;i<data.length;i++) { 
    5151          {/literal} 
    52           {if $plugin_display == 'complete'} 
     52          {if $show_details} 
    5353            jQuery('#'+data[i]+' .pluginBoxNameCell').prepend('<a class="warning" title="'+incompatible_msg+'"></a>') 
    5454          {else} 
     
    8888 
    8989<div class="titrePage"> 
    90   <span class="sort"> 
    91     <form action="" method="get" name="change_display"> 
    92       <input type="hidden" name="page" value="plugins"/> 
    93       {'Display'|@translate} :  
    94       <select name="plugin_display" onchange="this.form.submit();"> 
    95         <option value="compact" {if $plugin_diplay=='compact'}selected="selected"{/if}>{'Compact'|@translate}</option> 
    96         <option value="complete" {if $plugin_display=='complete'}selected="selected"{/if}>{'Complete'|@translate}</option> 
    97       </select> 
    98     </form> 
    99   </span> 
    10090  <h2>{'Plugins'|@translate}</h2> 
     91</div> 
     92 
     93<div class="showDetails"> 
     94  {if $show_details} 
     95  <a href="{$base_url}&amp;show_details=0">{'hide details'|@translate}</a> 
     96  {else} 
     97  <a href="{$base_url}&amp;show_details=1">{'show details'|@translate}</a> 
     98  {/if} 
    10199</div> 
    102100 
     
    135133  {/if} 
    136134    
    137   {if $plugin_display == 'complete'} 
     135  {if $show_details} 
    138136    <div id="{$plugin.ID}" class="pluginBox {$plugin.STATE}"> 
    139137      <table> 
     
    176174    </div> {*<!-- pluginBox -->*} 
    177175     
    178   {elseif $plugin_display == 'compact'} 
     176  {else} 
    179177    {if not empty($plugin.VISIT_URL)} 
    180178      {assign var='version' value="<a class='externalLink' href='"|cat:$plugin.VISIT_URL|cat:"'>"|cat:$plugin.VERSION|cat:"</a>"} 
  • trunk/admin/themes/default/theme.css

    r12005 r12029  
    927927.warning:before {content:url(icon/warning.png);vertical-align:top;} 
    928928.deactivate_all {text-align:right;font-size:0.95em;} 
     929.showDetails {text-align:right; margin-bottom:-15px; margin-top:-10px; padding-right:1em;} 
    929930 
    930931.languageBoxes {min-height:0;text-align:left;} 
     
    10771078#progressbar {border:1px solid #ccc; background-color:#eee;} 
    10781079.ui-progressbar-value { background-image: url(images/pbar-ani.gif); height:10px;margin:-1px;border:1px solid #E78F08;} 
     1080 
  • trunk/language/cs_CZ/admin.lang.php

    r11978 r12029  
    790790$lang['Type in a search term'] = 'Zadejte hledaný výraz'; 
    791791$lang['Activate icon "new" next to albums and pictures'] = 'Aktivovat ikonu "nové" vedle alb a obrázků'; 
    792 $lang['Compact'] = 'Kompaktní'; 
    793 $lang['Complete'] = 'Kompletní'; 
    794792$lang['Deactivate all'] = 'Deaktivovat vše'; 
    795793$lang['Default photos order'] = 'Výchozí pořadí fotografií'; 
  • trunk/language/de_DE/admin.lang.php

    r11978 r12029  
    797797$lang['Type in a search term'] = 'Geben Sie bitte einen Suchbegriff ein'; 
    798798$lang['Activate icon "new" next to albums and pictures'] = ' Aktivieren Sie das Icon "Neu" neben Alben und Fotos '; 
    799 $lang['Compact'] = 'Kompakt'; 
    800 $lang['Complete'] = 'Komplett'; 
    801799$lang['Deactivate all'] = 'Deaktiviere alle'; 
    802800$lang['Default photos order'] = 'Voreingestellte Fotoanordnung'; 
  • trunk/language/en_UK/admin.lang.php

    r12005 r12029  
    187187$lang['Comments for all'] = "Comments for all"; 
    188188$lang['Comments'] = "Comments"; 
    189 $lang['Compact'] = "Compact"; 
    190 $lang['Complete'] = "Complete"; 
    191189$lang['Complementary mail content'] = "Complementary mail content"; 
    192190$lang['Complementary mail content'] = "Complementary mail content"; 
     
    850848$lang['Manage Permissions'] = 'Manage Permissions'; 
    851849$lang['Photo %s of %s'] = 'Photo %s of %s'; 
     850$lang['show details'] = 'show details'; 
     851$lang['hide details'] = 'hide details'; 
    852852?> 
  • trunk/language/es_ES/admin.lang.php

    r11978 r12029  
    795795$lang['Activate icon "new" next to albums and pictures'] = 'Activar el icono "nuevo" al lado de álbumes y fotos'; 
    796796$lang['Add a criteria'] = 'Añadir un criterio'; 
    797 $lang['Compact'] = 'Compacto'; 
    798 $lang['Complete'] = 'Completo'; 
    799797$lang['Deactivate all'] = 'desactivar todo'; 
    800798$lang['Default photos order'] = 'Orden de las fotos por defecto'; 
  • trunk/language/fr_CA/admin.lang.php

    r11978 r12029  
    792792$lang['ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW.'] = 'ERREUR: CE GREFFON EST MANQUANT MAIS TOUJOURS INSTALLÉ! DÉSINSTALLEZ-LE.'; 
    793793$lang['display'] = 'Afficher'; 
    794 $lang['Compact'] = "Compact"; 
    795 $lang['Complete'] = "Complet"; 
    796794$lang['Restore'] = "Restaurer"; 
    797795$lang['Restore default configuration. You will lose your plugin settings!'] = "Restaurer la configuration par défaut? Vous perdrez vos réglages personnels !"; 
  • trunk/language/fr_FR/admin.lang.php

    r12005 r12029  
    791791$lang['ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW.'] = 'ERREUR: CE PLUGIN EST MANQUANT MAIS TOUJOURS INSTALLÉ! DÉSINSTALLEZ-LE.'; 
    792792$lang['display'] = 'Afficher'; 
    793 $lang['Compact'] = "Compact"; 
    794 $lang['Complete'] = "Complet"; 
    795793$lang['Restore'] = "Restaurer"; 
    796794$lang['Restore default configuration. You will lose your plugin settings!'] = "Restaurer la configuration par défaut? Vous perdrez vos réglages personnels !"; 
     
    859857$lang['Manage Permissions'] = 'Gérer les permissions'; 
    860858$lang['Photo %s of %s'] = 'Photo %s sur %s'; 
     859$lang['show details'] = 'montrer les détails'; 
     860$lang['hide details'] = 'cacher les détails'; 
    861861?> 
  • trunk/language/he_IL/admin.lang.php

    r11978 r12029  
    800800$lang['Graphics Library'] = 'ספריית גרפיקה'; 
    801801$lang['Activate icon "new" next to albums and pictures'] = 'הפעל כפתו "חדש" ליד אלבומים'; 
    802 $lang['Compact'] = 'קומפקטי'; 
    803 $lang['Complete'] = 'סיים'; 
    804802$lang['Deactivate all'] = 'בטל פעולה להכל'; 
    805803$lang['Default photos order'] = 'סדר ברירת מחדל לתמונות'; 
  • trunk/language/hu_HU/admin.lang.php

    r11978 r12029  
    791791$lang['Type in a search term'] = 'Írd be a keresett kifejezést'; 
    792792// missing translations 
    793 $lang['Compact'] = 'Kompakt'; 
    794 $lang['Complete'] = 'Részletes'; 
    795793$lang['Deactivate all'] = 'Összes kikapcsolása'; 
    796794$lang['Restore'] = 'Visszaállítás'; 
  • trunk/language/it_IT/admin.lang.php

    r12006 r12029  
    791791$lang['ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW.'] = 'ERRORE: QUESTO PLUGIN È MANCANTE MA TUTTORA INSTALLATO! CANCELLATELO.'; 
    792792$lang['display'] = 'Visualizzare'; 
    793 $lang['Compact'] = 'Compatto'; 
    794 $lang['Complete'] = 'Completo'; 
    795793$lang['Restore'] = 'Restaurare'; 
    796794$lang['Restore default configuration. You will lose your plugin settings!'] = 'Reimpostare la configurazione di defaut? Perderete tutte le vostre impostazioni!'; 
  • trunk/language/ja_JP/admin.lang.php

    r11978 r12029  
    720720$lang['Batch Manager'] = 'バッチ・マネージャー'; 
    721721$lang['Choose an action'] = 'アックションを選択して下さい'; 
    722 $lang['Compact'] = 'コンパクト'; 
    723 $lang['Complete'] = '完了'; 
    724722$lang['Activate icon "new" next to albums and pictures'] = 'アルバムと写真のとなりに、\'起動アイコン "新" があります'; 
    725723$lang['Deactivate all'] = '全て非活性する'; 
  • trunk/language/lv_LV/admin.lang.php

    r11978 r12029  
    787787$lang['Searching...'] = 'Meklē...'; 
    788788$lang['Type in a search term'] = 'Ierakstiet meklējamo vārdu'; 
    789 $lang['Compact'] = 'Kompaktēt'; 
    790 $lang['Complete'] = 'Pabeigt'; 
    791789$lang['Deactivate all'] = 'Deaktivēt visu'; 
    792790$lang['Default photos order'] = 'Foto kārtojums pēc noklusējuma'; 
  • trunk/language/nl_NL/admin.lang.php

    r11978 r12029  
    797797$lang['Type in a search term'] = 'Type een zoekterm in'; 
    798798$lang['Activate icon "new" next to albums and pictures'] = 'Activeer "nieuw" pictogram naast albums en afbeeldingen'; 
    799 $lang['Compact'] = 'Compact'; 
    800 $lang['Complete'] = 'Compleet'; 
    801799$lang['Deactivate all'] = 'Deactiveer alles'; 
    802800$lang['Default photos order'] = 'Standaard foto volgorde'; 
  • trunk/language/pl_PL/admin.lang.php

    r11978 r12029  
    787787$lang['Type in a search term'] = 'Wpisz frazę do wyszukania'; 
    788788$lang['Activate icon "new" next to albums and pictures'] = 'Aktywuj ikonę "nowe" obok albumów i zdjęć'; 
    789 $lang['Compact'] = 'Minimalne'; 
    790 $lang['Complete'] = 'Pełne'; 
    791789$lang['Deactivate all'] = 'Deaktywuj wszystko'; 
    792790$lang['Default photos order'] = 'Domślne sortowanie zdjęć'; 
  • trunk/language/ru_RU/admin.lang.php

    r11978 r12029  
    786786$lang['display'] = 'показать'; 
    787787$lang['Activate icon "new" next to albums and pictures'] = 'Активировать иконку "new" рядом с альбомами и фотографиями'; 
    788 $lang['Compact'] = 'Компактный'; 
    789 $lang['Complete'] = 'Полный'; 
    790788$lang['Deactivate all'] = 'Деактивировать все'; 
    791789$lang['Default photos order'] = 'Порядок фотографий по умолчанию'; 
  • trunk/language/sk_SK/admin.lang.php

    r11978 r12029  
    797797$lang['Searching...'] = 'Vyhľadávam...'; 
    798798$lang['Type in a search term'] = 'Napíšte vo vyhľadávaní'; 
    799 $lang['Compact'] = 'Kompaktné'; 
    800 $lang['Complete'] = 'Kompletné'; 
    801799$lang['Deactivate all'] = 'Ukončiť všetko'; 
    802800$lang['Restore'] = 'Obnoviť'; 
  • trunk/language/sl_SL/admin.lang.php

    r11994 r12029  
    6666$lang['Comments for all'] = 'Komentarji za vse'; 
    6767$lang['Comments'] = 'Komentarji'; 
    68 $lang['Compact'] = 'Stisnjeno'; 
    69 $lang['Complete'] = 'Zakljuceno'; 
    7068$lang['Complementary mail content'] = 'Komplementarna vsebina pošte'; 
    7169$lang['Configuration'] = 'Konfiguracija'; 
  • trunk/language/sr_RS/admin.lang.php

    r11978 r12029  
    790790$lang['Average rate'] = 'Просечна оцена'; 
    791791$lang['Rate'] = 'Оцена'; 
    792 $lang['Compact'] = 'Запаковано'; 
    793 $lang['Complete'] = 'Завршено'; 
    794792$lang['Deactivate all'] = 'Искључи све'; 
    795793$lang['Restore'] = 'Обнови'; 
  • trunk/language/sv_SE/admin.lang.php

    r11978 r12029  
    794794$lang['Type in a search term'] = 'Ange nytt sökord'; 
    795795$lang['Activate icon "new" next to albums and pictures'] = 'Aktivera ikonen "ny" intill album och bilder'; 
    796 $lang['Compact'] = 'Kompakt'; 
    797 $lang['Complete'] = 'Komplett'; 
    798796$lang['Deactivate all'] = 'Avaktivera allt'; 
    799797$lang['Default photos order'] = 'Standardordning för bilder'; 
  • trunk/language/tr_TR/admin.lang.php

    r11978 r12029  
    773773$lang['THIS PLUGIN IS NOW PART OF PIWIGO CORE! DELETE IT NOW.'] = 'Bu eklenti şimdi Piwigo\'nun kendi parçasıdır lütfen siliniz.!'; 
    774774$lang['ERROR: THIS PLUGIN IS MISSING BUT IT IS INSTALLED! UNINSTALL IT NOW.'] = 'Hata: Bu eklenti eksik, ama yüklenmiş. Lütfen siliniz.'; 
    775 $lang['Compact'] = 'Kompakt'; 
    776 $lang['Complete'] = 'Tamamı'; 
    777775$lang['Restore'] = 'Onarım'; 
    778776$lang['Restore default configuration. You will lose your plugin settings!'] = 'Varsayılan yapılandırmalarınızı onarın. Eklenti ayarlrınız kaybolacaktır!'; 
  • trunk/language/uk_UA/admin.lang.php

    r11978 r12029  
    205205$lang['default values'] = 'значення за замовчуванням'; 
    206206$lang['default'] = 'за замовчуванням'; 
    207 $lang['Compact'] = 'Компактний'; 
    208 $lang['Complete'] = 'Повний'; 
    209207$lang['delete album'] = 'видалити альбом'; 
    210208$lang['Delete orphan tags'] = 'Видалити пусті теги'; 
  • trunk/language/vi_VN/admin.lang.php

    r11986 r12029  
    794794$lang['Type in a search term'] = 'Nhập vào trong mục tìm kiếm'; 
    795795$lang['display'] = 'hiển thị'; 
    796 $lang['Compact'] = 'Thu gọn'; 
    797 $lang['Complete'] = 'Hoàn thành'; 
    798796$lang['Deactivate all'] = 'Bỏ kích hoạt tất cả'; 
    799797$lang['Restore'] = 'Phục hồi'; 
  • trunk/language/zh_CN/admin.lang.php

    r11984 r12029  
    787787$lang['Activate icon "new" next to albums and pictures'] = '激活相册和图片旁边的"新建"图标'; 
    788788$lang['Add a criteria'] = '添加一个条件'; 
    789 $lang['Compact'] = '简洁'; 
    790 $lang['Complete'] = '完整'; 
    791789$lang['Deactivate all'] = '解除所有'; 
    792790$lang['Default photos order'] = '默认相片排序'; 
Note: See TracChangeset for help on using the changeset viewer.