• File: index.php
  • Full Path: /home/romi/public_html/wp-content-20260417071838/themes/career-portfolio/index.php
  • Date Modified: 04/23/2023 12:07 AM
  • File size: 2.13 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * The main template file
 *
 * This is the most generic template file in a WordPress theme
 * and one of the two required files for a theme (the other being style.css).
 * It is used to display a page when nothing more specific matches a query.
 * E.g., it puts together the home page when no home.php file exists.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Career_Portfolio
 */

get_header();
?>
<div class="primary-secondary-wrap">
	<div class="container">
		<div id="primary" class="content-area">
			<main id="main" class="site-main">
				<section class="section blog-article">
					<div class="section-wrap">
						<?php if ( have_posts() ) : ?>
							<header class="entry-header heading">
								<h2 class="page-title entry-title screen-reader-text"><?php single_post_title(); ?></h2>
							</header>								
							<div class="section-content-wrap" id="section-content-wrap">
								<?php

								the_archive_description( '<h2 class="entry-title">', '</h2>' );
								?>
								<div class="section-inner-wrap" id="section-inner-wrap">
									<?php 
									/* Start the Loop */
									while ( have_posts() ) :
										the_post();

										/*
										 * Include the Post-Type-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 Type name) and that will be used instead.
										 */
										get_template_part( 'template-parts/content', get_post_type() );

									endwhile;

										do_action( 'career_portfolio_action_navigation' );
									
									?>
								</div>
							</div>
						<?php else :
							get_template_part( 'template-parts/content', 'none' );
						endif;	
						?>
					</div>
				</section>				

			</main><!-- #main -->
		</div><!-- #primary -->
		<?php
		/**
		 *
		 * Hook - career_portfolio_action_sidebar_layout
		 *
		 * @hooked -career_portfolio_sidebar_layout -10
		*/
		do_action( 'career_portfolio_action_sidebar_layout' );
		?>
	</div>
</div>
<?php
get_footer();