function get_simple_section($slug, $args = array()) { $class = "page-section section-{$slug}"; if (isset($args['class'])) { $class .= ' ' . $args['class']; } $section = get_simple_post($slug); $html = '<section class="' . $class . '" id="' . $slug . '-' . $section->ID . '" >'; $html .= '<div class="container">'; $html .= get_vc_custom_css($section->ID); $html .= apply_filters('the_content', $section->post_content); $html .= bones_get_edit_link($section->ID); $html .= '</div>'; $html .= '</section>'; return $html; }
?> </div> <div class="col-sm-4 col-md-3"> <?php include '_partial-latest-events.php'; ?> </div> </div> </div> </section> <section id="section-club-kit" class="page-section section-club-kit"> <?php $section = get_simple_post('club-kit'); ?> <?php echo get_vc_custom_css($section->ID); ?> <div class="container"> <div class="row"> <div class="col-sm-9"> <?php echo apply_filters('the_content', $section->post_content); ?> <?php echo bones_get_edit_link($section->ID); ?>
<footer id="footer" role="contentinfo" itemscope itemtype="http://schema.org/WPFooter"> <div id="inner-footer" class="container"> <?php $section = get_simple_post('footer-info'); ?> <?php echo get_vc_custom_css($section->ID); ?> <?php echo apply_filters('the_content', $section->post_content); ?> <?php echo bones_get_edit_link($section->ID); ?> </div> </footer> </div> <?php // all js scripts are loaded in library/bones.php ?> <?php wp_footer(); ?> <div style="display:none;"> <div id="loaded-event-placeholder"></div> <div id="loaded-item-placeholder"></div>