Source

markwiki / templates / markdoc-default / base.html

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
      {% block xmlns -%}
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:foaf="http://xmlns.com/foaf/0.1/"
      {%- endblock %}>
  
  {% import "macros/html" as html -%}
  {% import "macros/crumbs" as breadcrumbs with context -%}
  
  <head>
    {% block head %}
    
      {% block meta %}
        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
      {% endblock %}
      
      <title>
        {% block title_prefix -%}
          {% if 'wiki-name' in config %}{{ config['wiki-name']|e }} » {% endif %}
        {%- endblock %}
        {% block title -%}
          {{ title }}
        {%- endblock %}
      </title>
      
      {% block css %}
        {{ html.cssimport(make_relative("/media/fonts/ubuntu/stylesheet.css")) }}
        {{ html.cssimport(make_relative("/media/css/style.css")) }}
        {{ html.cssimport(make_relative("/media/css/pygments.css")) }}
      {% endblock %}
      
      {% block js %}{% endblock %}
      
      {% block analytics %}
        {% if 'google-analytics' in config %}
          <!-- Google Analytics -->
          <script type="text/javascript">
            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', '{{ config['google-analytics'] }}']);
            _gaq.push(['_trackPageview']);
            (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';
              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
            })();
          </script>
        {% endif %}
      {% endblock analytics %}
    {% endblock head %}
  </head>
  
  <body {% block body_attrs %}{% endblock %}>
    {% block body %}
      <div id="header">
          <span id="wiki_title">{% if 'wiki-name' in config %}{{ config['wiki-name']|e }}{% endif %}</span>
          <hr class="clear" />
      </div>      
      {% block body_header %}
        {% block crumbs %}
          {{ breadcrumbs.crumbs(crumbs) }}
        {% endblock crumbs %}
      {% endblock body_header %}
      
      <div id="content">
        {% block content_header %}
        {% endblock content_header %}
        
        {% block content %}
        {% endblock content %}
        
        {% block content_footer %}
        {% endblock content_footer %}
        
        <hr class="clear" />
      </div> <!-- div#content -->
      
      {% block body_footer %}
      <div id="footer">
        <table>
          <tr>
          <td style="border: 1px solid #fff">{% if 'wiki-footer-logo' in config %}  
                 <a href="{{ config['wiki-footer-logo-url']|e }}"><img height="30px" src="{{  make_relative(config['wiki-footer-logo'])  }}"/></a>
              {% endif %}
         </td>
          <td width="90%" style="border: 1px solid #fff"></td>
          <td style="border: 1px solid #fff"><a href="{{ make_relative("/help/markup.html") }}"><img  height="30px" src="{{ make_relative("/media/img/markdown.png") }}"/></a></td>
          </tr>
        </table>
      </div>

      {% endblock body_footer %}
    
    {% endblock body %}
    
    <hr class="clear" />
    <a href="#" id="scrolltop">Scroll To Top</a>
  </body>
</html>
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.