{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 loading-input' : ''} {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}