Ejemplo n.º 1
0
$lastitem = 0;
foreach ($elem as $e) {
    $ev = explode("-k3sl9-", $e);
    // image
    if ($ev[1] == "html" && $ev[0] != "") {
        $elementos .= '<div id="l' . $cont . '-' . $ce . '" name="l' . $cont . '-' . $ce . '" class="lines2"></div><div class="lines" id="b' . $cont . '-' . $ce . '" name="b' . $cont . '-' . $ce . '" ></div><div class="drag" id="itemslider' . $cont . '-' . $ce . '" name="itemslider' . $cont . '-' . $ce . '">' . $ev[0] . '</div>';
        $lastitem++;
    }
    if ($ev[1] == "" && $ev[0] != "") {
        $elementos .= '<div id="l' . $cont . '-' . $ce . '" name="l' . $cont . '-' . $ce . '" class="lines2"></div><div class="lines" id="b' . $cont . '-' . $ce . '" name="b' . $cont . '-' . $ce . '" ></div><img class="drag" id="itemslider' . $cont . '-' . $ce . '" name="itemslider' . $cont . '-' . $ce . '" src="' . $ev[0] . '" />';
        $lastitem++;
    }
    if ($ev[1] == "you" && $ev[0] != "") {
        $elementos .= '<div id="l' . $cont . '-' . $ce . '" name="l' . $cont . '-' . $ce . '" class="lines2"></div><div class="lines" id="b' . $cont . '-' . $ce . '" name="b' . $cont . '-' . $ce . '" ></div>
							  
							  <img class="drag" id="itemslider' . $cont . '-' . $ce . '" name="itemslider' . $cont . '-' . $ce . '" src="http://img.youtube.com/vi/' . getYTidmorpheus($ev[0]) . '/default.jpg" />
							  ';
        $lastitem++;
    }
    $htmlitems = '<div style="background-color: #ddd; padding-left:10px; padding-right:10px;">
						 
						  ';
    $tittipo = "";
    if ($ev[1] == "html") {
        $tittipo = "Text ";
    }
    if ($ev[1] == "you") {
        $tittipo = "Youtube video ";
    }
    if ($ev[1] == "") {
        $tittipo = "Image ";
Ejemplo n.º 2
0
function morpheus_render($tag_string, $instance)
{
    $contador = rand(9, 9999999);
    $widthloading = "48";
    // Set if change loading image
    global $wpdb;
    $table_name = $wpdb->prefix . "morpheus";
    if (isset($tag_string[1])) {
        $auxi1 = str_replace(" ", "", $tag_string[1]);
    } else {
        $auxi1 = empty($instance['title']) ? '&nbsp;' : apply_filters('widget_title', $instance['title']);
    }
    $myrows = $wpdb->get_results("SELECT * FROM {$table_name} WHERE id = " . $auxi1 . ";");
    if (count($myrows) < 1) {
        $myrows = $wpdb->get_results("SELECT * FROM {$table_name};");
    }
    $conta = 0;
    $id = $myrows[$conta]->id;
    $title = $myrows[$conta]->title;
    $width = $myrows[$conta]->width;
    $height = $myrows[$conta]->height;
    $values = $myrows[$conta]->ivalues;
    $twidth = $myrows[$conta]->width_thumbnail;
    $theight = $myrows[$conta]->height_thumbnail;
    $number_thumbnails = $myrows[$conta]->number_thumbnails;
    $total = $myrows[$conta]->number_thumbnails;
    $border = $myrows[$conta]->border;
    $round = $myrows[$conta]->round;
    $tborder = $myrows[$conta]->thumbnail_border;
    $thumbnail_round = $myrows[$conta]->thumbnail_round;
    $sizetitle = $myrows[$conta]->sizetitle;
    $sizedescription = $myrows[$conta]->sizedescription;
    $sizethumbnail = $myrows[$conta]->sizethumbnail;
    $font = $myrows[$conta]->font;
    $color1 = $myrows[$conta]->color1;
    $color2 = $myrows[$conta]->color2;
    $color3 = $myrows[$conta]->color3;
    $time = $myrows[$conta]->time;
    $animation = $myrows[$conta]->animation;
    $mode = $myrows[$conta]->mode;
    $op1 = $myrows[$conta]->op1;
    $op2 = $myrows[$conta]->op2;
    $op3 = $myrows[$conta]->op3;
    $op4 = $myrows[$conta]->op4;
    $op5 = $myrows[$conta]->op5;
    $op6 = $myrows[$conta]->op6;
    $op7 = $myrows[$conta]->op7;
    $op8 = $myrows[$conta]->op8;
    $op9 = $myrows[$conta]->op9;
    $op10 = $myrows[$conta]->op10;
    $op11 = $myrows[$conta]->op11;
    $op12 = $myrows[$conta]->op12;
    $op13 = $myrows[$conta]->op13;
    $op14 = $myrows[$conta]->op14;
    $op15 = $myrows[$conta]->op15;
    /*
    else {
    $width = empty($instance['width']) ? '&nbsp;' : apply_filters('widget_width', $instance['width']);
    $height = empty($instance['height']) ? '&nbsp;' : apply_filters('widget_height', $instance['height']);
    $values = empty($instance['values']) ? '&nbsp;' : apply_filters('widget_values', $instance['values']);
    $twidth = empty($instance['width_thumbnail']) ? '&nbsp;' : apply_filters('widget_width_thumbnail', $instance['width_thumbnail']);
    $theight = empty($instance['height_thumbnail']) ? '&nbsp;' : apply_filters('widget_height_thumbnail', $instance['height_thumbnail']);
    $total = empty($instance['number_thumbnails']) ? '&nbsp;' : apply_filters('widget_number_thumbnails', $instance['number_thumbnails']);
    $border = empty($instance['border']) ? '&nbsp;' : apply_filters('widget_border', $instance['border']);
    $round = empty($instance['round']) ? '&nbsp;' : apply_filters('widget_round', $instance['round']);
    $tborder = empty($instance['thumbnail_border']) ? '&nbsp;' : apply_filters('widget_thumbnail_border', $instance['thumbnail_border']);
    $thumbnail_round = empty($instance['thumbnail_round']) ? '&nbsp;' : apply_filters('widget_thumbnail_round', $instance['thumbnail_round']);
    $sizetitle = empty($instance['sizetitle']) ? '&nbsp;' : apply_filters('widget_sizetitle', $instance['sizetitle']);
    $sizedescription = empty($instance['sizedescription']) ? '&nbsp;' : apply_filters('widget_sizedescription', $instance['sizedescription']);
    $sizethumbnail = empty($instance['sizethumbnail']) ? '&nbsp;' : apply_filters('widget_sizethumbnail', $instance['sizethumbnail']);
    $font = empty($instance['font']) ? '&nbsp;' : apply_filters('widget_font', $instance['font']);
    $color1 = empty($instance['color1']) ? '&nbsp;' : apply_filters('widget_color1', $instance['color1']);
    $color2 = empty($instance['color2']) ? '&nbsp;' : apply_filters('widget_color2', $instance['color2']);
    $color3 = empty($instance['color3']) ? '&nbsp;' : apply_filters('widget_color3', $instance['color3']);
    $time = empty($instance['time']) ? '&nbsp;' : apply_filters('widget_time', $instance['time']);
    $animation = empty($instance['animation']) ? '&nbsp;' : apply_filters('widget_animation', $instance['animation']);
    $mode = empty($instance['mode']) ? '&nbsp;' : apply_filters('widget_mode', $instance['mode']);
    }
    */
    $site_url = get_option('siteurl');
    $firstimorpheusimage = "";
    $textovid = "";
    $mobpag = 0;
    $heightimage = round((100 - $number_thumbnails) * $height / 100);
    $heightthumb = round($number_thumbnails * $height / 100);
    $heightimage -= 50;
    $mobrow = 0;
    $mobcolumn = 0;
    $textovidmob = "";
    $firstimage = "";
    $firstlink = "";
    $firsttitle = "";
    $imagesslider = "";
    $captions = "";
    $sliderscaptions = "0";
    $items_morpheus = "";
    $cont = 0;
    $colorp = "#" . $op8;
    global $templatesel;
    $templatesel = $time;
    /*
    if($time==1) {
    	   wp_register_style( 'slider-skin1', plugins_url('/skins/dark-room/quake.skin.css', __FILE__) );
       wp_enqueue_style( 'slider-skin1' );
    }
    
    if($time==2) {
    	
    	wp_register_style( 'slider-skin2', plugins_url('/skins/plain/quake.skin.css', __FILE__) );
     	wp_enqueue_style( 'slider-skin2' );
    
    }
    
    if($time==3) {
    	
    	
       wp_register_style( 'slider-skin3', plugins_url('/skins/violet/quake.skin.css', __FILE__) );
     	wp_enqueue_style( 'slider-skin3' );
    
    }
    */
    /*
    if($time==1) echo "<link rel='stylesheet' id='slider-skin1-css'  href='http://localhost/wor34/wp-content/plugins/morpheus-slider/skins/dark-room/quake.skin.css?ver=3.4.2' type='text/css' media='all' />";
    if($time==2) {
    	echo "<link rel='stylesheet' id='slider-skin1-css'  href='http://localhost/wor34/wp-content/plugins/morpheus-slider/skins/plain/quake.skin.css?ver=3.4.2' type='text/css' media='all' />";
    	$colorp="#222";
    }
    if($time==3) echo "<link rel='stylesheet' id='slider-skin1-css'  href='http://localhost/wor34/wp-content/plugins/morpheus-slider/skins/violet/quake.skin.css?ver=3.4.2' type='text/css' media='all' />";
    */
    $htmlscene = "";
    $htmlscenes = "";
    $codejquery = '';
    $codejquerys = "";
    $htmlthumbnails = "";
    $thumbnails = 0;
    if ($op1 > 0) {
        $thumbnails = 1;
    }
    $posthumbnails = 0;
    $stylet = "";
    $arrows = "";
    $bullets = "";
    $ism = 0;
    $isa = 0;
    $isb = 0;
    if ($classslider != "verticalslider" && $sizetitle != "false") {
        $isa = 1;
        $arrows = '<div id="aslidermorpheus' . $id . '" name="aslidermorpheus' . $id . '" class="arrows1" style="background-color: #' . $op13 . ';"><div class="arrowt" style="border-right-color: #' . $tborder . ';" ></div></div>';
        $arrows .= '<div id="bslidermorpheus' . $id . '" name="bslidermorpheus' . $id . '" class="arrows1" style="background-color: #' . $op13 . ';"><div class="arrowtb" style="border-left-color: #' . $tborder . ';"></div></div>';
    }
    if ($classslider != "verticalslider" && $font != "1") {
        $isb = 1;
        $bullets = '<div id="buslidermorpheus' . $id . '" name="buslidermorpheus' . $id . '" class="bullets1">';
    }
    $classslider = "horizontalslider";
    // horizontal slider
    $classslider = "verticalslider";
    // vertical slider
    $classslider = "slidernormal";
    // normal slider
    $music = "";
    $musicbutton = "";
    if ($sizedescription != "") {
        $ism = 1;
        $youmusic = explode(",", $sizedescription);
        $music = '<div id="morpheusmusic' . $id . '" name="morpheusmusic' . $id . '" style="display:none"><iframe id="musicmorpheus' . $id . '" type="text/html" width="100%" height="100%" src="http://www.youtube.com/embed/' . getYTidmorpheus($youmusic[0]) . '?autoplay=1&enablejsapi=1" frameborder="0"></iframe></div>';
        $musicbutton = '<a href="javascript: playmusic' . $id . '();" id="buttonmusic' . $id . '" name="buttonmusic' . $id . '" class="musicbutton"><img src="' . plugins_url('', __FILE__) . '/images/nomusic.png' . '" width="30"/></a>';
        $codejquerys .= '
							  
	musicplay' . $id . '=1;						  
	
	 function playmusic' . $id . '() {
 
if(musicplay' . $id . '==0)  {
	
	musicplay' . $id . '=1;
	
 jQuery("#morpheusmusic' . $id . '").html(\'<iframe id="musicmorpheus' . $id . '" type="text/html" width="100%" height="100%" src="http://www.youtube.com/embed/' . getYTidmorpheus($youmusic[0]) . '?autoplay=1&enablejsapi=1" frameborder="0"></iframe>\');
 
 jQuery("#buttonmusic' . $id . '").html(\'<img src="' . plugins_url('', __FILE__) . '/images/nomusic.png' . '" width="30"/>\');
 
}

else {
	musicplay' . $id . '=0;
	
 jQuery("#morpheusmusic' . $id . '").html(\'\');
 jQuery("#buttonmusic' . $id . '").html(\'<img src="' . plugins_url('', __FILE__) . '/images/playmusic.png' . '" width="20"/>\');
 
}
 
};


function stopmusic' . $id . '() {
 

	if(musicplay' . $id . '==1) musicplay' . $id . '=0;
	
	else musicplay' . $id . '=1;
	
 jQuery("#morpheusmusic' . $id . '").html(\'\');
 jQuery("#buttonmusic' . $id . '").html(\'\');
 
}

';
    }
    if ($values != "") {
        $scenes = explode("kh6gfd57hgg", $values);
        array_pop($scenes);
        $cont = 0;
        foreach ($scenes as &$value) {
            $item = explode("t6r4nd", $value);
            //////// reading scenes
            /// div marc
            $divstyle2 = "";
            $divstyle = "opacity:0;";
            $divclass = "";
            $bgimage = "";
            // default o scene valors
            if ($item[15] == "") {
                $item[15] = $color3;
            }
            if ($item[12] == "") {
                $item[12] = $op6;
            }
            if ($item[16] == "") {
                $item[16] = $op11;
            }
            if ($item[11] == "") {
                $item[11] = $op7;
            }
            if ($item[21] == "") {
                $item[21] = $op12;
            }
            if ($item[2] == "") {
                $item[2] = $border;
            }
            if ($item[10] == "") {
                $item[10] = $op4;
            }
            //////////
            if ($item[21] == "5") {
                $divclass .= " effect1";
            }
            if ($item[21] == "6") {
                $divclass .= " effect2";
            }
            if ($item[21] == "7") {
                $divclass .= " effect5";
            }
            if ($item[21] == "8") {
                $divclass .= " effect6";
            }
            if ($item[21] == "9") {
                $divclass .= " effect7";
            }
            if ($item[21] == "10") {
                $divclass .= " effect8";
            }
            if ($item[16] != "") {
                $divstyle2 .= " -webkit-border-radius: " . $item[16] . "px; border-radius: " . $item[16] . "px; -moz-border-radius: " . $item[16] . "px;";
                $divstyle .= " -webkit-border-radius: " . $item[16] . "px; border-radius: " . $item[16] . "px; -moz-border-radius: " . $item[16] . "px;";
            }
            if ($item[8] != "1") {
                $divstyle2 .= " overflow: hidden;";
            }
            if ($item[19] != "1" && $item[11] != "") {
                $divstyle2 .= " background-color: #" . $item[11] . ";";
            }
            if ($item[19] != "1" && $item[5] != "") {
                $divstyle2 .= " background-image: url(" . $item[5] . ");";
                $bgimage = '<img src="' . $item[5] . '" style="opacity:0"/>';
            }
            if ($item[20] == "1" && $item[15] != "") {
                $divstyle2 .= " border-style:solid; border-width:" . $item[15] . "px; border-color: #" . $item[12] . ";";
            }
            if ($item[6] != "") {
                $divstyle .= " max-width: " . $item[6] . "px;";
                $divstyle2 .= " max-width: " . $item[6] . "px;";
            } else {
                $divstyle .= " max-width: " . $width . "px;";
                $divstyle2 .= " max-width: " . $width . "px;";
            }
            if ($item[7] != "") {
                $divstyle .= " max-height: " . $item[7] . "px;";
                $divstyle2 .= " max-height: " . $item[7] . "px;";
            } else {
                $divstyle .= " max-height: " . $height . "px;";
                $divstyle2 .= " max-height: " . $height . "px;";
            }
            $imgt = "";
            $stumb = "";
            if ($twidth > 0) {
                $stumb = "effect" . $twidth;
            }
            if ($item[5] != "") {
                $imgt = " background-image: url(" . $item[5] . ");";
            }
            if ($item[5] == "" && $item[4] != "") {
                $imgt = " background-image: url(" . $item[4] . ");";
            }
            $textthumb = "";
            if ($item[0] != "") {
                $textthumb = '<div class="text" style="background-color: #' . $op15 . '; color: #' . $op9 . '; font-size: ' . $theight . 'px;">' . $item[0] . '</div>';
            }
            if ($op1 == 1 || $op1 == 4 || $op1 == 5) {
                $htmlthumbnails .= '<a href="javascript: changescene(' . $cont . ');" class="shadowt ' . $stumb . '" style="display: inline-block;margin:' . $op3 . 'px; margin-left: ' . (int) $op3 / 2 . 'px; margin-right: ' . (int) $op3 / 2 . 'px;"><div id="tsps' . $cont . '" name="tsps' . $cont . '"  class="thumbnail1" style="border-color: #' . $op15 . ';background-color: #' . $op15 . ';height: ' . $round . 'px;' . $imgt . '">' . $textthumb . '</div></a>';
            }
            if ($op1 == 2 || $op1 == 3) {
                $htmlthumbnails .= '<a href="javascript: changescene(' . $cont . ');" class="shadowt ' . $stumb . '" id="' . $cont . '" name="' . $cont . '" style="opacity:0; display: inline-block;margin:' . $op3 . 'px;margin-top: ' . (int) $op3 / 2 . 'px; margin-bottom: ' . (int) $op3 / 2 . 'px;"><div id="tsps' . $cont . '" name="tsps' . $cont . '" class="thumbnail2" style="border-color: #' . $op15 . ';background-color: #' . $op15 . ';' . $imgt . '">' . $textthumb . '</div></a>';
            }
            if ($isb == 1) {
                $bullets .= '<a href="javascript: changescene(' . $cont . ');" id="bullet' . $cont . '" name="bullet' . $cont . '" class="bullet1" style="background-color: #' . $color1 . '"></a>';
            }
            $mlink = "";
            if ($item[3] != "") {
                $mlink = ' style="cursor: pointer;" onclick="window.location =\'' . $item[3] . '\';" ';
            }
            $htmlscenes .= '<div ' . $mlink . ' id="mmorpheus' . $cont . '" name="mmorpheus' . $cont . '" class="morpheus3d ' . $divclass . '" style="' . $divstyle . '"><div id="morpheus' . $cont . '" name="morpheus' . $cont . '" class="morpheus" style="' . $divstyle2 . '" >' . $bgimage;
            // items
            $elem = explode("*klaxx238zdfla*", $item[1]);
            array_pop($elem);
            $ce = 0;
            $elementos = "";
            $lastitem = 0;
            foreach ($elem as $e) {
                $ev = explode("-k3sl9-", $e);
                // image
                $ilink = "";
                if ($ev[12] != "") {
                    $ilink = ' onclick="window.location =\'' . $ev[12] . '\';" style="cursor: pointer;" ';
                }
                if ($ev[1] == "html" && $ev[0] != "") {
                    $htmlscenes .= '<div ' . $ilink . ' id="itemslider' . $cont . '-' . $ce . '" name="itemslider' . $cont . '-' . $ce . '">' . $ev[0] . '</div>';
                    $codejquerys .= ' jQuery("#morpheus' . $cont . '").data("itemslider' . $cont . '-' . $ce . '", "' . str_replace(PHP_EOL, '', $e) . '");';
                    $lastitem++;
                    $ce++;
                }
                if ($ev[1] == "" && $ev[0] != "") {
                    $htmlscenes .= '<img ' . $ilink . ' id="itemslider' . $cont . '-' . $ce . '" name="itemslider' . $cont . '-' . $ce . '" src="' . plugins_url('', __FILE__) . '/images/textbg.png" />';
                    $codejquerys .= ' jQuery("#morpheus' . $cont . '").data("itemslider' . $cont . '-' . $ce . '", "' . str_replace(PHP_EOL, '', $e) . '");';
                    $lastitem++;
                    $ce++;
                }
                if ($ev[1] == "you" && $ev[0] != "") {
                    $htmlscenes .= '
							  
  <div id="itemslider' . $cont . '-' . $ce . '" name="itemslider' . $cont . '-' . $ce . '" style="display:none;">
 <img src="http://img.youtube.com/vi/' . getYTidmorpheus($ev[0]) . '/0.jpg" style="width:100%; height:100%; opacity: 1; left: 0px; top: 0px;"/>
 <div class="arrows1" style="background-color: #' . $tborder . '; top:46%; left:46%;"><div class="arrowtb" style="border-left-color: #' . $op13 . ';"></div></div> 
  </div>
						';
                    $codejquerys .= '
							  
							  
videoplay=0;
	
	jQuery("#itemslider' . $cont . '-' . $ce . '").click(function() {
 stopmusic' . $id . '();
 videoyouplay="playersyou' . $cont . '' . $ce . '";
 videoplay=1;
 jQuery("#itemslider' . $cont . '-' . $ce . '").html(\'<iframe id="youtube' . $cont . '-' . $ce . '" type="text/html" width="100%" height="100%" src="http://www.youtube.com/embed/' . getYTidmorpheus($ev[0]) . '?autoplay=1&enablejsapi=1" frameborder="0"></iframe>\');
 
});
	
  

  function playerready' . $cont . '' . $ce . '(event) {	  
  }
  
   function playersyou' . $cont . '' . $ce . 'stop () {
	  
	  
	  
	 videoplay=0;
	
	jQuery("#itemslider' . $cont . '-' . $ce . '").html(\'<img src="http://img.youtube.com/vi/' . getYTidmorpheus($ev[0]) . '/default.jpg" style="width:100%; height:100%; opacity: 1; left: 0px; top: 0px;"/><div class="arrows1" style="background-color: #' . $tborder . '; top:46%; left:46%;"><div class="arrowtb" style="border-left-color: #' . $op13 . ';"></div></div>\');
	
	playmusic' . $id . '();
    
  }
 		  
 jQuery("#morpheus' . $cont . '").data("itemslider' . $cont . '-' . $ce . '", "' . str_replace(PHP_EOL, '', $e) . '");
							  
							  
							  ';
                    $lastitem++;
                    $ce++;
                }
            }
            $codejquerys .= 'jQuery("#morpheus' . $cont . '").data("time", "' . $item[2] . '"); jQuery("#morpheus' . $cont . '").data("id", "' . $id . '"); jQuery("#morpheus' . $cont . '").data("total", "' . $ce . '"); jQuery("#morpheus' . $cont . '").data("cont", "' . $cont . '"); jQuery("#morpheus' . $cont . '").data("mode", "' . $classslider . '"); jQuery("#morpheus' . $cont . '").data("etime", "' . $item[10] . '"); jQuery("#morpheus' . $cont . '").data("op13", "' . $op13 . '"); jQuery("#morpheus' . $cont . '").data("op14", "' . $op14 . '"); jQuery("#morpheus' . $cont . '").data("op1", "' . $op1 . '"); jQuery("#morpheus' . $cont . '").data("op3", "' . $op3 . '"); jQuery("#morpheus' . $cont . '").data("nt", "' . $number_thumbnails . '"); jQuery("#morpheus' . $cont . '").data("isa", "' . $isa . '"); jQuery("#morpheus' . $cont . '").data("ism", "' . $ism . '"); jQuery("#morpheus' . $cont . '").data("isb", "' . $font . '"); jQuery("#morpheus' . $cont . '").data("opbullet", "' . $color2 . '"); jQuery("#morpheus' . $cont . '").data("effect", "' . $item[9] . '"); jQuery("#morpheus' . $cont . '").data("aeffect", "' . $item[13] . '"); jQuery("#morpheus' . $cont . '").data("scenes", ' . count($scenes) . ');';
            $htmlscenes .= '</div>';
            $htmlscenes .= '</div><div id="lmorpheus' . $cont . '" name="lmorpheus' . $cont . '" class="maxloading" /></div>';
            ////////////////////////////////
            $cont++;
        }
    }
    $cont--;
    $output = "";
    $divstyle = "";
    if ($op2 != "") {
        $divstyle .= " margin-left: " . $op2 . "px;";
    }
    if ($op5 != "") {
        $divstyle .= " margin-right: " . $op5 . "px;";
    }
    $stylet = $divstyle;
    if ($op8 != "") {
        $divstyle .= " margin-top: " . $op8 . "px;";
    }
    if ($op10 != "") {
        $divstyle .= " margin-bottom: " . $op10 . "px;";
    }
    if ($thumbnails == 1 && $op1 == 4) {
        $output .= '<div class="pthumbnails1" id="spthumbnails' . $id . '" name="spthumbnails' . $id . '" style="' . $stylet . '">' . $htmlthumbnails . '</div>';
    }
    if ($thumbnails == 1 && ($op1 == 2 || $op1 == 3)) {
        if ($op1 == 2) {
            $output .= '<div id="spmtlr' . $id . '" name="spmtlr' . $id . '" style="' . $divstyle . 'position:relative;"><div class="pthumbnails2" id="spthumbnails' . $id . '" name="spthumbnails' . $id . '" style="width: ' . $round . '%;">' . $htmlthumbnails . '</div>';
            $output .= '<div id="slidermorpheus' . $id . '" name="slidermorpheus' . $id . '" class="slidermorpheus ' . $classslider . '" style="width:' . (100 - $round) . '%; float: right;">
				
				';
        }
        if ($op1 == 3) {
            $output .= '<div id="spmtlr' . $id . '" name="spmtlr' . $id . '" style="' . $divstyle . 'position:relative;"><div class="pthumbnails2" style="float:right;width: ' . $round . '%;" id="spthumbnails' . $id . '" name="spthumbnails' . $id . '">' . $htmlthumbnails . '</div>';
            $output .= '<div id="slidermorpheus' . $id . '" name="slidermorpheus' . $id . '" class="slidermorpheus ' . $classslider . '" style="width:' . (100 - $round) . '%; float: left;">
				
				';
        }
    } else {
        $output .= '<div id="slidermorpheus' . $id . '" name="slidermorpheus' . $id . '" class="slidermorpheus ' . $classslider . '" style="' . $divstyle . '">
	
	';
    }
    $output .= $htmlscenes;
    // mouse over slider pause
    /*
     $codejquerys.="
     
      jQuery('#slidermorpheus".$id."').hover(function () {
    	  stopslider=1;
         
      });
      
      jQuery('#slidermorpheus".$id."').mouseleave(function() {
      var scene=jQuery(\"#morpheus\"+scenecont);
      clearTimeout(scenetimes[scene.data(\"id\")]);
    		
    	scenetimes[scene.data(\"id\")]=setTimeout(function() {
          endscene(scene);
    }, scene.data(\"time\"));
      stopslider=0;
    });
     
     ";
    */
    ///////
    if ($isb == 1) {
        $output .= $bullets . '</div>';
    }
    $output .= $arrows;
    $output .= $musicbutton . '</div>' . $music;
    if ($thumbnails == 1 && ($op1 == 2 || $op1 == 3)) {
        $output .= '</div>';
    }
    if ($thumbnails == 1 && $op1 == 1) {
        $output .= '<div class="pthumbnails1" id="spthumbnails' . $id . '" name="spthumbnails' . $id . '" style="' . $stylet . '">' . $htmlthumbnails . '</div>';
    }
    if ($thumbnails == 1 && $op1 == 5) {
        $output .= '<div class="pthumbnails1" id="spthumbnails' . $id . '" name="spthumbnails' . $id . '" style="' . $stylet . 'white-space: normal;">' . $htmlthumbnails . '</div>';
    }
    $output .= '<script>
	' . $codejquerys . '
	</script>';
    if (isset($tag_string[1])) {
        return $output;
    } else {
        echo $output;
    }
}