Reenabled width and heigth in gallery table
This commit is contained in:
@@ -158,11 +158,11 @@ $endif$
|
||||
<span><?php $$zitat = getRandomCite( getCwsvJudoDbConn() ); echo($$zitat['zitat']);?></span>
|
||||
</span>
|
||||
<amp-img layout="responsive"
|
||||
width="64" height="52"
|
||||
width="128" height="104"
|
||||
title="Judo im Chemnitzer WSV"
|
||||
alt="Judo im Chemnitzer WSV - Logo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.64w.png"
|
||||
srcset="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png 2x, http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 4x"
|
||||
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>
|
||||
|
||||
|
||||
@@ -127,11 +127,11 @@ $endfor$
|
||||
<span><?php $$zitat = getRandomCite( getCwsvJudoDbConn() ); echo($$zitat['zitat']);?></span>
|
||||
</span>
|
||||
<img
|
||||
width="64" height="52"
|
||||
width="128" height="104"
|
||||
title="Judo im Chemnitzer WSV"
|
||||
alt="Judo im Chemnitzer WSV - Logo"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.64w.png"
|
||||
srcset="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png 2x, http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 4x"
|
||||
src="http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.128w.png"
|
||||
srcset=http://cwsvjudo.bplaced.net/ressourcen/graphiken/logos/cwsvJudoLogoWappen.x256.png 2x"
|
||||
/>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ $messages=array();
|
||||
|
||||
// standardmäßig frage die letzten 12 Galerien ab
|
||||
$queryGals = "
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight
|
||||
FROM cwsvjudo.wkGalerien
|
||||
WHERE 1
|
||||
ORDER BY datum DESC LIMIT 12
|
||||
@@ -55,7 +55,7 @@ $messages=array();
|
||||
$minDate = $galJahr."-01-01";
|
||||
$maxDate = $galJahr."-12-31";
|
||||
$queryGals = sprintf("
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl
|
||||
SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight
|
||||
FROM cwsvjudo.wkGalerien
|
||||
WHERE datum >= '%s' AND datum <= '%s' ORDER BY datum ASC;",
|
||||
$mysqlConn->real_escape_string($minDate),
|
||||
@@ -65,14 +65,14 @@ $messages=array();
|
||||
|
||||
if($_GET['veranstaltungsArt']=="Feier"){
|
||||
$queryGals =
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl ".
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight ".
|
||||
"FROM cwsvjudo.wkGalerien ".
|
||||
"WHERE veranstaltungsArt = 'Feier' ORDER BY datum DESC;";
|
||||
}
|
||||
|
||||
if($_GET['veranstaltungsArt']=="Zelten"){
|
||||
$queryGals =
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl ".
|
||||
"SELECT id,datum,name,url,typ,teaserBildUrl,promoImgWidth,promoImgHeight ".
|
||||
"FROM cwsvjudo.wkGalerien ".
|
||||
"WHERE veranstaltungsArt = 'Zelten' ORDER BY datum DESC;";
|
||||
}
|
||||
@@ -161,10 +161,20 @@ $messages=array();
|
||||
"<td >".
|
||||
"<a href=\"".mb_convert_encoding($gal['url'], 'UTF-8', 'ISO-8859-1')."?galId=".$gal['id']."\">"
|
||||
);
|
||||
$tempString = ($gal['teaserBildUrl'] != "" ? "<div><img title=\"".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')." - Bilder der Judoka des Chemnitzer WSV\" alt=\"Teaserbild ".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')."\" src=\"".mb_convert_encoding($gal['teaserBildUrl'], 'UTF-8', 'ISO-8859-1')."\"/></div>" : "");
|
||||
|
||||
// width and height of the promoImg
|
||||
$width_height_string = "width=\"200\" height=\"133\"";
|
||||
if(
|
||||
is_positive_integer($gal['promoImgWidth'])
|
||||
&& is_positive_integer($gal['promoImgHeight'])
|
||||
){
|
||||
$width_height_string = "width=\"".strval($gal['promoImgWidth'])."\" height=\"".strval($gal['promoImgHeight'])."\"";
|
||||
}
|
||||
|
||||
$tempString = ($gal['teaserBildUrl'] != "" ? "<div><img title=\"".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')." - Bilder der Judoka des Chemnitzer WSV\" alt=\"Teaserbild ".mb_convert_encoding($gal['name'], 'UTF-8', 'ISO-8859-1')."\" src=\"".mb_convert_encoding($gal['teaserBildUrl'], 'UTF-8', 'ISO-8859-1')."\" ".$width_height_string."/></div>" : "");
|
||||
//echo($_SERVER['ORIG_PATH_TRANSLATED']);
|
||||
if( strpos( $_SERVER['ORIG_PATH_TRANSLATED'], "pages/amp" ) !== false ){
|
||||
$tempString = str_replace("<img", "<amp-img layout=\"responsive\" width=\"200\" height=\"133\"", $tempString);
|
||||
$tempString = str_replace("<img", "<amp-img layout=\"responsive\" ", $tempString);
|
||||
$tempString = str_replace("/>", "></amp-img>", $tempString);
|
||||
}
|
||||
echo( $tempString );
|
||||
|
||||
@@ -10,6 +10,8 @@ $message = array();
|
||||
|
||||
$limit = is_positive_integer($someOptions['limit'])?$someOptions['limit']:1;
|
||||
|
||||
$headerRootLevel = is_positive_integer($someOptions['$headerRootLevel'])?$someOptions['$headerRootLevel']:1;
|
||||
|
||||
/// Eine Datenbankverbindung (über pdo) erstellen
|
||||
try{
|
||||
$db_connection = new PDO(
|
||||
@@ -33,10 +35,10 @@ $limit = is_positive_integer($someOptions['limit'])?$someOptions['limit']:1;
|
||||
if($someOptions['newsId']) $newsHeading=$newsList[0]['betreff'];
|
||||
if($someOptions['jahr']) $newsHeading="Nachrichten des Jahres ".$someOptions['jahr'];
|
||||
|
||||
echo("<h1>".$newsHeading."</h1>");
|
||||
echo("<h".strval($headerRootLevel).">".$newsHeading."</h".$headerRootLevel.">");
|
||||
if( is_array( $newsList ) || is_object( $newsList ) )
|
||||
foreach($newsList as $news)
|
||||
echo( getHtmlNews($news, "headingLevel=2")."<hr />" );
|
||||
echo( getHtmlNews($news, "headingLevel=".strval($headerRootLevel+1))."<hr />" );
|
||||
else
|
||||
$messages['errors'][] = "Fehler: Keine Neuigkeiten gefunden!";
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
/* float: right;*/
|
||||
display: inline;
|
||||
vertical-align: middle;
|
||||
width: 100%;
|
||||
height:auto;
|
||||
}
|
||||
|
||||
.galTable time{
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
.wkInfoBox nav>ul{
|
||||
padding:0%;
|
||||
}
|
||||
.wkInfoBox nav{
|
||||
padding:1%;
|
||||
}
|
||||
.wkInfoBox nav>ul>li{
|
||||
padding:.25em;
|
||||
margin:.25em;
|
||||
box-shadow:.1em .1em .05em grey;
|
||||
background-color:#ff8100;
|
||||
border-radius:.5em;
|
||||
list-style-type:none;
|
||||
}
|
||||
.wkInfoBox{
|
||||
box-shadow:0 1px 3px #0000001f,0 1px 2px;
|
||||
}
|
||||
.wkInfoBox h1{
|
||||
background:#ff8100;
|
||||
font-size:1.2em;margin:0;
|
||||
}
|
||||
.wkInfoBox h2{
|
||||
background:#ff8100;
|
||||
font-size:1.1em;
|
||||
margin:0;
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ jsonSdFiles:
|
||||
- cwsvJudo.json
|
||||
...
|
||||
|
||||
# Willkommen
|
||||
# Herzlich willkommen
|
||||
|
||||
auf der Website des Judo-Teams des [Chem­nitzer Frei­zeit- und Wohng­ebiets­sport­vereines e. V.][cwsvHomepage]
|
||||
Hier findet ihr Informationen zu unseren [Trainingszeiten][cwsvJudoTraining]
|
||||
@@ -21,7 +21,7 @@ und [Wettkampfterminen][cwsvJudoWettkampfKalender].
|
||||
Ein kleines Wiki bietet [Wissenswertes über Judo][cwsvJudoWiki], wie
|
||||
zum Beispiel das [Programm für die Gürtelprüfungen][cwsvJudoWikiKyu].
|
||||
|
||||
<?php $options['limit']=6; echoNewsTableHtml( $options );?>
|
||||
<?php $options=array(); $options['limit']=6; $options['headerRootLevel']=1; echoNewsTableHtml( $options ); ?>
|
||||
|
||||
[cwsvHomepage]: http://www.cwsv-sport.de "Homepage des Chemnitzer Freizeit- und Wohngebietssportvereines"
|
||||
[cwsvJudoTraining]: http://cwsvjudo.bplaced.net/trainingszeiten "Trainingszeiten der Judoka des Chemnitzer Freizeit- und Wohngebietssportvereines"
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
---
|
||||
lang: de
|
||||
title: Kontaktformationen des Chemnitzer Freizeit- und Wohngebiets­sportvereines e. V.
|
||||
title: Kontaktformationen des Chemnitzer WSV e. V.
|
||||
author: marko
|
||||
keywords:
|
||||
- Judo
|
||||
- Chemnitz
|
||||
- Kontakt
|
||||
- Chemnitzer Freizeit- und Wohngebietssportverein
|
||||
- Chemnitz
|
||||
- Judo
|
||||
description: "Verschiedene Möglichkeiten Kontakt mit dem Chemnitzer Freizeit- und Wohngebietssportverein e. V. aufzunehmen"
|
||||
canonicalLink: "http://cwsvjudo.bplaced.net/kontakt"
|
||||
ampVersionLink: "http://amp.cwsvjudo.bplaced.net/kontakt"
|
||||
...
|
||||
# Kontakt
|
||||
# ✉ Kontaktformationen
|
||||
|
||||
Hier findet Ihr [eMail-Adressen](#email), [Telephonnummern](#telephon)
|
||||
und [Adressen](#adressen), um mit uns in Kontakt zu treten.
|
||||
@@ -25,7 +26,7 @@ des Chemnitzer Freizeit- und Wohngebietssportvereines
|
||||
## Adressen
|
||||
|
||||
- CWSV - Verwaltung ([Karte][cwsvVerwaltungKarte])
|
||||
- Strasse Usti nad Labem 42
|
||||
- Straße Usti nad Labem 42
|
||||
- 09119 Chemnitz
|
||||
- Mo 8:00-16:30, Di 10:00-17:00, Mi 8:00-17:00, Do 10:00-17:00
|
||||
|
||||
@@ -38,4 +39,3 @@ des Chemnitzer Freizeit- und Wohngebietssportvereines
|
||||
|
||||
[cwsvKontaktFormular]: http://www.cwsv-sport.de/Kontakt.htm "Karte der Verwaltung des Chemnitzer WSV"
|
||||
[cwsvVerwaltungKarte]: http://www.openstreetmap.org/?mlat=50.807643&mlon=12.882060#map=17/50.807643/12.882060
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user