function sys_blog($atts, $content = null) { extract(shortcode_atts(array('cat' => '2', 'limit' => '5', 'pagination' => 'true', 'postmeta' => 'true'), $atts)); global $atp_readmoretxt, $post; $out = ''; $paged = get_query_var('paged') ? get_query_var('paged') : 1; $query = array('category_name' => $cat, 'showposts' => $limit, 'paged' => $paged); query_posts($query); if (have_posts()) { while (have_posts()) { the_post(); $format = get_post_format($post->ID); if (false === $format) { $format = 'standard'; } $out .= '<div class="' . join(' ', get_post_class('post', get_the_ID())) . '" id="post-' . get_the_ID() . '">'; $out .= '<div class="post_content">'; ob_start(); $out .= get_template_part('includes/' . $format); $out .= ob_get_contents(); ob_end_clean(); if ($format != 'link' && $format != 'quote' && $format != 'aside') { $out .= '<h2 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark" title="' . sprintf(__("Permanent Link to %s", 'THEME_FRONT_SITE'), esc_attr(get_the_title())) . '">' . get_the_title() . '</a></h2>'; } if ($postmeta == "true") { $out .= '<div class="post-info">'; $out .= atp_generator('postmetaStyle'); $out .= '</div>'; } if ($format != 'quote') { $out .= '<div class="post-entry">'; $out .= '<p>' . get_the_excerpt() . '</p>'; if ($format != 'quote' && $format != 'link') { $out .= '<a href="' . get_permalink() . '" class="more-link">' . atp_localize($atp_readmoretxt, '<span>', '</span>') . '</a>'; } $out .= '</div>'; } $out .= '</div>'; $out .= '</div>'; } if (!function_exists('atp_pagination')) { if ($pagination == "true") { if (function_exists('atp_pagination')) { $out .= atp_pagination(); } } } wp_reset_query(); } return $out; }
<?php if ($event_venue) { echo '<p>' . atp_localize($atp_venue, '<span>', '</span>') . $event_venue . '</p>'; } ?> <?php if ($event_location) { echo '<p>' . atp_localize($atp_location, '<span>', '</span>'); echo $event_location . '</p>'; } ?> <?php if (isset($event_status) && $event_status != '') { ?> <?php echo '<p>' . atp_localize($atp_event_status, '<span>', '</span>'); echo $event_status . '</p>'; ?> <?php } ?> </div><!-- .event_info--> </div><!-- .event-content--> </div><!-- .event_details--> </div><!-- .event_entry --> </div><!-- .events-list --> <div class="demo-space"></div>
<?php if ($audio_catalog_id != '') { ?> <div class="album-meta"><?php echo atp_localize($atp_album_catid_txt, '<span>', '</span>') . $audio_catalog_id; ?> </div> <?php } ?> <?php if ($audio_genre_music != '') { ?> <div class="album-meta"><?php echo atp_localize($atp_album_genre_txt, '<span>', '</span>'); ?> <?php echo get_the_term_list($post->ID, 'genres', '', ''); ?> </div> <?php } ?> <?php get_template_part('musicband/share', 'link'); ?> </div><!-- .album-details --> </div><!-- .col_fourth -->
if ($format != 'quote') { ?> <div class="post-entry"> <?php the_excerpt(); ?> <?php if ($format != 'quote' && $format != 'aside') { ?> <a class="more-link" href="<?php the_permalink(); ?> "><?php echo atp_localize($atp_readmoretxt, '', ''); ?> </a> <?php } ?> </div> <?php } ?> </div><!-- .post_content --> </div><!-- #post-<?php the_ID(); ?>
} if ($iva_sociables != '') { if (function_exists('follow_social_networks')) { echo '<div class="artist-meta">' . atp_localize($atp_follow_social_txt, '<span>', '</span>'); echo follow_social_networks($iva_sociables); echo '</div>'; } } ?> </div><!-- artist-details --> </div><!-- .col_third --> <div class="col_twothird end"> <?php echo '<div class="iva-np-headwrap">'; echo '<div class="iva-np-title"><h2 class="album-title">' . get_the_title() . ' ' . atp_localize($atp_artist_biography_txt, '', '') . '</h2></div>'; echo '<div class="iva-np-navs">'; echo '<div class="iva-np-pagination">'; echo previous_post_link($link = '%link', '<i class="fa fa-angle-left fa-2x"></i>'); echo next_post_link($link = '%link', '<i class="fa fa-angle-right fa-2x"></i>'); echo '</div>'; echo '</div>'; echo '</div>'; ?> <?php the_content(); ?> <?php echo get_post_meta($post->ID, 'video_content', true);
<?php if ($format != 'quote') { ?> <div class="post-entry"> <?php the_excerpt(); ?> <?php if ($format != 'quote' && $format != 'aside') { ?> <a href="<?php the_permalink(); ?> "><?php echo atp_localize($atp_readmoretxt, '<span>', '</span>'); ?> </a> <?php } ?> </div><!-- .post-entry --> <?php } ?> </div><!-- .post_content --> </div><!-- #post-<?php the_ID();