<?php 
            echo get_the_post_thumbnail($id, 'thumbnail');
            ?>
											</a>
										</div>

										<div class="post--archive__content">
											<?php 
            the_title('<h4 class="post--archive__title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h4>');
            ?>
										</div>
									</li>
									<?php 
        }
        wp_reset_postdata();
        echo '</ul>';
    } else {
        echo fo_empty_state();
    }
    ?>
			    </div>
			</div>
		<?php 
}
?>

	</main>

<?php 
get_sidebar();
get_footer();
Пример #2
0
 /**
  *
  *	Assets
  *
  *	@since 1.0
  */
 function scripts()
 {
     wp_enqueue_script('jquery-form');
     wp_enqueue_style('fo-style', FO_THEME_URL . '/assets/css/style.css');
     wp_enqueue_script('fo-scripts', FO_THEME_URL . '/assets/js/scripts.js', array('jquery'), FO_THEME_VERSION, true);
     $location = fo_get_hike_gps_location();
     $lat = isset($location['0']) ? $location['0'] : false;
     $long = isset($location['1']) ? $location['1'] : false;
     $nonces = array('bookmark' => wp_create_nonce('process_bookmark'), 'delete_bookmark' => wp_create_nonce('process_delete_bookmarks'));
     wp_localize_script('fo-scripts', 'fo_local_vars', array('loggedin' => is_user_logged_in() ? 'true' : false, 'ajaxurl' => admin_url('admin-ajax.php'), 'nonces' => $nonces, 'dashboard_url' => site_url('dashboard'), 'hike_lat' => $lat, 'hike_long' => $long, 'favs_empty_state' => fo_empty_state('favorites', true)));
     if (is_singular() && comments_open() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
 }