Exemple #1
0
$tags = explode(";", $post['tags']);
foreach ($tags as $tag) {
    echo '<li><a href="#" >' . $tag . '</a></li>';
}
?>
					     </ul>
					     

					<div class="clearfix"></div>
					<!--related-posts-->
				<div class="row related-posts">
					<h4>Articles You May Like</h4>
					
					<?php 
global $post;
$similarPosts = getLatestPostByCategory($post['category'], 5);
$count = 0;
while (($similarPost = $similarPosts->fetch_assoc()) & $count < 4) {
    if ($post['url'] != $similarPost['url']) {
        echo '
                                                     <div class="col-xs-6 col-md-3 related-grids">
                						<a href="' . $mainUrl . $similarPost['url'] . '" class="thumbnail">
                							<img src="' . $mainUrl . $similarPost['profile_image'] . '" alt=""/>
                						</a>
                						<h5><a href="' . $mainUrl . $similarPost['url'] . '">' . $similarPost['title'] . '</a></h5>
                					</div>
                                                    ';
        $count++;
    }
}
?>
Exemple #2
0
                })(window,document,"script","//www.google-analytics.com/analytics.js","ga");
              
                ga("create", "UA-69418415-1", "auto");
                ga("send", "pageview");
              
              </script>
               ';
$keywords = "Blog, Latest , Bollywood , updates , movie , releases , musics , lyrics , posts , interesting ,  DedicateLyrics.com";
if ($page_name == 'home.htm' || $page_name == '' || $page_name == 'index.php') {
    include "header.php";
    include "home.php";
    include "sidebar.php";
} else {
    if ($page_name == 'bollywood-gossips' || $page_name == 'bollywood-movies' || $page_name == 'bollywood-music' || $page_name == 'zingo-post') {
        $category = $page_name;
        $posts = @getLatestPostByCategory($category, 12);
        //mximum 12 post will be retrieved
        include "header.php";
        include "category.php";
        include "sidebar.php";
    } else {
        /*
          firstly resolve the url of post if it exists the include post.php else pagenotfound 404.php
        */
        $post = @getDetailedPostByUrl($page_name);
        $post = $post->fetch_assoc();
        if ($post != Null) {
            //$post = $post->fetch_assoc();
            $title = $post['title'] . ' | DedicateLyrics.com';
            $metatags = '
               <meta property="og:url" content="' . $mainUrl . '" />