Dashboard
PHP:
8.1.33
OS:
Linux
User:
lawtemple
/
/
home
/
www
/
lawtemplefirm.com
/
wp-content
/
themes
/
law-temple-theme
📤 Upload
📝 New File
📁 New Folder
Close
Editing: page.php
<?php get_header(); ?> <main id="main-content"> <?php while(have_posts()):the_post(); $hide=get_post_meta(get_the_ID(),'lt_page_hide_title',true);$hero=get_post_meta(get_the_ID(),'lt_page_hero_layout',true);if(!$hero||'default'===$hero)$hero=lt_theme_option('page_default_hero_layout','minimal');$layout=get_post_meta(get_the_ID(),'lt_page_layout',true)?:'default';if('default'===$layout)$layout=lt_theme_option('page_default_layout','full'); if(!$hide&&'none'!==$hero)get_template_part('template-parts/page-hero'); ?> <?php if('builder'===$layout): ?> <article class="lt-page-builder-content"><?php the_content(); ?></article> <?php else: ?> <section class="lt-section"><div class="lt-container <?php echo 'full'===$layout?'lt-wide':''; ?>"> <?php if('sidebar'===$layout): ?><div class="lt-two-col"><article class="lt-prose"><?php the_content(); ?></article><aside><?php if(is_active_sidebar('sidebar'))dynamic_sidebar('sidebar'); ?></aside></div><?php else: ?><article class="lt-prose"><?php the_content(); ?></article><?php endif; ?> </div></section> <?php endif; ?> <?php $cta=get_post_meta(get_the_ID(),'lt_page_cta',true);if(!$cta||'inherit'===$cta)$cta=lt_theme_option('page_default_cta','inherit');if(('show'===$cta||('inherit'===$cta&&absint(lt_theme_option('global_cta_id'))))&&function_exists('lt_theme_global_cta'))lt_theme_global_cta(); endwhile; ?> </main><?php get_footer(); ?>
Save
Cancel