<!DOCTYPE html>
<html>
  <head>
    <title><%= full_title(yield(:title)) %></title>

    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quicksand:400,700">
    <!--<link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700' rel='stylesheet' type='text/css'>-->
    <%= stylesheet_link_tag "modern/modern", media: "all" %>
    <%= include_gon(:init => true) %>
    <%= csrf_meta_tags %>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="<%= meta_description(yield(:description)) %>">
    <% if content_for?(:social_meta) %>
        <%= yield(:social_meta) %>
    <% else %>
        <%= render "layouts/social_meta" %>
    <% end %>
    <%= render "shared/ad_sense" %>
  </head>
  <body class="modern sticky-header jam <%= yield(:page_name) %>">
    <%= javascript_include_tag "modern/modern" %>

    <%= yield %>

    <script type="text/javascript">
      JK = JK || {};

      JK.root_url = "<%= root_url %>"

      <% if current_user %>
      JK.currentUserId = '<%= current_user.id %>';
      JK.currentUserAvatarUrl = JK.resolveAvatarUrl('<%= current_user.photo_url %>');
      JK.currentUserName = '<%= current_user.name %>';
      JK.currentUserMusician = '<%= current_user.musician %>';
      JK.currentUserFreeJamTrack = <%= current_user.show_free_jamtrack? %>
      <% else %>
      JK.currentUserId = null;
      JK.currentUserAvatarUrl = null;
      JK.currentUserName = null;
      JK.currentUserMusician = null;
      JK.currentUserFreeJamTrack = <%= anonymous_user.nil? ?  false : anonymous_user.show_free_jamtrack? %>
      <% end %>
    </script>

    <script type="text/javascript">
        $(function () {


        })
    </script>

    <%= yield(:extra_js) %>

    <%= render "shared/ga" %>
    <%= render "shared/twttr" %>
    <%= render "shared/facebook_sdk" %>
    <%= render "shared/google_nocaptcha" %>
    <!-- version: <%= version %> -->
  </body>
</html>
