htmlMetaDescription des Wettkampfkalenders richtet sich jetzt nach
der (eventuellen) Einzelansicht im Wettkampfkalender. modified: pandocTemplate/cwsvJudo.amp.pandocTemplate modified: pandocTemplate/cwsvJudo.html5.pandocTemplate modified: phpLib/cwsvJudo/wkKalender.php modified: src/md/wkKalender.md
This commit is contained in:
@@ -37,7 +37,14 @@ $endif$
|
||||
$if(keywords)$
|
||||
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
|
||||
$endif$
|
||||
$if(description)$
|
||||
$if(phpTitleString)$
|
||||
<title><?php echo( $phpTitleString$ );?></title>
|
||||
$else$
|
||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||
$endif$
|
||||
$if(phpDescriptionString)$
|
||||
<meta name="description" content="<?php echo( $phpDescriptionString$ );?>" />
|
||||
$else$
|
||||
<meta name="description" content="$description$" />
|
||||
$endif$
|
||||
$if(canonicalLink)$
|
||||
@@ -46,7 +53,6 @@ $endif$
|
||||
$if(ampVersionLink)$
|
||||
<link rel="amphtml" href="$ampVersionLink$" />
|
||||
$endif$
|
||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||
<?php require_once($$basePath."/pages/shared/favicon.html.inc");?>
|
||||
<style amp-custom>
|
||||
code{white-space: pre;}
|
||||
@@ -242,7 +248,7 @@ $body$
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bundesprogrammes „Integration durch Sport”
|
||||
<div>
|
||||
<a href="http://www.integration-durch-sport.de" title="Integration durch Sport">
|
||||
<a href="https://integration.dosb.de/" title="Integration durch Sport">
|
||||
<amp-img layout="responsive" src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png" title="Integration durch Sport - Anerkannter Stützpunktverein" alt="Integration durch Sport - Anerkannter Stützpunktverein" width="250" height="416"></amp-img>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -50,6 +50,11 @@ $if(phpTitleString)$
|
||||
$else$
|
||||
<title>$if(title-prefix)$$title-prefix$ – $endif$$pagetitle$</title>
|
||||
$endif$
|
||||
$if(phpDescriptionString)$
|
||||
<meta name="description" content="<?php echo( $phpDescriptionString$ );?>" />
|
||||
$else$
|
||||
<meta name="description" content="$description$" />
|
||||
$endif$
|
||||
$if(css)$
|
||||
<style>
|
||||
$for(css)$
|
||||
@@ -241,7 +246,7 @@ $body$
|
||||
<li>
|
||||
Der CWSV ist anerkannter Stützpunktverein des Bundesprogrammes „Integration durch Sport”
|
||||
<div>
|
||||
<a href="http://www.integration-durch-sport.de" title="Integration durch Sport">
|
||||
<a href="https://integration.dosb.de/" title="Integration durch Sport">
|
||||
<img src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/IntegrationDurchSport2018.250x.png" title="Integration durch Sport - Anerkannter Stützpunktverein" alt="Integration durch Sport - Anerkannter Stützpunktverein" width="250" height="416">
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,18 @@
|
||||
<?php
|
||||
setlocale(LC_ALL, 'de_DE.utf8');
|
||||
|
||||
|
||||
function getWkHtmlMetaDescription($wkId){
|
||||
setlocale(LC_ALL, 'de_DE.utf8', 'de_DE@euro');
|
||||
$retString = "";
|
||||
$dbConn = getPdoDbConnection("localhost", "cwsvjudo", "cwsvjudo", "***REMOVED***");
|
||||
|
||||
$wkInfo = getWk($dbConn, array('wkId'=>$_GET['wkId']) );
|
||||
// var_dump($wkInfo);
|
||||
$retString = $wkInfo[0]['Veranstaltung']." am ".strftime("%d. %B %Y", strtotime($wkInfo[0]['Datum']))." in ".$wkInfo[0]['Ort']." für Judoka der Altersklassen ".nicerAkList($wkInfo[0]['Altersklassen']);
|
||||
return $retString;
|
||||
}
|
||||
|
||||
function echoWkTitle(){
|
||||
echo( getWkName( $_GET['wkId'] ) );
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ keywords:
|
||||
- Judo
|
||||
- Wettkampf
|
||||
- Termine
|
||||
phpDescriptionString: ( (is_positive_integer( \$_GET['wkId']) )?(getWkDescription(\$_GET['wkId'])):'Ein Kalender mit Judo-Wettkampfterminen zur Übersicht')
|
||||
description: "Ein Kalender mit Judo-Wettkampfterminen zur Übersicht"
|
||||
canonicalLink: "http://cwsvjudo.bplaced.net/wkKalender<?php echo(is_positive_integer($_GET['wkId'])?('/'.$_GET['wkId'].'/'.toAscii(html_entity_decode(getWkName($_GET['wkId'])))):'');?>"
|
||||
ampVersionLink: "http://amp.cwsvjudo.bplaced.net/wkKalender<?php echo(is_positive_integer($_GET['wkId'])?('/'.$_GET['wkId'].'/'.toAscii(html_entity_decode(getWkName($_GET['wkId'])))):'');?>"
|
||||
|
||||
Reference in New Issue
Block a user