diff --git a/shaarli-pro/editlink.html b/shaarli-pro/editlink.html index 9ce3d7e..e77ee54 100644 --- a/shaarli-pro/editlink.html +++ b/shaarli-pro/editlink.html @@ -16,14 +16,14 @@ {$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} +{function="($readLaterChecked = strpos(' ' . $link.tags . ' ', ' readlater ') != false || strpos(' ' . $link.tags . ' ', ' toread ') != false) ? '' : ''"} +{function="($noteDefaultChecked = $link_is_new && empty($link.url)) ? '' : ''"} +{function="($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} +{function="($privateChecked = $link.private == true || $link_is_new) ? '' : ''"}
diff --git a/shaarli-pro/page.header.html b/shaarli-pro/page.header.html index 47d076e..fd79897 100644 --- a/shaarli-pro/page.header.html +++ b/shaarli-pro/page.header.html @@ -1,8 +1,7 @@ -{if="$isCalledFromBookmarklet"} +{if="isset($_GET['source']) && $_GET['source'] == 'bookmarklet'"} {ignore} When called as a popup from bookmarklet, do not display menu. {/ignore} {else}