if (sizeof($manuals) == 1) {
        list($language, $manual) = each($manuals);
    } else {
        if (sizeof($manuals) <= 0) {
            show_screen_download();
        } else {
            show_screen_choose_language($manuals);
        }
        exit;
    }
} else {
    $language = magic_unquote($_GET['language']);
}
$topic = isset($_GET['topic']) ? magic_unquote($_GET['topic']) : 'toc';
$subtopic = isset($_GET['subtopic']) ? magic_unquote($_GET['subtopic']) : '';
show_manual($language, $topic, $subtopic);
exit;
// ==================================================================
// =========================== WORKHORSES ===========================
// ==================================================================
/** redirect the user to a specific place in the manual OR show helpful message about downloading the manual
 *
 * There is a Website@School Users' Guide available, in English. This is
 * a separate download from the project's website. That means that it is
 * optional to have the (English) manual installed. If it is installed,
 * it is installed under /program/manuals/en/. There might also be translations
 * available, say the Dutch version of the manual. That one would be
 * installed in /program/manuals/nl/ which allows for peaceful co-existence of
 * multiple translations of the manual. This script manual.php is designed to:
 *
 *  - redirect the user to the correct translation of the manual (if installed), and
Esempio n. 2
0
        } else {
            ?>
			<h1><?php 
            echo $guidetitle;
            ?>
 <small><span class="<?php 
            echo $icon;
            ?>
"></span> <?php 
            echo ucwords($pagetype);
            ?>
</small></h1>
			<?php 
            the_content();
            if (get_post_meta($post->ID, 'treat_as_a_manual', true)) {
                show_manual();
            }
            get_template_part("part", "downloads");
            if ('open' == $post->comment_status) {
                comments_template('', true);
            }
        }
        ?>

		</div>

		<div class="col-lg-4 col-lg-offset-1 col-md-4 col-sm-4">	

				<?php 
        get_template_part("part", "sidebar");
        dynamic_sidebar('task-widget-area');