<?php
/* D5 CORPORATE Theme's General Page to display all Pages
	Copyright: 2012-2017, D5 Creation, www.d5creation.com
	Based on the Simplest D5 Framework for WordPress
	Since D5 CORPORATE 1.0
*/

 get_header(); ?>

	<div id="content">

		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
		<h1 class="page-title"><?php the_title(); ?></h1>
			<div class="content-ver-sep"> </div>
            <div class="entrytext">
 <?php the_post_thumbnail('thumbnail'); ?>
 <?php the_content('<p class="read-more">'. __('Read the Rest...', 'd5-corporate-lite') .'</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

			</div>
		</div>
		<?php endwhile; ?><div class="clear"> </div>
	<?php edit_post_link('Edit This Entry', '<p>', '</p>'); ?>
	<?php comments_template('', true); ?>
	<?php else: ?>
		<h1 class="page-title"><?php echo __('Not Found Anything', 'd5-corporate-lite') ?></h1>
<h3 class="arc-src"><span><?php echo __('Apologies, but the page you requested could not be found. Perhaps searching will help.', 'd5-corporate-lite') ?></span></h3>
<?php get_search_form(); ?>
<p><a href="<?php echo esc_url(home_url()); ?>" title="Browse the Home Page">&laquo; <?php echo __('Or Return to the Home Page', 'd5-corporate-lite') ?></a></p><br /><br />

<h2 class="post-title-color"><?php echo __('You can also Visit the Following. These are the Featured Contents', 'd5-corporate-lite') ?></h2>
<div class="content-ver-sep"></div><br />
<?php get_template_part( 'featured-box' ); ?>
	<?php endif; ?>
	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>