<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page pageEncoding="UTF-8"%>
<jsp:useBean id="now" class="java.util.Date" scope="page" />
<footer class="container">
    <div id="footer-msg">
        <p><fmt:message key="footer.paragraphe"/></p>
        <ul>
            <li><fmt:message key="footer.tanaguru"/></li>
            <li><fmt:message key="footer.kbaccess"/></li>
        </ul>
    </div>
    <p id="footer-copyright">© <fmt:formatDate value="${now}" pattern="yyyy" /> <a href="http://www.Open-S.com/">Open-S</a> - Version 0.3 - <a href="http://blog.tanaguru.com/">Blog Tanaguru</a></p>
</footer>
<c:set var="analytics" value=""/>
<c:if test="${not empty analytics}">
    <script>
        (function(i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r;
            i[r] = i[r] || function() {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date();
            a = s.createElement(o),
                    m = s.getElementsByTagName(o)[0];
            a.async = 1;
            a.src = g;
            m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

        ga('create', '${analytics}', 'tanaguru.com');
        ga('send', 'pageview');

    </script>
</c:if>

<c:set var="piwikSiteId" value=""/>
<c:if test="${not empty piwikSiteId}">
    <!-- Piwik -->
    <script type="text/javascript">
        var _paq = _paq || [];
        _paq.push(["trackPageView"]);
        _paq.push(["enableLinkTracking"]);

<<<<<<< HEAD
    (function() {
        var u = (("https:" == document.location.protocol) ? "https" : "http") + "://stats.open-s.com/";
        _paq.push(["setTrackerUrl", u + "piwik.php"]);
        _paq.push(["setSiteId", "${piwikSiteId}"]);
        var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0];
        g.type = "text/javascript";
        g.defer = true;
        g.async = true;
        g.src = u + "piwik.js";
        s.parentNode.insertBefore(g, s);
    })();
</script>
<!-- End Piwik Code --> 
</c:if>
=======
        (function() {
            var u = (("https:" == document.location.protocol) ? "https" : "http") + "://stats.open-s.com/";
            _paq.push(["setTrackerUrl", u + "piwik.php"]);
            _paq.push(["setSiteId", "${piwikSiteId}"]);
            var d = document, g = d.createElement("script"), s = d.getElementsByTagName("script")[0];
            g.type = "text/javascript";
            g.defer = true;
            g.async = true;
            g.src = u + "piwik.js";
            s.parentNode.insertBefore(g, s);
        })();
    </script>
    <!-- End Piwik Code --> 
</c:if>
>>>>>>> release-0.3
