<?php

/**
 * @Package: WordPress Plugin
 * @Subpackage: Ultra Portfolio
 * @Since: Ultra Portfolio 1.0
 * @Current Version: Ultra Portfolio 3.1
 * @WordPress Version: 3.5 or above
 * This file is part of Ultra Portofolio WordPress Plugin.
 */
/*
  if(in_array('lightbox',$showthis) && $detarr['exttype'] == "image" &&  trim($detarr['largeimage']) != ""){$disp .= '<a href="'.$detarr['largeimage'].'" class="info uport-fancy-'.$pid.' "  data-fancypox-group="'.trim($detarr['catclass']).'" title="'.$detarr['titlefull'].'" ><span class="icon-image"></span></a>';}
  else if(in_array('lightbox',$showthis) && $detarr['exttype'] == "video" &&  trim($detarr['ext']) != ""){$disp .= '<a href="'.$detarr['ext'].'" class="info uport-fancy-'.$pid.' "  data-fancypox-group="'.trim($detarr['catclass']).'" title="'.$detarr['titlefull'].'" ><span class="icon-film"></span></a>';}
  else if(in_array('lightbox',$showthis) && $detarr['exttype'] == "videofile" &&  trim($detarr['extvideo']) != ""){$disp .= '<a href="#videofile-'.$detarr['id'].'-'.$pid.'" class="info uport-fancy-'.$pid.' "  data-fancypox-group="'.trim($detarr['catclass']).'" title="'.$detarr['titlefull'].'" ><span class="icon-film"></span></a>';}
  else if(in_array('lightbox',$showthis) && $detarr['exttype'] == "audio" &&  trim($detarr['extaudio']) != ""){$disp .= '<a href="#audio-'.$detarr['id'].'-'.$pid.'" class="info uport-fancy-'.$pid.' "  data-fancypox-group="'.trim($detarr['catclass']).'" title="'.$detarr['titlefull'].'" ><span class="icon-headphones"></span></a>';}
  else if(in_array('lightbox',$showthis) && $detarr['exttype'] == "embed" &&  trim($detarr['extembed']) != ""){$disp .= '<a href="#embed-'.$detarr['id'].'-'.$pid.'" class="info uport-fancy-'.$pid.' "  data-fancypox-group="'.trim($detarr['catclass']).'" title="'.$detarr['titlefull'].'" ><span class="icon-expand"></span></a>';}
 */


//$fancytitle = "" . $detarr['titlefull'] . " <br>[" . $detarr['catclassval'] . "]";
//<br>".$detarr['descfull'];
// image
if ($showlightbox && $detarr['exttype'] == "image" && trim($detarr['largeimage']) != "") {
    $disp .= '<a href="' . $detarr['largeimage'] . '" class="info uport-fancy-' . $pid . ' "  data-fancypox-group="' . $pid . '" alt="' . $fancytitle . '"  >' . $lb_imagedata . '</a>';
}



// video type
else if ($showlightbox && $detarr['exttype'] == "video" && trim($detarr['ext']) != "") {
    $disp .= '<a href="' . $detarr['ext'] . '" class="info uport-fancy-' . $pid . ' "  data-fancypox-group="' . $pid . '"  alt="' . $fancytitle . '"  >' . $lb_videodata . '</a>';
}



// videofile
else if ($showlightbox && $detarr['exttype'] == "videofile" && trim($detarr['extvideo']) != "") {
    $disp .= '<a href="#videofile-' . $detarr['id'] . '-' . $pid . '" class="info uport-fancy-' . $pid . ' "  data-fancypox-group="' . $pid . '" alt="' . $fancytitle . '"  >' . $lb_videodata . '</a>';
}



// audio
else if ($showlightbox && $detarr['exttype'] == "audio" && trim($detarr['extaudio']) != "") {
    $disp .= '<a href="#audio-' . $detarr['id'] . '-' . $pid . '" class="info uport-fancy-' . $pid . ' "  data-fancypox-group="' . $pid . '"  alt="' . $fancytitle . '"  >' . $lb_audiodata . '</a>';
}



// embed code
else if ($showlightbox && $detarr['exttype'] == "embed" && trim($detarr['extembed']) != "") {
    $disp .= '<a href="#embed-' . $detarr['id'] . '-' . $pid . '" class="info uport-fancy-' . $pid . ' "  data-fancypox-group="' . $pid . '"  alt="' . $fancytitle . '"  >' . $lb_embeddata . '</a>';
}
?>