Exemple #1
0
        $children = artempol_container(array('tag' => 'ul', 'content' => $children_list));
        echo $children;
    }
    if ($content = apply_filters('the_content', get_the_content())) {
        $content = artempol_container(array('tag' => 'div', 'content' => $content, 'class' => 'content'));
        echo $content;
    }
    // Departments pages
    if ($term = get_term_by('slug', $post->post_name, 'department')) {
        $doctors = '';
        $questions = '';
        $col_1 = '';
        $col_2 = '';
        $dep_content = '';
        $questions_heading = '';
        $doctors .= artempol_get_posts('doctor', array('post_type' => 'doctor', 'tax_query' => array(array('taxonomy' => 'department', 'field' => 'slug', 'terms' => $term->slug))), array('image', 'title', 'descriprion', 'content'));
        $questions .= artempol_get_posts('question', array('post_type' => 'question', 'tax_query' => array(array('taxonomy' => 'department', 'field' => 'slug', 'terms' => $term->slug))), array('title', 'description', 'content', 'edit_link'));
        if ($questions) {
            $questions = artempol_container(array('tag' => 'h2', 'content' => __('Questions', 'artempol'))) . $questions;
        }
        $col_1 = artempol_container(array('tag' => 'div', 'content' => $doctors . $questions, 'class' => 'column col_2_3'));
        if ($question_form = do_shortcode('[contact-form-7 id="1067" title="Question"]')) {
            $question_form_title = artempol_container(array('tag' => 'h2', 'content' => __('Consultation', 'artempol'), 'class' => 'form_title textwhite padding_tb_20 icon-user-md'));
            $col_2 = artempol_container(array('tag' => 'div', 'content' => $question_form_title . $question_form, 'class' => 'column col_1_3 question_form colored color_2'));
        }
        $dep_content = artempol_container(array('tag' => 'div', 'content' => $col_1 . $col_2, 'class' => 'department clearfix'));
        echo $dep_content;
    }
    // End the loop.
}
get_footer();
Exemple #2
0
    $achievements .= artempol_get_post($post, 'achievements', array('achievement_image', 'achievement_url', 'achievement_margin'));
}
if ($achievements) {
    $achievements = artempol_container(array('tag' => 'ul', 'content' => $achievements, 'class' => 'slides'));
    $achievements = artempol_container(array('tag' => 'div', 'content' => $achievements, 'class' => 'slider-achieve flexslider wow fadeInUp'));
    $achievements = artempol_container(array(), 'line') . $achievements;
    echo $achievements;
}
// Services
$services = get_post(get_theme_mod('services-page'));
if ($services) {
    $services = artempol_get_post($services, 'services', array('title', 'content'));
    echo $services;
}
// Team
$doctors = artempol_get_posts('team', array('post_type' => 'doctor'), array('url', 'image', 'title', 'description'));
if ($doctors) {
    $doctors = artempol_container(array('tag' => 'div', 'content' => $doctors, 'class' => 'content_wrap clearfix padding_tb_10 wow fadeInUp'), 'slider-team');
    $headings = '';
    $headings .= artempol_container(array('tag' => 'h2', 'content' => __('Our team', 'artempol')));
    $headings .= artempol_container(array('tag' => 'p', 'content' => __('Because we care!', 'artempol')));
    $doctors = artempol_container(array('tag' => 'div', 'content' => $headings . $doctors, 'class' => 'team wow fadeInUp'));
    $doctors = artempol_container(array(), 'line') . $doctors;
    echo $doctors;
}
// Banners
$banners = get_posts(array('category_name' => 'banners'));
if (!empty($banners)) {
    echo artempol_get_post($banners[0], 'banner', array('title', 'content'));
}
// Footer
Exemple #3
0
    $services = artempol_get_post($services, 'services', array('title', 'content'));
    echo $services;
}
// Team
$doctors = artempol_get_posts('team', array('post_type' => 'doctor'), array('url', 'image', 'title', 'description'));
if ($doctors) {
    $doctors = artempol_container(array('tag' => 'div', 'content' => $doctors, 'class' => 'content_wrap clearfix padding_tb_10 wow fadeInUp'), 'slider-team');
    $headings = '';
    $headings .= artempol_container(array('tag' => 'h2', 'content' => __('Our team', 'artempol')));
    $headings .= artempol_container(array('tag' => 'p', 'content' => __('Because we care!', 'artempol')));
    $doctors = artempol_container(array('tag' => 'div', 'content' => $headings . $doctors, 'class' => 'team wow fadeInUp'));
    $doctors = artempol_container(array(), 'line') . $doctors;
    echo $doctors;
}
// News
$news = artempol_get_posts('news-list', array('category_name' => 'news', 'posts_per_page' => get_theme_mod('news-main-number', 2)), array('image', 'title', 'url', 'date', 'description'));
if ($news) {
    $heading = artempol_container(array('tag' => 'h2', 'content' => __('News', 'artempol')));
    $news = artempol_container(array('tag' => 'div', 'content' => $heading . $news, 'class' => 'content_wrap news padding_tb_20 wow fadeInUp'));
    echo $news;
}
// Banners
$banners = get_posts(array('category' => 'banners'));
if (!empty($banners)) {
    $banners = artempol_get_post($banners[0], 'banner', array('title', 'content'));
}
if ($banners) {
    echo $banners;
}
// Footer
get_footer();