Files
cwsvJudo/homepage/redesign2018/markdownExperiment/pandocTemplate/cwsvJudo.amp.pandocTemplate
2021-05-23 12:57:17 +02:00

253 lines
7.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/// Einbinden der Konfiguration, insbesondere Basisvariablen,
/// relative Pfadangabe
/// - jedes Verzeichnis sollte seine eigene haben
/// - theoretisch sollte es bereits von der aufrufenden Datei
/// eingebunden sein
require_once("./config.inc.php");
// include_once("./config.inc.php");
require_once($$basePath."/config/phpcount.config.php");
require_once($$basePath."/config/cwsvJudo.config.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/miscAssis.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/newsLib.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/wkKalender.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/galTable.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/newsTableHtml.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/galleryRedirector.php");
require_once($$basePath."/ressourcen/phpLib/phpcount/phpcount.php");
galleryRedirector();
$if(phpTitleString)$
PHPCount::AddHit($phpTitleString$." (Amp)");?>
$else$
PHPCount::AddHit("$title$ (Amp)");?>
$endif$
<!DOCTYPE html>
<html amp$if(lang)$ lang="$lang$"$endif$$if(dir)$ dir="$dir$"$endif$>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1.0, user-scalable=yes">
$for(author-meta)$
<meta name="author" content="$author-meta$">
$endfor$
$if(date-meta)$
<meta name="dcterms.date" content="$date-meta$">
$endif$
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
$endif$
$if(phpTitleString)$
<title><?php echo( $phpTitleString$ );?></title>
$else$$if(title)$
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
$endif$$endif$
$if(phpDescriptionString)$
<meta name="description" content="<?php echo( $phpDescriptionString$ );?>" />
$else$$if(description)$
<meta name="description" content="$description$" />
$endif$$endif$
$if(canonicalLink)$
<link rel="canonical" href="$canonicalLink$" />
$endif$
$if(ampVersionLink)$
<link rel="amphtml" href="$ampVersionLink$" />
$endif$
<?php require_once($$basePath."/pages/shared/favicon.html.inc");?>
<style amp-custom>
code{white-space: pre;}
$if(quotes)$
q { quotes: "“" "”" "" ""; }
$endif$
$if(highlighting-css)$
$highlighting-css$
$endif$
$for(css)$
<?php require_once($$basePath."/$css$");?>
$endfor$
.home-button {
margin-top: 8px;
}
.headerbar {
height: 50px;
position: fixed;
z-index: 999;
top: 0;
width: 100%;
display: flex;
align-items: center;
}
.site-name {
flex: 1;
margin-left: -36px;
}
article {
margin-top: 50px;
}
.hamburger {
padding-left: .5em;
padding-right: .5em;
}
#mainNav > a > span{
width: 2em;
}
.newsPromoImage{
width: 100%;
max-width: 300px;
}
.messageBox{
width: 100%;
border:solid 1px #000000;
background-color:#FF8100;
font-size:smaller;
}
.fontSizeXxSmall{font-size: xx-small;}
.displayNone{display: none;}
</style>
$if(math)$
$math$
$endif$
$for(header-includes)$
$header-includes$
$endfor$
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js"></script>
<script type='application/ld+json'>
{
"@context": "http://www.schema.org",
"@type": "WebSite",
$if(phpTitleString)$
"name": "<?php echo( $phpTitleString$ );?>",
$else$
"name": "$title$",
$endif$
"alternateName": "$description$",
$if(canonicalLink)$
"url": "$canonicalLink$",
$else$
"url": "http://cwsvjudo.bplaced.net",
$endif$
"image": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.256w.png"
}
</script>
$if(jsonSdFiles)$
$for(jsonSdFiles)$
<script type='application/ld+json'>
<?php include($$basePath."/ressourcen/structuredData/json/$jsonSdFiles$");?>
</script>
$endfor$
$endif$
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
</head>
<body>
<div class="messageBox">
Dies ist die "mobile" Version für Smartphones etc.<br/>
<a href="$canonicalLink$">Hier gibt es die Desktop-Variante</a>
</div>
<!-- Kopfzeile mit Titel, Promobildern und Breadcrumbs -->
<header class="cwsvHeader">
<div role="button" on="tap:sidebar1.toggle" tabindex="0" class="hamburger">☰</div>
<amp-img layout="responsive"
width="200" height="140"
title="Judo im Chemnitzer WSV"
alt="Judo im Chemnitzer WSV - Promo"
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/banner/bannerlogo.1.jpg"
></amp-img>
<span>
<span>Judo</span>
<span><?php $$zitat = getRandomCite( getCwsvJudoDbConn() ); echo($$zitat['zitat']);?></span>
</span>
<amp-img layout="responsive"
width="128" height="104"
title="Judo im Chemnitzer WSV"
alt="Judo im Chemnitzer WSV - Logo"
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png"
srcset=http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 2x"
></amp-img>
</header>
$if(mainNav)$
<nav id="mainNav">
$for(mainNav)$
<a href="$mainNav.url$"
$if(mainNav.caption)$title="$mainNav.caption$" $endif$
$if(mainNav.active)$class="activeNav" $endif$
>
$if(mainNav.icon)$
<span><amp-img layout="responsive"
src="$if(mainNav.icon.src)$$mainNav.icon.src$$else$$mainNav.icon$$endif$"
$if(mainNav.caption)$
alt="$mainNav.caption$"
$else$
$if(mainNav.icon.alt)$
alt="$mainNav.icon.alt$"
$endif$
$endif$
$if(mainNav.icon.width)$
width="$mainNav.icon.width$"
$endif$
$if(mainNav.icon.height)$
height="$mainNav.icon.height$"
$endif$
$if(mainNav.icon.title)$
title="$mainNav.icon.title$"
$endif$
$if(mainNav.icon.srcset)$
srcset="$mainNav.icon.srcset$"
$endif$
></amp-img>
</span>
$endif$
$if(mainNav.caption)$<span>$mainNav.caption$</span>$endif$
</a>
$endfor$
</nav>
$endif$
$if(subNav)$
<amp-sidebar id="sidebar1" layout="nodisplay" side="left">
<div role="button" aria-label="close sidebar" on="tap:sidebar1.toggle" tabindex="0" class="close-sidebar">✕</div>
<ul class="sidebar">
$for(subNav)$
<li>
<a href="$subNav.url$"
$if(subNav.caption)$title="$subNav.caption$" $endif$
>$if(subNav.caption)$$subNav.caption$$endif$</a>
</li>
$endfor$
</ul>
</amp-sidebar>
$endif$
$for(include-before)$
$include-before$
$endfor$
$if(toc)$
<nav id="$idprefix$TOC">
$toc$
</nav>
$endif$
<main id="content">
$body$
</main>
<aside class="sideNotes"><?php include_once( $$basePath."/pages/shared/sponsorlist.inc.amp" );?></aside>
<footer class="footerBar">
<a class="touchLink" title="Möglichkeiten mit dem Chemnitzer Freizeit- und Wohngebietssportverein in Kontakt zu treten" href="/kontakt" >Kontakt</a>
<a class="touchLink" title="Impressum" href="/impressum" >Impressum</a>
<a class="touchLink" title="Datenschutz" href="/datenschutz" >Datenschutz</a>
<a class="touchLink"
title="News-Feed Abonnieren"
href="http://cwsvjudo.bplaced.net/rss"
>Newsfeed
</a>
</footer>
$for(include-after)$
$include-after$
$endfor$
</body>
</html>