Exemplo n.º 1
0
/**
 * Output the status of widets.
 *
 */
function law16_sidebar_desc($sidebar_id)
{
    $desc = '';
    $column = str_replace('footer-', '', $sidebar_id);
    $footer_columns = law16_option('footer_columns');
    if ($column > $footer_columns) {
        $desc = __('This widget area is currently disabled. You can enable it Theme Options - Footer section.', 'base');
    }
    return esc_html($desc);
}
Exemplo n.º 2
0
?>
">
		<div id="primary" class="content-area">
			<main id="main" class="site-main" role="main">

				<?php 
while (have_posts()) {
    the_post();
    ?>

					<?php 
    get_template_part('content', 'single');
    ?>

					<?php 
    if (law16_option('page_comments')) {
        // If comments are open or we have at least one comment, load up the comment template
        if (comments_open() || get_comments_number()) {
            comments_template();
        }
    }
    ?>

				<?php 
}
// end of the loop.
?>

			</main><!-- #main -->
		</div><!-- #primary -->
		<?php 
Exemplo n.º 3
0
<?php

/**
 * @package Law16
 */
$blog_single_thumb = law16_option('blog_single_thumb');
?>
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
>

	<header class="entry-header">
		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>

		<div class="entry-meta">
			<?php 
law16_posted_on();
?>
		</div><!-- .entry-meta -->

	</header><!-- .entry-header -->
	
	<?php 
if ($blog_single_thumb) {
    if (has_post_thumbnail()) {
Exemplo n.º 4
0
				<div class="header-right-widgets clearfix">
					<?php 
        dynamic_sidebar('header-right');
        ?>
				</div>
			</div>
			<?php 
    }
    ?>
			<?php 
}
?>
		</div>
	</header><!-- #masthead -->
	<nav id="site-navigation" class="main-navigation <?php 
if (law16_option('header_fixed')) {
    echo 'fixed-on';
}
?>
" role="navigation">
		<div class="container">
			<?php 
if (has_nav_menu('primary')) {
    ?>
			<div id="nav-toggle"><i class="fa fa-bars"></i></div>
			<ul class="wpc-menu">	
		   	   <?php 
    wp_nav_menu(array('theme_location' => 'primary', 'container' => '', 'items_wrap' => '%3$s'));
    ?>
		    </ul>
			<?php 
Exemplo n.º 5
0
/**
 * Output Footer Tracking Code to wp_footer hook.
 */
function law16_footer_code()
{
    $site_footer_tracking = law16_option('site_footer_tracking');
    if ($site_footer_tracking !== '') {
        echo $site_footer_tracking;
    }
}
Exemplo n.º 6
0
<?php

/**
 * The template for displaying all pages.
 *
 * This is the template that displays all pages by default.
 * Please note that this is the WordPress construct of pages
 * and that other 'pages' on your WordPress site will use a
 * different template.
 *
 * @package Law16
 */
$page_layout = get_post_meta($post->ID, '_wpc_page_layout', true);
$page_breadcrumb = get_post_meta($post->ID, '_wpc_hide_breadcrumb', true);
$page_comment = law16_option('page_comments');
get_header();
?>
		
		<?php 
global $post;
law16_get_page_header($post->ID);
?>
		
		<?php 
if ($page_breadcrumb !== 'on') {
    law16_breadcrumb();
}
?>

		<div id="content-wrap" class="<?php 
echo $page_layout == 'full-screen' ? '' : 'container';
Exemplo n.º 7
0
				<?php 
    }
    ?>
			</div>
			<?php 
}
?>

			<div class="site-info clearfix">
				<div class="copy_text">
					<?php 
if (law16_option('footer_copyright') == '') {
    /* cleanup: */
    printf(__('Copyright &copy; 2015 %1$s.', 'law16'), '<a href="' . esc_url(__(get_home_url(), 'law16')) . '" rel="designer">' . get_bloginfo('name') . '</a>');
} else {
    echo wp_kses_post(law16_option('footer_copyright'));
}
?>
				</div>
				<div class="footer-menu">
					<ul class="footer-menu">
						<?php 
wp_nav_menu(array('theme_location' => 'footer', 'container' => '', 'items_wrap' => '%3$s', 'fallback_cb' => false));
?>
					</ul>
				</div>
			</div><!-- .site-info -->
		</div>
	</footer><!-- #colophon -->
</div><!-- #page -->