function powen_content() { if (powen_mod('content_length') == 'full') { the_content(); } else { the_excerpt(); } }
/** * Needed for Fontawesome * takes user input from the customizer and outputs linked social media icons */ function powen_social_media_icons() { $powen_social_sites = powen_customizer_social_media_array(); /** * Hold an array of all active social urls entered by the user. * @var array */ $active_sites = array(); // any inputs that aren't empty are stored in $active_sites array foreach ($powen_social_sites as $key => $powen_social_site) { $social_url = powen_mod($powen_social_site); if (trim($social_url)) { $active_sites[$powen_social_site] = $social_url; } } // CREATE THE OUTPUT for each active social site, add it as a list item if ($active_sites) { ?> <?php foreach ($active_sites as $site => $site_url) { ?> <div class="powen-social-icon"> <a href="<?php echo esc_url($site_url); ?> " target="new"> <?php if ($site == "vimeo") { ?> <i class="fa fa-<?php echo $site; ?> -square"></i> <?php } else { ?> <i class="fa fa-<?php echo $site; ?> "></i> <?php } ?> </a> </div> <?php } ?> <?php } }
<article id="post-<?php the_ID(); ?> " <?php post_class(); ?> > <div class="powen-featured-img"> <a href="<?php echo esc_url(get_permalink()); ?> " rel="bookmark" > <!-- Featured Images --> <?php if (has_post_thumbnail()) { if (powen_mod('sidebar_position') === 'no-sidebar') { the_post_thumbnail('full'); } else { the_post_thumbnail('large'); } } ?> </a> </div> <div class="article-hentry"> <header class="entry-header"> <?php esc_attr(the_title('<h2 class="entry-title">', '</h2>')); ?>
function powen_the_author() { if (powen_mod('hide_author') == '') { $byline = sprintf(_x('%s', 'post author', 'powen'), '<span class="author vcard"><a class="url fn n" href="' . esc_url(get_author_posts_url(get_the_author_meta('ID'))) . '">' . esc_html(get_the_author()) . '</a></span>'); echo '<span class="byline"> ' . $byline . '</span>'; } }
<?php echo esc_textarea(powen_mod('copyright_textbox'), 'powen'); ?> </a> <?php } ?> <span class="sep"><?php echo apply_filters('powen_footer_site_info_pipe', ' |'); ?> </span> <?php $footerUrl = esc_url('http://supernovathemes.com'); printf(__('%1$s by %2$s.', 'powen'), 'Powen', '<a href= ' . apply_filters('powen_theme_url', $footerUrl) . ' class="powen-site" rel="designer">' . powen_mod('theme_author', 'Supernova Themes') . '</a>'); ?> <?php do_action('powen_footer_site_info_ends'); ?> </div> </div><!-- powen-wrapper --> </div><!-- site-info --> <?php do_action('powen_footer_ends'); ?> </footer><!-- #colophon -->
?> </h2> </div> <?php } else { ?> <div id="title-tagline" class="powen-title-description"> <h1 class='site-title'><a href="<?php echo home_url(); ?> " rel="nofollow">Tone Deaf<span class="ampersand"> & </span>Color Blind</a></h1> <a href="#main-nav"><i class="m"></i><?php echo esc_textarea(powen_mod('menu_two_title_textbox'), 'powen'); ?> </a> </nav> </div> <?php } ?> </div><!-- site-branding --> <?php do_action('powen_after_site_branding'); ?>
<?php /** * Tempate part used in index.php for showing flexslider * @package powen */ $slides = get_theme_mod('powen_slides', powen_default_slides()); ?> <?php if (!powen_mod('hide_slider', false)) { ?> <div id="powen-main-slider" class="clear"> <section id="slider" class="flexslider"> <ul class='slides'> <?php if (is_array($slides)) { foreach ($slides as $slide) { ?> <?php if (!trim($slide['image'])) { continue; } ?> <li> <a href='<?php echo esc_url($slide['link']); ?> '>