Advertisement
Guest User

SO-24700481

a guest
Jul 11th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.27 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Blog List
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div class="content-wrap">
  8.     <div class="content">
  9.         <?php tie_breadcrumbs() ?>
  10.  
  11. <div id="content" class="podcast_archive">
  12.  
  13.         <!--<div class="podcast_full">-->
  14.  
  15.         <?php $args = array(
  16.                   'posts_per_page' => 10
  17.               );
  18.  
  19.               $the_query = new WP_Query( $args ); ?>
  20.  
  21.             <?php if ( $the_query->have_posts() ) { ?>
  22.  
  23.                 <header><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  24.                     <h1><?php _e( 'El Jurado del Pueblo' , 'ss-podcasting' ); ?></h1>
  25.                 </header>
  26.  
  27.                 <?php
  28.                 $feed_url = trailingslashit( home_url() ) . '?feed=podcast';
  29.                 $custom_feed_url = get_option('ss_podcasting_feed_url');
  30.                 if( $custom_feed_url && strlen( $custom_feed_url ) > 0 && $custom_feed_url != '' ) {
  31.                     $feed_url = $custom_feed_url;
  32.                 }
  33.                 $itunes_url = str_replace( array( 'http:' , 'https:' ) , 'itpc:' , $feed_url );
  34.                 ?>
  35.  
  36.                 <section>
  37.  
  38.                     <?php
  39.                     /* Start the Loop */
  40.                     while ( $the_query->have_posts() ) {
  41.                         $the_query->the_post(); ?>
  42.  
  43.                         <?php
  44.                         $terms = wp_get_post_terms( get_the_ID() , 'series' );
  45.                         foreach( $terms as $term ) {
  46.                             $series_id = $term->term_id;
  47.                             $series = $term->name;
  48.                             break;
  49.                         }
  50.                         ?>
  51.  
  52.                         <article class="podcast_episode">
  53.  
  54.                             <?php if( has_post_thumbnail() ) { ?>
  55.                                 <?php $img = wp_get_attachment_image_src( get_post_thumbnail_id() ); ?>
  56.                                 <a>" title="<?php the_title(); ?>">
  57.                                     <?php the_post_thumbnail( 'podcast-thumbnail' , array( 'class' => 'podcast_image' , 'alt' => get_the_title() , 'title' => get_the_title() ) ); ?>
  58.                                 </a>
  59.                             <?php } ?>
  60.  
  61.                             <h3>
  62.                                 <strong><?php the_title(); ?></strong>
  63.                                 <div class="podcast_meta"><?php echo $series; ?><aside></div>
  64.                             </h3>
  65.  
  66. <div id="audio">
  67. <?php global $ss_podcasting;
  68. $enclosure = $ss_podcasting->get_enclosure( get_the_ID() );
  69. if( $enclosure ) {
  70.     $audio_player = $ss_podcasting->audio_player( $enclosure );
  71.     echo $audio_player;
  72. } ?>
  73. <?php the_content(); ?>
  74. </div>
  75. <div id="audioinfo">
  76. <a>">Descargar Audio</a>
  77. <span class="audiometa">
  78. Tamaño: <?php echo get_post_meta(get_the_ID(), 'filesize', true) ?>
  79. </span>
  80. </div>
  81.  
  82. <?php echo do_shortcode('[divider]');?>
  83. </article>
  84.                     <?php
  85.                     }
  86.                     ?>
  87.  
  88.                 </section>
  89.  
  90.             <?php } ?>
  91. <?php wp_pagenavi(); ?>
  92.  
  93.             <div class="podcast_clear"></div>
  94.  
  95.         </div>
  96.  
  97.         <?php comments_template( '', true ); ?>
  98.     </div><!-- .content -->
  99.  
  100. <?php get_sidebar(); ?>
  101. <?php get_footer(); ?>
  102. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement