Пример #1
0
				<a href="<?php 
        echo esc_url(siteorigin_setting('front_page_cta_button_url'));
        ?>
"><?php 
        echo esc_html(siteorigin_setting('front_page_cta_button_text'));
        ?>
</a>
			<?php 
    }
    ?>
		</div>
	</div>
<?php 
}
?>

<?php 
if (siteorigin_setting('type_feature')) {
    get_template_part('features');
}
if (siteorigin_setting('type_project')) {
    pitch_display_loop(siteorigin_setting('front_page_home_title_latest_projects', __('Latest Projects', 'pitch')), array('posts_per_page' => 10, 'post_type' => 'project', 'order_by' => 'menu_order', 'order' => 'ASC'), get_post_type_archive_link('project'), 'home');
}
if (siteorigin_setting('front_page_home_blog')) {
    pitch_display_loop(siteorigin_setting('front_page_home_title_blog', __('From Our Blog', 'pitch')), array('posts_per_page' => 10, 'post_type' => 'post'), get_post_type_archive_link('post'), 'home');
}
if (siteorigin_setting('type_client')) {
    pitch_display_loop(siteorigin_setting('front_page_home_title_clients', __('Our Clients', 'pitch')), array('posts_per_page' => 10, 'post_type' => 'client', 'order_by' => 'menu_order', 'order' => 'ASC'), get_post_type_archive_link('post'), 'home');
}
dynamic_sidebar('home_right_1');
get_footer();
Пример #2
0
if (!empty($post->post_content)) {
    ?>
			<div class="content entry-content"><?php 
    the_content();
    ?>
</div>
			<div class="separator light"></div>
			<?php 
}
?>

		</div>

		<div class="clear"></div>

		<?php 
if (!empty($main_skill)) {
    ?>
		<div id="related-projects">
			<?php 
    pitch_display_loop(siteorigin_setting('project_related_title', __('Related Projects', 'pitch')), array('posts_per_page' => 10, 'post_type' => 'project', 'post__not_in' => array($post->ID), 'skill' => $main_skill->slug), 'related');
    ?>
		</div>
		<?php 
}
?>
	</div>
</div>

<?php 
get_footer();