Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
* Add "Prev" & "Next" link with individual articles;
* Finalize translation given: English, German, Spanish, Italian and French;
* Add a screenshot from IE8.
  • Loading branch information
cara-tm committed Nov 12, 2019
1 parent f1bcf9f commit 32f1006
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 17 deletions.
2 changes: 1 addition & 1 deletion dist/forms/article/default.txp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<article class="cf cb"><header class="cf"><h2 class="lr tc" id="main-title"><txp:title /><txp:if_logged_in> <i class="edit"><a href="<txp:php>echo ahu;</txp:php>index.php?event=article&step=edit&ID=<txp:article_id />"><txp:text item="edit" /></a></i></txp:if_logged_in></h2><p rel="tag" class="g tc"><txp:if_category category='<txp:category1 />'>#<txp:category1 title="1" /></txp:if_category> <txp:if_category category='<txp:category2 />'>#<txp:category2 title="1" /></txp:if_category></p></header><div class="l"><txp:if_article_image><div class="c z"><figure class="b"><picture class="s p"><txp:images break=""><img src="<txp:image_url link='0' />" width="<txp:image_info type="w" />" height="<txp:image_info type="h" />" alt="<txp:image_info type='alt' />" class="p" /></picture><figcaption class="tr g"><txp:image_info type="caption" escape="tidy" /></figcaption></figure></div></txp:images></txp:if_article_image><div class="c<txp:if_article_image> z<txp:else /> v</txp:if_article_image>"><txp:body /> <footer class="footer"><txp:evaluate test='<txp:body />'><txp:else /><txp:evaluate test='<txp:variable name="twitter" />'><txp:else /><txp:variable name="comment" /><i class="x">:</i> <a href="http://twitter.com/intent/tweet?text=<txp:variable name="twitter" trim />%20(<txp:site_url />index.php?id=<txp:article_id />)" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#1da1f2"><path d="M24 4.37a9.6 9.6 0 0 1-2.83.8 5.04 5.04 0 0 0 2.17-2.8c-.95.58-2 1-3.13 1.22A4.86 4.86 0 0 0 16.61 2a4.99 4.99 0 0 0-4.79 6.2A13.87 13.87 0 0 1 1.67 2.92 5.12 5.12 0 0 0 3.2 9.67a4.82 4.82 0 0 1-2.23-.64v.07c0 2.44 1.7 4.48 3.95 4.95a4.84 4.84 0 0 1-2.22.08c.63 2.01 2.45 3.47 4.6 3.51A9.72 9.72 0 0 1 0 19.74 13.68 13.68 0 0 0 7.55 22c9.06 0 14-7.7 14-14.37v-.65c.96-.71 1.79-1.6 2.45-2.61z"></path></g><foreignObject width="0" height="0" overflow="hidden">Twitter</foreignObject></switch></svg></a></txp:evaluate></txp:evaluate><hr /><small><txp:variable name="published_on" /><i class="x">:</i> <time datetime="<txp:posted format="iso8601" />"><txp:posted format="%d %m %Y" /></time> <txp:evaluate test='<txp:modified />'><txp:else />(<txp:variable name="modified_on" /><i class="x">:</i> <time datetime="<txp:modified format="iso8601" />"><txp:modified format="%d %m %Y" /></time>)</txp:evaluate>. <txp:variable name="author" /><i class="x">:</i> <txp:author />.</small></footer></div></div></article>
<article class="cf cb"><header class="cf"><h2 class="lr tc" id="main-title"><txp:title /><txp:if_logged_in> <i class="edit"><a href="<txp:php>echo ahu;</txp:php>index.php?event=article&step=edit&ID=<txp:article_id />"><txp:text item="edit" /></a></i></txp:if_logged_in></h2><p rel="tag" class="g tc"><span class="prev"><txp:link_to_prev showallays="0">P<txp:variable name="prev" /></txp:link_to_prev></span> <span class="r"><txp:link_to_next showallays="0">N<txp:variable name="next" /></txp:link_to_next></span> <txp:if_category category='<txp:category1 />'>#<txp:category1 title="1" /></txp:if_category> <txp:if_category category='<txp:category2 />'>#<txp:category2 title="1" /></txp:if_category></p></header><div class="l"><txp:if_article_image><div class="c z"><figure class="b"><picture class="s p"><txp:images break=""><img src="<txp:image_url link='0' />" width="<txp:image_info type="w" />" height="<txp:image_info type="h" />" alt="<txp:image_info type='alt' />" class="p" /></picture><figcaption class="tr g"><txp:image_info type="caption" escape="tidy" /></figcaption></figure></div></txp:images></txp:if_article_image><div class="c<txp:if_article_image> z<txp:else /> v</txp:if_article_image>"><txp:body /> <footer class="footer"><txp:evaluate test='<txp:body />'><txp:else /><txp:evaluate test='<txp:variable name="twitter" />'><txp:else /><txp:variable name="comment" /><i class="x">:</i> <a href="http://twitter.com/intent/tweet?text=<txp:variable name="twitter" trim />%20(<txp:site_url />index.php?id=<txp:article_id />)" target="_blank"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#1da1f2"><path d="M24 4.37a9.6 9.6 0 0 1-2.83.8 5.04 5.04 0 0 0 2.17-2.8c-.95.58-2 1-3.13 1.22A4.86 4.86 0 0 0 16.61 2a4.99 4.99 0 0 0-4.79 6.2A13.87 13.87 0 0 1 1.67 2.92 5.12 5.12 0 0 0 3.2 9.67a4.82 4.82 0 0 1-2.23-.64v.07c0 2.44 1.7 4.48 3.95 4.95a4.84 4.84 0 0 1-2.22.08c.63 2.01 2.45 3.47 4.6 3.51A9.72 9.72 0 0 1 0 19.74 13.68 13.68 0 0 0 7.55 22c9.06 0 14-7.7 14-14.37v-.65c.96-.71 1.79-1.6 2.45-2.61z"></path></g><foreignObject width="0" height="0" overflow="hidden">Twitter</foreignObject></switch></svg></a></txp:evaluate></txp:evaluate><hr /><small><txp:variable name="published_on" /><i class="x">:</i> <time datetime="<txp:posted format="iso8601" />"><txp:posted format="%d %m %Y" /></time> <txp:evaluate test='<txp:modified />'><txp:else />(<txp:variable name="modified_on" /><i class="x">:</i> <time datetime="<txp:modified format="iso8601" />"><txp:modified format="%d %m %Y" /></time>)</txp:evaluate>. <txp:variable name="author" /><i class="x">:</i> <txp:author />.</small></footer></div></div></article>
49 changes: 34 additions & 15 deletions dist/forms/misc/shrink_text.txp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ switch ($_section) {
$more = 'Read more';
$variable['published_on'] = 'Published on';
$variable['modified_on'] = 'Modified on';
$variable['author'] = 'Author';
$variable['author'] = 'Written by';
$variable['comment'] = 'Comment via';
$variable['prev'] = 'Previous';
$variable['next'] = 'Next';
$variable['search'] = 'Write your search here';
$variable['tooltip'] = 'Write then press [Enter]';
$variable['search_title'] = 'Your Search Results';
Expand All @@ -79,8 +81,10 @@ switch ($_section) {
$more = 'Lire la suite';
$variable['published_on'] = 'Publié le';
$variable['modified_on'] = 'modifié le';
$variable['author'] = 'Auteur';
$variable['author'] = 'Rédigé par';
$variable['comment'] = 'Commenter via';
$variable['prev'] = 'Precédent';
$variable['next'] = 'Suivant';
$variable['search'] = 'Saisir votre recherche ici';
$variable['tooltip'] = 'Écrire puis touche [Entrée]';
$variable['search_title'] = 'Les résultats de votre recherche';
Expand All @@ -89,36 +93,51 @@ switch ($_section) {
case 'de':
$more = 'Weiterlesen';
$variable['published_on'] = 'Gepostet am';
$variable['modified_on'] = 'Modified on';
$variable['author'] = 'Autor';
$variable['comment'] = 'Comment via';
$variable['modified_on'] = 'Geändert am';
$variable['author'] = 'Geschrieben von';
$variable['comment'] = 'Kommentar über';
$variable['prev'] = 'Bisherige';
$variable['next'] = 'Nächster';
$variable['search'] = 'Schreiben Sie hier Ihre Suche';
$variable['tooltip'] = 'Schreiben Sie und [Enter]';
$variable['search_title'] = 'Your Search Results';
$variable['no_results'] = 'Sorry, no results found…';
$variable['search_title'] = 'Ihre Suchergebnisse';
$variable['no_results'] = 'Entschuldigung, keine Ergebnisse gefunden…';
break;
case 'es':
$more = 'Lee mas';
$variable['published_on'] = 'Publicado en';
$variable['modified_on'] = 'Modified on';
$variable['author'] = 'Autor';
$variable['comment'] = 'Comment via';
$variable['author'] = 'Escrito por';
$variable['comment'] = 'Comentario vía';
$variable['prev'] = 'Anterior';
$variable['next'] = 'Próximo';
$variable['search'] = 'Escribe tu búsqueda aquí';
$variable['tooltip'] = 'Escriba y luego presione [Entrar]';
$variable['search_title'] = 'Your Search Results';
$variable['no_results'] = 'Sorry, no results found…';
$variable['search_title'] = 'Sus resultados de búsqueda';
$variable['no_results'] = 'Lo sentimos, no se encontraron resultados…';
break;
case 'zh':
$more = '阅读更多';
$variable['search'] = '在这里写你的搜索';
case 'it':
$more = 'Leggi di più';
$variable['published_on'] = 'Pubblicato su';
$variable['modified_on'] = 'Modificato il';
$variable['author'] = 'Scrivi da';
$variable['comment'] = 'Commento via';
$variable['prev'] = 'Precedente';
$variable['next'] = 'Prossimo';
$variable['search'] = 'Scrivi qui la tua ricerca';
$variable['tooltip'] = 'Scrivi quindi premi [Invio]';
$variable['search_title'] = 'I tuoi risultati di ricerca';
$variable['no_results'] = 'Siamo spiacenti, nessun risultato trovato…';
break;

default:
$more = 'Read more';
$variable['published_on'] = 'Published on';
$variable['modified_on'] = 'Modified on';
$variable['author'] = 'Author';
$variable['author'] = 'Written by';
$variable['comment'] = 'Comment via';
$variable['prev'] = 'Previous';
$variable['next'] = 'Next';
$variable['search'] = 'Write your search here';
$variable['tooltip'] = 'Write then press [Enter]';
$variable['search_title'] = 'Your Search Results';
Expand Down
Loading

0 comments on commit 32f1006

Please sign in to comment.