예제 #1
0
파일: theme.php 프로젝트: jewelhuq/okatea
    http::redirect('configuration.php?action=theme&theme_id=' . $sThemeId);
}
# enregistrement definitions less
if (!empty($_POST['save_def_less'])) {
    if ($bHasDefinitionsLess) {
        $oDefinitionsLessEditor->writeFileFromPost($sDefinitionsLessFilename);
    }
    http::redirect('configuration.php?action=theme&theme_id=' . $sThemeId);
}
/* Affichage
----------------------------------------------------------*/
# Onglets
$okt->page->tabs();
# Color picker et autres joyeusetés
if ($bHasDefinitionsLess) {
    $oDefinitionsLessEditor->setFormAssets($okt->page, $sThemeId);
}
# infos page
$okt->page->addGlobalTitle(__('c_a_themes_management'), 'configuration.php?action=themes');
$okt->page->addGlobalTitle($aThemeInfos['name']);
# CSS
$okt->page->css->addCss('
#theme-screenshot {
	float: left;
	margin: 0 1em 1em 0;
	width: 400px;
}
#no-screenshot {
	width: 400px;
	height: 300px;
	background: #f1f1f1;
예제 #2
0
파일: colors.php 프로젝트: jewelhuq/okatea
require_once __DIR__ . '/../../../oktInc/prepend.php';
# Locales
l10n::set(OKT_INSTAL_DIR . '/inc/locales/' . $_SESSION['okt_install_language'] . '/install');
l10n::set(OKT_LOCALES_PATH . '/' . $_SESSION['okt_install_language'] . '/admin.modules');
$oDefinitionsLessEditor = new oktDefinitionsLessEditor($okt);
/* Traitements
------------------------------------------------------------*/
# formulaire envoyé
if (!empty($_POST['sended'])) {
    $oDefinitionsLessEditor->writeFileFromPost(OKT_THEMES_PATH . '/' . $_SESSION['okt_install_theme'] . '/css/definitions.less');
    http::redirect('index.php?step=' . $stepper->getNextStep());
}
/* Affichage
------------------------------------------------------------*/
# Color picker et autres joyeusetés
$oDefinitionsLessEditor->setFormAssets($oHtmlPage, $_SESSION['okt_install_theme']);
# En-tête
$title = __('i_colors_title');
require OKT_INSTAL_DIR . '/header.php';
?>


<form action="index.php" method="post">
	<?php 
echo $oDefinitionsLessEditor->getHtmlFields();
?>

	<p><input type="submit" value="<?php 
_e('c_c_next');
?>
" />