Exemplo n.º 1
0
	<a href="<?php 
rtmedia_permalink();
?>
" title="<?php 
echo esc_attr(rtmedia_title());
?>
"
	   class="<?php 
echo esc_attr(apply_filters('rtmedia_gallery_list_item_a_class', 'rtmedia-list-item-a'));
?>
">

		<div class="rtmedia-item-thumbnail">
			<?php 
echo wp_kses(rtmedia_duration(), array('span' => array('class' => array())));
?>
			<img src="<?php 
rtmedia_image('rt_media_thumbnail');
?>
" alt="<?php 
rtmedia_image_alt();
?>
">
		</div>

		<?php 
if (apply_filters('rtmedia_media_gallery_show_media_title', true)) {
    ?>
			<div class="rtmedia-item-title">
				<h4 title="<?php 
Exemplo n.º 2
0
 function json_output()
 {
     global $rtmedia_query, $rtmedia;
     $options = $rtmedia->options;
     $media_array = array();
     if ($rtmedia_query->media) {
         foreach ($rtmedia_query->media as $key => $media) {
             $media_array[$key] = $media;
             $media_array[$key]->guid = rtmedia_image('rt_media_thumbnail', $media->id, false);
             $media_array[$key]->rt_permalink = get_rtmedia_permalink($media->id);
             $media_array[$key]->duration = rtmedia_duration($media->id);
             $media_array[$key] = apply_filters('rtmedia_media_array_backbone', $media_array[$key]);
         }
     }
     $return_array['data'] = $media_array;
     $return_array['prev'] = rtmedia_page() - 1;
     $return_array['next'] = rtmedia_offset() + rtmedia_per_page_media() < rtmedia_count() ? rtmedia_page() + 1 : -1;
     if (isset($rtmedia->options['general_display_media']) && $options['general_display_media'] == 'pagination') {
         $return_array['pagination'] = rtmedia_get_pagination_values();
     }
     echo json_encode($return_array);
     die;
 }
Exemplo n.º 3
0
?>

    <a href ="<?php 
rtmedia_permalink();
?>
" title="<?php 
echo rtmedia_title();
?>
" class="<?php 
echo apply_filters('rtmedia_gallery_list_item_a_class', 'rtmedia-list-item-a');
?>
">

		<div class="rtmedia-item-thumbnail">
			<?php 
echo rtmedia_duration();
?>
			<img src="<?php 
rtmedia_image("rt_media_thumbnail");
?>
" alt="<?php 
rtmedia_image_alt();
?>
" >
		</div>

		<?php 
if (apply_filters('rtmedia_media_gallery_show_media_title', true)) {
    ?>
			<div class="rtmedia-item-title">
				<h4 title="<?php