Skip to content

Instantly share code, notes, and snippets.

@ishisaka
Created May 12, 2014 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ishisaka/a1e5538bbfa3fec9bdfc to your computer and use it in GitHub Desktop.
Save ishisaka/a1e5538bbfa3fec9bdfc to your computer and use it in GitHub Desktop.
zenbackの埋め込み
<?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 WordPress
* @subpackage Twenty_Fourteen
* @since Twenty Fourteen 1.0
*/
get_header(); ?>
<div id="main-content" class="main-content">
<?php
if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
// Include the featured content template.
get_template_part( 'featured-content' );
}
?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<?php
// Start the Loop.
while ( have_posts() ) : the_post();
// Include the page content template.
get_template_part( 'content', 'page' );
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}
endwhile;
?>
<!-- X:S ZenBackWidget -->
<div id="zenback-widget-loader"></div>
<script type="text/javascript">
!function(d,i){
if(!d.getElementById(i)){
var r=Math.ceil((new Date()*1)*Math.random());
var j=d.createElement("script");
j.id=i;
j.async=true;
j.src="//w.zenback.jp/v1/?base_uri=http%3A//opcdiary.net/&nsid=93862761284503291%3A%3A93862768532268534&rand="+r;
d.body.appendChild(j);
}
}(document,"zenback-widget-js");
</script>
<!-- X:E ZenBackWidget -->
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar( 'content' ); ?>
</div><!-- #main-content -->
<?php
get_sidebar();
get_footer();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment