示例#1
0
 /**
  * Get content to display in Front-End.
  * @param 	Array	$paras	Key and value in {japopup} tag
  * @return 	String	HTML string to display
  * */
 function getContent($paras, $content)
 {
     $arrData = parent::getCommonValue($paras, $content);
     // Generate random id
     $ranID = time() . rand(0, 100);
     // To standard content
     $content = html_entity_decode($content);
     // Config for GreyBox
     $modalBehavior = "gb_page" . $this->_pluginParams->get("group1-greybox-behavior");
     $modalGroup = $this->getValue("group");
     if (!empty($modalGroup)) {
         $relGroup = 'gb_pageset[' . $modalGroup . ']';
     } else {
         $relGroup = '' . $modalBehavior . '[' . $arrData['frameWidth'] . ', ' . $arrData['frameHeight'] . ']';
         $modalGroup = $ranID;
     }
     $arrData["rel"] = $relGroup;
     $arrData["group"] = $modalGroup;
     $arrData["overlayShow"] = $this->_pluginParams->get("overlay");
     $arrData["overlayOpacity"] = $this->_pluginParams->get("overlay_opacity");
     $type = $this->getValue("type");
     $str = "";
     switch ($type) {
         case "ajax":
         case "iframe":
             $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             break;
         case "image":
             if (!empty($modalGroup)) {
                 $arrData['rel'] = 'gb_imageset[' . $modalGroup . ']';
             } else {
                 $arrData['rel'] = 'gb_imageset[' . $ranID . ']';
                 $modalGroup = $ranID;
             }
             $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             break;
         case "slideshow":
             $modalContent = $arrData['content'];
             $arrData['content'] = "";
             foreach ($modalContent as $k => $v) {
                 $image_url = trim($v['url']);
                 $arrData['href'] = $image_url;
                 $arrData['title'] = $v['title'];
                 $arrData['rel'] = "gb_imageset[" . $ranID . "]";
                 $arrData['content'] = "<img src=\"" . $image_url . "\" width='150px' /> ";
                 $str .= $this->showDataInTemplate("greybox", "slideshow", $arrData);
             }
             $str = "<div>" . $str . "</div><div style='clear:both'></div>";
             break;
         case "youtube":
             $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             break;
     }
     // Return value string.
     return $str;
 }
