autocat3/templates/site-layout.html

169 lines
6.1 KiB
HTML
Raw Normal View History

2019-03-28 13:45:03 +00:00
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
2020-08-27 17:19:12 +00:00
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/"
xmlns:i18n="http://genshi.edgewall.org/i18n"
xmlns:og="http://opengraphprotocol.org/schema/"
xmlns:fb="http://www.facebook.com/2008/fbml"
py:strip="">
<?python
from i18n_tool import ugettext as _
?>
<py:def function="site_head">
<style >
2021-05-06 22:46:43 +00:00
.icon { background: transparent url(/pics/sprite.png) 0 0 no-repeat; }
2020-08-27 17:19:12 +00:00
</style>
2021-05-06 22:46:43 +00:00
<link rel="stylesheet" type="text/css" href="/gutenberg/pg-desktop-one.css" />
<link rel="stylesheet" type="text/css" href="/gutenberg/new_nav.css"/>
<link rel="stylesheet" type="text/css" href="/gutenberg/style.css"/>
2020-08-27 17:19:12 +00:00
<!--! IE8 does not recognize application/javascript -->
<script>//<![CDATA[
var canonical_url = "${os.canonical_url}";
var lang = "${os.lang}";
var msg_load_more = "${_('Load More Results…')}";
var page_mode = "${os.page_mode}";
var dialog_title = "${os.user_dialog[1]}";
var dialog_message = "${os.user_dialog[0]}";
//]]></script>
2021-05-06 22:46:43 +00:00
<script src="/js/pg-desktop-one.js" />
2020-08-27 17:19:12 +00:00
2020-09-15 17:48:33 +00:00
<link rel="shortcut icon" href="/gutenberg/favicon.ico" />
2020-08-27 17:19:12 +00:00
<link rel="canonical" href="${os.canonical_url}" />
<link rel="search"
type="application/opensearchdescription+xml"
title="Search Project Gutenberg"
href="${os.osd_url}" />
<link rel="alternate nofollow"
type="${os.type_opds}"
title="OPDS feed"
href="${os.url_carry (format = 'opds')}" />
<link py:if="os.touch_icon" rel="apple-touch-icon" href="${os.touch_icon}" />
<link py:if="os.touch_icon_precomposed" rel="apple-touch-icon-precomposed" href="${os.touch_icon_precomposed}" />
<meta py:if="os.viewport" name="viewport" content="${os.viewport}" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="default-style" content="text/css" />
<!--! plain old metadata -->
<meta name="title" content="${os.title}" />
<meta name="description" content="${os.description}" />
<meta name="keywords" content="ebook, ebooks, free ebooks, free books, book, books, audio books" />
<meta name="classification" content="public" />
<!--! facebook open graph -->
<meta property="og:title" content="${os.title}" />
<meta property="og:description" content="${os.description}" />
<meta property="og:type" content="${os.og_type}" />
<meta property="og:image" content="${os.snippet_image_url}" />
<meta property="og:url" content="${os.canonical_url}" />
<meta property="og:site_name" content="Project Gutenberg" />
<meta property="fb:app_id" content="${cherrypy.config['facebook_app_id']}" />
<!--! <meta property="fb:admins" content="615269807" /> -->
<!--! twitter card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@gutenberg_new" />
<meta name="twitter:image" content="${os.snippet_image_url}" />
<meta name="twitter:image:alt" content="book cover image" />
2019-03-28 13:45:03 +00:00
2020-08-27 17:19:12 +00:00
</py:def>
<py:def function="credits">
<div id="credits">
<div class="h1"
title="Credits">Credits</div>
<a href="https://www.ibiblio.org" rel="nofollow"
title="Project Gutenberg is hosted by ibiblio.">
<span class ="icon icon_hosted" />
</a>
<p>This web site uses only free software.</p>
<a href="https://httpd.apache.org/" rel="nofollow"
title="Powered by Apache">
<span class="icon icon_apache" />
</a>
<a href="https://www.python.org" rel="nofollow"
title="Powered by Python">
<span class="icon icon_python" />
</a>
<a href="https://www.postgresql.org" rel="nofollow"
title="Powered by PostgreSQL">
<span class="icon icon_postgres" />
</a>
</div>
</py:def>
<py:def function="copyright">
<div class="copyright" i18n:comment="The copyright notice on the footer of every page.">
© 2020 Project Gutenberg Literary Archive Foundation — All Rights Reserved.
</div>
</py:def>
2019-03-28 13:45:03 +00:00
<py:def function="site_footer">
<div class="footer" i18n:comment="On the footer of every page.">
2020-10-30 21:07:12 +00:00
<xi:include href="footer.html" />
2020-03-11 18:45:45 +00:00
</div>
2019-03-28 13:45:03 +00:00
</py:def>
<py:def function="prev_next_links">
<span class="links" i18n:comment="The links to move between paginated search results."
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:py="http://genshi.edgewall.org/">
<py:if test="os.show_prev_page_link">|
<a title="Go to the first page of results."
accesskey="a"
href="${os.url_carry (start_index = 1)}">First</a>
</py:if>
2019-03-28 13:45:03 +00:00
<py:if test="os.show_prev_page_link">|
2019-03-28 13:45:03 +00:00
<a title="Go to the previous page of results."
accesskey="-"
href="${os.url_carry (start_index = os.prev_page_index)}">Previous</a>
</py:if>
<py:if test="os.show_next_page_link">|
<a title="Go to the next page of results."
accesskey="+"
href="${os.url_carry (start_index = os.next_page_index)}">Next</a>
</py:if>
</span>
</py:def>
<py:def function="paypal">
<form class="paypal-button"
action="https://www.paypal.com/cgi-bin/webscr" method="post">
<div>
<!--! xml:lang avoids extraction for translation -->
<input xml:lang="en" type="hidden" name="cmd" value="_s-xclick" />
<input xml:lang="en" type="hidden" name="hosted_button_id" value="XKAL6BZL3YPSN" />
2020-08-27 17:19:12 +00:00
<input type="image" alt="paypal icon" name="submit"
src="/pics/paypal/${os.paypal_lang}.gif"
2019-03-28 13:45:03 +00:00
title="Send us money through PayPal." />
</div>
</form>
</py:def>
<py:def function="flattr">
<a class="flattr-button" target="_blank"
href="https://flattr.com/thing/509045/Project-Gutenberg"
title="Send us money through Flattr.">
<span class="icon icon_flattr" />
</a>
</py:def>
</html>