slide-general-settings.php 105 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637
  1. <?php if( !defined( 'ABSPATH') ) exit();
  2. $slide_general_addon = apply_filters('revslider_slide_settings_addons', array(), $slide, $slider);
  3. ?>
  4. <!-- THE CONTEXT MENU -->
  5. <div id="context_menu_underlay" class="ignorecontextmenu"></div>
  6. <nav id="context-menu" class="context-menu">
  7. <ul id="context-menu-first-ul" class="context-menu__items">
  8. <!-- CURRENT LAYER -->
  9. <li class="context-menu__item not_in_ctx_bg" id="ctx-m-activelayer">
  10. <div class="ctx_item_inner"><i id="cx-selected-layer-icon" class="rs-icon-layerimage_n context-menu__link" data-action="nothing"></i><span id="cx-selected-layer-name"><?php _e('Black Canon DSLR', 'revslider'); ?></span>
  11. <span data-uniqueid="4" id="ctx-list-of-layer-links" class="ctx-list-of-layer-links">
  12. <span id="ctx-layer-link-type-element-cs" class="ctx-layer-link-type-element ctx-layer-link-type-element-cs ctx-layer-link-type-3"></span>
  13. <span class="ctx-list-of-layer-links-inner">
  14. <span data-linktype="1" data-action="grouplinkchange" class="context-menu__link ctx-layer-link-type-element ctx-layer-link-type-1"></span>
  15. <span data-linktype="2" data-action="grouplinkchange" class="context-menu__link ctx-layer-link-type-element ctx-layer-link-type-2"></span>
  16. <span data-linktype="3" data-action="grouplinkchange" class="context-menu__link ctx-layer-link-type-element ctx-layer-link-type-3"></span>
  17. <span data-linktype="4" data-action="grouplinkchange" class="context-menu__link ctx-layer-link-type-element ctx-layer-link-type-4"></span>
  18. <span data-linktype="5" data-action="grouplinkchange" class="context-menu__link ctx-layer-link-type-element ctx-layer-link-type-5"></span>
  19. <span data-linktype="0" data-action="grouplinkchange" class="context-menu__link ctx-layer-link-type-element ctx-layer-link-type-0"></span>
  20. </span>
  21. </span>
  22. </div>
  23. </li>
  24. <!-- BACKGROUND CONTEXT - ADD LAYER -->
  25. <li class="context-menu__item context-with-sub not_in_ctx_layer">
  26. <div class="ctx_item_inner"><div class="context-menu__link"><i class="rs-icon-addlayer2"></i><span class="cx-layer-name"><?php _e('Add Layer', 'revslider'); ?></span></div><i class="fa-icon-chevron-right"></i></div>
  27. <ul class="context-submenu">
  28. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addtextlayer"><i class="rs-icon-layerfont_n"></i><span class="cx-layer-name"><?php _e('Add Text/Html Layer', 'revslider'); ?></span></div></div></li>
  29. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addimagelayer"><i class="rs-icon-layerimage_n"></i><span class="cx-layer-name"><?php _e('Add Image Layer', 'revslider'); ?></span></div></div></li>
  30. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addaudiolayer"><i class="rs-icon-layeraudio_n"></i><span class="cx-layer-name"><?php _e('Add Audio Layer', 'revslider'); ?></span></div></div></li>
  31. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addvideolayer"><i class="rs-icon-layervideo_n"></i><span class="cx-layer-name"><?php _e('Add Video Layer', 'revslider'); ?></span></div></div></li>
  32. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addbuttonlayer"><i class="rs-icon-layerbutton_n"></i><span class="cx-layer-name"><?php _e('Add Button Layer', 'revslider'); ?></span></div></div></li>
  33. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addshapelayer"><i class="rs-icon-layershape_n"></i><span class="cx-layer-name"><?php _e('Add Shape Layer', 'revslider'); ?></span></div></div></li>
  34. <li class="context-menu__item"><div class="ctx_item_inner"><div class="context-menu__link" data-action="addobjectlayer"><i class="rs-icon-layersvg_n"></i><span class="cx-layer-name"><?php _e('Add Object Layer', 'revslider'); ?></span></div></div></li>
  35. </ul>
  36. </li>
  37. <!-- ALL LAYERS -->
  38. <li class="context-menu__item ctx-m-top-divider context-with-sub" id="ctx-select-layer">
  39. <div class="ctx_item_inner"><div class="context-menu__link" data-action="select layer"><i class="eg-icon-menu"></i><span class="cx-layer-name"><?php _e('Select Layer', 'revslider'); ?></span></div><i class="fa-icon-chevron-right"></i></div>
  40. <ul class="context-submenu" id="ctx_list_of_layers">
  41. </ul>
  42. </li>
  43. <!-- LAYER MANIPULATION -->
  44. <li class="context-menu__item not_in_ctx_bg">
  45. <div class="ctx_item_inner"><div class="context-menu__link" data-action="delete"><i class="rs-lighttrash"></i><span class="cx-layer-name"><?php _e('Delete Layer', 'revslider'); ?></span></div></div>
  46. </li>
  47. <li class="context-menu__item not_in_ctx_bg">
  48. <div class="ctx_item_inner"><div class="context-menu__link" data-action="duplicate"><i class="rs-lightcopy"></i><span class="cx-layer-name"><?php _e('Duplicate Layer', 'revslider'); ?></span></div></div>
  49. </li>
  50. <!-- LAYER VISIBILTY AND LOCK -->
  51. <li class="context-menu__item ctx-m-top-divider context-with-sub">
  52. <div class="ctx_item_inner"><div class="context-menu__link"><i class="eg-icon-eye"></i><span class="cx-layer-name"><?php _e('Show Layers', 'revslider'); ?></span></div><i class="fa-icon-chevron-right"></i></div>
  53. <ul class="context-submenu" id="ctx_list_of_invisibles">
  54. <li class="context-menu__item">
  55. <div class="ctx_item_inner"><div class="context-menu__link" data-action="showalllayer"><i class="fa-icon-asterisk"></i><span class="cx-layer-name"><?php _e('Show All Layers', 'revslider'); ?></span></div></div>
  56. </li>
  57. <li class="context-menu__item">
  58. <div class="ctx_item_inner"><div class="context-menu__link" data-action="showonlycurrent"><i class="fa-icon-hand-o-right"></i><span class="cx-layer-name"><?php _e('Show Only Current Layer', 'revslider'); ?></span></div></div>
  59. </li>
  60. </ul>
  61. </li>
  62. <li class="context-menu__item not_in_ctx_bg" id="cx-selected-layer-visible">
  63. <div class="ctx_item_inner"><div class="context-menu__link" data-action="showhide"><i class="eg-icon-eye-off"></i><span class="cx-layer-name"><?php _e('Hide Layer', 'revslider'); ?></span></div></div>
  64. </li>
  65. <li class="context-menu__item not_in_ctx_bg" id="cx-selected-layer-locked">
  66. <div class="ctx_item_inner"><div class="context-menu__link" data-action="lockunlock"><i class="eg-icon-lock-open"></i><span class="cx-layer-name"><?php _e('Lock Layer', 'revslider'); ?></span></div></div>
  67. </li>
  68. <!-- LAYER SPECIALS -->
  69. <!-- STYLE OF LAYERS -->
  70. <li class="context-menu__item ctx-m-top-divider context-with-sub not_in_ctx_bg">
  71. <div class="ctx_item_inner"><div class="context-menu__link"><i class="fa-icon-paint-brush"></i><span class="cx-layer-name"><?php _e('Style', 'revslider'); ?></span></div><i class="fa-icon-chevron-right"></i></div>
  72. <ul class="context-submenu">
  73. <li class="context-menu__item">
  74. <div class="ctx_item_inner"><div class="context-menu__link" data-action="copystyle"><i class="fa-icon-cut"></i><span class="cx-layer-name"><?php _e('Copy Style', 'revslider'); ?></span></div></div>
  75. </li>
  76. <li class="context-menu__item">
  77. <div class="ctx_item_inner"><div class="context-menu__link" data-action="pastestyle"><i class="fa-icon-edit"></i><span class="cx-layer-name"><?php _e('Paste Style', 'revslider'); ?></span></div></div>
  78. </li>
  79. <li class="context-menu__item">
  80. <div class="ctx_item_inner">
  81. <div style="display:inline-block" class="context-menu__link" data-action="nothing"><i class="fa-icon-edit"></i><span class="cx-layer-name"><?php _e('Inherit Style from', 'revslider'); ?></span></div>
  82. <div style="display:inline-block; float:right; margin-top:3px; height:20px" data-action="nothing">
  83. <div id="ctx-inheritdesktop" class="ctx-in-one-row context-menu__link" data-size="desktop" data-action="inheritfromdesktop"><i style="width:19px; margin:0px;" class="rs-displays-icon rs-slide-ds-desktop"></i></div>
  84. <div id="ctx-inheritnotebook" class="ctx-in-one-row context-menu__link" data-size="notebook" data-action="inheritfromnotebook"><i style="width:26px; margin:0px;" class="rs-displays-icon rs-slide-ds-notebook"></i></div>
  85. <div id="ctx-inherittablet" class="ctx-in-one-row context-menu__link" data-size="tablet" data-action="inheritfromtablet"><i style="width:15px; margin:0px;"class="rs-displays-icon rs-slide-ds-tablet"></i></div>
  86. <div id="ctx-inheritmobile" class="ctx-in-one-row context-menu__link" data-size="mobile" data-action="inheritfrommobile"><i style="width:17px; margin:0px;"class="rs-displays-icon rs-slide-ds-mobile"></i></div>
  87. </div>
  88. </div>
  89. </li>
  90. <li class="context-menu__item">
  91. <div class="ctx_item_inner"><div class="context-menu__link" data-action="advancedcss"><i class="fa-icon-code"></i><span class="cx-layer-name"><?php _e('Advanced Layer CSS', 'revslider'); ?></span></div></div>
  92. </li>
  93. <li class="context-menu__item ctx-m-top-divider _ho_image _ho_group _ho_row _ho_column _ho_svg _ho_audio _ho_video _ho_group _ho_shape _ho_button">
  94. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="delegate" data-delegate="ctx_linebreak"><i class="fa-icon-level-down"></i><span class="cx-layer-name"><?php _e('Line Break', 'revslider'); ?></span><div id="ctx_linebreak" class="ctx-td-switcher context-menu__link" data-action="linebreak"></div></div>
  95. </li>
  96. <li class="context-menu__item _ho_image _ho_group _ho_row _ho_column _ho_svg _ho_audio _ho_video _ho_group _ho_notincolumn">
  97. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="nothing"><i class="fa-icon-text-width"></i><span class="cx-layer-name"><?php _e('Display Mode', 'revslider'); ?></span><div class="context-menu__link ctx-td-option-selector-wrapper" data-action="nothing"><div id="ctx_displayblock" class="ctx-td-option-selector context-menu__link selected" data-action="displayblock">Block</div><div id="ctx_displayinline" class="ctx-td-option-selector context-menu__link" data-action="displayinline">Inline</div></div></div>
  98. </li>
  99. <li class="context-menu__item ctx-m-top-divider _ho_text _ho_row _ho_column _ho_audio _ho_shape _ho_button">
  100. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="delegate" data-delegate="ctx_keepaspect"><i class="fa-icon-expand"></i><span class="cx-layer-name"><?php _e('Keep Aspect Ratio', 'revslider'); ?></span><div id="ctx_keepaspect" class="ctx-td-switcher context-menu__link" data-action="aspectratio"></div></div>
  101. </li>
  102. <li class="context-menu__item _ho_text _ho_group _ho_row _ho_column _ho_audio _ho_video _ho_shape _ho_button">
  103. <div class="ctx_item_inner"><div class="context-menu__link" data-action="resetsize"><i class="fa-icon-rotate-left"></i><span class="cx-layer-name"><?php _e('Reset Size', 'revslider'); ?></span></div></div>
  104. </li>
  105. </ul>
  106. </li>
  107. <!-- RESPONSIVENESS -->
  108. <li class="context-menu__item context-with-sub not_in_ctx_bg">
  109. <div class="ctx_item_inner"><div class="context-menu__link"><i class="fa-icon-compress"></i><span class="cx-layer-name"><?php _e('Layer Responsiveness', 'revslider'); ?></span></div><i class="fa-icon-chevron-right"></i></div>
  110. <ul class="context-submenu">
  111. <li class="context-menu__item">
  112. <div class="ctx_item_inner context-menu__link" data-action="nothing"><span class="cx-layer-name"><?php _e('Alignment', 'revslider'); ?></span><div class="context-menu__link ctx-td-option-selector-wrapper" data-action="nothing"><div id="ctx_gridbased" class="ctx-td-option-selector context-menu__link selected" data-action="gridbased">Grid Based</div><div id="ctx_slidebased" class="ctx-td-option-selector context-menu__link" data-action="slidebased">Slide Based</div></div></div>
  113. </li>
  114. <li class="context-menu__item _ho_row _ho_column">
  115. <div class="ctx_item_inner context-menu__link" data-action="delegate" data-delegate="ctx_autoresponsive"><span class="cx-layer-name"><?php _e('Auto Responsive', 'revslider'); ?></span><div id="ctx_autoresponsive" class="ctx-td-switcher context-menu__link" data-action="autoresponsive"></div></div>
  116. </li>
  117. <li class="context-menu__item _ho_row _ho_column">
  118. <div class="ctx_item_inner context-menu__link" data-action="delegate" data-delegate="ctx_childrenresponsive"><span class="cx-layer-name"><?php _e('Children Responsive', 'revslider'); ?></span><div id="ctx_childrenresponsive" class="ctx-td-switcher context-menu__link" data-action="childrenresponsive"></div></div>
  119. </li>
  120. <li class="context-menu__item">
  121. <div class="ctx_item_inner context-menu__link" data-action="delegate" data-delegate="ctx_responsiveoffset"><span class="cx-layer-name"><?php _e('Responsive Offset', 'revslider'); ?></span><div id="ctx_responsiveoffset" class="ctx-td-switcher context-menu__link" data-action="responsiveoffset"></div></div>
  122. </li>
  123. </ul>
  124. </li>
  125. <!-- VISIBILITY -->
  126. <li class="context-menu__item context-with-sub not_in_ctx_bg">
  127. <div class="ctx_item_inner"><div class="context-menu__link"><i class="fa-icon-eye"></i><span class="cx-layer-name"><?php _e('Visibility', 'revslider'); ?></span></div><i class="fa-icon-chevron-right"></i></div>
  128. <ul class="context-submenu">
  129. <li class="context-menu__item">
  130. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="delegate" data-delegate="ctx_showhideondesktop"><i class="rs-displays-icon rs-slide-ds-desktop"></i><span class="cx-layer-name"><?php _e('Desktop', 'revslider'); ?></span><div id="ctx_showhideondesktop" class="ctx-td-switcher context-menu__link" data-action="showhideondesktop"></div></div>
  131. </li>
  132. <li class="context-menu__item">
  133. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="delegate" data-delegate="ctx_showhideonnotebook"><i class="rs-displays-icon rs-slide-ds-notebook"></i><span class="cx-layer-name"><?php _e('Notebook', 'revslider'); ?></span><div id="ctx_showhideonnotebook" class="ctx-td-switcher context-menu__link" data-action="showhideonnotebook"></div></div>
  134. </li>
  135. <li class="context-menu__item">
  136. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="delegate" data-delegate="ctx_showhideontablet"><i class="rs-displays-icon rs-slide-ds-tablet"></i><span class="cx-layer-name"><?php _e('Tablet', 'revslider'); ?></span><div id="ctx_showhideontablet" class="ctx-td-switcher context-menu__link" data-action="showhideontablet"></div></div>
  137. </li>
  138. <li class="context-menu__item">
  139. <div class="ctx_item_inner context-menu__link noleftmargin" data-action="delegate" data-delegate="ctx_showhideonmobile"><i class="rs-displays-icon rs-slide-ds-mobile"></i><span class="cx-layer-name"><?php _e('Mobile', 'revslider'); ?></span><div id="ctx_showhideonmobile" class="ctx-td-switcher context-menu__link" data-action="showhideonmobile"></div></div>
  140. </li>
  141. </ul>
  142. </li>
  143. </ul>
  144. </nav>
  145. <div id="slide_main_settings_wrapper" class="editor_buttons_wrapper postbox unite-postbox">
  146. <div class="box-closed tp-accordion" style="border-bottom:5px solid #ddd;">
  147. <ul class="rs-slide-settings-tabs">
  148. <?php
  149. if(!$slide->isStaticSlide()){
  150. ?>
  151. <li id="v_sgs_mp_1" data-content="#slide-main-image-settings-content" class="selected"><i style="height:45px" class="rs-mini-layer-icon eg-icon-picture-1 rs-toolbar-icon"></i><span><?php _e("Main Background",'revslider'); ?></span></li>
  152. <?php
  153. }
  154. ?>
  155. <li id="v_sgs_mp_2" class="<?php echo ($slide->isStaticSlide()) ? ' selected' : ''; ?>" data-content="#slide-general-settings-content"><i style="height:45px" class="rs-mini-layer-icon rs-icon-chooser-2 rs-toolbar-icon"></i><?php _e("General Settings",'revslider'); ?></li>
  156. <?php
  157. if(!$slide->isStaticSlide()){
  158. ?>
  159. <li id="v_sgs_mp_3" data-content="#slide-thumbnail-settings-content"><i style="height:45px" class="rs-mini-layer-icon eg-icon-flickr-1 rs-toolbar-icon"></i><?php _e("Thumbnail",'revslider'); ?></li>
  160. <li id="v_sgs_mp_4" data-content="#slide-animation-settings-content" id="slide-animation-settings-content-tab"><i style="height:45px" class="rs-mini-layer-icon rs-icon-chooser-3 rs-toolbar-icon"></i><?php _e("Slide Animation",'revslider'); ?></li>
  161. <li id="v_sgs_mp_5" data-content="#slide-seo-settings-content"><i style="height:45px" class="rs-mini-layer-icon rs-icon-advanced rs-toolbar-icon"></i><?php _e("Link & Seo",'revslider'); ?></li>
  162. <li id="v_sgs_mp_6" data-content="#slide-info-settings-content"><i style="height:45px; font-size:16px;" class="rs-mini-layer-icon eg-icon-info-circled rs-toolbar-icon"></i><?php _e("Slide Info",'revslider'); ?></li>
  163. <li id="main-menu-nav-settings-li" data-content="#slide-nav-settings-content"><i style="height:45px; font-size:16px;" class="rs-mini-layer-icon eg-icon-magic rs-toolbar-icon"></i><?php _e("Nav. Overwrite",'revslider'); ?></li>
  164. <?php
  165. }
  166. ?>
  167. <?php if(!empty($slide_general_addon)){ ?>
  168. <li data-content="#slide-addon-wrapper"><i style="height:45px; font-size:16px;" class="rs-mini-layer-icon eg-icon-plus-circled rs-toolbar-icon"></i><?php _e("AddOns",'revslider'); ?></li>
  169. <?php } ?>
  170. </ul>
  171. <div style="clear:both"></div>
  172. <script type="text/javascript">
  173. jQuery('document').ready(function() {
  174. jQuery('.rs-slide-settings-tabs li').click(function() {
  175. var tw = jQuery('.rs-slide-settings-tabs .selected'),
  176. tn = jQuery(this);
  177. jQuery(tw.data('content')).hide(0);
  178. tw.removeClass("selected");
  179. tn.addClass("selected");
  180. jQuery(tn.data('content')).show(0);
  181. });
  182. });
  183. </script>
  184. </div>
  185. <div style="padding:15px">
  186. <form name="form_slide_params" id="form_slide_params" class="slide-main-settings-form">
  187. <?php
  188. if(!$slide->isStaticSlide()){
  189. ?>
  190. <div id="slide-main-image-settings-content" class="slide-main-settings-form">
  191. <ul class="rs-layer-main-image-tabs" style="display:inline-block; ">
  192. <li data-content="#mainbg-sub-source" class="selected"><?php _e('Source', 'revslider'); ?></li>
  193. <li class="mainbg-sub-settings-selector" data-content="#mainbg-sub-setting"><?php _e('Source Settings', 'revslider'); ?></li>
  194. <li class="mainbg-sub-filtres-selector" data-content="#mainbg-sub-filters"><?php _e('Filters', 'revslider'); ?></li>
  195. <li class="mainbg-sub-parallax-selector" data-content="#mainbg-sub-parallax"><?php _e('Parallax / 3D', 'revslider'); ?></li>
  196. <li class="mainbg-sub-kenburns-selector" data-content="#mainbg-sub-kenburns"><?php _e('Ken Burns', 'revslider'); ?></li>
  197. </ul>
  198. <div class="tp-clearfix"></div>
  199. <script type="text/javascript">
  200. jQuery('document').ready(function() {
  201. jQuery('.rs-layer-main-image-tabs li').click(function() {
  202. var tw = jQuery('.rs-layer-main-image-tabs .selected'),
  203. tn = jQuery(this);
  204. jQuery(tw.data('content')).hide(0);
  205. tw.removeClass("selected");
  206. tn.addClass("selected");
  207. jQuery(tn.data('content')).show(0);
  208. });
  209. });
  210. </script>
  211. <!-- SLIDE MAIN IMAGE -->
  212. <span id="mainbg-sub-source" style="display:block">
  213. <div style="float:none; clear:both; margin-bottom: 10px;"></div>
  214. <input type="hidden" name="rs-gallery-type" value="<?php echo esc_attr($slider_type); ?>" />
  215. <span class="diblock bg-settings-block">
  216. <!-- IMAGE FROM MEDIAGALLERY -->
  217. <?php
  218. if($slider_type == 'posts' || $slider_type == 'specific_posts' || $slider_type == 'current_post' || $slider_type == 'woocommerce'){
  219. ?>
  220. <label><?php _e("Featured Image",'revslider'); ?></label>
  221. <input type="radio" name="background_type" value="image" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="image" id="radio_back_image" <?php checked($bgType, 'image'); ?>>
  222. <?php
  223. /*
  224. <div class="tp-clearfix"></div>
  225. <label><?php _e("Meta Image",'revslider'); ?></label>
  226. <input type="radio" name="background_type" value="meta" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="meta" <?php checked($bgType, 'meta'); ?>>
  227. <span id="" class="" style="margin-left:20px;">
  228. <span style="margin-right: 10px"><?php _e('Meta Handle', 'revslider'); ?></span>
  229. <input type="text" id="meta_handle" name="meta_handle" value="<?php echo $meta_handle; ?>">
  230. </span>*/ ?>
  231. <?php
  232. }elseif($slider_type !== 'gallery'){
  233. ?>
  234. <label><?php _e("Stream Image",'revslider'); ?></label>
  235. <input type="radio" name="background_type" value="image" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="image" id="radio_back_image" <?php checked($bgType, 'image'); ?>>
  236. <?php
  237. if($slider_type == 'vimeo' || $slider_type == 'youtube' || $slider_type == 'instagram' || $slider_type == 'twitter'){
  238. ?>
  239. <div class="tp-clearfix"></div>
  240. <label><?php _e("Stream Video",'revslider'); ?></label>
  241. <input type="radio" name="background_type" value="stream<?php echo $slider_type; ?>" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="stream<?php echo $slider_type; ?>" <?php checked($bgType, 'stream'.$slider_type); ?>>
  242. <span id="streamvideo_cover" class="streamvideo_cover" style="display:none;margin-left:20px;">
  243. <span style="margin-right: 10px"><?php _e("Use Cover",'revslider'); ?></span>
  244. <input type="checkbox" class="tp-moderncheckbox" id="stream_do_cover" name="stream_do_cover" data-unchecked="off" <?php checked($stream_do_cover, 'on'); ?>>
  245. </span>
  246. <div class="tp-clearfix"></div>
  247. <label><?php _e("Stream Video + Image",'revslider'); ?></label>
  248. <input type="radio" name="background_type" value="stream<?php echo $slider_type; ?>both" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="stream<?php echo $slider_type; ?>both" <?php checked($bgType, 'stream'.$slider_type.'both'); ?>>
  249. <span id="streamvideo_cover_both" class="streamvideo_cover_both" style="display:none;margin-left:20px;">
  250. <span style="margin-right: 10px"><?php _e("Use Cover",'revslider'); ?></span>
  251. <input type="checkbox" class="tp-moderncheckbox" id="stream_do_cover_both" name="stream_do_cover_both" data-unchecked="off" <?php checked($stream_do_cover_both, 'on'); ?>>
  252. </span>
  253. <?php
  254. }
  255. }else{
  256. ?>
  257. <label ><?php _e("Main / Background Image",'revslider'); ?></label>
  258. <input type="radio" name="background_type" value="image" class="bgsrcchanger" data-callid="tp-bgimagewpsrc" data-imgsettings="on" data-bgtype="image" id="radio_back_image" <?php checked($bgType, 'image'); ?>>
  259. <?php
  260. }
  261. ?>
  262. <!-- THE BG IMAGE CHANGED DIV -->
  263. <span id="tp-bgimagewpsrc" class="bgsrcchanger-div" style="display:none;margin-left:20px;">
  264. <a href="javascript:void(0)" id="button_change_image" class="button-primary revblue" ><i class="fa-icon-wordpress"></i><?php _e("Media Library", 'revslider'); ?></a>
  265. <a href="javascript:void(0)" id="button_change_image_objlib" class="button-primary revpurple" ><i class="fa-icon-book"></i><?php _e("Object Library", 'revslider'); ?></a>
  266. </span>
  267. </span>
  268. <div class="tp-clearfix"></div>
  269. <!-- IMAGE FROM EXTERNAL -->
  270. <label><?php _e("External URL",'revslider'); ?></label>
  271. <input type="radio" name="background_type" value="external" data-callid="tp-bgimageextsrc" data-imgsettings="on" class="bgsrcchanger" data-bgtype="external" id="radio_back_external" <?php checked($bgType, 'external'); ?>>
  272. <!-- THE BG IMAGE FROM EXTERNAL SOURCE -->
  273. <span id="tp-bgimageextsrc" class="bgsrcchanger-div" style="display:none;margin-left:20px;">
  274. <input type="text" name="bg_external" id="slide_bg_external" value="<?php echo esc_url($slideBGExternal); ?>" <?php echo ($bgType != 'external') ? ' class="disabled"' : ''; ?>>
  275. <a href="javascript:void(0)" id="button_change_external" class="button-primary revblue" ><?php _e("Get External",'revslider'); ?></a>
  276. </span>
  277. <div class="tp-clearfix"></div>
  278. <!-- TRANSPARENT BACKGROUND -->
  279. <label><?php _e("Transparent",'revslider'); ?></label>
  280. <input type="radio" name="background_type" value="trans" data-callid="" class="bgsrcchanger" data-bgtype="trans" id="radio_back_trans" <?php checked($bgType, 'trans'); ?>>
  281. <div class="tp-clearfix"></div>
  282. <!-- COLORED BACKGROUND -->
  283. <label><?php _e("Colored",'revslider'); ?></label>
  284. <input type="radio" name="background_type" value="solid" data-callid="tp-bgcolorsrc" class="bgsrcchanger" data-bgtype="solid" id="radio_back_solid" <?php checked($bgType, 'solid'); ?>>
  285. <!-- THE COLOR SELECTOR -->
  286. <span id="tp-bgcolorsrc" class="bgsrcchanger-div" style="display:none;margin-left:20px;">
  287. <input type="text" data-editing="Background Color" name="bg_color" id="slide_bg_color" class="my-color-field" value="<?php echo $slideBGColor; ?>">
  288. </span>
  289. <div class="tp-clearfix"></div>
  290. <!-- THE YOUTUBE SELECTOR -->
  291. <label id="label_radio_back_youtube"><?php _e("YouTube Video",'revslider'); ?></label>
  292. <input type="radio" name="background_type" value="youtube" data-callid="tp-bgyoutubesrc" class="bgsrcchanger" data-bgtype="youtube" id="radio_back_youtube" <?php checked($bgType, 'youtube'); ?>>
  293. <div class="tp-clearfix"></div>
  294. <!-- THE BG IMAGE FROM YOUTUBE SOURCE -->
  295. <span id="tp-bgyoutubesrc" class="bgsrcchanger-div" style="display:none; margin-left:20px;">
  296. <label style="min-width:180px"><?php _e("ID:",'revslider'); ?></label>
  297. <input type="text" name="slide_bg_youtube" id="slide_bg_youtube" value="<?php echo $slideBGYoutube; ?>" <?php echo ($bgType != 'youtube') ? ' class="disabled"' : ''; ?>>
  298. <?php _e('example: T8--OggjJKQ', 'revslider'); ?>
  299. <div class="tp-clearfix"></div>
  300. <label style="min-width:180px"><?php _e("Cover Image:",'revslider'); ?></label>
  301. <span id="youtube-image-picker"><a href="javascript:void(0)" id="button_change_image_yt" class="button-primary revgreen" ><i class="fa-icon-photo"></i><?php _e("YouTube Video Poster", 'revslider'); ?></a></span>
  302. </span>
  303. <div class="tp-clearfix"></div>
  304. <!-- THE VIMEO SELECTOR -->
  305. <label id="label_radio_back_vimeo"><?php _e("Vimeo Video",'revslider'); ?></label>
  306. <input type="radio" name="background_type" value="vimeo" data-callid="tp-bgvimeosrc" class="bgsrcchanger" data-bgtype="vimeo" id="radio_back_vimeo" <?php checked($bgType, 'vimeo'); ?>>
  307. <div class="tp-clearfix"></div>
  308. <!-- THE BG IMAGE FROM VIMEO SOURCE -->
  309. <span id="tp-bgvimeosrc" class="bgsrcchanger-div" style="display:none; margin-left:20px;">
  310. <label style="min-width:180px"><?php _e("ID:",'revslider'); ?></label>
  311. <input type="text" name="slide_bg_vimeo" id="slide_bg_vimeo" value="<?php echo $slideBGVimeo; ?>" <?php echo ($bgType != 'vimeo') ? ' class="disabled"' : ''; ?>>
  312. <?php _e('example: 30300114', 'revslider'); ?>
  313. <div class="tp-clearfix"></div>
  314. <label style="min-width:180px"><?php _e("Cover Image:",'revslider'); ?></label>
  315. <span id="vimeo-image-picker"></span>
  316. </span>
  317. <div class="tp-clearfix"></div>
  318. <!-- THE HTML5 SELECTOR -->
  319. <label><?php _e("HTML5 Video",'revslider'); ?></label>
  320. <input type="radio" name="background_type" value="html5" data-callid="tp-bghtmlvideo" class="bgsrcchanger" data-bgtype="html5" id="radio_back_htmlvideo" <?php checked($bgType, 'html5'); ?>>
  321. <div class="tp-clearfix"></div>
  322. <!-- THE BG IMAGE FROM HTML5 SOURCE -->
  323. <span id="tp-bghtmlvideo" class="bgsrcchanger-div" style="display:none; margin-left:20px;">
  324. <label style="min-width:180px"><?php _e('MPEG:', 'revslider'); ?></label>
  325. <input type="text" name="slide_bg_html_mpeg" id="slide_bg_html_mpeg" value="<?php echo $slideBGhtmlmpeg; ?>" <?php echo ($bgType != 'html5') ? ' class="disabled"' : ''; ?>>
  326. <span class="vidsrcchanger-div" style="margin-left:20px;">
  327. <a href="javascript:void(0)" data-inptarget="slide_bg_html_mpeg" class="button_change_video button-primary revblue" ><?php _e('Change Video', 'revslider'); ?></a>
  328. </span>
  329. <div class="tp-clearfix"></div>
  330. <label style="min-width:180px"><?php _e('WEBM:', 'revslider'); ?></label>
  331. <input type="text" name="slide_bg_html_webm" id="slide_bg_html_webm" value="<?php echo $slideBGhtmlwebm; ?>" <?php echo ($bgType != 'html5') ? ' class="disabled"' : ''; ?>>
  332. <span class="vidsrcchanger-div" style="margin-left:20px;">
  333. <a href="javascript:void(0)" data-inptarget="slide_bg_html_webm" class="button_change_video button-primary revblue" ><?php _e('Change Video', 'revslider'); ?></a>
  334. </span>
  335. <div class="tp-clearfix"></div>
  336. <label style="min-width:180px"><?php _e('OGV:', 'revslider'); ?></label>
  337. <input type="text" name="slide_bg_html_ogv" id="slide_bg_html_ogv" value="<?php echo $slideBGhtmlogv; ?>" <?php echo ($bgType != 'html5') ? ' class="disabled"' : ''; ?>>
  338. <span class="vidsrcchanger-div" style="margin-left:20px;">
  339. <a href="javascript:void(0)" data-inptarget="slide_bg_html_ogv" class="button_change_video button-primary revblue" ><?php _e('Change Video', 'revslider'); ?></a>
  340. </span>
  341. <div class="tp-clearfix"></div>
  342. <label style="min-width:180px"><?php _e('Cover Image:', 'revslider'); ?></label>
  343. <span id="html5video-image-picker"></span>
  344. </span>
  345. </span>
  346. </span>
  347. <div id="mainbg-sub-setting" style="display:none">
  348. <div style="float:none; clear:both; margin-bottom: 10px;"></div>
  349. <div class="rs-img-source-url">
  350. <label><?php _e('Source Info:', 'revslider'); ?></label>
  351. <span class="text-selectable" id="the_image_source_url" style="margin-right:20px"></span>
  352. <span class="description"><?php _e('Read Only ! Image can be changed from "Source Tab"','revslider'); ?></span>
  353. </div>
  354. <div class="rs-img-source-size">
  355. <label><?php _e('Image Source Size:', 'revslider'); ?></label>
  356. <span style="margin-right:20px">
  357. <select name="image_source_type">
  358. <?php
  359. foreach($img_sizes as $imghandle => $imgSize){
  360. $sel = ($bg_image_size == $imghandle) ? ' selected="selected"' : '';
  361. echo '<option value="'.sanitize_title($imghandle).'"'.$sel.'>'.$imgSize.'</option>';
  362. }
  363. ?>
  364. </select>
  365. </span>
  366. </div>
  367. <div id="tp-bgimagesettings" class="bgsrcchanger-div" style="display:none;">
  368. <!-- ALT -->
  369. <div>
  370. <?php $alt_option = RevSliderFunctions::getVal($slideParams, 'alt_option', 'media_library'); ?>
  371. <label><?php _e("Alt:",'revslider'); ?></label>
  372. <select id="alt_option" name="alt_option">
  373. <option value="media_library" <?php selected($alt_option, 'media_library'); ?>><?php _e('From Media Library', 'revslider'); ?></option>
  374. <option value="file_name" <?php selected($alt_option, 'file_name'); ?>><?php _e('From Filename', 'revslider'); ?></option>
  375. <option value="custom" <?php selected($alt_option, 'custom'); ?>><?php _e('Custom', 'revslider'); ?></option>
  376. </select>
  377. <?php $alt_attr = RevSliderFunctions::getVal($slideParams, 'alt_attr', ''); ?>
  378. <input style="<?php echo ($alt_option !== 'custom') ? 'display:none;' : ''; ?>" type="text" id="alt_attr" name="alt_attr" value="<?php echo $alt_attr; ?>">
  379. </div>
  380. <div class="ext_setting" style="display: none;">
  381. <label><?php _e('Width:', 'revslider')?></label>
  382. <input type="text" name="ext_width" value="<?php echo $ext_width; ?>" />
  383. </div>
  384. <div class="ext_setting" style="display: none;">
  385. <label><?php _e('Height:', 'revslider')?></label>
  386. <input type="text" name="ext_height" value="<?php echo $ext_height; ?>" />
  387. </div>
  388. <!-- TITLE -->
  389. <div>
  390. <?php $title_option = RevSliderFunctions::getVal($slideParams, 'title_option', 'media_library'); ?>
  391. <label><?php _e('Title:','revslider'); ?></label>
  392. <select id="title_option" name="title_option">
  393. <option value="media_library" <?php selected($title_option, 'media_library'); ?>><?php _e('From Media Library', 'revslider'); ?></option>
  394. <option value="file_name" <?php selected($title_option, 'file_name'); ?>><?php _e('From Filename', 'revslider'); ?></option>
  395. <option value="custom" <?php selected($title_option, 'custom'); ?>><?php _e('Custom', 'revslider'); ?></option>
  396. </select>
  397. <?php $title_attr = RevSliderFunctions::getVal($slideParams, 'title_attr', ''); ?>
  398. <input style="<?php echo ($title_option !== 'custom') ? 'display:none;' : ''; ?>" type="text" id="title_attr" name="title_attr" value="<?php echo $title_attr; ?>">
  399. </div>
  400. </div>
  401. <div id="video-settings" style="display: block;">
  402. <div>
  403. <label for="video_force_cover" class="video-label"><?php _e('Force Cover:', 'revslider'); ?></label>
  404. <input type="checkbox" class="tp-moderncheckbox" id="video_force_cover" name="video_force_cover" data-unchecked="off" <?php checked($video_force_cover, 'on'); ?>>
  405. </div>
  406. <span id="video_dotted_overlay_wrap">
  407. <label for="video_dotted_overlay">
  408. <?php _e('Dotted Overlay:', 'revslider'); ?>
  409. </label>
  410. <select id="video_dotted_overlay" name="video_dotted_overlay" style="width:100px">
  411. <option <?php selected($video_dotted_overlay, 'none'); ?> value="none"><?php _e('none', 'revslider'); ?></option>
  412. <option <?php selected($video_dotted_overlay, 'twoxtwo'); ?> value="twoxtwo"><?php _e('2 x 2 Black', 'revslider'); ?></option>
  413. <option <?php selected($video_dotted_overlay, 'twoxtwowhite'); ?> value="twoxtwowhite"><?php _e('2 x 2 White', 'revslider'); ?></option>
  414. <option <?php selected($video_dotted_overlay, 'threexthree'); ?> value="threexthree"><?php _e('3 x 3 Black', 'revslider'); ?></option>
  415. <option <?php selected($video_dotted_overlay, 'threexthreewhite'); ?> value="threexthreewhite"><?php _e('3 x 3 White', 'revslider'); ?></option>
  416. </select>
  417. <div style="clear: both;"></div>
  418. </span>
  419. <label for="video_ratio">
  420. <?php _e("Aspect Ratio:", 'revslider'); ?>
  421. </label>
  422. <select id="video_ratio" name="video_ratio" style="width:100px">
  423. <option <?php selected($video_ratio, '16:9');?> value="16:9"><?php _e('16:9','revslider'); ?></option>
  424. <option <?php selected($video_ratio, '4:3');?> value="4:3"><?php _e('4:3','revslider'); ?></option>
  425. </select>
  426. <div style="clear: both;"></div>
  427. <div>
  428. <label for="video_ratio">
  429. <?php _e("Start At:", 'revslider'); ?>
  430. </label>
  431. <input type="text" value="<?php echo $video_start_at; ?>" name="video_start_at"> <?php _e('For Example: 00:17', 'revslider'); ?>
  432. <div style="clear: both;"></div>
  433. </div>
  434. <div>
  435. <label for="video_ratio">
  436. <?php _e("End At:", 'revslider'); ?>
  437. </label>
  438. <input type="text" value="<?php echo $video_end_at; ?>" name="video_end_at"> <?php _e('For Example: 02:17', 'revslider'); ?>
  439. <div style="clear: both;"></div>
  440. </div>
  441. <div>
  442. <label for="video_loop"><?php _e('Loop Video:', 'revslider'); ?></label>
  443. <select id="video_loop" name="video_loop" style="width: 200px;">
  444. <option <?php selected($video_loop, 'none');?> value="none"><?php _e('Disable', 'revslider'); ?></option>
  445. <option <?php selected($video_loop, 'loop');?> value="loop"><?php _e('Loop, Slide is paused', 'revslider'); ?></option>
  446. <option <?php selected($video_loop, 'loopandnoslidestop');?> value="loopandnoslidestop"><?php _e('Loop, Slide does not stop', 'revslider'); ?></option>
  447. </select>
  448. </div>
  449. <div>
  450. <label for="video_nextslide"><?php _e('Next Slide On End:', 'revslider'); ?></label>
  451. <input type="checkbox" class="tp-moderncheckbox" id="video_nextslide" name="video_nextslide" data-unchecked="off" <?php checked($video_nextslide, 'on'); ?>>
  452. </div>
  453. <div>
  454. <label for="video_force_rewind"><?php _e('Rewind at Slide Start:', 'revslider'); ?></label>
  455. <input type="checkbox" class="tp-moderncheckbox" id="video_force_rewind" name="video_force_rewind" data-unchecked="off" <?php checked($video_force_rewind, 'on'); ?>>
  456. </div>
  457. <div>
  458. <label for="video_mute"><?php _e('Mute Video:', 'revslider'); ?></label>
  459. <input type="checkbox" class="tp-moderncheckbox" id="video_mute" name="video_mute" data-unchecked="off" <?php checked($video_mute, 'on'); ?>>
  460. </div>
  461. <div class="vid-rev-vimeo-youtube video_volume_wrapper">
  462. <label for="video_volume"><?php _e('Video Volume:', 'revslider'); ?></label>
  463. <input type="text" id="video_volume" name="video_volume" value="<?php echo esc_attr($video_volume); ?>">
  464. </div>
  465. <span id="vid-rev-youtube-options">
  466. <div>
  467. <label for="video_speed"><?php _e('Video Speed:', 'revslider'); ?></label>
  468. <select id="video_speed" name="video_speed" style="width:75px">
  469. <option <?php selected($video_speed, '0.25');?> value="0.25"><?php _e('0.25', 'revslider'); ?></option>
  470. <option <?php selected($video_speed, '0.50');?> value="0.50"><?php _e('0.50', 'revslider'); ?></option>
  471. <option <?php selected($video_speed, '1');?> value="1"><?php _e('1', 'revslider'); ?></option>
  472. <option <?php selected($video_speed, '1.5');?> value="1.5"><?php _e('1.5', 'revslider'); ?></option>
  473. <option <?php selected($video_speed, '2');?> value="2"><?php _e('2', 'revslider'); ?></option>
  474. </select>
  475. </div>
  476. <div>
  477. <label><?php _e('Arguments YouTube:', 'revslider'); ?></label>
  478. <input type="text" id="video_arguments" name="video_arguments" style="width:350px;" value="<?php echo esc_attr($video_arguments); ?>">
  479. </div>
  480. </span>
  481. <div id="vid-rev-vimeo-options">
  482. <label><?php _e('Arguments Vimeo:', 'revslider'); ?></label>
  483. <input type="text" id="video_arguments_vim" name="video_arguments_vim" style="width:350px;" value="<?php echo esc_attr($video_arguments_vim); ?>">
  484. </div>
  485. </div>
  486. <div id="bg-setting-wrap">
  487. <div id="bg-setting-bgfit-wrap">
  488. <label for="slide_bg_fit"><?php _e('Background Fit:', 'revslider'); ?></label>
  489. <select name="bg_fit" id="slide_bg_fit" style="margin-right:20px">
  490. <option value="cover"<?php selected($bgFit, 'cover'); ?>>cover</option>
  491. <option value="contain"<?php selected($bgFit, 'contain'); ?>>contain</option>
  492. <option value="percentage"<?php selected($bgFit, 'percentage'); ?>>(%, %)</option>
  493. <option value="normal"<?php selected($bgFit, 'normal'); ?>>normal</option>
  494. </select>
  495. <input type="text" name="bg_fit_x" style="min-width:54px;width:54px; <?php if($bgFit != 'percentage') echo 'display: none; '; ?> width:60px;margin-right:10px" value="<?php echo $bgFitX; ?>" />
  496. <input type="text" name="bg_fit_y" style="min-width:54px;width:54px; <?php if($bgFit != 'percentage') echo 'display: none; '; ?> width:60px;margin-right:10px" value="<?php echo $bgFitY; ?>" />
  497. </div>
  498. <div id="bg-setting-bgpos-def-wrap">
  499. <div id="bg-setting-bgpos-wrap">
  500. <label for="slide_bg_position" id="bg-position-lbl"><?php _e('Background Position:', 'revslider'); ?></label>
  501. <span id="bg-start-position-wrapper">
  502. <select name="bg_position" id="slide_bg_position">
  503. <option value="center top"<?php selected($bgPosition, 'center top'); ?>>center top</option>
  504. <option value="center right"<?php selected($bgPosition, 'center right'); ?>>center right</option>
  505. <option value="center bottom"<?php selected($bgPosition, 'center bottom'); ?>>center bottom</option>
  506. <option value="center center"<?php selected($bgPosition, 'center center'); ?>>center center</option>
  507. <option value="left top"<?php selected($bgPosition, 'left top'); ?>>left top</option>
  508. <option value="left center"<?php selected($bgPosition, 'left center'); ?>>left center</option>
  509. <option value="left bottom"<?php selected($bgPosition, 'left bottom'); ?>>left bottom</option>
  510. <option value="right top"<?php selected($bgPosition, 'right top'); ?>>right top</option>
  511. <option value="right center"<?php selected($bgPosition, 'right center'); ?>>right center</option>
  512. <option value="right bottom"<?php selected($bgPosition, 'right bottom'); ?>>right bottom</option>
  513. <option value="percentage"<?php selected($bgPosition, 'percentage'); ?>>(x%, y%)</option>
  514. </select>
  515. <input type="text" name="bg_position_x" style="min-width:54px;width:54px; <?php if($bgPosition != 'percentage') echo 'display: none;'; ?>width:60px;margin-right:10px" value="<?php echo $bgPositionX; ?>" />
  516. <input type="text" name="bg_position_y" style="min-width:54px;width:54px; <?php if($bgPosition != 'percentage') echo 'display: none;'; ?>width:60px;margin-right:10px" value="<?php echo $bgPositionY; ?>" />
  517. </span>
  518. </div>
  519. </div>
  520. <div id="bg-setting-bgrep-wrap">
  521. <label><?php _e("Background Repeat:",'revslider')?></label>
  522. <span>
  523. <select name="bg_repeat" id="slide_bg_repeat" style="margin-right:20px">
  524. <option value="no-repeat"<?php selected($bgRepeat, 'no-repeat'); ?>>no-repeat</option>
  525. <option value="repeat"<?php selected($bgRepeat, 'repeat'); ?>>repeat</option>
  526. <option value="repeat-x"<?php selected($bgRepeat, 'repeat-x'); ?>>repeat-x</option>
  527. <option value="repeat-y"<?php selected($bgRepeat, 'repeat-y'); ?>>repeat-y</option>
  528. </select>
  529. </span>
  530. </div>
  531. </div>
  532. </div>
  533. <span id="mainbg-sub-parallax" style="display:none">
  534. <p>
  535. <?php
  536. if ($use_parallax=="off") {
  537. echo '<i style="color:#c0392b">';
  538. _e("Parallax Feature in Slider Settings is deactivated, parallax will be ignored.",'revslider');
  539. echo '</i>';
  540. } else {
  541. if ($parallaxisddd=="off") {
  542. ?>
  543. <label><?php _e("Parallax Level:",'revslider'); ?></label>
  544. <select name="slide_parallax_level" id="slide_parallax_level">
  545. <option value="-" <?php selected($slide_parallax_level, '-'); ?>><?php _e('No Parallax', 'revslider'); ?></option>
  546. <option value="1" <?php selected($slide_parallax_level, '1'); ?>>1 - (<?php echo $parallax_level[0]; ?>%)</option>
  547. <option value="2" <?php selected($slide_parallax_level, '2'); ?>>2 - (<?php echo $parallax_level[1]; ?>%)</option>
  548. <option value="3" <?php selected($slide_parallax_level, '3'); ?>>3 - (<?php echo $parallax_level[2]; ?>%)</option>
  549. <option value="4" <?php selected($slide_parallax_level, '4'); ?>>4 - (<?php echo $parallax_level[3]; ?>%)</option>
  550. <option value="5" <?php selected($slide_parallax_level, '5'); ?>>5 - (<?php echo $parallax_level[4]; ?>%)</option>
  551. <option value="6" <?php selected($slide_parallax_level, '6'); ?>>6 - (<?php echo $parallax_level[5]; ?>%)</option>
  552. <option value="7" <?php selected($slide_parallax_level, '7'); ?>>7 - (<?php echo $parallax_level[6]; ?>%)</option>
  553. <option value="8" <?php selected($slide_parallax_level, '8'); ?>>8 - (<?php echo $parallax_level[7]; ?>%)</option>
  554. <option value="9" <?php selected($slide_parallax_level, '9'); ?>>9 - (<?php echo $parallax_level[8]; ?>%)</option>
  555. <option value="10" <?php selected($slide_parallax_level, '10'); ?>>10 - (<?php echo $parallax_level[9]; ?>%)</option>
  556. <option value="11" <?php selected($slide_parallax_level, '11'); ?>>11 - (<?php echo $parallax_level[10]; ?>%)</option>
  557. <option value="12" <?php selected($slide_parallax_level, '12'); ?>>12 - (<?php echo $parallax_level[11]; ?>%)</option>
  558. <option value="13" <?php selected($slide_parallax_level, '13'); ?>>13 - (<?php echo $parallax_level[12]; ?>%)</option>
  559. <option value="14" <?php selected($slide_parallax_level, '14'); ?>>14 - (<?php echo $parallax_level[13]; ?>%)</option>
  560. <option value="15" <?php selected($slide_parallax_level, '15'); ?>>15 - (<?php echo $parallax_level[14]; ?>%)</option>
  561. </select>
  562. <?php } else {
  563. if ($parallaxbgfreeze=="off") {
  564. ?>
  565. <label><?php _e("Selected 3D Depth:",'revslider'); ?></label>
  566. <input style="min-width:54px;width:54px" type="text" disabled value="<?php echo $parallax_level[15];?>%" />
  567. <span><i><?php _e('3D Parallax is Enabled via Slider Settings !', 'revslider'); ?></i></span>
  568. <?php
  569. } else {
  570. ?>
  571. <label><?php _e("Background 3D is Disabled",'revslider'); ?></label>
  572. <span style="display: inline-block;vertical-align: middle;line-height:32px"><i><?php _e('To Enable 3D Parallax for Background please change the Option "BG 3D Disabled" to "OFF" via the Slider Settings !', 'revslider'); ?></i></span>
  573. <?php
  574. }
  575. }
  576. }
  577. ?>
  578. </p>
  579. </span>
  580. <span id="mainbg-sub-filters" style="display:none">
  581. <div style="display:none; margin-bottom: 10px;">
  582. <select id="media-filter-type" name="media-filter-type">
  583. <option value="none"><?php _e('No Filter', 'revslider'); ?></option>
  584. <option <?php selected($mediafilter, '_1977'); ?> value="_1977">1977</option>
  585. <option <?php selected($mediafilter, 'aden'); ?> value="aden">Aden</option>
  586. <option <?php selected($mediafilter, 'brooklyn'); ?> value="brooklyn">Brooklyn</option>
  587. <option <?php selected($mediafilter, 'clarendon'); ?> value="clarendon">Clarendon</option>
  588. <option <?php selected($mediafilter, 'earlybird'); ?> value="earlybird">Earlybird</option>
  589. <option <?php selected($mediafilter, 'gingham'); ?> value="gingham">Gingham</option>
  590. <option <?php selected($mediafilter, 'hudson'); ?> value="hudson">Hudson</option>
  591. <option <?php selected($mediafilter, 'inkwell'); ?> value="inkwell">Inkwell</option>
  592. <option <?php selected($mediafilter, 'lark'); ?> value="lark">Lark</option>
  593. <option <?php selected($mediafilter, 'lofi'); ?> value="lofi">Lo-Fi</option>
  594. <option <?php selected($mediafilter, 'mayfair'); ?> value="mayfair">Mayfair</option>
  595. <option <?php selected($mediafilter, 'moon'); ?> value="moon">Moon</option>
  596. <option <?php selected($mediafilter, 'nashville'); ?> value="nashville">Nashville</option>
  597. <option <?php selected($mediafilter, 'perpetua'); ?> value="perpetua">Perpetua</option>
  598. <option <?php selected($mediafilter, 'reyes'); ?> value="reyes">Reyes</option>
  599. <option <?php selected($mediafilter, 'rise'); ?> value="rise">Rise</option>
  600. <option <?php selected($mediafilter, 'slumber'); ?> value="slumber">Slumber</option>
  601. <option <?php selected($mediafilter, 'toaster'); ?> value="toaster">Toaster</option>
  602. <option <?php selected($mediafilter, 'walden'); ?> value="walden">Walden</option>
  603. <option <?php selected($mediafilter, 'willow'); ?> value="willow">Willow</option>
  604. <option <?php selected($mediafilter, 'xpro2'); ?> value="xpro2">X-pro II</option>
  605. </select>
  606. </div>
  607. <div id="inst-filter-grid">
  608. <div data-type="none" class="filter_none inst-filter-griditem selected"><div class="ifgname"><?php _e('No Filter', 'revslider'); ?></div><div class="inst-filter-griditem-img none" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  609. <div data-type="_1977" class="filter__1977 inst-filter-griditem "><div class="ifgname">1977</div><div class="inst-filter-griditem-img _1977" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  610. <div data-type="aden" class="filter_aden inst-filter-griditem "><div class="ifgname">Aden</div><div class="inst-filter-griditem-img aden" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  611. <div data-type="brooklyn" class="filter_brooklyn inst-filter-griditem "><div class="ifgname">Brooklyn</div><div class="inst-filter-griditem-img brooklyn" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  612. <div data-type="clarendon" class="filter_clarendon inst-filter-griditem "><div class="ifgname">Clarendon</div><div class="inst-filter-griditem-img clarendon" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  613. <div data-type="earlybird" class="filter_earlybird inst-filter-griditem "><div class="ifgname">Earlybird</div><div class="inst-filter-griditem-img earlybird" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  614. <div data-type="gingham" class="filter_gingham inst-filter-griditem "><div class="ifgname">Gingham</div><div class="inst-filter-griditem-img gingham"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  615. <div data-type="hudson" class="filter_hudson inst-filter-griditem "><div class="ifgname">Hudson</div><div class="inst-filter-griditem-img hudson"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  616. <div data-type="inkwell" class="filter_inkwell inst-filter-griditem "><div class="ifgname">Inkwell</div><div class="inst-filter-griditem-img inkwell"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  617. <div data-type="lark" class="filter_lark inst-filter-griditem "><div class="ifgname">Lark</div><div class="inst-filter-griditem-img lark" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  618. <div data-type="lofi" class="filter_lofi inst-filter-griditem "><div class="ifgname">Lo-Fi</div><div class="inst-filter-griditem-img lofi" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  619. <div data-type="mayfair" class="filter_mayfair inst-filter-griditem "><div class="ifgname">Mayfair</div><div class="inst-filter-griditem-img mayfair" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  620. <div data-type="moon" class="filter_moon inst-filter-griditem "><div class="ifgname">Moon</div><div class="inst-filter-griditem-img moon"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  621. <div data-type="nashville" class="filter_nashville inst-filter-griditem "><div class="ifgname">Nashville</div><div class="inst-filter-griditem-img nashville"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  622. <div data-type="perpetua" class="filter_perpetua inst-filter-griditem "><div class="ifgname">Perpetua</div><div class="inst-filter-griditem-img perpetua" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  623. <div data-type="reyes" class="filter_reyes inst-filter-griditem "><div class="ifgname">Reyes</div><div class="inst-filter-griditem-img reyes" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  624. <div data-type="rise" class="filter_rise inst-filter-griditem "><div class="ifgname">Rise</div><div class="inst-filter-griditem-img rise" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  625. <div data-type="slumber" class="filter_slumber inst-filter-griditem "><div class="ifgname">Slumber</div><div class="inst-filter-griditem-img slumber" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  626. <div data-type="toaster" class="filter_toaster inst-filter-griditem "><div class="ifgname">Toaster</div><div class="inst-filter-griditem-img toaster" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  627. <div data-type="walden" class="filter_walden inst-filter-griditem "><div class="ifgname">Walden</div><div class="inst-filter-griditem-img walden" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  628. <div data-type="willow" class="filter_willow inst-filter-griditem "><div class="ifgname">Willow</div><div class="inst-filter-griditem-img willow" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  629. <div data-type="xpro2" class="filter_xpro2 inst-filter-griditem "><div class="ifgname">X-pro II</div><div class="inst-filter-griditem-img xpro2" style="visibility: inherit; opacity: 1;"></div><div class="inst-filter-griditem-img-noeff"></div></div>
  630. </div>
  631. </span>
  632. <div id="mainbg-sub-kenburns" style="display:none; position:relative">
  633. <div>
  634. <label><?php _e('Ken Burns / Pan Zoom:', 'revslider'); ?></label>
  635. <input type="checkbox" class="tp-moderncheckbox withlabel" id="kenburn_effect" name="kenburn_effect" data-unchecked="off" <?php checked($kenburn_effect, 'on'); ?>>
  636. </div>
  637. <div id="kenburn_wrapper" <?php echo ($kenburn_effect == 'off') ? 'style="display: none;"' : ''; ?>>
  638. <div id="ken_burn_example_wrapper">
  639. <div id="kenburn-playpause-wrapper"><i class="eg-icon-play"></i><span><?php _e('PLAY', 'revslider'); ?></span></div><div id="kenburn-backtoidle"></div>
  640. <div id="ken_burn_example">
  641. <div id="ken_burn_slot_example" class="tp-bgimg defaultimg">
  642. </div>
  643. </div>
  644. </div>
  645. <p>
  646. <label><?php _e('Scale: (in %):', 'revslider'); ?></label>
  647. <label style="min-width:40px"><?php _e('From', 'revslider'); ?></label>
  648. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_start_fit" id="kb_start_fit" value="<?php echo intval($kb_start_fit); ?>" />
  649. <label style="min-width:20px"><?php _e('To', 'revslider')?></label>
  650. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_end_fit" id="kb_end_fit" value="<?php echo intval($kb_end_fit); ?>" />
  651. </p>
  652. <p>
  653. <label><?php _e('Horizontal Offsets (+/-):', 'revslider')?></label>
  654. <label style="min-width:40px"><?php _e('From', 'revslider'); ?></label>
  655. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_start_offset_x" id="kb_start_offset_x" value="<?php echo $kbStartOffsetX; ?>" />
  656. <label style="min-width:20px"><?php _e('To', 'revslider')?></label>
  657. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_end_offset_x" id="kb_end_offset_x" value="<?php echo $kbEndOffsetX; ?>" />
  658. </p>
  659. <p>
  660. <label><?php _e('Vertical Offsets (+/-):', 'revslider')?></label>
  661. <label style="min-width:40px"><?php _e('From', 'revslider'); ?></label>
  662. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_start_offset_y" id="kb_start_offset_y" value="<?php echo $kbStartOffsetY; ?>" />
  663. <label style="min-width:20px"><?php _e('To', 'revslider')?></label>
  664. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_end_offset_y" id="kb_end_offset_y" value="<?php echo $kbEndOffsetY; ?>" />
  665. </p>
  666. <p>
  667. <label><?php _e('Rotation:', 'revslider')?></label>
  668. <label style="min-width:40px"><?php _e('From', 'revslider'); ?></label>
  669. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_start_rotate" id="kb_start_rotate" value="<?php echo $kbStartRotate; ?>" />
  670. <label style="min-width:20px"><?php _e('To', 'revslider')?></label>
  671. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_end_rotate" id="kb_end_rotate" value="<?php echo $kbEndRotate; ?>" />
  672. </p>
  673. <p>
  674. <label><?php _e('Blur Filter:', 'revslider')?></label>
  675. <label style="min-width:40px"><?php _e('From', 'revslider'); ?></label>
  676. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_blur_start" id="kb_blur_start" value="<?php echo $kbBlurStart; ?>" />
  677. <label style="min-width:20px"><?php _e('To', 'revslider')?></label>
  678. <input style="min-width:54px;width:54px" class="kb_input_values" type="text" name="kb_blur_end" id="kb_blur_end" value="<?php echo $kbBlurEnd; ?>" />
  679. </p>
  680. <p>
  681. <label><?php _e('Easing:', 'revslider'); ?></label>
  682. <select name="kb_easing" id="kb_easing" class="kb_input_values" >
  683. <option <?php selected($kb_easing, 'Linear.easeNone'); ?> value="Linear.easeNone">Linear.easeNone</option>
  684. <option <?php selected($kb_easing, 'Power0.easeIn'); ?> value="Power0.easeIn">Power0.easeIn (linear)</option>
  685. <option <?php selected($kb_easing, 'Power0.easeInOut'); ?> value="Power0.easeInOut">Power0.easeInOut (linear)</option>
  686. <option <?php selected($kb_easing, 'Power0.easeOut'); ?> value="Power0.easeOut">Power0.easeOut (linear)</option>
  687. <option <?php selected($kb_easing, 'Power1.easeIn'); ?> value="Power1.easeIn">Power1.easeIn</option>
  688. <option <?php selected($kb_easing, 'Power1.easeInOut'); ?> value="Power1.easeInOut">Power1.easeInOut</option>
  689. <option <?php selected($kb_easing, 'Power1.easeOut'); ?> value="Power1.easeOut">Power1.easeOut</option>
  690. <option <?php selected($kb_easing, 'Power2.easeIn'); ?> value="Power2.easeIn">Power2.easeIn</option>
  691. <option <?php selected($kb_easing, 'Power2.easeInOut'); ?> value="Power2.easeInOut">Power2.easeInOut</option>
  692. <option <?php selected($kb_easing, 'Power2.easeOut'); ?> value="Power2.easeOut">Power2.easeOut</option>
  693. <option <?php selected($kb_easing, 'Power3.easeIn'); ?> value="Power3.easeIn">Power3.easeIn</option>
  694. <option <?php selected($kb_easing, 'Power3.easeInOut'); ?> value="Power3.easeInOut">Power3.easeInOut</option>
  695. <option <?php selected($kb_easing, 'Power3.easeOut'); ?> value="Power3.easeOut">Power3.easeOut</option>
  696. <option <?php selected($kb_easing, 'Power4.easeIn'); ?> value="Power4.easeIn">Power4.easeIn</option>
  697. <option <?php selected($kb_easing, 'Power4.easeInOut'); ?> value="Power4.easeInOut">Power4.easeInOut</option>
  698. <option <?php selected($kb_easing, 'Power4.easeOut'); ?> value="Power4.easeOut">Power4.easeOut</option>
  699. <option <?php selected($kb_easing, 'Back.easeIn'); ?> value="Back.easeIn">Back.easeIn</option>
  700. <option <?php selected($kb_easing, 'Back.easeInOut'); ?> value="Back.easeInOut">Back.easeInOut</option>
  701. <option <?php selected($kb_easing, 'Back.easeOut'); ?> value="Back.easeOut">Back.easeOut</option>
  702. <option <?php selected($kb_easing, 'Bounce.easeIn'); ?> value="Bounce.easeIn">Bounce.easeIn</option>
  703. <option <?php selected($kb_easing, 'Bounce.easeInOut'); ?> value="Bounce.easeInOut">Bounce.easeInOut</option>
  704. <option <?php selected($kb_easing, 'Bounce.easeOut'); ?> value="Bounce.easeOut">Bounce.easeOut</option>
  705. <option <?php selected($kb_easing, 'Circ.easeIn'); ?> value="Circ.easeIn">Circ.easeIn</option>
  706. <option <?php selected($kb_easing, 'Circ.easeInOut'); ?> value="Circ.easeInOut">Circ.easeInOut</option>
  707. <option <?php selected($kb_easing, 'Circ.easeOut'); ?> value="Circ.easeOut">Circ.easeOut</option>
  708. <option <?php selected($kb_easing, 'Elastic.easeIn'); ?> value="Elastic.easeIn">Elastic.easeIn</option>
  709. <option <?php selected($kb_easing, 'Elastic.easeInOut'); ?> value="Elastic.easeInOut">Elastic.easeInOut</option>
  710. <option <?php selected($kb_easing, 'Elastic.easeOut'); ?> value="Elastic.easeOut">Elastic.easeOut</option>
  711. <option <?php selected($kb_easing, 'Expo.easeIn'); ?> value="Expo.easeIn">Expo.easeIn</option>
  712. <option <?php selected($kb_easing, 'Expo.easeInOut'); ?> value="Expo.easeInOut">Expo.easeInOut</option>
  713. <option <?php selected($kb_easing, 'Expo.easeOut'); ?> value="Expo.easeOut">Expo.easeOut</option>
  714. <option <?php selected($kb_easing, 'Sine.easeIn'); ?> value="Sine.easeIn">Sine.easeIn</option>
  715. <option <?php selected($kb_easing, 'Sine.easeInOut'); ?> value="Sine.easeInOut">Sine.easeInOut</option>
  716. <option <?php selected($kb_easing, 'Sine.easeOut'); ?> value="Sine.easeOut">Sine.easeOut</option>
  717. <option <?php selected($kb_easing, 'SlowMo.ease'); ?> value="SlowMo.ease">SlowMo.ease</option>
  718. </select>
  719. </p>
  720. <p>
  721. <label><?php _e('Duration (in ms):', 'revslider')?></label>
  722. <input type="text" name="kb_duration" class="kb_input_values" id="kb_duration" value="<?php echo intval($kb_duration); ?>" />
  723. </p>
  724. </div>
  725. </div>
  726. <input type="hidden" id="image_url" name="image_url" value="<?php echo $imageUrl; ?>" />
  727. <input type="hidden" id="image_id" name="image_id" value="<?php echo $imageID; ?>" />
  728. </div>
  729. <?php
  730. }
  731. ?>
  732. <div id="slide-general-settings-content" style="<?php echo (!$slide->isStaticSlide()) ? ' display:none' : ''; ?>">
  733. <?php
  734. if(!$slide->isStaticSlide()){
  735. ?>
  736. <!-- SLIDE TITLE -->
  737. <p style="display:none">
  738. <?php $title = esc_attr(stripslashes(RevSliderFunctions::getVal($slideParams, 'title','Slide'))); ?>
  739. <label><?php _e("Slide Title",'revslider'); ?></label>
  740. <input type="text" class="medium" id="title" disabled="disabled" name="title" value="<?php echo $title; ?>">
  741. <span class="description"><?php _e("The title of the slide, will be shown in the slides list.",'revslider'); ?></span>
  742. </p>
  743. <!-- SLIDE DELAY -->
  744. <p>
  745. <?php $delay = RevSliderFunctions::getVal($slideParams, 'delay',''); ?>
  746. <label><?php _e('Slide "Delay":','revslider'); ?></label>
  747. <input type="text" class="small-text" id="delay" name="delay" value="<?php echo intval($delay); ?>">
  748. <span class="description"><?php _e("A new delay value for the Slide. If no delay defined per slide, the delay defined via Options (9000ms) will be used.",'revslider'); ?></span>
  749. </p>
  750. <!-- SLIDE PAUSE ON PURPOSE -->
  751. <p>
  752. <?php $stoponpurpose = RevSliderFunctions::getVal($slideParams, 'stoponpurpose','published'); ?>
  753. <label><?php _e("Pause Slider:",'revslider'); ?></label>
  754. <select id="stoponpurpose" name="stoponpurpose">
  755. <option value="false"<?php selected($stoponpurpose, 'false'); ?>><?php _e("Default",'revslider'); ?></option>
  756. <option value="true"<?php selected($stoponpurpose, 'true'); ?>><?php _e("Stop Slider Progress",'revslider'); ?></option>
  757. </select>
  758. <span class="description"><?php _e("Stop Slider Progress on this slider or use Slider Settings Defaults",'revslider'); ?></span>
  759. </p>
  760. <!-- SLIDE PAUSE ON PURPOSE -->
  761. <p>
  762. <?php $invisibleslide = RevSliderFunctions::getVal($slideParams, 'invisibleslide','published'); ?>
  763. <label><?php _e("Slide in Navigation (invisible):",'revslider'); ?></label>
  764. <select id="invisibleslide" name="invisibleslide">
  765. <option value="false"<?php selected($invisibleslide, 'false'); ?>><?php _e("Show Always",'revslider'); ?></option>
  766. <option value="true"<?php selected($invisibleslide, 'true'); ?>><?php _e("Only Via Actions",'revslider'); ?></option>
  767. </select>
  768. <span class="description"><?php _e("Show Slide always or only on Action calls. Invisible slides are not available due Navigation Elements.",'revslider'); ?></span>
  769. </p>
  770. <!-- SLIDE STATE -->
  771. <p>
  772. <?php $state = RevSliderFunctions::getVal($slideParams, 'state','published'); ?>
  773. <label><?php _e("Slide State:",'revslider'); ?></label>
  774. <select id="state" name="state">
  775. <option value="published"<?php selected($state, 'published'); ?>><?php _e("Published",'revslider'); ?></option>
  776. <option value="unpublished"<?php selected($state, 'unpublished'); ?>><?php _e("Unpublished",'revslider'); ?></option>
  777. </select>
  778. <span class="description"><?php _e("The state of the slide. The unpublished slide will be excluded from the slider.",'revslider'); ?></span>
  779. </p>
  780. <!-- SLIDE HIDE AFTER LOOP -->
  781. <p>
  782. <?php $hideslideafter = RevSliderFunctions::getVal($slideParams, 'hideslideafter',0); ?>
  783. <label><?php _e('Hide Slide After Loop:','revslider'); ?></label>
  784. <input type="text" class="small-text" id="hideslideafter" name="hideslideafter" value="<?php echo $hideslideafter; ?>">
  785. <span class="description"><?php _e("After how many Loops should the Slide be hidden ? 0 = Slide is never hidden.",'revslider'); ?></span>
  786. </p>
  787. <!-- HIDE SLIDE ON MOBILE -->
  788. <p>
  789. <?php $hideslideonmobile = RevSliderFunctions::getVal($slideParams, 'hideslideonmobile', 'off'); ?>
  790. <label><?php _e('Hide Slide On Mobile:','revslider'); ?></label>
  791. <span style="display:inline-block; width:200px; margin-right:20px;line-height:27px">
  792. <input type="checkbox" class="tp-moderncheckbox" id="hideslideonmobile" name="hideslideonmobile" data-unchecked="off" <?php checked($hideslideonmobile, 'on'); ?>>
  793. </span>
  794. <span class="description"><?php _e("Show/Hide this Slide if Slider loaded on Mobile Device.",'revslider'); ?></span>
  795. </p>
  796. <!-- SLIDE LANGUAGE SELECTOR -->
  797. <?php
  798. if(isset($slider) && $slider->isInited()){
  799. $isWpmlExists = RevSliderWpml::isWpmlExists();
  800. $useWpml = $slider->getParam("use_wpml","off");
  801. if($isWpmlExists && $useWpml == "on"){
  802. $arrLangs = RevSliderWpml::getArrLanguages();
  803. $curset_lang = RevSliderFunctions::getVal($slideParams, "lang","all");
  804. ?>
  805. <p>
  806. <label><?php _e("Language",'revslider'); ?></label>
  807. <select name="lang">
  808. <?php
  809. if(!empty($arrLangs) && is_array($arrLangs)){
  810. foreach($arrLangs as $lang_handle => $lang_name){
  811. $sel = ($lang_handle === $curset_lang) ? ' selected="selected"' : '';
  812. echo '<option value="'.$lang_handle.'"'.$sel.'>'.$lang_name.'</option>';
  813. }
  814. }
  815. ?>
  816. </select>
  817. <span class="description"><?php _e("The language of the slide (uses WPML plugin).",'revslider'); ?></span>
  818. </p>
  819. <?php
  820. }
  821. }
  822. ?>
  823. <!-- SLIDE VISIBLE FROM -->
  824. <p>
  825. <?php $date_from = RevSliderFunctions::getVal($slideParams, 'date_from',''); ?>
  826. <label><?php _e("Visible from:",'revslider'); ?></label>
  827. <input type="text" class="inputDatePicker" id="date_from" name="date_from" value="<?php echo $date_from; ?>">
  828. <span class="description"><?php _e("If set, slide will be visible after the date is reached.",'revslider'); ?></span>
  829. </p>
  830. <!-- SLIDE VISIBLE UNTIL -->
  831. <p>
  832. <?php $date_to = RevSliderFunctions::getVal($slideParams, 'date_to',''); ?>
  833. <label><?php _e("Visible until:",'revslider'); ?></label>
  834. <input type="text" class="inputDatePicker" id="date_to" name="date_to" value="<?php echo $date_to; ?>">
  835. <span class="description"><?php _e("If set, slide will be visible till the date is reached.",'revslider'); ?></span>
  836. </p>
  837. <!-- SLIDE VISIBLE FROM -->
  838. <p style="display:none">
  839. <?php $save_performance = RevSliderFunctions::getVal($slideParams, 'save_performance','off'); ?>
  840. <label><?php _e("Save Performance:",'revslider'); ?></label>
  841. <span style="display:inline-block; width:200px; margin-right:20px;">
  842. <input type="checkbox" class="tp-moderncheckbox withlabel" id="save_performance" name="save_performance" data-unchecked="off" <?php checked( $save_performance, "on" ); ?>>
  843. </span>
  844. <span class="description"><?php _e("Slide End Transition will first start when last Layer has been removed.",'revslider'); ?></span>
  845. </p>
  846. <?php
  847. } else {
  848. ?>
  849. <!-- STATIC LAYER OVERFLOW (ON/OFF) -->
  850. <p>
  851. <?php $staticoverflow = RevSliderFunctions::getVal($slideParams, 'staticoverflow','published'); ?>
  852. <label><?php _e("Static Layers Overflow:",'revslider'); ?></label>
  853. <select id="staticoverflow" name="staticoverflow">
  854. <option value="visible"<?php selected($staticoverflow, 'visible'); ?>><?php _e("Visible",'revslider'); ?></option>
  855. <option value="hidden"<?php selected($staticoverflow, 'hidden'); ?>><?php _e("Hidden",'revslider'); ?></option>
  856. </select>
  857. <span class="description"><?php _e("Set the Overflow of Static Layers to Visible or Hidden.",'revslider'); ?></span>
  858. </p>
  859. <!-- STATIC LAYER POSITION (FRONT/BACK) -->
  860. <p>
  861. <?php $staticlayersposition = RevSliderFunctions::getVal($slideParams, 'staticlayersposition','front'); ?>
  862. <label><?php _e("Static Layers Position:",'revslider'); ?></label>
  863. <select id="staticlayersposition" name="staticlayersposition">
  864. <option value="front"<?php selected($staticlayersposition, 'front'); ?>><?php _e("Front",'revslider'); ?></option>
  865. <option value="back"<?php selected($staticlayersposition, 'back'); ?>><?php _e("Back",'revslider'); ?></option>
  866. </select>
  867. <span class="description"><?php _e("Choose if Static Layers should appear above or behind Slide content (<a href='https://www.themepunch.com/revslider-doc/main-background/?tab=transparentcolor' target='_blank'>transparent bg's required</a>)",'revslider'); ?></span>
  868. </p>
  869. <?php
  870. }
  871. ?>
  872. </div>
  873. <?php
  874. if(!$slide->isStaticSlide()){
  875. ?>
  876. <!-- THUMBNAIL SETTINGS -->
  877. <div id="slide-thumbnail-settings-content" style="display:none">
  878. <!-- THUMBNAIL SETTINGS -->
  879. <div style="margin-top:10px">
  880. <?php $slide_thumb = RevSliderFunctions::getVal($slideParams, 'slide_thumb',''); ?>
  881. <span style="display:inline-block; vertical-align: top;">
  882. <label><?php _e("Thumbnail:",'revslider'); ?></label>
  883. </span>
  884. <div style="display:inline-block; vertical-align: top;">
  885. <div id="slide_thumb_button_preview" class="setting-image-preview"><?php
  886. if(intval($slide_thumb) > 0){
  887. ?>
  888. <div style="width:100px;height:70px;background:url('<?php echo admin_url( 'admin-ajax.php' ); ?>?action=revslider_show_image&amp;img=<?php echo $slide_thumb; ?>&amp;w=100&amp;h=70&amp;t=exact'); background-position:center center; background-size:cover;"></div>
  889. <?php
  890. }elseif($slide_thumb !== ''){
  891. ?>
  892. <div style="width:100px;height:70px;background:url('<?php echo $slide_thumb; ?>'); background-position:center center; background-size:cover;"></div>
  893. <?php
  894. }
  895. ?></div>
  896. <input type="hidden" id="slide_thumb" name="slide_thumb" value="<?php echo $slide_thumb; ?>">
  897. <span style="clear:both;display:block"></span>
  898. <input type="button" id="slide_thumb_button" style="width:110px !important; display:inline-block;" class="button-image-select button-primary revblue" value="Choose Image" original-title="">
  899. <input type="button" id="slide_thumb_button_remove" style="margin-right:20px !important; width:85px !important; display:inline-block;" class="button-image-remove button-primary revred" value="Remove" original-title="">
  900. <span class="description"><?php _e("Slide Thumbnail. If not set - it will be taken from the slide image.",'revslider'); ?></span>
  901. </div>
  902. </div>
  903. <?php $thumb_dimension = RevSliderFunctions::getVal($slideParams, 'thumb_dimension', 'slider'); ?>
  904. <?php $thumb_for_admin = RevSliderFunctions::getVal($slideParams, 'thumb_for_admin', 'off'); ?>
  905. <p>
  906. <span style="display:inline-block; vertical-align: top;">
  907. <label><?php _e("Thumbnail Dimensions:",'revslider'); ?></label>
  908. </span>
  909. <select name="thumb_dimension">
  910. <option value="slider" <?php selected($thumb_dimension, 'slider'); ?>><?php _e('From Slider Settings', 'revslider'); ?></option>
  911. <option value="orig" <?php selected($thumb_dimension, 'orig'); ?>><?php _e('Original Size', 'revslider'); ?></option>
  912. </select>
  913. <span class="description"><?php _e("Width and height of thumbnails can be changed in the Slider Settings -> Navigation -> Thumbs tab.",'revslider'); ?></span>
  914. </p>
  915. <p style="display:none;" class="show_on_thumbnail_exist">
  916. <span style="display:inline-block; vertical-align: top;">
  917. <label><?php _e("Thumbnail Admin Purpose:",'revslider'); ?></label>
  918. </span>
  919. <span style="display:inline-block; width:200px; margin-right:20px;line-height:27px">
  920. <input type="checkbox" class="tp-moderncheckbox" id="thumb_for_admin" name="thumb_for_admin" data-unchecked="off" <?php checked($thumb_for_admin, 'on'); ?>>
  921. </span>
  922. <span class="description"><?php _e("Use the Thumbnail also for Admin purposes. This will use the selected Thumbnail to represent the Slide in all Slider Admin area.",'revslider'); ?></span>
  923. </p>
  924. </div>
  925. <!-- SLIDE ANIMATIONS -->
  926. <div id="slide-animation-settings-content" style="display:none">
  927. <!-- ANIMATION / TRANSITION -->
  928. <div id="slide_transition_row">
  929. <?php
  930. $slide_transition = RevSliderFunctions::getVal($slideParams, 'slide_transition',$def_transition);
  931. if(!is_array($slide_transition))
  932. $slide_transition = explode(',', $slide_transition);
  933. if(!is_array($slide_transition)) $slide_transition = array($slide_transition);
  934. $transitions = $operations->getArrTransition();
  935. ?>
  936. <?php $slot_amount = (array) RevSliderFunctions::getVal($slideParams, 'slot_amount','default'); ?>
  937. <?php $transition_rotation = (array) RevSliderFunctions::getVal($slideParams, 'transition_rotation','0'); ?>
  938. <?php $transition_duration = (array) RevSliderFunctions::getVal($slideParams, 'transition_duration',$def_transition_duration); ?>
  939. <?php $transition_ease_in = (array) RevSliderFunctions::getVal($slideParams, 'transition_ease_in','default'); ?>
  940. <?php $transition_ease_out = (array) RevSliderFunctions::getVal($slideParams, 'transition_ease_out','default'); ?>
  941. <script type="text/javascript">
  942. var choosen_slide_transition = [];
  943. <?php
  944. $tr_count = count($slide_transition);
  945. foreach($slide_transition as $tr){
  946. echo 'choosen_slide_transition.push("'.$tr.'");'."\n";
  947. }
  948. ?>
  949. var transition_settings = {
  950. 'slot': [],
  951. 'rotation': [],
  952. 'duration': [],
  953. 'ease_in': [],
  954. 'ease_out': []
  955. };
  956. <?php
  957. foreach($slot_amount as $sa){
  958. echo 'transition_settings["slot"].push("'.$sa.'");'."\n";
  959. }
  960. $sac = count($slot_amount);
  961. if($sac < $tr_count){
  962. while($sac < $tr_count){
  963. $sac++;
  964. echo 'transition_settings["slot"].push("'.$slot_amount[0].'");'."\n";
  965. }
  966. }
  967. foreach($transition_rotation as $sa){
  968. echo 'transition_settings["rotation"].push("'.$sa.'");'."\n";
  969. }
  970. $sac = count($transition_rotation);
  971. if($sac < $tr_count){
  972. while($sac < $tr_count){
  973. $sac++;
  974. echo 'transition_settings["rotation"].push("'.$transition_rotation[0].'");'."\n";
  975. }
  976. }
  977. foreach($transition_duration as $sa){
  978. echo 'transition_settings["duration"].push("'.$sa.'");'."\n";
  979. }
  980. $sac = count($transition_duration);
  981. if($sac < $tr_count){
  982. while($sac < $tr_count){
  983. $sac++;
  984. echo 'transition_settings["duration"].push("'.$transition_duration[0].'");'."\n";
  985. }
  986. }
  987. foreach($transition_ease_in as $sa){
  988. echo 'transition_settings["ease_in"].push("'.$sa.'");'."\n";
  989. }
  990. $sac = count($transition_ease_in);
  991. if($sac < $tr_count){
  992. while($sac < $tr_count){
  993. $sac++;
  994. echo 'transition_settings["ease_in"].push("'.$transition_ease_in[0].'");'."\n";
  995. }
  996. }
  997. foreach($transition_ease_out as $sa){
  998. echo 'transition_settings["ease_out"].push("'.$sa.'");'."\n";
  999. }
  1000. $sac = count($transition_ease_out);
  1001. if($sac < $tr_count){
  1002. while($sac < $tr_count){
  1003. $sac++;
  1004. echo 'transition_settings["ease_out"].push("'.$transition_ease_out[0].'");'."\n";
  1005. }
  1006. }
  1007. ?>
  1008. </script>
  1009. <div id="slide_transition" multiple="" size="1" style="z-index: 100;">
  1010. <?php
  1011. if(!empty($transitions) && is_array($transitions)){
  1012. $counter = 0;
  1013. $optgroupexist = false;
  1014. $transmenu = '<ul class="slide-trans-menu">';
  1015. $lastclass = '';
  1016. $transchecks ='';
  1017. $listoftrans = '<div class="slide-trans-lists">';
  1018. foreach($transitions as $tran_handle => $tran_name){
  1019. $sel = (in_array($tran_handle, $slide_transition)) ? ' checked="checked"' : '';
  1020. if (strpos($tran_handle, 'notselectable') !== false) {
  1021. $listoftrans = $listoftrans.$transchecks;
  1022. $lastclass = "slide-trans-".$tran_handle;
  1023. $transmenu = $transmenu.'<li class="slide-trans-menu-element" data-reference="'.$lastclass.'">'.$tran_name.'</li>';
  1024. $transchecks ='';
  1025. }
  1026. else
  1027. $transchecks = $transchecks.'<div class="slide-trans-checkelement '.$lastclass.'"><input name="slide_transition[]" type="checkbox" data-useval="true" value="'.$tran_handle.'"'.$sel.'>'.$tran_name.'</div>';
  1028. }
  1029. $listoftrans = $listoftrans.$transchecks;
  1030. $transmenu = $transmenu."</ul>";
  1031. $listoftrans = $listoftrans."</div>";
  1032. echo $transmenu;
  1033. echo $listoftrans;
  1034. }
  1035. ?>
  1036. <div class="slide-trans-example">
  1037. <div class="slide-trans-example-inner">
  1038. <div class="oldslotholder" style="overflow:hidden;width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:1">
  1039. <div class="tp-bgimg defaultimg slide-transition-example"></div>
  1040. </div>
  1041. <div class="slotholder" style="overflow:hidden;width:100%;height:100%;position:absolute;top:0px;left:0px;z-index:1">
  1042. <div class="tp-bgimg defaultimg slide-transition-example"></div>
  1043. </div>
  1044. </div>
  1045. </div>
  1046. <div class="slide-trans-cur-selected">
  1047. <p><?php _e("Used Transitions (Order in Loops)",'revslider'); ?></p>
  1048. <ul class="slide-trans-cur-ul">
  1049. </ul>
  1050. </div>
  1051. <div class="slide-trans-cur-selected-settings">
  1052. <!-- SLOT AMOUNT -->
  1053. <label><?php _e("Slot / Box Amount:",'revslider'); ?></label>
  1054. <input type="text" class="small-text input-deepselects" id="slot_amount" name="slot_amount" value="<?php echo $slot_amount[0]; ?>" data-selects="1||Random||Custom||Default" data-svalues ="1||random||3||default" data-icons="thumbs-up||shuffle||wrench||key">
  1055. <span class="tp-clearfix"></span>
  1056. <span class="description"><?php _e("# of slots/boxes the slide is divided into or divided by.",'revslider'); ?></span>
  1057. <span class="tp-clearfix"></span>
  1058. <!-- ROTATION -->
  1059. <label><?php _e("Slot Rotation:",'revslider'); ?></label>
  1060. <input type="text" class="small-text input-deepselects" id="transition_rotation" name="transition_rotation" value="<?php echo $transition_rotation[0]; ?>" data-selects="0||Random||Custom||Default||45||90||180||270||360" data-svalues ="0||random||-75||default||45||90||180||270||360" data-icons="thumbs-up||shuffle||wrench||key||star-empty||star-empty||star-empty||star-empty||star-empty">
  1061. <span class="tp-clearfix"></span>
  1062. <span class="description"><?php _e("Start Rotation of Transition (deg).",'revslider'); ?></span>
  1063. <span class="tp-clearfix"></span>
  1064. <!-- DURATION -->
  1065. <label><?php _e("Animation Duration:",'revslider'); ?></label>
  1066. <input type="text" class="small-text input-deepselects" id="transition_duration" name="transition_duration" value="<?php echo $transition_duration[0]; ?>" data-selects="300||Random||Custom||Default" data-svalues ="500||random||650||default" data-icons="thumbs-up||shuffle||wrench||key">
  1067. <span class="tp-clearfix"></span>
  1068. <span class="description"><?php _e("The duration of the transition.",'revslider'); ?></span>
  1069. <span class="tp-clearfix"></span>
  1070. <!-- IN EASE -->
  1071. <label><?php _e("Easing In:",'revslider'); ?></label>
  1072. <select name="transition_ease_in">
  1073. <option value="default">Default</option>
  1074. <option value="Linear.easeNone">Linear.easeNone</option>
  1075. <option value="Power0.easeIn">Power0.easeIn (linear)</option>
  1076. <option value="Power0.easeInOut">Power0.easeInOut (linear)</option>
  1077. <option value="Power0.easeOut">Power0.easeOut (linear)</option>
  1078. <option value="Power1.easeIn">Power1.easeIn</option>
  1079. <option value="Power1.easeInOut">Power1.easeInOut</option>
  1080. <option value="Power1.easeOut">Power1.easeOut</option>
  1081. <option value="Power2.easeIn">Power2.easeIn</option>
  1082. <option value="Power2.easeInOut">Power2.easeInOut</option>
  1083. <option value="Power2.easeOut">Power2.easeOut</option>
  1084. <option value="Power3.easeIn">Power3.easeIn</option>
  1085. <option value="Power3.easeInOut">Power3.easeInOut</option>
  1086. <option value="Power3.easeOut">Power3.easeOut</option>
  1087. <option value="Power4.easeIn">Power4.easeIn</option>
  1088. <option value="Power4.easeInOut">Power4.easeInOut</option>
  1089. <option value="Power4.easeOut">Power4.easeOut</option>
  1090. <option value="Back.easeIn">Back.easeIn</option>
  1091. <option value="Back.easeInOut">Back.easeInOut</option>
  1092. <option value="Back.easeOut">Back.easeOut</option>
  1093. <option value="Bounce.easeIn">Bounce.easeIn</option>
  1094. <option value="Bounce.easeInOut">Bounce.easeInOut</option>
  1095. <option value="Bounce.easeOut">Bounce.easeOut</option>
  1096. <option value="Circ.easeIn">Circ.easeIn</option>
  1097. <option value="Circ.easeInOut">Circ.easeInOut</option>
  1098. <option value="Circ.easeOut">Circ.easeOut</option>
  1099. <option value="Elastic.easeIn">Elastic.easeIn</option>
  1100. <option value="Elastic.easeInOut">Elastic.easeInOut</option>
  1101. <option value="Elastic.easeOut">Elastic.easeOut</option>
  1102. <option value="Expo.easeIn">Expo.easeIn</option>
  1103. <option value="Expo.easeInOut">Expo.easeInOut</option>
  1104. <option value="Expo.easeOut">Expo.easeOut</option>
  1105. <option value="Sine.easeIn">Sine.easeIn</option>
  1106. <option value="Sine.easeInOut">Sine.easeInOut</option>
  1107. <option value="Sine.easeOut">Sine.easeOut</option>
  1108. <option value="SlowMo.ease">SlowMo.ease</option>
  1109. </select>
  1110. <span class="tp-clearfix"></span>
  1111. <span class="description"><?php _e("The easing of Appearing transition.",'revslider'); ?></span>
  1112. <span class="tp-clearfix"></span>
  1113. <!-- OUT EASE -->
  1114. <label><?php _e("Easing Out:",'revslider'); ?></label>
  1115. <select name="transition_ease_out">
  1116. <option value="default">Default</option>
  1117. <option value="Linear.easeNone">Linear.easeNone</option>
  1118. <option value="Power0.easeIn">Power0.easeIn (linear)</option>
  1119. <option value="Power0.easeInOut">Power0.easeInOut (linear)</option>
  1120. <option value="Power0.easeOut">Power0.easeOut (linear)</option>
  1121. <option value="Power1.easeIn">Power1.easeIn</option>
  1122. <option value="Power1.easeInOut">Power1.easeInOut</option>
  1123. <option value="Power1.easeOut">Power1.easeOut</option>
  1124. <option value="Power2.easeIn">Power2.easeIn</option>
  1125. <option value="Power2.easeInOut">Power2.easeInOut</option>
  1126. <option value="Power2.easeOut">Power2.easeOut</option>
  1127. <option value="Power3.easeIn">Power3.easeIn</option>
  1128. <option value="Power3.easeInOut">Power3.easeInOut</option>
  1129. <option value="Power3.easeOut">Power3.easeOut</option>
  1130. <option value="Power4.easeIn">Power4.easeIn</option>
  1131. <option value="Power4.easeInOut">Power4.easeInOut</option>
  1132. <option value="Power4.easeOut">Power4.easeOut</option>
  1133. <option value="Back.easeIn">Back.easeIn</option>
  1134. <option value="Back.easeInOut">Back.easeInOut</option>
  1135. <option value="Back.easeOut">Back.easeOut</option>
  1136. <option value="Bounce.easeIn">Bounce.easeIn</option>
  1137. <option value="Bounce.easeInOut">Bounce.easeInOut</option>
  1138. <option value="Bounce.easeOut">Bounce.easeOut</option>
  1139. <option value="Circ.easeIn">Circ.easeIn</option>
  1140. <option value="Circ.easeInOut">Circ.easeInOut</option>
  1141. <option value="Circ.easeOut">Circ.easeOut</option>
  1142. <option value="Elastic.easeIn">Elastic.easeIn</option>
  1143. <option value="Elastic.easeInOut">Elastic.easeInOut</option>
  1144. <option value="Elastic.easeOut">Elastic.easeOut</option>
  1145. <option value="Expo.easeIn">Expo.easeIn</option>
  1146. <option value="Expo.easeInOut">Expo.easeInOut</option>
  1147. <option value="Expo.easeOut">Expo.easeOut</option>
  1148. <option value="Sine.easeIn">Sine.easeIn</option>
  1149. <option value="Sine.easeInOut">Sine.easeInOut</option>
  1150. <option value="Sine.easeOut">Sine.easeOut</option>
  1151. <option value="SlowMo.ease">SlowMo.ease</option>
  1152. </select>
  1153. <span class="tp-clearfix"></span>
  1154. <span class="description"><?php _e("The easing of Disappearing transition.",'revslider'); ?></span>
  1155. </div>
  1156. </div>
  1157. </div>
  1158. </div>
  1159. <!-- SLIDE BASIC INFORMATION -->
  1160. <div id="slide-nav-settings-content" style="display:none">
  1161. <ul class="rs-layer-nav-settings-tabs" style="display:inline-block; ">
  1162. <li id="custom-nav-arrows-tab-selector" data-content="arrows" class="selected"><?php _e('Arrows', 'revslider'); ?></li>
  1163. <li id="custom-nav-bullets-tab-selector" data-content="bullets"><?php _e('Bullets', 'revslider'); ?></li>
  1164. <li id="custom-nav-tabs-tab-selector" data-content="tabs"><?php _e('Tabs', 'revslider'); ?></li>
  1165. <li id="custom-nav-thumbs-tab-selector" data-content="thumbs"><?php _e('Thumbnails', 'revslider'); ?></li>
  1166. </ul>
  1167. <div class="tp-clearfix"></div>
  1168. <ul id="navigation-placeholder-wrapper">
  1169. <?php
  1170. $ph_types = array('navigation_arrow_style' => 'arrows', 'navigation_bullets_style' => 'bullets', 'tabs_style' => 'tabs', 'thumbnails_style' => 'thumbs');
  1171. foreach($ph_types as $phname => $pht){
  1172. $ph_arr_type = $slider->getParam($phname,'');
  1173. $ph_init = array();
  1174. foreach($arr_navigations as $nav){
  1175. if($nav['handle'] == $ph_arr_type){ //check for settings, placeholders
  1176. if(isset($nav['settings']) && isset($nav['settings']['placeholders'])){
  1177. foreach($nav['settings']['placeholders'] as $placeholder){
  1178. if(empty($placeholder)) continue;
  1179. $ph_vals = array();
  1180. //$placeholder['type']
  1181. foreach($placeholder['data'] as $k => $d){
  1182. $get_from = RevSliderFunctions::getVal($slideParams, 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-'.$k.'-slide', 'off');
  1183. if($get_from == 'on'){ //get from Slide
  1184. $ph_vals[$k] = stripslashes(RevSliderFunctions::getVal($slideParams, 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-'.$k, $d));
  1185. }else{ ////get from Slider
  1186. $ph_vals[$k] = stripslashes($slider->getParam('ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-'.$k, $d));
  1187. }
  1188. }
  1189. ?>
  1190. <?php if ($placeholder['nav-type'] === $pht) { ?>
  1191. <li class="custom-nav-types nav-type-<?php echo $placeholder['nav-type']; ?>">
  1192. <?php
  1193. switch($placeholder['type']){
  1194. case 'color':
  1195. $get_from = RevSliderFunctions::getVal($slideParams, 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-slide', 'off');
  1196. ?>
  1197. <label><?php echo $placeholder['title']; ?></label>
  1198. <input type="checkbox" class="tp-moderncheckbox" id="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-slide'; ?>" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-slide'; ?>" data-unchecked="off" <?php checked($get_from, 'on'); ?>>
  1199. <input type="text" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color'; ?>" class="my-alphacolor-field" value="<?php echo $ph_vals['color']; ?>">
  1200. <?php
  1201. break;
  1202. case 'color-rgba':
  1203. $get_from = RevSliderFunctions::getVal($slideParams, 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-rgba-slide', 'off');
  1204. ?>
  1205. <label><?php echo $placeholder['title']; ?></label>
  1206. <input type="checkbox" class="tp-moderncheckbox" id="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-rgba-slide'; ?>" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-rgba-slide'; ?>" data-unchecked="off" <?php checked($get_from, 'on'); ?>>
  1207. <input type="text" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-color-rgba'; ?>" class="my-alphacolor-field" value="<?php echo $ph_vals['color-rgba']; ?>">
  1208. <?php
  1209. break;
  1210. case 'font-family':
  1211. $get_from_font_family = RevSliderFunctions::getVal($slideParams, 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-font_family-slide', 'off');
  1212. ?>
  1213. <label><?php echo $placeholder['title']; ?></label>
  1214. <input type="checkbox" class="tp-moderncheckbox" id="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-font_family-slide'; ?>" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-font_family-slide'; ?>" data-unchecked="off" <?php checked($get_from_font_family, 'on'); ?>>
  1215. <select style="width: 140px;" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-font_family'; ?>">
  1216. <?php
  1217. $font_families = $operations->getArrFontFamilys();
  1218. foreach($font_families as $handle => $name){
  1219. if($name['label'] == 'Dont Show Me') continue;
  1220. echo '<option value="'. esc_attr($name['label']) .'"';
  1221. if($ph_vals['font_family'] == esc_attr($name['label'])){
  1222. echo ' selected="selected"';
  1223. }
  1224. echo '>'. esc_attr($name['label']) .'</option>';
  1225. }
  1226. ?>
  1227. </select>
  1228. <?php
  1229. break;
  1230. case 'custom':
  1231. $get_from_custom = RevSliderFunctions::getVal($slideParams, 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-custom-slide', 'off');
  1232. ?>
  1233. <label><?php echo $placeholder['title']; ?></label>
  1234. <input type="checkbox" class="tp-moderncheckbox" id="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-custom-slide'; ?>" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-custom-slide'; ?>" data-unchecked="off" <?php checked($get_from_custom, 'on'); ?>>
  1235. <input type="text" name="<?php echo 'ph-'.$ph_arr_type.'-'.$pht.'-'.$placeholder['handle'].'-custom'; ?>" value="<?php echo $ph_vals['custom']; ?>">
  1236. <?php
  1237. break;
  1238. }
  1239. ?>
  1240. </li>
  1241. <?php
  1242. }
  1243. ?>
  1244. <?php
  1245. }
  1246. }
  1247. break;
  1248. }
  1249. }
  1250. }
  1251. ?>
  1252. </ul>
  1253. <p style="margin-top:25px"><i><?php _e("The Custom Settings are always depending on the current selected Navigation Elements in Slider Settings, and will only be active on the current Slide.",'revslider'); ?></i></p>
  1254. <script type="text/javascript">
  1255. jQuery(document).ready(function() {
  1256. if (jQuery('.custom-nav-types.nav-type-arrows').length==0)
  1257. jQuery('#custom-nav-arrows-tab-selector').remove();
  1258. if (jQuery('.custom-nav-types.nav-type-bullets').length==0)
  1259. jQuery('#custom-nav-bullets-tab-selector').remove();
  1260. if (jQuery('.custom-nav-types.nav-type-tabs').length==0)
  1261. jQuery('#custom-nav-tabs-tab-selector').remove();
  1262. if (jQuery('.custom-nav-types.nav-type-thumbs').length==0)
  1263. jQuery('#custom-nav-thumbs-tab-selector').remove();
  1264. if (jQuery('#navigation-placeholder-wrapper li').length==0)
  1265. jQuery('#main-menu-nav-settings-li').remove();
  1266. jQuery('document').ready(function() {
  1267. jQuery('.rs-layer-nav-settings-tabs li').click(function() {
  1268. var tn = jQuery(this);
  1269. jQuery('.custom-nav-types').hide();
  1270. jQuery('.custom-nav-types.nav-type-'+tn.data('content')).show();
  1271. jQuery('.rs-layer-nav-settings-tabs .selected').removeClass("selected");
  1272. tn.addClass("selected");
  1273. });
  1274. });
  1275. setTimeout(function() {
  1276. jQuery('.rs-layer-nav-settings-tabs li:nth-child(1)').click();
  1277. },100)
  1278. });
  1279. </script>
  1280. </div>
  1281. <?php
  1282. }
  1283. ?>
  1284. <!-- SLIDE ADDON WRAP -->
  1285. <div id="slide-addon-wrapper" style="margin:-15px; display:none">
  1286. <div id="rs-addon-wrapper-button-row">
  1287. <span class="rs-layer-toolbar-box" style="padding:5px 20px"><?php _e('Select Add-on', 'revslider'); ?></span>
  1288. <?php
  1289. if(!empty($slide_general_addon)){
  1290. foreach($slide_general_addon as $rs_addon_handle => $rs_addon){
  1291. ?>
  1292. <span class="rs-layer-toolbar-box">
  1293. <span id="rs-addon-settings-trigger-<?php echo esc_attr($rs_addon_handle); ?>" class="rs-addon-settings-trigger"><?php echo esc_attr($rs_addon['title']); ?></span>
  1294. </span>
  1295. <?php
  1296. }
  1297. }
  1298. ?>
  1299. </div>
  1300. <div style="border-top:1px solid #ddd;">
  1301. <?php
  1302. if(!empty($slide_general_addon)){
  1303. foreach($slide_general_addon as $rs_addon_handle => $rs_addon){
  1304. ?>
  1305. <div id="rs-addon-settings-trigger-<?php echo esc_attr($rs_addon_handle); ?>-settings" class="rs-addon-settings-wrapper-settings" style="display: none;">
  1306. <?php echo $rs_addon['markup']; ?>
  1307. <script type="text/javascript">
  1308. <?php echo $rs_addon['javascript']; ?>
  1309. </script>
  1310. </div>
  1311. <?php
  1312. }
  1313. }
  1314. ?>
  1315. <script type="text/javascript">
  1316. jQuery('.rs-addon-settings-trigger').click(function(){
  1317. var show_addon = jQuery(this).attr('id');
  1318. jQuery('.rs-addon-settings-trigger').removeClass("selected");
  1319. jQuery(this).addClass("selected");
  1320. jQuery('.rs-addon-settings-wrapper-settings').hide();
  1321. jQuery('#'+show_addon+'-settings').show();
  1322. });
  1323. </script>
  1324. </div>
  1325. </div>
  1326. <?php
  1327. if(!$slide->isStaticSlide()){
  1328. ?>
  1329. <!-- SLIDE BASIC INFORMATION -->
  1330. <div id="slide-info-settings-content" style="display:none">
  1331. <ul>
  1332. <?php
  1333. for($i=1;$i<=10;$i++){
  1334. ?>
  1335. <li>
  1336. <label><?php _e('Parameter', 'revslider'); echo ' '.$i; ?></label> <input type="text" name="params_<?php echo $i; ?>" value="<?php echo stripslashes(esc_attr(RevSliderFunctions::getVal($slideParams, 'params_'.$i,''))); ?>">
  1337. <?php _e('Max. Chars', 'revslider'); ?> <input type="text" style="width: 50px; min-width: 50px;" name="params_<?php echo $i; ?>_chars" value="<?php echo esc_attr(RevSliderFunctions::getVal($slideParams, 'params_'.$i.'_chars',10, RevSlider::FORCE_NUMERIC)); ?>">
  1338. <?php if($slider_type !== 'gallery'){ ?><i class="eg-icon-pencil rs-param-meta-open" data-curid="<?php echo $i; ?>"></i><?php } ?>
  1339. </li>
  1340. <?php
  1341. }
  1342. ?>
  1343. </ul>
  1344. <!-- BASIC DESCRIPTION -->
  1345. <p>
  1346. <?php $slide_description = stripslashes(RevSliderFunctions::getVal($slideParams, 'slide_description', '')); ?>
  1347. <label><?php _e("Description of Slider:",'revslider'); ?></label>
  1348. <textarea name="slide_description" style="height: 425px; width: 100%"><?php echo $slide_description; ?></textarea>
  1349. <span class="description"><?php _e('Define a description here to show at the navigation if enabled in Slider Settings','revslider'); ?></span>
  1350. </p>
  1351. </div>
  1352. <!-- SLIDE SEO INFORMATION -->
  1353. <div id="slide-seo-settings-content" style="display:none">
  1354. <!-- CLASS -->
  1355. <p>
  1356. <?php $class_attr = RevSliderFunctions::getVal($slideParams, 'class_attr',''); ?>
  1357. <label><?php _e("Class:",'revslider'); ?></label>
  1358. <input type="text" class="" id="class_attr" name="class_attr" value="<?php echo $class_attr; ?>">
  1359. <span class="description"><?php _e('Adds a unique class to the li of the Slide like class="rev_special_class" (add only the classnames, seperated by space)','revslider'); ?></span>
  1360. </p>
  1361. <!-- ID -->
  1362. <p>
  1363. <?php $id_attr = RevSliderFunctions::getVal($slideParams, 'id_attr',''); ?>
  1364. <label><?php _e("ID:",'revslider'); ?></label>
  1365. <input type="text" class="" id="id_attr" name="id_attr" value="<?php echo $id_attr; ?>">
  1366. <span class="description"><?php _e('Adds a unique ID to the li of the Slide like id="rev_special_id" (add only the id)','revslider'); ?></span>
  1367. </p>
  1368. <!-- CUSTOM FIELDS -->
  1369. <p>
  1370. <?php $data_attr = stripslashes(RevSliderFunctions::getVal($slideParams, 'data_attr','')); ?>
  1371. <label><?php _e("Custom Fields:",'revslider'); ?></label>
  1372. <textarea id="data_attr" name="data_attr"><?php echo $data_attr; ?></textarea>
  1373. <span class="description"><?php _e('Add as many attributes as you wish here. (i.e.: data-layer="firstlayer" data-custom="somevalue").','revslider'); ?></span>
  1374. </p>
  1375. <!-- Enable Link -->
  1376. <p>
  1377. <?php $enable_link = RevSliderFunctions::getVal($slideParams, 'enable_link','false'); ?>
  1378. <label><?php _e("Enable Link:",'revslider'); ?></label>
  1379. <select id="enable_link" name="enable_link">
  1380. <option value="true"<?php selected($enable_link, 'true'); ?>><?php _e("Enable",'revslider'); ?></option>
  1381. <option value="false"<?php selected($enable_link, 'false'); ?>><?php _e("Disable",'revslider'); ?></option>
  1382. </select>
  1383. <span class="description"><?php _e('Link the Full Slide to an URL or Action.','revslider'); ?></span>
  1384. </p>
  1385. <div class="rs-slide-link-setting-wrapper">
  1386. <!-- Link Type -->
  1387. <p>
  1388. <?php $enable_link = RevSliderFunctions::getVal($slideParams, 'link_type','regular'); ?>
  1389. <label><?php _e("Link Type:",'revslider'); ?></label>
  1390. <span style="display:inline-block; width:200px; margin-right:20px;">
  1391. <input type="radio" id="link_type_1" value="regular" name="link_type"<?php checked($enable_link, 'regular'); ?>><span style="line-height:30px; vertical-align: middle; margin:0px 20px 0px 10px;"><?php _e('Regular','revslider'); ?></span>
  1392. <input type="radio" id="link_type_2" value="slide" name="link_type"<?php checked($enable_link, 'slide'); ?>><span style="line-height:30px; vertical-align: middle; margin:0px 20px 0px 10px;"><?php _e('To Slide','revslider'); ?></span>
  1393. </span>
  1394. <span class="description"><?php _e('Regular - Link to URL, To Slide - Call a Slide Action','revslider'); ?></span>
  1395. </p>
  1396. <div class="rs-regular-link-setting-wrap">
  1397. <!-- SLIDE LINK -->
  1398. <p>
  1399. <?php $val_link = RevSliderFunctions::getVal($slideParams, 'link',''); ?>
  1400. <label><?php _e("Slide Link:",'revslider'); ?></label>
  1401. <input type="text" id="rev_link" name="link" value="<?php echo $val_link; ?>">
  1402. <span class="description"><?php _e('A link on the whole slide pic (use {{link}} or {{meta:somemegatag}} in template sliders to link to a post or some other meta)','revslider'); ?></span>
  1403. </p>
  1404. <!-- LINK TARGET -->
  1405. <p>
  1406. <?php $link_open_in = RevSliderFunctions::getVal($slideParams, 'link_open_in','same'); ?>
  1407. <label><?php _e("Link Target:",'revslider'); ?></label>
  1408. <select id="link_open_in" name="link_open_in">
  1409. <option value="same"<?php selected($link_open_in, 'same'); ?>><?php _e('Same Window','revslider'); ?></option>
  1410. <option value="new"<?php selected($link_open_in, 'new'); ?>><?php _e('New Window','revslider'); ?></option>
  1411. </select>
  1412. <span class="description"><?php _e('The target of the slide link.','revslider'); ?></span>
  1413. </p>
  1414. </div>
  1415. <!-- LINK TO SLIDE -->
  1416. <p class="rs-slide-to-slide">
  1417. <?php $slide_link = RevSliderFunctions::getVal($slideParams, 'slide_link','nothing');
  1418. //num_slide_link
  1419. $arrSlideLink = array();
  1420. $arrSlideLink["nothing"] = __("-- Not Chosen --",'revslider');
  1421. $arrSlideLink["next"] = __("-- Next Slide --",'revslider');
  1422. $arrSlideLink["prev"] = __("-- Previous Slide --",'revslider');
  1423. $arrSlideLinkLayers = $arrSlideLink;
  1424. $arrSlideLinkLayers["scroll_under"] = __("-- Scroll Below Slider --",'revslider');
  1425. $arrSlideNames = array();
  1426. if(isset($slider) && $slider->isInited())
  1427. $arrSlideNames = $slider->getArrSlideNames();
  1428. if(!empty($arrSlideNames) && is_array($arrSlideNames)){
  1429. foreach($arrSlideNames as $slideNameID=>$arr){
  1430. $slideName = esc_attr(stripslashes($arr["title"]));
  1431. $arrSlideLink[$slideNameID] = $slideName;
  1432. $arrSlideLinkLayers[$slideNameID] = $slideName;
  1433. }
  1434. }
  1435. ?>
  1436. <label><?php _e("Link To Slide:",'revslider'); ?></label>
  1437. <select id="slide_link" name="slide_link">
  1438. <?php
  1439. if(!empty($arrSlideLinkLayers) && is_array($arrSlideLinkLayers)){
  1440. foreach($arrSlideLinkLayers as $link_handle => $link_name){
  1441. $sel = ($link_handle == $slide_link) ? ' selected="selected"' : '';
  1442. echo '<option value="'.$link_handle.'"'.$sel.'>'.$link_name.'</option>';
  1443. }
  1444. }
  1445. ?>
  1446. </select>
  1447. <span class="description"><?php _e('Call Slide Action','revslider'); ?></span>
  1448. </p>
  1449. <!-- Link POSITION -->
  1450. <p>
  1451. <?php $link_pos = RevSliderFunctions::getVal($slideParams, 'link_pos','front'); ?>
  1452. <label><?php _e("Link Sensibility:",'revslider'); ?></label>
  1453. <span style="display:inline-block; width:200px; margin-right:20px;">
  1454. <input type="radio" id="link_pos_1" value="front" name="link_pos"<?php checked($link_pos, 'front'); ?>><span style="line-height:30px; vertical-align: middle; margin:0px 20px 0px 10px;"><?php _e('Front','revslider'); ?></span>
  1455. <input type="radio" id="link_pos_2" value="back" name="link_pos"<?php checked($link_pos, 'back'); ?>><span style="line-height:30px; vertical-align: middle; margin:0px 20px 0px 10px;"><?php _e('Back','revslider'); ?></span>
  1456. </span>
  1457. <span class="description"><?php _e('The z-index position of the link related to layers','revslider'); ?></span>
  1458. </p>
  1459. </div>
  1460. </div>
  1461. <?php
  1462. }
  1463. ?>
  1464. </form>
  1465. </div>
  1466. </div>
  1467. <script type="text/javascript">
  1468. var rs_plugin_url = '<?php echo RS_PLUGIN_URL; ?>';
  1469. jQuery('document').ready(function() {
  1470. jQuery('.my-alphacolor-field').tpColorPicker({
  1471. mode:'single',
  1472. wrapper:'<span class="rev-colorpickerspan"></span>'
  1473. });
  1474. jQuery('#enable_link').change(function(){
  1475. if(jQuery(this).val() == 'true'){
  1476. jQuery('.rs-slide-link-setting-wrapper').show();
  1477. }else{
  1478. jQuery('.rs-slide-link-setting-wrapper').hide();
  1479. }
  1480. });
  1481. jQuery('#enable_link option:selected').change();
  1482. jQuery('input[name="link_type"]').change(function(){
  1483. if(jQuery(this).val() == 'regular'){
  1484. jQuery('.rs-regular-link-setting-wrap').show();
  1485. jQuery('.rs-slide-to-slide').hide();
  1486. }else{
  1487. jQuery('.rs-regular-link-setting-wrap').hide();
  1488. jQuery('.rs-slide-to-slide').show();
  1489. }
  1490. });
  1491. jQuery('input[name="link_type"]:checked').change();
  1492. });
  1493. </script>