Exemplo n.º 1
0
function bandeau_titre($titre)
{
    global $ALLOWED_LANGUAGES;
    $img = IMAGE_TITRE ? '<img src="' . Utils::get_server_name() . IMAGE_TITRE . '" alt="' . NOMAPPLICATION . '" class="img-responsive">' : '';
    echo '
    <header role="banner">';
    if (count($ALLOWED_LANGUAGES) > 1) {
        echo '<form method="post" action="" class="hidden-print">
            <div class="input-group input-group-sm pull-right col-md-2 col-xs-4">
                <select name="lang" class="form-control" title="' . __('Language selector', 'Select the language') . '" >' . liste_lang() . '</select>
                <span class="input-group-btn">
                    <button type="submit" class="btn btn-default btn-sm" title="' . __('Language selector', 'Change the language') . '">OK</button>
                </span>
            </div>
        </form>';
    }
    echo '
        <h1><a href="' . Utils::get_server_name() . '" title="' . __('Generic', 'Home') . ' - ' . NOMAPPLICATION . '">' . $img . '</a></h1>
        <h2 class="lead"><i>' . $titre . '</i></h2>
        <hr class="trait" role="presentation" />
    </header>
    <main role="main">';
    global $connect;
    $tables = $connect->allTables();
    $diff = array_diff([Utils::table('comment'), Utils::table('poll'), Utils::table('slot'), Utils::table('vote')], $tables);
    if (0 != count($diff)) {
        echo '<div class="alert alert-danger">' . __('Error', 'Framadate is not properly installed, please check the "INSTALL" to setup the database before continuing.') . '</div>';
        bandeau_pied();
        die;
    }
}
Exemplo n.º 2
0
function bandeau_pied_mobile()
{
    /*echo '<div class="surbandeaupiedmobile"></div>'."\n" .
      '<div class="bandeaupiedmobile">'. _("Universit&eacute; de Strasbourg. Creation: Guilhem BORGHESI. 2008-2009") .'</div>'."\n";*/
    echo '<div class="separateur">&nbsp;</div>';
    echo '<div class="sousbandeau">' . '<a class="button small gray" href="/">' . _("Home") . '</a>' . '<a class="button small gray" href="' . getUrlSondage('aqg259dth55iuhwm') . '">' . _("Example") . '</a>' . '<a class="button small gray" href="/contacts.php">' . _("Contact") . '</a>' . '<a class="button small gray" href="/apropos.php">' . _("About") . '</a>' . '<span class="sousbandeau sousbandeaulangue">' . liste_lang() . '</span>' . '</div>' . "\n";
    gAnalytics();
}