/**
 * This function set the page header -> JS/CSS includes.
 *
 */
function set_header()
{
    global $PAGE;
    $PAGE->requires->css('/local/yuigallerylibs/gallery-multivalue-input/assets/skins/sam/gallery-multivalue-input.css');
    $PAGE->requires->css('/blocks/skills_group/css/skills_group.css');
    $PAGE->requires->js_module(get_js_module_info('gallery-multivalue-input'));
    $PAGE->requires->strings_for_js(array('groupplaceholder', 'nomembers', 'groupupdatesuccess', 'groupupdateerror', 'toomanymembers'), BLOCK_SG_LANG_TABLE);
}
/**
 * This function set the page header -> JS/CSS includes.
 *
 */
function set_header()
{
    global $PAGE;
    $PAGE->requires->css('/blocks/skills_group/css/skills_group.css');
    $PAGE->requires->js_module(get_js_module_info('gallery-datatable-selection'));
    $PAGE->requires->js_module(get_js_module_info('gallery-datatable-paginator'));
    $PAGE->requires->js_module(get_js_module_info('gallery-paginator-view'));
    $PAGE->requires->strings_for_js(array('groupsloading', 'emptygroups', 'groupsloaderror', 'groupjoinsuccess', 'groupjoinerror'), BLOCK_SG_LANG_TABLE);
}
Exemplo n.º 3
0
/**
 * This function set the page header -> JS/CSS includes.
 *
 */
function set_header()
{
    global $PAGE, $COURSE, $USER;
    // Css.
    $PAGE->requires->css('/blocks/course_message/css/inbox.css');
    $PAGE->requires->css('/local/yuigallerylibs/gallery-multivalue-input/assets/skins/sam/gallery-multivalue-input.css');
    // Js files.
    $PAGE->requires->js_module(get_js_module_info('gallery-multivalue-input'));
    $PAGE->requires->js_module(get_js_module_info('gallery-datatable-selection'));
    $PAGE->requires->js_module(get_js_module_info('gallery-datatable-paginator'));
    $PAGE->requires->js_module(get_js_module_info('gallery-paginator-view'));
    // Language strings.
    $PAGE->requires->strings_for_js(array('nocontactswarning', 'discardmessagewarning', 'nosubjectwarning', 'nomessagewarning', 'deletewarning', 'inboxlabel', 'fromlabel', 'subjectlabel', 'datelabel', 'tolabel', 'viewmailerror', 'mailnotsent', 'deletemailerror', 'loadsettingserror', 'updatesettingserror', 'allstudents', 'contactslabel', 'folderloading', 'emptyfolder', 'mailerror'), BLOCK_CM_LANG_TABLE);
}