protected function __output() { $video = array(); if ($this->property['exibir'] == 'selecionadas') { $videos_full = tnb_get_artista_videos($this->user_id); foreach ($videos_full as $video) { if (in_array($video->ID, $this->property['videos'])) { $videos[] = $video; } } } else { $videos = tnb_get_artista_videos($this->user_id); } if (sizeof($videos) > 0) { foreach ($videos as $video) { print_video_player($video->post_excerpt, 440, 330); } } else { if ($this->editable()) { ?> <div class="tnb_add_box_icons"> <p class="text-center bottom"> <?php _e("Você ainda não tem nenhum vídeo. Clique <a href='" . get_author_posts_url($this->user_id) . "/editar/videos/'>aqui</a> para carregá-los.", "tnb"); ?> </p> </div> <?php } } }
<?php $video = tnb_get_artista_video_principal($curauth->ID); ?> <?php if ($video) { ?> <p> <strong><?php _e('Vídeo Principal', 'tnb'); ?> </strong> <br/> <?php print_video_player($video->post_excerpt); ?> </p> <?php } ?> <p> <strong><?php _e('Contato', 'tnb'); ?> </strong> <br/> <?php _e('Responsável', 'tnb');
/** * Monta estrutra para caixa modal e exibe o vídeo de * ajuda de acordo com o contexto passado por parâmetro. * O link para o vídeo deve ser definido no wp-admin. */ function print_help_player_for($for_what) { $options = get_option('help_videos'); $url = $options[$for_what]; if ($url) { ?> <div class="help_video_bar"> <a class="help_video_button" title="Ajuda" alt="Ajuda" onclick="jQuery('#tnb_modal_help_video').dialog('open');"><span>Ajuda</span></a> </div> <div class='tnb_modal' id='tnb_modal_help_video'> <h2>Ajuda</h2> <?php print_video_player($url, 640, 480); ?> </div> <?php } }