diff --git a/e107_plugins/hero/admin_config.php b/e107_plugins/hero/admin_config.php index 21dd6c9a9..d9d21331a 100644 --- a/e107_plugins/hero/admin_config.php +++ b/e107_plugins/hero/admin_config.php @@ -9,7 +9,8 @@ if (!getperms('P')) exit; } -// e107::lan('hero',true); +//e107::lan('hero',true); +e107::lan('hero',true, true); e107::css('hero', 'css/bootstrap-iconpicker.min.css'); @@ -80,15 +81,15 @@ class hero_ui extends e_admin_ui protected $fields = array ( 'checkboxes' => array ( 'title' => '', 'type' => null, 'data' => null, 'width' => '5%', 'thclass' => 'center', 'forced' => '1', 'class' => 'center', 'toggle' => 'e-multiselect', ), 'hero_id' => array ( 'title' => LAN_ID, 'type' => null, 'data' => 'int', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), - 'hero_media' => array('title'=> "Image/Video", 'type'=>'image', 'noedit'=>true, 'data'=>'str', 'readParms'=>array('thumb'=>'100x80'), 'writeParms'=>array('media'=>'hero^', 'video' => 1)), - 'hero_bg' => array('title'=> "Background", 'type'=>'image', 'noedit'=>true, 'data'=>'str', 'readParms'=>array('thumb'=>'100x80'), 'writeParms'=>array('media'=>'hero^')), + 'hero_media' => array('title'=> LAN_HERO_IMAGE_VIDEO, 'type'=>'image', 'noedit'=>true, 'data'=>'str', 'readParms'=>array('thumb'=>'100x80'), 'writeParms'=>array('media'=>'hero^', 'video' => 1)), + 'hero_bg' => array('title'=> LAN_HERO_BACKGROUND, 'type'=>'image', 'noedit'=>true, 'data'=>'str', 'readParms'=>array('thumb'=>'100x80'), 'writeParms'=>array('media'=>'hero^')), 'hero_title' => array ( 'title' => LAN_TITLE, 'type' => 'text', 'data' => 'str', 'width' => '18%', 'inline' => true, 'help' => '', 'readParms' => '', 'writeParms' => array('size'=>'block-level'), 'class' => 'left', 'thclass' => 'left', ), 'hero_description' => array ( 'title' => LAN_DESCRIPTION, 'type' => 'text', 'data' => 'str', 'width' => '30%', 'inline' => true, 'help' => '', 'readParms' => '', 'writeParms' => array('size'=>'block-level'), 'class' => 'left', 'thclass' => 'left', ), - 'hero_bullets' => array ( 'title' => 'Bullets', 'type' => 'method', 'data' => 'json', 'width' => '35%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), - 'hero_images' => array('title'=> "Media", 'type'=>'method', 'data'=>false, 'nolist'=>true), - 'hero_button1' => array ( 'title' => 'Button-1', 'type' => 'method', 'data' => 'json', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), - 'hero_button2' => array ( 'title' => 'Button-2', 'type' => 'method', 'data' => 'json', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), + 'hero_bullets' => array ( 'title' => LAN_ICON, 'type' => 'method', 'data' => 'json', 'width' => '35%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), + 'hero_images' => array('title'=> LAN_HERO_MEDIA, 'type'=>'method', 'data'=>false, 'nolist'=>true), + 'hero_button1' => array ( 'title' => LAN_HERO_BUTTON.'-1', 'type' => 'method', 'data' => 'json', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), + 'hero_button2' => array ( 'title' => LAN_HERO_BUTTON.'-2', 'type' => 'method', 'data' => 'json', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), 'hero_order' => array ( 'title' => LAN_ORDER, 'tab'=>1 , 'type' => 'number', 'data' => 'int', 'width' => '5%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), 'hero_class' => array ( 'title' => LAN_VISIBILITY, 'tab'=>1, 'type' => 'userclass', 'data' => 'int', 'inline'=>true, 'width' => '10%', 'help' => '', 'readParms' => '', 'writeParms' => '', 'class' => 'left', 'thclass' => 'left', ), @@ -101,8 +102,8 @@ class hero_ui extends e_admin_ui // protected $preftabs = array('General', 'Other' ); protected $prefs = array( 'visibility' => array('title'=> LAN_VISIBILITY, 'tab'=>0, 'type'=>'userclass', 'data' => 'str', 'help'=>'', 'writeParms'=>array('classlist' => 'public,member,guest,admin,main,classes,nobody, no-excludes')), - 'icon_pack' => array('title'=> "Icon Pack", 'tab'=>0, 'type'=>'method', 'data' => 'str', 'writeParms'=>array(),'help'=>''), - 'slide_interval' => array('title'=>'Slide Interval', 'type'=>'dropdown', 'data'=>'int', 'writeParms'=>array('optArray'=>array())), + 'icon_pack' => array('title'=> LAN_HERO_ICON_PACK, 'tab'=>0, 'type'=>'method', 'data' => 'str', 'writeParms'=>array(),'help'=>''), + 'slide_interval' => array('title'=>LAN_HERO_SLIDE_INTERVAL, 'type'=>'dropdown', 'data'=>'int', 'writeParms'=>array('optArray'=>array())), ); @@ -114,7 +115,7 @@ class hero_ui extends e_admin_ui $opts = array(); foreach($r as $v) { - $opts[$v] = str_replace('000', '', $v).' second(s)'; + $opts[$v] = str_replace('000', '', $v).' '.LAN_HERO_SEC; } $this->prefs['slide_interval']['writeParms']['optArray'] = $opts; @@ -196,7 +197,7 @@ class hero_ui extends e_admin_ui public function renderHelp() { $caption = LAN_HELP; - $text = 'Be sure to enable the hero menu on your home page using the Menu Manager.'; + $text = LAN_HERO_HELP; return array('caption'=>$caption,'text'=> $text); @@ -415,11 +416,11 @@ class hero_form_ui extends e_admin_form_ui - Icon - Icon-style - Text - Animation - Delay (secs) + ".LAN_ICON." + ".LAN_HERO_ICON_STYLE." + ".LAN_HERO_TEXT." + ".LAN_HERO_ANIMATION." + ".LAN_HERO_DELAY." "; @@ -512,7 +513,7 @@ class hero_form_ui extends e_admin_form_ui $text .= " ".$this->glyphPicker($name.'[icon]', varset($val['icon']))." - ".$this->text($name.'[label]', varset($val['label']), 255, array('size'=>'block-level', 'placeholder'=>'Label'))." + ".$this->text($name.'[label]', varset($val['label']), 255, array('size'=>'block-level', 'placeholder'=>LAN_HERO_LABEL))." ".$this->text($name.'[url]', varset($val['url']), 255, array('size'=>'block-level', 'placeholder'=>'URL'))." ".$this->btnClass($name.'[class]', varset($val['class']))." "; @@ -614,8 +615,8 @@ class hero_form_ui extends e_admin_form_ui return " - - + + @@ -640,5 +641,3 @@ e107::js('hero', 'js/bootstrap-iconpicker.min.js'); require_once(e_ADMIN."footer.php"); - -
BackgroundImage/Video".LAN_HERO_BACKGROUND."".LAN_HERO_IMAGE_VIDEO."
".$this->imagepicker('hero_bg', $bg, null, array('media'=>'hero^'))."