}
get_header();
get_template_part("template-parts/breadcrumbs");
?>

	<div id="primary" class="content-area <?php 
echo $page_type;
?>
">
		<main id="main" class="site-main" role="main">

			<?php 
while (have_posts()) {
    the_post();
    if (function_exists(set_post_views)) {
        set_post_views(get_the_ID());
    }
    if ($page_type == 'content') {
        if (wp_get_post_parent_id(get_the_ID()) == 0) {
            get_template_part('template-parts/content', 'user-guide-home');
        } else {
            get_template_part('template-parts/content', 'user-guide-content');
        }
    } else {
        if ($page_type == 'faq') {
            get_template_part('template-parts/content', 'faq');
        } else {
            if ($page_type == 'tutorial') {
                get_template_part('template-parts/content', 'tutorial');
            } else {
                if (!get_post_meta(easydita_knowledge_portal_get_root_map_id(), 'page_type')) {
Beispiel #2
0
    echo get_current_user_id();
    ?>
">
                      <input type="hidden" name="send_like" value="send-like">
                      <a href="#" class="like_request"><i class="fa fa-heart"></i></a>
                  </div>
              </form>
          <?php 
} else {
    ?>
              <!-- <i class="fa fa-heart" style="color: #f24949;"></i> -->
          <?php 
}
?>
          <?php 
set_post_views($post->ID);
echo get_post_views($post->ID);
?>
				</div>
				<div class="clear"></div>
					</div>
				</div>	
			</div>
		</div>


			<!-- RELATED POSTS -->

			<div class="curator-detail-wrap article-detail-wrap related-posts">

				<div class="detail-title">
function set_post_views_ajax()
{
    $theID = $_POST['id'];
    set_post_views($theID);
    wp_die();
}