-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {* EXAMPLE FOR CUSTOM STATICPAGE PROPERTIES
-
-
- END OF EXAMPLE FOR CUSTOM STATICPAGE PROPERTIES *}
-
-
-
+
+
+ {staticpage_input item="headline"}
-
-
+
+
+ {staticpage_input item="articleformattitle"}
+
+
+
+ {staticpage_input item="content"}
+
+
+
+
+ {staticpage_input item="pre_content"}
+
+
+
+
+
+
+
+
+
+
{$CONST.STATICPAGE_SECTION_STRUCT}
+
+
+
+ {staticpage_input item="pagetitle"}
+
+
+
+
+ {staticpage_input item="permalink"}
+
+
+
+
+ {staticpage_input item="publishstatus"}
+
+
+
+
+ {staticpage_input item="articletype"}
+
+
+
+
+ {staticpage_input item="language"}
+
+
+
+
+ {staticpage_input item="related_category_id"}
+
+
+
+
+
+
+
{$CONST.STATICPAGE_SECTION_ACCESS}
+
+
+
+ {staticpage_input item="pass"}
+
+
+
+
+ {staticpage_input item="parent_id"}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{$CONST.STATICPAGE_SECTION_META}
+
+
+
+ {staticpage_input item="timestamp"}
+
+
+
+
+ {staticpage_input item="authorid"}
+
+
+
+
+ {staticpage_input item="title_element"}
+
+
+
+
+ {staticpage_input item="meta_description"}
+
+
+
+
+ {staticpage_input item="meta_keywords"}
+
+
+
+
+
+
+
{$CONST.STATICPAGE_SECTION_OPT}
+
+
+
+
+
+
+
+
+
+
+
+{* EXAMPLE FOR CUSTOM STATICPAGE PROPERTIES
+
+
+
+
Custom
+
+
+
+
+
+
+
+
+
+
+
+
+ END OF EXAMPLE FOR CUSTOM STATICPAGE PROPERTIES *}
+
{staticpage_input_finish}
-
-
+
+
-
diff --git a/serendipity_event_staticpage/lang_en.inc.php b/serendipity_event_staticpage/lang_en.inc.php
index 43887916..ff22187a 100644
--- a/serendipity_event_staticpage/lang_en.inc.php
+++ b/serendipity_event_staticpage/lang_en.inc.php
@@ -1,7 +1,7 @@
-
* EN-Revision: Revision of lang_en.inc.php
*/
@@ -174,6 +174,7 @@
@define('STATICPAGE_SECTION_BASIC', 'Basic Content');
@define('STATICPAGE_SECTION_OPT', 'Options');
@define('STATICPAGE_SECTION_STRUCT', 'Structural');
+@define('STATICPAGE_SECTION_ACCESS', 'Access');
@define('PLUGIN_STATICPAGELIST_SMARTIFY', 'Smartify Sidebar list');
@define('PLUGIN_STATICPAGELIST_SMARTIFY_BLAHBLAH', 'Use smarty template file: "plugin_staticpage_sidebar.tpl" for sidebar output (allows to truncate length via smarty).');
@@ -183,4 +184,4 @@
@define('STATICPAGE_SHOW_BREADCRUMB_DEFAULT', 'Show breadcrumb');
@define('STATICPAGE_SHOW_BREADCRUMB', 'Show breadcrumb');
@define('STATICPAGE_SHOW_BREADCRUMB_DESC', 'Show breadcrumb navigation on this page.');
-?>
\ No newline at end of file
+?>
diff --git a/serendipity_event_staticpage/serendipity_event_staticpage.php b/serendipity_event_staticpage/serendipity_event_staticpage.php
index d0ba473c..0d08a7dc 100644
--- a/serendipity_event_staticpage/serendipity_event_staticpage.php
+++ b/serendipity_event_staticpage/serendipity_event_staticpage.php
@@ -1676,13 +1676,13 @@ class serendipity_event_staticpage extends serendipity_event
if (!isset($this->pagetype['id'])) {
$result = serendipity_db_insert('staticpages_types', $this->pagetype);
if (is_string($result)) {
- echo '
ERROR: ' . $result . '
';
+ echo '
ERROR: ' . $result . '';
}
$serendipity["POST"]["pagetype"] = serendipity_db_insert_id('staticpages_types', 'id');
} else {
$result = serendipity_db_update('staticpages_types', array('id' => $this->pagetype['id']), $this->pagetype);
if (is_string($result)) {
- echo '
ERROR: ' . $result . '
';
+ echo '
ERROR: ' . $result . '';
}
}
}
@@ -1758,27 +1758,24 @@ class serendipity_event_staticpage extends serendipity_event
}
if ($serendipity['version'][0] < 2) {
- echo ''."\n";
- echo '';
+ echo '' . "\n";
+ echo '';
}
?>
-
-
-
' . STATICPAGE_PAGEORDER_DESC . '
';
+ echo '
' . STATICPAGE_PAGEORDER_DESC . '
';
switch($serendipity['GET']['moveto']) {
case 'moveup':
@@ -1793,32 +1790,34 @@ class serendipity_event_staticpage extends serendipity_event
if(is_array($pages)) {
$pages = serendipity_walkRecursive($pages);
$sort_idx = 0;
- echo '
'."\n";
+ echo ''."\n";
foreach($pages as $page) {
- echo ''."\n";
- echo '';
+ $oddeven = ($sort_idx % 2 == 0) ? 'odd' : 'even';
+ echo ''."\n";
+ echo '';
echo str_repeat(' ', $page['depth']).$page['pagetitle'];
- echo ' | '."\n";
- echo '';
+ echo '';
+ echo '';
+ echo '- ';
if($sort_idx == 0) {
- echo ' ';
+ echo ' ';
} else {
- echo '';
+ echo '' . UP . '';
}
- echo '
| '."\n";
- echo '';
+ echo ''."\n";
+ echo '- ';
if ($sort_idx == (count($pages)-1)) {
- echo ' ';
+ echo ' ';
} else {
- echo ($page['moveup']!= '' ? ' ' : '') . '';
+ echo ($page['moveup']!= '' ? ' ' : '') . ''. DOWN .'';
}
- echo '
| '."\n";
- echo '
'."\n";
+ echo ''."\n";
+ echo ''."\n";
$sort_idx++;
}
- echo '
'."\n";
+ echo ''."\n";
}
@@ -1845,48 +1844,44 @@ class serendipity_event_staticpage extends serendipity_event
$this->pagetype[$config_item] = serendipity_get_bool($serendipity['POST']['plugin'][$config_item]);
}
}
- echo '
'. DONE .': '. sprintf(SETTINGS_SAVED_AT, serendipity_strftime('%H:%M:%S')) .'
';
+ echo '
'. DONE .': '. sprintf(SETTINGS_SAVED_AT, serendipity_strftime('%H:%M:%S')) .'';
$this->updatePageType();
}
if (!empty($serendipity['POST']['typeDelete']) && $serendipity['POST']['pagetype'] != '__new') {
serendipity_db_query("DELETE FROM {$serendipity['dbPrefix']}staticpages_types WHERE id = " . (int)$serendipity['POST']['pagetype']);
- echo '
'. DONE .': '. sprintf(RIP_ENTRY, $this->pagetype['description']) . '
';
+ echo '
'. DONE .': '. sprintf(RIP_ENTRY, $this->pagetype['description']) . '';
}
echo '
';
}
- echo '
' . STATICPAGE_PAGEADD_PLUGINS . '';
+
+ echo '
' . STATICPAGE_PAGEADD_PLUGINS . '
';
+
$this->pluginstatus();
- echo '