protected function __output()
 {
     $musicas = array();
     if ($this->property['exibir'] == 'selecionadas') {
         $musicas = $this->property['musicas'];
     } else {
         $musicas_full = tnb_get_artista_musicas($this->user_id);
         foreach ($musicas_full as $m) {
             $musicas[] = $m->ID;
         }
     }
     if (sizeof($musicas) > 0) {
         printFullPlayer(ids2playlist($musicas));
     } else {
         if ($this->editable()) {
             ?>
         <div class="tnb_add_box_icons">
             <p class="text-center bottom">
                 <?php 
             _e("Você ainda não tem nenhuma música! Clique <a href='" . get_author_posts_url($this->user_id) . "/editar/musicas/'>aqui</a> para carregá-las", "tnb");
             ?>
             </p>
         </div>
     <?php 
         }
     }
 }
Example #2
0
_e("cadastro", "tnb");
?>
</a>
    </div>

    <?php 
if (function_exists("insert_post_highlights")) {
    insert_post_highlights();
}
?>
    
    <article class="grid_7">
        <div id="player" class="box box-shadow">
            <?php 
$musicasRecentes = $wpdb->get_col("SELECT ID FROM {$wpdb->posts} WHERE post_parent IN (SELECT ID FROM {$wpdb->posts} WHERE post_type = 'music') ORDER BY RAND() LIMIT 10");
printCompactPlayer(ids2playlist($musicasRecentes));
?>
            
            <h3 class="text-center">
                <?php 
echo get_theme_option('slogan');
?>
            </h3>
            
        </div>
    </article>

    <div class="grid_9">
        <div class="home-banner home-banner-top box box-shadow">
            <?php 
WPEB_printBanner('home superior');
Example #3
0
function print_audio_player($post_id)
{
    printSinglePlayer(ids2playlist(array($post_id)));
}