Ejemplo n.º 1
0
}
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
get_footer();
Ejemplo n.º 2
0
<?php

/**
 * The template for displaying 404 pages (not found)
 *
 * @package WordPress
 * @subpackage Twenty_Fifteen
 * @since Twenty Fifteen 1.0
 */
get_header();
echo artempol_container(array('tag' => 'p', 'content' => __('It looks like nothing was found at this location.', 'artempol')));
get_footer();
Ejemplo n.º 3
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();
Ejemplo n.º 4
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();
Ejemplo n.º 5
0
    ?>
" class="icon icon-logout"><?php 
    esc_html_e('Logout', 'artempol');
    ?>
</a>
						<?php 
}
?>
					</div>
				</div>
			</div>
		</div>			
		
		<div class="nav">
			<?php 
echo artempol_container(array(), 'line');
?>
		

			<div class="content_wrap clearfix">
				<div class="logo left">
					<p class="iconed textcolor_2"><span>
					
					<?php 
if (!is_front_page()) {
    ?>
 
						<a href="<?php 
    echo home_url();
    ?>
"><?php 
Ejemplo n.º 6
0
<?php

get_header();
if (have_posts()) {
    if (is_home() && !is_front_page()) {
        if ($title = get_the_title()) {
            $title = artempol_container(array('tag' => 'h1', 'content' => $title, 'class' => 'page-title screen-reader-text'));
            $title = artempol_container(array('tag' => 'header', 'content' => $title));
            echo $title;
        }
    }
    // Start the loop.
    while (have_posts()) {
        the_post();
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content', get_post_format());
        // End the loop.
    }
    // Previous/next page navigation.
    the_posts_pagination(array('prev_text' => __('Previous page', 'artempol'), 'next_text' => __('Next page', 'artempol'), 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __('Page', 'artempol') . ' </span>'));
} else {
    get_template_part('content', 'none');
}
get_footer();