$thumbRender .= '<img src="http://img.youtube.com/vi/'.$rowPic['IMG_PATH'].'/maxresdefault.jpg">'."\n\t"; }else{ $ext = getEXT($rowPic['IMG_PATH']); $path = $rowPic['IMG_PATH']; if($rowPic['IMG_TYPE'] == 2){ $path = str_replace("../../","",$path); } echo '<video width="754" height="460" controls data-type="video">'."\n\t"; echo '<source src="'.$path.'" type="video/'.$ext.'">'."\n\t"; echo '</video>'."\n\t"; $thumbRender .= '<img src="images/tumb-vdo.jpg">'."\n\t"; } }else{ echo '<img class="img-slide-show" data-type="image" style="max-width:754px;max-height: 562px" src="' . callThumbListFrontEndByID($rowPic['PIC_ID'], $rowPic['CAT_ID'], true) . '">'."\n\t"; $thumbRender .= '<img style="max-height: 186px;height: 186px;" src="' . callThumbListFrontEndByID($rowPic['PIC_ID'], $rowPic['CAT_ID'], true) . '">'."\n\t"; } echo '</div>'."\n\t"; $thumbRender .= '</div>'."\n\t"; } ?> </div> <a class="btn-arrow-slide pev"></a> <a class="btn-arrow-slide next"></a> <div class="box-title-main"> <div class="box-date-tumb"> <p class="date"> <?=displayDate($eventRow['EVENT_START_DATE']) ?> </p> <p class="month">
$thumbRender .= '<img src="http://img.youtube.com/vi/'.$rowPic['IMG_PATH'].'/maxresdefault.jpg">'."\n\t"; }else{ $ext = getEXT($rowPic['IMG_PATH']); $path = $rowPic['IMG_PATH']; if($rowPic['IMG_TYPE'] == 2){ $path = str_replace("../../","",$path); } echo '<video width="754" height="460" controls data-type="video">'."\n\t"; echo '<source src="'.$path.'" type="video/'.$ext.'">'."\n\t"; echo '</video>'."\n\t"; $thumbRender .= '<img src="images/tumb-vdo.jpg">'."\n\t"; } }else{ echo '<img class="img-slide-show" data-type="image" style="max-width:754px;max-height: 562px" src="' . callThumbListFrontEndByID($rowPic['PIC_ID'], $rowPic['CAT_ID'], true) . '">'."\n\t"; $thumbRender .= '<img src="' . callThumbListFrontEndByID($rowPic['PIC_ID'], $rowPic['CAT_ID'], true) . '">'."\n\t"; } echo '</div>'."\n\t"; $thumbRender .= '</div>'."\n\t"; } ?> </div> <a class="btn-arrow-slide pev"></a> <a class="btn-arrow-slide next"></a> <div class="box-title-main"> <div class="box-date-tumb"> <p class="date"> <?=displayDate($eventRow['LAST_DATE']) ?> </p> <p class="month"> <?=displayShortMonth($eventRow['LAST_DATE']) ?>
<div class="text-title cf"> <p> แกลเลอรี </p> <div class="box-btn"> <a href="" class="btn black">ดูทั้งหมด</a> </div> </div> <div class="box-slide-small"> <div id="sync2" class="owl-carousel" > <?php while ($rowPic = mysql_fetch_array($rsPic)) { echo ' <div class="slide-content"> '; echo '<img style="width:125px;height:94px;" src="' . callThumbListFrontEndByID($rowPic['PIC_ID'], $rowPic['CAT_ID'], true) . '">'; echo '</div>'; } ?> </div> </div> </div> <div class="box-news-text"> <?php echo $rowContent['CONTENT_DETAIL_LOC']; ?> </div> <div class="box-footer-content cf"> <div class="box-date-modified">