Commit 63bc4eb7 authored by Clément Damiens's avatar Clément Damiens

parent 26311142
......@@ -93,9 +93,10 @@ if( isset(Yii::app()->session['costum']["htmlConstruct"])
$typesList=Organization::$types;
else
$typesList=Event::$types;
$typeCat=(isset($typesList[$element["type"]])) ? $typesList[$element["type"]] : $element["type"];
?>
<i class="fa fa-x fa-angle-right margin-left-10"></i>
<span class="margin-left-10"><?php echo Yii::t("category", $typesList[$element["type"]]) ?></span>
<span class="margin-left-10"><?php echo $typeCat ?></span>
<?php } ?>
</span>
......@@ -112,15 +113,16 @@ if( isset(Yii::app()->session['costum']["htmlConstruct"])
?>
</div>
<?php } ?>
<div class="header-tags col-xs-12 text-center blockFontPreview">
<div class="header-tags col-xs-12 text-center blockFontPreview">
<?php
if(@$element["tags"]){
foreach ($element["tags"] as $key => $tag) { ?>
<a href="javascript:;" class="letter-red" style="vertical-align: top;">#<?php echo $tag; ?></a>
<?php }
} ?>
</div>
</div>
</div>
</div>
<?php if($type==Event::COLLECTION){ ?>
<div class="event-infos-header text-center margin-top-10 col-xs-12 blockFontPreview" style="font-size: 14px;font-weight: none;"></div>
<?php } ?>
......@@ -131,16 +133,20 @@ if( isset(Yii::app()->session['costum']["htmlConstruct"])
</div>
</div>
<?php } ?>
<div class="social-share-button-preview col-xs-12 text-center margin-bottom-20"></div>
</div>
<script type="text/javascript">
var eltPreview=<?php echo json_encode($element); ?>;
var typePreview=<?php echo json_encode($type); ?>;
var idPreview=<?php echo json_encode($id); ?>;
jQuery(document).ready(function() {
var str = directory.getDateFormated(eltPreview);
$(".event-infos-header").html(str);
$(".social-share-button-preview").html(directory.socialBarHtml({"socialBarConfig":{"btnList" : [{"type":"co"},{"type":"facebook"}, {"type":"twitter"} ], "btnSize": 40 }, "type": typePreview, "id" : idPreview }));
coInterface.bindLBHLinks();
});
function eltImgPreview($this){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment