Unified usage of the elseif tag in template scripting
authorMarcel Werk <burntime@woltlab.com>
Mon, 24 Aug 2020 13:26:00 +0000 (15:26 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 24 Aug 2020 13:26:00 +0000 (15:26 +0200)
wcfsetup/install/files/acp/templates/pluginStorePurchasedItems.tpl

index cda6026a2aca646868facef262513c97a0318eee..05c551e2127dde51416bbb85dc2cbf7f12cdb606 100644 (file)
@@ -27,9 +27,9 @@
                        
                        {if !$updateServers[$wcfMajorRelease]|isset}
                                <p class="warning">{lang}wcf.acp.pluginStore.purchasedItems.updateServer.missing{/lang}</p>
-                       {else if $updateServers[$wcfMajorRelease]->isDisabled}
+                       {elseif $updateServers[$wcfMajorRelease]->isDisabled}
                                <p class="warning">{lang}wcf.acp.pluginStore.purchasedItems.updateServer.disabled{/lang}</p>
-                       {else if $updateServers[$wcfMajorRelease]->lastUpdateTime == 0}
+                       {elseif $updateServers[$wcfMajorRelease]->lastUpdateTime == 0}
                                <p class="warning">{lang}wcf.acp.pluginStore.purchasedItems.updateServer.requireUpdate{/lang}</p>
                        {/if}
                        
                                                        <td class="columnIcon">
                                                                {if $product[status] == 'install'}
                                                                        <a class="jsButtonPackageInstall" data-confirm-message="{lang __encode=true}wcf.acp.pluginStore.purchasedItems.status.install.confirmMessage{/lang}" data-package="{$product[package]}" data-package-version="{$product[version][available]}"><span class="icon icon16 fa-plus jsTooltip" title="{lang}wcf.acp.package.button.installPackage{/lang}"></span></a>
-                                                               {else if $product[status] == 'update'}
+                                                               {elseif $product[status] == 'update'}
                                                                        <a class="jsButtonPackageUpdate"><span class="icon icon16 fa-refresh jsTooltip" title="{lang}wcf.acp.pluginStore.purchasedItems.status.update{/lang}"></span></a>
-                                                               {else if $product[status] == 'upToDate'}
+                                                               {elseif $product[status] == 'upToDate'}
                                                                        <span class="icon icon16 fa-check green jsTooltip" title="{lang}wcf.acp.pluginStore.purchasedItems.status.upToDate{/lang}"></span>
-                                                               {else if $product[status] == 'requireUpdate'}
+                                                               {elseif $product[status] == 'requireUpdate'}
                                                                        <span class="icon icon16 fa-ban red jsTooltip" title="{lang}wcf.acp.pluginStore.purchasedItems.status.requireUpdate{/lang}"></span>
                                                                {else}
                                                                        <span class="icon icon16 fa-ban red jsTooltip" title="{lang}wcf.acp.pluginStore.purchasedItems.status.unavailable{/lang}"></span>