コード例 #1
0
ファイル: content-single.php プロジェクト: dipsad/ins
<?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()) {
コード例 #2
0
ファイル: extras.php プロジェクト: mertyildiran/grandinsaat
/**
 * 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);
}
コード例 #3
0
ファイル: footer.php プロジェクト: mertyildiran/grandinsaat
    }
    ?>
			</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 -->
コード例 #4
0
ファイル: page.php プロジェクト: mertyildiran/grandinsaat
<?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();
}
?>
コード例 #5
0
/**
 * 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;
    }
}
コード例 #6
0
ファイル: header.php プロジェクト: dipsad/ins
				<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 
コード例 #7
0
ファイル: extras.php プロジェクト: dipsad/ins
/**
 * 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);
}
コード例 #8
0
ファイル: header.php プロジェクト: mertyildiran/grandinsaat
	<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');
    ?>
" />