|
|
{* $Id$ *}
|
|
|
{strip}
|
|
|
{* Simple remarks box used by Smarty entity block.remarksbox.php & wikiplugin_remarksbox.php *}
|
|
|
<div {if $remarksbox_id}id="{$remarksbox_id|escape}"{/if} class="alert {$remarksbox_class|escape}{if $remarksbox_close} alert-dismissible{/if}{if $remarksbox_highlight} {$remarksbox_highlight}{/if}{if $remarksbox_hidden} d-none{/if}">
|
|
|
{if $remarksbox_close}
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="{tr}Close{/tr}"></button>
|
|
|
{/if}
|
|
|
{if !empty($remarksbox_title)}
|
|
|
<{$remarksbox_title_tag} class="{$remarksbox_title_class}">
|
|
|
{if not empty($remarksbox_icon)}{icon name=$remarksbox_icon} {/if}
|
|
|
|
|
|
<span class="rboxtitle">{tr}{$remarksbox_title|escape}{/tr}</span>
|
|
|
</{$remarksbox_title_tag}>
|
|
|
{else}
|
|
|
{if not empty($remarksbox_icon)}{icon name=$remarksbox_icon}{/if}
|
|
|
{/if}
|
|
|
<div class="rboxcontent" style="display: inline">{$remarksbox_content}</div>
|
|
|
</div>
|
|
|
{/strip}
|
|
|
|
|
|
{if $remarksbox_cookie}
|
|
|
{jq}
|
|
|
$("button.btn-close", "#{{$remarksbox_id|escape}}").click(function() {
|
|
|
setCookie("{{$remarksbox_cookiehash}}", "1", "rbox");
|
|
|
});
|
|
|
{/jq}
|
|
|
{/if}
|