templates: added cms/ungleich.ch/base.html
This template holds the base structure for
every page in the site.
It expose the following blocks:
+ base_header:
    This block is used to display the big banner
    and title image for the main style of the site.
    When overriding this block always prefere the use
    of include, since the amount of markup needed for
    the header is quite a lot.
    For an example of what should be in this block
    look at: cms/ungleich.ch/_header_base.html.
+ block_content:
    Holds the main content for the page, it delcares a
    placeholder "default".
This commit also includes the following templates:
cms/ungleich.ch/_footer.html:
    Markup for the footer of the page.
    TODO: Social links.
cms/ungleich.ch/_header_base.html:
    Markup for the big image with the title and
    summary of the page.
cms/ungleich.ch/_menu.html:
    Markup for the main navigation markup for the
    entire site.
And the required static files.
Signed-off-by: rscnt <rascnt@gmail.com>
	
	
This commit is contained in:
		
					parent
					
						
							
								261160f46f
							
						
					
				
			
			
				commit
				
					
						8f6461fd63
					
				
			
		
					 8 changed files with 272 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								templates/cms/ungleich.ch/_footer.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								templates/cms/ungleich.ch/_footer.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,40 @@
 | 
			
		|||
{% load cms_tags %}
 | 
			
		||||
<hr />
 | 
			
		||||
<!-- Footer -->
 | 
			
		||||
<footer>
 | 
			
		||||
  <div class="container">
 | 
			
		||||
    <div class="row">
 | 
			
		||||
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
 | 
			
		||||
	<ul class="list-inline text-center">
 | 
			
		||||
	  <li>
 | 
			
		||||
	    <a href="#">
 | 
			
		||||
	      <span class="fa-stack fa-lg">
 | 
			
		||||
		<i class="fa fa-circle fa-stack-2x"></i>
 | 
			
		||||
		<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
 | 
			
		||||
	      </span>
 | 
			
		||||
	    </a>
 | 
			
		||||
	  </li>
 | 
			
		||||
	  <li>
 | 
			
		||||
	    <a href="#">
 | 
			
		||||
	      <span class="fa-stack fa-lg">
 | 
			
		||||
		<i class="fa fa-circle fa-stack-2x"></i>
 | 
			
		||||
		<i class="fa fa-linkedin fa-stack-1x fa-inverse"></i>
 | 
			
		||||
	      </span>
 | 
			
		||||
	    </a>
 | 
			
		||||
	  </li>
 | 
			
		||||
	  <li>
 | 
			
		||||
	    <a href="#">
 | 
			
		||||
	      <span class="fa-stack fa-lg">
 | 
			
		||||
		<i class="fa fa-circle fa-stack-2x"></i>
 | 
			
		||||
		<i class="fa fa-github fa-stack-1x fa-inverse"></i>
 | 
			
		||||
	      </span>
 | 
			
		||||
	    </a>
 | 
			
		||||
	  </li>
 | 
			
		||||
	</ul>
 | 
			
		||||
	<p class="copyright text-muted text-centered">
 | 
			
		||||
	  {% static_placeholder "footer_copyright" %}
 | 
			
		||||
	</p>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</footer>
 | 
			
		||||
							
								
								
									
										23
									
								
								templates/cms/ungleich.ch/_header_base.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								templates/cms/ungleich.ch/_header_base.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
{% load cms_tags staticfiles %}
 | 
			
		||||
<!-- Page Header -->
 | 
			
		||||
<!-- Set your background image for this header on the line below. -->
 | 
			
		||||
<header class="intro-header"
 | 
			
		||||
	{% if request.current_page.ungleichpage %}
 | 
			
		||||
	style="background-image: url('{{ request.current_page.ungleichpage.image_header.url }}');"
 | 
			
		||||
	{% else %}
 | 
			
		||||
	style="background-image: url('{% static 'blog.ungleich.ch/img/home-bg.jpg'  %}');"
 | 
			
		||||
	{% endif %}
 | 
			
		||||
	>
 | 
			
		||||
 | 
			
		||||
  <div class="container">
 | 
			
		||||
    <div class="row">
 | 
			
		||||
      <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
 | 
			
		||||
	<div class="site-heading">
 | 
			
		||||
	  <h1> {% page_attribute 'page_title'  %}  </h1>
 | 
			
		||||
	  <hr class="small">
 | 
			
		||||
	  <span class="subheading"> {% page_attribute 'meta_description' %}</span>
 | 
			
		||||
	</div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</header>
 | 
			
		||||
							
								
								
									
										36
									
								
								templates/cms/ungleich.ch/_menu.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								templates/cms/ungleich.ch/_menu.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,36 @@
 | 
			
		|||
{% load menu_tags staticfiles cms_tags %}
 | 
			
		||||
<!-- Navigation -->
 | 
			
		||||
