function peekwp_custom_css() { $custom_css = ''; /**custom css field**/ if (peekwp_option('custom_css_box')) { $custom_css .= peekwp_option('custom_css_box'); } //trim white space for faster page loading $custom_css_trimmed = preg_replace('/\\s+/', ' ', $custom_css); //echo css $css_output = "<!-- Custom CSS -->\n<style type=\"text/css\">\n" . $custom_css_trimmed . "\n</style>"; if (!empty($custom_css)) { echo $css_output; } }
/** * The template for displaying the footer. * * Contains the closing of the #content div and all content after * * @package PeekWP */ ?> </div><!-- #content --> <footer id="colophon" class="site-footer" role="contentinfo"> <div class="site-info"> <?php if (peekwp_option('footer-text') != '') { echo peekwp_option('footer-text'); } else { ?> <h4>Created by <a href="http://braginteractive.com">Brad Williams</a> - © <?php _e('Copyright', 'peekwp'); ?> <?php echo date('Y'); ?> </h4> <?php } ?> </div><!-- .site-info --> </footer><!-- #colophon -->
<body <?php body_class(); ?> > <main class="cd-main"> <div id="page" class="hfeed site"> <header id="masthead" class="site-header" role="banner"> <div class="site-branding"> <?php if (peekwp_option('custom_logo', false, 'url') !== '') { ?> <div class="logo"> <img src="<?php echo peekwp_option('custom_logo', false, 'url'); ?> " alt="<?php bloginfo('name'); ?> " /> </div> <?php } else { ?> <h1 class="site-title"><?php bloginfo('name'); ?> </h1> <h2 class="site-description"><?php bloginfo('description');