Changeset 16172


Ignore:
Timestamp:
Jun 29, 2012, 11:24:13 AM (12 years ago)
Author:
mistic100
Message:

-help buttons added with a prefilter, update for 2.4
-update fr and en help files (only)

Location:
extensions/ExtendedDescription
Files:
5 added
1 deleted
23 edited

Legend:

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

    r7420 r16172  
    44
    55add_event_handler('get_popup_help_content', 'extended_desc_popup', EVENT_HANDLER_PRIORITY_NEUTRAL, 2);
    6 add_event_handler('loc_end_page_tail', 'add_ed_js');
     6add_event_handler('loc_begin_admin_page', 'add_ed_help');
    77
    8 function add_ed_js()
     8function add_ed_help()
    99{
    1010  global $page, $template;
    1111 
    12   $change = array('cat_modify', 'picture_modify', 'configuration', 'notification_by_mail');
     12  $target = null;
     13  switch ($page['page'])
     14  {
     15    case 'album':
     16      $target = 'album_properties';
     17      break;
     18    case 'photo':
     19      $target = 'picture_modify';
     20      break;
     21    case 'configuration':
     22      $target = 'config';
     23      break;
     24    case 'notification_by_mail':
     25      $target = 'notification_by_mail';
     26      break;
     27    case 'plugin':
     28      if ($_GET['section'] == 'AdditionalPages/admin.php') $target = 'plugin_admin_content';
     29      if ($_GET['section'] == 'header_manager/admin.php')  $target = 'header_manager';
     30      break;
     31  }
     32 
     33  if (!empty($target))
     34  {
     35    load_language('plugin.lang', EXTENDED_DESC_PATH);
     36    $template->set_prefilter($target, 'add_ed_help_prefilter');
     37  }
     38}
    1339
    14   if (!isset($page['page']) or !in_array($page['page'], $change)) return;
    15 
    16   load_language('plugin.lang', EXTENDED_DESC_PATH);
     40function add_ed_help_prefilter($content)
     41{
     42  global $template;
     43  $themeconf = $template->get_template_vars('themeconf');
    1744 
    18   $template->assign('ed_page', $page['page']);
    19   $template->set_filename('add_ed_popup', dirname(__FILE__) . '/template/add_popup.tpl');
    20   $template->append('footer_elements', $template->parse('add_ed_popup', true));
     45  $search = '</textarea>';
     46  $add = '
     47{combine_script id=\'core.scripts\' load=\'async\' path=\'themes/default/js/scripts.js\'}
     48<a href="./admin/popuphelp.php?page=extended_desc" onclick="popuphelp(this.href); return false;" title="'.l10n('ExtendedDesc_help').'" style="vertical-align: middle; border: 0; margin: 0.5em;"><img src="'.$themeconf['admin_icon_dir'].'/help.png" class="button" alt="'.l10n('ExtendedDesc_help').'"></a>';
     49 
     50  return str_replace($search, $search.$add, $content);
    2151}
    2252
  • extensions/ExtendedDescription/language/ar_SA/help.html

    r8694 r16172  
     1<div style="text-align:left;">
    12<h2>اضافة الوصف</h2>
    23
     
    118119</ul>
    119120<p>يحولك الى صفحة بحث في معرضك حيث xx هو معرف البحث</p>
     121</div>
  • extensions/ExtendedDescription/language/ca_ES/help.html

    r14587 r16172  
     1<div style="text-align:left;">
    12<h2>Extended Description (Descripci&oacute; ampliada)</h2>
    23
     
    107108</ul>
    108109<p>Redirigeix a una p&agrave;gina de cerca de la galeria (substitueix xx per l'identificador de cerca)'.</p>
     110</div>
  • extensions/ExtendedDescription/language/cs_CZ/help.html

    r10731 r16172  
     1<div style="text-align:left;">
    12<h2>Rozšířený popis</h2>
    23
     
    106107</ul>
    107108<p>Směruje na vyhledávací stránku ve vaší fotogalerii kde xx je ID daného vyhledávání.</p>
     109</div>
  • extensions/ExtendedDescription/language/de_DE/help.html

    r8649 r16172  
     1<div style="text-align:left;">
    12<h2>Ausf&uuml;hrliche Beschreibung </h2>
    23
     
    107108<p>Leitet auf eine Suchseite Ihrer Galerie weiter, wo xx die Such-ID
    108109ist.</p>
     110</div>
  • extensions/ExtendedDescription/language/el_GR/help.html

    r15714 r16172  
     1<div style="text-align:left;">
    12<h2>Εκτεταμένη Περιγραφή</h2>
    23
     
    107108</ul>
    108109<p>Ανακατεύθυνση στη σελίδα αναζήτησης της γκαλερί σας όπου xx είναι το αναγνωριστικό αναζήτησης.</p>
     110</div>
  • extensions/ExtendedDescription/language/en_UK/help.html

    r11384 r16172  
     1<div style="text-align:left;">
    12<h2>Extended Description</h2>
    23
     
    78<ul>
    89  <li><b>Example</b>:<br>
    9   <br>
    1010<code>[lang=default] default description [/lang]<br>
    1111[lang=en] description in english [/lang]<br>
     
    3131
    3232<ul>
    33   <li><b>tag &lt;!--more--&gt;</b></li>
     33  <li><b>&lt;!--more--&gt;</b></li>
    3434</ul>
    3535<code>short description &lt;!--more--&gt; long description</code>
     
    3737
    3838<ul>
    39   <li><b>tag &lt;!--complete--&gt;</b></li>
     39  <li><b>&lt;!--complete--&gt;</b></li>
    4040</ul>
    4141<code>short description &lt;!--complete--&gt; long description</code>
     
    4343
    4444<ul>
    45   <li><b>tag &lt;!--up-down--&gt;</b></li>
     45  <li><b>&lt;!--up-down--&gt;</b></li>
    4646</ul>
    4747<code>top description &lt;!--up-down--&gt; bottom description</code>
    4848<p>Only the top description is displayed outside the album.  On the album page, the top description is displayed above the thumbnails, the bottom description is displayed below the thumbnails.</p>
    4949
    50 <h3>Insert a album or a photo</h3>
     50<h3>Insert an album or a photo</h3>
    5151
    5252<ul>
    53   <li><b>tag [cat=xx]</b></li>
     53  <li><b>[cat=xx]</b></li>
    5454</ul>
    5555<p>This tag inserts a album in the description, where xx is the album identifier.</p>
    5656
    5757<ul>
    58   <li><b>tag [img=xx1 xx2 xxN;yyyy;name]</b></li>
     58  <li><b>[img=xx1 xx2 xxN;yyyy;name]</b></li>
    5959</ul>
    6060<p>This tag allows to insert one or more thumbnail in the description, with:<br><br>
    61 - xx the photo identifier; you can add the album identifier next to the photo identifier: <code>xx.ccc</code>.
    62 <br>
    63 - yyyy (optional) : can take any value among {left, right}.</p>
    64 - name (optional) : can take any value among {name, titleName}. If tagged, with <i>name</i> the name of the picture is diplayed under the thumbnail, with <i>titleName</i> the photo markup &lt;title&gt; is fill with the name.</p>
     61- <code>xx</code> the photo identifier; you can add the album identifier next to the photo identifier: <code>xx.ccc</code>.<br>
     62- <code>yyyy</code> (optional) : can take any value among <i>{left, right}</i>.<br>
     63- <code>name</code> (optional) : can take any value among <i>{name, titleName}</i>. If tagged, with <i>name</i> the name of the picture is diplayed under the thumbnail, with <i>titleName</i> the photo markup &lt;title&gt; is fill with the name.</p>
     64
     65<ul>
     66  <li><b>[photo id=xx album=yy size=M html=yes link=yes]</b></li>
     67</ul>
     68<p>This tag allows to insert one picture at any size you want, with:<br><br>
     69- <code>id</code> the photo identifier<br>
     70- <code>album</code> (optional) the parent album identifier<br>
     71- <code>size</code> (optional) the size of the photo, among <i>{SQ, TH, XXS, S, M, L, XL, XXL}</i><br>
     72- <code>html</code> (optional) if set to <i>no</i> the tag only returns the URL of the photo, without HTML<br>
     73- <code>link</code> (optional) if set to <i>yes</i> the photo is wrapped into a link to the picture page</p>
     74
     75<ul>
     76  <li><b>[random album=yy size=M html=yes link=yes]</b></li>
     77</ul>
     78<p>Same thin as above, except that the photo is choosed randomly into <code>album</code></p>
    6579
    6680
    67 <h3>Hide a album</h3>
     81<h3>Hide an album</h3>
    6882
    6983<p>Use tag <b>&lt;!--hidden--&gt;</b> in the album name:<br>
     
    7286- it remains visible in the album menu</p>
    7387
    74 <h3>Hide a album in menu</h3>
     88<h3>Hide an album from the menu</h3>
    7589
    7690<p>Use tag <b>&lt;!--mb-hidden--&gt;</b> in the album name:<br>
     
    107121</ul>
    108122<p>Redirect to a search page of your gallery where xx is the search identifier.</p>
     123</div>
  • extensions/ExtendedDescription/language/es_ES/help.html

    r9307 r16172  
     1<div style="text-align:left;">
    12<h2>Extended Description</h2>
    23
     
    113114</ul>
    114115<p>Redirige a una página de búsqueda de la galería (sustituya xx por el identificador de la búsqueda)'.</p>
     116</div>
  • extensions/ExtendedDescription/language/fr_FR/help.html

    r11384 r16172  
     1<div style="text-align:left;">
    12<h2>Extended Description</h2>
    23
     
    89<ul>
    910  <li><b>Exemple d'utilisation</b>:<br>
    10   <br>
    1111<code>[lang=default] description par défaut [/lang]<br>
    1212[lang=fr] description en francais [/lang]<br>
     
    3333
    3434<ul>
    35   <li><b>Balise &lt;!--more--&gt;</b></li>
     35  <li><b>&lt;!--more--&gt;</b></li>
    3636</ul>
    3737<code>description réduite &lt;!--more--&gt; description détaillée</code>
     
    4040
    4141<ul>
    42   <li><b>Balise &lt;!--complete--&gt;</b></li>
     42  <li><b>&lt;!--complete--&gt;</b></li>
    4343</ul>
    4444<code>description réduite &lt;!--complete--&gt; description détaillée</code>
     
    4747
    4848<ul>
    49   <li><b>Balise &lt;!--up-down--&gt;</b></li>
     49  <li><b>&lt;!--up-down--&gt;</b></li>
    5050</ul>
    5151<code>description haute &lt;!--up-down--&gt; description basse</code>
     
    5757
    5858<ul>
    59   <li><b>Balise [cat=xx]</b></li>
     59  <li><b>[cat=xx]</b></li>
    6060</ul>
    6161<p>Cette balise permet d'insérer un album dans la description, avec xx le numéro de l'album</p>
    6262
    6363<ul>
    64   <li><b>Balise [img=xx1 xx2 xx3 xxN;yyyy;name]</b></li>
     64  <li><b>[img=xx1 xx2 xx3 xxN;yyyy;name]</b></li>
    6565</ul>
    6666<p>Cette balise permet d'insérer une ou plusieurs vignettes dans la description, avec :<br><br>
    6767- xx le numéro de la photo ; il est possible de préciser le numéro de l'album parent après le numéro : <code>xx.ccc</code>.<br/>
    68 <br/>
    69 - yyyy (facultatif) prend soit la valeur <i>left</i>, soit la valeur <i>right</i> et permet de positionner la vignette de l'image sur la droite ou la gauche.
    70 <br/>
     68- yyyy (facultatif) prend soit la valeur <i>left</i>, soit la valeur <i>right</i> et permet de positionner la vignette de l'image sur la droite ou la gauche.<br/>
    7169- name (facultatif) prend soit la valeur <i>name</i>, soit la valeur <i>titleName</i> ; avec <i>name</i> le nom de la photo sera affiché sous la vignette, avec <i>titleName</i> le nom de la photo est renseigné dans la balise <i>&lt;title&gt;</i> de celle-ci.</p>
     70
     71<ul>
     72  <li><b>[photo id=xx album=yy size=M html=yes link=yes]</b></li>
     73</ul>
     74<p>Cetet balise permet d'insérer une photo de n'importe quelle taille, avec:<br><br>
     75- <code>id</code> le numéro de la photo<br>
     76- <code>album</code> (optional) le numéro de l'album parent<br>
     77- <code>size</code> (optional) la taille de la photo, parmi <i>{SQ, TH, XXS, S, M, L, XL, XXL}</i><br>
     78- <code>html</code> (optional) si <i>no</i>, la balise ne retourne que l'URL de la photo, sans HTML<br>
     79- <code>link</code> (optional) si <i>yes</i>, la photo est cliquable, vers sa page</p>
     80
     81<ul>
     82  <li><b>[random album=yy size=M html=yes link=yes]</b></li>
     83</ul>
     84<p>Même chose, sauf que la photo est prise aléatoirement dans <code>album</code></p>
    7285
    7386<h3>Masquer un album</h3>
    7487
    75 <p>On met la balise <b>&lt;!--hidden--&gt;</b> dans le nom de l'album :<br>
     88<p>Balise <b>&lt;!--hidden--&gt;</b> dans le nom de l'album :<br>
    7689<br>
    7790- celui-ci ne sera plus affichée sur la page de l'album parent<br>
     
    8093<h3>Masquer un album dans le menu</h3>
    8194
    82 <p>On met la balise <b>&lt;!--mb-hidden--&gt;</b> dans le nom de l'album :<br>
     95<p>Balise <b>&lt;!--mb-hidden--&gt;</b> dans le nom de l'album :<br>
    8396<br>
    8497- celui-ci ne sera plus affichée dans le menu des albums<br>
     
    87100<h3>Masquer une photo</h3>
    88101
    89 <p>On met la balise <b>&lt;!--hidden--&gt;</b> dans le nom de la photo :<br>
     102<p>Balise <b>&lt;!--hidden--&gt;</b> dans le nom de la photo :<br>
    90103<br>
    91104- celle-ci ne sera plus affichée sur la page des vignettes<br>
    92105- elle reste néanmoins visible au sein de l'album</p>
    93106
    94 <h3>Album redirigée</h3>
     107<h3>Album redirigé</h3>
    95108
    96109<ul>
     
    113126</ul>
    114127<p>Redirige vers une page de recherche de votre galerie où xx est l'identifiant de la page de recherche.</p>
     128</div>
  • extensions/ExtendedDescription/language/hu_HU/help.html

    r8314 r16172  
     1<div style="text-align:left;">
    12<h2>Kiterjesztett leírás</h2>
    23
     
    108109</ul>
    109110<p>Redirect to a search page of your gallery where xx is the search identifier.</p>
     111</div>
  • extensions/ExtendedDescription/language/it_IT/help.html

    r11399 r16172  
     1<div style="text-align:left;">
    12<h2>Extended Description</h2>
    23
     
    113114</ul>
    114115<p>Reindirizza verso una pagina di ricerca della galleria dove xx è l'ID della pagina di ricerca.</p>
     116</div>
  • extensions/ExtendedDescription/language/lv_LV/help.html

    r8342 r16172  
     1<div style="text-align:left;">
    12<h2>Paplašinātais Apraksts</h2>
    23
     
    105106</ul>
    106107<p>Novirzīt uz jūsu galerijas meklēšanas lapu, kur xx ir meklēšanas identifikators.</p>
     108</div>
  • extensions/ExtendedDescription/language/nb_NO/help.html

    r8876 r16172  
     1<div style="text-align:left;">
    12<h2>Utvidet beskrivelse</h2>
    23
     
    119120</ul>
    120121<p>Videresender til en søke side i ditt galleri der xx er søke identifikatoren.</p>
     122</div>
  • extensions/ExtendedDescription/language/nl_NL/help.html

    r14059 r16172  
     1<div style="text-align:left;">
    12<h2>Uitgebreide omschrijving</h2>
    23
     
    125126</ul>
    126127<p>Verwijs naar een zoek pagina van je gallerie waar xx het zoek ID is.</p>
     128</div>
  • extensions/ExtendedDescription/language/pl_PL/help.html

    r11483 r16172  
     1<div style="text-align:left;">
    12<h2>Rozszerzony Opis</h2>
    23
     
    106107</ul>
    107108<p>Spowoduje przekierowanie na konkretną stronę wyszukiwarki w galerii, gdzie xx to identyfikator wyszukiwania.</p>
     109</div>
  • extensions/ExtendedDescription/language/pt_PT/help.html

    r14131 r16172  
     1<div style="text-align:left;">
    12<h2> Descri&ccedil;&atilde;o extensa </h2>
    23
     
    105106</ul>
    106107<p> Redirecionar para uma p&aacute;gina de pesquisa da sua galeria; onde xx &eacute; o identificador de busca. </p>
     108</div>
  • extensions/ExtendedDescription/language/ru_RU/help.html

    r14165 r16172  
     1<div style="text-align:left;">
    12<h2>Расширенное описание</h2>
    23
     
    105106</ul>
    106107<p>Перенаправление на поисковую страницу Вашей галереи, где xx - поисковый идентификатор.</p>
     108</div>
  • extensions/ExtendedDescription/language/sk_SK/help.html

    r10560 r16172  
     1<div style="text-align:left;">
    12<h2>Rozšírený popis</h2>
    23
     
    110111<p>Presmerovanie na vyhľadávaciu stránku Vašej galérie, kde xx je
    111112identifikátor vyhľadávnia.</p>
    112 
     113</div>
  • extensions/ExtendedDescription/language/sv_SE/help.html

    r9689 r16172  
     1<div style="text-align:left;">
    12<h2>Utvidgad beskrivning</h2>
    23
     
    106107</ul>
    107108<p>Omdirigering till en sökning på ditt galleri där xx är sök ID.</p>
     109</div>
  • extensions/ExtendedDescription/language/tr_TR/help.html

    r11532 r16172  
     1<div style="text-align:left;">
    12<h2>Genişletilmiş Açıklama</h2>
    23
     
    106107</ul>
    107108<p>xx tanımlayıcısı ile galerinizdeki bir arama sayfasına yönledirme yapılır.</p>
     109</div>
  • extensions/ExtendedDescription/language/uk_UA/help.html

    r13733 r16172  
     1<div style="text-align:left;">
    12<h2>Розширений опис</h2>
    23
     
    107108</ul>
    108109<p>Переадресація на сторінку пошуку з галереї, де xx є пошуковим ідентифікатором.</p>
     110</div>
  • extensions/ExtendedDescription/language/vi_VN/help.html

    r10658 r16172  
     1<div style="text-align:left;">
    12<h2>Mô tả mở rộng</h2>
    23
     
    107108</ul>
    108109<p>Điều hướng đến một trang tìm kiếm của thư viện bạn ở vị trí xx là ký hiệu định danh tìm kiếm.</p>
     110</div>
  • extensions/ExtendedDescription/language/zh_CN/help.html

    r8314 r16172  
     1<div style="text-align:left;">
    12<h2>扩展描述</h2>
    23
     
    106107</ul>
    107108<p>Redirect to a search page of your gallery where xx is the search identifier.</p>
     109</div>
Note: See TracChangeset for help on using the changeset viewer.