mirror of
https://github.com/e107inc/e107.git
synced 2025-01-29 18:47:54 +01:00
commit
da9ba808e5
@ -513,5 +513,6 @@ define("LAN_ITEM", "Item");
|
||||
define("LAN_LOCK", "Lock");
|
||||
define("LAN_SYSTEM_USER", "System user");
|
||||
define("LAN_ENGINE", "Engine");
|
||||
define("LAN_SOURCE", "Source");
|
||||
|
||||
define("LAN_ERROR_CONNECTION","Unable to connect for updates. Please check firewall and/or internet connection.");
|
||||
|
@ -21,7 +21,7 @@ class news_menu
|
||||
|
||||
function __construct()
|
||||
{
|
||||
// e107::lan('news','admin', 'true');
|
||||
e107::lan('news','admin', 'true');
|
||||
|
||||
}
|
||||
|
||||
@ -29,12 +29,12 @@ class news_menu
|
||||
* Configuration Fields.
|
||||
* @return array
|
||||
*/
|
||||
public function config($menu='') //TODO LAN
|
||||
public function config($menu='')
|
||||
{
|
||||
$fields = array();
|
||||
$categories = array();
|
||||
|
||||
$sources = array('latest'=> "Latest News Items", 'sticky' => "Sticky News Items", 'template'=>"Assigned News items");
|
||||
$sources = array('latest'=> LAN_NEWS_ADMIN_00, 'sticky' => LAN_NEWS_ADMIN_01, 'template'=> LAN_NEWS_ADMIN_02);
|
||||
|
||||
$tmp = e107::getDb()->retrieve('news_category','category_id,category_name',null, true);
|
||||
|
||||
@ -56,25 +56,25 @@ class news_menu
|
||||
break;
|
||||
|
||||
case "news_grid":
|
||||
$this->tabs = array(0 => LAN_PREFS, 1 => "Limits");
|
||||
$this->tabs = array(0 => LAN_PREFS, 1 => LAN_NEWS_ADMIN_09);
|
||||
|
||||
$fields['caption'] = array('title'=> LAN_CAPTION, 'type'=>'text', 'tab'=>0, 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'), 'help'=>LAN_OPTIONAL);
|
||||
$fields['category'] = array('title'=> LAN_CATEGORY, 'type'=>'dropdown', 'tab'=>0, 'writeParms'=>array('optArray'=>$categories, 'default'=>"(".LAN_ALL.")"), 'help'=>"Limit news items to a specific category");
|
||||
$fields['source'] = array('title'=> "Source", 'type'=>'dropdown','tab'=>0, 'writeParms'=>array('optArray'=>$sources), 'help'=>"Assigned items are those with a template assigned to 'News Grid Menu' ");
|
||||
$fields['source'] = array('title'=> LAN_SOURCE, 'type'=>'dropdown','tab'=>0, 'writeParms'=>array('optArray'=>$sources), 'help'=>"Assigned items are those with a template assigned to 'News Grid Menu' ");
|
||||
$fields['layout'] = array('title'=> LAN_TEMPLATE, 'type'=>'dropdown', 'tab'=>0, 'writeParms'=>array('optArray'=>$templates));
|
||||
// $fields['layout'] = array('title'=> "Layout", 'type'=>'method', 'tab'=>0,'writeParms'=>'');
|
||||
$fields['count'] = array('title'=> "Number of Items to Display", 'tab'=>1, 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4));
|
||||
$fields['feature'] = array('title'=> "Number of Feature Items", 'tab'=>1, 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>0));
|
||||
$fields['titleLimit'] = array('title'=> "Title Character Limit", 'tab'=>1, 'type'=>'number', 'writeParms'=>'');
|
||||
$fields['summaryLimit'] = array('title'=> "Summary Character Limit",'tab'=>1, 'type'=>'number', 'writeParms'=>'');
|
||||
$fields['count'] = array('title'=> LAN_NEWS_ADMIN_05, 'tab'=>1, 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4));
|
||||
$fields['feature'] = array('title'=> LAN_NEWS_ADMIN_10, 'tab'=>1, 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>0));
|
||||
$fields['titleLimit'] = array('title'=> LAN_NEWS_ADMIN_06, 'tab'=>1, 'type'=>'number', 'writeParms'=>'');
|
||||
$fields['summaryLimit'] = array('title'=> LAN_NEWS_ADMIN_07,'tab'=>1, 'type'=>'number', 'writeParms'=>'');
|
||||
|
||||
break;
|
||||
|
||||
case "news_carousel":
|
||||
$fields['caption'] = array('title'=> LAN_CAPTION, 'type'=>'text', 'multilan'=>true, 'writeParms'=>array('size'=>'xxlarge'), 'help'=>LAN_OPTIONAL);
|
||||
$fields['category'] = array('title'=> LAN_CATEGORY, 'type'=>'dropdown', 'writeParms'=>array('optArray'=>$categories, 'default'=>"(".LAN_ALL.")"), 'help'=>"Limit news items to a specific category");
|
||||
$fields['source'] = array('title'=> "Source", 'type'=>'dropdown','writeParms'=>array('optArray'=>$sources), 'help'=>"Assigned items are those with a template assigned to 'News Carousel' ");
|
||||
$fields['count'] = array('title'=> "Number of Items to Display", 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4));
|
||||
$fields['source'] = array('title'=> LAN_SOURCE, 'type'=>'dropdown','writeParms'=>array('optArray'=>$sources), 'help'=>"Assigned items are those with a template assigned to 'News Carousel' ");
|
||||
$fields['count'] = array('title'=> LAN_NEWS_ADMIN_05, 'type'=>'number', 'writeParms'=>array('pattern'=>'[0-9]*', 'default'=>4));
|
||||
break;
|
||||
|
||||
|
||||
@ -84,7 +84,7 @@ class news_menu
|
||||
break;
|
||||
|
||||
case "news_months":
|
||||
$fields['showarchive'] = array('title'=> "Display Archive Link", 'type'=>'boolean');
|
||||
$fields['showarchive'] = array('title'=> LAN_NEWS_ADMIN_08, 'type'=>'boolean');
|
||||
$fields['year'] = array('title'=> "Year", 'type'=>'text', 'writeParms'=>array('pattern'=>'[0-9]*', 'size'=>'mini'));
|
||||
break;
|
||||
|
||||
@ -133,4 +133,4 @@ class news_menu_form extends e_form
|
||||
return $text;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ class news_search extends e_search // include plugin-folder in the name.
|
||||
|
||||
|
||||
$search = array(
|
||||
'name' => "News",
|
||||
'name' => LAN_SEARCH_98,
|
||||
'table' => 'news AS n LEFT JOIN #news_category AS c ON n.news_category = c.category_id',
|
||||
|
||||
'advanced' => array(
|
||||
@ -114,4 +114,4 @@ class news_search extends e_search // include plugin-folder in the name.
|
||||
//Old v1.
|
||||
// $search_info[] = array('sfile' => e_PLUGIN.'chatbox_menu/search/search_parser.php', 'qtype' => CB_SCH_LAN_1, 'refpage' => 'chat.php', 'advanced' => e_PLUGIN.'chatbox_menu/search/search_advanced.php');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
25
e107_plugins/news/languages/English_admin.php
Normal file
25
e107_plugins/news/languages/English_admin.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/*
|
||||
+---------------------------------------------------------------------------+
|
||||
| e107 website content management system English Language File
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
| Last Modified: 2017/02/15 08:54:21
|
||||
|
|
||||
| $Author: Yesszus $
|
||||
|
|
||||
+--------------------------------------------------------------------------+
|
||||
*/
|
||||
define("LAN_NEWS_ADMIN_00", "Latest News Items");
|
||||
define("LAN_NEWS_ADMIN_01", "Sticky News Items");
|
||||
define("LAN_NEWS_ADMIN_02", "Assigned News items");
|
||||
define("LAN_NEWS_ADMIN_03", "Limit news items to a specific category");
|
||||
define("LAN_NEWS_ADMIN_04", "Assigned items are those with a template assigned to 'News Grid Menu'");
|
||||
define("LAN_NEWS_ADMIN_05", "Number of Items to Display");
|
||||
define("LAN_NEWS_ADMIN_06", "Title Character Limit");
|
||||
define("LAN_NEWS_ADMIN_07", "Summary Character Limit");
|
||||
define("LAN_NEWS_ADMIN_08", "Display Archive Link");
|
||||
define("LAN_NEWS_ADMIN_09", "Limits");
|
||||
define("LAN_NEWS_ADMIN_10", "Number of Feature Items");
|
||||
define("LAN_NEWS_ADMIN_11", "Assigned items are those with a template assigned to 'News Carousel'");
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user