Exemplo n.º 1
0
function editTheme($cid)
{
    global $_DOCMAN;
    // disable the main menu to force user to use buttons
    $_REQUEST['hidemainmenu'] = 1;
    if (!$cid) {
        throw new Exception('Theme name not found');
    }
    $themes_path = $_DOCMAN->getPath('themes', $cid);
    $lists = array();
    $row = parseXMLFile(0, $themes_path . "themeDetails.xml");
    // published
    $published = $_DOCMAN->getCfg('icon_theme') == $cid ? 1 : 0;
    $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $published);
    // get params definitions
    require $themes_path . 'themeConfig.php';
    $params = new dmParameters('', $themes_path . "themeDetails.xml", 'theme');
    $params->_params = new themeConfig();
    HTML_DMThemes::editTheme($row, $lists, $params);
}
Exemplo n.º 2
0
function editTheme($cid)
{
    global $_DOCMAN, $mosConfig_absolute_path;
    // disable the main menu to force user to use buttons
    $_REQUEST['hidemainmenu'] = 1;
    $themes_path = $_DOCMAN->getPath('themes', $cid);
    $lists = array();
    $row = parseXMLFile(0, $themes_path . "themeDetails.xml");
    // published
    $published = $_DOCMAN->getCfg('icon_theme') == $cid ? 1 : 0;
    $lists['published'] = mosHTML::yesnoRadioList('published', 'class="inputbox"', $published);
    // get params definitions
    require $themes_path . "themeConfig.php";
    $params =& new dmParameters('', $themes_path . "themeDetails.xml", 'theme');
    $params->_params = new themeConfig();
    HTML_DMThemes::editTheme($row, $lists, $params);
}