示例#2
0
        /**
         * Get content to display in Front-End.
         * @param 	Array	$paras	Key and value in {japopup} tag
         * @return 	String	HTML string to display
         * */
        function getContent($paras, $content)
        {
            $arrData = parent::getCommonValue($paras, $content);
            // Generate random id
            $ranID = rand(0, 10000);
            // To standard content
            $content = html_entity_decode($content);
            $eventStr = "";
            if ($arrData['onopen'] != "" || $arrData['onclose'] != "") {
                $arrData['onopen'] = $arrData['onopen'] != '' ? ",onOpen: " . $arrData['onopen'] : "";
                $arrData['onclose'] = $arrData['onclose'] != '' ? ",onClose: " . $arrData['onclose'] : "'";
                $eventStr = $arrData['onopen'] . $arrData['onclose'];
            }
            $str = "";
            $modalGroup = $this->getValue("group");
            if (!empty($modalGroup)) {
                $classGroup = 'jagroup' . $modalGroup;
                $str .= '<script type="text/javascript" >
							if(! box' . $modalGroup . ' ) {
								var box' . $modalGroup . ' = {};
								window.addEvent("domready", function()
								{
									box' . $modalGroup . ' = new multiBox({
																		mbClass: \'.jagroupgroup\',
																		container: $(document.body),
																		currentGallery: \'jagroup' . $modalGroup . '\',
																		descClassName: \'multiBoxDesc\',
																		useOverlay: ' . $this->_pluginParams->get("overlay") . ',
																		contentColor: \'#' . $this->_pluginParams->get("group1-multibox-contentColor") . '\',
																		showControls: ' . $this->_pluginParams->get("group1-multibox-showControls") . ' ' . $eventStr . ',
																		maxSize: {w:' . $arrData["frameWidth"] . ', h:' . $arrData["frameHeight"] . '},
																		showNumbers: false,
																		showControls: false
																		});
								});
							}
						</script>';
            } else {
                $classGroup = 'jagroup' . $ranID;
                $str .= '<script type="text/javascript" >
							var box' . $ranID . ' = {};
							window.addEvent("domready", function(){
								box' . $ranID . ' = new multiBox({
															mbClass: \'.' . $classGroup . '\',
															container: $(document.body),//where to inject multiBox
															descClassName: \'multiBoxDesc\',//the class name of the description divs
															useOverlay: ' . $this->_pluginParams->get("overlay") . ',//use a semi-transparent background. default: false;
															contentColor: \'#' . $this->_pluginParams->get("group1-multibox-contentColor") . '\',
															showControls: ' . $this->_pluginParams->get("group1-multibox-showControls") . ',
															maxSize: {w:600, h:400}//max dimensions (width,height) - set to null to disable resizing
															});
							});
						</script>';
            }
            $arrData["group"] = $modalGroup;
            $arrData["id"] = "mb" . $ranID;
            $arrData["class"] = $classGroup;
            $type = $this->getValue("type");
            switch ($type) {
                case "ajax":
                    $arrData['title'] = 'AJAX';
                    $arrData['rel'] = 'width:' . $arrData['frameWidth'] . ',height:' . $arrData['frameHeight'] . ',req:true';
                    $str .= $this->showDataInTemplate('multibox', 'default', $arrData);
                    break;
                case "iframe":
                    $arrData['rel'] = 'width:' . $arrData['frameWidth'] . ',height:' . $arrData['frameHeight'];
                    $str .= $this->showDataInTemplate('multibox', 'default', $arrData);
                    break;
                case "inline":
                    $arrData['href'] = "#" . $arrData['href'];
                    $arrData['rel'] = "type:element";
                    $str .= $this->showDataInTemplate("multibox", "default", $arrData);
                    break;
                case "image":
                    $arrData['rel'] = "[images]";
                    if (trim($arrData['desc']) == '') {
                        $arrData['rel'] .= ',noDesc';
                    }
                    $str .= $this->showDataInTemplate("multibox", "default", $arrData);
                    break;
                case "slideshow":
                    $modalContent = $this->getValue("content");
                    $modalContent = explode(',', $modalContent);
                    $show = false;
                    foreach ($modalContent as $k => $v) {
                        $image_url = trim($v);
                        $arrData['rel'] = "[images],noDesc";
                        $arrData['href'] = $image_url;
                        $arrData['content'] = "";
                        if ($arrData['imageNumber'] == "all") {
                            $arrData['content'] = "<img src=\"" . $image_url . "\" width=\"" . $arrData["frameWidth"] . "\"/>";
                        } elseif ($show === false) {
                            $show = true;
                            $arrData['content'] = $content;
                        }
                        $str .= $this->showDataInTemplate("multibox", "default", $arrData);
                    }
                    break;
                case "youtube":
                    $arrData['rel'] = 'width:' . $arrData['frameWidth'] . ',height:' . $arrData['frameHeight'] . ',[video]';
                    if (trim($arrData['desc']) == '') {
                        $arrData['rel'] .= ',noDesc';
                    }
                    $str .= $this->showDataInTemplate("multibox", "default", $arrData);
                    break;
            }
            //$str = 'Xin chao';
            // Return value string.
            return $str;
        }
