Source

article / article / templates / theme_base.html

{% spaceless %}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
  <head prefix="og: http://ogp.me/ns#">
    <meta charset="utf-8" />
    <title>{% block head_title_base %}{% block head_title %}{% endblock %}{% endblock %} | Happy Herbivore</title>

    {% load generic_flatblocks %}

    {% block meta_base %}
        
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta property="fb:app_id" content="133322466769084" />
        <meta property="og:locale" content="en_US"/>
        <meta property="og:url" content="http://happyherbivore.com{{ request.path_info }}"/>
        <meta property="og:site_name" content="Happy Herbivore"/>
        {% block meta %}
        {% endblock %}
    {% endblock %}

    {% block css_base %}
        {% spaceless %}
        {% if debug %}
        <!-- styles -->
        <link href="/media/css/bootstrap.css" rel="stylesheet">
        <link href="/media/css/style.css" rel="stylesheet">
        <link href="/media/css/bootstrap-responsive.css" rel="stylesheet">


        <link rel="stylesheet" type="text/css" media="print"
	          href="/media/css/print.css" />
        {% else %}
        <link href="//css.happyherbivore.com/bootstrap.css" rel="stylesheet">
        <link rel="stylesheet" href="{{ main_css }}" />
        <link href="//css.happyherbivore.com/bootstrap-responsive.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" media="print"
	          href="{{ print_css }}" />

        {% endif %}
        {% endspaceless %}
        {% block css %}
        <link href="//css.happyherbivore.com/skins/tango/skin.css" rel="stylesheet">
        {% endblock %}
    {% endblock %}
     
    <!-- Le fav and touch icons 
    <link rel="shortcut icon" href="http://photos.happyherbivore.com/favicon.ico">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
       -->
    {% block js_base %}
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> 
        <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
        <!--[if lt IE 9]>
            <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
        {% if debug %}
            <script src="/media/js/hh.js" type="text/javascript"></script> 
	        <!-- <script src="{{ main_js }}"></script> -->
        {% else %}
	        <script src="{{ main_js }}"></script>
	    {% endif %}

        {% block js %}
        {% endblock %}
    {% endblock %}

    {% if not debug %}
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-3768122-2']);
      _gaq.push(['_setDomainName', 'happyherbivore.com']);
      _gaq.push(['_trackPageview']);
      _gaq.push(['_trackPageLoadTime']);	      

      (function() {
          var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
          ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
          var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();	      
    </script>
    {% else %}
    <script type="text/javascript">
      var _gaq = _gaq || [];
    </script>
    {% endif %}

    {% if debug %}
    <script type="text/javascript">var disqus_developer = 1;</script> 
    {% endif %}

    {% block extra_head_base %}
        {% block extra_head %}{% endblock %}
    {% endblock %}

  </head>

  <body class="{% block body_class %}{% endblock %}">
    {% gblock 3 for "gblocks.TitleAndText" into "FBAsyncJS" %}
    {{ FBAsyncJS.text|safe }}


    {% block header_base %}
    <div id="header" class="clearfix">
      <div class="container">
        <div class="row">
          <div class="span8">
            <a href="/"><img src="//photos.happyherbivore.com/img/logo.png" 
                             class="main-logo" alt="Happy Herbivore" title="Happy Herbivore" /></a>
          </div>
          <div class="span4">
            {% block header %}
            <div class='header-form'>
              <!-- <p><a href="#">My shopping list</a></p> -->
			  <form action="http://www.google.com/cse" id="cse-search-box">
				<input type="hidden" name="cx" value="006872200688521324367:oqkpyrqexdw" />
				<input type="hidden" name="ie" value="UTF-8" />
				<input type="text" name="q" id="search">
				<input type="submit" name="sa" value="Go!" class="button-green-big-round">
			  </form>
              <script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
            </div><!-- / header-form-->
            {% endblock %}
          </div>
        </div>
      </div>
    </div><!-- / header -->
    {% endblock %}

    {% block topbar_base %}
    {% load tags %}
    <div class="container">
      <div class="navbar">
        <div class="navbar-inner">
          <div class="container">
            <a data-target=".nav-collapse" data-toggle="collapse" class="btn btn-navbar">
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </a>
			<span class="brand hidden-desktop hidden-tablet">Menu</span>                    
            <div class="nav-collapse"> 
              <ul class="nav">
                <li class="{% active request "^/$" %}"><a href="/">Home</a></li>
                <li class="{% active request "^/blog/" %}"><a href="/blog/">Blog</a></li>
                <li class="dropdown">
                  <a data-toggle="dropdown" class="dropdown-toggle" href="/cookbooks/">Cookbooks</a>
                  <ul class="dropdown-menu">
                    <li><a href="/cookbook/everyday-happy-herbivore/">Everyday Happy Herbivore</a></li>
                    <li><a href="/cookbook/happy-herbivore-cookbook/">Happy Herbivore Cookbook</a></li>
                  </ul>
                </li>            
                <li><a href="//getmealplans.com/">Meal Plans</a></li>
                <li class="dropdown {% active request "^/recipes/" %}">
                  <a data-toggle="dropdown" class="dropdown-toggle" href="/recipes/">Recipes </a>
                  <ul class="dropdown-menu">
                    <li><a href="/recipes/#recipe-box">By Name</a></li>
                    <li><a href="/video/">Recipe Videos</a></li>
                  </ul>
                </li>
                <li class="{% active request "^/get-started/"%}"><a href="/get-started/">Get Started <i class="icon-question-sign icon-white"></i></a></li>
                <li><a href="//store.happyherbivore.com/">Store</a></li>
                <li class="{% active request "^/about/contact/$" %}"><a href="/about/contact/">Contact</a></li>
              </ul> 
              {% block topbar %}
                 {% block nav %}{% endblock %}
              {% endblock %}            
            </div><!-- /.nav-collapse -->
          </div>
        </div><!-- /navbar-inner -->
      </div><!-- / navbar -->

    </div> <!-- / topbar container -->
    {% endblock %}

    {% block body_base %}

       
            {% block body %}
            {% endblock %}


    {% endblock %}

    {% block footer_base %}
    <!-- Footer -->
    <div id="footer" class="clearfix">
      <div class="container">
       {% block footer %}
         {% include "_footer.html"%}
       {% endblock %}

      </div>
    </div><!-- / footer -->
    {% endblock %}
        
    
    {% block extra_body_base %}
        <script src="//css.happyherbivore.com/bootstrap204/js/bootstrap.min.js"></script>
        {% block extra_body %}{% endblock %}
        <script type="text/javascript">
        $(document).ready(function(){
        {% block onready %}{% endblock %}
        });
        </script>
    {% endblock %}

    {% gblock 13 for "gblocks.Text" into "viglink" %}
    {{ viglink.text|safe }}

  </body>
</html>
{% endspaceless %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.