Beispiel #1
0
<?php

/**
 * @package WPCharming
 */
$blog_single_thumb = wpcharming_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 
wpcharming_posted_on();
?>
		</div><!-- .entry-meta -->

	</header><!-- .entry-header -->
	
	<?php 
if ($blog_single_thumb) {
    if (has_post_thumbnail()) {
Beispiel #2
0
/**
 * Output the status of widets for topbar.
 *
 */
function wpcharming_topbar_desc($sidebar_id)
{
    $desc = '';
    $header_style = wpcharming_option('header_style');
    if ($header_style == '' || $header_style == 'header-default') {
        $desc = __('This widget area is currently disabled because you are using default header ( Theme Option > Header ) and it only available for Header Topbar or Header Centered.', 'wpcharming');
    } else {
        $desc = '';
    }
    return esc_html($desc);
}
Beispiel #3
0
    }
    ?>
			</div>
			<?php 
}
?>
		</div>
		<div class="site-info-wrapper">
			<div class="container">
				<div class="site-info clearfix">
					<div class="copy_text">
						<?php 
if (wpcharming_option('footer_copyright') == '') {
    printf(__('Copyright &copy; 2015 %1$s - Designed & Programmed By %2$s', 'wpcharming'), get_bloginfo('name'), '<a href="' . esc_url(__('http://dragon.computer/', 'wpcharming')) . '" rel="designer">DRAGON.COMPUTER</a>');
} else {
    echo wp_kses_post(wpcharming_option('footer_copyright'));
}
?>
					</div>
					<div class="footer-menu">
						<?php 
wp_nav_menu(array('menu' => 'Footer Right Menu', 'theme_location' => 'footer', 'fallback_cb' => false));
?>
					</div>
				</div>
			</div>
		</div>
	</footer><!-- #colophon -->

</div><!-- #page -->
Beispiel #4
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 WPCharming
 */
global $wpc_option;
$page_layout = get_post_meta($post->ID, '_wpc_page_layout', true);
$page_breadcrumb = get_post_meta($post->ID, '_wpc_hide_breadcrumb', true);
$page_comment = wpcharming_option('page_comments');
wpcharming_get_header();
?>
		
		<?php 
global $post;
wpcharming_get_page_header($post->ID);
wpcharming_get_page_title($post->ID);
?>
		
		<?php 
if ($page_breadcrumb !== 'on') {
    wpcharming_breadcrumb();
}
?>
/**
 * Output Footer Tracking Code to wp_footer hook.
 */
function wpcharming_footer_code()
{
    $site_footer_tracking = wpcharming_option('site_footer_tracking');
    if ($site_footer_tracking !== '') {
        echo $site_footer_tracking;
    }
}
Beispiel #6
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 (wpcharming_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 
Beispiel #7
0
/**
 * Output the status of widets.
 *
 */
function wpcharming_sidebar_desc($sidebar_id)
{
    $desc = '';
    $column = str_replace('footer-', '', $sidebar_id);
    $footer_columns = wpcharming_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);
}
Beispiel #8
0
	<a class="skip-link screen-reader-text" href="#content"><?php 
_e('Skip to content', 'wpcharming');
?>
</a>

	<header id="masthead" class="site-header <?php 
if (wpcharming_option('header_fixed')) {
    echo 'fixed-on';
}
?>
" role="banner">
		<div class="header-wrap">
			<div class="container">
				<div class="site-branding">
					<?php 
if (wpcharming_option('site_logo', false, 'url') !== '') {
    ?>
					<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
" title="<?php 
    echo esc_attr(get_bloginfo('name', 'display'));
    ?>
" rel="home">
						<img src="<?php 
    echo wpcharming_logo_render();
    ?>
" alt="<?php 
    get_bloginfo('name');
    ?>
" />