Beispiel #1
0
 function usp_meta($attr, $content = null)
 {
     extract(shortcode_atts($args = array('id' => false, 'meta' => false), $attr));
     return usp_get_meta($id, $meta);
 }
                    <td><a href="" class="speaker_sort">CONTRIBUTOR<i class="fa fa-caret-down"></i></a></td>
                    <td><a href="" class="date_sort">DATE<i class="fa fa-caret-down"></i></a></td>
                    <td>
                    	<span class="logo_pdf"></span>
                        <span class="logo_video"></span>
                        <span class="logo_audio"></span>
                    </td>
                </tr>
                <? while ( have_posts() ) : the_post(); 
					$author_id=$post->post_author;
					/*$pdf = get_field("pdf", $post->ID);
					$video_file = get_field("video_file", $post->ID);
                    $audio_file = get_field("audio_file", $post->ID);*/
                    $pdf = usp_get_meta(false, 'usp-file-1');
                    $video_file = usp_get_meta(false, 'usp-file-2');
                    $audio_file = usp_get_meta(false, 'usp-file-3');
				?>
                <tr>
                	<td><a href="#lecture_content" class="btn_lecture_detail various" data-code="<?=$post->ID;?>"><? the_title(); ?></a></td>
                    <td><a href="#author_content" class="btn_author_detail various" data-code="<?=$author_id;?>"><?=the_author_meta( 'display_name' , $author_id ); ?></a></td>
                    <td><?php echo get_the_time('F j, Y', $post->ID); ?><br /><?=get_the_time('g:ia', $post->ID);?></td>
                    <td>
                    	<? //if(count($pdf) > 1) { 
                            if($pdf!="") {
                                 if(is_user_logged_in()){?>
	                    	<a href="<?=$pdf?>" target="_blank">
                                <? } ?>
                                <span class="logo_pdf enable"></span>
                                <? if(is_user_logged_in()){?>
                            </a>
                                <? } ?>
Beispiel #3
0
                    <td><a href="" class="date_sort">DATE<i class="fa fa-caret-down"></i></a></td>
                    <td>&nbsp;</td>
                </tr>
                <? while ( $results->have_posts() ) : $results->the_post(); 
					$author_id=$post->post_author;
                    $id=get_the_ID();
					/*$media_file = get_field("file", $id);*/

				?>
                <tr>
                	<td><a href="#lecture_content" class="btn_lecture_detail various" data-code="<?=$post->ID;?>"><? the_title(); ?></a></td>
                    <td><a href="#author_content" class="btn_author_detail various" data-code="<?=$author_id;?>"><?=the_author_meta( 'display_name' , $author_id ); ?></a></td>
                    <td><?php echo get_the_time('F j, Y', $post->ID); ?><br /><?=get_the_time('g:ia', $id);?></td>
                    <td align="center">
                    <?  if(is_user_logged_in()){?>
	                    <a href="<?=usp_get_meta(false, 'usp-file-single')?>" target="_blank"><span class="logo_video enable"></span></a>
                    <? }else{ ?>
                        <span class="logo_video enable"></span>
                    <? } ?>
                    </td>
                </tr>
                <? endwhile; ?>				
            </table>
        </div>        
        <?php
		  if (function_exists(custom_pagination)) {
			custom_pagination($results->max_num_pages,"",$paged);
		  }
		?>
	</div>
</div>