Files
Phoenix/docs/sphinx/_templates/layout.html
Robin Dunn 3ab0303ac8 Restructure the page headers and how they are tweaked so we don't
have the weird wrapping problems, unless the user has a weirdly
sized browser.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@75774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2014-02-02 06:22:36 +00:00

92 lines
3.2 KiB
HTML

{% extends "!layout.html" %}
{%- set render_sidebar = (not embedded) and (not theme_nosidebar|tobool)
and (sidebars != []) and (pagename != 'index') %}
{% macro phoenixsidebar() %}
{%- if render_sidebar %}{{ sidebar() }}{%- endif %}
{% endmacro %}
{% macro sidebarcss() %}
{%- if not render_sidebar %}
<style type="text/css">
div.document, div.footer { margin-left:0; margin-right: 0; }
</style>
{%- endif %}
{% endmacro %}
{% block extrahead %}{{ sidebarcss() }}{% endblock %}
{% block sidebar1 %}{{ phoenixsidebar() }}{% endblock %}
{% block sidebar2 %}{% endblock %}
{% block relbar1 %}{{ myrelbar() }}{% endblock %}
{% block relbar2 %}{% endblock %}
{%- macro myrelbar() %}
<div class="related">
<h3>{{ _('Navigation') }}</h3>
<ul class="row1">
<li><img src="_static/images/sphinxdocs/phoenix_small.png" alt=""/></li>
<li><a href="index.html" style="color: rgb(238, 152, 22); hover: rgb(53, 95, 124);">Home</a> |&nbsp;</li>
<li><a href="gallery.html" style="color: rgb(238, 152, 22); hover: rgb(53, 95, 124);;">Gallery</a> |&nbsp;</li>
<li><a href="main.html" style="color: rgb(238, 152, 22); hover: rgb(53, 95, 124);">Docs</a> &raquo; </li>
{%- for parent in parents %}
<li><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a>{{ reldelim1 }}</li>
{%- endfor %}
<li class="reltitle"> {{ title }}</li>
{%- if pagename != 'search' %}
<li id="searchbox" style="display: none;" class="right">
<form class="search" action="{{ pathto('search') }}" method="get">
<span>{{ _('Search:') }}</span>
<input type="text" name="q" size="18" />
<input type="submit" value="{{ _('Go') }}" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</li>
<script type="text/javascript">$('#searchbox').show(0);</script>
{%- endif %}
</ul>
<ul class="row2">
{%- for rellink in rellinks %}
<li class="right" {% if loop.first %}style="margin-right: 10px"{% endif %}>
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li>
{%- endfor %}
</ul>
</div>
{%- endmacro %}
{% block document %}
<div class="documentwrapper">
<div class="body headerfix">
<div class="headerimage">
<img src="{{ pathto("_static/images/sphinxdocs/phoenix_top.png", 1) }}" alt="Phoenix Logo" />
</div>
{% block body %} {% endblock %}
{%- if theme_disqus_comments|tobool %}
<div id="disqus_thread"></div>
<script type="text/javascript" src="http://disqus.com/forums/tg-site/embed.js"></script>
<noscript><a href="http://tg-site.disqus.com/?url=ref">View the discussion thread.</a></noscript>
{%- endif %}
</div>
</div>
{%- endblock %}
set script_files = script_files + ['_static/sidebar.js']
set script_files = script_files + ['_static/header.js']