- dynamischer Titel hinzugefügt

- jsonStructData für jede einzelne Website
- kanonische Links im Wettkampfkalender korrigiert und erweitert

Changes to be committed:
	modified:   pandocTemplate/cwsvJudo.html5.pandocTemplate
	modified:   phpLib/cwsvJudo/wkKalender.php
	modified:   src/md/wkKalender.md
This commit is contained in:
marko
2018-08-22 11:06:38 +02:00
parent 9fb89a5656
commit 3a5513acd7
3 changed files with 15 additions and 8 deletions

View File

@@ -5,7 +5,6 @@
/// - theoretisch sollte es bereits von der aufrufenden Datei /// - theoretisch sollte es bereits von der aufrufenden Datei
/// eingebunden sein /// eingebunden sein
require_once("./config.inc.php"); require_once("./config.inc.php");
// include_once("./config.inc.php");
require_once($$basePath."/config/phpcount.config.php"); require_once($$basePath."/config/phpcount.config.php");
require_once($$basePath."/config/cwsvJudo.config.php"); require_once($$basePath."/config/cwsvJudo.config.php");
require_once($$basePath."/ressourcen/phpLib/cwsvJudo/miscAssis.php"); require_once($$basePath."/ressourcen/phpLib/cwsvJudo/miscAssis.php");
@@ -46,8 +45,8 @@ $endif$
$if(ampVersionLink)$ $if(ampVersionLink)$
<link rel="amphtml" href="$ampVersionLink$" /> <link rel="amphtml" href="$ampVersionLink$" />
$endif$ $endif$
$if(phpTitleFunction)$ $if(phpTitleString)$
<title><?php $phpTitleFunction$();?></title> <title><?php echo( $phpTitleString$ );?></title>
$else$ $else$
<title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title> <title>$if(title-prefix)$$title-prefix$ $endif$$pagetitle$</title>
$endif$ $endif$
@@ -79,9 +78,17 @@ $endif$
{ {
"@context": "http://www.schema.org", "@context": "http://www.schema.org",
"@type": "WebSite", "@type": "WebSite",
$if(phpTitleString)$
"name": "<?php echo( $phpTitleString$ );?>",
$else$
"name": "$title$", "name": "$title$",
$endif$
"alternateName": "$description$", "alternateName": "$description$",
$if(canonicalLink)$
"url": "$canonicalLink$",
$else$
"url": "http://cwsvjudo.bplaced.net", "url": "http://cwsvjudo.bplaced.net",
$endif$
"image": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.256w.png" "image": "http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.256w.png"
} }
</script> </script>

View File

@@ -295,6 +295,7 @@ function wkTableHtml(){
$siteData['mainContent'] .= $siteData['mainContent'] .=
"<h1>Einzelansicht</h1>". "<h1>Einzelansicht</h1>".
"<div class=\"wkInfoBox\">". "<div class=\"wkInfoBox\">".
"<script type=\"application/ld+json\">".wkArray2jsonSdEvent($wk)."</script>".
"<h2>".$wk['Veranstaltung']."</h2>". "<h2>".$wk['Veranstaltung']."</h2>".
"<h3>Veranstaltungsdaten</h3>". "<h3>Veranstaltungsdaten</h3>".
"<ul>". "<ul>".
@@ -416,7 +417,7 @@ if(empty($aWk)) return null;
$wkInfoBoxHtml = ""; $wkInfoBoxHtml = "";
$wkInfoBoxHtml .= $wkInfoBoxHtml .=
"<div class=\"wkInfoBox\">". "<div class=\"wkInfoBox\">".wkArray2jsonSdEvent($aWk).
"<h1>Einzelansicht ".$aWk['Veranstaltung']."</h1>". "<h1>Einzelansicht ".$aWk['Veranstaltung']."</h1>".
"<h2>Veranstaltungsdaten</h2>". "<h2>Veranstaltungsdaten</h2>".
"<ul>". "<ul>".

View File

@@ -1,15 +1,14 @@
--- ---
lang: de lang: de
title: "Wettkampfkalender der Judoka des Chemnitzer Freizeit- und Wohngebiets&shy;sportvereines e.&#x202f;V." phpTitleString: ( (is_positive_integer( \$_GET['wkId']) )?(getWkName(\$_GET['wkId']).' im '):'').'Wettkampfkalender der Judoka des Chemnitzer Freizeit- und Wohngebiets&shy;sportvereines e.&#x202f;V.'
phpTitleFunction: echoWkTitle
author: marko author: marko
keywords: keywords:
- Judo - Judo
- Wettkampf - Wettkampf
- Termine - Termine
description: "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']):''));?>" canonicalLink: "http://cwsvjudo.bplaced.net/wkKalender<?php echo(is_positive_integer($_GET['wkId'])?('/'.$_GET['wkId'].'/'.toAscii(getWkName($_GET['wkId']))):'');?>"
ampVersionLink: "http://amp.cwsvjudo.bplaced.net/wkKalender" ampVersionLink: "http://amp.cwsvjudo.bplaced.net/wkKalender<?php echo(is_positive_integer($_GET['wkId'])?('/'.$_GET['wkId']):'');?>"
... ...
<?php wkTableHtml();?> <?php wkTableHtml();?>