Ejemplo n.º 1
0
}
wp_head();
?>
	</head>
		<?php 
if (is_front_page() || is_home()) {
    ?>
			<body <?php 
    body_class(array('kids-front-page', show_skin()));
    ?>
>
		<?php 
} else {
    ?>
			<body <?php 
    body_class(array('secondary-page', show_skin()));
    ?>
>
		<?php 
}
?>

		<?php 
if (function_exists('dynamic_sidebar') && is_active_sidebar($toggle_sidebar)) {
    ?>
			<!-- HEADER BEGIN -->
			<div class="top-panel">
				<div class="l-page-width clearfix">
					<div class="wrapper">		
						<?php 
    dynamic_sidebar($toggle_sidebar);
Ejemplo n.º 2
0
        $value = isset($conf->global->{$constante}) ? $conf->global->{$constante} : 0;
        if ($value == 0) {
            print '<a href="' . $_SERVER['PHP_SELF'] . '?action=activate_' . strtolower($const) . '">' . img_picto($langs->trans("Disabled"), 'switch_off') . '</a>';
        } else {
            if ($value == 1) {
                print '<a href="' . $_SERVER['PHP_SELF'] . '?action=disable_' . strtolower($const) . '">' . img_picto($langs->trans("Enabled"), 'switch_on') . '</a>';
            }
        }
        print "</td>";
        print '</tr>';
    }
    print '</table>' . "\n";
    print '<br>' . "\n";
    print '<form name="formtest" method="POST" action="' . $_SERVER["PHP_SELF"] . '">' . "\n";
    // Skins
    show_skin(null, 1);
    print '<br>' . "\n";
    print load_fiche_titre($langs->trans("TestSubmitForm"), '(mode=' . $mode . ')', '');
    print '<input type="hidden" name="mode" value="' . dol_escape_htmltag($mode) . '">';
    $uselocalbrowser = true;
    $readonly = $mode == 'dolibarr_readonly' ? 1 : 0;
    $editor = new DolEditor('formtestfield', isset($conf->global->FCKEDITOR_TEST) ? $conf->global->FCKEDITOR_TEST : 'Test', '', 200, $mode, 'In', true, $uselocalbrowser, 1, 120, 8, $readonly);
    $editor->Create();
    print '<br><div class="center"><input class="button" type="submit" name="save" value="' . $langs->trans("Save") . '"></div>' . "\n";
    print '<div id="divforlog"></div>';
    print '</form>' . "\n";
    // Add env of ckeditor
    // This is to show how CKEditor detect browser to understand why editor is disabled or not
    if (1 == 2) {
        print '<br><script language="javascript">
	    function jsdump(obj, id) {