function wpse_setup_theme() {
add_image_size('glm-block-image', 290, 190,true);
}
-
+// add_image_size('subcat_image', 250,125,true);
add_action( 'after_setup_theme', 'wpse_setup_theme' );
function mytheme_search_loop() {
while ( have_posts() ) : the_post(); ?>
include "sections/search.php";
}
if (is_page() && !is_front_page()) {
- include "sections/interior-page.php";
+ $template = get_page_template_slug( $post->ID );
+ if ( $template == 'landingpage-template.php' ) {
+ include "sections/landing-page.php";
+ } else {
+ include "sections/interior-page.php";
+ }
}
include "sections/footer.php";
// include "sections/copyright.php";
<script charset="utf-8" type="text/javascript" src="//ws.sharethis.com/button/buttons.js"></script>
<script charset="utf-8" type="text/javascript">stLight.options({"publisher":"wp.c3d3647e-de70-4780-b71d-6b739fad685a"});var st_type="wordpress4.3.1";</script>
</body>
-</html>
\ No newline at end of file
+</html>
--- /dev/null
+<div id="header-separator" class="header-separator-interior">
+ <h1><?php
+ if ( is_member() ) {
+ echo get_member_name();
+ } else if ( glm_is_event_detail() ) {
+ if (glm_is_event_detail()) {
+ echo glm_get_event_name();
+ }
+ } else {
+ echo get_the_title();
+ }
+ ?>
+ </h1>
+</div>
+<main class="page-inside">
+ <div id="content-wrapper">
+ <div class="row">
+
+ <?php if(function_exists('bcn_display') && !is_front_page())
+ {
+ echo "<div class=\"breadcrumbs small-12 columns\">";
+ echo '<span class="st_sharethis" st_title="'. get_the_title().'" st_url="'. get_the_permalink() .'"></span>';
+ bcn_display();
+ echo "</div>";
+ }
+ ?>
+ <div class="row">
+ <?php get_template_part('parts/main-content');?>
+ </div>
+
+ <div class="glm-blocks-container row">
+ <?php
+ global $post;
+ $args = array(
+ 'post_type' => 'page',
+ 'posts_per_page' => -1,
+ 'post_parent' => $post->ID,
+ 'order' => 'ASC',
+ 'orderby' => 'menu_order'
+ );
+
+ $post_parent = $post->ID;
+ $parent = new WP_Query( $args );
+ ?>
+ <?php if ( $parent->have_posts() ) : ?>
+ <?php while ( $parent->have_posts() ) : $parent->the_post(); ?>
+ <?php $status = get_post_status(); ?>
+ <?php if ($status !== 'private' && $status !== 'draft'){ ?>
+ <?php $id = get_the_ID();
+ if(get_post_thumbnail_id($id)){
+ $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($id), 'glm-block-image');
+ } else {
+ $image_data = wp_get_attachment_image_src(get_post_thumbnail_id($post_parent), 'glm-block-image');
+ }
+ ?>
+
+ <div id="<?php the_ID(); ?>" class="text-center small-12 medium-4 columns large-text-left glm-block">
+ <a href="<?php echo get_permalink($id); ?>">
+ <img class="child-image" src="<?php echo $image_data[0]; ?>" />
+ </a>
+ <a class="glm-block-title" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><h1><?php the_title(); ?></h1></a>
+ </div>
+ <?php } ?>
+ <?php endwhile; ?>
+
+ <?php endif; wp_reset_query(); ?>
+ </div>
+
+ </div>
+ </div>
+</main>