<?php $args = array('showposts' => '8', 'post_type' => 'portfolio'); query_posts($args); ?> <!-- Portfolio Section --> <section id="portfolio" class="cbp-so-section" style="<?php custom_bg_section('portfolio_background_settings'); ?> " > <div class="container cbp-so-side cbp-so-side-top"> <?php if (function_exists('ot_get_option')) { $portfolio_title = ot_get_option('portfolio_title'); } ?> <h1><?php echo $portfolio_title; ?> </h1> <?php $categories = get_terms('portfoliocats', array('hide_empty' => true)); ?> <ul class="cat-list"> <li class="filter btn btn-outline-white btn-small" data-filter="all" >All</li> <?php foreach ($categories as $category) { $slug = $category->slug;
} else { $response = '<p class="error">' . $message_unsent . '</p>'; } } } } } else { if ($_POST['submitted']) { $response = '<p class="error">' . $missing_content . '</p>'; } } ?> <!-- Contact Section --> <section id="contact" class="cbp-so-section" style="<?php custom_bg_section('contact_background_settings'); ?> "> <div class="container cbp-so-side cbp-so-side-top"> <h1><?php echo $contact_title; ?> </h1> <?php echo $contact_content; ?> <div class="row"> <div class="col-sm-2 col-sm-offset-3"> <div class="icon"> <i class="fa fa-map-marker fa-2x"></i>
<!-- Footer --> <footer class="footer" style="<?php custom_bg_section('footer_background_settings'); ?> "> <div class="container"> <?php if (function_exists('ot_get_option') && ot_get_option('footer_text') != '') { $footer_text = ot_get_option('footer_text'); ?> <p><?php echo $footer_text; ?> </p> <?php } ?> </div> </footer> <div class="scrolltotop"> <i class="fa fa-chevron-up"></i> </div> <!-- End of Footer --> <!-- Javascript files --> <!-- Placed at the end of the document so the pages load faster --> <?php wp_footer();
<?php $args = array('post_type' => 'testimonial'); query_posts($args); ?> <!-- Testimonials Section --> <section id="testimonials" class="cbp-so-section" style="<?php custom_bg_section('testimonials_background_settings'); ?> " > <div class="container cbp-so-side cbp-so-side-top"> <?php if (function_exists('ot_get_option')) { $testimonials_title = ot_get_option('testimonials_title'); } ?> <h1><?php echo $testimonials_title; ?> </h1> <div class="testimonials"> <div id="da-slider" class="da-slider"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php
<!-- About Section --> <section id="about" class="cbp-so-section" style="<?php custom_bg_section('about_background_settings'); ?> "> <div class="container cbp-so-side cbp-so-side-top"> <?php if (function_exists('ot_get_option')) { $about_title = ot_get_option('about_title'); if ($about_title != "") { echo '<h1>' . $about_title . '</h1>'; } } ?> <div class="row"> <?php if (function_exists('ot_get_option')) { $about_images = ot_get_option('about_images', array()); $count_images = count($about_images); $image_class = "col-sm-2 "; if ($count_images == 1) { $image_class_offset = "col-sm-offset-5"; } else { if ($count_images == 2) { $image_class_offset = "col-sm-offset-4"; } else { if ($count_images == 3) { $image_class_offset = "col-sm-offset-3";
<?php $args = array('showposts' => '4', 'post_type' => 'post'); query_posts($args); ?> <!-- Blog Section --> <section id="blog" class="cbp-so-section" style="<?php custom_bg_section('blog_background_settings'); ?> "> <div class="container cbp-so-side cbp-so-side-top"> <?php if (function_exists('ot_get_option')) { $blog_title = ot_get_option('blog_title'); } ?> <h1><?php echo $blog_title; ?> </h1> <ul class="row blog-row"> <?php if (have_posts()) { while (have_posts()) { the_post(); ?> <?php $title = str_ireplace('"', '', trim(get_the_title()));
<!-- Services Section --> <section id="services" class="cbp-so-section" style="<?php custom_bg_section('services_background_settings'); ?> "> <div class="container cbp-so-side cbp-so-side-top"> <?php if (function_exists('ot_get_option')) { $portfolio_title = ot_get_option('services_title'); } ?> <h1><?php echo $portfolio_title; ?> </h1> <?php if (function_exists('ot_get_option')) { $services_ID = ot_get_option('services_page'); $post = get_post($services_ID); $content = $post->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; } ?> </div> </section> <!-- End of Services Section -->
<!-- Welcome Screen --> <section class="jumbotron" id="header" style="<?php custom_bg_section('welcome_screen_settings'); ?> " > <div class="container"> <div class="row"> <div class="col-md-8 col-md-offset-2"> <div class="main-photo" id="header-photo"> <?php if (function_exists('ot_get_option') && ot_get_option('welcome_logo') != '') { $welcome_logo = ot_get_option('welcome_logo'); ?> <figure class="round-outline"> <img class="round-photo" src="<?php echo $welcome_logo; ?> " alt="<?php bloginfo('name'); ?> " title="<?php bloginfo('name'); ?> "> </figure> <?php } ?> </div> <h1> <?php