Server : LiteSpeed
System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
User : nandedex ( 1060)
PHP Version : 8.1.33
Disable Function : NONE
Directory :  /home/nandedex/www/s.nandedexpress.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]


Current File : /home/nandedex/www/s.nandedexpress.com/template-parts.zip
PK+�[��{���content.phpnu�[���<?php

/**
 * The template used for displaying page content in archive pages.
 *
 * @package ColorMag
 *
 * @since   ColorMag 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$featured_image_size   = 'colormag-featured-image';
$class_name_layout_two = '';
$archive_search_layout = get_theme_mod( 'colormag_blog_layout', 'layout-1' );

$image_popup_id  = get_post_thumbnail_id();
$image_popup_url = wp_get_attachment_url( $image_popup_id );

if ( ( 'layout-1' === get_theme_mod( 'colormag_blog_layout', 'layout-1' ) && 'style-1' === get_theme_mod( 'colormag_blog_layout_1_style', 'style-1' ) ) || ( 'layout-2' === get_theme_mod( 'colormag_blog_layout', 'layout-1' ) && 'style-2' === get_theme_mod( 'colormag_blog_layout_2_style', 'style-1' ) ) ) {
	$featured_image_size = 'colormag-featured-post-medium';
}

?>

<article id="post-<?php the_ID(); ?>" <?php post_class( array( $class_name_layout_two ) ); ?> <?php
echo colormag_schema_markup( 'entry' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped 
?>
>
	<?php
	/**
	 * Hook: colormag_before_post_content.
	 */
	do_action( 'colormag_before_post_content' );

	/**
	 * Hook: colormag_before_posts_loop.
	 */
	do_action( 'colormag_before_posts_loop' );
	?>

	<?php
	if ( ! has_post_format( array( 'gallery' ) ) ) :

		if ( has_post_thumbnail() ) :
			?>
			<div class="cm-featured-image">

				<?php if ( 1 != get_theme_mod( 'colormag_enable_lightbox', 0 ) ) : ?>
					<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
				<?php endif; ?>

				<?php if ( get_theme_mod( 'colormag_enable_lightbox', 0 ) && is_single() ) : ?>
					<a href="<?php echo esc_url( $image_popup_url ); ?>" class="image-popup">
					<?php the_post_thumbnail( 'colormag-featured-image' ); ?>
				<?php elseif ( get_theme_mod( 'colormag_enable_lightbox_blog', 0 ) && ( is_archive() || is_front_page() || is_home() ) ) : ?>
					<a href="<?php echo esc_url( $image_popup_url ); ?>" class="image-popup-blog">
					<?php the_post_thumbnail( 'colormag-featured-image' ); ?>
				<?php else : ?>
					<?php the_post_thumbnail( $featured_image_size ); ?>

						<?php
						if ( has_post_format( 'video' ) ) :
							?>
							<span class="play-button-wrapper">
								<i class="fa fa-play" aria-hidden="true"></i>
							</span>
							<?php
						endif;
						?>
					<?php endif; ?>
					</a>
			</div>

			<?php if ( 1 == get_theme_mod( 'colormag_enable_featured_image_caption', 0 ) && get_post( get_post_thumbnail_id() )->post_excerpt ) : ?>

				<span class="featured-image-caption">
					<?php echo wp_kses_post( get_post( get_post_thumbnail_id() )->post_excerpt ); ?>
				</span>
				<?php
			endif;
		endif;

	endif;
	?>

	<?php
	$content_orders = get_theme_mod(
		'colormag_blog_post_elements',
		array(
			'post_format',
			'category',
			'title',
			'meta',
			'content',
		)
	);
	?>

	<div class="cm-post-content">
		<?php
		foreach ( $content_orders as $key => $content_order ) {

			if ( 'post_format' === $content_order ) {

				if ( get_post_format() ) :
					if ( ! has_post_format( 'video' ) ) :
						get_template_part( 'inc/post-formats' );
					endif;


					if ( has_post_format( 'video' ) && ! ( has_post_thumbnail() ) ) :

						$video_post_url = get_post_meta( $post->ID, 'video_url', true );

						if ( ! empty( $video_post_url ) ) :
							?>
							<div class="fitvids-video">
								<?php
								$embed_code = wp_oembed_get( $video_post_url );

								echo $embed_code;
								?>
							</div>
							<?php
						endif;
					endif;

				endif;
			} elseif ( 'category' === $content_order ) {

				colormag_colored_category();
			} elseif ( 'title' === $content_order ) {

				get_template_part( 'template-parts/entry/entry', 'header' );
			} elseif ( 'meta' === $content_order ) {

				colormag_entry_meta();
			} elseif ( 'content' === $content_order ) {

				get_template_part( 'template-parts/entry/entry', 'summary' );
			}
		}
		?>

	</div>

	<?php
	/**
	 * Hook: colormag_after_posts_loop.
	 */
	do_action( 'colormag_after_posts_loop' );

	/**
	 * Hook: colormag_after_post_content.
	 */
	do_action( 'colormag_after_post_content' );
	?>
</article>
PK+�[֟��
�
content-page.phpnu�[���<?php
/**
 * The template used for displaying page content in page.php
 *
 * @package ColorMag
 *
 * @since   ColorMag 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?><?php echo colormag_schema_markup( 'entry' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
	<?php
	/**
	 * Hook: colormag_before_post_content.
	 */
	do_action( 'colormag_before_post_content' );

	/**
	 * Hook: colormag_before_single_page_loop.
	 */
	do_action( 'colormag_before_single_page_loop' );
	?>

	<?php if ( 1 == get_theme_mod( 'colormag_enable_page_featured_image', 0 ) && has_post_thumbnail() ) : ?>
		<div class="cm-featured-image"<?php echo colormag_schema_markup( 'image' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
			<?php
			the_post_thumbnail( 'colormag-featured-image' );

			if ( 1 == get_theme_mod( 'colormag_enable_schema_markup', '' ) ) :
				?>
				<meta itemprop="url" content="<?php echo esc_url( get_the_post_thumbnail_url( $post->ID, 'full' ) ); ?>">
			<?php endif; ?>
		</div>
	<?php endif; ?>

	<?php
	if ( ( ! is_page_template( 'page-templates/page-builder.php' ) ) ) {

		$markup = is_front_page() ? 'h2' : 'h1';
		?>
		<header class="cm-entry-header">
			<<?php echo esc_attr( $markup ); ?> class="cm-entry-title"<?php echo colormag_schema_markup( 'entry_title' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
				<?php the_title(); ?>
			</<?php echo esc_attr( $markup ); ?> >
		</header>

		<?php
	}
	?>

	<div class="cm-entry-summary"<?php echo colormag_schema_markup( 'entry_content' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
		<?php
		the_content();

		wp_link_pages(
			array(
				'before'      => '<div style="clear: both;"></div><div class="link-pagination">' . esc_html__( 'Pages:', 'colormag' ),
				'after'       => '</div>',
				'link_before' => '<span>',
				'link_after'  => '</span>',
			)
		);
		?>
	</div>

	<div class="cm-entry-footer">

	<div class="cm-entry-footer">
		<?php
		$meta_orders = get_theme_mod( 'colormag_post_meta_structure' );
		// Edit button remove option add.
		if ( is_array( $meta_orders ) ) {
			foreach ( $meta_orders as $key => $meta_order ) {
				if ( 'edit-button' === $meta_order ) {
					edit_post_link( __( 'Edit', 'colormag' ), '<span class="cm-edit-link">' . colormag_get_icon( 'edit', false ) . ' ', '</span>' );
				}
			}
		}
		?>
	</div>

	<?php
	/**
	 * Hook: colormag_after_single_page_loop.
	 */
	do_action( 'colormag_after_single_page_loop' );

	/**
	 * Hook: colormag_after_post_content.
	 */
	do_action( 'colormag_after_post_content' );
	?>
</article>
PK+�[0M���footer/flyout-related-posts.phpnu�[���<?php
/**
 * Flyout related posts featured display.
 *
 * @package    ThemeGrill
 * @subpackage ColorMag
 * @since      ColorMag 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$related_posts = colormag_flyout_related_post_query();

if ( $related_posts->have_posts() ) :
	?>

	<div id="related-posts-wrapper-flyout" class="related-posts-wrapper-flyout">

		<h4 class="related-posts-flyout-main-title">
			<span><?php echo esc_html( get_theme_mod( 'colormag_read_next_text', __( 'Read Next', 'colormag' ) ) ); ?></span>
			<span id="flyout-related-post-close" class="flyout-related-post-close">
				<i class="fa fa-times" aria-hidden="true"></i>
			</span>
		</h4>

		<div class="related-posts-flyout clearfix">

			<?php
			while ( $related_posts->have_posts() ) :
				$related_posts->the_post();
				?>
				<div class="single-related-posts-flyout">

					<?php if ( has_post_thumbnail() ) : ?>
						<div class="related-posts-thumbnail">
							<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
								<?php the_post_thumbnail( 'colormag-featured-post-small' ); ?>
							</a>
						</div>
					<?php endif; ?>

					<div class="cm-post-content">
						<h3 class="cm-entry-title">
							<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
								<?php the_title(); ?>
							</a>
						</h3><!--/.post-title-->

						<?php colormag_entry_meta( false ); ?>
					</div>

				</div><!--/.related-->
			<?php endwhile; ?>

		</div><!--/.post-related-->

	</div>
	<?php
endif;

// Reset postdata.
wp_reset_postdata();
PK+�[N��``entry/entry-header.phpnu�[���<?php
/**
* Template part for entry header.
*
* @link    https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package ColorMag
* @since   @TODO
*/

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
?>
	<header class="cm-entry-header">
		<?php if ( is_singular() ) : ?>
		<h1 class="cm-entry-title"<?php echo colormag_schema_markup( 'entry_title' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
			<?php the_title(); ?>
		</h1>
		<?php else : ?>
		<h2 class="cm-entry-title"<?php echo colormag_schema_markup( 'entry_title' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
			<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
				<?php echo wp_kses_post( colormag_get_the_title( get_the_title() ) ); ?>
			</a>
		</h2>
		<?php endif; ?>
	</header>
PK+�[�6����entry/entry-summary.phpnu�[���<?php
/**
 * Template part for entry header.
 *
 * @link    https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package ColorMag
 * @since   @TODO
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( is_singular() ) :
	?>

<div class="cm-entry-summary"<?php echo colormag_schema_markup( 'entry_content' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
	<?php
	the_content();

	if ( true == get_theme_mod( 'colormag_cta_enable', false ) ) {
		if ( is_page() ) {
			?>
		<a class="cm-entry-button" title="<?php the_title_attribute(); ?>"
		   href="<?php the_permalink(); ?>">
			<span><?php echo esc_html( get_theme_mod( 'colormag_read_more_text', __( 'Read More', 'colormag' ) ) ); ?></span>
		</a>
			<?php
		}
	}

	wp_link_pages(
		array(
			'before'      => '<div style="clear: both;"></div><div class="pagination clearfix">' . esc_html__( 'Pages:', 'colormag' ),
			'after'       => '</div>',
			'link_before' => '<span>',
			'link_after'  => '</span>',
		)
	);
	?>
</div>
	<?php
else :
	?>
<div class="cm-entry-summary"<?php echo colormag_schema_markup( 'entry_summary' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
	<?php
	$archive_search_layout = get_theme_mod( 'colormag_blog_layout', 'layout-1' );

	if ( 'content' === get_theme_mod( 'colormag_blog_content_excerpt_type', 'excerpt' ) && ! ( 'layout-1' === $archive_search_layout ) ) :
		the_content( '<span>' . esc_html( get_theme_mod( 'colormag_read_more_text', __( 'Read More', 'colormag' ) ) ) . '</span>' );
	else :
		?>
		<?php the_excerpt(); ?>

		<?php if ( true == get_theme_mod( 'colormag_cta_enable', true ) ) { ?>
		<a class="cm-entry-button" title="<?php the_title_attribute(); ?>"
		   href="<?php the_permalink(); ?>">
			<span><?php echo esc_html( get_theme_mod( 'colormag_read_more_text', __( 'Read More', 'colormag' ) ) ); ?></span>
		</a>
	<?php } ?>
	<?php endif; ?>
</div>

	<?php
	endif;
PK+�[�i>content-single.phpnu�[���<?php
/**
 * The template used for displaying single post content in single.php
 *
 * @package ColorMag
 *
 * @since   ColorMag 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$image_popup_id  = get_post_thumbnail_id();
$image_popup_url = wp_get_attachment_url( $image_popup_id );
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?><?php echo colormag_schema_markup( 'entry' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
	<?php
	/**
	 * Hook: colormag_before_post_content.
	 */
	do_action( 'colormag_before_post_content' );

	/**
	 * Hook: colormag_before_single_post_page_loop.
	 */
	do_action( 'colormag_before_single_post_page_loop' );
	?>

	<?php if ( 'position-1' === get_theme_mod( 'colormag_featured_image_position', 'position-2' ) ) : ?>
		<div class="single-title-above">
			<?php colormag_colored_category(); ?>

			<header class="cm-entry-header">
				<h1 class="cm-entry-title"<?php echo colormag_schema_markup( 'entry_title' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
					<?php the_title(); ?>
				</h1>
			</header>

			<?php colormag_entry_meta(); ?>
		</div>
	<?php endif; ?>

	<?php
	if ( ! has_post_format( array( 'gallery', 'video' ) ) ) :

		if ( true == get_theme_mod( 'colormag_enable_featured_image', true ) && has_post_thumbnail() ) :
			?>
			<div class="cm-featured-image"<?php echo colormag_schema_markup( 'image' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
				<?php if ( 1 == get_theme_mod( 'colormag_enable_lightbox', 0 ) ) : ?>
					<a href="<?php echo esc_url( $image_popup_url ); ?>" class="image-popup"><?php the_post_thumbnail( 'colormag-featured-image-large' ); ?></a>
					<?php
				else :
					the_post_thumbnail( 'colormag-featured-image-large' );
				endif;

				if ( 1 == get_theme_mod( 'colormag_enable_schema_markup', '' ) ) :
					?>
					<meta itemprop="url" content="<?php echo esc_url( get_the_post_thumbnail_url( $post->ID, 'full' ) ); ?>">
				<?php endif; ?>
			</div>

			<?php if ( 1 == get_theme_mod( 'colormag_enable_featured_image_caption', 0 ) && get_post( get_post_thumbnail_id() )->post_excerpt ) : ?>
				<span class="featured-image-caption">
					<?php echo wp_kses_post( get_post( get_post_thumbnail_id() )->post_excerpt ); ?>
				</span>
				<?php
			endif;
			?>
			<?php
		endif;
	endif;

	if ( has_post_format( 'video' ) ) :
		$video_post_url = get_post_meta( $post->ID, 'video_url', true );

		if ( ! empty( $video_post_url ) ) :
			?>
			<div class="fitvids-video">
				<?php
				$embed_code = wp_oembed_get( $video_post_url );

				echo $embed_code;
				?>
			</div>
			<?php
		endif;
	endif;
	?>

	<div class="cm-post-content">
		<?php
		if ( get_post_format() && ! has_post_format( 'video' ) ) :
			get_template_part( 'template-parts/content/post-formats' );
		endif;

		if ( 'position-2' === get_theme_mod( 'colormag_featured_image_position', 'position-2' ) ) :
			colormag_colored_category();
			?>

			<?php get_template_part( 'template-parts/entry/entry', 'header' ); ?>

			<?php
			colormag_entry_meta();
		endif;
		?>

		<?php get_template_part( 'template-parts/entry/entry', 'summary' ); ?>

	</div>

	<?php colormag_post_view_setup( get_the_ID() ); ?>

	<?php
	/**
	 * Hook: colormag_after_single_post_page_loop.
	 */
	do_action( 'colormag_after_single_post_page_loop' );

	/**
	 * Hook: colormag_after_post_content.
	 */
	do_action( 'colormag_after_post_content' );
	?>
</article>
PK+�[�����hooks/footer/footer.phpnu�[���<?php
/**
 * Footer hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( ! function_exists( 'colormag_main_section_inner_end' ) ) :

	/**
	 *  Main section inner ends.
	 */
	function colormag_main_section_inner_end() {
		?>
		</div><!-- .cm-container -->
		<?php
	}

endif;

add_action( 'colormag_action_after_inner_content', 'colormag_main_section_inner_end', 10 );

if ( ! function_exists( 'colormag_main_section_end' ) ) :

	/**
	 * Main section ends.
	 */
	function colormag_main_section_end() {
		?>
		</div><!-- #main -->
		<?php
	}

endif;

add_action( 'colormag_action_after_content', 'colormag_main_section_end', 10 );

if ( ! function_exists( 'colormag_advertisement_above_footer_sidebar' ) ) :

	/**
	 * Advertisement above footer sidebar area.
	 */
	function colormag_advertisement_above_footer_sidebar() {

		if ( is_active_sidebar( 'colormag_advertisement_above_the_footer_sidebar' ) ) :
			?>
			<div class="advertisement_above_footer">
				<div class="inner-wrap">
					<?php dynamic_sidebar( 'colormag_advertisement_above_the_footer_sidebar' ); ?>
				</div>
			</div>
			<?php
		endif;

	}

endif;

add_action( 'colormag_action_after_content', 'colormag_advertisement_above_footer_sidebar', 15 );

if ( ! function_exists( 'colormag_footer_start' ) ) :

	/**
	 * Footer starts.
	 */
	function colormag_footer_start() {
		?>
		<footer id="cm-footer" class="cm-footer <?php echo esc_attr( colormag_footer_layout_class() ); ?>"<?php echo colormag_schema_markup( 'footer' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
		<?php
	}

endif;

add_action( 'colormag_action_before_footer', 'colormag_footer_start', 10 );

if ( ! function_exists( 'colormag_footer_sidebar' ) ) :

	/**
	 * Footer sidebar.
	 */
	function colormag_footer_sidebar() {
		get_sidebar( 'footer' );
	}

endif;

add_action( 'colormag_action_before_footer', 'colormag_footer_sidebar', 15 );

if ( ! function_exists( 'colormag_footer_socket_inner_wrapper_start' ) ) :

	/**
	 * Footer socket inner wrapper starts.
	 */
	function colormag_footer_socket_inner_wrapper_start() {
		?>
		<div class="cm-footer-bar <?php echo esc_attr( colormag_copyright_alignment_class() ); ?>">
			<div class="cm-container">
				<div class="cm-row">
		<?php
	}

endif;

add_action( 'colormag_action_before_inner_footer', 'colormag_footer_socket_inner_wrapper_start', 10 );

if ( ! function_exists( 'colormag_footer_socket_area_start' ) ) :

	/**
	 * Footer socket area starts.
	 */
	function colormag_footer_socket_area_start() {
		?>
		<div class="cm-footer-bar-area">
		<?php
	}

endif;

add_action( 'colormag_action_footer', 'colormag_footer_socket_area_start', 10 );

if ( ! function_exists( 'colormag_footer_socket_right_section' ) ) :

	/**
	 * Footer socket area right section.
	 */
	function colormag_footer_socket_right_section() {

		$social_links_enable          = get_theme_mod( 'colormag_enable_social_icons', 0 );
		$social_links_footer_location = get_theme_mod( 'colormag_enable_social_icons_footer', 1 );
		?>

		<div class="cm-footer-bar__1">
			<?php
			if ( 1 == $social_links_enable && 1 == $social_links_footer_location ) {
				colormag_social_links();
			}
			?>

			<?php
			if ( has_nav_menu( 'footer' ) ) {
				?>
			<nav class="cm-footer-menu">
				<?php
				wp_nav_menu(
					array(
						'theme_location' => 'footer',
						'depth'          => -1,
					)
				);
				?>
			</nav>
			<?php } ?>
		</div> <!-- /.cm-footer-bar__1 -->

		<?php

	}

endif;

add_action( 'colormag_action_footer', 'colormag_footer_socket_right_section', 15 );

if ( ! function_exists( 'colormag_footer_socket_left_section' ) ) :

	/**
	 * Footer socket area left section.
	 */
	function colormag_footer_socket_left_section() {
		?>
		<div class="cm-footer-bar__2">
			<?php do_action( 'colormag_footer_copyright' ); ?>
		</div> <!-- /.cm-footer-bar__2 -->
		<?php
	}

endif;

add_action( 'colormag_action_footer', 'colormag_footer_socket_left_section', 20 );

if ( ! function_exists( 'colormag_footer_socket_area_end' ) ) :

	/**
	 * Footer socket area ends.
	 */
	function colormag_footer_socket_area_end() {
		?>
		</div><!-- .cm-footer-bar-area -->
		<?php
	}

endif;

add_action( 'colormag_action_footer', 'colormag_footer_socket_area_end', 25 );

if ( ! function_exists( 'colormag_footer_socket_inner_wrapper_end' ) ) :

	/**
	 * Footer socket inner wrapper ends.
	 */
	function colormag_footer_socket_inner_wrapper_end() {
		?>
				</div><!-- .cm-container -->
			</div><!-- .cm-row -->
		</div><!-- .cm-footer-bar -->
		<?php
	}

endif;

add_action( 'colormag_action_after_inner_footer', 'colormag_footer_socket_inner_wrapper_end', 10 );

if ( ! function_exists( 'colormag_footer_end' ) ) :

	/**
	 * Footer ends.
	 */
	function colormag_footer_end() {
		?>
		</footer><!-- #cm-footer -->
		<?php
	}

endif;

add_action( 'colormag_action_after_footer', 'colormag_footer_end', 10 );

if ( ! function_exists( 'colormag_scroll_top_button' ) ) :

	/**
	 * Scroll to top button.
	 */
	function colormag_scroll_top_button() {

		if ( get_theme_mod( 'colormag_enable_scroll_to_top', 0 ) ) :
			?>
			<a href="#cm-masthead" id="scroll-up"><i class="fa fa-chevron-up"></i></a>
			<?php
		endif;

	}

endif;

add_action( 'colormag_action_after_footer', 'colormag_scroll_top_button', 15 );

if ( ! function_exists( 'colormag_reading_progress_bar' ) ) :

	/**
	 * Reading progress bar.
	 */
	function colormag_reading_progress_bar() {

		if ( 1 == get_theme_mod( 'colormag_enable_progress_bar_indicator', 0 ) && is_single() ) :
			?>
			<div class="reading-progress-bar"></div>
			<?php
		endif;

	}

endif;

add_action( 'colormag_action_after_footer', 'colormag_reading_progress_bar', 20 );

if ( ! function_exists( 'colormag_flyout_related_post' ) ) :

	/**
	 * Flyout related posts.
	 */
	function colormag_flyout_related_post() {

		if ( 1 == get_theme_mod( 'colormag_enable_flyout_related_posts', 0 ) && is_single() ) :
			get_template_part( 'template-parts/footer/flyout-related-posts' );
		endif;

	}

endif;

add_action( 'colormag_action_after_footer', 'colormag_flyout_related_post', 25 );

if ( ! function_exists( 'colormag_page_end' ) ) :

	/**
	 * Page end.
	 */
	function colormag_page_end() {
		?>
		</div><!-- #page -->
		<?php
	}

endif;

add_action( 'colormag_action_after', 'colormag_page_end', 10 );

if ( ! function_exists( 'colormag_footer_copyright' ) ) :

	/**
	 * Shows the footer copyright information.
	 */
	function colormag_footer_copyright() {

		$default_footer_value      = get_theme_mod(
			'colormag_footer_editor',
			'<span>' .esc_html__( 'Copyright &copy; ', 'colormag' ) . '[the-year] [site-link]. ' . esc_html__( 'All rights reserved.', 'colormag' ) . '</span> <br>' . esc_html__( 'Theme: ', 'colormag' ) . '[tg-link]' . esc_html__( ' by ThemeGrill. Powered by ', 'colormag' ) . '[wp-link].'
		);
		$colormag_footer_copyright = $default_footer_value;

		echo do_shortcode( $colormag_footer_copyright );

	}

endif;

add_action( 'colormag_footer_copyright', 'colormag_footer_copyright', 10 );
PK+�[�$D@		hooks/content/content.phpnu�[���<?php
/**
 * Content hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( ! function_exists( 'colormag_archive_header' ) ) :

	/**
	 * Archive header.
	 */
	function colormag_archive_header() {
		?>

		<header class="cm-page-header">
			<?php
			if ( is_category() ) :

				do_action( 'colormag_category_title' );

				single_cat_title();
			else :
				?>

				<h1 class="cm-page-title">
					<span>
						<?php
						if ( is_tag() ) :

							single_tag_title();

						elseif ( is_author() ) :
							/**
							 * Queue the first post, that way we know
							 * what author we're dealing with (if that is the case).
							 */
							the_post();

							printf(
							/* Translators: %s: Author name */
								esc_html__( 'Author: %s', 'colormag' ),
								'<span class="vcard">' . esc_html( get_the_author() ) . '</span>'
							);

							/**
							 * Since we called the_post() above, we need to
							 * rewind the loop back to the beginning that way
							 * we can run the loop properly, in full.
							 */
							rewind_posts();

						elseif ( is_day() ) :
							printf(
							/* Translators: %s: Day archive */
								esc_html__( 'Day: %s', 'colormag' ),
								'<span>' . esc_html( get_the_date() ) . '</span>'
							);

						elseif ( is_month() ) :
							printf(
							/* Translators: %s: Month archive */
								esc_html__( 'Month: %s', 'colormag' ),
								'<span>' . esc_html( get_the_date( 'F Y' ) ) . '</span>'
							);

						elseif ( is_year() ) :
							printf(
							/* Translators: %s: Year archive */
								esc_html__( 'Year: %s', 'colormag' ),
								'<span>' . esc_html( get_the_date( 'Y' ) ) . '</span>'
							);

						elseif ( is_tax( 'post_format', 'post-format-aside' ) ) :
							esc_html_e( 'Asides', 'colormag' );

						elseif ( is_tax( 'post_format', 'post-format-image' ) ) :
							esc_html_e( 'Images', 'colormag' );

						elseif ( is_tax( 'post_format', 'post-format-video' ) ) :
							esc_html_e( 'Videos', 'colormag' );

						elseif ( is_tax( 'post_format', 'post-format-quote' ) ) :
							esc_html_e( 'Quotes', 'colormag' );

						elseif ( is_tax( 'post_format', 'post-format-link' ) ) :
							esc_html_e( 'Links', 'colormag' );

						elseif ( is_plugin_active( 'woocommerce/woocommerce.php' ) && function_exists( 'is_woocommerce' ) && is_woocommerce() ) :
							woocommerce_page_title( false );

						else :
							esc_html_e( 'Archives', 'colormag' );

						endif;
						?>
					</span>
				</h1>
				<?php

			endif;

			// Show an optional term description.
			$term_description = term_description();
			if ( ! empty( $term_description ) ) :
				printf(
					'<div class="taxonomy-description">%s</div>',
					$term_description
				); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
			endif;
			?>
		</header><!-- .cm-page-header -->

		<?php

	}

endif;

add_action( 'colormag_action_archive_header', 'colormag_archive_header', 10 );

if ( ! function_exists( 'colormag_render_comments' ) ) :

	/**
	 * Post/Page comments.
	 */
	function colormag_render_comments() {

		// If comments are open or we have at least one comment, load up the comment template.
		if ( comments_open() || '0' != get_comments_number() ) {
			comments_template();
		}

	}

endif;

add_action( 'colormag_action_comments', 'colormag_render_comments', 10 );

if ( ! function_exists( 'colormag_author_bio' ) ) :

	/**
	 * Author bio.
	 */
	function colormag_author_bio() {

		if ( 1 == get_theme_mod( 'colormag_enable_author_bio', 1 ) && get_the_author_meta( 'description' ) ) :

			$author_layout       = get_theme_mod( 'colormag_author_bio_style', 'style-1' );
			$author_class        = str_replace( '_', '-', $author_layout );
			$author_class        = 'author-bio-' . $author_class;
			$social_sites_enable = get_theme_mod( 'colormag_enable_author_bio_profile', 0 );
			$avatar_image_size   = apply_filters( 'colormag_author_bio_avatar_size_filter', 100 );
			?>

			<div class="author-box <?php echo esc_attr( $author_class ); ?>">
				<div class="author-description-wrapper">
					<h4 class="author-name"><?php the_author_meta( 'display_name' ); ?></h4>

					<?php
					if ( 1 == $social_sites_enable && ( 'style-2' === $author_layout || 'style-3' === $author_layout ) ) {
						colormag_author_social_link();
					}
					?>

					<p class="author-description"><?php the_author_meta( 'description' ); ?></p>

					<?php
					if ( 1 == $social_sites_enable && 'style-1' === $author_layout ) {
						colormag_author_social_link();
					}
					?>

					<?php if ( 1 == get_theme_mod( 'colormag_enable_author_bio_link', 0 ) ) : ?>
						<p class="author-url">
							<?php
							printf(
							/* Translators: %1$s: Author display name, %2$s: Author id */
								esc_html__( '%1$s has %2$s posts and counting.', 'colormag' ),
								esc_html( get_the_author_meta( 'display_name' ) ),
								absint( count_user_posts( get_the_author_meta( 'ID' ) ) )
							);
							?>

							<a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>">
								<?php
								printf(
								/* Translators: %1$s: Author display name */
									esc_html__( 'See all posts by %1$s', 'colormag' ),
									esc_html( get_the_author_meta( 'display_name' ) )
								);
								?>
							</a>
						</p>
					<?php endif; ?>
				</div>

				<div class="author-img"><?php echo get_avatar( get_the_author_meta( 'user_email' ), $avatar_image_size ); ?></div>
			</div>

			<?php

		endif;

	}

endif;

add_action( 'colormag_action_after_single_post_content', 'colormag_author_bio', 10 );

if ( ! function_exists( 'colormag_social_share' ) ) :

	/**
	 * Social share.
	 */
	function colormag_social_share() {

		if ( 1 == get_theme_mod( 'colormag_enable_social_share', 0 ) ) {
			get_template_part( 'template-parts/content/share' );
		}

	}

endif;

add_action( 'colormag_action_after_single_post_content', 'colormag_social_share', 15 );

if ( ! function_exists( 'colormag_related_posts' ) ) :

	/**
	 * Related posts.
	 */
	function colormag_related_posts() {

		if ( 1 == get_theme_mod( 'colormag_enable_related_posts', 0 ) ) {
			get_template_part( 'template-parts/content/related-posts' );
		}

	}

endif;

add_action( 'colormag_action_after_single_post_content', 'colormag_related_posts', 20 );

if ( ! function_exists( 'colormag_ajax_post_class' ) ) :
	/**
	 * Add missing class `post` while ajax call.
	 */
	function colormag_ajax_post_class( $class ) {
		$class[] = 'post';

		return $class;
	}
endif;

if ( is_admin() && wp_doing_ajax() ) {
	add_action( 'post_class', 'colormag_ajax_post_class' );
}

PK+�[���TThooks/header/header-main.phpnu�[���<?php
/**
 * Header main hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/*========================================= Hooks > Header Main ==========================================*/

if ( ! function_exists( 'colormag_before_header_main' ) ) :

	/**
	 * Before header main.
	 */
	function colormag_before_header_main() {
		?>
		<div class="cm-main-header">
		<?php
	}
endif;

add_action( 'colormag_action_before_inner_header', 'colormag_before_header_main', 10 );

if ( ! function_exists( 'colormag_after_header_main' ) ) :

	/**
	 * After header main.
	 */
	function colormag_after_header_main() {
		?>
		</div> <!-- /.cm-main-header -->
		<?php
	}
endif;

add_action( 'colormag_action_after_inner_header', 'colormag_after_header_main', 10 );
PK+�[q���!!hooks/header/top-bar.phpnu�[���<?php
/**
 * Top bar hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/*========================================= Hooks > Header Top ==========================================*/

if ( ! function_exists( 'colormag_header_top' ) ) :

	/**
	 * Header top.
	 * TODO: @since
	 */
	function colormag_header_top() {

		get_template_part( 'template-parts/header/top', 'bar' );
	}
endif;

add_action( 'colormag_action_header_top', 'colormag_header_top', 10 );
PK+�[Y���?�?hooks/header/header.phpnu�[���<?php
/**
 * Header hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( ! function_exists( 'colormag_doctype' ) ) :

	/**
	 * Header doctype
	 */
	function colormag_doctype() { ?>
		<!doctype html>
		<html <?php language_attributes(); ?>>
		<?php
	}
endif;

add_action( 'colormag_action_doctype', 'colormag_doctype', 10 );

if ( ! function_exists( 'colormag_head' ) ) :

	/**
	 * HTML Head.
	 */
	function colormag_head() {
		?>
		<meta charset="<?php bloginfo( 'charset' ); ?>"/>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link rel="profile" href="http://gmpg.org/xfn/11"/>
		<?php
	}

endif;

add_action( 'colormag_action_head', 'colormag_head', 10 );

if ( ! function_exists( 'colormag_background_image_clickable' ) ) :

	/**
	 * Background image clickable.
	 */
	function colormag_background_image_clickable() {

		$background_image_url_link = get_theme_mod( 'colormag_background_image_link' );

		if ( $background_image_url_link ) {
			echo '<a href="' . esc_url( $background_image_url_link ) . '" class="background-image-clickable" target="_blank"></a>';
		}

	}

endif;

add_action( 'colormag_action_before', 'colormag_background_image_clickable', 5 );

if ( ! function_exists( 'colormag_page_start' ) ) :

	/**
	 * Page start.
	 */
	function colormag_page_start() {
		?>
		<div id="page" class="hfeed site">
		<?php
	}

endif;

add_action( 'colormag_action_before', 'colormag_page_start', 10 );

if ( ! function_exists( 'colormag_skip_content_link' ) ) :

	/**
	 * Skip content link.
	 */
	function colormag_skip_content_link() {
		?>
		<a class="skip-link screen-reader-text" href="#main"><?php esc_html_e( 'Skip to content', 'colormag' ); ?></a>
		<?php
	}

endif;

add_action( 'colormag_action_before', 'colormag_skip_content_link', 15 );

if ( ! function_exists( 'colormag_header_markup' ) ) :

	/**
	 * Adds ColorMag header markup.
	 *
	 * @return void
	 */
	function colormag_header_markup() {

		/**
		 * Hook: colormag_before_header.
		 */
		do_action( 'colormag_before_header' );
		?>

		<?php
		/**
		 * Functions hooked into colormag_action_before_header action.
		 *
		 * @hooked colormag_header_start - 10
		 */
		do_action( 'colormag_action_before_header' );
		?>

		<?php
		/**
		 * Functions hooked into colormag_action_header_top action.
		 *
		 * @hooked colormag_header_top - 10
		 */
		do_action( 'colormag_action_header_top' );
		?>

		<?php
		/**
		 * Functions hooked into colormag_action_before_inner_header action.
		 *
		 * @hooked colormag_header_nav_container_start - 10
		 */
		do_action( 'colormag_action_before_inner_header' );
		?>

		<?php
		/**
		 * Functions hooked into colormag_action_header action.
		 *
		 * @hooked colormag_header - 10
		 */
		do_action( 'colormag_action_header' );
		?>

		<?php
		/**
		 * Functions hooked into colormag_action_after_inner_header action.
		 *
		 * @hooked colormag_header_image_before_nav_container_end - 5
		 * @hooked colormag_header_nav_container_end - 10
		 */
		do_action( 'colormag_action_after_inner_header' );
		?>

		<?php
		/**
		 * Functions hooked into colormag_action_after_header action.
		 *
		 * @hooked colormag_header_end - 10
		 */
		do_action( 'colormag_action_after_header' );
		?>

		<?php
		/**
		 * Hook: colormag_after_header.
		 */
		do_action( 'colormag_after_header' );

	}

endif;

add_action( 'colormag_header', 'colormag_header_markup' );

if ( ! function_exists( 'colormag_header_start' ) ) :

	/**
	 * Header starts.
	 */
	function colormag_header_start() {
		?>
	<header id="cm-masthead" class="<?php colormag_css_class( 'colormag_header_class' ); ?>"<?php echo colormag_schema_markup( 'header' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
		<?php
	}

endif;

add_action( 'colormag_action_before_header', 'colormag_header_start', 10 );

if ( ! function_exists( 'colormag_header_main' ) ) :

	/**
	 * Header main area.
	 */
	function colormag_header_main() {

		get_template_part( 'template-parts/header/header-main' );

	}

endif;

add_action( 'colormag_action_header', 'colormag_header_main', 10 );

if ( ! function_exists( 'colormag_header_one' ) ) :

	/**
	 * Function to display the middle header bar.
	 *
	 * @since ColorMag 2.2.1
	 */
	function colormag_header_one() {
		?>

	<div id="cm-header-1" class="cm-header-1">
		<div class="cm-container">
			<div class="cm-row">

				<div class="cm-header-col-1">
					<?php get_template_part( 'template-parts/header/site-branding/site-branding' ); ?>
				</div><!-- .cm-header-col-1 -->

				<div class="cm-header-col-2">
					<?php
					if ( is_active_sidebar( 'colormag_header_sidebar' ) ) {
						?>
					<div id="header-right-sidebar" class="clearfix">
						<?php dynamic_sidebar( 'colormag_header_sidebar' ); ?>
					</div>
						<?php
					}
					?>
			</div><!-- .cm-header-col-2 -->

		</div>
	</div>
</div>
		<?php
	}

endif;

	add_action( 'colormag_header_one', 'colormag_header_one' );

if ( ! function_exists( 'colormag_header_two' ) ) :

	/**
	 * Function to display the middle header bar.
	 *
	 * @since ColorMag 2.2.1
	 */
	function colormag_header_two() {

		$random_post_icon               = get_theme_mod( 'colormag_enable_random_post', 0 );
		$search_icon                    = get_theme_mod( 'colormag_enable_search', 0 );
		$social_links_enable            = get_theme_mod( 'colormag_enable_social_icons', true );
		$social_links_header_visibility = get_theme_mod( 'colormag_enable_social_icons_header', 1 );
		$social_links_header_location   = get_theme_mod( 'colormag_social_icons_header_location', 'top-bar' );

		if ( function_exists( 'max_mega_menu_is_enabled' ) && max_mega_menu_is_enabled( 'primary' ) ) :
			?>
		<div id="cm-header-2" class="cm-header-2">
			<nav id="cm-primary-nav" class="cm-primary-nav"<?php echo colormag_schema_markup( 'nav' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
				<div class="mega-menu-integrate">
					<div class="inner-wrap clearfix">
						<?php
							wp_nav_menu(
								array(
									'theme_location' => 'primary',
								)
							);
						?>
					</div>
				</div>
			</nav>
		</div>

		<?php else : ?>
			<?php if ( 'layout-3' != get_theme_mod( 'colormag_main_header_layout', 'layout-1' ) ) : ?>
<div id="cm-header-2" class="cm-header-2">
	<nav id="cm-primary-nav" class="cm-primary-nav"<?php echo colormag_schema_markup( 'nav' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
		<div class="cm-container">
			<div class="cm-row">
				<?php
				if ( 'home-icon' === get_theme_mod( 'colormag_menu_icon_logo', 'none' ) ) {
					$home_icon_class = 'cm-home-icon';

					if ( is_front_page() ) {
						$home_icon_class = 'cm-home-icon front_page_on';
					}
					?>

				<div class="<?php echo esc_attr( $home_icon_class ); ?>">
					<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
					   title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
					>
					<?php colormag_get_icon( 'home' ); ?>

					</a>
				</div>
				<?php } ?>

							<?php
							if ( 'logo' === get_theme_mod( 'colormag_menu_icon_logo', 'none' ) ) {
								colormag_menu_logo();
							}

							if ( 1 == $random_post_icon || 1 == $search_icon || ( 1 == $social_links_enable && 1 == $social_links_header_visibility && 'menu' === $social_links_header_location ) ) {
								?>
				<div class="cm-header-actions">
								<?php
								// Displays the social links in header.
								if ( 1 == $social_links_header_visibility && 'menu' === $social_links_header_location ) {
									colormag_social_links();
								}

								// Displays the random post.
								if ( 1 == $random_post_icon ) {
									colormag_random_post();
								}

								// Displays the search icon.
								if ( 1 == $search_icon ) {
									?>
					<div class="cm-top-search">
						<i class="fa fa-search search-top"></i>
						<div class="search-form-top">
									<?php get_search_form(); ?>
						</div>
					</div>
					<?php } ?>
				</div>
							<?php } ?>

					<p class="cm-menu-toggle" aria-expanded="false">
						<?php colormag_get_icon( 'bars' ); ?>
						<?php colormag_get_icon( 'x-mark' ); ?>
					</p>
						<?php
							get_template_part( 'template-parts/header/primary-menu/main-navigation' );
					?>

			</div>
		</div>
	</nav>
</div>
						<?php
			endif;
		endif;
	}

endif;

	add_action( 'colormag_header_two', 'colormag_header_two' );

if ( ! function_exists( 'colormag_header_image_before_nav_container_end' ) ) :

	/**
	 * Display the header image just before the header closes.
	 */
	function colormag_header_image_before_nav_container_end() {
		$colormag_header_media_position = get_theme_mod( 'colormag_header_media_position', 'position-two' );

		if ( 'position-three' === $colormag_header_media_position ) {
			the_custom_header_markup();
		}
	}

endif;

	add_action( 'colormag_action_after_inner_header', 'colormag_header_image_before_nav_container_end', 5 );

if ( ! function_exists( 'colormag_header_end' ) ) :

	/**
	 * Header ends.
	 */
	function colormag_header_end() {
		?>
		</header><!-- #cm-masthead -->
		<?php
	}

endif;

	add_action( 'colormag_action_after_header', 'colormag_header_end', 10 );

if ( ! function_exists( 'colormag_main_section_start' ) ) :

	/**
	 * Main section starts.
	 */
	function colormag_main_section_start() {
		?>
	<div id="cm-content" class="cm-content"<?php echo colormag_schema_markup( 'content' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
		<?php
	}

endif;

add_action( 'colormag_action_before_content', 'colormag_main_section_start', 10 );

if ( ! function_exists( 'colormag_before_content_breaking_news' ) ) :

	/**
	 * Before content breaking news.
	 */
	function colormag_before_content_breaking_news() {

		if ( 1 == get_theme_mod( 'colormag_enable_news_ticker', 0 ) && 'below-header' === get_theme_mod( 'colormag_news_ticker_position', 'header' ) ) :
			?>
			<div class="breaking-news-main inner-wrap clearfix">
				<?php colormag_breaking_news(); ?>
			</div>
			<?php
		endif;

	}

endif;

	add_action( 'colormag_action_before_content', 'colormag_before_content_breaking_news', 15 );

if ( ! function_exists( 'colormag_front_page_full_width_sidebar' ) ) :

	/**
	 * Front page full width sidebar area.
	 */
	function colormag_front_page_full_width_sidebar() {

		if ( ( is_front_page() || is_page_template( 'page-templates/magazine.php' ) ) && ! is_page_template( 'page-templates/page-builder.php' ) && is_active_sidebar( 'colormag_front_page_top_full_width_area' ) ) :
			?>
			<div class="top-full-width-sidebar inner-wrap clearfix <?php echo colormag_top_full_width_area_class(); ?>">
				<?php
					dynamic_sidebar( 'colormag_front_page_top_full_width_area' );
				?>
			</div>
			<?php
		endif;

	}

endif;

	add_action( 'colormag_action_before_content', 'colormag_front_page_full_width_sidebar', 20 );

if ( ! function_exists( 'colormag_main_section_inner_start' ) ) :

	/**
	 * Main section inner starts.
	 */
	function colormag_main_section_inner_start() {
		?>
		<div class="cm-container">
		<?php
	}

endif;

add_action( 'colormag_action_before_inner_content', 'colormag_main_section_inner_start', 10 );

if ( ! function_exists( 'colormag_breadcrumb' ) ) :

	/**
	 * Display the breadcrumbs provided via Yoast or BreadCrumb NavXT plugin,
	 * where BreadCrumb NavXT plugin takes precedence.
	 */
	function colormag_breadcrumb() {

		// Bail out if breadcrumb is not selected.
		if ( 1 === get_theme_mod( 'colormag_breadcrumb_enable', 0 ) ) {
		?>

		<!-- Breadcrumb display -->
		<div id="breadcrumb-wrap" class="breadcrumb-wrap" typeof="BreadcrumbList">
			<div class="inner-wrap">
			<?php
			if ( 'yoast_seo_navxt' === get_theme_mod( 'colormag_breadcrumb_type', 'colormag_breadcrumb' ) ) {

				$display_breadcrumb_label = '<span class="breadcrumb-title">' . get_theme_mod( 'colormag_breadcrumb_label', esc_html__( 'You are here:', 'colormag' ) ) . '</span>';

				if ( function_exists( 'bcn_display' ) ) {
					echo $display_breadcrumb_label;

					bcn_display();
				} elseif ( function_exists( 'yoast_breadcrumb' ) ) {
					echo $display_breadcrumb_label;

					yoast_breadcrumb();
				}
			} elseif ( function_exists( 'breadcrumb_trail' ) && 'colormag_breadcrumb' === get_theme_mod( 'colormag_breadcrumb_type', 'colormag_breadcrumb' ) ) {
				if ( ColorMag_Utils::colormag_is_woocommerce_active() && function_exists( 'is_woocommerce' ) && is_woocommerce() ) {

					// Make WC breadcrumb with the theme.
					woocommerce_breadcrumb(
						array(
							'wrap_before' => '<nav role="navigation" aria-label="' . esc_html__( 'Breadcrumbs', 'colormag' ) . '" class="breadcrumb-trail breadcrumbs">' . '<span class="breadcrumb-title">' . get_theme_mod( 'colormag_breadcrumb_label', esc_html__( 'You are here: ', 'colormag' ) ) . '</span>' . '<ul class="trail-items">',
							'wrap_after'  => '</ul></nav>',
							'before'      => '<li class="trail-item">',
							'after'       => '</li>',
							'delimiter'   => '',
						)
					);
				} else {
					do_action( 'colormag_action_breadcrumb' );
				}
			}
			?>
			</div>
		</div>
		<?php
		}
	}
endif;

	add_action( 'colormag_action_before_content', 'colormag_breadcrumb', 15 );

if ( ! function_exists( 'colormag_theme_breadcrumb' ) ) :
	/**
	 * Container starts.
	 */
	function colormag_theme_breadcrumb() {
		breadcrumb_trail(
			array(
				'show_browse' => false,
			)
		);
	}
endif;

	add_action( 'colormag_action_breadcrumb', 'colormag_theme_breadcrumb', 10 );

if ( ! function_exists( 'colormag_change_logo_attr' ) ) :

	/**
	 * Change the image attributes while retina logo is set.
	 *
	 * @param $attr
	 * @param $attachment
	 * @param $size
	 *
	 * @return mixed
	 */
	function colormag_change_logo_attr( $attr, $attachment, $size ) {
		$custom_logo = wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' );

		if ( ! empty( $custom_logo ) ) {
			$custom_logo = $custom_logo[0];
		}

		if ( isset( $attr['class'] ) && 'custom-logo' === $attr['class'] ) {
			$retina_logo    = get_theme_mod( 'colormag_retina_logo', '' );
			$attr['srcset'] = '';

			if ( $retina_logo ) {
				$attr['srcset'] = $custom_logo . ' 1x,' . $retina_logo . ' 2x';
			}
		}

		return $attr;
	}

endif;

	add_filter( 'wp_get_attachment_image_attributes', 'colormag_change_logo_attr', 10, 3 );


if ( ! function_exists( 'colormag_add_submenu_icon' ) ) :

		/**
		 * Add submenu toggle icon after the menu items with submenus.
		 *
		 * @param string $item_output The menu item's starting HTML output.
		 * @param WP_Post $item Menu item data object.
		 * @param int $depth Depth of menu item. Used for padding.
		 * @param stdClass $args An object of wp_nav_menu() arguments.
		 *
		 * @return array|mixed|string|string[]
		 *
		 * TODO @since.
		 *
		 */
		function colormag_add_submenu_icon( $item_output, $item, $depth, $args ) {

			if ( 'primary' === $args->theme_location ) {

				if (
					in_array( 'menu-item-has-children', $item->classes, true ) ||
					in_array( 'page_item_has_children', $item->classes, true )
				) {

					$submenu_toggle_markup = '<span role="button" tabindex="0" class="cm-submenu-toggle" onkeypress="">' .
											 '<svg class="cm-icon" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 24 24"><path d="M12 17.5c-.3 0-.5-.1-.7-.3l-9-9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l8.3 8.3 8.3-8.3c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-9 9c-.2.2-.4.3-.7.3z"/></svg>' .
											 '</span>';

					$item_output = str_replace(
						$args->link_after . '</a>',
						$args->link_after . '</a>' . $submenu_toggle_markup,
						$item_output
					);
				}
			}

			return $item_output;
		}

	endif;

	add_filter( 'walker_nav_menu_start_el', 'colormag_add_submenu_icon', 10, 4 );
PK+�[#�^g��hooks/hook-functions.phpnu�[���<?php
/**
 * Theme hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/**
 * Header.
 */
if ( ! function_exists( 'colormag_header' ) ) {

	/**
	 * Header.
	 *
	 * @return void
	 */
	function colormag_header() {

		/**
		 * Hook for header.
		 *
		 * @hooked colormag_header_markup - 10.
		 */
		do_action( 'colormag_header' );
	}
}
PK+�[���		content/related-posts.phpnu�[���<?php
/**
 * Related posts featured display.
 *
 * @package    ThemeGrill
 * @subpackage ColorMag
 * @since      ColorMag 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Required related posts datas.
$related_posts                = colormag_related_posts_function();
$related_posts_data           = get_theme_mod( 'colormag_related_posts_style', 'style-1' );
$related_posts_class          = str_replace( '_', '-', $related_posts_data );
$related_posts_carousel_class = 'style-4' === $related_posts_data ? 'related-post-carousel' : '';

if ( $related_posts->have_posts() ) :
	?>

	<div class="related-posts-wrapper <?php echo esc_attr( $related_posts_class ); ?>">

		<h3 class="related-posts-main-title">
			<i class="fa fa-thumbs-up"></i><span><?php echo esc_html( get_theme_mod( 'colormag_you_may_also_like_text', __( 'You May Also Like', 'colormag' ) ) ); ?></span>
		</h3>

		<div class="related-posts <?php echo esc_attr( $related_posts_carousel_class ); ?>">

			<?php
			while ( $related_posts->have_posts() ) :
				$related_posts->the_post();
				?>
				<div class="single-related-posts">

					<?php if ( has_post_thumbnail() && 'style-3' != get_theme_mod( 'colormag_related_posts_style', 'style-1' ) ): ?>
						<div class="related-posts-thumbnail">
							<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
								<?php the_post_thumbnail( 'colormag-featured-post-medium' ); ?>
							</a>
						</div>
					<?php endif; ?>

					<div class="cm-post-content">
						<h3 class="cm-entry-title">
							<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
								<?php the_title(); ?>
							</a>
						</h3><!--/.post-title-->

						<?php
						if ( 'style-3' != get_theme_mod( 'colormag_related_posts_style', 'style-1' ) ) :
							colormag_entry_meta( false );
						endif;

						if ( 'style-2' == get_theme_mod( 'colormag_related_posts_style', 'style-1' ) ) {
							?>
							<div class="cm-entry-summary">
								<?php the_excerpt(); ?>
							</div>
						<?php } ?>
					</div>

				</div><!--/.related-->
			<?php endwhile; ?>

		</div><!--/.post-related-->

	</div>

	<?php
endif;

// Reset postdata.
wp_reset_postdata();
PK+�[8�content/post-formats.phpnu�[���<?php
/**
 * Post formats custom outputs.
 *
 * @package    ThemeGrill
 * @subpackage ColorMag
 * @since      ColorMag 1.0.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * For Gallery Post Format.
 */
if ( has_post_format( 'gallery' ) ) :

	if ( get_post_gallery() ) :
		?>
		<div class="gallery-post-format">
			<?php
			$output         = '';
			$galleries      = get_post_gallery( $post, false );
			$attachment_ids = explode( ',', $galleries['ids'] );
			$output         = '<ul class="gallery-images">';

			foreach ( $attachment_ids as $attachment_id ) {
				// Displaying the attached image of gallery.
				$link = wp_get_attachment_image( $attachment_id, 'colormag-featured-image' );

				$output .= '<li>' . $link . '</li>';
			}

			$output .= '</ul>';

			echo wp_kses_post( $output );
			?>
		</div>
		<?php
	endif;

endif;

/**
 * For Video Post Format.
 */
if ( has_post_format( 'video' ) && ! ( has_post_thumbnail() ) ) :

	$video_post_url = get_post_meta( $post->ID, 'video_url', true );

	if ( ! empty( $video_post_url ) ) :
		?>
		<div class="fitvids-video">
			<?php
			$embed_code = wp_oembed_get( $video_post_url );

			echo $embed_code;
			?>
		</div>
	<?php
	endif;

endif;
PK+�[ �[�ttcontent/share.phpnu�[���<?php
/**
 * Social share button template part.
 *
 * @package    ThemeGrill
 * @subpackage ColorMag
 * @since      ColorMag 1.0
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<div class="share-buttons">
	<span class="share"><?php esc_html_e( 'Share This Post:', 'colormag' ); ?></span>

	<?php if ( 1 === get_theme_mod( 'colormag_enable_social_share_twitter', 1 ) ) { ?>
		<div class="box">
			<div id="twitter" class="twitter-share share" data-share="twitter-share">
				<i class="fa-brands fa-square-x-twitter"></i>
			</div>
		</div>
	<?php } ?>

	<?php if ( 1 === get_theme_mod( 'colormag_enable_social_share_facebook', 1 ) ) { ?>
		<div class="box">
			<div id="facebook" class="facebook-share share" data-share="facebook-share">
				<i class="fa fa-facebook-square"></i>
			</div>
		</div>
	<?php } ?>

	<?php if ( 1 === get_theme_mod( 'colormag_enable_social_share_pinterest', 1 ) ) { ?>
		<div class="box">
			<div id="pinterest" class="pinterest-share share" data-share="pinterest-share">
				<i class="fa fa-pinterest"></i>
			</div>
		</div>
	<?php } ?>

	<?php if ( 1 === get_theme_mod( 'colormag_enable_social_share_email', 1 ) ) { ?>
		<div class="box">
			<div id="email" class="email-share share" data-share="email-share">
				<i class="fa fa-envelope"></i>
			</div>
		</div>
	<?php } ?>
</div>
PK+�[��VDDheader/header-main.phpnu�[���<?php
/**
 * Main header markup file.
 *
 * @package ColorMag
 *
 * TODO: @since.
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$header_image_position = get_theme_mod( 'colormag_header_media_position', 'position-two' );

if ( 'position-one' === $header_image_position ) {
	the_custom_header_markup();
}

	// Display the middle header bar.
	do_action( 'colormag_header_one' );

if ( 'position-two' === $header_image_position ) {
	the_custom_header_markup();
}

	// Display the below header bar.
	do_action( 'colormag_header_two' );

PK+�[@O<�W	W	&header/site-branding/site-branding.phpnu�[���<?php
/**
 * Site branding template file.
 *
 * @package ColorMag
 *
 * TODO: @since.
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

$screen_reader       = '';
$description         = get_bloginfo( 'description', 'display' );
$header_display_type = get_theme_mod( 'colormag_header_logo_placement', 'header_text_only' );

?>
					<div id="cm-site-branding" class="cm-site-branding">
		<?php
		if ( function_exists( 'the_custom_logo' ) ) {
			the_custom_logo();
		}
		?>
					</div><!-- #cm-site-branding -->
	<?php

	if ( false === get_theme_mod( 'colormag_enable_site_identity', 'true' ) || false === get_theme_mod( 'colormag_enable_site_tagline', true ) ) {
		$screen_reader = 'screen-reader-text';
	}
	?>

<?php

if ( true == get_theme_mod( 'colormag_enable_site_identity', 'true' ) || true == get_theme_mod( 'colormag_enable_site_tagline', true ) ) {
	?>
	<div id="cm-site-info" class="<?php echo esc_attr( $screen_reader ); ?>">
		<?php
		if ( true == get_theme_mod( 'colormag_enable_site_identity', 'true' ) ) {
			if ( is_front_page() || is_home() ) :
				?>
						<h1 class="cm-site-title"<?php echo colormag_schema_markup( 'site-title' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
						</h1>
					<?php else : ?>
						<h3 class="cm-site-title"<?php echo colormag_schema_markup( 'site-title' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a>
						</h3>
						<?php
					endif;
		}
		?>

					<?php
					if ( true == get_theme_mod( 'colormag_enable_site_tagline', 'true' ) ) {
						if ( $description || is_customize_preview() ) :
							?>
						<p class="cm-site-description"<?php echo colormag_schema_markup( 'site-description' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
							<?php echo $description; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
						</p><!-- .cm-site-description -->
							<?php
					endif;
					}
					?>
				</div><!-- #cm-site-info -->
	<?php
}
PK+�[�EZ��'header/primary-menu/main-navigation.phpnu�[���<?php
/**
 * Site navigation template file.
 *
 * @package ColorMag
 *
 * TODO: @since.
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

if ( has_nav_menu( 'primary' ) ) {
	wp_nav_menu(
		array(
			'theme_location'  => 'primary',
			'container_class' => 'cm-menu-primary-container',
			'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
		)
	);
} else {

	require get_template_directory() . '/inc/class-colormag-walker-page.php';
	wp_page_menu(

		array(
			'walker'             => new Colormag_Walker_Page(),
			'has_children_class' => 'menu-item-has-children',
			'current_class'      => 'current-menu-item',
		)
	);
}
PK+�[���??header/top-bar.phpnu�[���<?php
/**
 * Top bar hooks.
 *
 * @package ColorMag
 *
 * TODO: @since
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

/*========================================= Hooks > Header Top ==========================================*/

		$top_bar_enable                 = get_theme_mod( 'colormag_enable_top_bar', 0 );
		$breaking_news_enable           = get_theme_mod( 'colormag_enable_news_ticker', 0 );
		$breaking_news_position         = get_theme_mod( 'colormag_news_ticker_position', 'top-bar' );
		$date_display_enable            = get_theme_mod( 'colormag_date_display', 0 );
		$social_links_enable            = get_theme_mod( 'colormag_enable_social_icons', 0 );
		$social_links_header_visibility = get_theme_mod( 'colormag_enable_social_icons_header', 1 );
		$social_links_header_location   = get_theme_mod( 'colormag_social_icons_header_location', 'top-bar' );
		$top_bar_menu_enable            = get_theme_mod( 'colormag_top_bar_menu_enable', 0 );
		$random_post_icon               = get_theme_mod( 'colormag_enable_random_post', 0 );
		$search_icon                    = get_theme_mod( 'colormag_enable_search', 0 );
		$social_links_enable            = get_theme_mod( 'colormag_enable_social_icons', true );
		$social_links_header_visibility = get_theme_mod( 'colormag_enable_social_icons_header', 1 );
		$social_links_header_location   = get_theme_mod( 'colormag_social_icons_header_location', 'top-bar' );

		?>
<?php if ( 'layout-3' == get_theme_mod( 'colormag_main_header_layout', 'layout-1' ) ): ?>
	<div id="cm-header-2" class="cm-header-2">
		<nav id="cm-primary-nav" class="cm-primary-nav"<?php echo colormag_schema_markup( 'nav' ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>>
			<div class="cm-container">
				<div class="cm-row">
					<?php
					if ( 'home-icon' === get_theme_mod( 'colormag_menu_icon_logo', 'none' ) ) {
						$home_icon_class = 'cm-home-icon';

						if ( is_front_page() ) {
							$home_icon_class = 'cm-home-icon front_page_on';
						}
						?>

						<div class="<?php echo esc_attr( $home_icon_class ); ?>">
							<a href="<?php echo esc_url( home_url( '/' ) ); ?>"
							   title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"
							>

								<?php colormag_get_icon( 'home' ); ?>

							</a>
						</div>
					<?php } ?>

					<?php
					if ( 'logo' === get_theme_mod( 'colormag_menu_icon_logo', 'none' ) ) {
						colormag_menu_logo();
					}

					if ( 1 == $random_post_icon || 1 == $search_icon || ( 1 == $social_links_enable && 1 == $social_links_header_visibility && 'menu' === $social_links_header_location ) ) {
						?>
						<div class="cm-header-actions">
							<?php
							// Displays the social links in header.
							if ( 1 == $social_links_header_visibility && 'menu' === $social_links_header_location ) {
								colormag_social_links();
							}

							// Displays the random post.
							if ( 1 == $random_post_icon ) {
								colormag_random_post();
							}

							// Displays the search icon.
							if ( 1 == $search_icon ) {
								?>
								<div class="cm-top-search">
									<i class="fa fa-search search-top"></i>
									<div class="search-form-top">
										<?php get_search_form(); ?>
									</div>
								</div>
							<?php } ?>
						</div>
					<?php } ?>

					<p class="cm-menu-toggle" aria-expanded="false">
						<?php colormag_get_icon( 'bars' ); ?>
						<?php colormag_get_icon( 'x-mark' ); ?>
					</p>
					<?php
						get_template_part( 'template-parts/header/primary-menu/main-navigation' );
					?>

				</div>
			</div>
		</nav>
	</div>
<?php
endif;
if (
			( 1 == $top_bar_enable ) && (
				( 1 == $date_display_enable ) ||
				( 1 == $breaking_news_enable && 'top-bar' === $breaking_news_position ) ||
				( 1 == $social_links_enable && 1 == $social_links_header_visibility && 'top-bar' === $social_links_header_location ) ||
				( 1 == $top_bar_menu_enable ) || 1 )
		) :
	if ( 1 == $top_bar_enable ) {
		?>
				<div class="cm-top-bar">
					<div class="cm-container <?php echo colormag_top_bar_full_width_area_class(); ?>">
						<div class="cm-row">
							<div class="cm-top-bar__1">
				<?php
				// Date.
				if ( 1 == $date_display_enable ) {
					colormag_date_display();
				}

				// Breaking news.
				if ( 1 == $breaking_news_enable && 'top-bar' === $breaking_news_position ) {
					colormag_breaking_news();
				}
				?>
							</div>

							<div class="cm-top-bar__2">
				<?php
				// Menu.
				if ( 1 == $top_bar_menu_enable ) {
					?>
									<nav class="top-bar-menu">
						<?php
						if ( has_nav_menu( 'top-bar' ) ) {
							wp_nav_menu(
								array(
									'theme_location' => 'top-bar',
									'depth'          => - 1,
								)
							);
						}
						?>
									</nav>
					<?php
				}

				// Social icons.
				if ( 1 == $social_links_header_visibility && 'top-bar' === $social_links_header_location ) {
					colormag_social_links();
				}
				?>
							</div>
						</div>
					</div>
				</div>

				<?php

	}
			endif;
PK+�[��{���content.phpnu�[���PK+�[֟��
�
.content-page.phpnu�[���PK+�[0M���Wfooter/flyout-related-posts.phpnu�[���PK+�[N��``;#entry/entry-header.phpnu�[���PK+�[�6�����&entry/entry-summary.phpnu�[���PK+�[�i>/content-single.phpnu�[���PK+�[�����Z=hooks/footer/footer.phpnu�[���PK+�[�$D@		�Zhooks/content/content.phpnu�[���PK+�[���TT�uhooks/header/header-main.phpnu�[���PK+�[q���!!xyhooks/header/top-bar.phpnu�[���PK+�[Y���?�?�{hooks/header/header.phpnu�[���PK+�[#�^g���hooks/hook-functions.phpnu�[���PK+�[���		��content/related-posts.phpnu�[���PK+�[8�[�content/post-formats.phpnu�[���PK+�[ �[�tt��content/share.phpnu�[���PK+�[��VDDi�header/header-main.phpnu�[���PK+�[@O<�W	W	&��header/site-branding/site-branding.phpnu�[���PK+�[�EZ��'��header/primary-menu/main-navigation.phpnu�[���PK+�[���??��header/top-bar.phpnu�[���PK� �

F1le Man4ger