Fixed more template errors in order to get everything running with PHP 8.0.
Also: Change in language files, widget management is no longer called "experimental".
This commit is contained in:
parent
998a1f907e
commit
22abda2369
@ -4,14 +4,17 @@
|
||||
|
||||
|
||||
{static_block}
|
||||
{if $preview}
|
||||
<fieldset id="post-preview"><legend>{$panelstrings.preview}</legend>
|
||||
{include file=preview.tpl}
|
||||
</fieldset>
|
||||
{if isset($preview)}
|
||||
<fieldset id="post-preview"><legend>{$panelstrings.preview}</legend>
|
||||
{include file=preview.tpl}
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
{html_form}
|
||||
|
||||
{if !isset($post)}
|
||||
{assign var=post value=""}
|
||||
{/if}
|
||||
{static content=$post alwaysshow=true}
|
||||
|
||||
<p><label for="subject">{$panelstrings.subject}</label><br />
|
||||
|
@ -1,4 +1,4 @@
|
||||
{if $smarty.request.mod != 'inline'}
|
||||
{if !isset($smarty.request.mod) || $smarty.request.mod != 'inline'}
|
||||
<h2>{$panelstrings.head}</h2>
|
||||
<p>{$panelstrings.descr}</p>
|
||||
{/if}
|
||||
@ -23,7 +23,7 @@
|
||||
{html_form enctype='multipart/form-data'}
|
||||
|
||||
|
||||
{if $smarty.request.mod != 'inline'}
|
||||
{if !isset($smarty.request.mod) || $smarty.request.mod != 'inline'}
|
||||
<fieldset><legend>{$panelstrings.fset1}</legend>
|
||||
{/if}
|
||||
<input type="file" name="upload[]" />
|
||||
@ -35,7 +35,7 @@
|
||||
<input type="file" name="upload[]" />
|
||||
<input type="file" name="upload[]" />
|
||||
|
||||
{if $smarty.request.mod != 'inline'}
|
||||
{if !isset($smarty.request.mod) || $smarty.request.mod != 'inline'}
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
|
@ -47,13 +47,23 @@
|
||||
|
||||
<ul id="widgetsetid-{$widgetset}">
|
||||
{foreach from=$widgetarr item=widget}
|
||||
<li class="widget-instance widget-id-{$widget.id} {$widget.class}">
|
||||
{if isset($widget.class)}
|
||||
{assign var=widgetclass value="$widget.class"}
|
||||
{else}
|
||||
{assign var=widgetclass value=""}
|
||||
{/if}
|
||||
{if isset($widget.params)}
|
||||
{assign var=widgetparams value="$widget.params"}
|
||||
{else}
|
||||
{assign var=widgetparams value=""}
|
||||
{/if}
|
||||
<li class="widget-instance widget-id-{$widget.id} {$widgetclass}">
|
||||
<input class="widget-id" type="hidden" name="widgets[{$widgetset}][]"
|
||||
value="{$widget.id}{if $widget.params}:{$widget.params}{/if}" />
|
||||
{if $widget.params}
|
||||
value="{$widget.id}{$widgetparams}" />
|
||||
{if !empty($widgetparams)}
|
||||
{* this will be hooked from javascript *}
|
||||
<input class="textinput" style="float:right"
|
||||
type="text" value="{$widget.params}"/>
|
||||
type="text" value="{$widgetparams}"/>
|
||||
{/if}
|
||||
<p> {$widget.name} </p>
|
||||
</li>
|
||||
|
@ -6,9 +6,9 @@
|
||||
/* default action */
|
||||
|
||||
$lang['admin']['widgets']['default'] = array(
|
||||
'head' => 'Verwaltung Widgets (<em>experimentell</em>)',
|
||||
'head' => 'Widget-Verwaltung',
|
||||
|
||||
'descr' => 'Flatpress hat verschiedene Widgets mit an Bord, wie zum Beispiel die Login- oder die Suchefunktion. Ein <a class="hint" '.
|
||||
'descr' => 'Flatpress hat verschiedene Widgets mit an Bord, wie zum Beispiel die Login- oder die Suchfunktion. Ein <a class="hint" '.
|
||||
'href="http://wiki.flatpress.org/doc:plugins" title="What is a Widget?">'.
|
||||
'Widget</a> ist ein dynamisches Steuerelement eines <a class="hint" '.
|
||||
'href="http://wiki.flatpress.org/doc:plugins" title="What is a plugin?">'.
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* default action */
|
||||
|
||||
$lang['admin']['widgets']['default'] = array(
|
||||
'head' => 'Manage Widgets (<em>experimental</em>)',
|
||||
'head' => 'Manage Widgets',
|
||||
|
||||
'descr' => 'A <a class="hint" '.
|
||||
'href="http://wiki.flatpress.org/doc:widgets" title="What is a Widget?">'.
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* default action */
|
||||
|
||||
$lang['admin']['widgets']['default'] = array(
|
||||
'head' => 'Gérer les Widgets (<em>expérimental</em>)',
|
||||
'head' => 'Gérer les Widgets',
|
||||
|
||||
'descr' => 'Un <a class="hint" '.
|
||||
'href="http://wiki.flatpress.org/doc:widgets" title="C\'est quoi un Widget?">'.
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* default action */
|
||||
|
||||
$lang['admin']['widgets']['default'] = array(
|
||||
'head' => 'Gestione Widget (<em>experimental</em>)',
|
||||
'head' => 'Gestione Widget',
|
||||
|
||||
'descr' => 'Un <a class="hint" '.
|
||||
'href="http://wiki.flatpress.org/doc:widgets" title="What is a Widget?">'.
|
||||
|
@ -7,7 +7,7 @@
|
||||
/* default action */
|
||||
|
||||
$lang['admin']['widgets']['default'] = array(
|
||||
'head' => 'Administre Widgets (<em>experimental</em>)',
|
||||
'head' => 'Administre Widgets',
|
||||
|
||||
'descr' => 'Um <a class="hint" '.
|
||||
'href="http://wiki.flatpress.org/doc:widgets" title="O que é um Widget?">'.
|
||||
|
Loading…
x
Reference in New Issue
Block a user