コード例 #1
0
    <footer class="footer">
        <div class="page-container">
            <a href="http://lifeordeath.co" class="footer__logo" target="_blank">
                <svg role="img" title="CodePen" viewBox="0 0 184 129">
                    <use xlink:href="<?php 
BPAssetHelper::the_image('svgsprite.svg');
?>
#lod-logo"/>
                </svg>
            </a>
            <a class="footer__profile" href="<?php 
echo admin_url('/profile.php');
?>
">View Profile</a> 
            <a class="footer__credit" href="http://pbj.me" target="_blank">Built By pbj</a>
        </div>
    </footer>
    
</div>
<?php 
wp_footer();
?>
</body>
</html>
コード例 #2
0
				<?php if ( $outlet_circulation ) : ?>
				<li class="report__stats-item">Circulation: <?php echo $outlet_circulation; ?></li>
				<?php endif; ?>

				<?php if ( $outlet_site_visits ) : ?>
				<li class="report__stats-item">Unique Visitors: <?php echo $outlet_site_visits; ?></li>
				<?php endif; ?>
				<?php if ( $facebook ) : ?>
					<li class="report__stats-item">
						<img src="<?php BPAssetHelper::the_image('icon-facebook.svg');?>" alt="">	
						<?php echo fbLikeCount($facebook) ?>
					</li>
				<?php endif; ?>
				<?php if ( $twitter ) : ?>
					<li class="report__stats-item">
						<img src="<?php BPAssetHelper::the_image('icon-twitter.svg');?>" alt="">
						<?php echo twitter_follower_count($twitter); ?>
					</li>
				<?php endif; ?>
			</ul>
		<?php endif; ?>
	</div>
	<?php if ($notes || $links) : ?>
		<?php if ( $type == 'news' ) : ?>
			<div class="links">
				<p class=""><a href="<?php echo $links; ?>" target="_blank"><?php echo $links; ?></a>
			</div>
		<?php else : ?>
			<div class="notes">
				<h2 class="report__notes-title">Notes</h2>
				<?php echo $notes; ?>
コード例 #3
0
<?php

/* ------------------------------------------------------------
 *
 * JAVASCRIPT ENQUEUEING
 * 
 * Enqueue all Javascript files required by the theme below.
 * 
 * ------------------------------------------------------------ */
add_action('wp_enqueue_scripts', function () {
    /*-------------------------------------------- */
    /** Deregistration */
    /*-------------------------------------------- */
    /*-------------------------------------------- */
    /** Head Scripts */
    /*-------------------------------------------- */
    /*-------------------------------------------- */
    /** Footer Scripts */
    /*-------------------------------------------- */
    wp_enqueue_script('vendor', BPAssetHelper::get_js('built/vendor.bundle.js'), null, null, true);
    wp_enqueue_script('main', BPAssetHelper::get_js('built/main.bundle.js'), array('vendor'), null, true);
    wp_enqueue_script('twitter', '//platform.twitter.com/widgets.js', false, false, true);
});
コード例 #4
0
			<a class="nav__item" href="#reviews">Reviews</a>
			<?php endif; ?>

			<?php if ( $tours_recap ) : ?>
			<a class="nav__item" href="#tours">Tour</a>
			<?php endif; ?>

			<?php if ( $pending_recap ) : ?>
			<a class="nav__item" href="#pending">Pending</a>
			<?php endif; ?>

			<?php if ( $passed_recap ) : ?>
			<a class="nav__item" href="#passed">Passed</a>
			<?php endif; ?>

			<?php if ( $news_recap ) : ?>
			<a class="nav__item" href="#news">News</a>
			<?php endif; ?>

			<?php if ( $tv_radio_recap ) : ?>
			<a class="nav__item" href="#radio">TV / Radio</a>
			<?php endif; ?>
		</div>
		<a href="http://lifeordeath.co" class="nav__logo" target="_blank">
			<svg role="img" title="CodePen" viewBox="0 0 184 129">
			    <use xlink:href="<?php BPAssetHelper::the_image('svgsprite.svg');?>#lod-logo"/>
			</svg>
		</a>
	</nav>
<?php endif; ?>
コード例 #5
0
<?php

/* ------------------------------------------------------------
 *
 * STYLESHEET ENQUEUEING
 * 
 * Enqueue all stylesheets required by the theme below.
 *  
 * ------------------------------------------------------------ */
add_action('wp_enqueue_scripts', function () {
    if (defined('BENCHPRESS') && BENCHPRESS) {
        wp_enqueue_style('main', BPAssetHelper::get_css('main.min.css'));
        wp_enqueue_style('print', BPAssetHelper::get_css('print.css'), array(), false, 'print');
    } else {
        wp_enqueue_style('main', get_template_directory_uri() . '/assets/css/main.min.css');
    }
});
function google_fonts()
{
    wp_enqueue_style('google-fonts', 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700|Source+Serif+Pro');
}
add_action('wp_enqueue_scripts', 'google_fonts');