diff options
Diffstat (limited to 'admin/admin_articles_inc.php')
| -rwxr-xr-x[-rw-r--r--] | admin/admin_articles_inc.php | 140 |
1 files changed, 71 insertions, 69 deletions
diff --git a/admin/admin_articles_inc.php b/admin/admin_articles_inc.php index 8b8ca69..956e163 100644..100755 --- a/admin/admin_articles_inc.php +++ b/admin/admin_articles_inc.php @@ -1,98 +1,100 @@ <?php + +use Bitweaver\KernelTools; // $Header$ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See below for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details. -$formCmsSettings = array( -/* - Feature is incomplete - 'articles_rankings' => array( - 'label' => 'Rankings', - 'note' => 'Activates statistics for article ranking features.', - ), -*/ - 'articles_attachments' => array( +$formCmsSettings = [ + /* + Feature is incomplete + 'articles_rankings' => [ + 'label' => 'Rankings', + 'note' => 'Activates statistics for article ranking features.', + ], + */ + 'articles_attachments' => [ 'label' => 'File Attachments', - 'note' => 'Allow the attachment of files to an article. This feature is required if you want to have individual article images.', - ), -/* 'articles_content_attachments' => array( - 'label' => 'Content Attachments', - 'note' => 'Allow the attachment of content to an article.', - ), -*/ - 'articles_display_filter_bar' => array( + 'note' => 'Allow the attachment of files to an article. This feature is required if you want to have individual article images.', + ], + /* 'articles_content_attachments' => [ + 'label' => 'Content Attachments', + 'note' => 'Allow the attachment of content to an article.', + ], + */ + 'articles_display_filter_bar' => [ 'label' => 'Articles Filter', - 'note' => 'Allows admins to quickly filter articles based on status, topic and type.', - ), - 'articles_submissions_rnd_img' => array( + 'note' => 'Allows admins to quickly filter articles based on status, topic and type.', + ], + 'articles_submissions_rnd_img' => [ 'label' => 'Prevent Spam', - 'note' => 'This will generate a random number as an image which the user has to confirm.', - ), - 'articles_auto_approve' => array( + 'note' => 'This will generate a random number as an image which the user has to confirm.', + ], + 'articles_auto_approve' => [ 'label' => 'Auto Approve Articles', - 'note' => 'Allow User ratings to Auto Approve Articles', - ), -); + 'note' => 'Allow User ratings to Auto Approve Articles', + ], +]; $gBitSmarty->assign( 'formCmsSettings',$formCmsSettings ); -$articleDateThreshold = array( - '' => tra( 'never' ), - 'always' => tra( 'always' ), - 'year' => tra( 'up to a year' ), - 'month' => tra( 'up to a month' ), - 'week' => tra( 'up to a week' ), - 'day' => tra( 'up to a day' ), - 'hour' => tra( 'up to an hour' ), -); +$articleDateThreshold = [ + '' => KernelTools::tra( 'never' ), + 'always' => KernelTools::tra( 'always' ), + 'year' => KernelTools::tra( 'up to a year' ), + 'month' => KernelTools::tra( 'up to a month' ), + 'week' => KernelTools::tra( 'up to a week' ), + 'day' => KernelTools::tra( 'up to a day' ), + 'hour' => KernelTools::tra( 'up to an hour' ), +]; $gBitSmarty->assign( 'articleDateThreshold', $articleDateThreshold ); -$formArticleListing = array( - "articles_list_title" => array( +$formArticleListing = [ + "articles_list_title" => [ 'label' => 'Title', - 'note' => 'List the title of the article.', - ), - "articles_list_type" => array( + 'note' => 'List the title of the article.', + ], + "articles_list_type" => [ 'label' => 'Type', - 'note' => 'Display what type of article it is.', - ), - "articles_list_topic" => array( + 'note' => 'Display what type of article it is.', + ], + "articles_list_topic" => [ 'label' => 'Topic', - 'note' => 'Display the article topic.', - ), - "articles_list_date" => array( + 'note' => 'Display the article topic.', + ], + "articles_list_date" => [ 'label' => 'Creation Date', - 'note' => 'Display when the article was submitted first.', - ), - "articles_list_expire" => array( + 'note' => 'Display when the article was submitted first.', + ], + "articles_list_expire" => [ 'label' => 'Expiration Date', - 'note' => 'Display when the article will expire.', - ), - "articles_list_author" => array( + 'note' => 'Display when the article will expire.', + ], + "articles_list_author" => [ 'label' => 'Author', - 'note' => 'Display the name of the author of an article.', - ), - "articles_list_reads" => array( + 'note' => 'Display the name of the author of an article.', + ], + "articles_list_reads" => [ 'label' => 'Hits', - 'note' => 'Display the number of times a given article has been accessed.', - ), - "articles_list_size" => array( + 'note' => 'Display the number of times a given article has been accessed.', + ], + "articles_list_size" => [ 'label' => 'Size', - 'note' => 'Display the size of any given article.', - ), - "articles_list_img" => array( + 'note' => 'Display the size of any given article.', + ], + "articles_list_img" => [ 'label' => 'Image', - 'note' => 'Display the image that is associated with a given article.', - ), - "articles_list_status" => array( + 'note' => 'Display the image that is associated with a given article.', + ], + "articles_list_status" => [ 'label' => 'Status', - 'note' => 'This will indicate whether a given article has been submitted or has been approved.', - ), -); + 'note' => 'This will indicate whether a given article has been submitted or has been approved.', + ], +]; $gBitSmarty->assign( 'formArticleListing', $formArticleListing ); -$gBitSmarty->assign( 'imageSizes', get_image_size_options( FALSE )); +$gBitSmarty->assign( 'imageSizes', \Bitweaver\Liberty\get_image_size_options( FALSE )); if( !empty( $_REQUEST['store_settings'] )) { - $featureToggles = array_merge( $formArticleListing,$formCmsSettings ); + $featureToggles = [ ...$formArticleListing,...$formCmsSettings ]; foreach( $featureToggles as $item => $data ) { simple_set_toggle( $item, ARTICLES_PKG_NAME ); } |
