added tpls missing "enable meta option by config value"
This commit is contained in:
parent
7469fed625
commit
9814b730e9
2 changed files with 8 additions and 5 deletions
|
@ -59,6 +59,7 @@
|
||||||
{staticpage_input item="content"}
|
{staticpage_input item="content"}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{if $showmeta}
|
||||||
<div class="sp_sect">
|
<div class="sp_sect">
|
||||||
{$CONST.STATICPAGES_CUSTOM_META_SHOW}
|
{$CONST.STATICPAGES_CUSTOM_META_SHOW}
|
||||||
<p id="sp_toggle_optionall"><a style="border:0; text-decoration: none;" href="#" onClick="showConfig('el1'); return false" title="{$CONST.TOGGLE_OPTION}"><img src="{serendipity_getFile file="img/plus.png"}" id="optionel1" alt="+/-" border="0"> {$CONST.TOGGLE_ALL}</a></p>
|
<p id="sp_toggle_optionall"><a style="border:0; text-decoration: none;" href="#" onClick="showConfig('el1'); return false" title="{$CONST.TOGGLE_OPTION}"><img src="{serendipity_getFile file="img/plus.png"}" id="optionel1" alt="+/-" border="0"> {$CONST.TOGGLE_ALL}</a></p>
|
||||||
|
@ -102,6 +103,7 @@ Replace this part in the head of you templates index.tpl file:

|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" language="JavaScript">document.getElementById("el1").style.display = "none";</script>
|
<script type="text/javascript" language="JavaScript">document.getElementById("el1").style.display = "none";</script>
|
||||||
|
{/if}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset class="sect_struct">
|
<fieldset class="sect_struct">
|
||||||
|
|
|
@ -2495,6 +2495,7 @@ foreach($select AS $select_value => $select_desc) {
|
||||||
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true;
|
$serendipity['smarty']->security_settings[INCLUDE_ANY] = true;
|
||||||
$serendipity['smarty']->assign(
|
$serendipity['smarty']->assign(
|
||||||
array(
|
array(
|
||||||
|
'showmeta' => serendipity_db_bool($this->get_config('showmeta')),
|
||||||
'form_keys' => $form_values,
|
'form_keys' => $form_values,
|
||||||
'form_container' => $this->staticpage,
|
'form_container' => $this->staticpage,
|
||||||
'form_post' => $serendipity['POST']['plugin'],
|
'form_post' => $serendipity['POST']['plugin'],
|
||||||
|
|
Loading…
Reference in a new issue