示例#3
0
 /**
  * Get content to display in Front-End.
  * @param 	Array	$paras	Key and value in {japopup} tag
  * @return 	String	HTML string to display
  * */
 function getContent($paras, $content)
 {
     $arrData = parent::getCommonValue($paras, $content);
     // Generate random id
     $ranID = time() . rand(0, 100);
     $content = html_entity_decode($content);
     $modalGroup = $this->getValue("group");
     if (!empty($modalGroup)) {
         $relGroup = 'jagroup' . $modalGroup;
     } else {
         $relGroup = '';
     }
     $arrData['group'] = $modalGroup;
     $arrData['rel'] = $relGroup;
     $eventStr = "";
     if ($arrData['onopen'] != "" || $arrData['onclose'] != "") {
         $arrData['onopen'] = $arrData['onopen'] != '' ? "&amp;onOpen=" . $arrData['onopen'] : "";
         $arrData['onclose'] = $arrData['onclose'] != '' ? "&amp;onClose=" . $arrData['onclose'] : "'";
         $eventStr = $arrData['onopen'] . $arrData['onclose'];
     }
     $type = $this->getValue("type");
     $str = "";
     switch ($type) {
         case "ajax":
             $arrData['href'] = $arrData['href'] . "?height=" . $arrData['frameHeight'] . "&amp;width=" . $arrData['frameWidth'] . $eventStr;
             $str .= $this->showDataInTemplate("thickbox", "default", $arrData);
             break;
         case "iframe":
             $arrData['href'] = $arrData['href'] . "?keepThis=true&amp;TB_iframe=true&amp;height=" . $arrData['frameHeight'] . "&amp;width=" . $arrData['frameWidth'] . $eventStr;
             $str .= $this->showDataInTemplate("thickbox", "default", $arrData);
             break;
         case "inline":
             $arrData['href'] = "#TB_inline?height=" . $arrData['frameHeight'] . "&amp;width=" . $arrData['frameWidth'] . "&amp;inlineId=" . $arrData['href'] . $eventStr;
             $str .= $this->showDataInTemplate("thickbox", "default", $arrData);
             break;
         case "image":
             $arrData['href'] = $arrData['href'] . "?keepThis=true&amp;TB_iframe=true" . $eventStr;
             $str .= $this->showDataInTemplate("thickbox", "default", $arrData);
             break;
         case "slideshow":
             $show = false;
             foreach ($modalContent as $k => $v) {
                 $image_url = trim($v);
                 $arrData['href'] = $image_url;
                 $arrData['rel'] = "gallery-plants";
                 $arrData['content'] = "";
                 if ($arrData['imageNumber'] == "all") {
                     $arrData['content'] = "<img src=\"" . $image_url . "\" width=" . $arrData['frameWidth'] . "/>";
                 } elseif ($show === false) {
                     $show = true;
                     $arrData['content'] = $content;
                 }
                 $str .= $this->showDataInTemplate("thickbox", "default", $arrData);
             }
             break;
         case "youtube":
             $arrData['YouTubeLink'] = $arrData['href'];
             $arrData['YouTubeID'] = "youtube" . $ranID;
             $arrData['href'] = "#TB_inline?height=" . $arrData['frameHeight'] . "&amp;width=" . $arrData['frameWidth'] . "&amp;inlineId=youtube" . $ranID . $eventStr;
             $str .= $this->showDataInTemplate("thickbox", "youtube", $arrData);
             break;
     }
     // Return value string.
     return $str;
 }
示例#4
0
 /**
  * Get content to display in Front-End.
  * @param 	Array	$paras	Key and value in {japopup} tag
  * @return 	String	HTML string to display
  * */
 function getContent($paras, $content)
 {
     $arrData = parent::getCommonValue($paras, $content);
     // Generate random id
     $ranID = rand(0, 10000);
     // To standard content
     $content = html_entity_decode($content);
     // Proccess group tag
     $modalGroup = $this->getValue("group");
     if (!empty($modalGroup)) {
         $relGroup = ' rel ="jagroup' . $modalGroup . '"';
     } else {
         $relGroup = '';
         $modalGroup = $ranID;
     }
     $overlayOpacity = $this->_pluginParams->get("overlay_opacity") == 1 ? 0.7 : $this->_pluginParams->get("overlay_opacity");
     $arrData['rel'] = $relGroup;
     $arrData['group'] = $modalGroup;
     $arrData['class'] = "fancybox" . $modalGroup;
     $arrData['zoomSpeedIn'] = $this->_pluginParams->get("group1-fancybox-speed_in", "500");
     $arrData['zoomSpeedOut'] = $this->_pluginParams->get("group1-fancybox-speed_out", "500");
     $arrData['overlayShow'] = $this->_pluginParams->get("overlay", "1");
     $arrData['overlayOpacity'] = $overlayOpacity;
     $arrData["imageScale"] = $this->_pluginParams->get("group1-fancybox-image_scale", "1");
     $arrData["centerOnScroll"] = $this->_pluginParams->get("group1-fancybox-centerOnScroll", "1");
     $type = $this->getValue("type");
     $str = "";
     switch ($type) {
         case "ajax":
             $arrData['group'] = "fancybox" . $arrData['group'];
             $arrData['class'] .= " iframe";
             $str .= $this->showDataInTemplate("fancybox", "ajax", $arrData);
             break;
         case "iframe":
             $arrData['group'] = "fancybox" . $arrData['group'];
             $arrData['class'] .= " iframe";
             $str .= $this->showDataInTemplate("fancybox", "iframe", $arrData);
             break;
         case "inline":
             $arrData['href'] = "#" . $arrData['href'];
             $str .= $this->showDataInTemplate("fancybox", "inline", $arrData);
             break;
         case "image":
             $str .= $this->showDataInTemplate("fancybox", "image", $arrData);
             break;
         case "slideshow":
             if ($arrData['imageNumber'] == "one") {
                 $arrData['imageNumber'] = $content;
             }
             $show = false;
             $arrData['class'] = "group" . $ranID;
             $arrData['rel'] = "slideshow" . $ranID;
             $str .= $this->showDataInTemplate("fancybox", "slideshow", $arrData);
             break;
         case "youtube":
             $arrData['YoutubeLink'] = str_replace("&amp;", "&", $arrData['href']);
             $arrData['YoutubeLink'] = str_replace("&", "&amp;", $arrData['href']);
             $arrData['href'] = str_replace('youtube.com/v/', 'youtube.com/embed/', $arrData['YoutubeLink']);
             if (strpos($arrData['href'], 'youtube.com/embed/') !== false) {
                 $arrData['group'] = "fancybox" . $arrData['group'];
                 $arrData['class'] .= " iframe";
                 $str .= $this->showDataInTemplate("fancybox", "iframe", $arrData);
             } else {
                 $arrData['href'] = "youtubeID" . $ranID;
                 $arrData['useragent'] = $this->get_user_browser();
                 $str .= $this->showDataInTemplate("fancybox", "youtube", $arrData);
             }
             break;
     }
     // Return value string.
     return $str;
 }
