64 lines
1.4 KiB
PHP
64 lines
1.4 KiB
PHP
|
|
<div id="title">
|
|
<h2>Inaut<span class="titulo_modificado">Herria</span></h2>
|
|
</div>
|
|
|
|
<div id="player">
|
|
<?php print $links; ?>
|
|
</div>
|
|
|
|
|
|
<?php
|
|
|
|
$args = array(
|
|
'numberposts' => 300,
|
|
'orderby' => 'rand',
|
|
'order' => 'ASC',
|
|
'post_type' => 'marker',
|
|
'post_status' => 'publish',
|
|
'tag_id' => 809
|
|
);
|
|
|
|
|
|
$all_posts=new WP_Query($args);
|
|
|
|
$tracklist = "";
|
|
$tracklist = "<div id='track-list'><div class='antiscroll-wrap'><div id='tracks-wrapper' class='antiscroll-inner'><ul>";
|
|
$objetos = array();
|
|
$links = "";
|
|
$span = array();
|
|
$total = count($all_posts->posts);
|
|
foreach( $all_posts->posts as $post ) : setup_postdata($post); ?>
|
|
<?php
|
|
$tit = array();
|
|
$tit['titulo'] = $post->post_title;
|
|
$tit['id'] = $post->ID;
|
|
|
|
$data = array();
|
|
$files = get_post_meta($post->ID, 'soundmap_attachments_id', FALSE);
|
|
$data['m_files'] = array();
|
|
foreach ($files as $key => $value){
|
|
$file = array();
|
|
$att = get_post($value);
|
|
$file['fileURI'] = wp_get_attachment_url($value);
|
|
$tracklist .="<li><a data-id='{$post->ID}' href='{$file['fileURI']}'>{$post->post_title}</a></li>";
|
|
$data['m_files'][] = $file;
|
|
}
|
|
$tit['archivos'] = $data['m_files'];
|
|
$objetos[] = $tit;
|
|
|
|
endforeach;
|
|
$tracklist .= "</ul></div></div></div>";
|
|
print $tracklist;
|
|
|
|
|
|
?>
|
|
<div id='total'>
|
|
<?php echo $total; ?>
|
|
</div>
|
|
<div id="info">
|
|
<div id= "info-wrapper">
|
|
</div>
|
|
</div>
|
|
|