コード例 #1
0
ファイル: index.php プロジェクト: eheb/renater-foodle
        <body  data-placeholder-focus="false">
            
            <div id='common_popup'></div>
            
                <?php 
    // Header containing all top level elements
    include './pages/menu.php';
    ?>
 
            <main>
                <?php 
    include './pages/banner.php';
    include './pages/subMenu.php';
    // Check if etherpad configuration is found and if etherpad is available
    if (PadConfigComponent::isEtherpadAvailable()) {
        include './pages/sondagesContainer.php';
        include './pages/sondageContent.php';
        include './popup/sondageForm.php';
        include './popup/popups.php';
    } else {
        // Etherpad not found
        include './pages/errors/etherpadNotFound.php';
    }
    ?>
                   
     <!-- Use element -->
     <!--
    <google-map latitude="47.205403" longitude="-1.5631069" zoom="17"></google-map> 
     -->           
            </main>
コード例 #2
0
ファイル: header.php プロジェクト: eheb/renater-foodle
<script type="text/javascript" src="./js/lang.js"></script>



<script type="text/javascript" src="./js/main.js"></script>

<!--<script type="text/javascript" src="<?php 
// echo Config::get('site_url') . '/rest.php/Lang';
?>
?callback=lang.setTranslations"></script>-->


<?php 
if (is_dir('./utils/')) {
    foreach (glob('./utils/*.php') as $file) {
        include_once $file;
    }
}
?>


<?php 
$authorized = Auth::isAuthorized() ? 'true' : 'false';
echo '<script type="text/javascript">notes.connected = ' . $authorized . ';</script>';
$etherpadAvailable = PadConfigComponent::isEtherpadAvailable() ? 'true' : 'false';
echo '<script type="text/javascript">notes.etherpad_available = ' . $etherpadAvailable . ';</script>';
?>

<?php 
// Initialize the lang length for translation purpose
echo '<script type="text/javascript">notes.translationSize = ' . Utilities::getDirectorySize(NOTES_BASE . '/language') . ';</script>';