示例#5
0
 /**
  * Get content to display in Front-End.
  * @param 	Array	$paras	Key and value in {japopup} tag
  * @return 	String	HTML string to display
  * */
 function getContent($paras, $content)
 {
     $arrData = parent::getCommonValue($paras, $content);
     // Generate random id
     $ranID = time() . rand(0, 100);
     // To standard content
     $content = html_entity_decode($content);
     // Config for GreyBox
     $modalBehavior = "gb_page" . $this->_pluginParams->get("group1-greybox-behavior");
     $modalGroup = $this->getValue("group");
     $modalContent = $this->getValue("content");
     if (!empty($modalGroup)) {
         $relGroup = 'gb_pageset[' . $modalGroup . ']';
     } else {
         $relGroup = '' . $modalBehavior . '[' . $arrData['frameWidth'] . ', ' . $arrData['frameHeight'] . ']';
         $modalGroup = $ranID;
     }
     $arrData["rel"] = $relGroup;
     $arrData["group"] = $modalGroup;
     $arrData["overlayShow"] = $this->_pluginParams->get("overlay");
     $arrData["overlayOpacity"] = $this->_pluginParams->get("overlay_opacity");
     $type = $this->getValue("type");
     $str = "";
     switch ($type) {
         case "ajax":
         case "iframe":
             $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             break;
         case "inline":
             $lang = JFactory::getLanguage();
             $lang->load('plg_system_japopup', JPATH_ADMINISTRATOR);
             return "<a href='#' onclick=\"alert('" . JText::_('NOT_SUPPORT_INLINE_TYPE') . "')\">" . $arrData['content'] . "</a>";
         case "image":
             if (!empty($modalGroup)) {
                 $arrData['rel'] = 'gb_imageset[' . $modalGroup . ']';
             } else {
                 $arrData['rel'] = 'gb_imageset[' . $ranID . ']';
                 $modalGroup = $ranID;
             }
             $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             break;
         case "slideshow":
             $show = false;
             $modalContent = $arrData['content'];
             foreach ($modalContent as $k => $v) {
                 $image_url = trim($v);
                 $arrData['href'] = $image_url;
                 $arrData['rel'] = "gb_imageset[" . $ranID . "]";
                 $arrData['content'] = "";
                 if ($arrData['imageNumber'] == "all") {
                     $arrData['content'] = "<img src=\"" . $image_url . "\" width=\"" . $arrData['frameWidth'] . "\"/>";
                 } elseif ($show === false) {
                     $show = true;
                     $arrData['content'] = $content;
                 }
                 $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             }
             break;
         case "youtube":
             $str .= $this->showDataInTemplate("greybox", "default", $arrData);
             break;
     }
     // Return value string.
     return $str;
 }
