diff --git a/admin/panels/static/admin.static.write.tpl b/admin/panels/static/admin.static.write.tpl index b2ea4b6..b24e8b1 100644 --- a/admin/panels/static/admin.static.write.tpl +++ b/admin/panels/static/admin.static.write.tpl @@ -1,6 +1,6 @@ {include file='shared:admin_errorlist.tpl'} {static_block} -{if $preview} +{if isset($preview)}
@@ -21,15 +21,18 @@
{$panelstrings.head}
- {html_form} + {html_form} + {if !isset($post)} + {assign var="post" value=""} + {/if} {static content=$post alwaysshow=true} -

-
- {if $sceditor_display!='disable'} +
+ {if $sceditor_display != 'disable'} @@ -75,7 +78,7 @@

-

{html_submit name="save" id="save" class="btn btn-primary" value=$panelstrings.submit accesskey=s} {html_submit name="preview" id="preview" class="btn btn-primary" value=$panelstrings.preview accesskey=p} diff --git a/admin/panels/widgets/admin.widgets.default.tpl b/admin/panels/widgets/admin.widgets.default.tpl index 567741d..678a16b 100644 --- a/admin/panels/widgets/admin.widgets.default.tpl +++ b/admin/panels/widgets/admin.widgets.default.tpl @@ -75,10 +75,10 @@
    {foreach from=$widgetarr item=widget} -
  • +
  • - {if $widget.params} + value="{$widget.id}{if isset($widget.params)}:{$widget.params}{/if}" /> + {if isset($widget.params)} {* this will be hooked from javascript *} @@ -116,8 +116,8 @@ {foreach from=$widgetarr item=widget}
  • - {if $widget.params} + value="{$widget.id}{if isset($widget.params)}:{$widget.params}{/if}" /> + {if isset($widget.params)} {* this will be hooked from javascript *} diff --git a/fp-plugins/commentcenter/tpls/approvelist.tpl b/fp-plugins/commentcenter/tpls/approvelist.tpl index 4c0dce0..9e061ee 100644 --- a/fp-plugins/commentcenter/tpls/approvelist.tpl +++ b/fp-plugins/commentcenter/tpls/approvelist.tpl @@ -4,7 +4,7 @@

    {$plang.app_desc}

    {assign var="fetch" value="confirm"} {include file=plugin:commentcenter/listcomments} -{if $use_akismet} +{if isset($use_akismet)}

    {$plang.app_akismet}

    {$plang.app_spamdesc}

    {assign var="fetch" value="akismet"} @@ -12,7 +12,7 @@

    {/if} -{if $other} +{if isset($other)}

    {$plang.app_other}

    {assign var="fetch" value="denided"} {include file=plugin:commentcenter/listcomments} diff --git a/fp-plugins/commentcenter/tpls/configure.tpl b/fp-plugins/commentcenter/tpls/configure.tpl index b3c9454..22122d1 100644 --- a/fp-plugins/commentcenter/tpls/configure.tpl +++ b/fp-plugins/commentcenter/tpls/configure.tpl @@ -10,7 +10,7 @@
    - + @@ -20,7 +20,7 @@
    - + @@ -31,19 +31,19 @@

    {$plang.akismet}

    - +
    -
    +
    {$plang.akismet_key_long}
    -
    +
    {$plang.akismet_url_long|sprintf:$smarty.const.BLOG_BASEURL}
    diff --git a/fp-plugins/commentcenter/tpls/deletecomm.tpl b/fp-plugins/commentcenter/tpls/deletecomm.tpl index a3729a4..d6cdc3b 100644 --- a/fp-plugins/commentcenter/tpls/deletecomm.tpl +++ b/fp-plugins/commentcenter/tpls/deletecomm.tpl @@ -1,19 +1,19 @@ {include file=plugin:commentcenter/header}

    {$plang.delc_title}

    -

    {if $single}{$plang.delc_descs}{else}{$plang.delc_descm}{/if}

    +

    {if isset($single)}{$plang.delc_descs}{else}{$plang.delc_descm}{/if}

    {html_form} {assign var="delete" value=true} {assign var="fetch" value="del"} {include file=plugin:commentcenter/listcomments}

    {$plang.sure}

    -{if $is_managing} +{if isset($is_managing)} {assign var="button_suff" value="_2"} {else} {assign var="button_suff" value=""} {/if} -{if $single} +{if isset($single)} {html_submit name="commdelok$button_suff" class="btn btn-primary" id="commdelok$button_suff" value=$plang.del_subs} {else} {html_submit name="commdelok$button_suff" class="btn btn-primary" id="commdelok$button_suff" value=$plang.del_subm} diff --git a/fp-plugins/commentcenter/tpls/deletepol.tpl b/fp-plugins/commentcenter/tpls/deletepol.tpl index 829538e..62578ce 100644 --- a/fp-plugins/commentcenter/tpls/deletepol.tpl +++ b/fp-plugins/commentcenter/tpls/deletepol.tpl @@ -1,12 +1,12 @@ {include file=plugin:commentcenter/header}

    {$plang.del_policies}

    -

    {if $single}{$plang.del_descs}{else}{$plang.del_descm}{/if}

    +

    {if isset($single)}{$plang.del_descs}{else}{$plang.del_descm}{/if}

    {html_form} {assign var="delete" value=true} {include file=plugin:commentcenter/listpolicies}

    {$plang.sure}

    -{if $single} +{if isset($single)} {html_submit class="btn btn-primary" name="delok" id="delok" value=$plang.del_subs} {else} {html_submit class="btn btn-primary" name="delok" id="delok" value=$plang.del_subm} diff --git a/fp-plugins/commentcenter/tpls/editpol.tpl b/fp-plugins/commentcenter/tpls/editpol.tpl index 6bf462d..65d347d 100644 --- a/fp-plugins/commentcenter/tpls/editpol.tpl +++ b/fp-plugins/commentcenter/tpls/editpol.tpl @@ -1,22 +1,22 @@ {include file=plugin:commentcenter/header} {html_form} -

    {if $polnew}{$plang.newpol}{else}{$plang.editpol}{/if}

    +

    {if isset($polnew)}{$plang.newpol}{else}{$plang.editpol}{/if}

    {$plang.apply_to}
    - +
    - +
    - +
    @@ -27,16 +27,16 @@

    {$plang.se_desc|sprintf:"`$plang.some_entries`"}

    {$plang.se_fill}

    -{if !empty($policy.entry) && !is_array($policy.entry)} +{if isset($policy.entry) && !empty($policy.entry) && !is_array($policy.entry)} {assign var="parity" value=1} -{elseif !empty($policy.entry)} +{elseif isset($policy.entry) && !empty($policy.entry)} {foreach name=entries_foreach from=$policy.entry item=entry} {if ($smarty.foreach.entries_foreach.iteration % 2)==0}
    {/if} {if ($smarty.foreach.entries_foreach.iteration % 2)==1 && $smarty.foreach.entries_foreach.last}{assign var="parity" value=1}{/if} {/foreach} {/if} -{if $parity==1}
    {/if} +{if isset($parity) && $parity==1}
    {/if}
    @@ -58,7 +58,7 @@
    {$plang.po_time}

    - + {$plang.days}

    diff --git a/fp-plugins/commentcenter/tpls/listcomments.tpl b/fp-plugins/commentcenter/tpls/listcomments.tpl index fd76bbb..f4a6ce5 100644 --- a/fp-plugins/commentcenter/tpls/listcomments.tpl +++ b/fp-plugins/commentcenter/tpls/listcomments.tpl @@ -16,7 +16,7 @@ {foreach from=$entry.$fetch item=comm key=comm_id} {assign var="i" value=$i+1} -{if !$delete}{/if} +{if isset($delete) && !$delete}{/if} {$comm.date|date_format:"%D, %T"} {$comm.content|strip_tags} @@ -38,7 +38,7 @@ {$plang.app_pubnotham} {/if} {/if} -{if $is_managing} +{if isset($is_managing)} {assign var="rm_url" value=$action_url|cmd_link:deletecomm2:"e`$entryid`_c`$comm_id`"} {else} {assign var="rm_url" value=$action_url|cmd_link:deletecomm:"e`$entryid`_c`$comm_id`"} diff --git a/fp-plugins/commentcenter/tpls/listpolicies.tpl b/fp-plugins/commentcenter/tpls/listpolicies.tpl index 3be2ea1..5938767 100644 --- a/fp-plugins/commentcenter/tpls/listpolicies.tpl +++ b/fp-plugins/commentcenter/tpls/listpolicies.tpl @@ -10,13 +10,13 @@ {foreach name=policies from=$policies key=id item=policy} -{if !$delete} {/if} +{if isset($delete) && !$delete} {/if} {if isset($delete)} {/if} -{if $policy.is_all} +{if isset($policy.is_all) && $policy.is_all} {$plang.all_entries} -{elseif is_array($policy.entry) && count($policy.entry)>0} +{elseif isset($policy.entry) && is_array($policy.entry) && count($policy.entry)>0} {$plang.fol_entries}
      {foreach from=$policy.entry item=entry} diff --git a/fp-plugins/commentcenter/tpls/manage.tpl b/fp-plugins/commentcenter/tpls/manage.tpl index 5a2db2e..3962437 100644 --- a/fp-plugins/commentcenter/tpls/manage.tpl +++ b/fp-plugins/commentcenter/tpls/manage.tpl @@ -4,7 +4,7 @@

      {$plang.man_searchd}

      - + {html_submit name="entry_search" class="btn btn-primary mt-1" id="entry_search" value=$plang.man_search}