Sindbad~EG File Manager

Current Path : /home/copmadinaarea/thecopmadinaarea.org/wp-content/themes/deeds/
Upload File :
Current File : /home/copmadinaarea/thecopmadinaarea.org/wp-content/themes/deeds/page.php

<?php
/**
 * Default Template Main File.
 *
 * @package deeds
 * @author  Webinane
 * @version 1.0
 */

get_header();
$data = \deeds\Includes\Classes\Common::instance()->data('single')->get();
$layout = $data->get('layout') ? $data->get('layout') : 'right';
$class = ($data->get('layout') != 'full') ? 'col-lg-8 col-sm-12' : 'col-xs-12 col-sm-12 col-md-12';
$options = deeds_WSH()->option();
$banner_settings = $options->get('banner_titlee');
$banner_background = $options->get('banner_img');
$banner_background_url = isset($banner_background['url']) ? $banner_background['url'] : '';
do_action('deeds_banner', $data);

?>


<section>

<?php 

do_action('deeds_banner', $data);

?>


<!-- <?php
// Get the current post ID
$post_id = get_the_ID();

// Get meta values and print them for debugging
$enable_banner = get_post_meta($post_id, 'banner-meta', true);
$banner_style = get_post_meta($post_id, 'banner_style', true);
$banner_title = get_post_meta(get_the_ID(), 'banner_titlee', true);
$banner_desc = get_post_meta($post_id, 'banner_descc', true);
$enable_breadcrumb = get_post_meta($post_id, 'breadcrumb-switch', true);
$options = deeds_WSH()->option();
$banner_testing = get_post_meta(get_the_ID(), 'banner_titlee');
if($banner_testing){
	print_r($banner_testing);
}else{
	echo "banner settings not found";
}
echo '<pre>';
print_r($banner_testing);

echo '</pre>';
// Print the meta values to see what is being retrieved
echo '<pre>';
echo "Enable Banner: "; var_dump($enable_banner);
echo "Banner Title: "; var_dump($banner_settings);
echo "Banner Title: "; var_dump($banner_title);
echo "Banner Description: "; var_dump($banner_desc);
echo '</pre>';
?> -->






	<div class="banner-section" style="background-image: url('<?php echo esc_url($banner_background_url); ?>');"></div>


	<div class="gap secondary-bg remove-bottom">
		<div class="container">
			<div class="row">
				<?php
				if ($data->get('layout') == 'left') {
					do_action('deeds_sidebar', $data);
				}
				?>
				<div class="<?php echo esc_attr($class); ?>">
					<?php while (have_posts()):
						the_post(); ?>
						<h2><?php the_title(); ?></h2>
						<?php the_content(); ?>
					<?php endwhile; ?>
					<div class="clearfix"></div>
					<?php
					$defaults = array(
						'before' => '<div class="paginate_link">' . esc_html__('Pages:', 'deeds'),
						'after' => '</div>',

					);
					wp_link_pages($defaults);
					?>
					<?php comments_template() ?>
				</div>
				<?php
				if ($layout == 'right') {
					$data->set('sidebar', 'default-sidebar');
					do_action('deeds_sidebar', $data);
				}
				?>
			</div>
		</div>
	</div>
</section><!-- blog section with pagination -->
<?php get_footer(); ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists