"></script>
<!-- This following line is only necessary in the case of using the plugin option `scrollOverflow:true` -->
<script type="text/javascript" src="<?php 
echo View::getAsset('inc/fullPage/vendors/jquery.slimscroll.min.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo View::getAsset('inc/fullPage/jquery.fullPage.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo View::getAsset('inc/jquery-ui/jquery-ui.min.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo View::getAsset('inc/jquery.webui-popover.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo View::getAsset('inc/jquery.mCustomScrollbar.concat.min.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo View::getAsset('js/slide.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo View::getAsset('js/script.js');
?>
"></script>
}
?>
            </div>
            <!--SUBMIT-->
            <input class="btn" type="submit" value="Connectez-vous !">
            <!--SUBMIT-->
        </form>

        <a class="forgot" href="<?php 
echo View::getUrlFromRoute('forgotForm');
?>
">Mot de passe oublié ?</a>

        <br>
        <h4><img id="logo_explorer" src="<?php 
echo View::getAsset('img/logo_explorer.png');
?>
"></h4>
        <br>
        <!--SOCIAL CONNECT-->
        <div class="socialConnect">
            <!--            <button type="submit"><img src="web/img/fb_icon_325x325.png" class="img-rounded"></button>-->
            <!--            <button type="submit"><img src="web/img/share-googleplus.png" class="img-rounded"></button>-->
            <?php 
$this->renderControllerAction('google');
$this->renderControllerAction('facebook');
?>
        </div>
    </div>
</div>
<?php

/**
 * Created by PhpStorm.
 * User: Alexandre
 * Date: 19/01/2016
 * Time: 23:29
 */
if (isset($authUrl)) {
    ?>
    <a href="<?php 
    echo $authUrl;
    ?>
">
        <div class="gologin">
            <img src="<?php 
    echo View::getAsset('img/share-googleplus.png');
    ?>
">
            <p>Connectez vous avec Google</p>
        </div>
    </a>
    <?php 
}
if (isset($errors) && $errors != '') {
    echo '<br><div class="errors_fields">' . $errors . '</div>';
}
<?php

/**
 * Created by PhpStorm.
 * User: Alexandre
 * Date: 21/01/2016
 * Time: 19:38
 */
?>
<form class="logout" method="post" action="<?php 
echo View::getUrlFromRoute('logout');
?>
">
    <input class="logout_button" type="image" src="<?php 
echo View::getAsset('img/disconnect.png');
?>
" width="24">
</form>
<?php

if (isset($loginUrl)) {
    echo '<a href="' . $this->escape($loginUrl) . '">
        <div class="fblogin"><img src="' . View::getAsset('img/fb_icon_325x325.png') . '">
            <p>Connectez-vous avec Facebook</p>
        </div>
    </a>';
}
if (isset($errors) && $errors != '') {
    echo '<br><div class="errors_fields">' . $errors . '</div>';
}
                });
            });
            $(document).on("click", ".post_footer .noblog", function() {
                var thispost = this;
                var post = $(this).parents(".post");
                var data = {
                    action: 'noblog',
                    id: post.attr("id"),
                };
                $.ajax({
                    method: "POST",
                    url: "<?php 
    echo View::getUrlFromRoute('ajax');
    ?>
",
                    data: data
                }).done(function( msg ) {
                    console.log(msg);
                    $("img", thispost).attr('src', '<?php 
    echo View::getAsset('img/retweet.png');
    ?>
');
                    $(thispost).removeClass('noblog').addClass('blog');
                });
            });
        </script>
        <?php 
}
?>
</div>
    }
}
?>

<div id="add_stream_section"
    <div id="flux_choice">
        <div id="twitter_button"><img src="<?php 
echo View::getAsset('img/twitter.png');
?>
" width="27"></div>
        <div id="RSS_button" ><img src="<?php 
echo View::getAsset('img/rss.png');
?>
" width="27"></div>
        <div id="IMAP_button"><img src="<?php 
echo View::getAsset('img/email.png');
?>
" width="27"></div>
    </div>

    <div id="add_flux_body">
        <form class="flux_twitter" action="<?php 
echo View::getUrlFromRoute('addtwitterstream');
?>
" method="post">
            <!--<input class="first" type="date" name="firstUpdate" placeholder="À partir de" required>-->
            <input placeholder="À partir de" class="first" type="text" onfocus="(this.type='date')" name="firstUpdate">
            <input type="text" name="channel" placeholder="Nom du compte @" required>
            <input class="last" type="text" name="category" placeholder="La catégorie pour le ranger" required>
            <input type="submit" name="button" value="Ajouter ce flux !">
        </form>
"><img src="<?php 
    echo View::getAsset('img/add_cat.png');
    ?>
" width="30"></a>
            <a id="profile" href="<?php 
    echo View::getUrlFromRoute('profile');
    ?>
"><img src="<?php 
    echo View::getAsset('img/profil.png');
    ?>
" width=""></a>
            <a id="home" href="<?php 
    echo View::getUrlFromRoute('index');
    ?>
"><img src="<?php 
    echo View::getAsset('img/home.png');
    ?>
" width=""></a><?php 
} else {
    ?>
            <form method="post" action="<?php 
    echo View::getUrlFromRoute('search');
    ?>
">
                <input type="textarea" name="search" placeholder="Recherchez sur Aaron">
                <input type="submit" style="display: none">
            </form>

            <a href="<?php 
    echo View::getUrlFromRoute('login');
    ?>
" width="27"></span>
            <?php 
}
if ($favoris) {
    ?>
            <span class="like" href="#"><img src="<?php 
    echo View::getAsset('img/like.png');
    ?>
" width="27"></span>
            <?php 
} else {
    ?>
            <span class="nolike" href="#"><img src="<?php 
    echo View::getAsset('img/nolike.png');
    ?>
" width="27"></span>
            <?php 
}
?>
        <a class="global_url" target="_blank" href="<?php 
echo View::getUrlFromRoute('article/' . $article->getId());
?>
">
            <img src="<?php 
echo View::getAsset('img/share.png');
?>
" width="27">
        </a>
    </div>
</div>