Exemplo n.º 1
0
        }
        $count++;
    }
}
?>
                                      </div>

					<div class="life-style col-md-12">
      					<header>
      						<h3 class="title-head">Recent Posts</h3>
      					</header>


                                                                               <?php 
global $alreadyOnPagePosts;
$recentPosts = getLatestMiniPost(13);
$count = 0;
//print_r($alreadyOnPagePosts);
while (($recentPost = $recentPosts->fetch_assoc()) && $count < 6) {
    if (!in_array($recentPost['url'], $alreadyOnPagePosts)) {
        array_push($alreadyOnPagePosts, $recentPost['url']);
        if ($count == 0) {
            echo '<div class="s-grid-left">
							                                  	<div class="cricket"> ';
        }
        if ($count == 3) {
            echo '<div class="s-grid-right">
							                                  	<div class="cricket"> ';
        }
        echo '<div class="s-grid-small">
                											<div class="sc-image">
Exemplo n.º 2
0
						<input type="text" class="text" value="Email Address" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Email Address';}">
						<input type="submit" value="submit">
					</form>
				</div>
				-->
				<div class="list_vertical">
		         	 	<section class="accordation_menu">
						  <div>
						    <input id="label-1" name="lida" type="radio" checked/>
						   <label for="label-1" id="item1"><i class="ferme"> </i>Recent Posts<i class="icon-plus-sign i-right1"></i><i class="icon-minus-sign i-right2"></i></label>
						    <div class="content" id="a1">
						    	<div class="scrollbar" id="style-2">
								 <div class="force-overflow">
								     <div class="popular-post-grids">
								          <?php 
$recentPosts = getLatestMiniPost(4);
while ($recentPost = $recentPosts->fetch_assoc()) {
    echo '<div class="popular-post-grid">
												<div class="post-img">
													<a href="' . $mainUrl . $recentPost['url'] . '"><img src="' . $mainUrl . $recentPost['profile_image'] . '" alt="" /></a>
												</div>
												<div class="post-text">
													<a class="pp-title" href="' . $mainUrl . $recentPost['url'] . '">' . $recentPost['title'] . '</a>
													<p>' . $recentPost['date_added'] . '</p>
												</div>
												<div class="clearfix"></div>
											      </div>';
}
?>