示例#6
0
 /**
  * Get content to display in Front-End.
  * @param 	Array	$paras	Key and value in {japopup} tag
  * @return 	String	HTML string to display
  * */
 function getContent($paras, $content)
 {
     $arrData = parent::getCommonValue($paras, $content);
     // Generate random id
     $ranID = rand(0, 10000);
     // To standard content
     $content = html_entity_decode($content);
     $modalContent = $this->getValue("content");
     // Get common value
     $str = "";
     $modalGroup = $this->getValue("group");
     if (!empty($modalGroup)) {
         $captionId = " , captionId: 'CaptionArea" . $modalGroup . date("dHis") . "'";
         if (!isset($_SESSION["CaptionArea" . $modalGroup . date("dHis")])) {
             $str .= $this->showCaptionArea("CaptionArea" . $modalGroup . date("dHis"));
             $_SESSION["CaptionArea" . $modalGroup . date("dHis")] = "true";
         }
     } else {
         $captionId = '';
     }
     $arrData["outlineType"] = $this->_pluginParams->get("group1-highslide-outline") == 0 ? 'null' : " '" . $this->_pluginParams->get("group1-highslide-outline") . "' ";
     $arrData["group"] = $modalGroup;
     $arrData["class"] = "highslide" . $modalGroup;
     $arrData["expandDuration"] = $this->_pluginParams->get("group1-highslide-speed_in");
     $arrData["restoreDuration"] = $this->_pluginParams->get("group1-highslide-speed_out");
     $arrData["captionId"] = $captionId;
     $overlayOpacity = $this->_pluginParams->get("overlay_opacity") == 1 ? 0.7 : $this->_pluginParams->get("overlay_opacity");
     $arrData['overlayOpacity'] = $overlayOpacity;
     // Even proccess
     $arrData['eventStr'] = "";
     if ($arrData['onopen'] != "" || $arrData['onclose'] != "") {
         $arrData['onopen'] = $arrData['onopen'] != '' ? ",onOpen: " . $arrData['onopen'] : "";
         $arrData['onclose'] = $arrData['onclose'] != '' ? ",onClose: " . $arrData['onclose'] : "'";
         $arrData['eventStr'] = $arrData['onopen'] . $arrData['onclose'];
     }
     $type = $this->getValue("type");
     switch ($type) {
         case "ajax":
             $arrData['objectType'] = "ajax";
             //$arrData['objectType'] = "iframe";
             $str .= $this->showDataInTemplate("highslide", "default", $arrData);
             break;
         case "iframe":
             $arrData['objectType'] = "iframe";
             $str .= $this->showDataInTemplate("highslide", "default", $arrData);
             break;
         case "inline":
             $str .= $this->showDataInTemplate("highslide", "inline", $arrData);
             break;
         case "image":
             $arrData['class'] = "highslide";
             //$str .= showDataInTemplate("highslide", "image", $arrData);
             $str .= '<a class="highslide" href="' . $arrData['href'] . '" onclick="return hs.expand(this, {dimmingOpacity:' . $arrData['overlayOpacity'] . ', outlineType:' . $arrData['outlineType'] . ' ' . $arrData['captionId'] . ',maxWidth:' . $arrData['frameWidth'] . ', maxHeight:' . $arrData['frameHeight'] . '});" >' . $content . "</a>";
             break;
         case "slideshow":
             // Show preview image
             $show = false;
             $modalContent = $arrData['content'];
             foreach ($modalContent as $k => $v) {
                 $image_url = trim($v);
                 $arrData['class'] = "highslide";
                 $arrData['href'] = $image_url;
                 $arrData['captionId'] = ", captionId: '" . $ranID . "'";
                 $arrData['content'] = "";
                 if ($arrData['imageNumber'] == "all") {
                     $arrData['content'] = "<img src='" . $image_url . "' width='" . $arrData['frameWidth'] . "'/>";
                 } elseif ($show === false) {
                     $show = true;
                     $arrData['content'] = $content;
                 }
                 // $str .= showDataInTemplate("highslide", "image", $arrData);
                 $str .= '<a class="highslide" href="' . $image_url . '" onclick="return hs.expand(this, {dimmingOpacity:' . $arrData['overlayOpacity'] . ', outlineType:' . $arrData['outlineType'] . ', captionId: \'ja-highslide' . $ranID . '\',maxWidth:' . $arrData['frameWidth'] . ', maxHeight:' . $arrData['frameHeight'] . '});" >' . $arrData['content'] . '</a>';
             }
             // Caption Area
             $str .= $this->showCaptionArea($ranID);
             break;
         case "youtube":
             $arrData['objectType'] = "iframe";
             $str .= $this->showDataInTemplate("highslide", "default", $arrData);
             break;
     }
     // Return value string.
     return $str;
 }
