add extern link
This commit is contained in:
parent
4ca0e4a0ba
commit
3305b88e4f
@ -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
|
||||||
|
@ -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><tile [help] [width=pp]></b><br/>'.
|
' <li>Syntax : <b><tile [help] [width=pp]></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></tile></b></li>'.NL.
|
' <b></tile></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.
|
||||||
|
Loading…
Reference in New Issue
Block a user