Prepare staticpages for 2.x backend changes
This commit is contained in:
parent
83ef4330bc
commit
e4ee83df09
|
@ -27,139 +27,141 @@
|
|||
<input type="submit" name="serendipity[SAVECONF]" value="{$CONST.SAVE}">
|
||||
</div>
|
||||
|
||||
<section class="staticpage_structure">
|
||||
<div class="staticpage_section equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_STRUCT}</h4>
|
||||
<div class="staticpage_container">
|
||||
<section class="staticpage_section staticpage_structure">
|
||||
<div class="equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_STRUCT}</h4>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="pagetitle" what="desc"|escape:js}">{staticpage_input item="pagetitle" what="name"|escape:js}</label>
|
||||
{staticpage_input item="pagetitle"}
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="pagetitle" what="desc"|escape:js}">{staticpage_input item="pagetitle" what="name"|escape:js}</label>
|
||||
{staticpage_input item="pagetitle"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="permalink" what="desc"|escape:js}">{staticpage_input item="permalink" what="name"|escape:js}</label>
|
||||
{staticpage_input item="permalink"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="publishstatus" what="desc"|escape:js}">{staticpage_input item="publishstatus" what="name"|escape:js}</label>
|
||||
{staticpage_input item="publishstatus"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="articletype" what="desc"|escape:js}">{staticpage_input item="articletype" what="name"|escape:js}</label>
|
||||
{staticpage_input item="articletype"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="language" what="desc"|escape:js}">{staticpage_input item="language" what="name"|escape:js}</label>
|
||||
{staticpage_input item="language"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="related_category_id" what="desc"|escape:js}">{staticpage_input item="related_category_id" what="name"|escape:js}</label>
|
||||
{staticpage_input item="related_category_id"}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="permalink" what="desc"|escape:js}">{staticpage_input item="permalink" what="name"|escape:js}</label>
|
||||
{staticpage_input item="permalink"}
|
||||
<section class="staticpage_section staticpage_access">
|
||||
<div class="equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_ACCESS}</h4>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="pass" what="desc"|escape:js}">{staticpage_input item="pass" what="name"|escape:js}</label>
|
||||
{staticpage_input item="pass"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="parent_id" what="desc"|escape:js}">{staticpage_input item="parent_id" what="name"|escape:js}</label>
|
||||
{staticpage_input item="parent_id"}
|
||||
</div>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="show_childpages" what="desc"|escape:js}">{staticpage_input item="show_childpages" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="show_childpages"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="shownavi" what="desc"|escape:js}">{staticpage_input item="shownavi" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="shownavi"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="showonnavi" what="desc"|escape:js}">{staticpage_input item="showonnavi" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="showonnavi"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="show_breadcrumb" what="desc"|escape:js}">{staticpage_input item="show_breadcrumb" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="show_breadcrumb"}
|
||||
</fieldset>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="publishstatus" what="desc"|escape:js}">{staticpage_input item="publishstatus" what="name"|escape:js}</label>
|
||||
{staticpage_input item="publishstatus"}
|
||||
<section class="staticpage_section staticpage_meta">
|
||||
<div class="equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_META}</h4>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="timestamp" what="desc"|escape:js}">{staticpage_input item="timestamp" what="name"|escape:js}</label>
|
||||
{staticpage_input item="timestamp"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="authorid" what="desc"|escape:js}">{staticpage_input item="authorid" what="name"|escape:js}</label>
|
||||
{staticpage_input item="authorid"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="title_element" what="desc"|escape:js}">{staticpage_input item="title_element" what="name"|escape:js}</label>
|
||||
{staticpage_input item="title_element"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="meta_description" what="desc"|escape:js}">{staticpage_input item="meta_description" what="name"|escape:js}</label>
|
||||
{staticpage_input item="meta_description"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="meta_keywords" what="desc"|escape:js}">{staticpage_input item="meta_keywords" what="name"|escape:js}</label>
|
||||
{staticpage_input item="meta_keywords"}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="articletype" what="desc"|escape:js}">{staticpage_input item="articletype" what="name"|escape:js}</label>
|
||||
{staticpage_input item="articletype"}
|
||||
<section class="staticpage_section staticpage_options">
|
||||
<div class="equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_OPT}</h4>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="is_startpage" what="desc"|escape:js}">{staticpage_input item="is_startpage" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="is_startpage"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="is_404_page" what="desc"|escape:js}">{staticpage_input item="is_404_page" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="is_404_page"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="markup" what="desc"|escape:js}">{staticpage_input item="markup" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="markup"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="articleformat" what="desc"|escape:js}">{staticpage_input item="articleformat" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="articleformat"}
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="language" what="desc"|escape:js}">{staticpage_input item="language" what="name"|escape:js}</label>
|
||||
{staticpage_input item="language"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="related_category_id" what="desc"|escape:js}">{staticpage_input item="related_category_id" what="name"|escape:js}</label>
|
||||
{staticpage_input item="related_category_id"}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="staticpage_access">
|
||||
<div class="staticpage_section equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_ACCESS}</h4>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="pass" what="desc"|escape:js}">{staticpage_input item="pass" what="name"|escape:js}</label>
|
||||
{staticpage_input item="pass"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="parent_id" what="desc"|escape:js}">{staticpage_input item="parent_id" what="name"|escape:js}</label>
|
||||
{staticpage_input item="parent_id"}
|
||||
</div>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="show_childpages" what="desc"|escape:js}">{staticpage_input item="show_childpages" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="show_childpages"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="shownavi" what="desc"|escape:js}">{staticpage_input item="shownavi" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="shownavi"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="showonnavi" what="desc"|escape:js}">{staticpage_input item="showonnavi" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="showonnavi"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="show_breadcrumb" what="desc"|escape:js}">{staticpage_input item="show_breadcrumb" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="show_breadcrumb"}
|
||||
</fieldset>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="staticpage_meta">
|
||||
<div class="staticpage_section equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_META}</h4>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="timestamp" what="desc"|escape:js}">{staticpage_input item="timestamp" what="name"|escape:js}</label>
|
||||
{staticpage_input item="timestamp"}
|
||||
</div>
|
||||
|
||||
<div class="form_select">
|
||||
<label title="{staticpage_input item="authorid" what="desc"|escape:js}">{staticpage_input item="authorid" what="name"|escape:js}</label>
|
||||
{staticpage_input item="authorid"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="title_element" what="desc"|escape:js}">{staticpage_input item="title_element" what="name"|escape:js}</label>
|
||||
{staticpage_input item="title_element"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="meta_description" what="desc"|escape:js}">{staticpage_input item="meta_description" what="name"|escape:js}</label>
|
||||
{staticpage_input item="meta_description"}
|
||||
</div>
|
||||
|
||||
<div class="form_field">
|
||||
<label title="{staticpage_input item="meta_keywords" what="desc"|escape:js}">{staticpage_input item="meta_keywords" what="name"|escape:js}</label>
|
||||
{staticpage_input item="meta_keywords"}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="staticpage_options">
|
||||
<div class="staticpage_section equal_heights">
|
||||
<h4>{$CONST.STATICPAGE_SECTION_OPT}</h4>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="is_startpage" what="desc"|escape:js}">{staticpage_input item="is_startpage" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="is_startpage"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="is_404_page" what="desc"|escape:js}">{staticpage_input item="is_404_page" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="is_404_page"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="markup" what="desc"|escape:js}">{staticpage_input item="markup" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="markup"}
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="clearfix">
|
||||
<span class="wrap_legend"><legend title="{staticpage_input item="articleformat" what="desc"|escape:js}">{staticpage_input item="articleformat" what="name"|escape:js}</legend></span>
|
||||
{staticpage_input item="articleformat"}
|
||||
</fieldset>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{* EXAMPLE FOR CUSTOM STATICPAGE PROPERTIES
|
||||
|
||||
<section class="staticpage_custom">
|
||||
<div class="staticpage_section equal_heights">
|
||||
<section class="staticpage_section staticpage_custom">
|
||||
<div class="equal_heights">
|
||||
<h4>Custom</h4>
|
||||
|
||||
<div class="form_select">
|
||||
|
@ -184,4 +186,4 @@
|
|||
|
||||
<div class="form_buttons staticpage_save">
|
||||
<input type="submit" name="serendipity[SAVECONF]" value="{$CONST.SAVE}">
|
||||
</div>
|
||||
</div>
|
|
@ -91,7 +91,7 @@ class serendipity_event_staticpage extends serendipity_event
|
|||
$propbag->add('page_configuration', $this->config);
|
||||
$propbag->add('type_configuration', $this->config_types);
|
||||
$propbag->add('author', 'Marco Rinck, Garvin Hicking, David Rolston, Falk Doering, Stephan Manske, Pascal Uhlmann, Ian, Don Chambers');
|
||||
$propbag->add('version', '4.11');
|
||||
$propbag->add('version', '4.12');
|
||||
$propbag->add('requirements', array(
|
||||
'serendipity' => '2.0',
|
||||
'smarty' => '2.6.7',
|
||||
|
@ -3226,4 +3226,4 @@ foreach($select AS $select_value => $select_desc) {
|
|||
|
||||
}
|
||||
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
||||
/* vim: set sts=4 ts=4 expandtab : */
|
|
@ -189,26 +189,41 @@
|
|||
max-width: 30em;
|
||||
}
|
||||
|
||||
.staticpage_structure,
|
||||
.staticpage_access,
|
||||
.staticpage_meta,
|
||||
.staticpage_options {
|
||||
.no-flexbox .staticpage_structure,
|
||||
.no-flexbox .staticpage_access,
|
||||
.no-flexbox .staticpage_meta,
|
||||
.no-flexbox .staticpage_options {
|
||||
box-sizing: border-box;
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.staticpage_structure,
|
||||
.staticpage_meta {
|
||||
.no-flexbox .staticpage_structure,
|
||||
.no-flexbox .staticpage_meta {
|
||||
padding-right: .5em;
|
||||
}
|
||||
|
||||
.staticpage_access,
|
||||
.staticpage_options {
|
||||
.no-flexbox .staticpage_access,
|
||||
.no-flexbox .staticpage_options {
|
||||
padding-left: .5em;
|
||||
}
|
||||
|
||||
.staticpage_save {
|
||||
.no-flexbox .staticpage_save {
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
.staticpage_container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.staticpage_section {
|
||||
flex: 0 0 48%;
|
||||
margin: 0 2% 1em 0;
|
||||
}
|
||||
|
||||
.staticpage_section:nth-of-type(even) {
|
||||
margin: 0 0 1em 2%;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue