Esempio n. 1
0
 /**
  * Actin detail
  * 
  * @access  public
  * @params  integer
  * @return  Response
  */
 public function action_detail($id = null)
 {
     $content_page = \Content\Model_ContentPage::check_authority($id);
     $this->set_title_and_breadcrumbs($content_page->title, array('admin/content' => term('site.content', 'site.management'), 'admin/content/page' => term('content.page', 'site.management')));
     $this->template->subtitle = \View::forge('content/page/_parts/detail_subtitle', array('content_page' => $content_page));
     $this->template->content = \View::forge('content/page/detail', array('content_page' => $content_page));
     if (\Content\Site_Util::check_editor_enabled()) {
         $this->template->content->set_safe('html_body', $content_page->body);
     }
 }
Esempio n. 2
0
<?php

if (\Content\Site_Util::check_editor_enabled('html_editor')) {
    echo render('_parts/form/summernote/footer');
    echo render('_parts/form/summernote/moderator_setting');
}
if (\Content\Site_Util::check_editor_enabled('markdown')) {
    echo render('_parts/form/markdown/footer', array('textarea_selector' => '#form_body'));
}
echo Asset::js('site/modules/admin/common/editor_form.js');
echo Asset::js('site/modules/admin/content/common/form.js');