예제 #1
0
function videoGallery($link, $main = 0)
{
    $embedlink = convertYoutube($link, $main);
    return $embedlink;
}
        $akvopedia = true;
        $titleAttrs = ' id="' . $akvopedia_title_id . '"';
    }
    ?>
  <article <?php 
    post_class();
    ?>
>
    <div class="bg">
      <?php 
    if ($type != 'media') {
        ?>
      <div class="main-image">
        <?php 
        if (in_array($type, array('video', 'testimonial'), true)) {
            $url = convertYoutube(get_post_meta(get_the_ID(), '_video_extra_boxes_url', true));
            ?>
          <div class='embed-container'>
            <?php 
            echo $url;
            ?>
          </div>
          <?php 
        } else {
            $map = get_post_meta(get_the_ID(), '_map_option_address', true);
            if (!empty($map)) {
                flexmap_show_map(array('width' => '100%', 'height' => '400px', 'address' => $map));
            } else {
                the_post_thumbnail('large');
            }
        }
예제 #3
0
function videoGallery($link)
{
    $embedlink = convertYoutube($link);
    $output = $embedlink;
    return $output;
}