Priority File Manager

📁 public_html
Base Directory:
/home/ecedu/public_html/wp-content/themes/meta-news
NameTypeSizeActions
📁 .. Folder -
📄 404.php File 991
Edit Download
📄 LICENSE File 35148
Edit Download
📄 archive.php File 1397
Edit Download
📁 assets Folder -
📄 comments.php File 1903
Edit Download
📄 footer.php File 7660
Edit Download
📄 functions.php File 9952
Edit Download
📄 header.php File 28295
Edit Download
📁 inc Folder -
📄 index.php File 2143
Edit Download
📁 languages Folder -
📄 page.php File 947
Edit Download
📄 readme.txt File 4257
Edit Download
📄 rtl.css File 17239
Edit Download
📄 screenshot.png File 331678
Edit Download
📄 search.php File 1415
Edit Download
📄 searchform.php File 629
Edit Download
📄 sidebar-left.php File 498
Edit Download
📄 sidebar.php File 489
Edit Download
📄 single.php File 797
Edit Download
📄 style.css File 140156
Edit Download
📄 template-meta-news.php File 26358
Edit Download
📁 template-parts Folder -
📁 templates Folder -
📄 woocommerce.php File 1823
Edit Download
📄 wpml-config.xml File 426
Edit Download

View File: woocommerce.php

<?php
/**
 * The template for displaying WooCommerce pages
 *
 * This is the template that displays WooCommerce pages by default.
 * Please note that this is the WooCommerce construct of pages
 * and that other 'pages' on your WordPress site may use a
 * different template.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Meta News
 */

get_header();

meta_news_layout_primary(); ?>
	<div class="column-inner">
	<main id="main" class="site-main">

		<?php woocommerce_content(); ?>

	</main><!-- #main -->
	</div><!-- .column-inner -->
	</div><!-- #primary -->

	<?php if ( is_active_sidebar( 'meta_news_woocommerce_sideber' ) ) {

		$meta_news_settings = meta_news_get_option_defaults();
		$meta_news_custom_layout = $meta_news_settings['meta_news_content_layout'];

		global $post;
		if ($post) {
			$meta_news_meta_layout = get_post_meta($post->ID, 'meta_news_sidebarlayout', true);
		}
		if ( empty($meta_news_meta_layout) || is_archive() || is_search() || is_home() ) {
			$meta_news_meta_layout = 'default';
		}

		$woosidebarorder = '';
		if ( ( ('default' == $meta_news_meta_layout) && ('left' == $meta_news_custom_layout) ) || ('meta-left' == $meta_news_meta_layout) ) {
			$woosidebarorder = ' order-lg-1';
		}

		if ( ( ('default' == $meta_news_meta_layout) && ( ('left' == $meta_news_custom_layout) || ('right' == $meta_news_custom_layout) ) ) || ('meta-left' == $meta_news_meta_layout) || ('meta-right' == $meta_news_meta_layout) ) { ?>
			<aside id="secondary" class="col-lg-4 widget-area<?php echo esc_attr($woosidebarorder);?> sticky-column-bottom" role="complementary">
				<div class="column-inner">
					<?php dynamic_sidebar( 'meta_news_woocommerce_sideber' ); ?>
				</div><!-- .column-inner -->
			</aside><!-- #secondary -->
		<?php }

	}

get_footer();