$image = getFeaturingImage($id); if (!empty($image)) { ?> <div class="" style="margin: 0 auto; width: 50%; float: left; text-align: center;"> <p><img src="uploads/images/<?php echo $image; ?> " style="width: 100%"></p> </div> <?php } ?> <?php $text = getFeaturingText($id); if (!empty($text)) { ?> <div class="form-item no-height"><p><?php echo $text; ?> </p></div> <?php } ?> </div> </div> <div class="content-block"> <div class="content-title">Project Story</div>
<div class="project-video auto-width"> <video id="video_1" class="video-js vjs-default-skin" controls preload="none" width="600" height="338" data-setup="{}"> <source src="<?php echo SITE_URL; ?> /uploads/videos/<?php echo $video; ?> "/> <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p> </video> </div> <?php } $text = getFeaturingText($project['project_id']); if (!empty($text)) { ?> <div class="form-item no-height"><p align="justify"><?php echo $text; ?> </p></div> <?php } } $rank = getRankForProject($project['project_id']); ?> <?php if (!isset($_GET['iid'])) { ?> <div class="home-project-info">
<div class="content-block"> <div class="project-action"> <a href="#" class="project-action-btn disabled" id="rate_project" >Rate</a> <a href="#" class="project-action-btn disabled" id="route_project" >Route</a> <a href="#" class="project-action-btn disabled" id="like_project" >Like</a> <a href="#" class="project-action-btn disabled" id="comment_project" >Comment</a> <a href="#" class="project-action-btn disabled" id="report_project" >Report</a> <a href="#" class="project-action-btn" id="homeshare_project">Share</a> </div> <div class="homeshare-area share-active"> <?php if ($showProject) { $title = urlencode($project['project_title']); $url = urlencode(SITE_URL . '/view.php?pid=' . $project['project_id']); $summary = getFeaturingText($project['project_id']); $image = getFeaturingImage($project['project_id']); $imageUrl = '/uploads/images/<?php echo $image; ?>'; } else { $idea = getIdeaById(intval($_GET['iid'])); $title = urlencode($idea['ideathread_title']); $url = urlencode(SITE_URL . '/view.php?pid=' . $idea['ideathread_id']); $summary = $idea['description']; // $imageUrl = '/uploads/images/<?php echo $image; if ($idea['thumbnail_img']) { $imageUrl = $idea['thumbnail_img']; } else { $imageUrl = '/uploads/avatars/nophoto.jpg'; } } ?>