git-svn-id: https://192.168.0.254/svn/Proyectos.EstudioJuridicoAlmagro_Web/trunk@3 c22fe52d-42d7-ba4f-95f7-33effcf65713
102 lines
3.5 KiB
PHP
102 lines
3.5 KiB
PHP
<?php extract(wpv_post_info()) ?>
|
|
<div class="side-post-info">
|
|
<a class="post-format-pad" href="<?php echo add_query_arg( 'format_filter', 'audio',home_url()) ?>"><span class="video"></span></a>
|
|
<?php if(wpv_get_option('meta_posted_on')): ?>
|
|
<span class="entry-date" title="<?php the_time(); ?>"><?php the_time('j F'); ?></span>
|
|
<?php endif ?>
|
|
<?php edit_post_link('Edit') ?>
|
|
</div>
|
|
|
|
<div class="post-article">
|
|
<?php po_post_header($meta) ?>
|
|
|
|
<article class="audio-post-format">
|
|
<div class="post-audio">
|
|
<?php
|
|
$source = get_post_meta($post->ID, 'post-link', true);
|
|
preg_match('/\.(\w+)$/i', $source, $matches);
|
|
$file_type = $matches[1];
|
|
?>
|
|
|
|
<div id="jquery_jplayer_<?php the_id()?>" class="jp-jplayer"></div>
|
|
<div class="jp-audio">
|
|
<div class="jp-type-single">
|
|
<div id="jp_interface_<?php the_id()?>" class="jp-interface">
|
|
<div class="jp-video-play"></div>
|
|
<ul class="jp-controls">
|
|
<li><a href="#" class="jp-play" tabindex="1"><?php _e('play', 'wpv')?></a></li>
|
|
<li><a href="#" class="jp-pause" tabindex="1"><?php _e('pause', 'wpv')?></a></li>
|
|
<li><a href="#" class="jp-stop" tabindex="1"><?php _e('stop', 'wpv')?></a></li>
|
|
<li><a href="#" class="jp-mute" tabindex="1"><?php _e('mute', 'wpv')?></a></li>
|
|
<li><a href="#" class="jp-unmute" tabindex="1"><?php _e('unmute', 'wpv')?></a></li>
|
|
</ul>
|
|
<div class="jp-progress">
|
|
<div class="jp-seek-bar">
|
|
<div class="jp-play-bar"></div>
|
|
</div>
|
|
</div>
|
|
<div class="jp-volume-bar">
|
|
<div class="jp-volume-bar-value"></div>
|
|
</div>
|
|
<div class="jp-current-time"></div>
|
|
<div class="jp-duration"></div>
|
|
</div>
|
|
<div id="jp_playlist_<?php the_id()?>" class="jp-playlist">
|
|
<ul>
|
|
<li><?php the_title()?></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php if(!empty($file_type)): ?>
|
|
<script type="text/javascript">
|
|
jQuery(function($){
|
|
$("#jquery_jplayer_<?php the_id()?>").jPlayer({
|
|
ready: function () {
|
|
$(this).jPlayer("setMedia", {
|
|
<?php echo $file_type?>: "<?php echo $source?>"
|
|
});
|
|
},
|
|
swfPath: "<?php echo WPV_SWF ?>",
|
|
supplied: "<?php echo $file_type?>",
|
|
cssSelectorAncestor: '#jp_interface_<?php the_id()?>'
|
|
,errorAlerts: true
|
|
,warningAlerts: true <?php // should we have error and warning alerts? ?>
|
|
});
|
|
});
|
|
</script>
|
|
<?php endif ?>
|
|
</div>
|
|
|
|
<div class="post-content">
|
|
<?php
|
|
if(is_single()) {
|
|
the_content();
|
|
wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'wpv' ), 'after' => '</div>' ) );
|
|
wpv_share('post');
|
|
} else {
|
|
if($fullpost) {
|
|
global $more;
|
|
$more = 0;
|
|
the_content(__("Read More", 'wpv'),false);
|
|
} else {
|
|
the_excerpt();
|
|
}
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<footer class="entry-utility">
|
|
<?php if($meta && wpv_get_option('meta_posted_in')): ?>
|
|
<span><?php _e('Categories:', 'wpv')?></span> <span><?php echo get_the_category_list(', '); ?></span>
|
|
<?php the_tags('<span>Tags: </span><span>',', ','</span>')?>
|
|
<?php endif ?>
|
|
<?php if(wpv_get_option('meta_comment_count')): ?>
|
|
<span class="comments-link fr"><?php comments_popup_link('<b>Leave a comment</b> <span class="icomment-box">?</span>', '<b>Comment</b> <span class="icomment-box">1</span>', '<b>Comments</b> <span class="icomment-box">%</span>'); ?></span>
|
|
<?php endif ?>
|
|
</footer>
|
|
|
|
</article>
|
|
</div>
|