Browse Source

add extern link

master
François 7 months ago
parent
commit
3305b88e4f
  1. 4
      plugin.info.txt
  2. 3
      syntax.php

4
plugin.info.txt

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

3
syntax.php

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

Loading…
Cancel
Save