Advertisement
brand-machine

CU3ER

Aug 7th, 2011
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.96 KB | None | 0 0
  1. <?php
  2.  
  3. class avia_slideshow
  4. {
  5.  
  6. var $type; // 3d, 3d, fullsize, small tablet?
  7. var $imagesize; // image size for 2d and 2d fallback slider
  8. var $imagesize3D; // image size 3d slider
  9. var $slideshow_xml = "";// xml config file
  10. var $post_id; // post id of the post containing the slider
  11. var $slidecount = 0; //number of slides
  12. var $slide_duration; //how long to display a slide
  13. var $autoplay; //start autorotation?
  14. var $showcaption; //show caption?
  15.  
  16. function avia_slideshow($post_id = false, $overwrite_small = false)
  17. {
  18. ///if no id was passed get it
  19. if(!$post_id) $post_id = get_the_ID();
  20.  
  21.  
  22. $this->post_id = $post_id;
  23. $this->slides = avia_post_meta($this->post_id, 'slideshow');
  24. $this->slidecount = count($this->slides);
  25.  
  26. if(!$this->slidecount) return;
  27.  
  28. $this->type = avia_post_meta($this->post_id, '_slideshow_type');
  29.  
  30. if($overwrite_small && (empty($this->type) || $this->type == 'small_caption'))
  31. {
  32. $this->type = $overwrite_small;
  33. }
  34.  
  35. $this->autoplay = avia_post_meta($this->post_id, '_slideshow_autoplay');
  36. $this->slide_duration = avia_post_meta($this->post_id, '_slideshow_duration');
  37.  
  38. switch($this->type)
  39. {
  40. case '2D_small_caption_welcome': $this->imagesize = "portfolio2"; break;
  41. case '2D_caption': $this->imagesize = "featured"; break;
  42. }
  43. }
  44.  
  45.  
  46.  
  47. function description()
  48. {
  49. $output = "";
  50. $buttonclass = 'dual_buttons';
  51. global $avia_config;
  52.  
  53.  
  54. $title = avia_post_meta('_slideshow_welcome_title');
  55. $text = avia_post_meta('_slideshow_welcome_text');
  56.  
  57. $linktext1 = avia_post_meta('_slideshow_welcome_button_1');
  58. if($linktext1)
  59. {
  60. $link1 = avia_get_link($avia_config['meta'], '_slideshow_welcome_button_1_', $linktext1, $this->post_id);
  61. }
  62.  
  63.  
  64. $linktext2 = avia_post_meta('_slideshow_welcome_button_2');
  65. if($linktext2)
  66. {
  67. $link2 = avia_get_link($avia_config['meta'], '_slideshow_welcome_button_2_', $linktext2, $this->post_id);
  68. }
  69.  
  70. if(!$linktext1 || $linktext1 == $link1 || !$linktext2 || $linktext2 == $link2)
  71. {
  72. $buttonclass = 'single_buttons';
  73. }
  74.  
  75.  
  76. $output .= "<div class='slideshow_welcome slideshow_welcome_".$this->type."'>";
  77. $output .= " <div class='slideshow_welcome_align'>";
  78. $output .= " <h1 class='slideshow_welcome_title'>".$title."</h1>";
  79. $output .= " <div class='slideshow_welcome_text'>". wpautop( avia_remove_autop( nl2br( $text )))."</div>";
  80. if($linktext1 || $linktext2) $output .= " <div class='hr'></div>";
  81. if($linktext1 && $linktext1 != $link1) $output .= "<span class='welcome_button welcome_button1 $buttonclass'>".$link1."</span>";
  82. if($linktext2 && $linktext2 != $link2) $output .= "<span class='welcome_button welcome_button2 $buttonclass'>".$link2."</span>";
  83. $output .= " </div>";
  84. $output .= "</div>";
  85. return $output;
  86. }
  87.  
  88.  
  89. function display()
  90. {
  91. $this->showcaption = true;
  92. if(!$this->type || $this->type == 'small_caption') return;
  93.  
  94. $output = $shadow = '';
  95.  
  96. //add the cu3er javascript
  97. if(strpos($this->type, '3D') !== false)
  98. {
  99. //set fallback imagesize based on selected 3D slider
  100. if(strpos($this->type, 'welcome') !== false )
  101. {
  102. $this->imagesize = 'portfolio2';
  103. }
  104. else
  105. {
  106. $this->imagesize = 'featured';
  107.  
  108. }
  109.  
  110. $output = $this->activate_cu3er();
  111. }
  112. else
  113. {
  114. $shadow = '<span class="slide_shadow"></span>';
  115. }
  116.  
  117.  
  118. //add the slide container
  119. $output .= "<div id='cu3er_container_".$this->type."' class='cu3er_container'>";
  120.  
  121. //if a small slider with static text was choosen render the static text
  122. if(strpos($this->type, 'welcome') !== false)
  123. {
  124. $output .= $this->description();
  125. }
  126.  
  127.  
  128. //add javascript slider eiter because the user chose it and also as fallback if the user doesnt have flash
  129.  
  130. $output .= "<div class='cu3er_".$this->type."'><div id='CU3ER'>";
  131. $output .= $this->slideshow();
  132. $output .= $shadow;
  133. $output .= "</div></div></div>";
  134.  
  135. return $output;
  136. }
  137.  
  138.  
  139. function display_small($size = 'page', $force_display = false, $showcaption = true)
  140. {
  141.  
  142. if(($force_display || $this->type == 'small_caption'|| $this->type == '' ) && is_array($this->slides) && !empty($this->slides[0]['slideshow_image']))
  143. {
  144. $this->type = 'small_caption';
  145. $this->imagesize = $size;
  146. $this->showcaption = $showcaption;
  147.  
  148. return $this->slideshow();
  149. }
  150. }
  151.  
  152.  
  153. function slideshow()
  154. {
  155. $counter = 1;
  156. $js_controller = 'autoslide_'.$this->autoplay;
  157. $js_controller .= ' autoslidedelay__'.$this->slide_duration;
  158.  
  159.  
  160.  
  161. $output = "<div class='preloading slideshow_container $js_controller slideshow_".$this->imagesize."'>";
  162. $output .= "<ul class='slideshow'>";
  163.  
  164. if(is_array($this->slides) && !empty($this->slides[0]['slideshow_image']))
  165. {
  166. foreach($this->slides as $slide)
  167. {
  168. if($slide['slideshow_image'] != "")
  169. {
  170. //check if we got an image or a video
  171.  
  172. if(!is_numeric($slide['slideshow_image']))
  173. {
  174. ### render a video ###
  175. $output .= "<li class='featured featured_container".$counter++."' >";
  176. if(avia_backend_is_file($slide['slideshow_image'], 'html5video'))
  177. {
  178. $output .= avia_html5_video_embed($slide['slideshow_image']);
  179. }
  180. else
  181. {
  182. global $avia_config, $wp_embed;
  183.  
  184. $width = "";
  185. if(isset($avia_config['imgSize'][$this->imagesize]['width']))
  186. {
  187. $width = "width='".$avia_config['imgSize'][$this->imagesize]['width']."'";
  188. }
  189.  
  190. $output .= $wp_embed->run_shortcode("[embed $width ]".$slide['slideshow_image']."[/embed]");
  191. }
  192.  
  193. $output .= "</li>";
  194.  
  195. }
  196. else
  197. {
  198. ### render an image ###
  199.  
  200. //get the image by passing the attachment id.
  201. $image_string = avia_image_by_id($slide['slideshow_image'], $this->imagesize);
  202.  
  203. //if we didnt get a valid image from the above function set it directly
  204. if(!$image_string) $image_string = $slide['slideshow_image'];
  205.  
  206. //apply links to the image if thats what the user wanted
  207. $image = avia_get_link($slide, 'slideshow_', $image_string, $this->post_id);
  208.  
  209.  
  210.  
  211. $output .= "<li class='featured featured_container".$counter++."' >";
  212. $output .= "<span class='fancyborder fancyborder_top'></span>
  213. <span class='fancyborder fancyborder_left'></span>
  214. <span class='fancyborder fancyborder_right'></span>
  215. <span class='fancyborder fancyborder_bottom'></span>";
  216.  
  217. $output .= $image;
  218.  
  219. //check if the user has set either a title or a caption that we can display
  220. if($this->showcaption)
  221. {
  222. if((!empty($slide['slideshow_caption_title']) || !empty($slide['slideshow_caption']) || (!empty($slideshow_options_show_controlls) && !empty($slides[1]['slideshow_image']))))
  223. {
  224. $output .= '<div class="feature_excerpt">';
  225. if(!empty($slide['slideshow_caption_title'])) $output .= '<h1>'.$slide['slideshow_caption_title'].'</h1>';
  226. if(!empty($slide['slideshow_caption'])) $output .= '<div class="featured_caption">'.$slide['slideshow_caption'].'</div>';
  227. $output .= '</div>';
  228. }
  229. }
  230. $output .= "</li>";
  231. }
  232. }
  233. }
  234. }
  235. $output .= "</ul>";
  236. $output .= '</div>';
  237.  
  238.  
  239.  
  240. return $output;
  241. }
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249. ######################################################################
  250. # XML & cu3er related functions
  251. ######################################################################
  252.  
  253. function generate_xml()
  254. {
  255. if(strpos($this->type, '3D') !== false)
  256. {
  257. $this->_build_xml_header();
  258.  
  259. foreach($this->slides as $slide_element)
  260. {
  261. $this->_build_xml_slides($slide_element);
  262. }
  263. $this->slideshow_xml .='</slides></data>';
  264. }
  265. }
  266.  
  267.  
  268.  
  269. function activate_cu3er()
  270. {
  271. $output = "";
  272. $output .= '<script type="text/javascript" src="'.AVIA_BASE_URL.'slideshow/js/swfobject.js"></script>'."\n";
  273. $output .= '<script type="text/javascript" src="'.AVIA_BASE_URL.'slideshow/js/CU3ER.js"></script>'."\n";
  274. $output .= '
  275. <script type="text/javascript">
  276. //add your flashvars
  277. var vars = { xml_location : "'.AVIA_BASE_URL.'slideshow/config.xml.php?post_id='.$this->post_id.'" };
  278.  
  279. // add Flash embedding parameters, etc. wmode, bgcolor...
  280. var params = { wmode : "transparent"};
  281.  
  282. // Flash object attributes id and name
  283. var attributes = { id:"CU3ER", name:"CU3ER" };
  284.  
  285. // dynamic embed of Flash, set the location of expressInstall if needed
  286. swfobject.embedSWF("'.AVIA_BASE_URL.'slideshow/CU3ER.swf", "CU3ER", 540, 480, "10.0.0", "'.AVIA_BASE_URL.'slideshow/js/expressInstall.swf", vars, params, attributes );
  287.  
  288. // initialize CU3ER class containing Javascript controls and events for CU3ER
  289. // var CU3ER_object = new CU3ER("CU3ER");
  290. </script>';
  291.  
  292. return $output;
  293.  
  294. }
  295.  
  296.  
  297.  
  298. function _build_xml_slides($element)
  299. {
  300.  
  301. if(is_numeric($element['slideshow_image']))
  302. {
  303. $this->slideshow_xml .= '
  304. <slide>
  305. <url><![CDATA['.avia_image_by_id($element['slideshow_image'], $this->imagesize3D, 'url').']]></url>
  306. <link target="_self">'.avia_get_link($element, 'slideshow_', false, $this->post_id).'</link>
  307. <description>
  308. <heading><![CDATA['.$element['slideshow_caption_title'].']]></heading>
  309. <paragraph><![CDATA['.$element['slideshow_caption'].']]></paragraph>
  310. </description>
  311. <image x="0" y="0" scaleX="1" scaleY="1" align_pos="TL"/>
  312. </slide>'
  313. ;
  314.  
  315. $this->_build_xml_transition($element);
  316. }
  317. }
  318.  
  319.  
  320. function _build_xml_transition($element)
  321. {
  322.  
  323. $this->slideshow_xml .= '<transition ';
  324. if(!empty($element['slice_vertical'])) $this->slideshow_xml .= 'columns="'.$element['slice_vertical'].'" ';
  325. if(!empty($element['slice_horizontal'])) $this->slideshow_xml .= 'rows="'.$element['slice_horizontal'].'" ';
  326. if(!empty($element['direction'])) $this->slideshow_xml .= 'flipDirection="'.$element['direction'].'" ';
  327. if(!empty($element['order'])) $this->slideshow_xml .= 'flipOrder="'.$element['order'].'" ';
  328. if(!empty($element['element_depth'])) $this->slideshow_xml .= 'flipBoxDepth="'.$element['element_depth'].'" ';
  329. if(!empty($element['flip_depth'])) $this->slideshow_xml .= 'flipDepth="'.$element['flip_depth'].'" ';
  330.  
  331. if(!empty($element['slideshow_transition']))
  332. {
  333. switch($element['slideshow_transition'])
  334. {
  335. case "slide":
  336. $this->slideshow_xml .= 'type="2D" ';
  337. $this->slideshow_xml .= 'type2D="slide" ';
  338. $this->slideshow_xml .= 'flipEasing="Expo.easeInOut" ';
  339. break;
  340.  
  341. case "90d":
  342. $this->slideshow_xml .= 'type="3D" ';
  343. $this->slideshow_xml .= 'flipAngle="90" ';
  344. $this->slideshow_xml .= 'flipEasing="Sine.easeOut" ';
  345. break;
  346.  
  347. case "180d":
  348. $this->slideshow_xml .= 'type="3D" ';
  349. $this->slideshow_xml .= 'flipAngle="180" ';
  350. $this->slideshow_xml .= 'flipEasing="Sine.easeOut" ';
  351. break;
  352.  
  353. case "fade":
  354. $this->slideshow_xml .= 'type="2D" ';
  355. $this->slideshow_xml .= 'type2D="fade" ';
  356. $this->slideshow_xml .= 'flipEasing="Expo.easeInOut" ';
  357. break;
  358. }
  359. }
  360.  
  361. $this->slideshow_xml .='flipColor="0x878787" flipShader="none" flipOrderFromCenter="false" flipDuration=".6" flipDelay=".15" flipDelayRandomize=".5" />';
  362. }
  363.  
  364.  
  365.  
  366.  
  367.  
  368. function _build_xml_header()
  369. {
  370.  
  371. $bg_image = $shadow = $camera = $slides = $branding = $controlls = $autoplayer = $prevnext = $description ='';
  372. $color_1 = substr(avia_get_option('color_1','#555555'),1);
  373.  
  374. switch ($this->type)
  375. {
  376. case 'tablet_3D_welcome': //tablet 3D slider
  377.  
  378. $bg_image ='<image use_image="true" align_to="stage" align_pos="MC" x="0" y="0">
  379. <url><![CDATA['.AVIA_BASE_URL.'slideshow/images/st-touchpad-horizontal.png]]></url>
  380. </image>';
  381.  
  382. $prevnext = '<prev_button align_pos="ML" width="156" height="350" x="-105.05000000000001" y="-10.099999999999994">
  383. <auto_hide time="3">false</auto_hide>
  384. <hide_on_transition>false</hide_on_transition>
  385. <background round_corners="0,0,0,0">
  386. <tweenShow tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  387. <tweenOver tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1.04"/>
  388. <tweenHide tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1.04"/>
  389. </background>
  390. <symbol type="5" align_pos="MC" x="9.974999999999966" y="-10">
  391. <tweenShow alpha="0" scaleX="1" scaleY="1" tint="0x'.$color_1.'" x="0" y="0"/>
  392. <tweenOver tint="0x'.$color_1.'" scaleX="1.899993896484375" scaleY="1.899993896484375" alpha="1" x="-25.999999999999943" y="-2.8421709430404014e-14" time="0.3" tempDelay="0" ease="Expo.easeOut"/>
  393. <tweenHide tint="0x'.$color_1.'" scaleX="1" scaleY="1" alpha="0" x="0" y="0"/>
  394. </symbol>
  395. </prev_button>
  396. <next_button align_pos="MR" width="193.0202674865723" height="401.09358975856594" x="148.95000000000005" y="-2.09999999999998">
  397. <auto_hide time="3">false</auto_hide>
  398. <hide_on_transition>false</hide_on_transition>
  399. <background round_corners="0,0,0,0">
  400. <tweenShow tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  401. <tweenOver tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  402. <tweenHide tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  403. </background>
  404. <symbol type="5" align_pos="MC" x="-10.035133743286224" y="-0.046794879282970214">
  405. <tweenShow alpha="0" scaleX="1" scaleY="1" tint="0x'.$color_1.'" x="0" y="0"/>
  406. <tweenOver tint="0x'.$color_1.'" scaleX="2.899993896484375" scaleY="2.899993896484375" alpha="1" x="40.02500000000009" y="0" time="0.3" ease="Expo.easeOut" delay="0"/>
  407. <tweenHide tint="0x'.$color_1.'" scaleX="1" scaleY="1" alpha="0" x="0" y="0"/>
  408. </symbol>
  409. </next_button>
  410. ';
  411. $camera = '<camera x="-4" y="8" z="-87" angleX="2.8" angleY="11.4" angleZ="-1.2"/>';
  412. $this->imagesize3D = $this->type;
  413. $slides = '<slides width="399" height="312" align_pos="MC" x="-25.450000000000045" y="-22.05000000000001">';
  414. $branding = '<branding align_pos="BR" x="-76" y="-53" align_to="stage">';
  415. $autoplayer = '<auto_play_indicator type="circular" align_pos="BC" x="200" y="67" width="125" height="3" padding="2" radius="6">';
  416. $controlls = ' <thumbnails align_pos="BC" x="7.5" y="80" width="'.($this->slidecount*20+25).'" height="33" scroll="horizontal" padding_x="20" padding_y="5">';
  417. break;
  418.  
  419.  
  420. case '3D_small_welcome': //small 3D slider
  421.  
  422. $this->imagesize3D = 'portfolio2';
  423. $camera = '<camera x="0" y="0" z="-140" angleX="7" angleY="25" angleZ="0" lens="6"/>';
  424. $shadow = '<shadow show="true" use_image="false" color="0x333333" alpha="1" blur="80" corner_TL="-15,180" corner_TR="566,231" corner_BR="441.99999999999994,301" corner_BL="5,265"/>';
  425. $slides = '<slides width="460" height="258" align_pos="MC" x="0.05000000000001137" y="-37.25">';
  426. $branding = '<branding align_pos="BR" x="-36" y="-53" align_to="stage">';
  427. $autoplayer = '<auto_play_indicator type="circular" align_pos="BC" x="160" y="27" width="125" height="3" padding="2" radius="6">';
  428. $controlls = ' <thumbnails align_pos="BC" x="7.5" y="40" width="'.($this->slidecount*20+25).'" height="33" scroll="horizontal" padding_x="20" padding_y="5">';
  429. break;
  430.  
  431. case '3D_caption': //fullsize 3D slider
  432. $color_1 = "000000";
  433. $this->imagesize3D = 'featured';
  434. $prevnext = '<prev_button align_pos="ML" width="30" height="30" x="0" y="0">
  435. <auto_hide time="1">true</auto_hide>
  436. <hide_on_transition>true</hide_on_transition>
  437. <background round_corners="0,15,15,0">
  438. <tweenShow tint="0x000000" alpha="0.2" x="0" y="0" scaleX="1" scaleY="1"/>
  439. <tweenOver tint="0xffffff" alpha="0.9" x="0" y="0" scaleX="1" scaleY="1"/>
  440. <tweenHide tint="0xffffff" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  441. </background>
  442. <symbol type="2" align_pos="MC" x="0" y="0">
  443. <tweenShow alpha="1" scaleX="0.3" scaleY="0.3" tint="0xffffff"/>
  444. <tweenOver tint="0x'.$color_1.'" scaleX="0.4" scaleY="0.4" alpha="1" x="0" y="0"/>
  445. <tweenHide tint="0x'.$color_1.'" scaleX="0.2" scaleY="0.2" alpha="0" x="0" y="0"/>
  446. </symbol>
  447. </prev_button>
  448. <next_button align_pos="MR" width="30" height="30" x="0" y="0">
  449. <auto_hide time="1">true</auto_hide>
  450. <hide_on_transition>true</hide_on_transition>
  451. <background round_corners="15,0,0,15">
  452. <tweenShow tint="0x000000" alpha="0.2" x="0" y="0"/>
  453. <tweenOver tint="0xffffff" alpha="0.9"/>
  454. <tweenHide tint="0xffffff" alpha="0"/>
  455. </background>
  456. <symbol type="2" align_pos="MC" x="0" y="0">
  457. <tweenShow alpha="1" scaleX="0.3" scaleY="0.3" tint="0xfffeff"/>
  458. <tweenOver tint="0x'.$color_1.'" scaleX="0.4" scaleY="0.4" alpha="1" x="0" y="0"/>
  459. <tweenHide tint="0x'.$color_1.'" scaleX="0.2" scaleY="0.2" alpha="0" x="0" y="0"/>
  460. </symbol>
  461. </next_button>';
  462. $camera = '<camera x="0" y="0" z="0" angleX="0" angleY="0" angleZ="0"/>';
  463. $shadow = '<shadow show="true" use_image="false" color="0x333333" alpha="1" blur="50" corner_TL="2,204" corner_TR="942,204" corner_BR="1090,415" corner_BL="-135,420"/>';
  464. $slides = '<slides width="940" height="350" align_pos="TL" x="0" y="0">';
  465. $branding = '<branding align_to="stage" align_pos="TR" x="-10" y="10">';
  466. $autoplayer = '<auto_play_indicator type="circular" align_pos="BR" x="-9" y="-9" width="125" height="3" padding="2" radius="6">';
  467. $controlls = ' <thumbnails align_pos="BR" x="-27" y="5" width="'.($this->slidecount*15).'" height="25" scroll="vertical" padding_x="0" padding_y="0">';
  468. $description = '<description align_pos="BL" x="0" y="-40" width="350" height="80" >
  469. <auto_hide time="300">true</auto_hide>
  470. <hide_on_transition>true</hide_on_transition>
  471. <bake_on_transition>true</bake_on_transition>
  472. <background round_corners="0,0,0,0">
  473. <tweenShow tint="0x000000" alpha="0.75" x="0" y="0" scaleX="1" scaleY="1"/>
  474. <tweenOver tint="0x000000" alpha="0.75" x="0" y="0" scaleX="1" scaleY="1"/>
  475. <tweenHide tint="0x000000" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  476. </background>
  477. <heading margin="15,15,0,15" text_bold="true" text_size="18" x="5" y="5" text_leading="0" text_letterSpacing="0" font="Arial" text_align="left">
  478. <tweenShow tint="0xFFFFFF"/>
  479. <tweenOver tint="0xFFFFFF"/>
  480. <tweenHide tint="0xFFFFFF"/>
  481. </heading>
  482. <paragraph margin="3,15,0,15" text_size="11" text_leading="0" font="Arial" text_align="left" text_letterSpacing="0">
  483. <tweenShow tint="0xFFFFFF"/>
  484. <tweenOver tint="0xFFFFFF"/>
  485. <tweenHide tint="0xFFFFFF"/>
  486. </paragraph>
  487. </description>';
  488. break;
  489.  
  490. }
  491.  
  492.  
  493. //gerneric mask with defaults. the slider specific vars are filled in here
  494. $this->slideshow_xml .= '<?xml version="1.0" encoding="utf-8" ?>
  495. <data>
  496. <debug>0</debug><template><name><![CDATA[BrightBox]]></name><key><![CDATA[F2Z6BnjXKmpcLgPF]]></key></template>
  497. <project_settings>
  498. <width>502</width>
  499. <height>472</height>
  500. </project_settings>
  501. <settings>
  502. <folder_images></folder_images>
  503. <folder_fonts></folder_fonts>
  504. <background>
  505. <color transparent="true">0xffffff</color>
  506. '.$bg_image.'
  507. </background>
  508. <start_slide>1</start_slide>
  509. <auto_play>'.$this->autoplay.'</auto_play>
  510. <randomize_slides>false</randomize_slides>
  511. '.$branding.'
  512. <remove_logo_loader>true</remove_logo_loader>
  513. <remove_right_menu_info>true</remove_right_menu_info>
  514. <remove_right_menu_licence>true</remove_right_menu_licence>
  515. </branding>
  516. '.$camera.$shadow.'
  517. </settings>
  518. <fonts/>
  519. <preloader type="circular" align_pos="MC" width="200" height="20" x="20" y="0" radius="30">
  520. <background padding="5">
  521. <tweenShow tint="0x2185C5" alpha="0.85" x="0" y="0" scaleX="1" scaleY="1"/>
  522. <tweenOver alpha="1" x="0" y="0" scaleX="1" scaleY="1"/>
  523. <tweenHide alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  524. </background>
  525. <loader>
  526. <tweenShow tint="0xFFFFFF" alpha="0.8"/>
  527. <tweenOver tint="0xFFFFFF" alpha="1"/>
  528. <tweenHide tint="0xFFFFFF" alpha="0"/>
  529. </loader>
  530. </preloader>
  531. <controls>
  532. '.$autoplayer.'
  533. <auto_hide time="1">true</auto_hide>
  534. <hide_on_transition>false</hide_on_transition>
  535. <background padding="0">
  536. <tweenShow tint="0x'.$color_1.'" alpha="1" x="0" y="0" scaleX="1" scaleY="1"/>
  537. <tweenOver tint="0x'.$color_1.'" alpha="0.05" x="0" y="0" scaleX="1" scaleY="1"/>
  538. <tweenHide tint="0x'.$color_1.'" alpha="0" x="0" y="0" scaleX="1" scaleY="1"/>
  539. </background>
  540. <loader>
  541. <tweenShow tint="0xcccccc" alpha="1"/>
  542. <tweenOver alpha="1"/>
  543. <tweenHide alpha="0"/>
  544. </loader>
  545. </auto_play_indicator>
  546. '.$prevnext.'
  547. </controls>
  548. '.$controlls.'
  549. <auto_hide time="3">false</auto_hide>
  550. <hide_on_transition>false</hide_on_transition>
  551. <background color="0x333333" alpha="0" round_corners="0,0,0,0"/>
  552. <thumb width="10" height="10" spacing_x="4" spacing_y="0">
  553. <background round_corners="7,7,7,7">
  554. <tweenShow tint="0x000000" alpha="0.2"/>
  555. <tweenOver tint="0x000000" alpha="0.5" time="0.3" ease="Expo.easeOut" scaleX="1" scaleY="1" x="0" y="0" delay="0"/>
  556. <tweenHide tint="0xFFFFFF" alpha="0"/>
  557. <tweenSelected tint="0x'.$color_1.'" alpha="1" scaleX="1" scaleY="1" x="0" y="0" time="0.3" tempDelay="0" ease="Sine.easeOut"/>
  558. </background>
  559. </thumb>
  560. </thumbnails>
  561. '.$description.'
  562. <defaults>
  563. <slide time="'.$this->slide_duration.'" color="0x000000">
  564. <image align_pos="TL" x="0" y="0" scaleX="1" scaleY="1"/>
  565. <link target="_blank"/>
  566. <description>
  567. <link target="_blank"/>
  568. </description>
  569. </slide>
  570. <transition type="2D" columns="1" rows="1" type2D="slide" flipAngle="180" flipOrder="315" flipShader="flat" flipOrderFromCenter="false" flipDirection="left" flipColor="0x878787" flipBoxDepth="10" flipDepth="50" flipEasing="Expo.easeInOut" flipDuration="1" flipDelay="0.15" flipDelayRandomize="0.5"/>
  571. </defaults>'.$slides;
  572. }
  573.  
  574.  
  575.  
  576.  
  577.  
  578. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement