Changeset 16172
- Timestamp:
- Jun 29, 2012, 11:24:13 AM (12 years ago)
- Location:
- extensions/ExtendedDescription
- Files:
-
- 5 added
- 1 deleted
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/ExtendedDescription/admin.inc.php
r7420 r16172 4 4 5 5 add_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');6 add_event_handler('loc_begin_admin_page', 'add_ed_help'); 7 7 8 function add_ed_ js()8 function add_ed_help() 9 9 { 10 10 global $page, $template; 11 11 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 } 13 39 14 if (!isset($page['page']) or !in_array($page['page'], $change)) return; 15 16 load_language('plugin.lang', EXTENDED_DESC_PATH); 40 function add_ed_help_prefilter($content) 41 { 42 global $template; 43 $themeconf = $template->get_template_vars('themeconf'); 17 44 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); 21 51 } 22 52 -
extensions/ExtendedDescription/language/ar_SA/help.html
r8694 r16172 1 <div style="text-align:left;"> 1 2 <h2>اضافة الوصف</h2> 2 3 … … 118 119 </ul> 119 120 <p>يحولك الى صفحة بحث في معرضك حيث xx هو معرف البحث</p> 121 </div> -
extensions/ExtendedDescription/language/ca_ES/help.html
r14587 r16172 1 <div style="text-align:left;"> 1 2 <h2>Extended Description (Descripció ampliada)</h2> 2 3 … … 107 108 </ul> 108 109 <p>Redirigeix a una pà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;"> 1 2 <h2>Rozšířený popis</h2> 2 3 … … 106 107 </ul> 107 108 <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;"> 1 2 <h2>Ausführliche Beschreibung </h2> 2 3 … … 107 108 <p>Leitet auf eine Suchseite Ihrer Galerie weiter, wo xx die Such-ID 108 109 ist.</p> 110 </div> -
extensions/ExtendedDescription/language/el_GR/help.html
r15714 r16172 1 <div style="text-align:left;"> 1 2 <h2>Εκτεταμένη Περιγραφή</h2> 2 3 … … 107 108 </ul> 108 109 <p>Ανακατεύθυνση στη σελίδα αναζήτησης της γκαλερί σας όπου xx είναι το αναγνωριστικό αναζήτησης.</p> 110 </div> -
extensions/ExtendedDescription/language/en_UK/help.html
r11384 r16172 1 <div style="text-align:left;"> 1 2 <h2>Extended Description</h2> 2 3 … … 7 8 <ul> 8 9 <li><b>Example</b>:<br> 9 <br>10 10 <code>[lang=default] default description [/lang]<br> 11 11 [lang=en] description in english [/lang]<br> … … 31 31 32 32 <ul> 33 <li><b> tag<!--more--></b></li>33 <li><b><!--more--></b></li> 34 34 </ul> 35 35 <code>short description <!--more--> long description</code> … … 37 37 38 38 <ul> 39 <li><b> tag<!--complete--></b></li>39 <li><b><!--complete--></b></li> 40 40 </ul> 41 41 <code>short description <!--complete--> long description</code> … … 43 43 44 44 <ul> 45 <li><b> tag<!--up-down--></b></li>45 <li><b><!--up-down--></b></li> 46 46 </ul> 47 47 <code>top description <!--up-down--> bottom description</code> 48 48 <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> 49 49 50 <h3>Insert a album or a photo</h3>50 <h3>Insert an album or a photo</h3> 51 51 52 52 <ul> 53 <li><b> tag[cat=xx]</b></li>53 <li><b>[cat=xx]</b></li> 54 54 </ul> 55 55 <p>This tag inserts a album in the description, where xx is the album identifier.</p> 56 56 57 57 <ul> 58 <li><b> tag[img=xx1 xx2 xxN;yyyy;name]</b></li>58 <li><b>[img=xx1 xx2 xxN;yyyy;name]</b></li> 59 59 </ul> 60 60 <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 <title> 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 <title> 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> 65 79 66 80 67 <h3>Hide a album</h3>81 <h3>Hide an album</h3> 68 82 69 83 <p>Use tag <b><!--hidden--></b> in the album name:<br> … … 72 86 - it remains visible in the album menu</p> 73 87 74 <h3>Hide a album inmenu</h3>88 <h3>Hide an album from the menu</h3> 75 89 76 90 <p>Use tag <b><!--mb-hidden--></b> in the album name:<br> … … 107 121 </ul> 108 122 <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;"> 1 2 <h2>Extended Description</h2> 2 3 … … 113 114 </ul> 114 115 <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;"> 1 2 <h2>Extended Description</h2> 2 3 … … 8 9 <ul> 9 10 <li><b>Exemple d'utilisation</b>:<br> 10 <br>11 11 <code>[lang=default] description par défaut [/lang]<br> 12 12 [lang=fr] description en francais [/lang]<br> … … 33 33 34 34 <ul> 35 <li><b> Balise<!--more--></b></li>35 <li><b><!--more--></b></li> 36 36 </ul> 37 37 <code>description réduite <!--more--> description détaillée</code> … … 40 40 41 41 <ul> 42 <li><b> Balise<!--complete--></b></li>42 <li><b><!--complete--></b></li> 43 43 </ul> 44 44 <code>description réduite <!--complete--> description détaillée</code> … … 47 47 48 48 <ul> 49 <li><b> Balise<!--up-down--></b></li>49 <li><b><!--up-down--></b></li> 50 50 </ul> 51 51 <code>description haute <!--up-down--> description basse</code> … … 57 57 58 58 <ul> 59 <li><b> Balise[cat=xx]</b></li>59 <li><b>[cat=xx]</b></li> 60 60 </ul> 61 61 <p>Cette balise permet d'insérer un album dans la description, avec xx le numéro de l'album</p> 62 62 63 63 <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> 65 65 </ul> 66 66 <p>Cette balise permet d'insérer une ou plusieurs vignettes dans la description, avec :<br><br> 67 67 - 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/> 71 69 - 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><title></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> 72 85 73 86 <h3>Masquer un album</h3> 74 87 75 <p> On met la balise <b><!--hidden--></b> dans le nom de l'album :<br>88 <p>Balise <b><!--hidden--></b> dans le nom de l'album :<br> 76 89 <br> 77 90 - celui-ci ne sera plus affichée sur la page de l'album parent<br> … … 80 93 <h3>Masquer un album dans le menu</h3> 81 94 82 <p> On met la balise <b><!--mb-hidden--></b> dans le nom de l'album :<br>95 <p>Balise <b><!--mb-hidden--></b> dans le nom de l'album :<br> 83 96 <br> 84 97 - celui-ci ne sera plus affichée dans le menu des albums<br> … … 87 100 <h3>Masquer une photo</h3> 88 101 89 <p> On met la balise <b><!--hidden--></b> dans le nom de la photo :<br>102 <p>Balise <b><!--hidden--></b> dans le nom de la photo :<br> 90 103 <br> 91 104 - celle-ci ne sera plus affichée sur la page des vignettes<br> 92 105 - elle reste néanmoins visible au sein de l'album</p> 93 106 94 <h3>Album redirigé e</h3>107 <h3>Album redirigé</h3> 95 108 96 109 <ul> … … 113 126 </ul> 114 127 <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;"> 1 2 <h2>Kiterjesztett leírás</h2> 2 3 … … 108 109 </ul> 109 110 <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;"> 1 2 <h2>Extended Description</h2> 2 3 … … 113 114 </ul> 114 115 <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;"> 1 2 <h2>Paplašinātais Apraksts</h2> 2 3 … … 105 106 </ul> 106 107 <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;"> 1 2 <h2>Utvidet beskrivelse</h2> 2 3 … … 119 120 </ul> 120 121 <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;"> 1 2 <h2>Uitgebreide omschrijving</h2> 2 3 … … 125 126 </ul> 126 127 <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;"> 1 2 <h2>Rozszerzony Opis</h2> 2 3 … … 106 107 </ul> 107 108 <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;"> 1 2 <h2> Descrição extensa </h2> 2 3 … … 105 106 </ul> 106 107 <p> Redirecionar para uma página de pesquisa da sua galeria; onde xx é o identificador de busca. </p> 108 </div> -
extensions/ExtendedDescription/language/ru_RU/help.html
r14165 r16172 1 <div style="text-align:left;"> 1 2 <h2>Расширенное описание</h2> 2 3 … … 105 106 </ul> 106 107 <p>Перенаправление на поисковую страницу Вашей галереи, где xx - поисковый идентификатор.</p> 108 </div> -
extensions/ExtendedDescription/language/sk_SK/help.html
r10560 r16172 1 <div style="text-align:left;"> 1 2 <h2>Rozšírený popis</h2> 2 3 … … 110 111 <p>Presmerovanie na vyhľadávaciu stránku Vašej galérie, kde xx je 111 112 identifikátor vyhľadávnia.</p> 112 113 </div> -
extensions/ExtendedDescription/language/sv_SE/help.html
r9689 r16172 1 <div style="text-align:left;"> 1 2 <h2>Utvidgad beskrivning</h2> 2 3 … … 106 107 </ul> 107 108 <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;"> 1 2 <h2>Genişletilmiş Açıklama</h2> 2 3 … … 106 107 </ul> 107 108 <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;"> 1 2 <h2>Розширений опис</h2> 2 3 … … 107 108 </ul> 108 109 <p>Переадресація на сторінку пошуку з галереї, де xx є пошуковим ідентифікатором.</p> 110 </div> -
extensions/ExtendedDescription/language/vi_VN/help.html
r10658 r16172 1 <div style="text-align:left;"> 1 2 <h2>Mô tả mở rộng</h2> 2 3 … … 107 108 </ul> 108 109 <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;"> 1 2 <h2>扩展描述</h2> 2 3 … … 106 107 </ul> 107 108 <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.