/* --- CONSTRUCT CLASS --- */ $_get = new BLOG_GET(); $_update = new BLOG_UPDATE(); $prepared_news_title = $_get->get_all_news_title(); $array_news_title = array(); foreach ($prepared_news_title as $news_title) { array_push($array_news_title, $news_title->news_title); } $news_date = filter_var($_REQUEST['news_date'], FILTER_SANITIZE_STRING); $news_alias = filter_var($_REQUEST['news_alias'], FILTER_SANITIZE_STRING); //$secure_news_title = $_get->secure_blog_detail($anti_link, $get_post_news_title, $array_news_title); $blog_detail = $_get->get_blog_detail($news_alias); $category = $_get->get_all_news_category(); $archive = $_get->get_all_archive(); $totalPrev = $_get->countPrevBlog($blog_detail->news_date); $totalNext = $_get->countNextBlog($blog_detail->news_date); if ($totalPrev->rows > 0) { $prevBlog = $_get->prevBlog($blog_detail->news_date); } else { $prevBlog = 'none'; } if ($totalNext->rows > 0) { $nextBlog = $_get->nextBlog($blog_detail->news_date); } else { $nextBlog = 'none'; } /* --- SHARER --- */ $title = urlencode($blog_detail->news_title); $url = urlencode(CURR_URL); $image = urlencode(BASE_URL . $blog_detail->news_image); $twitter_link = 'http://twitter.com/share?text=' . $title . '&url=' . $url . '&hashtags=' . cleanurl($_global_general->website_title);