<nav class="navbar navbar-default navbar-custom navbar-fixed-top">
 | 
			
		||||
  <div class="container-fluid">
 | 
			
		||||
    <!-- Brand and toggle get grouped for better mobile display -->
 | 
			
		||||
    <div class="navbar-header page-scroll">
 | 
			
		||||
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
 | 
			
		||||
	<span class="sr-only">Toggle navigation</span>
 | 
			
		||||
	<span class="icon-bar"></span>
 | 
			
		||||
	<span class="icon-bar"></span>
 | 
			
		||||
	<span class="icon-bar"></span>
 | 
			
		||||
      </button>
 | 
			
		||||
      <a class="navbar-brand" href="/">
 | 
			
		||||
	<img src="{% static "blog.ungleich.ch/img/logo_white.svg" %}" />
 | 
			
		||||
      </a>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <!-- Collect the nav links, forms, and other content for toggling -->
 | 
			
		||||
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
 | 
			
		||||
      <ul class="nav navbar-nav navbar-right">
 | 
			
		||||
	{% for child in children %}
 | 
			
		||||
	<li class="child{% if child.selected %} selected{% endif %}{% if child.ancestor %} ancestor{% endif %}{% if child.sibling %} sibling{% endif %}{% if child.descendant %} descendant{% endif %}">
 | 
			
		||||
	  <a href="{{ child.attr.redirect_url|default:child.get_absolute_url }}">{{ child.get_menu_title }}</a>
 | 
			
		||||
	  {% if child.children %}
 | 
			
		||||
	  <ul>
 | 
			
		||||
	    {% show_menu from_level to_level extra_inactive extra_active template "" "" child %}
 | 
			
		||||
	  </ul>
 | 
			
		||||
	  {% endif %}
 | 
			
		||||
	</li>
 | 
			
		||||
	{% endfor %}
 | 
			
		||||
      </ul>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- /.navbar-collapse -->
 | 
			
		||||
  </div>
 | 
			
		||||
  <!-- /.container -->
 | 
			
		||||
</nav>
 | 
			
		||||
							
								
								
									
										69
									
								
								templates/cms/ungleich.ch/base.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								templates/cms/ungleich.ch/base.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,69 @@
 | 
			
		|||
{% load cms_tags menu_tags sekizai_tags staticfiles bootstrap3 %}
 | 
			
		||||
<html>
 | 
			
		||||
  <head>
 | 
			
		||||
    <title>{% page_attribute "page_title" %}</title>
 | 
			
		||||
    {% addtoblock "external-css" %}
 | 
			
		||||
    {% bootstrap_css %}
 | 
			
		||||
 | 
			
		||||
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
 | 
			
		||||
    <link href='http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
 | 
			
		||||
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800'
 | 
			
		||||
	  rel='stylesheet' type='text/css'>
 | 
			
		||||
 | 
			
		||||
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
 | 
			
		||||
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
 | 
			
		||||
    <!--[if lt IE 9]>
 | 
			
		||||
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
 | 
			
		||||
	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
 | 
			
		||||
	<![endif]-->
 | 
			
		||||
    {% endaddtoblock %}
 | 
			
		||||
 | 
			
		||||
    {% addtoblock "css" %}
 | 
			
		||||
    <link href="{% static 'blog.ungleich.ch/css/clean-blog.css' %}" type="text/css"
 | 
			
		||||
	  rel="stylesheet" medial="all" />
 | 
			
		||||
    {% endaddtoblock %}
 | 
			
		||||
 | 
			
		||||
    {% render_block "external-css" %}
 | 
			
		||||
    {% render_block "css" postprocessor "compressor.contrib.sekizai.compress" %}
 | 
			
		||||
  </head>
 | 
			
		||||
  <body>
 | 
			
		||||
    {% cms_toolbar %}
 | 
			
		||||
    {% show_menu 0 1 100 100 "cms/ungleich.ch/_menu.html" %}
 | 
			
		||||
    <!-- body -->
 | 
			
		||||
    <!-- Main Content -->
 | 
			
		||||
    {% block base_header %}
 | 
			
		||||
    {% include "cms/ungleich.ch/_header_base.html"  %}
 | 
			
		||||
    {% endblock %}
 | 
			
		||||
    <div class="container">
 | 
			
		||||
      <div class="row">
 | 
			
		||||
	<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
 | 
			
		||||
	  {% block base_content %}
 | 
			
		||||
	  {% placeholder "default" %}
 | 
			
		||||
	  {% endblock %}
 | 
			
		||||
	</div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- end body -->
 | 
			
		||||
    {% include "cms/ungleich.ch/_footer.html" %}
 | 
			
		||||
    {% addtoblock "external-js" %}
 | 
			
		||||
    {% bootstrap_javascript %}
 | 
			
		||||
    {% endaddtoblock %}
 | 
			
		||||
    {% addtoblock "js" %}
 | 
			
		||||
    <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', 'UA-62285904-4', 'auto');
 | 
			
		||||
      ga('send', 'pageview');
 | 
			
		||||
 | 
			
		||||
    </script>
 | 
			
		||||
 | 
			
		||||
    <script src="{% static 'blog.ungleich.ch/vendor/js/jquery.min.js' %}" type="text/javascript" />
 | 
			
		||||
    <script src="{% static 'blog.ungleich.ch/js/navbar-scroll-up.js' %}" type="text/javascript" />
 | 
			
		||||
    {% endaddtoblock %}
 | 
			
		||||
    {% render_block "js" postprocessor "compressor.contrib.sekizai.compress" %}
 | 
			
		||||
    {% render_block "external-js" %}
 | 
			
		||||
  </body>
 | 
			
		||||
</html>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue