<div class="clear"></div> </div> <?php } else { //Display Page $pageData = $pageIns->getPageByID($data['pageID']); $followerCount = $pageFollowerIns->getNumberOfFollowers($data['pageID']); if (empty($pageData)) { continue; } $pageLink = '/page.php?pid=' . $pageData['pageID']; ?> <div class="node"> <div class="img-cont"><?php render_pagethumb_link($pageData, 'thumbIcon'); ?> </div> <div class="desc"> <a href="<?php echo $pageLink; ?> "><b><?php echo $pageData['title']; ?> </b></a> <br/><br/> <span><?php echo $data['PPFollowers']; ?> Follower(s)</span> </div>
<!-- Followed Page Section--> <?php $pageFollowerIns = new BuckysPageFollower(); $followedPageData = $pageFollowerIns->getPagesByFollowerID($profileID, 1, 10); if (count($followedPageData) > 0) { ?> <h4 style="margin-bottom:10px;">Pages <a href="/follows.php?user=<?php echo $profileID; ?> ">(view all)</a></h4> <div id="user-following-box" class="info-box"> <?php foreach ($followedPageData as $data) { render_pagethumb_link($data, 'followPageIcons'); } ?> <div class="clear"></div> </div> <?php } ?> <!-- User Links Section --> <?php //Check the user has links $hasLinks = false; foreach ($userData['links'] as $row) { if ($canViewPrivate || $row['visibility']) {
} ?> </div> <?php if ($view['isMyPage']) { ?> <div class="info-box" id="post-edit-box"> <h3>New Post</h3> <div class="new-post-box"> <?php render_pagethumb_link($pageData, 'postIcons'); ?> <div class="new-post-row"> <form method="post" id="newpostform" action="/manage_post.php"> <div id="new-post-nav"> <a href="#" class="post-text selected">Text</a> <span>|</span> <a href="#" class="post-image">Photo</a> <span>|</span> <a href="#" class="post-video">Video</a> </div> <textarea name="content" class="newPost" placeholder="Create a new post..."></textarea> <div id="new-video-url"> <label style="font-weight:bold;font-size:11px;" for="video-url">YouTube URL:</label> <input type="text" name="youtube_url" id="youtube_url" class="input" value=""/> </div> <div class='privacy-row'>
function buckys_get_single_post_html($post, $userID, $isPostPage = false, $pageData = null) { ob_start(); if ($post['pageID'] != BuckysPost::INDEPENDENT_POST_PAGE_ID) { $pageIns = new BuckysPage(); $pageData = $pageIns->getPageByID($post['pageID']); } $pagePostFlag = false; if (isset($pageData)) { $pagePostFlag = true; } ?> <div class="post-item" id=<?php echo $post['postID']; ?> > <?php if ($pagePostFlag) { ?> <?php render_pagethumb_link($pageData, 'postIcons'); ?> <?php } else { ?> <a href="/profile.php?user=<?php echo $post['poster']; ?> " class="poster-thumb"><img src="<?php echo BuckysUser::getProfileIcon($post['poster']); ?> " class="postIcons" /></a> <?php } ?> <div class="post-content"> <?php if ($pagePostFlag) { ?> <div class="post-author"><a href="page.php?pid=<?php echo $pageData['pageID']; ?> "><b><?php echo $pageData['title']; ?> </b></a></div> <?php } else { ?> <div class="post-author"><a href="profile.php?user=<?php echo $post['poster']; ?> "><b><?php echo $post['posterFullName']; ?> </b></a></div> <?php } ?> <?php echo buckys_process_post_content($post, $pageData); ?> <div class="post-date"> <span class="lft"> <?php if (buckys_not_null($userID) && $post['poster'] != $userID) { ?> <a href='/manage_post.php?action=<?php echo buckys_not_null($post['likeID']) ? 'unlikePost' : 'likePost'; ?> &postID=<?php echo $post['postID']; ?> ' class="like-post-link"><?php echo buckys_not_null($post['likeID']) ? 'Unlike' : 'Like'; ?> </a> · <?php } ?> <?php if (buckys_not_null($userID) && $post['poster'] == $userID) { ?> <a href='/manage_post.php?action=delete-post&userID=<?php echo $userID; ?> &postID=<?php echo $post['postID']; ?> ' class="remove-post-link">Delete</a> · <?php } ?> <span><?php echo buckys_format_date($post['post_date']); ?> </span> <?php if (buckys_not_null($userID) && $post['poster'] != $userID && !$post['reportID']) { ?> · <a href="/report_object.php" data-type="post" data-id="<?php echo $post['postID']; ?> " data-idHash="<?php echo buckys_encrypt_id($post['postID']); ?> " class="report-link">Report</a> <?php } ?> </span> <span class="rgt"> <?php echo $post['visibility'] ? 'Public' : 'Private'; ?> </span> <div class="clear"></div> </div> <div class="post-like-comment"> <?php if ($pagePostFlag) { ?> <a href="/page.php?pid=<?php echo $pageData['pageID']; ?> &post=<?php echo $post['postID']; ?> " class="usersThatLiked likes-link"><?php echo $post['likes'] > 1 ? $post['likes'] . " likes" : $post['likes'] . " like"; ?> </a> · <a href="/page.php?pid=<?php echo $pageData['pageID']; ?> &post=<?php echo $post['postID']; ?> " class="usersThatLiked"><?php echo $post['comments'] > 1 ? $post['comments'] . " comments" : $post['comments'] . " comment"; ?> </a> <?php } else { ?> <a href="/posts.php?user=<?php echo $post['poster']; ?> &post=<?php echo $post['postID']; ?> " class="usersThatLiked likes-link"><?php echo $post['likes'] > 1 ? $post['likes'] . " likes" : $post['likes'] . " like"; ?> </a> · <a href="/posts.php?user=<?php echo $post['poster']; ?> &post=<?php echo $post['postID']; ?> " class="usersThatLiked"><?php echo $post['comments'] > 1 ? $post['comments'] . " comments" : $post['comments'] . " comment"; ?> </a> <?php } ?> </div> <?php if ($post['likes'] > 0) { $likedUsers = BuckysPost::getLikedUsers($post['postID']); ?> <div class="liked-users"> <ul> <?php foreach ($likedUsers as $l) { ?> <li><a href="/profile.php?user=<?php echo $l['userID']; ?> "><img src="<?php echo BuckysUser::getProfileIcon($l); ?> "> <span><?php echo $l['firstName'] . " " . $l['lastName']; ?> </span></a></li> <?php } ?> <?php if ($post['likes'] > 30) { ?> <li class="more-likes">+ <?php echo $post['likes'] - count($likedUsers); ?> more</li> <?php } ?> </ul> </div> <?php } ?> <?php if (buckys_not_null($userID)) { ?> <div class="post-new-comment"> <a href="/profile.php?user=<?php echo $userID; ?> "><img src="<?php echo BuckysUser::getProfileIcon($userID); ?> " class="replyToPostIcons" /></a> <form method="post" class="postcommentform" name="postcommentform" action=""> <input type="text" class="input" name="comment" placeholder="Write a comment..."> <input type="hidden" name="postID" value="<?php echo $post['postID']; ?> " /> <input type="submit" value="Post Comment" id="submit_post_reply" class="redButton" /> <?php render_loading_wrapper(); ?> </form> </div> <?php } ?> <?php $comments = BuckysComment::getPostComments($post['postID']); echo render_post_comments($comments, $userID); if (count($comments) > 0 && BuckysComment::hasMoreComments($post['postID'], $comments[count($comments) - 1]['posted_date'])) { ?> <a href="#" class="show-more-comments" data-last-date="<?php echo $comments[count($comments) - 1]['posted_date']; ?> " data-post-id="<?php echo $post['postID']; ?> ">view more</a> <?php } ?> </div> <input type="hidden" class="post-created-date" value="<?php echo $post['post_date']; ?> " /> </div> <?php $html = ob_get_contents(); ob_end_clean(); return $html; }
<div class="table userfriends" id="friends-box"> <div class="thead"> <div class="td td-friend-icon">Page</div> <div class="td td-friend-info"></div> <div class="td td-friend-action">Action</div> <div class="clear"></div> </div> <?php foreach ($followedPages as $i => $row) { ?> <div class="tr <?php echo $i == count($followedPages) - 1 ? 'noborder' : ''; ?> "> <div class="td td-friend-icon"><?php render_pagethumb_link($row, 'postIcons'); ?> </div> <div class="td td-friend-info"> <p><a href="/page.php?pid=<?php echo $row['pageID']; ?> "><b><?php echo $row['title']; ?> </b></a></p> <p><?php echo $row['followerCount']; ?> Follower(s)</p> </div>
<div class="table" id="friends-box" style="margin-bottom:5px;"> <div class="friends-header"> <div class="col-1">Page</div> <div class="col-2"> </div> <div class="col-3">Action</div> <div class="clear"></div> </div> <?php foreach ($followedPages as $i => $row) { ?> <div class="tr-friend <?php echo $i == count($followedPages) - 1 ? 'noborder' : ''; ?> "> <div class="td-friend-icon"><?php render_pagethumb_link($row, 'friendIcon'); ?> </div> <div class="td td-friend-info"> <p> <a href="/page.php?pid=<?php echo $row['pageID']; ?> "><b><?php echo $row['title']; ?> </b></a> </p> <p><?php echo $row['followerCount'];
function render_top_posts($posts) { $page = isset($_GET['page']) ? $_GET['page'] : 1; $rankCounter = 1; foreach ($posts as $row) { if (!$row['pageID']) { $url = "/posts.php?user="******"&post=" . $row['postID']; } else { $url = "/page.php?pid=" . $row['pageID'] . "&post=" . $row['postID']; } ?> <div class="index_singleListing" style="border-bottom:1px solid #ebebeb; margin-top:8px; padding-bottom:8px;"> <div class="postRank"> <?php if ($page > 1) { echo $rankCounter + 30 * ($page - 1); $rankCounter++; } else { echo $rankCounter; $rankCounter++; } echo "."; ?> </div> <?php //render_profile_link($row, 'index_PostIcons'); if (!$row['pageID']) { render_profile_link($row, 'index_PostIcons'); } else { render_pagethumb_link(['logo' => $row['pageLogo'], 'pageID' => $row['pageID'], 'userID' => $row['pageOwnerID']], 'index_PostIcons'); } ?> <div class="index_singleListingContent"> <a href="<?php echo $url; ?> " class="index_singleListingTitles"><?php echo strlen($row['content']) > 600 ? substr($row['content'], 0, 600) . "..." : $row['content']; ?> </a> <br/> <span class="index_timeOfPost">posted <?php echo buckys_format_date($row['post_date']); ?> by</span> <?php if (!$row['pageID']) { $authorUrl = "/profile.php?user="******"/page.php?pid=" . $row['pageID']; } ?> <a href="<?php echo $authorUrl; ?> " class="smallBlue"><?php echo !$row['pageID'] ? $row['userName'] : $row['pageTitle']; ?> </a> <br/> <a href="<?php echo $url; ?> " class="index_LikesAndComments"><?php echo $row['likes']; ?> Like<?php echo $row['likes'] > 1 ? "s" : ""; ?> </a> · <a href="<?php echo $url; ?> " class="index_LikesAndComments"><?php echo $row['comments']; ?> Comment<?php echo $row['comments'] > 1 ? 's' : ''; ?> </a> </div> </div> <?php } ?> <?php if (count($posts) < 1) { ?> <div class="index_singleListing index_singleListingEmpty"><?php echo MSG_NO_DATA_FOUND; ?> </div> <?php } }
?> <a href="javascript:void(0)" class="edit-info" id="edit_page_title_btn">(edit)</a><?php } ?> </h3> <div class="page-title-edit-panel"> <input type="text" id="page_title_input" value="<?php echo $pageData['title']; ?> " maxlength="200"> <input type="button" value="Save" id="save_page_title" class="redButton"> </div> </div> <?php render_pagethumb_link($pageData, 'mainProfilePic'); ?> <br/> <?php if (!$view['isMyPage']) { ?> <?php if ($view['isFollowed']) { echo sprintf('<a href="/page.php?pid=%d&action=unfollow' . buckys_get_token_param() . '">Unfollow Page</a> <br/>', $pageData['pageID']); } else { echo sprintf('<a href="/page.php?pid=%d&action=follow' . buckys_get_token_param() . '">Follow Page</a> <br/>', $pageData['pageID']); } ?> <?php
<li class="item-trade"><a href="/trade">Trade</a></li> <li class="item-vote"><a href="/moderator.php?type=community">Vote</a></li> </ul> <div id="homepage-banner"><a href="http://www.ummchealth.com/children/"><img src="/images/home_banner_sample.png" /></a></div> </div> <div id="homepage-rgt"> <div id="large-image"><img src="/images/homepage_main_image.jpg" /></div> <div id="popular-pages" class="items-box"> <h2 class="titles">Popular Pages <span style="font-size:11px;font-family: Arial,Helvetica,sans-serif;"><a href="/search.php?type=1&sort=pop">(view more)</a></span></h2> <ul> <?php foreach ($popularPages as $row) { ?> <li> <?php render_pagethumb_link($row, 'mainProfilePic'); ?> <a href="/page.php?pid=<?php echo $row['pageID']; ?> " class="link"><?php echo buckys_truncate_string($row['title'], 25); ?> </a> <span><?php echo $row['followers']; ?> Follower<?php echo $row['followers'] > 1 ? 's' : ''; ?> </span>