add extern link

This commit is contained in:
François 2023-10-13 08:24:00 +02:00
parent 4ca0e4a0ba
commit 3305b88e4f
2 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
base tile base tile
author Francois Merciol author Francois Merciol
email dokuplugin@merciol.fr email dokuplugin@merciol.fr
date 2020-07-20 date 2023-10-13
name Tile plugin name Tile plugin
desc Display URL in tile desc Display URL in tile
url http://www.dokuwiki.org/plugin:tile url https://www.dokuwiki.org/plugin:tile

View File

@ -81,7 +81,7 @@ class syntax_plugin_tile extends DokuWiki_Syntax_Plugin {
$mailto = $email ? '<a class="mail JSnocheck" href="mailto:'.$email.'" >'.($name ? $name : $email).'</a>' : ""; $mailto = $email ? '<a class="mail JSnocheck" href="mailto:'.$email.'" >'.($name ? $name : $email).'</a>' : "";
$renderer->doc .= ' $renderer->doc .= '
<div class="tile"> <div class="tile">
<a href="'.wl ($id).'"> <a href="'.(str_starts_with ($id, 'http') ? $id : wl ($id)).'">
<p>'.$title.'</p> <p>'.$title.'</p>
<div class="img"><span></span><img src="'.ml ($img, array ('cache'=>$_REQUEST['cache'], 'w'=>$this->iconSize)).'"'.$this->imgAttr.' alt="'.$title.'"/></div> <div class="img"><span></span><img src="'.ml ($img, array ('cache'=>$_REQUEST['cache'], 'w'=>$this->iconSize)).'"'.$this->imgAttr.' alt="'.$title.'"/></div>
</a> </a>
@ -101,6 +101,7 @@ class syntax_plugin_tile extends DokuWiki_Syntax_Plugin {
' <ul>'.NL. ' <ul>'.NL.
' <li>Syntax : <b>&lt;tile [help] [width=pp]&gt;</b><br/>'. ' <li>Syntax : <b>&lt;tile [help] [width=pp]&gt;</b><br/>'.
' | :dokuwiki:namespace:page | Short Description | :dokuwiki:namespace:icon.png | member.mel@some.where.org | nickname |<br/>'. ' | :dokuwiki:namespace:page | Short Description | :dokuwiki:namespace:icon.png | member.mel@some.where.org | nickname |<br/>'.
' | http... | Short Description | :dokuwiki:namespace:icon.png | member.mel@some.where.org | nickname |<br/>'.
' ...<br/>'. ' ...<br/>'.
' <b>&lt;/tile&gt;</b></li>'.NL. ' <b>&lt;/tile&gt;</b></li>'.NL.
' <li>Info : <a class="urlextern" rel="nofollow" title="'.$url.'" href="'.$url.'">'.$url.'</a></li>'.NL. ' <li>Info : <a class="urlextern" rel="nofollow" title="'.$url.'" href="'.$url.'">'.$url.'</a></li>'.NL.