summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2006-11-25 16:26:29 +0000
committerMax Kremmel <xing@synapse.plus.com>2006-11-25 16:26:29 +0000
commite60710ab7165adb3402a1cc39f8f4efe0b6eb2a5 (patch)
tree86a9ce17f204fc565df46d814798d9ba9d103ecf
parentc1f5e0e98efbab8a50f445fd44ccc2cac631433e (diff)
downloadliberty-e60710ab7165adb3402a1cc39f8f4efe0b6eb2a5.tar.gz
liberty-e60710ab7165adb3402a1cc39f8f4efe0b6eb2a5.tar.bz2
liberty-e60710ab7165adb3402a1cc39f8f4efe0b6eb2a5.zip
make liberty status stuff optional and hide for now since it's not being used at all just yet.
-rw-r--r--admin/admin_liberty_inc.php4
-rw-r--r--templates/comments.tpl1
-rw-r--r--templates/edit_content_status_inc.tpl14
3 files changed, 12 insertions, 7 deletions
diff --git a/admin/admin_liberty_inc.php b/admin/admin_liberty_inc.php
index 65adaa5..dbe640b 100644
--- a/admin/admin_liberty_inc.php
+++ b/admin/admin_liberty_inc.php
@@ -1,5 +1,9 @@
<?php
$formLibertyFeatures = array(
+ "liberty_display_status" => array(
+ 'label' => 'Display content status',
+ 'note' => 'Display a status selection menu when editing content (not fully developed, experimental feature).',
+ ),
"liberty_cache_pages" => array(
'label' => 'External page cache',
'note' => 'Enabling this will download and cache external pages that are included.',
diff --git a/templates/comments.tpl b/templates/comments.tpl
index 1b238ac..46ca60d 100644
--- a/templates/comments.tpl
+++ b/templates/comments.tpl
@@ -9,7 +9,6 @@
</div>
<div class="body">
-
{include file="bitpackage:liberty/comments_post_inc.tpl" post_title="Post Comment"}
{include file="bitpackage:liberty/comments_display_option_bar.tpl"}
diff --git a/templates/edit_content_status_inc.tpl b/templates/edit_content_status_inc.tpl
index 3d5b9de..a747f4e 100644
--- a/templates/edit_content_status_inc.tpl
+++ b/templates/edit_content_status_inc.tpl
@@ -1,6 +1,8 @@
-<div class="row">
- {formlabel label="Status"}
- {forminput}
- {html_options name="content_status_id" options=$gLibertySystem->getContentStatus() selected=$gContent->getField('content_status_id',$smarty.const.BIT_CONTENT_DEFAULT_STATUS)}
- {/forminput}
-</div>
+{if $gBitSystem->isFeatureActive( 'liberty_display_status' )}
+ <div class="row">
+ {formlabel label="Status"}
+ {forminput}
+ {html_options name="content_status_id" options=$gLibertySystem->getContentStatus() selected=$gContent->getField('content_status_id',$smarty.const.BIT_CONTENT_DEFAULT_STATUS)}
+ {/forminput}
+ </div>
+{/if}