From 500ec0c47708f327e90fbf8a4ed48b7c39986021 Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 18 Jan 2017 17:24:11 -0800 Subject: [PATCH] Issue #2297 Loading of landing-zero config language file. --- e107_admin/cpage.php | 2 +- e107_themes/landingzero/theme_config.php | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/e107_admin/cpage.php b/e107_admin/cpage.php index c07a1254d..7c1793ba3 100644 --- a/e107_admin/cpage.php +++ b/e107_admin/cpage.php @@ -371,7 +371,7 @@ class page_chapters_form_ui extends e_admin_form_ui $text .= ""; - $text .= print_a($value,true); + // $text .= print_a($value,true); return $text; diff --git a/e107_themes/landingzero/theme_config.php b/e107_themes/landingzero/theme_config.php index 11c7ba307..ceb563d97 100644 --- a/e107_themes/landingzero/theme_config.php +++ b/e107_themes/landingzero/theme_config.php @@ -8,6 +8,12 @@ e107::lan('theme', 'admin',true); class theme_config implements e_theme_config { + function __construct() + { + e107::themeLan('admin','landingzero',true); + } + + function config() { // v2.1.4 format. @@ -18,7 +24,7 @@ class theme_config implements e_theme_config 'videoposter' => array('title' => LAN_LZ_THEMEPREF_02, 'type'=>'image', 'help'=>''), 'videourl' => array('title' => LAN_LZ_THEMEPREF_03, 'type'=>'text', 'writeParms'=>array('size'=>'xxlarge'),'help'=>''), 'usernav_placement' => array('title' => LAN_LZ_THEMEPREF_04, 'type'=>'dropdown', 'writeParms'=>array('optArray'=>array(LAN_LZ_THEMEPREF_05, LAN_LZ_THEMEPREF_06), 'useValues'=>1)), - 'cdn' => array('title' => 'CDN', 'type'=>'dropdown', 'writeParms'=>array('optArray'=>array( 'cdnjs' => 'CDNJS (Cloudflare)', 'jsdelivr' => 'jsDelivr'))) + 'cdn' => array('title' => 'CDN', 'type'=>'dropdown', 'writeParms'=>array('optArray'=>array( 'cdnjs' => 'CDNJS (Cloudflare)', 'jsdelivr' => 'jsDelivr'))) ); return $fields; @@ -27,12 +33,12 @@ class theme_config implements e_theme_config function help() { - return ''; + return null; } function process() { - return ''; + return null; } }