Вход Регистрация
Файл: wysiwyg/markitup/options.php
Строк: 28
<?php
class formWysiwygMarkitupOptions extends cmsForm {

    public function 
init($do) {

        return array(

            array(
                
'type' => 'fieldset',
                
'title' => LANG_WW_OPTIONS,
                
'childs' => array(

                    new 
fieldList('options:buttons', array(
                        
'title' => LANG_MARKITUP_BTN,
                        
'is_chosen_multiple' => true,
                        
'generator' => function($item){

                            
cmsCore::includeFile('wysiwyg/markitup/wysiwyg.class.php');

                            
$editor = new cmsWysiwygMarkitup();

                            
$items = [];

                            foreach (
$editor->default_set['markupSet'] as $id => $btn) {
                                
$items[$id] = $btn['name'];
                            }

                            return 
$items;
                        },
                        
'default' => [0,1,2,3,9,14]
                    )),

                    new 
fieldList('options:skin', array(
                        
'title' => LANG_MARKITUP_THEME_SKIN,
                        
'generator' => function($item){
                            
$items = [];
                            
$ps cmsCore::getDirsList('wysiwyg/markitup/skins');
                            foreach(
$ps as $p){ $items[$p] = $p; }
                            return 
$items;
                        },
                        
'default' => 'simple'
                    
))

                )
            )

        );

    }

}
Онлайн: 2
Реклама