PageRenderTime 56ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/plugins/revslider/views/templates/edit_layers.php

https://bitbucket.org/acipriani/madeinapulia.com
PHP | 1084 lines | 976 code | 102 blank | 6 comment | 177 complexity | 6f1df48e00b173e46ad0979efa84b393 MD5 | raw file
Possible License(s): GPL-3.0, MIT, BSD-3-Clause, LGPL-2.1, GPL-2.0, Apache-2.0
  1. <div class="edit_slide_wrapper<?php echo ($slide->isStaticSlide()) ? ' rev_static_layers' : ''; ?>">
  2. <?php
  3. if(!$slide->isStaticSlide()){
  4. ?>
  5. <div class="editor_buttons_wrapper postbox unite-postbox" style="max-width:100% !important;">
  6. <h3 class="box-closed tp-accordion">
  7. <span class="postbox-arrow2">-</span><span><?php _e("Slider Main Image / Background",REVSLIDER_TEXTDOMAIN) ?></span>
  8. </h3>
  9. <div class="toggled-content">
  10. <div class="inner_wrapper p10 pb0 pt0 boxsized">
  11. <div class="editor_buttons_wrapper_top">
  12. <h3 style="cursor:default !important; background:none !important;border:none;box-shadow:none !important;font-size:12px;padding:0px;margin:10px 0px 0px;"><?php _e("Background Source:",REVSLIDER_TEXTDOMAIN)?></h3>
  13. <!-- IMAGE FROM MEDIAGALLERY -->
  14. <input style="float:left" type="radio" name="radio_bgtype" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="image" id="radio_back_image" <?php if($bgType == "image") echo 'checked="checked"'?>>
  15. <label style="float:left;margin-left:5px;margin-top:2px;" for="radio_back_image"><?php _e("Image BG",REVSLIDER_TEXTDOMAIN)?></label>
  16. <!-- THE BG IMAGE CHANGED DIV -->
  17. <div id="tp-bgimagewpsrc" class="bgsrcchanger-div" style="display:none;float:left;margin-top:-7px;">
  18. <a href="javascript:void(0)" id="button_change_image" class="button-primary revblue <?php if($bgType != "image") echo "button-disabled" ?>" style="margin-bottom:5px"><?php _e("Change Image",REVSLIDER_TEXTDOMAIN)?></a>
  19. </div>
  20. <!-- IMAGE FROM EXTERNAL -->
  21. <input type="radio" name="radio_bgtype" style="float:left;margin-left:15px;" data-callid="tp-bgimageextsrc" data-imgsettings="on" class="bgsrcchanger" data-bgtype="external" id="radio_back_external" <?php if($bgType == "external") echo 'checked="solid"'?>>
  22. <label style="float:left;margin-left:5px;margin-top:2px;"for="radio_back_external"><?php _e("External URL",REVSLIDER_TEXTDOMAIN)?></label>
  23. <!-- THE BG IMAGE FROM EXTERNAL SOURCE -->
  24. <div id="tp-bgimageextsrc" class="bgsrcchanger-div" style="display:none;float:left;margin-top:-7px;">
  25. <input type="text" name="bg_external" id="slide_bg_external" value="<?php echo $slideBGExternal?>" <?php echo ($bgType != 'external') ? ' class="disabled"' : ''; ?>>
  26. <a href="javascript:void(0)" id="button_change_external" class="button-primary revblue <?php if($bgType != "external") echo "button-disabled" ?>" style="margin-bottom:5px"><?php _e("Get External",REVSLIDER_TEXTDOMAIN)?></a>
  27. </div>
  28. <!-- TRANSPARENT BACKGROUND -->
  29. <input type="radio" name="radio_bgtype" style="float:left;margin-left:15px;" data-callid="" class="bgsrcchanger" data-bgtype="trans" id="radio_back_trans" <?php if($bgType == "trans") echo 'checked="checked"'?>>
  30. <label style="float:left;margin-left:5px;margin-top:2px;"for="radio_back_trans"><?php _e("Transparent",REVSLIDER_TEXTDOMAIN)?></label>
  31. <!-- COLORED BACKGROUND -->
  32. <input type="radio" name="radio_bgtype" style="float:left;margin-left:15px;" data-callid="tp-bgcolorsrc" class="bgsrcchanger" data-bgtype="solid" id="radio_back_solid" <?php if($bgType == "solid") echo 'checked="solid"'?>>
  33. <label style="float:left;margin-left:5px;margin-top:2px;"for="radio_back_solid"><?php _e("Solid Colored",REVSLIDER_TEXTDOMAIN)?></label>
  34. <!-- THE COLOR SELECTOR -->
  35. <div id="tp-bgcolorsrc" class="bgsrcchanger-div" style="display:none;float:left;margin-top:-5px;">
  36. <input type="text" name="bg_color" id="slide_bg_color" <?php echo $bgSolidPickerProps?> value="<?php echo $slideBGColor?>">
  37. </div>
  38. <div style="clear:both"></div>
  39. <!-- PREVIEW BUTTON -->
  40. <!-- THE BG IMAGE SETTINGS -->
  41. <div id="tp-bgimagesettings" class="bgsrcchanger-div" style="margin-top:10px;display:none">
  42. <div id="bg-setting-wrap">
  43. <h3 style="cursor:default !important; background:none !important;border:none;box-shadow:none !important;font-size:12px;padding:0px;margin:17px 0px 0px;"><?php _e("Background Settings:",REVSLIDER_TEXTDOMAIN)?></h3>
  44. <label for="slide_bg_fit"><?php _e("Background Fit:",REVSLIDER_TEXTDOMAIN)?></label>
  45. <select name="bg_fit" id="slide_bg_fit" style="margin-right:20px">
  46. <option value="cover"<?php if($bgFit == 'cover') echo ' selected="selected"'; ?>>cover</option>
  47. <option value="contain"<?php if($bgFit == 'contain') echo ' selected="selected"'; ?>>contain</option>
  48. <option value="percentage"<?php if($bgFit == 'percentage') echo ' selected="selected"'; ?>>(%, %)</option>
  49. <option value="normal"<?php if($bgFit == 'normal') echo ' selected="selected"'; ?>>normal</option>
  50. </select>
  51. <input type="text" name="bg_fit_x" style="<?php if($bgFit != 'percentage') echo 'display: none; '; ?> width:60px;margin-right:10px" value="<?php echo $bgFitX; ?>" />
  52. <input type="text" name="bg_fit_y" style="<?php if($bgFit != 'percentage') echo 'display: none; '; ?> width:60px;margin-right:10px" value="<?php echo $bgFitY; ?>" />
  53. <label for="slide_bg_repeat"><?php _e("Background Repeat:",REVSLIDER_TEXTDOMAIN)?></label>
  54. <select name="bg_repeat" id="slide_bg_repeat" style="margin-right:20px">
  55. <option value="no-repeat"<?php if($bgRepeat == 'no-repeat') echo ' selected="selected"'; ?>>no-repeat</option>
  56. <option value="repeat"<?php if($bgRepeat == 'repeat') echo ' selected="selected"'; ?>>repeat</option>
  57. <option value="repeat-x"<?php if($bgRepeat == 'repeat-x') echo ' selected="selected"'; ?>>repeat-x</option>
  58. <option value="repeat-y"<?php if($bgRepeat == 'repeat-y') echo ' selected="selected"'; ?>>repeat-y</option>
  59. </select>
  60. <label for="slide_bg_position" id="bg-position-lbl"><?php _e("Background Position:",REVSLIDER_TEXTDOMAIN)?></label>
  61. <div id="bg-start-position-wrapper">
  62. <select name="bg_position" id="slide_bg_position">
  63. <option value="center top"<?php if($bgPosition == 'center top') echo ' selected="selected"'; ?>>center top</option>
  64. <option value="center right"<?php if($bgPosition == 'center right') echo ' selected="selected"'; ?>>center right</option>
  65. <option value="center bottom"<?php if($bgPosition == 'center bottom') echo ' selected="selected"'; ?>>center bottom</option>
  66. <option value="center center"<?php if($bgPosition == 'center center') echo ' selected="selected"'; ?>>center center</option>
  67. <option value="left top"<?php if($bgPosition == 'left top') echo ' selected="selected"'; ?>>left top</option>
  68. <option value="left center"<?php if($bgPosition == 'left center') echo ' selected="selected"'; ?>>left center</option>
  69. <option value="left bottom"<?php if($bgPosition == 'left bottom') echo ' selected="selected"'; ?>>left bottom</option>
  70. <option value="right top"<?php if($bgPosition == 'right top') echo ' selected="selected"'; ?>>right top</option>
  71. <option value="right center"<?php if($bgPosition == 'right center') echo ' selected="selected"'; ?>>right center</option>
  72. <option value="right bottom"<?php if($bgPosition == 'right bottom') echo ' selected="selected"'; ?>>right bottom</option>
  73. <option value="percentage"<?php if($bgPosition == 'percentage') echo ' selected="selected"'; ?>>(x%, y%)</option>
  74. </select><input type="text" name="bg_position_x" <?php if($bgPosition != 'percentage') echo ' style="display: none;"'; ?> value="<?php echo $bgPositionX; ?>" /><input type="text" name="bg_position_y" <?php if($bgPosition != 'percentage') echo ' style="display: none;"'; ?> value="<?php echo $bgPositionY; ?>" />
  75. </div>
  76. </div>
  77. <div style="clear:both"></div>
  78. <h3 style="cursor:default !important; background:none !important;border:none;box-shadow:none !important;font-size:12px;padding:0px;margin:17px 0px 0px; float: left;"><?php _e("Ken Burns / Pan Zoom Settings:",REVSLIDER_TEXTDOMAIN)?></h3>
  79. <div style="margin-top: 15px; margin-left: 10px; float: left;">
  80. <input type="radio" name="kenburn_effect" value="on" <?php echo ($kenburn_effect == 'on') ? 'checked="checked"' : ''; ?> /> <?php _e("On",REVSLIDER_TEXTDOMAIN)?>&nbsp;&nbsp;<input type="radio" name="kenburn_effect" value="off" <?php echo ($kenburn_effect == 'off') ? 'checked="checked"' : ''; ?> /> <?php _e("Off",REVSLIDER_TEXTDOMAIN)?>
  81. </div>
  82. <div class="clear"></div>
  83. <table id="kenburn_wrapper" <?php echo ($kenburn_effect == 'off') ? 'style="display: none;"' : ''; ?>>
  84. <tr>
  85. <td><?php _e("Background",REVSLIDER_TEXTDOMAIN)?></td>
  86. <td></td>
  87. <td></td>
  88. <td style="width: 15px;">&nbsp;</td>
  89. <td></td>
  90. <td>&nbsp;<?php //_e("Start",REVSLIDER_TEXTDOMAIN)?></td>
  91. <td><?php //_e("End",REVSLIDER_TEXTDOMAIN)?></td>
  92. <td style="width: 15px;">&nbsp;</td>
  93. <td colspan="2"></td>
  94. </tr>
  95. <tr>
  96. <td><?php _e("Start Position:",REVSLIDER_TEXTDOMAIN)?></td>
  97. <td colspan="2" id="bg-start-position-wrapper-kb">
  98. </td>
  99. <td></td>
  100. <td><?php _e("Start Fit: (in %)",REVSLIDER_TEXTDOMAIN)?></td>
  101. <td colspan="2"><input type="text" name="kb_start_fit" value="<?php echo intval($kb_start_fit); ?>" /></td>
  102. <td></td>
  103. <td><?php _e("Easing:",REVSLIDER_TEXTDOMAIN)?></td>
  104. <td>
  105. <select name="kb_easing">
  106. <option <?php if($kb_easing == 'Linear.easeNone') echo ' selected="selected"'; ?> value="Linear.easeNone">Linear.easeNone</option>
  107. <option <?php if($kb_easing == 'Power0.easeIn') echo ' selected="selected"'; ?> value="Power0.easeIn">Power0.easeIn (linear)</option>
  108. <option <?php if($kb_easing == 'Power0.easeInOut') echo ' selected="selected"'; ?> value="Power0.easeInOut">Power0.easeInOut (linear)</option>
  109. <option <?php if($kb_easing == 'Power0.easeOut') echo ' selected="selected"'; ?> value="Power0.easeOut">Power0.easeOut (linear)</option>
  110. <option <?php if($kb_easing == 'Power1.easeIn') echo ' selected="selected"'; ?> value="Power1.easeIn">Power1.easeIn</option>
  111. <option <?php if($kb_easing == 'Power1.easeInOut') echo ' selected="selected"'; ?> value="Power1.easeInOut">Power1.easeInOut</option>
  112. <option <?php if($kb_easing == 'Power1.easeOut') echo ' selected="selected"'; ?> value="Power1.easeOut">Power1.easeOut</option>
  113. <option <?php if($kb_easing == 'Power2.easeIn') echo ' selected="selected"'; ?> value="Power2.easeIn">Power2.easeIn</option>
  114. <option <?php if($kb_easing == 'Power2.easeInOut') echo ' selected="selected"'; ?> value="Power2.easeInOut">Power2.easeInOut</option>
  115. <option <?php if($kb_easing == 'Power2.easeOut') echo ' selected="selected"'; ?> value="Power2.easeOut">Power2.easeOut</option>
  116. <option <?php if($kb_easing == 'Power3.easeIn') echo ' selected="selected"'; ?> value="Power3.easeIn">Power3.easeIn</option>
  117. <option <?php if($kb_easing == 'Power3.easeInOut') echo ' selected="selected"'; ?> value="Power3.easeInOut">Power3.easeInOut</option>
  118. <option <?php if($kb_easing == 'Power3.easeOut') echo ' selected="selected"'; ?> value="Power3.easeOut">Power3.easeOut</option>
  119. <option <?php if($kb_easing == 'Power4.easeIn') echo ' selected="selected"'; ?> value="Power4.easeIn">Power4.easeIn</option>
  120. <option <?php if($kb_easing == 'Power4.easeInOut') echo ' selected="selected"'; ?> value="Power4.easeInOut">Power4.easeInOut</option>
  121. <option <?php if($kb_easing == 'Power4.easeOut') echo ' selected="selected"'; ?> value="Power4.easeOut">Power4.easeOut</option>
  122. <option <?php if($kb_easing == 'Back.easeIn') echo ' selected="selected"'; ?> value="Back.easeIn">Back.easeIn</option>
  123. <option <?php if($kb_easing == 'Back.easeInOut') echo ' selected="selected"'; ?> value="Back.easeInOut">Back.easeInOut</option>
  124. <option <?php if($kb_easing == 'Back.easeOut') echo ' selected="selected"'; ?> value="Back.easeOut">Back.easeOut</option>
  125. <option <?php if($kb_easing == 'Bounce.easeIn') echo ' selected="selected"'; ?> value="Bounce.easeIn">Bounce.easeIn</option>
  126. <option <?php if($kb_easing == 'Bounce.easeInOut') echo ' selected="selected"'; ?> value="Bounce.easeInOut">Bounce.easeInOut</option>
  127. <option <?php if($kb_easing == 'Bounce.easeOut') echo ' selected="selected"'; ?> value="Bounce.easeOut">Bounce.easeOut</option>
  128. <option <?php if($kb_easing == 'Circ.easeIn') echo ' selected="selected"'; ?> value="Circ.easeIn">Circ.easeIn</option>
  129. <option <?php if($kb_easing == 'Circ.easeInOut') echo ' selected="selected"'; ?> value="Circ.easeInOut">Circ.easeInOut</option>
  130. <option <?php if($kb_easing == 'Circ.easeOut') echo ' selected="selected"'; ?> value="Circ.easeOut">Circ.easeOut</option>
  131. <option <?php if($kb_easing == 'Elastic.easeIn') echo ' selected="selected"'; ?> value="Elastic.easeIn">Elastic.easeIn</option>
  132. <option <?php if($kb_easing == 'Elastic.easeInOut') echo ' selected="selected"'; ?> value="Elastic.easeInOut">Elastic.easeInOut</option>
  133. <option <?php if($kb_easing == 'Elastic.easeOut') echo ' selected="selected"'; ?> value="Elastic.easeOut">Elastic.easeOut</option>
  134. <option <?php if($kb_easing == 'Expo.easeIn') echo ' selected="selected"'; ?> value="Expo.easeIn">Expo.easeIn</option>
  135. <option <?php if($kb_easing == 'Expo.easeInOut') echo ' selected="selected"'; ?> value="Expo.easeInOut">Expo.easeInOut</option>
  136. <option <?php if($kb_easing == 'Expo.easeOut') echo ' selected="selected"'; ?> value="Expo.easeOut">Expo.easeOut</option>
  137. <option <?php if($kb_easing == 'Sine.easeIn') echo ' selected="selected"'; ?> value="Sine.easeIn">Sine.easeIn</option>
  138. <option <?php if($kb_easing == 'Sine.easeInOut') echo ' selected="selected"'; ?> value="Sine.easeInOut">Sine.easeInOut</option>
  139. <option <?php if($kb_easing == 'Sine.easeOut') echo ' selected="selected"'; ?> value="Sine.easeOut">Sine.easeOut</option>
  140. <option <?php if($kb_easing == 'SlowMo.ease') echo ' selected="selected"'; ?> value="SlowMo.ease">SlowMo.ease</option>
  141. </select>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td><?php _e("End Position:",REVSLIDER_TEXTDOMAIN)?></td>
  146. <td colspan="2">
  147. <select name="bg_end_position" id="slide_bg_end_position">
  148. <option value="center top"<?php if($bgEndPosition == 'center top') echo ' selected="selected"'; ?>>center top</option>
  149. <option value="center right"<?php if($bgEndPosition == 'center right') echo ' selected="selected"'; ?>>center right</option>
  150. <option value="center bottom"<?php if($bgEndPosition == 'center bottom') echo ' selected="selected"'; ?>>center bottom</option>
  151. <option value="center center"<?php if($bgEndPosition == 'center center') echo ' selected="selected"'; ?>>center center</option>
  152. <option value="left top"<?php if($bgEndPosition == 'left top') echo ' selected="selected"'; ?>>left top</option>
  153. <option value="left center"<?php if($bgEndPosition == 'left center') echo ' selected="selected"'; ?>>left center</option>
  154. <option value="left bottom"<?php if($bgEndPosition == 'left bottom') echo ' selected="selected"'; ?>>left bottom</option>
  155. <option value="right top"<?php if($bgEndPosition == 'right top') echo ' selected="selected"'; ?>>right top</option>
  156. <option value="right center"<?php if($bgEndPosition == 'right center') echo ' selected="selected"'; ?>>right center</option>
  157. <option value="right bottom"<?php if($bgEndPosition == 'right bottom') echo ' selected="selected"'; ?>>right bottom</option>
  158. <option value="percentage"<?php if($bgEndPosition == 'percentage') echo ' selected="selected"'; ?>>(x%, y%)</option>
  159. </select><input type="text" name="bg_end_position_x" <?php if($bgEndPosition != 'percentage') echo ' style="display: none;"'; ?> value="<?php echo $bgEndPositionX; ?>" /><input type="text" name="bg_end_position_y" <?php if($bgEndPosition != 'percentage') echo ' style="display: none;"'; ?> value="<?php echo $bgEndPositionY; ?>" />
  160. </td>
  161. <td></td>
  162. <td><?php _e("End Fit: (in %)",REVSLIDER_TEXTDOMAIN)?></td>
  163. <td colspan="2"><input type="text" name="kb_end_fit" value="<?php echo intval($kb_end_fit); ?>" /></td>
  164. <?php /*<td>_e("Rotation (in °):",REVSLIDER_TEXTDOMAIN) ?></td>
  165. <td><input type="text" name="kb_rotation_start" value="<?php echo intval($kb_rotation_start); ?>" /></td>
  166. <td><input type="text" name="kb_rotation_end" value="<?php echo intval($kb_rotation_end); ?>" /></td>*/?>
  167. <td></td>
  168. <td><?php _e("Duration (in ms):",REVSLIDER_TEXTDOMAIN)?></td>
  169. <td><input type="text" name="kb_duration" value="<?php echo intval($kb_duration); ?>" /></td>
  170. </tr>
  171. </table>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="clear"></div>
  176. </div>
  177. </div>
  178. <div class="clear"></div>
  179. <div class="divide20"></div>
  180. <?php
  181. }
  182. ?>
  183. <?php
  184. $slidertype = $slider->getParam("slider_type","fullwidth");
  185. if($slidertype == 'fullwidth'){
  186. $style .= ' margin: 0 auto;';
  187. $style_wrapper .= ' width: 100%;';
  188. }else{
  189. $style_wrapper .= $style;
  190. }
  191. ?>
  192. <div class="editor_buttons_wrapper postbox unite-postbox" style="max-width:100% !important;">
  193. <h3 class="box-closed tp-accordion">
  194. <span><?php if($slide->isStaticSlide()){ _e("Static / Global Layers",REVSLIDER_TEXTDOMAIN); }else{ ?><?php _e("Slide",REVSLIDER_TEXTDOMAIN); }?></span>
  195. </h3>
  196. <div class="layer-editor-toolbar">
  197. <span class="setting_text_3"><?php _e("Helper Grid:",REVSLIDER_TEXTDOMAIN) ?></span>
  198. <select name="rs-grid-sizes" id="rs-grid-sizes">
  199. <option value="1"><?php _e("Disabled",REVSLIDER_TEXTDOMAIN) ?></option>
  200. <option value="5">5 x 5</option>
  201. <option value="10">10 x 10</option>
  202. <option value="25">25 x 25</option>
  203. <option value="50">50 x 50</option>
  204. </select>
  205. <span class="setting_text_3"><?php _e("Snap to:",REVSLIDER_TEXTDOMAIN) ?></span>
  206. <select name="rs-grid-snapto" id="rs-grid-snapto">
  207. <option value=""><?php _e("None",REVSLIDER_TEXTDOMAIN) ?></option>
  208. <option value=".helplines"><?php _e("Help Lines",REVSLIDER_TEXTDOMAIN) ?></option>
  209. <option value=".slide_layer"><?php _e("Layers",REVSLIDER_TEXTDOMAIN) ?></option>
  210. </select>
  211. <?php
  212. //show/hide layers of specific slides
  213. if($slide->isStaticSlide()){
  214. $all_slides = $slider->getSlides(true);
  215. ?>
  216. <span class="setting_text_3"><?php _e("Show Layers from Slide:",REVSLIDER_TEXTDOMAIN) ?></span>
  217. <select name="rev_show_the_slides">
  218. <option value="none">---</option>
  219. <?php
  220. foreach($all_slides as $c_slide){
  221. $c_params = $c_slide->getParams();
  222. ?>
  223. <option value="<?php echo $c_slide->getID(); ?>"><?php echo UniteFunctionsRev::getVal($c_params, "title", 'Slide').' (ID: '.$c_slide->getID().')'; ?></option>
  224. <?php
  225. }
  226. ?>
  227. </select>
  228. <?php
  229. }
  230. ?>
  231. </div>
  232. <div id="divLayers-wrapper" style="<?php echo $style; ?>" class="slide_wrap_layers" >
  233. <div id="divbgholder" style="<?php echo $style_wrapper.$divbgminwidth; ?>" class="<?php echo $class_wrapper; ?>"></div>
  234. <div id="divLayers" class="<?php echo $divLayersClass?>" style="<?php echo $style.$divLayersWidth; ?>"></div>
  235. </div>
  236. <div class="clear"></div>
  237. <div class="editor_buttons_wrapper postbox unite-postbox" style="max-width:100% !important;">
  238. <div style="width:100%; border-top:1px solid #f1f1f1; margin-top:0px;"></div>
  239. <div class="toggled-content">
  240. <div class="inner_wrapper p10 pb0 pt0 boxsized">
  241. <?php
  242. //show/hide layers of specific slides
  243. $add_static = 'false';
  244. if($slide->isStaticSlide()){
  245. $add_static = 'true';
  246. }
  247. ?>
  248. <div class="editor_buttons_wrapper_bottom">
  249. <div style="float:left">
  250. <a href="javascript:void(0)" id="button_add_layer" data-isstatic="<?php echo $add_static; ?>" class="button-primary revblue"><i class="revicon-layers-alt"></i><?php _e("Add Layer",REVSLIDER_TEXTDOMAIN)?></a>
  251. <a href="javascript:void(0)" id="button_add_layer_image" data-isstatic="<?php echo $add_static; ?>" class="button-primary revblue"><i class="revicon-picture-1"></i><?php _e("Add Layer: Image",REVSLIDER_TEXTDOMAIN)?> </a>
  252. <a href="javascript:void(0)" id="button_add_layer_video" data-isstatic="<?php echo $add_static; ?>" class="button-primary revblue"><i class="revicon-video"></i><?php _e("Add Layer: Video",REVSLIDER_TEXTDOMAIN)?> </a>
  253. <a href="javascript:void(0)" id="button_duplicate_layer" class="button-primary revyellow button-disabled"><i class="revicon-picture"></i><?php _e("Duplicate Layer",REVSLIDER_TEXTDOMAIN)?></a>
  254. </div>
  255. <div style="float:right;">
  256. <a href="javascript:void(0)" id="button_delete_layer" class="button-primary revred button-disabled"><i class="revicon-trash"></i><?php _e("Delete Layer",REVSLIDER_TEXTDOMAIN)?></a>
  257. <a href="javascript:void(0)" id="button_delete_all" class="button-primary revred button-disabled"><i class="revicon-trash"></i><?php _e("Delete All Layers",REVSLIDER_TEXTDOMAIN)?> </a>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="clear"></div>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="clear"></div>
  266. <div class="divide20"></div>
  267. <div class="layer_props_wrapper">
  268. <div class="edit_layers_right" style="position:relative;height:100%">
  269. <div class="postbox unite-postbox layer_sortbox" style="height:100%;">
  270. <div class="open_right_panel">
  271. <div class="open_right_panel_bullet"></div>
  272. <div class="open_right_panel_bullet bulsecond"></div>
  273. <div class="open_right_panel_bullet bulthird"></div>
  274. </div>
  275. <h3 class="no-accordion">
  276. <span><?php _e("Layers Timing & Sorting",REVSLIDER_TEXTDOMAIN)?></span>
  277. </h3>
  278. <div style="display:table; line-height:30px">
  279. <div style="display:table-cell; padding:10px 15px; min-width:45px;"><?php _e("z-Index",REVSLIDER_TEXTDOMAIN)?></div>
  280. <div style="display:table-cell; min-width:78px">
  281. <div id="button_sort_visibility" class="tipsy_enabled_top" title="<?php _e('Hide All Layers',REVSLIDER_TEXTDOMAIN)?>"><i class="eg-icon-eye"></i><i class="eg-icon-eye-off"></i></div>
  282. <div id="button_sort_lock" class="tipsy_enabled_top" title="<?php _e('Lock All Layers',REVSLIDER_TEXTDOMAIN)?>"><i class="eg-icon-lock-open"></i><i class="eg-icon-lock"></i></div>
  283. <div id="button_sort_tillend" class="tipsy_enabled_top" title="<?php _e('Snap to Slide End / Custom End',REVSLIDER_TEXTDOMAIN)?>"><i class="eg-icon-back-in-time"></i></div>
  284. </div>
  285. <div style="display:table-cell;padding:10px 15px 10px 0px;width:100%"><?php _e("Timing",REVSLIDER_TEXTDOMAIN)?>
  286. <div id="button_sort_timing" class="button-primary revblue" style="margin-left:15px !important" title="<?php _e('Show / Hide Timer Settings',REVSLIDER_TEXTDOMAIN)?>"><i class="eg-icon-equalizer"></i> <span class="onoff"> - on</span></div>
  287. </div>
  288. <div style="display:table-cell;padding:10px 0px 10px 0px; min-width:50px;"><?php _e("Start",REVSLIDER_TEXTDOMAIN)?></div>
  289. <div style="display:table-cell;padding:10px 0px 10px 0px; min-width:54px;"><?php _e("End",REVSLIDER_TEXTDOMAIN)?></div>
  290. </div>
  291. <div class="inside" style="margin:0;">
  292. <ul id="sortlist" class='sortlist'></ul>
  293. </div>
  294. <div class="clear"></div>
  295. </div>
  296. </div>
  297. <!----- Left Layers Form ------>
  298. <div class="edit_layers_left">
  299. <form name="form_layers" id="form_layers">
  300. <script type='text/javascript'>
  301. g_settingsObj['form_layers'] = {}
  302. </script>
  303. <?php
  304. $show_static = 'display: none;';
  305. if($slide->isStaticSlide())
  306. $show_static = '';
  307. $isTemplate = $slider->getParam("template", "false");
  308. ?>
  309. <!-- THE GENERAL LAYER PARAMETERS -->
  310. <div class='settings_wrapper' style="<?php echo $show_static; ?>">
  311. <div class="postbox unite-postbox">
  312. <h3 class='no-accordion tp-accordion'><span class="postbox-arrow2">-</span>
  313. <span><?php _e("Static Options",REVSLIDER_TEXTDOMAIN)?> </span>
  314. </h3>
  315. <div class="toggled-content tp-closeifotheropen">
  316. <ul class="list_settings">
  317. <?php
  318. if($isTemplate == "true"){
  319. ?>
  320. <li>
  321. <?php _e('Static Layers will be shown on every slide in template sliders', REVSLIDER_TEXTDOMAIN); ?>
  322. </li>
  323. <?php
  324. }
  325. ?>
  326. <div id="layer_static_wrapper"<?php echo ($isTemplate == "true") ? ' style="display: none;"' : ''; ?>>
  327. <li>
  328. <div id="static_start_on_wrap" class="setting_text"><?php _e('Start on Slide', REVSLIDER_TEXTDOMAIN); ?></div>
  329. <select id="layer_static_start" name="static_start">
  330. <?php
  331. if(!empty($arrSlideNames)){
  332. $si = 1;
  333. end($arrSlideNames);
  334. //fetch key of the last element of the array.
  335. $lastElementKey = key($arrSlideNames);
  336. foreach($arrSlideNames as $sid => $sparams){
  337. if($lastElementKey == $sid) break; //break on the last element
  338. ?>
  339. <option value="<?php echo $si; ?>"><?php echo $si; ?></option>
  340. <?php
  341. $si++;
  342. }
  343. }else{
  344. ?>
  345. <option value="-1">-1</option>
  346. <?php
  347. }
  348. ?>
  349. </select>
  350. </li>
  351. <div class="clear"></div>
  352. <li>
  353. <div id="static_end_on_wrap" class="setting_text"><?php _e('End on Slide', REVSLIDER_TEXTDOMAIN); ?></div>
  354. <select id="layer_static_end" name="static_end">
  355. <?php
  356. if(!empty($arrSlideNames)){
  357. $si = 1;
  358. foreach($arrSlideNames as $sid => $sparams){
  359. ?>
  360. <option value="<?php echo $si; ?>"><?php echo $si; ?></option>
  361. <?php
  362. $si++;
  363. }
  364. }else{
  365. ?>
  366. <option value="-1">-1</option>
  367. <?php
  368. }
  369. ?>
  370. </select>
  371. </li>
  372. </div>
  373. </ul>
  374. </div>
  375. </div>
  376. </div>
  377. <!-- THE GENERAL LAYER PARAMETERS -->
  378. <div class='settings_wrapper'>
  379. <div class="postbox unite-postbox">
  380. <h3 class='no-accordion tp-accordion'><span class="postbox-arrow2">-</span>
  381. <span><?php _e("Layer General Parameters",REVSLIDER_TEXTDOMAIN)?> </span>
  382. </h3>
  383. <div class="toggled-content tp-closeifotheropen">
  384. <ul class="list_settings">
  385. <li id="end_layer_sap" class="attribute_title" style="margin-top:-10px;">
  386. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Layer Content",REVSLIDER_TEXTDOMAIN)?></span>
  387. <!--<hr>-->
  388. </li>
  389. <?php
  390. $s = $settingsLayerOutput;
  391. $s->drawSettingsByNames("layer_caption");
  392. //add css editor
  393. $s->drawCssEditor();
  394. //add global styles editor
  395. $s->drawGlobalCssEditor();
  396. $s->drawSettingsByNames("layer_text,button_edit_video,button_change_image_source,layer_alt");
  397. ?>
  398. <li style="clear:both">
  399. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Align, Position & Styling",REVSLIDER_TEXTDOMAIN)?></span>
  400. <!--<hr>-->
  401. </li>
  402. <li class="align_table_wrapper">
  403. <table id="align_table" class="align_table table_disabled">
  404. <tr>
  405. <td><a href="javascript:void(0)" id="linkalign_left_top" data-hor="left" data-vert="top"></a></td>
  406. <td><a href="javascript:void(0)" id="linkalign_center_top" data-hor="center" data-vert="top"></a></td>
  407. <td><a href="javascript:void(0)" id="linkalign_right_top" data-hor="right" data-vert="top"></a></td>
  408. </tr>
  409. <tr>
  410. <td><a href="javascript:void(0)" id="linkalign_left_middle" data-hor="left" data-vert="middle"></a></td>
  411. <td><a href="javascript:void(0)" id="linkalign_center_middle" data-hor="center" data-vert="middle"></a></td>
  412. <td><a href="javascript:void(0)" id="linkalign_right_middle" data-hor="right" data-vert="middle"></a></td>
  413. </tr>
  414. <tr>
  415. <td><a href="javascript:void(0)" id="linkalign_left_bottom" data-hor="left" data-vert="bottom"></a></td>
  416. <td><a href="javascript:void(0)" id="linkalign_center_bottom" data-hor="center" data-vert="bottom"></a></td>
  417. <td><a href="javascript:void(0)" id="linkalign_right_bottom" data-hor="right" data-vert="bottom"></a></td>
  418. </tr>
  419. </table>
  420. </li>
  421. <div style="float:left;width:300px;">
  422. <div style="clear:both">
  423. <?php
  424. $s->drawSettingsByNames("layer_left,layer_top");
  425. ?>
  426. </div>
  427. <div style="clear:both">
  428. <?php
  429. $s->drawSettingsByNames("layer_whitespace");
  430. ?>
  431. </div>
  432. <div style="clear:both;display:none">
  433. <?php
  434. $s->drawSettingsByNames("layer_align_hor,layer_align_vert");
  435. ?>
  436. </div>
  437. <div style="clear:both"></div>
  438. <div>
  439. <?php
  440. $s->drawSettingsByNames("layer_max_width,layer_max_height");
  441. ?>
  442. </div>
  443. </div>
  444. <li id="layer_scale_title_row" style="clear:both;">
  445. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Image Scale (dimensions in pixel)",REVSLIDER_TEXTDOMAIN)?></span>
  446. </li>
  447. <a id="reset-scale" class="revred button-primary" href="javascript:void(0);"><?php echo _e("Reset Size",REVSLIDER_TEXTDOMAIN)?></a>
  448. <?php
  449. $s->drawSettingsByNames("layer_scaleX,layer_scaleY");
  450. $s->drawSettingsByNames("layer_proportional_scale");
  451. $show_parallax = 'display: none;';
  452. if(UniteFunctionsRev::getVal($sliderParams, "use_parallax","off") == 'on')
  453. $show_parallax = '';
  454. ?>
  455. <li id="layer_2d_title_row" style="clear:both;">
  456. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Final Rotation",REVSLIDER_TEXTDOMAIN)?></span>
  457. </li>
  458. <div style="clear: both;">
  459. <?php
  460. $s->drawSettingsByNames("layer_2d_rotation");
  461. $s->drawSettingsByNames("layer_2d_origin_x");
  462. $s->drawSettingsByNames("layer_2d_origin_y");
  463. ?>
  464. </div>
  465. <div id="parallax_wrapper_div" style="<?php echo $show_parallax; ?>">
  466. <li id="parallax_title_row" style="clear:both;">
  467. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Parallax Setting",REVSLIDER_TEXTDOMAIN)?></span>
  468. </li>
  469. <?php
  470. $s->drawSettingsByNames("parallax_level");
  471. ?>
  472. </div>
  473. </ul>
  474. <div class="clear"></div>
  475. </div>
  476. </div>
  477. </div>
  478. <!-- THE ANIMATION PARAMETERS -->
  479. <div class='settings_wrapper'>
  480. <div class="postbox unite-postbox">
  481. <h3 class='no-accordion tp-accordion tpa-closed'><span class="postbox-arrow2">+</span>
  482. <span><?php _e("Layer Animation",REVSLIDER_TEXTDOMAIN)?> </span>
  483. </h3>
  484. <div class="toggled-content tp-closedatstart tp-closeifotheropen">
  485. <ul class="list_settings">
  486. <!--LAYER START ANIMATION -->
  487. <li id="end_layer_sap" class="attribute_title" style="margin-top:-10px;">
  488. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Preview Transition (Star end Endtime is Ignored during Demo)",REVSLIDER_TEXTDOMAIN)?></span>
  489. </li>
  490. <div id="preview_caption_transition">
  491. <div class="preview_caption_wrapper">
  492. <div id="preview_caption_animateme">LAYER EXAMPLE</div>
  493. </div>
  494. <div id="preview_looper"><i class="revicon-arrows-ccw"></i><span class="replyinfo">ON</span></div>
  495. </div>
  496. <div class="divide10"></div>
  497. <!--LAYER START ANIMATION -->
  498. <li id="end_layer_sap" class="attribute_title" style="">
  499. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Start Transition",REVSLIDER_TEXTDOMAIN)?></span>
  500. </li>
  501. <div class="layer-animations">
  502. <div style="float:left;margin-right:10px;"><?php
  503. $s->drawSettingsByNames("layer_animation");
  504. ?></div>
  505. <a href="javascript:void(0)" id="add_customanimation_in" class="button-primary revblue"><i class="revicon-equalizer"></i><?php _e("Custom Animation",REVSLIDER_TEXTDOMAIN)?></a>
  506. <div class="clear"></div>
  507. <?php
  508. $s->drawSettingsByNames("layer_easing,layer_speed,layer_split,layer_splitdelay");
  509. ?>
  510. </div>
  511. <!--LAYER END ANIMATION -->
  512. <li id="end_layer_sap" class="attribute_title" style="">
  513. <span class="setting_text_2 text-disabled" original-title=""><?php _e("End Transition (optional)",REVSLIDER_TEXTDOMAIN)?></span>
  514. </li>
  515. <div class="layer-animations">
  516. <div style="float:left;margin-right:10px;"><?php
  517. $s->drawSettingsByNames("layer_endanimation");
  518. ?></div>
  519. <a href="javascript:void(0)" id="add_customanimation_out" class="button-primary revblue"><i class="revicon-equalizer"></i><?php _e("Custom Animation",REVSLIDER_TEXTDOMAIN)?></a>
  520. <div class="clear"></div>
  521. <?php
  522. $s->drawSettingsByNames("layer_endeasing,layer_endspeed,layer_endtime,layer_endsplit,layer_endsplitdelay");
  523. ?>
  524. </div>
  525. <!--LAYER LOOP ANIMATION -->
  526. <li id="loop_layer_sap" class="attribute_title" style="">
  527. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Loop Animation",REVSLIDER_TEXTDOMAIN)?></span>
  528. </li>
  529. <?php
  530. $s->drawSettingsByNames("layer_loop_animation");
  531. ?>
  532. <div id="layer_speed_wrapper" style="display: none;">
  533. <?php
  534. $s->drawSettingsByNames("layer_loop_speed");
  535. ?>
  536. </div>
  537. <div id="layer_easing_wrapper" style="display: none;">
  538. <?php
  539. $s->drawSettingsByNames("layer_loop_easing");
  540. ?>
  541. </div>
  542. <div id="layer_degree_wrapper" style="display: none;">
  543. <?php
  544. $s->drawSettingsByNames("layer_loop_startdeg,layer_loop_enddeg");
  545. ?>
  546. <div style="clear: both"></div>
  547. </div>
  548. <div id="layer_origin_wrapper" style="display: none;">
  549. <?php
  550. $s->drawSettingsByNames("layer_loop_xorigin,layer_loop_yorigin");
  551. ?>
  552. <div style="clear: both"></div>
  553. </div>
  554. <div id="layer_x_wrapper" style="display: none;">
  555. <?php
  556. $s->drawSettingsByNames("layer_loop_xstart,layer_loop_xend");
  557. ?>
  558. <div style="clear: both"></div>
  559. </div>
  560. <div id="layer_y_wrapper" style="display: none;">
  561. <?php
  562. $s->drawSettingsByNames("layer_loop_ystart,layer_loop_yend");
  563. ?>
  564. <div style="clear: both"></div>
  565. </div>
  566. <div id="layer_zoom_wrapper" style="display: none;">
  567. <?php
  568. $s->drawSettingsByNames("layer_loop_zoomstart,layer_loop_zoomend");
  569. ?>
  570. <div style="clear: both"></div>
  571. </div>
  572. <div id="layer_angle_wrapper" style="display: none;">
  573. <?php
  574. $s->drawSettingsByNames("layer_loop_angle");
  575. ?>
  576. </div>
  577. <div id="layer_radius_wrapper" style="display: none;">
  578. <?php
  579. $s->drawSettingsByNames("layer_loop_radius");
  580. ?>
  581. </div>
  582. </ul>
  583. <div class="clear"></div>
  584. </div>
  585. </div>
  586. </div><!-- END OF ANIMATION PARAMETERS -->
  587. <!-- LAYER ANIMATION EDITOR (DISPLAY NONE !!)-->
  588. <div id="layeranimeditor_wrap" title="Layer Animation Editor" style="display:none;margin-bottom:0px; padding-bottom:0px;">
  589. <div class="tp-present-wrapper-parent">
  590. <div class="tp-present-wrapper">
  591. <div class="tp-present-caption">
  592. <div id="caption_custon_anim_preview" class="">LAYER EXAMPLE</div>
  593. </div>
  594. </div>
  595. </div>
  596. <div class="divide20"></div>
  597. <div class="settings_wrapper">
  598. <div class="postbox unite-postbox">
  599. <h3 class="no-accordion tp-accordion">
  600. <span style="font-size:13px;padding-left:4px;"><i class="revicon-equalizer"></i><?php _e("Layer Animation Settings Panel",REVSLIDER_TEXTDOMAIN)?></span>
  601. <span style="float: right;"><a href="javascript:void(0);" style="margin-top:-7px;border: none;font-weight: 400;box-shadow: none;-webkit-box-shadow: none;-moz-box-shadow: none;" id="set-random-animation" class="button-primary revgreen"><i class="eg-icon-shuffle"></i><?php _e("Randomize",REVSLIDER_TEXTDOMAIN)?></a></span>
  602. </h3>
  603. <table style="border-spacing:0px">
  604. <!-- TRANSITION -->
  605. <tr class="css-edit-title graybasicbg" ><td colspan="6" style="padding:10px"><?php _e("Transition",REVSLIDER_TEXTDOMAIN)?></td></tr>
  606. <tr class="graybasicbg">
  607. <td><?php _e("X:",REVSLIDER_TEXTDOMAIN) ?></td>
  608. <td style="padding-bottom:15px">
  609. <div id='caption-movex-slider' class="rotationsliders"></div>
  610. <input class="css_edit_novice tpshortinput" name="movex" type="text" value="0" />px
  611. </td>
  612. <td><?php _e("Y:",REVSLIDER_TEXTDOMAIN) ?></td>
  613. <td style="padding-bottom:15px">
  614. <div id='caption-movey-slider' class="rotationsliders"></div>
  615. <input class="css_edit_novice tpshortinput" name="movey" type="text" value="0" />px
  616. </td>
  617. <td><?php _e("Z:",REVSLIDER_TEXTDOMAIN) ?></td>
  618. <td style="padding-bottom:15px">
  619. <div id='caption-movez-slider' class="rotationsliders"></div>
  620. <input class="css_edit_novice tpshortinput" name="movez" type="text" value="0" />px
  621. </td>
  622. </tr>
  623. <!-- ROTATION -->
  624. <tr class="css-edit-title"><td colspan="6" style="padding:10px"><?php _e("Rotation",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  625. <tr>
  626. <td><?php _e("X:",REVSLIDER_TEXTDOMAIN) ?></td>
  627. <td style="padding-bottom:15px">
  628. <div id='caption-rotationx-slider' class="rotationsliders"></div>
  629. <input class="css_edit_novice tpshortinput" name="rotationx" type="text" value="0" />°
  630. </td>
  631. <td><?php _e("Y:",REVSLIDER_TEXTDOMAIN) ?></td>
  632. <td style="padding-bottom:15px">
  633. <div id='caption-rotationy-slider' class="rotationsliders"></div>
  634. <input class="css_edit_novice tpshortinput" name="rotationy" type="text" value="0" />°
  635. </td>
  636. <td><?php _e("Z:",REVSLIDER_TEXTDOMAIN) ?></td>
  637. <td style="padding-bottom:15px">
  638. <div id='caption-rotationz-slider' class="rotationsliders"></div>
  639. <input class="css_edit_novice tpshortinput" name="rotationz" type="text" value="0" />°
  640. </td>
  641. </tr>
  642. </table>
  643. <table style="border-spacing:0px">
  644. <!-- SCALE && SKEW-->
  645. <tr class="css-edit-title graybasicbg">
  646. <td colspan="4" style="padding:10px"><?php _e("Scale",REVSLIDER_TEXTDOMAIN) ?></td>
  647. <td colspan="4" style="padding:10px;padding-left:20px"><?php _e("Skew",REVSLIDER_TEXTDOMAIN) ?></td>
  648. </tr>
  649. <tr class="graybasicbg">
  650. <!-- SCALE X -->
  651. <td style="width:30px"><?php _e("X:",REVSLIDER_TEXTDOMAIN) ?></td>
  652. <td style="width:100px; padding-bottom:15px; ">
  653. <div id='caption-scalex-slider' class="rotationsliders" style="width:100px !important;"></div>
  654. <input class="css_edit_novice tpshortinput" name="scalex" type="text" value="0" />%
  655. </td>
  656. <!-- SCALE Y -->
  657. <td style="width:30px;"><?php _e("Y:",REVSLIDER_TEXTDOMAIN) ?></td>
  658. <td style="width:100px; padding-bottom:15px; ">
  659. <div id='caption-scaley-slider' class="rotationsliders" style="width:100px;"></div>
  660. <input class="css_edit_novice tpshortinput" name="scaley" type="text" value="0" />%
  661. </td>
  662. <td style="width:30px;"><?php _e("X:",REVSLIDER_TEXTDOMAIN) ?></td>
  663. <!-- SKEW X -->
  664. <td style="width:100px; padding-bottom:15px; ">
  665. <div id='caption-skewx-slider' class="rotationsliders" style="width:100px;"></div>
  666. <input class="css_edit_novice tpshortinput" name="skewx" type="text" value="0" />°
  667. </td>
  668. <td style="width:30px"><?php _e("Y:",REVSLIDER_TEXTDOMAIN) ?></td>
  669. <!-- SKEW Y -->
  670. <td style="width:100px; padding-bottom:15px; ">
  671. <div id='caption-skewy-slider' class="rotationsliders" style="width:100px;"></div>
  672. <input class="css_edit_novice tpshortinput" name="skewy" type="text" value="0" />°
  673. </td>
  674. </tr>
  675. </table>
  676. <table style="border-spacing:0px padding-bottom:10px">
  677. <!-- OPACITY -->
  678. <tr class="css-edit-title">
  679. <td colspan="2" style="padding:10px"><?php _e("Opacity",REVSLIDER_TEXTDOMAIN)?></td>
  680. <td colspan="2" style="padding:10px;padding-left:20px"><?php _e("Perspective",REVSLIDER_TEXTDOMAIN)?></td>
  681. <td colspan="2" style="padding:10px;padding-left:20px"><?php _e("Origin",REVSLIDER_TEXTDOMAIN)?></td>
  682. </tr>
  683. <tr class="">
  684. <!-- OPACITY -->
  685. <td style="width:30px"></td>
  686. <td style="width:100px; padding-bottom:15px; ">
  687. <div id='caption-opacity-slider' class="rotationsliders" style="width:100px !important;"></div>
  688. <input class="css_edit_novice tpshortinput" name="captionopacity" type="text" value="0" />%
  689. </td>
  690. <!-- PERSPECTIVE -->
  691. <td style="width:30px;"></td>
  692. <td style="width:100px; padding-bottom:15px; ">
  693. <div id='caption-perspective-slider' class="rotationsliders" style="width:100px;"></div>
  694. <input class="css_edit_novice tpshortinput" name="captionperspective" type="text" value="0" />px
  695. </td>
  696. <!-- ORIGINX -->
  697. <td style="width:30px;"><?php _e("X:",REVSLIDER_TEXTDOMAIN) ?></td>
  698. <td style="width:100px; padding-bottom:15px; ">
  699. <div id='caption-originx-slider' class="rotationsliders" style="width:100px;"></div>
  700. <input class="css_edit_novice tpshortinput" name="originx" type="text" value="0" />%
  701. </td>
  702. <!-- ORIGINY -->
  703. <td style="width:30px"><?php _e("Y:",REVSLIDER_TEXTDOMAIN) ?></td>
  704. <td style="width:100px; padding-bottom:15px; ">
  705. <div id='caption-originy-slider' class="rotationsliders" style="width:100px;"></div>
  706. <input class="css_edit_novice tpshortinput" name="originy" type="text" value="0" />%
  707. </td>
  708. </tr>
  709. </table>
  710. </div>
  711. </div>
  712. <div class="settings_wrapper">
  713. <div class="postbox unite-postbox">
  714. <h3 class="no-accordion tp-accordion">
  715. <span style="font-size:13px;padding-left:4px;"><i class="eg-icon-tools"></i><?php _e("Test Parameters",REVSLIDER_TEXTDOMAIN)?></span>
  716. <span style="font-size: 9px;text-align: right;font-weight: 300;font-style: italic;white-space: nowrap;"><?php _e("*These Settings are only for Customizer. Settings can be set per Start and End Animation.",REVSLIDER_TEXTDOMAIN)?></span>
  717. </h3>
  718. <table>
  719. <tr>
  720. <td>Speed:</td>
  721. <td style="vertical-align: middle; line-height: 25px;"><input class="css_edit_novice tpshortinput" style="margin-top:3px;margin-right:5px;" name="captionspeed" type="text" value="600" />ms</td>
  722. <td>Easing:</td>
  723. <td>
  724. <select id="caption-easing-demo" name="caption-easing-demo" class="">
  725. <option value="Linear.easeNone">Linear.easeNone</option>
  726. <option value="Power0.easeIn">Power0.easeIn (linear)</option>
  727. <option value="Power0.easeInOut">Power0.easeInOut (linear)</option>
  728. <option value="Power0.easeOut">Power0.easeOut (linear)</option>
  729. <option value="Power1.easeIn">Power1.easeIn</option>
  730. <option value="Power1.easeInOut">Power1.easeInOut</option>
  731. <option value="Power1.easeOut">Power1.easeOut</option>
  732. <option value="Power2.easeIn">Power2.easeIn</option>
  733. <option value="Power2.easeInOut">Power2.easeInOut</option>
  734. <option value="Power2.easeOut">Power2.easeOut</option>
  735. <option value="Power3.easeIn">Power3.easeIn</option>
  736. <option value="Power3.easeInOut">Power3.easeInOut</option>
  737. <option value="Power3.easeOut">Power3.easeOut</option>
  738. <option value="Power4.easeIn">Power4.easeIn</option>
  739. <option value="Power4.easeInOut">Power4.easeInOut</option>
  740. <option value="Power4.easeOut">Power4.easeOut</option>
  741. <option value="Back.easeIn">Back.easeIn</option>
  742. <option value="Back.easeInOut">Back.easeInOut</option>
  743. <option value="Back.easeOut">Back.easeOut</option>
  744. <option value="Bounce.easeIn">Bounce.easeIn</option>
  745. <option value="Bounce.easeInOut">Bounce.easeInOut</option>
  746. <option value="Bounce.easeOut">Bounce.easeOut</option>
  747. <option value="Circ.easeIn">Circ.easeIn</option>
  748. <option value="Circ.easeInOut">Circ.easeInOut</option>
  749. <option value="Circ.easeOut">Circ.easeOut</option>
  750. <option value="Elastic.easeIn">Elastic.easeIn</option>
  751. <option value="Elastic.easeInOut">Elastic.easeInOut</option>
  752. <option value="Elastic.easeOut">Elastic.easeOut</option>
  753. <option value="Expo.easeIn">Expo.easeIn</option>
  754. <option value="Expo.easeInOut">Expo.easeInOut</option>
  755. <option value="Expo.easeOut">Expo.easeOut</option>
  756. <option value="Sine.easeIn">Sine.easeIn</option>
  757. <option value="Sine.easeInOut">Sine.easeInOut</option>
  758. <option value="Sine.easeOut">Sine.easeOut</option>
  759. <option value="SlowMo.ease">SlowMo.ease</option>
  760. </select>
  761. </td>
  762. </tr>
  763. <tr>
  764. <td>Animate per:</td>
  765. <td>
  766. <select id="caption-split-demo" name="caption-split-demo" class="">
  767. <option value="full">None</option>
  768. <option value="chars">Chars</option>
  769. <option value="words">Words</option>
  770. <option value="lines">Lines</option>
  771. </select>
  772. </td>
  773. <!-- DELAYS -->
  774. <td>Delays:</td>
  775. <td style="vertical-align: middle; line-height: 25px;"><input class="css_edit_novice tpshortinput" style="margin-top:3px;margin-right:5px;" name="captionsplitdelay" type="text" value="10" />ms</td>
  776. </tr>
  777. </table>
  778. <div id="caption-inout-controll" class="caption-inout-controll">
  779. <i id="revshowmetheinanim" class="revicon-login reviconinaction"></i><i id="revshowmetheoutanim" class="revicon-logout"></i><?php _e("Transition Direction",REVSLIDER_TEXTDOMAIN)?>
  780. </div>
  781. <div class="clear"></div>
  782. </div>
  783. </div>
  784. </div>
  785. <div id="dialog-change-layeranimation" title="Save Layer Animation" style="display:none;">
  786. <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 50px 0;"></span><?php
  787. _e('Overwrite the current selected Animation ',REVSLIDER_TEXTDOMAIN);
  788. echo '"<span id="current-layer-handle"></span>"';
  789. _e(' or save as a new Animation?',REVSLIDER_TEXTDOMAIN)?></p>
  790. </div>
  791. <div id="dialog-change-layeranimation-save-as" title="Save as" style="display:none;">
  792. <p>
  793. <?php _e('Save as Animation:',REVSLIDER_TEXTDOMAIN)?><br />
  794. <input type="text" name="layeranimation_save_as" value="" />
  795. </p>
  796. </div>
  797. <!-- END OF CUSTOM ANIMATION LAYER EDITOR -->
  798. <!-- THE ADVANCED LAYER PARAMETERS -->
  799. <div class='settings_wrapper'>
  800. <div class="postbox unite-postbox">
  801. <h3 class='no-accordion tp-accordion tpa-closed'><span class="postbox-arrow2">+</span>
  802. <span><?php _e("Layer Links & Advanced Params",REVSLIDER_TEXTDOMAIN)?> </span>
  803. </h3>
  804. <div class="toggled-content tp-closedatstart tp-closeifotheropen">
  805. <ul class="list_settings">
  806. <li class="custom attributes_title" style="margin-top:-10px;">
  807. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Links (optional)",REVSLIDER_TEXTDOMAIN)?></span>
  808. <!--<hr>-->
  809. </li>
  810. <div class="layer-links">
  811. <?php
  812. $s = $settingsLayerOutput;
  813. $s->drawSettingsByNames("layer_image_link,layer_link_open_in,layer_slide_link,layer_scrolloffset,layer_link_id,layer_link_class,layer_link_title,layer_link_rel");
  814. ?>
  815. </div><div style="clear: both;"></div>
  816. <li id="" class="custom attributes_title" style="">
  817. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Caption Sharp Corners (optional only with BG color)",REVSLIDER_TEXTDOMAIN)?></span>
  818. <!--<hr>-->
  819. </li>
  820. <div class="layer-links">
  821. <?php
  822. $s = $settingsLayerOutput;
  823. $s->drawSettingsByNames("layer_cornerleft,layer_cornerright");
  824. ?>
  825. </div>
  826. <li id="" class="custom attributes_title" style="">
  827. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Advanced Responsive Settings",REVSLIDER_TEXTDOMAIN)?></span>
  828. </li>
  829. <div class="layer-links">
  830. <?php
  831. $s = $settingsLayerOutput;
  832. $s->drawSettingsByNames("layer_resizeme,layer_hidden");
  833. ?>
  834. </div>
  835. <li id="custom_attributes" class="custom attributes_title" style="">
  836. <span class="setting_text_2 text-disabled" original-title=""><?php _e("Attributes (optional)",REVSLIDER_TEXTDOMAIN)?></span>
  837. </li>
  838. <?php
  839. $s = $settingsLayerOutput;
  840. $s->drawSettingsByNames("layer_id,layer_classes,layer_title,layer_rel");
  841. ?>
  842. </ul>
  843. <div class="clear"></div>
  844. </div>
  845. </div>
  846. </div>
  847. </form>
  848. </div>
  849. <!----- End Left Layers Form ------>
  850. <div class="clear"></div>
  851. </div>
  852. </div>
  853. <div id="dialog_insert_button" class="dialog_insert_button" title="Insert Button" style="display:none;">
  854. <p>
  855. <ul class="list-buttons">
  856. <?php foreach($arrButtonClasses as $class=>$text): ?>
  857. <li>
  858. <a href="javascript:UniteLayersRev.insertButton('<?php echo $class?>','<?php echo $text?>')" class="tp-button <?php echo $class?> small"><?php echo $text?></a>
  859. </li>
  860. <?php endforeach;?>
  861. </ul>
  862. </p>
  863. </div>
  864. <div id="dialog_template_insert" class="dialog_template_help" title="<?php _e("Template Insertions",REVSLIDER_TEXTDOMAIN) ?>" style="display:none;">
  865. <b><?php _e("Post Replace Placeholders:",REVSLIDER_TEXTDOMAIN) ?></b>
  866. <table class="table_template_help">
  867. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('meta:somemegatag')">%meta:somemegatag%</a></td><td><?php _e("Any custom meta tag",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  868. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('title')">%title%</a></td><td><?php _e("Post Title",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  869. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('excerpt')">%excerpt%</a></td><td><?php _e("Post Excerpt",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  870. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('alias')">%alias%</a></td><td><?php _e("Post Alias",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  871. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('content')">%content%</a></td><td><?php _e("Post content",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  872. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('link')">%link%</a></td><td><?php _e("The link to the post",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  873. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('date')">%date%</a></td><td><?php _e("Date created",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  874. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('date_modified')">%date_modified%</a></td><td><?php _e("Date modified",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  875. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('author_name')">%author_name%</a></td><td><?php _e("Author name",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  876. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('num_comments')">%num_comments%</a></td><td><?php _e("Number of comments",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  877. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('catlist')">%catlist%</a></td><td><?php _e("List of categories with links",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  878. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('taglist')">%taglist%</a></td><td><?php _e("List of tags with links",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  879. </table>
  880. <?php if(UniteEmRev::isEventsExists()):?>
  881. <br><br>
  882. <b><?php _e("Events Placeholders:",REVSLIDER_TEXTDOMAIN) ?></b>
  883. <table class="table_template_help">
  884. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_start_date')">%event_start_date%</a></td><td><?php _e("Event start date",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  885. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_end_date)">'%event_end_date%</a></td><td><?php _e("Event end date",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  886. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_start_time')">%event_start_time%</a></td><td><?php _e("Event start time",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  887. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_end_time)">'%event_end_time%</a></td><td><?php _e("Event end time",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  888. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_event_id')">%event_event_id%</a></td><td><?php _e("Event ID",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  889. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_name')">%event_location_name%</a></td><td><?php _e("Event location name",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  890. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_slug%')">%event_location_slug%</a></td><td><?php _e("Event location slug",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  891. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_address)">%event_location_address%</a></td><td><?php _e("Event location address",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  892. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_town')">%event_location_town%</a></td><td><?php _e("Event location town",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  893. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_state')">%event_location_state%</a></td><td><?php _e("Event location state",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  894. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_postcode')">%event_location_postcode%</a></td><td><?php _e("Event location postcode",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  895. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_region')">%event_location_region%</a></td><td><?php _e("Event location region",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  896. <tr><td><a href="javascript:UniteLayersRev.insertTemplate('event_location_country')">%event_location_country%</a></td><td><?php _e("Event location country",REVSLIDER_TEXTDOMAIN) ?></td></tr>
  897. </table>
  898. <?php endif?>
  899. </div>
  900. <!-- FIXED POSITIONED TOOLBOX -->
  901. <div class="" style="position:fixed;right:-10px;top:100px;z-index:100;">
  902. <?php
  903. if(!$slide->isStaticSlide()){
  904. ?>
  905. <a href="javascript:void(0)" id="button_preview_slide-tb" class="button-primary button-fixed revbluedark"><div style="font-size:16px; padding:10px 5px;" class="revicon-search-1"></div></a>
  906. <?php
  907. }else{
  908. ?>
  909. <a href="javascript:void(0)" id="button_preview_slider-tb" class="button-primary button-fixed revbluedark"><div style="font-size:16px; padding:10px 5px;" class="revicon-search-1"></div></a>
  910. <?php
  911. }
  912. ?>
  913. </div>
  914. <script type="text/javascript">
  915. jQuery(document).ready(function() {
  916. <?php if(!empty($jsonLayers)):?>
  917. //set init layers object
  918. UniteLayersRev.setInitLayersJson(<?php echo $jsonLayers?>);
  919. <?php endif?>
  920. <?php if($slide->isStaticSlide()){
  921. $arrayDemoLayers = array();
  922. $arrayDemoSettings = array();
  923. if(!empty($all_slides)){
  924. foreach($all_slides as $cSlide){
  925. $arrayDemoLayers[$cSlide->getID()] = $cSlide->getLayers();
  926. $arrayDemoSettings[$cSlide->getID()] = $cSlide->getParams();
  927. }
  928. }
  929. $jsonDemoLayers = UniteFunctionsRev::jsonEncodeForClientSide($arrayDemoLayers);
  930. $jsonDemoSettings = UniteFunctionsRev::jsonEncodeForClientSide($arrayDemoSettings);
  931. ?>
  932. //set init demo layers object
  933. UniteLayersRev.setInitDemoLayersJson(<?php echo $jsonDemoLayers?>);
  934. UniteLayersRev.setInitDemoSettingsJson(<?php echo $jsonDemoSettings?>);
  935. <?php } ?>
  936. <?php if(!empty($jsonCaptions)):?>
  937. UniteLayersRev.setInitCaptionClasses(<?php echo $jsonCaptions?>);
  938. <?php endif?>
  939. <?php if(!empty($arrCustomAnim)):?>
  940. UniteLayersRev.setInitLayerAnim(<?php echo $arrCustomAnim?>);
  941. <?php endif?>
  942. <?php if(!empty($jsonFontFamilys)):?>
  943. UniteLayersRev.setInitFontTypes(<?php echo $jsonFontFamilys?>);
  944. <?php endif?>
  945. <?php if(!empty($arrCssStyles)):?>
  946. UniteCssEditorRev.setInitCssStyles(<?php echo $arrCssStyles?>);
  947. <?php endif?>
  948. UniteCssEditorRev.setCssCaptionsUrl('<?php echo $urlCaptionsCSS?>');
  949. UniteLayersRev.init("<?php echo $slideDelay?>");
  950. UniteCssEditorRev.init();
  951. RevSliderAdmin.initGlobalStyles();
  952. RevSliderAdmin.initLayerPreview();
  953. RevSliderAdmin.setStaticCssCaptionsUrl('<?php echo GlobalsRevSlider::$urlStaticCaptionsCSS; ?>');
  954. /* var reproduce;
  955. jQuery(window).resize(function() {
  956. clearTimeout(reproduce);
  957. reproduce = setTimeout(function() {
  958. UniteLayersRev.refreshGridSize();
  959. },100);
  960. });*/
  961. <?php if($kenburn_effect == 'on'){ ?>
  962. jQuery('input[name="kenburn_effect"]:checked').change();
  963. <?php } ?>
  964. });
  965. </script>