PHP Classes

File: htdocs/themes/xbootstrap5/theme_autorun.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/themes/xbootstrap5/theme_autorun.php   Download  
File: htdocs/themes/xbootstrap5/theme_autorun.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 10 months ago
Size: 473 bytes
 

Contents

Class file image Download
<?php

xoops_load('XoopsFormRendererBootstrap5');
XoopsFormRenderer::getInstance()->set(new XoopsFormRendererBootstrap5());

global $xoopsTpl, $xoTheme;
if (!empty($xoopsTpl)) {
    $xoopsTpl->addConfigDir(__DIR__);
}

if (empty($xoopsTpl)){
    require_once XOOPS_ROOT_PATH . '/class/template.php';
    $xoopsTpl = new \XoopsTpl();
}

$iconOverrides = include __DIR__ . '/config/module_icons.php';

if (!empty($xoopsTpl)) {
    $xoopsTpl->assign('iconOverrides', $iconOverrides);
}