summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BitArticle.php10
-rw-r--r--admin/admin_articles_inc.php28
-rw-r--r--admin/schema_inc.php28
-rw-r--r--index.php6
-rw-r--r--modules/mod_articles.php4
-rw-r--r--rankings.php4
-rw-r--r--templates/admin_articles.tpl8
-rw-r--r--templates/center_list_articles.php4
-rw-r--r--templates/edit_article.tpl4
-rw-r--r--templates/list_articles.tpl38
-rw-r--r--templates/menu_articles.tpl4
11 files changed, 69 insertions, 69 deletions
diff --git a/BitArticle.php b/BitArticle.php
index f93951f..f1c870d 100644
--- a/BitArticle.php
+++ b/BitArticle.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/BitArticle.php,v 1.79 2006/04/11 17:52:08 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/BitArticle.php,v 1.80 2006/04/14 17:18:37 squareing Exp $
* @package article
*
* Copyright( c )2004 bitweaver.org
@@ -9,14 +9,14 @@
* All Rights Reserved. See copyright.txt for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details
*
- * $Id: BitArticle.php,v 1.79 2006/04/11 17:52:08 squareing Exp $
+ * $Id: BitArticle.php,v 1.80 2006/04/14 17:18:37 squareing Exp $
*
* Article class is used when accessing BitArticles. It is based on TikiSample
* and builds on core bitweaver functionality, such as the Liberty CMS engine.
*
* created 2004/8/15
* @author wolffy <wolff_borg@yahoo.com.au>
- * @version $Revision: 1.79 $ $Date: 2006/04/11 17:52:08 $ $Author: squareing $
+ * @version $Revision: 1.80 $ $Date: 2006/04/14 17:18:37 $ $Author: squareing $
*/
/**
@@ -648,7 +648,7 @@ class BitArticle extends LibertyAttachable {
$comment = &new LibertyComment();
while( $res = $result->fetchRow() ) {
$res['image_url'] = BitArticle::getImageUrl( $res );
- $res['time_difference'] = BitDate::calculateTimeDifference( $res['publish_date'], NULL, $gBitSystem->getConfig( 'article_date_threshold' ) );
+ $res['time_difference'] = BitDate::calculateTimeDifference( $res['publish_date'], NULL, $gBitSystem->getConfig( 'articles_date_threshold' ) );
// deal with the parsing
$parseHash['format_guid'] = $res['format_guid'];
@@ -657,7 +657,7 @@ class BitArticle extends LibertyAttachable {
$parts = preg_split( ARTICLE_SPLIT_REGEX, $res['data'] );
$parseHash['data'] = $parts[0];
} else {
- $parseHash['data'] = substr( $res['data'], 0, $gBitSystem->getConfig( 'article_description_length' ) );
+ $parseHash['data'] = substr( $res['data'], 0, $gBitSystem->getConfig( 'articles_description_length' ) );
}
$res['parsed_description'] = $this->parseData( $parseHash );
diff --git a/admin/admin_articles_inc.php b/admin/admin_articles_inc.php
index 6cdf968..91eb16e 100644
--- a/admin/admin_articles_inc.php
+++ b/admin/admin_articles_inc.php
@@ -1,10 +1,10 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_articles/admin/admin_articles_inc.php,v 1.14 2006/04/13 09:09:50 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_articles/admin/admin_articles_inc.php,v 1.15 2006/04/14 17:18:37 squareing Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
$formCmsSettings = array(
- 'cms_rankings' => array(
+ 'articles_rankings' => array(
'label' => 'Rankings',
'note' => 'Activates statistics for article ranking features.',
),
@@ -27,39 +27,39 @@ $articleDateThreshold = array(
$gBitSmarty->assign( 'articleDateThreshold', $articleDateThreshold );
$formArticleListing = array(
- "art_list_title" => array(
+ "articles_list_title" => array(
'label' => 'Title',
'note' => 'List the title of the article.',
),
- "art_list_type" => array(
+ "articles_list_type" => array(
'label' => 'Type',
'note' => 'Display what type of article it is.',
),
- "art_list_topic" => array(
+ "articles_list_topic" => array(
'label' => 'Topic',
'note' => 'Display the article topic.',
),
- "art_list_date" => array(
+ "articles_list_date" => array(
'label' => 'Creation Date',
'note' => 'Display when the article was submitted first.',
),
- "art_list_expire" => array(
+ "articles_list_expire" => array(
'label' => 'Expiration Date',
'note' => 'Display when the article will expire.',
),
- "art_list_author" => array(
+ "articles_list_author" => array(
'label' => 'Author',
'note' => 'Display the name of the author of an article.',
),
- "art_list_reads" => array(
+ "articles_list_reads" => array(
'label' => 'Hits',
'note' => 'Display the number of times a given article has been accessed.',
),
- "art_list_size" => array(
+ "articles_list_size" => array(
'label' => 'Size',
'note' => 'Display the size of any given article.',
),
- "art_list_img" => array(
+ "articles_list_img" => array(
'label' => 'Image',
'note' => 'Display the image that is associated with a given article.',
),
@@ -77,9 +77,9 @@ if( $processForm ) {
foreach( $featureToggles as $item => $data ) {
simple_set_toggle( $item, ARTICLES_PKG_NAME );
}
- simple_set_value( "article_date_threshold", ARTICLES_PKG_NAME );
- simple_set_int( "max_articles", ARTICLES_PKG_NAME );
- simple_set_int( "article_description_length", ARTICLES_PKG_NAME );
+ simple_set_value( "articles_date_threshold", ARTICLES_PKG_NAME );
+ simple_set_int( "articles_max_list", ARTICLES_PKG_NAME );
+ simple_set_int( "articles_description_length", ARTICLES_PKG_NAME );
simple_set_int( "article_topic_thumbnail_size", ARTICLES_PKG_NAME );
}
?>
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index d0d962a..d4cc591 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -118,20 +118,20 @@ $gBitInstaller->registerUserPermissions( ARTICLES_PKG_NAME, array(
// ### Default Preferences
$gBitInstaller->registerPreferences( ARTICLES_PKG_NAME, array(
- array( ARTICLES_PKG_NAME, 'art_list_author','y'),
- array( ARTICLES_PKG_NAME, 'art_list_date','y'),
- array( ARTICLES_PKG_NAME, 'art_list_img','y'),
- array( ARTICLES_PKG_NAME, 'art_list_reads','y'),
- array( ARTICLES_PKG_NAME, 'art_list_size','y'),
- array( ARTICLES_PKG_NAME, 'art_list_title','y'),
- array( ARTICLES_PKG_NAME, 'art_list_topic','y'),
- array( ARTICLES_PKG_NAME, 'art_list_type','y'),
- array( ARTICLES_PKG_NAME, 'art_list_expire','y'),
- array( ARTICLES_PKG_NAME, 'max_articles','10'),
- array( ARTICLES_PKG_NAME, 'cms_rankings','y'),
- array( ARTICLES_PKG_NAME, 'article_submissions', 'y'),
- array( ARTICLES_PKG_NAME, 'article_description_length', '500'),
- array( ARTICLES_PKG_NAME, 'article_date_threshold', 'week'),
+ array( ARTICLES_PKG_NAME, 'articles_list_author','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_date','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_img','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_reads','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_size','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_title','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_topic','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_type','y'),
+ array( ARTICLES_PKG_NAME, 'articles_list_expire','y'),
+ array( ARTICLES_PKG_NAME, 'articles_max_list','10'),
+ array( ARTICLES_PKG_NAME, 'articles_rankings','y'),
+ array( ARTICLES_PKG_NAME, 'articles_submissions', 'y'),
+ array( ARTICLES_PKG_NAME, 'articles_description_length', '500'),
+ array( ARTICLES_PKG_NAME, 'articles_date_threshold', 'week'),
) );
if( defined( 'RSS_PKG_NAME' ) ) {
diff --git a/index.php b/index.php
index 551a88a..939e414 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.15 2006/04/11 17:52:08 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_articles/index.php,v 1.16 2006/04/14 17:18:37 squareing Exp $
// Copyright( c )2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
@@ -22,12 +22,12 @@ include_once( ARTICLES_PKG_PATH.'article_filter_inc.php' );
if( $gBitUser->isAdmin() || $gBitUser->hasPermission( 'p_articles_admin' ) ) {
$_REQUEST['status_id'] = !empty( $_REQUEST['status_id'] ) ? $_REQUEST['status_id'] : ARTICLE_STATUS_APPROVED;
- $_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->getConfig( 'max_articles' );
+ $_REQUEST['max_records'] = !empty( $_REQUEST['max_records'] ) ? $_REQUEST['max_records'] : $gBitSystem->getConfig( 'articles_max_list' );
$_REQUEST['topic_id'] = !empty( $_REQUEST['topic_id'] ) ? $_REQUEST['topic_id'] : NULL;
$_REQUEST['type_id'] = !empty( $_REQUEST['type_id'] ) ? $_REQUEST['type_id'] : NULL;
} else {
$_REQUEST['status_id'] = ARTICLE_STATUS_APPROVED;
- $_REQUEST['max_records'] = $gBitSystem->getConfig( 'max_articles' );
+ $_REQUEST['max_records'] = $gBitSystem->getConfig( 'articles_max_list' );
}
$articles = $gContent->getList( $_REQUEST );
$gBitSmarty->assign( 'articles', $articles['data'] );
diff --git a/modules/mod_articles.php b/modules/mod_articles.php
index 00b672e..732b800 100644
--- a/modules/mod_articles.php
+++ b/modules/mod_articles.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.9 2006/03/01 20:16:02 spiderr Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/modules/mod_articles.php,v 1.10 2006/04/14 17:18:37 squareing Exp $
* @package article
* @subpackage modules
*/
@@ -33,7 +33,7 @@ if( !empty( $module_params['sort_mode'] ) && in_array( $module_params['sort_mode
$getHash['status_id'] = $status_id;
$getHash['sort_mode'] = $sort_mode;
-$getHash['max_records'] = !empty( $module_rows ) ? $module_rows : $gBitSystem->getConfig( 'max_articles' );
+$getHash['max_records'] = !empty( $module_rows ) ? $module_rows : $gBitSystem->getConfig( 'articles_max_list' );
$getHash['topic'] = !empty( $module_params['topic'] ) ? $module_params['topic'] : NULL;
$articles = $articles->getList( $getHash );
diff --git a/rankings.php b/rankings.php
index b69b1b8..45f3f4f 100644
--- a/rankings.php
+++ b/rankings.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_articles/rankings.php,v 1.8 2006/04/11 13:03:24 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_articles/rankings.php,v 1.9 2006/04/14 17:18:37 squareing Exp $
* @package article
* @subpackage functions
*/
@@ -14,7 +14,7 @@ include_once( LIBERTY_PKG_PATH . 'LibertyContent.php' );
include_once( ARTICLES_PKG_PATH . 'BitArticle.php' );
$gBitSystem->isPackageActive( 'articles' );
-$gBitSystem->isFeatureActive( 'cms_rankings' );
+$gBitSystem->isFeatureActive( 'articles_rankings' );
$gBitSystem->verifyPermission( 'p_articles_read' );
$rankingOptions = array(
diff --git a/templates/admin_articles.tpl b/templates/admin_articles.tpl
index 747ccc5..1987b1e 100644
--- a/templates/admin_articles.tpl
+++ b/templates/admin_articles.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_articles/templates/admin_articles.tpl,v 1.10 2006/03/01 21:12:23 spiderr Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_articles/templates/admin_articles.tpl,v 1.11 2006/04/14 17:18:37 squareing Exp $ *}
{strip}
{form}
{jstabs}
@@ -19,7 +19,7 @@
<div class="row">
{formlabel label="Maximum Articles" for="articles-maxhome"}
{forminput}
- <input size="5" type="text" name="max_articles" id="articles-maxhome" value="{$gBitSystem->getConfig('max_articles')|escape}" />
+ <input size="5" type="text" name="articles_max_list" id="articles-maxhome" value="{$gBitSystem->getConfig('articles_max_list')|escape}" />
{formhelp note="Number of articles shown on the main articles page."}
{/forminput}
</div>
@@ -27,7 +27,7 @@
<div class="row">
{formlabel label="Article Description Length" for="articles-descrlength"}
{forminput}
- <input size="5" type="text" name="article_description_length" id="articles-descrlength" value="{$gBitSystem->getConfig('article_description_length')|escape}" /> {tr}characters{/tr}
+ <input size="5" type="text" name="articles_description_length" id="articles-descrlength" value="{$gBitSystem->getConfig('articles_description_length')|escape}" /> {tr}characters{/tr}
{formhelp note="Number of characters displayed on the articles main page before splitting the article into a heading and body.<br />Changing this value might influence existing articles."}
{/forminput}
</div>
@@ -43,7 +43,7 @@
<div class="row">
{formlabel label="Display Time since Publishing" for="articles-date-threshold"}
{forminput}
- {html_options options=$articleDateThreshold values=$articleDateThreshold name=article_date_threshold id=article-date-threshold selected=$gBitSystem->mPrefs.article_date_threshold}
+ {html_options options=$articleDateThreshold values=$articleDateThreshold name=articles_date_threshold id=article-date-threshold selected=$gBitSystem->mPrefs.articles_date_threshold}
{formhelp note="Display the time since the article has been published instead of the full date. Pick the timespan for which this is true."}
{/forminput}
</div>
diff --git a/templates/center_list_articles.php b/templates/center_list_articles.php
index 9271370..cdfca1a 100644
--- a/templates/center_list_articles.php
+++ b/templates/center_list_articles.php
@@ -1,5 +1,5 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_articles/templates/center_list_articles.php,v 1.6 2006/04/11 17:52:09 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_articles/templates/center_list_articles.php,v 1.7 2006/04/14 17:18:37 squareing Exp $
require_once( '../bit_setup_inc.php' );
include_once( ARTICLES_PKG_PATH . 'BitArticle.php' );
@@ -17,7 +17,7 @@ if (empty($_REQUEST['status_id']) || (!$gBitUser->hasPermission('p_articles_appr
$_REQUEST['status_id'] = ARTICLE_STATUS_APPROVED;
}
-$gBitSmarty->assign('descriptionLength', $gBitSystem->getConfig( 'article_description_length', 500 ) );
+$gBitSmarty->assign('descriptionLength', $gBitSystem->getConfig( 'articles_description_length', 500 ) );
$gBitSmarty->assign('showDescriptionsOnly', TRUE);
//if( empty( $articles ) ) {
diff --git a/templates/edit_article.tpl b/templates/edit_article.tpl
index 17ada41..1be9263 100644
--- a/templates/edit_article.tpl
+++ b/templates/edit_article.tpl
@@ -103,11 +103,11 @@
<div class="row">
{forminput}
- <textarea {spellchecker} id="{$textarea_id}" name="edit" rows="{$smarty.cookies.rows|default:20}" cols="50" onkeydown="charCounter('{$textarea_id}','artCounter',{$gBitSystem->getConfig('article_description_length')})" onkeyup ="charCounter('{$textarea_id}','artCounter',{$gBitSystem->getConfig('article_description_length')})">{$article.data|escape:html}</textarea>
+ <textarea {spellchecker} id="{$textarea_id}" name="edit" rows="{$smarty.cookies.rows|default:20}" cols="50" onkeydown="charCounter('{$textarea_id}','artCounter',{$gBitSystem->getConfig('articles_description_length')})" onkeyup ="charCounter('{$textarea_id}','artCounter',{$gBitSystem->getConfig('articles_description_length')})">{$article.data|escape:html}</textarea>
{capture name=artCount}
{$article.data|count_characters:true}
{/capture}
- <input style="float:right" readonly="readonly" type="text" id="artCounter" size="5" value="{$gBitSystem->getConfig('article_description_length')-$smarty.capture.artCount}" />
+ <input style="float:right" readonly="readonly" type="text" id="artCounter" size="5" value="{$gBitSystem->getConfig('articles_description_length')-$smarty.capture.artCount}" />
{formhelp note="If the article body exceeds the specified maximum body length, a seperate page will be provided with the full body of the article. You can override this by using <strong>...split...</strong> on a seperate line in your text."}
{/forminput}
</div>
diff --git a/templates/list_articles.tpl b/templates/list_articles.tpl
index 3bee495..af2c7cd 100644
--- a/templates/list_articles.tpl
+++ b/templates/list_articles.tpl
@@ -1,4 +1,4 @@
-{* $Header: /cvsroot/bitweaver/_bit_articles/templates/list_articles.tpl,v 1.16 2006/04/11 13:03:25 squareing Exp $ *}
+{* $Header: /cvsroot/bitweaver/_bit_articles/templates/list_articles.tpl,v 1.17 2006/04/14 17:18:37 squareing Exp $ *}
<div class="floaticon">{bithelp}</div>
{strip}
@@ -14,16 +14,16 @@
<div class="navbar">
<ul>
<li>{biticon ipackage=liberty iname=sort iexplain="sort by"}</li>
- {if $gBitSystem->isFeatureActive( 'art_list_title' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_title' )}
<li>{smartlink ititle='Title' isort='title' offset=$offset type=$find_type topic=$find_topic}</li>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_author' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_author' )}
<li>{smartlink ititle='Author' isort='author_name' offset=$offset type=$find_type topic=$find_topic}</li>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_date' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_date' )}
<li>{smartlink ititle='Publish Date' isort='publish_date' offset=$offset type=$find_type topic=$find_topic}</li>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_expire' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_expire' )}
<li>{smartlink ititle='Expire Date' isort='expire_date' offset=$offset type=$find_type topic=$find_topic}</li>
{/if}
</ul>
@@ -37,19 +37,19 @@
<table class="data">
<caption>{tr}Articles Listing{/tr}</caption>
<tr>
- {if $gBitSystem->isFeatureActive( 'art_list_img' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_img' )}
<th style="width:10px;">{tr}Image{/tr}</th>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_type' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_type' )}
<th>{smartlink ititle='Type' isort='type_name' offset=$offset type=$find_type topic=$find_topic}</th>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_topic' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_topic' )}
<th>{smartlink ititle='Topic' isort='topic_name' offset=$offset type=$find_type topic=$find_topic}</th>
{/if}
{if $gBitSystem->isFeatureActive( 'art_list_status' )}
<th>{smartlink ititle='Status' isort='status_id' offset=$offset type=$find_type topic=$find_topic}</th>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_reads' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_reads' )}
<th>{smartlink ititle='Reads' isort='hits' offset=$offset type=$find_type topic=$find_topic}</th>
{/if}
<th>{tr}Action{/tr}</th>
@@ -57,7 +57,7 @@
{cycle values="even,odd" print=false}
{foreach item=article from=$listpages}
<tr class="{cycle advance=false}">
- {if $gBitSystem->isFeatureActive( 'art_list_img' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_img' )}
<td rowspan="2">
{if $article.image_url}
{if $gBitUser->hasPermission( 'p_articles_read' )}
@@ -72,7 +72,7 @@
{/if}
<td colspan="5">
- {if $gBitSystem->isFeatureActive( 'art_list_title' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_title' )}
<h2>
{if $gBitUser->hasPermission( 'p_articles_read' )}
<a href="{$article.display_url}">{$article.title|escape}</a>
@@ -82,33 +82,33 @@
</h2>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_author' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_author' )}
{tr}Created by{/tr}: {displayname user=$article.author_name}
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_date' ) or $gBitSystem->isFeatureActive( 'art_list_expire' )}<br />{/if}
+ {if $gBitSystem->isFeatureActive( 'articles_list_date' ) or $gBitSystem->isFeatureActive( 'articles_list_expire' )}<br />{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_date' ) and $gBitSystem->isFeatureActive( 'art_list_expire' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_date' ) and $gBitSystem->isFeatureActive( 'articles_list_expire' )}
{tr}Displayed from <strong>{$article.publish_date|bit_short_datetime}</strong> until <strong>{$article.expire_date|bit_short_datetime}</strong>{/tr}
- {elseif $gBitSystem->isFeatureActive( 'art_list_date' )}
+ {elseif $gBitSystem->isFeatureActive( 'articles_list_date' )}
{tr}Displayed from <strong>{$article.publish_date|bit_short_datetime}</strong>{/tr}
- {elseif $gBitSystem->isFeatureActive( 'art_list_expire' )}
+ {elseif $gBitSystem->isFeatureActive( 'articles_list_expire' )}
{tr}Displayed until <strong>{$article.expire_date|bit_short_datetime}</strong>{/tr}
{/if}
</td>
</tr>
<tr class="{cycle}">
- {if $gBitSystem->isFeatureActive( 'art_list_type' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_type' )}
<td>{tr}{$article.type_name}{/tr}</td>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_topic' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_topic' )}
<td>{$article.topic_name}</td>
{/if}
{if $gBitSystem->isFeatureActive( 'art_list_status' )}
<td>{$article.status_name}</td>
{/if}
- {if $gBitSystem->isFeatureActive( 'art_list_reads' )}
+ {if $gBitSystem->isFeatureActive( 'articles_list_reads' )}
<td style="text-align:right;">{$article.hits}</td>
{/if}
<td style="text-align:right;">
diff --git a/templates/menu_articles.tpl b/templates/menu_articles.tpl
index 838eabd..8344e84 100644
--- a/templates/menu_articles.tpl
+++ b/templates/menu_articles.tpl
@@ -5,7 +5,7 @@
<li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}list.php">{biticon ipackage=liberty iname=list iexplain="list articles" iforce=icon} {tr}List articles{/tr}</a></li>
<li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}list_topics.php">{biticon ipackage=liberty iname=list iexplain="list articles" iforce=icon} {tr}List topics{/tr}</a></li>
{/if}
- {if $gBitSystem->isFeatureActive('article_submissions')}
+ {if $gBitSystem->isFeatureActive('articles_submissions')}
{if $gBitUser->hasPermission( 'p_articles_submit ' ) ||
$gBitUser->hasPermission( 'p_articles_approve_submission ' ) ||
$gBitUser->hasPermission( 'p_articles_remove_submission ' )}
@@ -15,7 +15,7 @@
{if $gBitUser->hasPermission( 'p_articles_edit') || $gBitUser->hasPermission('p_articles_submit') }
<li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}edit.php">{biticon ipackage=liberty iname=new iexplain="new article" iforce=icon} {tr}{if $gBitUser->hasPermission('p_articles_edit')}Write{else}Submit{/if} article{/tr}</a></li>
{/if}
- {if $gBitSystem->isFeatureActive( 'cms_rankings' ) && $gBitUser->hasPermission( 'p_articles_read ' )}
+ {if $gBitSystem->isFeatureActive( 'articles_rankings' ) && $gBitUser->hasPermission( 'p_articles_read ' )}
<li><a class="item" href="{$smarty.const.ARTICLES_PKG_URL}rankings.php">{biticon ipackage=liberty iname=list iexplain="article rankings" iforce=icon} {tr}Article rankings{/tr}</a></li>
{/if}
{if $gBitSystem->isFeatureActive( 'feature_comm' ) && $gBitUser->hasPermission( 'p_articles_send ' )}