slitaz-dev-tools rev 254

tazwikiss/index.sh: add audio & video support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 25 09:54:30 2016 +0200 (2016-05-25)
parents 869d3bc4d3a6
children 81bd63f2a1a1
files tazwikiss/rootfs/var/www/wiki/index.sh tazwikiss/rootfs/var/www/wiki/pages/Aide.txt tazwikiss/rootfs/var/www/wiki/pages/Help.txt
line diff
     1.1 --- a/tazwikiss/rootfs/var/www/wiki/index.sh	Wed Mar 30 01:31:12 2016 +0300
     1.2 +++ b/tazwikiss/rootfs/var/www/wiki/index.sh	Wed May 25 09:54:30 2016 +0200
     1.3 @@ -353,6 +353,8 @@
     1.4  			-e "s#\[\($rg_img_http\)|\($rg_link_local\)|*\([a-z]*\)*\]#<a href=\"\2\" class=\"url\"><img src=\"\1\" alt=\"\1\" title=\"\1\"style=\"float:\3;\"/></a>#g" \
     1.5  			-e "s#\[\($rg_img_local\)|\($rg_link_http\)|*\([a-z]*\)*\]#<a href=\"\2\" class=\"url\"><img src=\"\1\" alt=\"\1\" title=\"\1\"style=\"float:\3;\"/></a>#g" \
     1.6  			-e "s#\[\($rg_img_local\)|\($rg_link_local\)|*\([a-z]*\)*\]#<a href=\"\2\" class=\"url\"><img src=\"\1\" alt=\"\1\" title=\"\1\"style=\"float:\3;\"/></a>#g" \
     1.7 +			-e "s#\[!\(video\|audio\)|\($rg_link_http\)\]#<\1 src=\"\2\" controls></\1>#" \
     1.8 +			-e "s#\[!\(video\|audio\)|\($rg_link_local\)\]#<\1 src=\"\2\" controls></\1>#" \
     1.9  			-e "s#\[\([^]]*\)|\($rg_link_http\)\]#<a href=\"\2\" class=\"url\">\1</a>#g" \
    1.10  			-e "s#\[\([^]]*\)|\($rg_link_local\)\]#<a href=\"\2\" class=\"url\">\1</a>#g" \
    1.11  			-e "s#\[\($rg_link_http\)\]#<a href=\"\1\" class=\"url\">\1</a>#g" \
     2.1 --- a/tazwikiss/rootfs/var/www/wiki/pages/Aide.txt	Wed Mar 30 01:31:12 2016 +0300
     2.2 +++ b/tazwikiss/rootfs/var/www/wiki/pages/Aide.txt	Wed May 25 09:54:30 2016 +0200
     2.3 @@ -62,6 +62,9 @@
     2.4  
     2.5  avec un ? on fait un lien vers Wikipedia dans la langue courante :
     2.6  '''^[?'''Wiki''']''' --> [?Wiki]
     2.7 +
     2.8 +avec un ! on obtient un lecteur intégré pour l' '''audio''' ou la '''video''' :
     2.9 +* '''^[!'''video'''|'''^http://video.webmfiles.org/big-buck-bunny_trailer.webm''']''' --> [!video|http://video.webmfiles.org/big-buck-bunny_trailer.webm]
    2.10  ----
    2.11  Les images sont incluses automagiquement en insérant l'URL de l'image que vous voulez voir entre crochets
    2.12  '''^['''^http://wikiss.tuxfamily.org/img/logo_100.png''']''' -->
     3.1 --- a/tazwikiss/rootfs/var/www/wiki/pages/Help.txt	Wed Mar 30 01:31:12 2016 +0300
     3.2 +++ b/tazwikiss/rootfs/var/www/wiki/pages/Help.txt	Wed May 25 09:54:30 2016 +0200
     3.3 @@ -98,6 +98,9 @@
     3.4  with a ? you get a Wikipedia link in the current language :
     3.5  * '''^[?'''Wiki''']''' --> [?Wiki]
     3.6  
     3.7 +with ! you get an embedded player for '''audio''' or '''video''' :
     3.8 +* '''^[!'''video'''|'''^http://video.webmfiles.org/big-buck-bunny_trailer.webm''']''' --> [!video|http://video.webmfiles.org/big-buck-bunny_trailer.webm]
     3.9 +
    3.10  ----
    3.11  
    3.12  Images are automagically inserted with the picture URL between square brackets