<?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); ?> </div> <div class="col-sm-3 cta-badge-wrap"> <div class="cta-badge has-ribbon">
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; }