<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>$model.weblog.name</title>
    #showAutodiscoveryLinks($model.weblog)
    #showAnalyticsTrackingCode($model.weblog)
    <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
    <link rel="stylesheet" media="all" href="$model.weblog.stylesheet">
    #showMetaDescription()
    <script>
      $(document).ready(function () {
        $('#btnMobile').on('click', function() {
           setCookie("roller_user_request_type","mobile",30);
           $("#btnMobile").attr('href', '?deviceType=mobile').click();
        });
      });
      function setCookie(c_name, value, exdays) {
        var exdate = new Date();
        exdate.setDate(exdate.getDate() + exdays);
        var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/");
        document.cookie = c_name + "=" + c_value;
      }
    </script>
</head>
<!-- weblog -->
<body>

<div id="id_weblog" class="content_wrapper">
  <div class="content">
    <h1 class="weblogName">$model.weblog.name</h1>

        <center>
        #showWeblogCategoryLinksList()
        </center>

        ## show next/previous paging controls
        #set($pager = $model.getWeblogEntriesPager()) 
        <div class="next-previous">
            #showNextPrevEntriesControl($pager)
        </div>

        ## show entries
        #showWeblogEntriesPager($pager)

  </div>
</div>

<div class="rightbar_wrapper">
  <div class="rightbar">
    <div class="mobile">
        <a id="btnMobile" href="#" alt="View Mobile Weblog">View Mobile Weblog</a>
    </div>
    #includeTemplate($model.weblog "sidebar")
  </div>
</div>

</body>
</html>
