public function action_settings() { $this->set_title(__('Settings')); Assets::package('ace'); $site_pages = array(); foreach (Model_Navigation::get()->sections() as $section) { foreach ($section->get_pages() as $item) { $url = trim(str_replace(ADMIN_DIR_NAME, '', $item->url()), '/'); $site_pages[$section->name()][$url] = $item->name(); } } $this->template->content = View::factory('system/settings', array('html_editors' => WYSIWYG::html_select(WYSIWYG::TYPE_HTML), 'code_editors' => WYSIWYG::html_select(WYSIWYG::TYPE_CODE), 'dates' => Date::formats(), 'site_pages' => $site_pages, 'default_status_id' => array(Model_Page::STATUS_DRAFT => __('Draft'), Model_Page::STATUS_PUBLISHED => __('Published')))); }
<div class="form-group"> <label class="control-label col-md-3"><?php echo __('Default filter'); ?> </label> <div class="col-md-4"> <?php echo Form::select('filter', WYSIWYG::html_select(), $field->filter); ?> </div> </div> <div class="form-group"> <div class="col-md-offset-3 col-md-9"> <div class="checkbox"> <label> <?php echo Form::checkbox('remove_empty_tags', 1, $field->remove_empty_tags == 1, array('id' => 'remove_empty_tags')); ?> <?php echo __('Remove empty tags'); ?> </label> </div> <div class="checkbox"> <label> <?php echo Form::checkbox('filter_html', 1, $field->filter_html == 1, array('id' => 'html_filter_html')); ?> <?php