]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
uniform if syntax 59/head
authorTsT <tst2005@gmail.com>
Wed, 23 Oct 2013 21:21:36 +0000 (23:21 +0200)
committerTsT <tst2005@gmail.com>
Wed, 23 Oct 2013 21:21:36 +0000 (23:21 +0200)
tpl/editlink.html
tpl/includes.html
tpl/linklist.html

index 4a2c30cc400e0ab6242d7e38fd0ca7c696f72618..48945a3071acef30502f85012116f88a6db7469d 100644 (file)
@@ -4,8 +4,8 @@
 {if="empty($GLOBALS['disablejquery'])"}<script src="inc/jquery.min.js#"></script><script src="inc/jquery-ui.min.js#"></script>{/if}
 </head>
 <body
-{if condition="$link.title==''"}onload="document.linkform.lf_title.focus();"
-{elseif condition="$link.description==''"}onload="document.linkform.lf_description.focus();"
+{if="$link.title==''"}onload="document.linkform.lf_title.focus();"
+{elseif="$link.description==''"}onload="document.linkform.lf_description.focus();"
 {else}onload="document.linkform.lf_tags.focus();"{/if} >
 <div id="pageheader">
        {include="page.header"}
@@ -16,7 +16,7 @@
                <i>Title</i><br><input type="text" name="lf_title" value="{$link.title|htmlspecialchars}" style="width:100%"><br>
                <i>Description</i><br><textarea name="lf_description" rows="4" cols="25" style="width:100%">{$link.description|htmlspecialchars}</textarea><br>
                <i>Tags</i><br><input type="text" id="lf_tags" name="lf_tags" value="{$link.tags|htmlspecialchars}" style="width:100%"><br>
-               {if condition="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}
+               {if="($link_is_new && $GLOBALS['privateLinkByDefault']==true) || $link.private == true"}
             <input type="checkbox" checked="checked" name="lf_private" id="lf_private">
             &nbsp;<label for="lf_private"><i>Private</i></label><br>
             {else}
@@ -25,9 +25,9 @@
             {/if}
                <input type="submit" value="Save" name="save_edit" class="bigbutton" style="margin-left:40px;">
                <input type="submit" value="Cancel" name="cancel_edit" class="bigbutton" style="margin-left:40px;">
-               {if condition="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton" style="margin-left:180px;" onClick="return confirmDeleteLink();">{/if}
+               {if="!$link_is_new"}<input type="submit" value="Delete" name="delete_link" class="bigbutton" style="margin-left:180px;" onClick="return confirmDeleteLink();">{/if}
                <input type="hidden" name="token" value="{$token}">
-               {if condition="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer|htmlspecialchars}">{/if}
+               {if="$http_referer"}<input type="hidden" name="returnurl" value="{$http_referer|htmlspecialchars}">{/if}
            </form>
        </div>
 </div>
@@ -41,4 +41,4 @@ $(document).ready(function()
 </script>
 {/if}
 </body>
-</html>
\ No newline at end of file
+</html>
index 2b61f1e1479b49dff81641d728c3457c8d149b06..cc573801884ae2a5e01fd17cff495e3638e1aceb 100644 (file)
@@ -6,4 +6,4 @@
 <link rel="alternate" type="application/atom+xml" href="{$feedurl}?do=atom{$searchcrits}#" title="ATOM Feed" />
 <link href="images/favicon.ico#" rel="shortcut icon" type="image/x-icon" />
 <link type="text/css" rel="stylesheet" href="inc/shaarli.css?version={$version|urlencode}#" />
-{if condition="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />{/if}
+{if="is_file('inc/user.css')"}<link type="text/css" rel="stylesheet" href="inc/user.css?version={$version}#" />{/if}
index ddc38cb0ae141ebb37b201d9ba096be4b4617e76..5a742737031e4208e90a33922e16b49a157e351a 100644 (file)
@@ -42,7 +42,7 @@
                 {/if}
                 <span class="linktitle"><a href="{$redirector}{$value.url|htmlspecialchars}">{$value.title|htmlspecialchars}</a></span>
                 <br>
-                {if="$value.description"}<div class="linkdescription"{if condition="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
+                {if="$value.description"}<div class="linkdescription"{if="$search_type=='permalink'"} style="max-height:none !important;"{/if}>{$value.description}</div>{/if}
                 {if="!$GLOBALS['config']['HIDE_TIMESTAMPS'] || isLoggedIn()"}
                     <span class="linkdate" title="Permalink"><a href="?{$value.linkdate|smallHash}">{$value.localdate|htmlspecialchars} - permalink</a> - </span>
                 {else}