예제 #1
0
<?php

/*
Template name: Reference
*/
if (defined('WPDDL_VERSION')) {
    get_header('layouts', 'page-default');
    toolset_assigned_message('layout-post', 'page-default');
    the_ddlayout('page-default');
    // Loads 'page-default' layout by default
    get_footer('layouts');
} else {
    get_header();
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $att_image = wp_get_attachment_image_src($post->id, "large");
            ?>
		<h1 class="post-title"><?php 
            the_title();
            ?>
</h1>
		<nav class="pagination">
			<?php 
            previous_image_link(false, '<span class="wpv-filter-previous-link">&laquo; ' . __('Previous Image', "toolset_starter") . '</span>');
            ?>
			<?php 
            next_image_link(false, '<span class="wpv-filter-next-link"> ' . __('Next Image', "toolset_starter") . ' &raquo;</span>');
            ?>
		</nav>
예제 #2
0
파일: index.php 프로젝트: rku4er/kie-wp
<?php

get_template_part('templates/page', 'header');
?>

<?php 
//if (!have_posts()) :
?>
  <?php 
//printf('<div class="alert alert-warning">%s</div>', __('Sorry, no results were found.', 'sage'));
?>
  <?php 
//get_search_form();
//endif;
?>

<?php 
//while (have_posts()) : the_post();
?>
  <?php 
//get_template_part('templates/content', get_post_type() != 'post' ? get_post_type() : get_post_format());
//endwhile;
?>

<?php 
the_ddlayout();
?>

<?php 
the_posts_navigation();
예제 #3
0
<?php

if (defined('WPDDL_VERSION')) {
    get_header('layouts');
    toolset_assigned_message('layout-404', 'error-404');
    the_ddlayout('error-404');
    // Loads 'error-404' layout by default
    get_footer('layouts');
} else {
    get_header();
    ?>
    <div class="text-center">
	    <h1 class="page-title"><?php 
    _e('Error 404', "toolset_starter");
    ?>
</h1>

	    <h2 style="margin: 0 0 50px 0"><?php 
    _e('Unfortunately the page you were looking for does not exist', "toolset_starter");
    ?>
</h2>

	    <p><?php 
    _e("Don't worry! You can always", "toolset_starter");
    ?>
: <a
			    href="<?php 
    echo esc_url(home_url());
    ?>
"
			    title="<?php 
예제 #4
0
<?php

if (defined('WPDDL_VERSION')) {
    get_header('layouts');
    toolset_assigned_message('layout-archive', 'archive-default');
    the_ddlayout('archive-default');
    // Loads 'page-default' layout by default
    get_footer('layouts');
} else {
    get_header();
    toolset_assigned_message('views-archive');
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
       <article <?php 
            post_class("post-archive");
            ?>
>
	        <h2 class="post-archive-title"><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title_attribute();
            ?>
"><?php 
            the_title();
            ?>
</a></h2>
		    <div class="post-content"><?php 
            the_excerpt();
예제 #5
0
    }
}
if (function_exists('the_ddlayout') && defined('WC_VIEWS_ARCHIVES_LAYOUTS')) {
    /** Layouts plugin activated, use Layouts */
    get_header('layouts');
} else {
    /** Otherwise use the usual shop */
    get_header('shop');
}
?>
	<?php 
if (function_exists('the_ddlayout') && defined('WC_VIEWS_ARCHIVES_LAYOUTS')) {
    ?>

		<?php 
    the_ddlayout('home', array('post-loop-callback' => 'woocommerce_default_index_loop'));
    ?>
	
	<?php 
} else {
    ?>
	
			<?php 
    /**
     * woocommerce_before_main_content hook
     *
     * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
     * @hooked woocommerce_breadcrumb - 20
     */
    do_action('woocommerce_before_main_content');
    ?>