From 5ee2cce5df5605093ef4f4b255fb0666a9d58a5f Mon Sep 17 00:00:00 2001 From: azett Date: Thu, 31 Dec 2020 23:50:18 +0100 Subject: [PATCH] Fixed more template errors in order to get everything running with PHP 8.0 --- admin/panels/entry/admin.entry.write.tpl | 13 ++++++---- fp-interface/sharedtpls/comment-form.tpl | 30 +++++++++++++++++++----- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/admin/panels/entry/admin.entry.write.tpl b/admin/panels/entry/admin.entry.write.tpl index e676eb6..25e2586 100755 --- a/admin/panels/entry/admin.entry.write.tpl +++ b/admin/panels/entry/admin.entry.write.tpl @@ -21,7 +21,12 @@


-
@@ -32,7 +37,7 @@

{toolbar}

-
{*here will go a plugin hook*} {action hook=simple_edit_form} @@ -80,13 +85,13 @@ {/html_form} {/entry_block} -{if $smarty.get.entry } +{if isset($smarty.get.entry) }

{$panelstrings.otheropts}

    - {if !$draft} + {if !isset($draft)}
  • {$panelstrings.commmsg}
  • {/if} diff --git a/fp-interface/sharedtpls/comment-form.tpl b/fp-interface/sharedtpls/comment-form.tpl index 7fd352e..ff23f62 100644 --- a/fp-interface/sharedtpls/comment-form.tpl +++ b/fp-interface/sharedtpls/comment-form.tpl @@ -13,23 +13,36 @@ {if not $flatpress.loggedin} - - {*
    *}

    - + {if isset($error) && isset($error.name) && !empty($error.name)} + {assign var=class value="field-error"} + {else} + {assign var=class value=""} + {/if} +

    - + {if isset($error) && isset($error.email) && !empty($error.email)} + {assign var=class value="field-error"} + {else} + {assign var=class value=""} + {/if} +

    - + {if isset($error) && isset($error.url) && !empty($error.url)} + {assign var=class value="field-error"} + {else} + {assign var=class value=""} + {/if} +

    @@ -42,7 +55,12 @@
    -

    {*here will go a plugin hook*}