Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/inc/lib/elfinder/templates.php

17 lines
559 B

<?php
/* For licensing terms, see /license.txt */
require_once '../../global.inc.php';
use Chamilo\CoreBundle\Component\Editor\CkEditor\CkEditor;
$template = new Template();
$table = Database::get_main_table(TABLE_MAIN_SYSTEM_TEMPLATE);
$sql = "SELECT * FROM $table";
$result = Database::query($sql);
$templates = Database::store_result($result, 'ASSOC');
$editor = new CkEditor();
$templates = $editor->simpleFormatTemplates($templates);
$template->assign('templates', $templates);
$template->display('default/javascript/editor/ckeditor/templates.tpl');