// } // } // return FALSE; // } // // // // // if(!searchForKey('id',$user_id, $user)) // { // array_push($user,$array); // update_post_meta($_REQUEST['id'], 'Show Interest', json_encode($user)); // } // // // // // // foreach($user as $value){ // // echo $value['time']."--"; // echo $value['id']; // echo "<br>"; // // } // //die; $timezone = +5.5; $date = gmdate("F d, Y H:i:s", time() + 3600 * ($timezone + date("I"))); setPostInterests($_REQUEST['id'], $date);
<?php while (have_posts()) { the_post(); $timezone = +5.5; $date = gmdate("F d, Y H:i:s", time() + 3600 * ($timezone + date("I"))); setPostViews(get_the_ID(), $date); ?> <div class="column dt-sc-one-fourth first" > <div class="id_logo"> <!-- <img src="http://ivycamp.cruxservers.in/wp-content/themes/twentyfifteen/images/investor_logo.png">--> <img src="http://ivycamp.cruxservers.in/wp-content/uploads/2015/04/institute-127x150.jpg"> </div> <!-- <div class="column dt-sc-one-half first"> <a href="javascript:void(0);" onclick="<?php setPostInterests(get_the_ID()); ?> " class="dt-sc-button btn"> <i class="fa fa-check"></i>Show Interest</a> </div>--> <div class="btn-detail"> <a href="#askque" class="dt-sc-button btn">Ask Question</a> </div> <!-- <div class="column dt-sc-one-half"><a href="javascript:void(0);" onclick="<?php setPostLikes(get_the_ID()); ?> " class="dt-sc-button btn"> <i class="fa fa-question-circle"></i>Value Added</a> </div>--> </div> <div class="column dt-sc-three-fourth"> <h4 class="id_title"><?php if (get_post_meta(get_the_ID(), 'Alumni of Institute', true)) { echo get_the_category_by_ID(get_post_meta(get_the_ID(), 'Alumni of Institute', true)); } else {