add home template file

This commit is contained in:
Frédéric Péters 2012-04-18 08:32:42 +02:00
parent e7d1f4b641
commit c63710d50d
1 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,66 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="context/main_template/macros/master"
i18n:domain="plone">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main">
<tal:block tal:define="cache view/cache"/>
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 metal:use-macro="context/kss_generic_macros/macros/generic_title_view">Title</h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<!-- JavaScript Slideshow by Patrick Fitzgerald http://slideshow.barelyfitz.com/ -->
<script src="/slide_portlet/slideshow.js" type="text/javascript"></script>
<script type="text/javascript">// <![CDATA[
SLIDES = new slideshow("SLIDES");
// Create some slides and add custom filters for Microsoft IE
SLIDES.add_slide(s = new slide('/slide_portlet/pics/pic01i.jpg'));
s.filter = 'progid:DXImageTransform.Microsoft.Pixelate()';
SLIDES.add_slide(s = new slide('/slide_portlet/pics/pic02i.jpg'));
s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
SLIDES.add_slide(s = new slide('/slide_portlet/pics/pic03i.jpg'));
s.filter = 'progid:DXImageTransform.Microsoft.Barn()';
// ]]></script>
<script type="text/javascript">// <![CDATA[
if (document.images) {
SLIDES.image = document.images.SLIDESIMG;
// Create a function to ramp up the image opacity in Mozilla
var fadein_opacity = 0;
var fadein_img = SLIDES.image;
function fadein(opacity) {
if (typeof opacity != 'undefined') fadein_opacity = opacity;
if (fadein_opacity < 1 && fadein_img && fadein_img.style &&
typeof fadein_img.style.MozOpacity != 'undefined') {
fadein_opacity += .05;
fadein_img.style.MozOpacity = fadein_opacity;
setTimeout("fadein()", 50);
}
}
// Tell the slideshow to call our function whenever the slide is changed
SLIDES.post_update_hook = function() { fadein(0); }
}
SLIDES.loop();
// ]]></script>
</tal:main-macro>
</metal:main>
</body>
</html>