Beispiel #1
0
 function gabfire_media($parameters)
 {
     if (!post_password_required()) {
         global $post, $gab_video, $gab_thumb, $gab_flv, $gab_iframe;
         $gab_thumb = get_post_meta($post->ID, 'thumbnail', true);
         $gab_flv = get_post_meta($post->ID, 'videoflv', true);
         $gab_iframe = get_post_meta($post->ID, 'iframe', true);
         /* If we have installed and activated Gabfire Media Plugin */
         if (function_exists('gabfire_mediaplugin_thumbnail')) {
             if ($gab_flv != '' and $parameters['enable_video'] == 1) {
                 gabfire_mediaplugin_localvideo($parameters);
             } elseif ($gab_iframe != '' and $parameters['enable_video'] == 1) {
                 gabfire_mediaplugin_oembedvideo($parameters);
             } elseif (has_post_thumbnail() and $parameters['enable_thumb'] == 1) {
                 gabfire_mediaplugin_thumbnail($parameters);
             } elseif ($parameters['enable_default'] == 1) {
                 gabfire_mediaplugin_default($parameters);
             }
         } else {
             if ($gab_iframe != '' and $parameters['enable_video'] == 1) {
                 gabfire_call_iframe($parameters);
             } elseif (has_post_thumbnail() and $parameters['enable_thumb'] == 1) {
                 gabfire_call_post_thumb($parameters);
             } elseif ($parameters['enable_default'] == 1) {
                 gabfire_call_default_thumb($parameters);
             }
         }
     }
 }
Beispiel #2
0
 function gabfire_media($parameters)
 {
     if (!post_password_required()) {
         global $post, $video_mp4, $video_webm, $video_ogv, $gab_iframe;
         $gab_iframe = get_post_meta($post->ID, 'iframe', true);
         /* If we have installed and activated Gabfire Media Plugin */
         if (function_exists('gabfire_mediaplugin_thumbnail')) {
             gabfire_mediaplugin($parameters);
         } else {
             if ($gab_iframe != '' and $parameters['enable_video'] == 1) {
                 gabfire_call_iframe($parameters);
             } elseif (has_post_thumbnail() and $parameters['enable_thumb'] == 1) {
                 gabfire_call_post_thumb($parameters);
             } elseif ($parameters['enable_default'] == 1) {
                 gabfire_call_default_thumb($parameters);
             }
         }
     }
 }