{if="empty($batch_mode)"} {$pageName="editlink"} {include="includes"} {include="page.header"} {else} {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore} {function="extract($value) ? '' : ''"} {/if} {$asyncLoadClass=$link_is_new && $async_metadata && empty($link.title) ? 'loading-wrapper' : ''} {if="!isset($index)"} {$index=""} {/if} {$batchModeValue=empty($batch_mode) ? '0' : '1'} {$readLaterChecked=strpos(' ' . $link.tags . ' ', ' readlater ') != false || strpos(' ' . $link.tags . ' ', ' toread ') != false} {$noteDefaultChecked=$link_is_new && empty($link.url)} {$noteChecked=strpos(' ' . $link.tags . ' ', ' note ') != false || $noteDefaultChecked} {$effectiveTags=$link.tags} {if="$noteDefaultChecked && strpos(' ' . $effectiveTags . ' ', ' note ') == false"} {$effectiveTags=trim($effectiveTags . ' note')} {/if} {$privateChecked=$link.private == true || $link_is_new}
{if="isset($link.id)"} {/if} {if="$http_referer"} {/if}

{if="!$link_is_new"}Edit Bookmark{else}New Bookmark{/if}

{if="!$link_is_new"}

{'created on'|t} {$link.created|format_date}

{/if}
{if="$formatter==='markdown'"}
{'Description will be rendered with'|t} {'Markdown syntax'|t}.
{/if}
{if="isset($edit_link_plugin)"} {loop="$edit_link_plugin"} {if="!strstr(strtolower($value), 'lf_readlater') && !strstr(strtolower($value), 'lf_private')"}
{$value}
{/if} {/loop} {/if}
{if="empty($batch_mode)"} {include="page.footer"} {/if}