Corretto itemprop per share su social media articolo

This commit is contained in:
Riccardo Di Dato
2016-03-17 18:11:28 +01:00
parent 067ec57d79
commit d64066c9e3
3 changed files with 3 additions and 3 deletions
@@ -13,7 +13,7 @@ class MediaImage extends MediaRenderer{
if(array_key_exists("size", $opt) && array_key_exists($opt["size"], self::$SIZES)){
$size = $opt["size"];
}
return '<img src="'.$this->getImageLink($size).'"/>';
return '<img itemprop="image" src="'.$this->getImageLink($size).'"/>';
}
public function render(array $opt = array ()){
@@ -9,7 +9,7 @@ class MediaYoutube extends MediaRenderer{
public function asText(array $opt = array()){
// return $this->link;
return '<iframe src="'.$this->getVideoLink().'" frameborder="0"></iframe>';
return '<iframe itemprop="video" src="'.$this->getVideoLink().'" frameborder="0"></iframe>';
// return '<iframe width="560" height="315" src="https://www.youtube.com/embed/4qkv-iy_MaQ" frameborder="0" allowfullscreen></iframe>';
}
+1 -1
View File
@@ -121,7 +121,7 @@ GUIHandler::generateHtmlHeaders(array("additionalHeaders"=>$additionalHeaders));
</div>
<div class="articoloContainer" >
<div class="headArticolo">
<div class="articoloMainMedia mediaContent" <?php echo $mediaMetaInfo;?>>
<div class="articoloMainMedia mediaContent" >
<?php if(!is_null($media)) {
$media->renderMedia(array("size"=>MediaRenderer::SIZE_BIG));
}