public function getViews() { return ImageViewData::getAllByImageId($this->id); }
<?php } else { if ($xlike[0]->is_like == "1") { echo "<button class='btn btn-primary'><i class='fa fa-thumbs-up'></i> Me Gusta</button>"; } else { if ($xlike[0]->is_like == "0") { echo "<button class='btn btn-danger'><i class='fa fa-thumbs-down'></i> No Me Gusta</button>"; } } ?> <?php } ?> <br> <span class='label label-default'>visto <?php $cx = count(ImageViewData::getAllByImageId($_GET['id'])); $comments = CommentData::getAllByImageId($_GET['id']); echo $cx; if ($cx == 1) { echo " vez"; } else { echo " veces"; } ?> <i class='fa fa-eye-open'></i></span> <div class='clearfix'></div> <!-- Place this tag where you want the share button to render. --> <!-- <ul> <li style='display:inline;'><div class="g-plus" data-action="share" data-annotation="none"></div></li> <li style='display:inline;'>