示例#7
0
 /**
  * Get content to display in Front-End.
  * @param 	Array	$paras	Key and value in {japopup} tag
  * @return 	String	HTML string to display
  * */
 function getContent($paras, $content)
 {
     $arrData = parent::getCommonValue($paras, $content);
     // Generate random id
     $ranID = rand(0, 10000);
     // To standard content
     $content = html_entity_decode($content);
     $eventStr = "";
     if ($arrData['onopen'] != "" || $arrData['onclose'] != "") {
         $arrData['onopen'] = $arrData['onopen'] != '' ? ",onOpen: " . $arrData['onopen'] : "";
         $arrData['onclose'] = $arrData['onclose'] != '' ? ",onClose: " . $arrData['onclose'] : "'";
         $eventStr = $arrData['onopen'] . $arrData['onclose'];
     }
     $str = "";
     $modalGroup = $this->getValue("group");
     if (!empty($modalGroup)) {
         $classGroup = 'jagroup' . $modalGroup;
         $str .= '<script type="text/javascript" > if(! box' . $modalGroup . ' ) {var box' . $modalGroup . ' = {}; window.addEvent("domready", function(){ box' . $modalGroup . ' = new MultiBox("jagroup' . $modalGroup . '", {descClassName: "multiBoxDesc", useOverlay: ' . $this->_pluginParams->get("overlay") . ', contentColor: "' . $this->_pluginParams->get("group1-multibox-contentColor") . '", showControls: ' . $this->_pluginParams->get("group1-multibox-showControls") . ' ' . $eventStr . ' }); }); } </script>';
     } else {
         $classGroup = 'jagroup' . $ranID;
         $str .= '<script type="text/javascript" > var box' . $ranID . ' = {}; window.addEvent("domready", function(){ box' . $ranID . ' = new MultiBox("jagroup' . $ranID . '", {descClassName: "multiBoxDesc", useOverlay: ' . $this->_pluginParams->get("overlay") . ', contentColor: "' . $this->_pluginParams->get("group1-multibox-contentColor") . '", showControls: ' . $this->_pluginParams->get("group1-multibox-showControls") . ' ' . $eventStr . ' }); }); </script>';
     }
     $arrData["group"] = $modalGroup;
     $arrData["id"] = "mb" . $ranID;
     $arrData["class"] = $classGroup;
     $type = $this->getValue("type");
     switch ($type) {
         case "ajax":
         case "iframe":
             $arrData['rel'] = "type:iframe,width:" . $arrData["frameWidth"] . ",height:" . $arrData["frameHeight"];
             $str .= $this->showDataInTemplate("multibox", "default", $arrData);
             break;
         case "inline":
             $arrData['href'] = "#" . $arrData['href'];
             $arrData['rel'] = "type:element,width:" . $arrData["frameWidth"] . ",height:" . $arrData["frameHeight"];
             $str .= $this->showDataInTemplate("multibox", "default", $arrData);
             break;
         case "image":
             $arrData['rel'] = "type:jpg";
             $str .= $this->showDataInTemplate("multibox", "default", $arrData);
             break;
         case "slideshow":
             $modalContent = explode(", ", $arrData["href"]);
             $show = false;
             foreach ($modalContent as $k => $v) {
                 $image_url = trim($v);
                 $arrData['rel'] = "type:jpg";
                 $arrData['href'] = $image_url;
                 $arrData['content'] = "";
                 if ($arrData['imageNumber'] == "all") {
                     $arrData['content'] = "<img src=\"" . $image_url . "\" width=\"" . $arrData["frameWidth"] . "\"/>";
                 } elseif ($show === false) {
                     $show = true;
                     $arrData['content'] = $content;
                 }
                 $str .= $this->showDataInTemplate("multibox", "default", $arrData);
             }
             break;
         case "youtube":
             $arrData['rel'] = "type:swf";
             $str .= $this->showDataInTemplate("multibox", "default", $arrData);
             break;
     }
     // Return value string.
     return $str;
 }