operations.class.php 292 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229
  1. <?php
  2. /**
  3. * @author ThemePunch <info@themepunch.com>
  4. * @link http://www.themepunch.com/
  5. * @copyright 2015 ThemePunch
  6. */
  7. if( !defined( 'ABSPATH') ) exit();
  8. class RevSliderOperations extends RevSliderElementsBase{
  9. private static $animations;
  10. private static $css;
  11. /**
  12. * get easing functions array
  13. */
  14. public function getArrEasing(){ //true
  15. $arrEasing = array(
  16. "Linear.easeNone" => "Linear.easeNone",
  17. "Power0.easeIn" => "Power0.easeIn (linear)",
  18. "Power0.easeInOut" => "Power0.easeInOut (linear)",
  19. "Power0.easeOut" => "Power0.easeOut (linear)",
  20. "Power1.easeIn" => "Power1.easeIn",
  21. "Power1.easeInOut" => "Power1.easeInOut",
  22. "Power1.easeOut" => "Power1.easeOut",
  23. "Power2.easeIn" => "Power2.easeIn",
  24. "Power2.easeInOut" => "Power2.easeInOut",
  25. "Power2.easeOut" => "Power2.easeOut",
  26. "Power3.easeIn" => "Power3.easeIn",
  27. "Power3.easeInOut" => "Power3.easeInOut",
  28. "Power3.easeOut" => "Power3.easeOut",
  29. "Power4.easeIn" => "Power4.easeIn",
  30. "Power4.easeInOut" => "Power4.easeInOut",
  31. "Power4.easeOut" => "Power4.easeOut",
  32. "Quad.easeIn" => "Quad.easeIn (same as Power1.easeIn)",
  33. "Quad.easeInOut" => "Quad.easeInOut (same as Power1.easeInOut)",
  34. "Quad.easeOut" => "Quad.easeOut (same as Power1.easeOut)",
  35. "Cubic.easeIn" => "Cubic.easeIn (same as Power2.easeIn)",
  36. "Cubic.easeInOut" => "Cubic.easeInOut (same as Power2.easeInOut)",
  37. "Cubic.easeOut" => "Cubic.easeOut (same as Power2.easeOut)",
  38. "Quart.easeIn" => "Quart.easeIn (same as Power3.easeIn)",
  39. "Quart.easeInOut" => "Quart.easeInOut (same as Power3.easeInOut)",
  40. "Quart.easeOut" => "Quart.easeOut (same as Power3.easeOut)",
  41. "Quint.easeIn" => "Quint.easeIn (same as Power4.easeIn)",
  42. "Quint.easeInOut" => "Quint.easeInOut (same as Power4.easeInOut)",
  43. "Quint.easeOut" => "Quint.easeOut (same as Power4.easeOut)",
  44. "Strong.easeIn" => "Strong.easeIn (same as Power4.easeIn)",
  45. "Strong.easeInOut" => "Strong.easeInOut (same as Power4.easeInOut)",
  46. "Strong.easeOut" => "Strong.easeOut (same as Power4.easeOut)",
  47. "Back.easeIn" => "Back.easeIn",
  48. "Back.easeInOut" => "Back.easeInOut",
  49. "Back.easeOut" => "Back.easeOut",
  50. "Bounce.easeIn" => "Bounce.easeIn",
  51. "Bounce.easeInOut" => "Bounce.easeInOut",
  52. "Bounce.easeOut" => "Bounce.easeOut",
  53. "Circ.easeIn" => "Circ.easeIn",
  54. "Circ.easeInOut" => "Circ.easeInOut",
  55. "Circ.easeOut" => "Circ.easeOut",
  56. "Elastic.easeIn" => "Elastic.easeIn",
  57. "Elastic.easeInOut" => "Elastic.easeInOut",
  58. "Elastic.easeOut" => "Elastic.easeOut",
  59. "Expo.easeIn" => "Expo.easeIn",
  60. "Expo.easeInOut" => "Expo.easeInOut",
  61. "Expo.easeOut" => "Expo.easeOut",
  62. "Sine.easeIn" => "Sine.easeIn",
  63. "Sine.easeInOut" => "Sine.easeInOut",
  64. "Sine.easeOut" => "Sine.easeOut",
  65. "SlowMo.ease" => "SlowMo.ease",
  66. //add old easings //From here on display none
  67. "easeOutBack" => "easeOutBack",
  68. "easeInQuad" => "easeInQuad",
  69. "easeOutQuad" => "easeOutQuad",
  70. "easeInOutQuad" => "easeInOutQuad",
  71. "easeInCubic" => "easeInCubic",
  72. "easeOutCubic" => "easeOutCubic",
  73. "easeInOutCubic" => "easeInOutCubic",
  74. "easeInQuart" => "easeInQuart",
  75. "easeOutQuart" => "easeOutQuart",
  76. "easeInOutQuart" => "easeInOutQuart",
  77. "easeInQuint" => "easeInQuint",
  78. "easeOutQuint" => "easeOutQuint",
  79. "easeInOutQuint" => "easeInOutQuint",
  80. "easeInSine" => "easeInSine",
  81. "easeOutSine" => "easeOutSine",
  82. "easeInOutSine" => "easeInOutSine",
  83. "easeInExpo" => "easeInExpo",
  84. "easeOutExpo" => "easeOutExpo",
  85. "easeInOutExpo" => "easeInOutExpo",
  86. "easeInCirc" => "easeInCirc",
  87. "easeOutCirc" => "easeOutCirc",
  88. "easeInOutCirc" => "easeInOutCirc",
  89. "easeInElastic" => "easeInElastic",
  90. "easeOutElastic" => "easeOutElastic",
  91. "easeInOutElastic" => "easeInOutElastic",
  92. "easeInBack" => "easeInBack",
  93. "easeInOutBack" => "easeInOutBack",
  94. "easeInBounce" => "easeInBounce",
  95. "easeOutBounce" => "easeOutBounce",
  96. "easeInOutBounce" => "easeInOutBounce",
  97. "Quad.easeIn" => "Quad.easeIn (same as Power1.easeIn)",
  98. "Quad.easeInOut" => "Quad.easeInOut (same as Power1.easeInOut)",
  99. "Quad.easeOut" => "Quad.easeOut (same as Power1.easeOut)",
  100. "Cubic.easeIn" => "Cubic.easeIn (same as Power2.easeIn)",
  101. "Cubic.easeInOut" => "Cubic.easeInOut (same as Power2.easeInOut)",
  102. "Cubic.easeOut" => "Cubic.easeOut (same as Power2.easeOut)",
  103. "Quart.easeIn" => "Quart.easeIn (same as Power3.easeIn)",
  104. "Quart.easeInOut" => "Quart.easeInOut (same as Power3.easeInOut)",
  105. "Quart.easeOut" => "Quart.easeOut (same as Power3.easeOut)",
  106. "Quint.easeIn" => "Quint.easeIn (same as Power4.easeIn)",
  107. "Quint.easeInOut" => "Quint.easeInOut (same as Power4.easeInOut)",
  108. "Quint.easeOut" => "Quint.easeOut (same as Power4.easeOut)",
  109. "Strong.easeIn" => "Strong.easeIn (same as Power4.easeIn)",
  110. "Strong.easeInOut" => "Strong.easeInOut (same as Power4.easeInOut)",
  111. "Strong.easeOut" => "Strong.easeOut (same as Power4.easeOut)"
  112. );
  113. return($arrEasing);
  114. }
  115. /**
  116. * get easing functions array
  117. */
  118. public function getArrSplit(){ //true
  119. $arrSplit = array(
  120. "none" => "No Split",
  121. "chars" => "Char Based",
  122. "words" => "Word Based",
  123. "lines" => "Line Based"
  124. );
  125. return($arrSplit);
  126. }
  127. /**
  128. * get arr end easing
  129. */
  130. public function getArrEndEasing(){
  131. $arrEasing = $this->getArrEasing();
  132. $arrEasing = array_merge(array("nothing" => "No Change"),$arrEasing);
  133. return($arrEasing);
  134. }
  135. /**
  136. * get transition array
  137. */
  138. public function getArrTransition(){
  139. $arrTransition = array(
  140. "notselectable1"=>"BASICS",
  141. "notransition"=>"No Transition",
  142. "fade"=>"Fade",
  143. "crossfade"=>"Fade Cross",
  144. "fadethroughdark"=>"Fade Through Black",
  145. "fadethroughlight"=>"Fade Through Light",
  146. "fadethroughtransparent"=>"Fade Through Transparent",
  147. "notselectable2"=>"SLIDE SIMPLE",
  148. "slideup"=>"Slide To Top",
  149. "slidedown"=>"Slide To Bottom",
  150. "slideright"=>"Slide To Right",
  151. "slideleft"=>"Slide To Left",
  152. "slidehorizontal"=>"Slide Horizontal (Next/Previous)",
  153. "slidevertical"=>"Slide Vertical (Next/Previous)",
  154. "notselectable21"=>"SLIDE OVER",
  155. "slideoverup"=>"Slide Over To Top",
  156. "slideoverdown"=>"Slide Over To Bottom",
  157. "slideoverright"=>"Slide Over To Right",
  158. "slideoverleft"=>"Slide Over To Left",
  159. "slideoverhorizontal"=>"Slide Over Horizontal (Next/Previous)",
  160. "slideoververtical"=>"Slide Over Vertical (Next/Previous)",
  161. "notselectable22"=>"SLIDE REMOVE",
  162. "slideremoveup"=>"Slide Remove To Top",
  163. "slideremovedown"=>"Slide Remove To Bottom",
  164. "slideremoveright"=>"Slide Remove To Right",
  165. "slideremoveleft"=>"Slide Remove To Left",
  166. "slideremovehorizontal"=>"Slide Remove Horizontal (Next/Previous)",
  167. "slideremovevertical"=>"Slide Remove Vertical (Next/Previous)",
  168. "notselectable26"=>"SLIDING OVERLAYS",
  169. "slidingoverlayup"=>"Sliding Overlays To Top",
  170. "slidingoverlaydown"=>"Sliding Overlays To Bottom",
  171. "slidingoverlayright"=>"Sliding Overlays To Right",
  172. "slidingoverlayleft"=>"Sliding Overlays To Left",
  173. "slidingoverlayhorizontal"=>"Sliding Overlays Horizontal (Next/Previous)",
  174. "slidingoverlayvertical"=>"Sliding Overlays Vertical (Next/Previous)",
  175. "notselectable23"=>"SLOTS AND BOXES",
  176. "boxslide"=>"Slide Boxes",
  177. "slotslide-horizontal"=>"Slide Slots Horizontal",
  178. "slotslide-vertical"=>"Slide Slots Vertical",
  179. "boxfade"=>"Fade Boxes",
  180. "slotfade-horizontal"=>"Fade Slots Horizontal",
  181. "slotfade-vertical"=>"Fade Slots Vertical",
  182. "notselectable31"=>"FADE & SLIDE",
  183. "fadefromright"=>"Fade and Slide from Right",
  184. "fadefromleft"=>"Fade and Slide from Left",
  185. "fadefromtop"=>"Fade and Slide from Top",
  186. "fadefrombottom"=>"Fade and Slide from Bottom",
  187. "fadetoleftfadefromright"=>"To Left From Right",
  188. "fadetorightfadefromleft"=>"To Right From Left",
  189. "fadetotopfadefrombottom"=>"To Top From Bottom",
  190. "fadetobottomfadefromtop"=>"To Bottom From Top",
  191. "notselectable4"=>"PARALLAX",
  192. "parallaxtoright"=>"Parallax to Right",
  193. "parallaxtoleft"=>"Parallax to Left",
  194. "parallaxtotop"=>"Parallax to Top",
  195. "parallaxtobottom"=>"Parallax to Bottom",
  196. "parallaxhorizontal"=>"Parallax Horizontal",
  197. "parallaxvertical"=>"Parallax Vertical",
  198. "notselectable5"=>"ZOOM TRANSITIONS",
  199. "scaledownfromright"=>"Zoom Out and Fade From Right",
  200. "scaledownfromleft"=>"Zoom Out and Fade From Left",
  201. "scaledownfromtop"=>"Zoom Out and Fade From Top",
  202. "scaledownfrombottom"=>"Zoom Out and Fade From Bottom",
  203. "zoomout"=>"ZoomOut",
  204. "zoomin"=>"ZoomIn",
  205. "slotzoom-horizontal"=>"Zoom Slots Horizontal",
  206. "slotzoom-vertical"=>"Zoom Slots Vertical",
  207. "notselectable6"=>"CURTAIN TRANSITIONS",
  208. "curtain-1"=>"Curtain from Left",
  209. "curtain-2"=>"Curtain from Right",
  210. "curtain-3"=>"Curtain from Middle",
  211. "notselectable8"=>"FILTER TRANSITIONS",
  212. "grayscale"=>"Grayscale Transition",
  213. "grayscalecross"=>"Grayscale Cross Transition",
  214. "brightness"=>"Brightness Transition",
  215. "brightnesscross"=>"Brightness Cross Transition",
  216. "blurlight"=>"Blur Light Transition",
  217. "blurlightcross"=>"Blur Light Cross Transition",
  218. "blurstrong"=>"Blur Strong Transition",
  219. "blurstrongcross"=>"Blur Strong Cross Transition",
  220. "notselectable7"=>"PREMIUM TRANSITIONS",
  221. "3dcurtain-horizontal"=>"3D Curtain Horizontal",
  222. "3dcurtain-vertical"=>"3D Curtain Vertical",
  223. "cube"=>"Cube Vertical",
  224. "cube-horizontal"=>"Cube Horizontal",
  225. "incube"=>"In Cube Vertical",
  226. "incube-horizontal"=>"In Cube Horizontal",
  227. "turnoff"=>"TurnOff Horizontal",
  228. "turnoff-vertical"=>"TurnOff Vertical",
  229. "papercut"=>"Paper Cut",
  230. "flyin"=>"Fly In",
  231. "notselectable1a"=>"RANDOM",
  232. "random-selected"=>"Random of Selected",
  233. "random-static"=>"Random Flat",
  234. "random-premium"=>"Random Premium",
  235. "random"=>"Random Flat and Premium"
  236. );
  237. return($arrTransition);
  238. }
  239. /**
  240. * get animations array
  241. */
  242. public static function getArrAnimations($all = true){
  243. $arrAnimations = array(
  244. );
  245. $arrAnimations['custom'] = array('handle' => __('## Custom Animation ##', 'revslider'));
  246. $arrAnimations['vSFXs'] = array('handle' => '-----------------------------------');
  247. $arrAnimations['vSFX'] = array('handle' => __('- SPECIAL EFFECTS -', 'revslider'));
  248. $arrAnimations['vSFXe'] = array('handle' => '-----------------------------------');
  249. $arrAnimations['blockfromleft'] = array('handle' => 'Block-From-Left','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  250. $arrAnimations['blockfromright'] = array('handle' => 'Block-From-Right','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  251. $arrAnimations['blockfromtop'] = array('handle' => 'Block-From-Top','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  252. $arrAnimations['blockfrombottom'] = array('handle' => 'Block-From-Bottom','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  253. $arrAnimations['v5s'] = array('handle' => '-----------------------------------');
  254. $arrAnimations['v5'] = array('handle' => __('- VERSION 5.0 ANIMATIONS -', 'revslider'));
  255. $arrAnimations['v5e'] = array('handle' => '-----------------------------------');
  256. $arrAnimations['LettersFlyInFromBottom'] = array('handle' => 'LettersFlyInFromBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"-35deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"5"}', 'settings' => array('version' => '5.0'));
  257. $arrAnimations['LettersFlyInFromLeft'] = array('handle' => 'LettersFlyInFromLeft','params' => '{"movex":"[-105%]","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0deg","rotationz":"-90deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  258. $arrAnimations['LettersFlyInFromRight'] = array('handle' => 'LettersFlyInFromRight','params' => '{"movex":"[105%]","movey":"inherit","movez":"0","rotationx":"45deg","rotationy":"0deg","rotationz":"90deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"5"}', 'settings' => array('version' => '5.0'));
  259. $arrAnimations['LettersFlyInFromTop'] = array('handle' => 'LettersFlyInFromTop','params' => '{"movex":"inherit","movey":"[-100%]","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"35deg","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"chars","splitdelay":"5"}', 'settings' => array('version' => '5.0'));
  260. $arrAnimations['MaskedZoomOut'] = array('handle' => 'MaskedZoomOut','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"2","scaley":"2","skewx":"0","skewy":"0","captionopacity":"0","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power2.easeOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  261. $arrAnimations['PopUpSmooth'] = array('handle' => 'PopUpSmooth','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"0.9","scaley":"0.9","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"top","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  262. $arrAnimations['RotateInFromBottom'] = array('handle' => 'RotateInFromBottom','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"90deg","scalex":"2","scaley":"2","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  263. $arrAnimations['RotateInFormZero'] = array('handle' => 'RotateInFormZero','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"-20deg","rotationy":"-20deg","rotationz":"0deg","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","easing":"Power3.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  264. $arrAnimations['SlideMaskFromBottom'] = array('handle' => 'SlideMaskFromBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"0","mask":"true","mask_x":"0px","mask_y":"[100%]","easing":"Power2.easeInOut","speed":"2000","split":"none","splitdelay":"5"}', 'settings' => array('version' => '5.0'));
  265. $arrAnimations['SlideMaskFromLeft'] = array('handle' => 'SlideMaskFromLeft','params' => '{"movex":"[-100%]","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  266. $arrAnimations['SlideMaskFromRight'] = array('handle' => 'SlideMaskFromRight','params' => '{"movex":"[100%]","movey":"inherit","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  267. $arrAnimations['SlideMaskFromTop'] = array('handle' => 'SlideMaskFromTop','params' => '{"movex":"inherit","movey":"[-100%]","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"inherit","mask":"true","mask_x":"0px","mask_y":"0px","easing":"Power3.easeInOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  268. $arrAnimations['SmoothPopUp_One'] = array('handle' => 'SmoothPopUp_One','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"0.8","scaley":"0.8","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"top","easing":"Power4.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  269. $arrAnimations['SmoothPopUp_Two'] = array('handle' => 'SmoothPopUp_Two','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"0.9","scaley":"0.9","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"top","easing":"Power2.easeOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  270. $arrAnimations['SmoothMaskFromRight'] = array('handle' => 'SmoothMaskFromRight','params' => '{"movex":"[-175%]","movey":"0px","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"1","mask":"true","mask_x":"[100%]","mask_y":"0","easing":"Power3.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  271. $arrAnimations['SmoothMaskFromLeft'] = array('handle' => 'SmoothMaskFromLeft','params' => '{"movex":"[175%]","movey":"0px","movez":"0","rotationx":"0","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"1","mask":"true","mask_x":"[-100%]","mask_y":"0","easing":"Power3.easeOut","speed":"1500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  272. $arrAnimations['SmoothSlideFromBottom'] = array('handle' => 'SmoothSlideFromBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"0","rotationx":"0deg","rotationy":"0","rotationz":"0","scalex":"1","scaley":"1","skewx":"0","skewy":"0","captionopacity":"0","mask":"false","mask_x":"0px","mask_y":"[100%]","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"5"}', 'settings' => array('version' => '5.0'));
  273. $arrAnimations['v4s'] = array('handle' => '-----------------------------------');
  274. $arrAnimations['v4'] = array('handle' => __('- VERSION 4.0 ANIMATIONS -', 'revslider'));
  275. $arrAnimations['v4e'] = array('handle' => '-----------------------------------');
  276. $arrAnimations['noanim'] = array('handle' => 'No-Animation','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  277. $arrAnimations['tp-fade'] = array('handle' => 'Fade-In','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"0"}', 'settings' => array('version' => '5.0'));
  278. $arrAnimations['sft'] = array('handle' => 'Short-from-Top','params' => '{"movex":"inherit","movey":"-50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  279. $arrAnimations['sfb'] = array('handle' => 'Short-from-Bottom','params' => '{"movex":"inherit","movey":"50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  280. $arrAnimations['sfl'] = array('handle' => 'Short-From-Left','params' => '{"movex":"-50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  281. $arrAnimations['sfr'] = array('handle' => 'Short-From-Right','params' => '{"movex":"50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  282. $arrAnimations['lfr'] = array('handle' => 'Long-From-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  283. $arrAnimations['lfl'] = array('handle' => 'Long-From-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  284. $arrAnimations['lft'] = array('handle' => 'Long-From-Top','params' => '{"movex":"inherit","movey":"top","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  285. $arrAnimations['lfb'] = array('handle' => 'Long-From-Bottom','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  286. $arrAnimations['skewfromleft'] = array('handle' => 'Skew-From-Long-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"45px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  287. $arrAnimations['skewfromright'] = array('handle' => 'Skew-From-Long-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  288. $arrAnimations['skewfromleftshort'] = array('handle' => 'Skew-From-Short-Left','params' => '{"movex":"-200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  289. $arrAnimations['skewfromrightshort'] = array('handle' => 'Skew-From-Short-Right','params' => '{"movex":"200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  290. $arrAnimations['randomrotate'] = array('handle' => 'Random-Rotate-and-Scale','params' => '{"movex":"{-250,250}","movey":"{-150,150}","movez":"inherit","rotationx":"{-90,90}","rotationy":"{-90,90}","rotationz":"{-360,360}","scalex":"{0,1}","scaley":"{0,1}","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  291. if($all){
  292. $arrAnimations['vss'] = array('handle' => '--------------------------------------');
  293. $arrAnimations['vs'] = array('handle' => __('- SAVED CUSTOM ANIMATIONS -', 'revslider'));
  294. $arrAnimations['vse'] = array('handle' => '--------------------------------------');
  295. //$custom = RevSliderOperations::getCustomAnimations('customin');
  296. $custom = RevSliderOperations::getCustomAnimationsFullPre('customin');
  297. $arrAnimations = array_merge($arrAnimations, $custom);
  298. }
  299. foreach($arrAnimations as $key => $value){
  300. if(!isset($value['params'])) continue;
  301. $t = json_decode(str_replace("'", '"', $value['params']), true);
  302. if(!empty($t))
  303. $arrAnimations[$key]['params'] = $t;
  304. }
  305. return($arrAnimations);
  306. }
  307. /**
  308. * get "end" animations array
  309. */
  310. public static function getArrEndAnimations($all = true){
  311. $arrAnimations = array();
  312. $arrAnimations['custom'] = array('handle' => __('## Custom Animation ##', 'revslider'));
  313. $arrAnimations['auto'] = array('handle' => __('Automatic Reverse', 'revslider'));
  314. $arrAnimations['vSFXs'] = array('handle' => '-----------------------------------');
  315. $arrAnimations['vSFX'] = array('handle' => __('- SPECIAL EFFECTS -', 'revslider'));
  316. $arrAnimations['vSFXe'] = array('handle' => '-----------------------------------');
  317. $arrAnimations['blocktoleft'] = array('handle' => 'Block-To-Left','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  318. $arrAnimations['blocktoright'] = array('handle' => 'Block-To-Right','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  319. $arrAnimations['blocktotop'] = array('handle' => 'Block-To-Top','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  320. $arrAnimations['blocktobottom'] = array('handle' => 'Block-To-Bottom','params' => '{"movex":"inherit","movey":"inherit","movez":"0","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0px","mask_y":"0px","easing":"Power4.easeInOut","speed":"2000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.3'));
  321. $arrAnimations['v5s'] = array('handle' => '-----------------------------------');
  322. $arrAnimations['v5'] = array('handle' => __('- VERSION 5.0 ANIMATIONS -', 'revslider'));
  323. $arrAnimations['v5e'] = array('handle' => '-----------------------------------');
  324. $arrAnimations['BounceOut'] = array('handle' => 'BounceOut','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"0deg","scalex":"0.7","scaley":"0.7","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"true","mask_x":"0","mask_y":"0","easing":"Back.easeIn","speed":"500","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  325. $arrAnimations['Fade-Out-Long'] = array('handle' => 'Fade-Out-Long','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","easing":"Power2.easeIn","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  326. $arrAnimations['SlideMaskToBottom'] = array('handle' => 'SlideMaskToBottom','params' => '{"movex":"inherit","movey":"[100%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"nothing","speed":"300","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  327. $arrAnimations['SlideMaskToLeft'] = array('handle' => 'SlideMaskToLeft','params' => '{"movex":"[-100%]","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"Power3.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  328. $arrAnimations['SlideMaskToRight'] = array('handle' => 'SlideMaskToRight','params' => '{"movex":"[100%]","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"Power3.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  329. $arrAnimations['SlideMaskToTop'] = array('handle' => 'SlideMaskToTop','params' => '{"movex":"inherit","movey":"[-100%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"nothing","speed":"300","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  330. $arrAnimations['SlurpOut'] = array('handle' => 'SlurpOut','params' => '{"movex":"inherit","movey":"[100%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"0deg","scalex":"0.7","scaley":"0.7","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"0","mask_y":"0","easing":"Power3.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  331. $arrAnimations['SmoothCropToBottom'] = array('handle' => 'SmoothCropToBottom','params' => '{"movex":"inherit","movey":"[175%]","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"true","mask_x":"inherit","mask_y":"inherit","easing":"Power2.easeInOut","speed":"1000","split":"none","splitdelay":"10"}', 'settings' => array('version' => '5.0'));
  332. $arrAnimations['v4s'] = array('handle' => '-----------------------------------');
  333. $arrAnimations['v4'] = array('handle' => __('- VERSION 4.0 ANIMATIONS -', 'revslider'));
  334. $arrAnimations['v4e'] = array('handle' => '-----------------------------------');
  335. $arrAnimations['noanimout'] = array('handle' => 'No-Out-Animation','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  336. $arrAnimations['fadeout'] = array('handle' => 'Fade-Out','params' => '{"movex":"inherit","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"0"}', 'settings' => array('version' => '5.0'));
  337. $arrAnimations['stt'] = array('handle' => 'Short-To-Top','params' => '{"movex":"inherit","movey":"-50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  338. $arrAnimations['stb'] = array('handle' => 'Short-To-Bottom','params' => '{"movex":"inherit","movey":"50px","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  339. $arrAnimations['stl'] = array('handle' => 'Short-To-Left','params' => '{"movex":"-50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  340. $arrAnimations['str'] = array('handle' => 'Short-To-Right','params' => '{"movex":"50px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  341. $arrAnimations['ltr'] = array('handle' => 'Long-To-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  342. $arrAnimations['ltl'] = array('handle' => 'Long-To-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  343. $arrAnimations['ltt'] = array('handle' => 'Long-To-Top','params' => '{"movex":"inherit","movey":"top","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  344. $arrAnimations['ltb'] = array('handle' => 'Long-To-Bottom','params' => '{"movex":"inherit","movey":"bottom","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"inherit","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  345. $arrAnimations['skewtoleft'] = array('handle' => 'Skew-To-Long-Left','params' => '{"movex":"left","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"45px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  346. $arrAnimations['skewtoright'] = array('handle' => 'Skew-To-Long-Right','params' => '{"movex":"right","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"inherit","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  347. $arrAnimations['skewtorightshort'] = array('handle' => 'Skew-To-Short-Right','params' => '{"movex":"200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"-85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  348. $arrAnimations['skewtoleftshort'] = array('handle' => 'Skew-To-Short-Left','params' => '{"movex":"-200px","movey":"inherit","movez":"inherit","rotationx":"inherit","rotationy":"inherit","rotationz":"inherit","scalex":"inherit","scaley":"inherit","skewx":"85px","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  349. $arrAnimations['randomrotateout'] = array('handle' => 'Random-Rotate-Out','params' => '{"movex":"{-250,250}","movey":"{-150,150}","movez":"inherit","rotationx":"{-90,90}","rotationy":"{-90,90}","rotationz":"{-360,360}","scalex":"{0,1}","scaley":"{0,1}","skewx":"inherit","skewy":"inherit","captionopacity":"0","mask":"false","mask_x":"0","mask_y":"0","mask_speed":"500"}', 'settings' => array('version' => '5.0'));
  350. if($all){
  351. $arrAnimations['vss'] = array('handle' => '--------------------------------------');
  352. $arrAnimations['vs'] = array('handle' => __('- SAVED CUSTOM ANIMATIONS -', 'revslider'));
  353. $arrAnimations['vse'] = array('handle' => '--------------------------------------');
  354. //$custom = RevSliderOperations::getCustomAnimations('customout');
  355. $custom = RevSliderOperations::getCustomAnimationsFullPre('customout');
  356. $arrAnimations = array_merge($arrAnimations, $custom);
  357. }
  358. foreach($arrAnimations as $key => $value){
  359. if(!isset($value['params'])) continue;
  360. $t = json_decode(str_replace("'", '"', $value['params']), true);
  361. if(!empty($t))
  362. $arrAnimations[$key]['params'] = $t;
  363. }
  364. return($arrAnimations);
  365. }
  366. /**
  367. * insert custom animations
  368. */
  369. public static function insertCustomAnim($anim){
  370. if(isset($anim['handle'])) {
  371. $db = new RevSliderDB();
  372. $arrInsert = array();
  373. $arrInsert["handle"] = $anim['handle'];
  374. unset($anim['handle']);
  375. $arrInsert["params"] = stripslashes(json_encode(str_replace("'", '"', $anim['params'])));
  376. $arrInsert["settings"] = json_encode(array('version' => 'custom'));
  377. $result = $db->insert(RevSliderGlobals::$table_layer_anims, $arrInsert);
  378. }
  379. $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
  380. $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
  381. $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
  382. return $arrAnims;
  383. }
  384. /**
  385. * insert custom animations
  386. */
  387. public static function updateCustomAnim($anim){
  388. if(isset($anim['handle'])) {
  389. $db = new RevSliderDB();
  390. $handle = $anim['handle'];
  391. unset($anim['handle']);
  392. $id = str_replace(array('customin-', 'customout-'), array('', ''), $handle);
  393. $arrUpdate = array();
  394. $arrUpdate['params'] = stripslashes(json_encode(str_replace("'", '"', $anim['params'])));
  395. //$arrUpdate["settings"] = json_encode(array('version' => 'custom'));
  396. $result = $db->update(RevSliderGlobals::$table_layer_anims, $arrUpdate, array('id' => $id));
  397. }
  398. $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
  399. $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
  400. $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
  401. return $arrAnims;
  402. }
  403. /**
  404. * update custom animations name
  405. * @since: 5.0
  406. */
  407. public static function updateCustomAnimName($anim){
  408. if(isset($anim['handle'])) {
  409. $db = new RevSliderDB();
  410. $id = $anim['id'];
  411. unset($anim['id']);
  412. $result = $db->update(RevSliderGlobals::$table_layer_anims, $anim, array('id' => $id));
  413. }
  414. $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
  415. $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
  416. $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
  417. return $arrAnims;
  418. }
  419. /**
  420. *
  421. * delete custom animations
  422. */
  423. public static function deleteCustomAnim($rawID){
  424. if(trim($rawID) != '') {
  425. $db = new RevSliderDB();
  426. $id = str_replace(array('customin-', 'customout-'), array('', ''), $rawID);
  427. $db->delete(RevSliderGlobals::$table_layer_anims, $db->prepare("id = %s", array(intval($id))));
  428. }
  429. $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
  430. $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
  431. $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
  432. return $arrAnims;
  433. }
  434. /**
  435. * Fetch all Custom Animations only one time
  436. * @since: 5.2.4
  437. **/
  438. public static function fillAnimations(){
  439. if(empty(self::$animations)){
  440. $db = new RevSliderDB();
  441. $customAnimations = array();
  442. $result = $db->fetch(RevSliderGlobals::$table_layer_anims);
  443. if(!empty($result)){
  444. $customAnimations = $result;
  445. }
  446. self::$animations = $customAnimations;
  447. }
  448. }
  449. /**
  450. *
  451. * get custom animations
  452. */
  453. public static function getCustomAnimations($pre = 'customin'){
  454. if(empty(self::$animations)){
  455. self::fillAnimations();
  456. }
  457. $customAnimations = self::$animations;
  458. $ret_array = array();
  459. foreach($customAnimations as $key => $value){
  460. $params = json_decode($value['params'], true);
  461. if(!isset($params['type']) || $params['type'] == $pre){
  462. $ret_array[$pre.'-'.$value['id']] = $value['handle'];
  463. }
  464. }
  465. asort($ret_array);
  466. return $ret_array;
  467. }
  468. /**
  469. *
  470. * get custom animations
  471. */
  472. public static function getCustomAnimationsFullPre($pre = 'customin'){
  473. if(empty(self::$animations)){
  474. self::fillAnimations();
  475. }
  476. $customAnimations = array();
  477. $customTemp = array();
  478. $sort = array();
  479. foreach(self::$animations as $key => $value){
  480. $params = json_decode($value['params'], true);
  481. if(!isset($params['type']) || $params['type'] == $pre){
  482. $customTemp[$pre.'-'.$value['id']] = $value;
  483. $sort[$pre.'-'.$value['id']] = $value['handle'];
  484. }
  485. }
  486. if(!empty($sort)){
  487. asort($sort);
  488. foreach($sort as $k => $v){
  489. $customAnimations[$k] = $customTemp[$k];
  490. }
  491. }
  492. return $customAnimations;
  493. }
  494. /**
  495. *
  496. * get full custom animations
  497. */
  498. public static function getFullCustomAnimations(){
  499. if(empty(self::$animations)){
  500. self::fillAnimations();
  501. }
  502. $customAnimations = self::$animations;
  503. $ret_anims = array();
  504. foreach($customAnimations as $key => $value){
  505. $ret_anims[$key]['id'] = $value['id'];
  506. $ret_anims[$key]['handle'] = $value['handle'];
  507. $ret_anims[$key]['params'] = json_decode(str_replace("'", '"', $value['params']), true);
  508. }
  509. return $ret_anims;
  510. }
  511. /**
  512. *
  513. * get animation params by handle
  514. */
  515. public static function getCustomAnimationByHandle($handle){
  516. if(empty(self::$animations)){
  517. self::fillAnimations();
  518. }
  519. foreach(self::$animations as $key => $value){
  520. if($value['handle'] == $handle){
  521. return json_decode(str_replace("'", '"', $value['params']), true);
  522. }
  523. }
  524. return false;
  525. }
  526. /**
  527. *
  528. * get animation params by id
  529. */
  530. public static function getFullCustomAnimationByID($id){
  531. if(empty(self::$animations)){
  532. self::fillAnimations();
  533. }
  534. foreach(self::$animations as $key => $value){
  535. if($value['id'] == $id){
  536. $customAnimations = array();
  537. $customAnimations['id'] = $value['id'];
  538. $customAnimations['handle'] = $value['handle'];
  539. $customAnimations['params'] = json_decode(str_replace("'", '"', $value['params']), true);
  540. return $customAnimations;
  541. }
  542. }
  543. return false;
  544. }
  545. /**
  546. * parse animation params
  547. * 5.0.5: added (R) for reverse
  548. */
  549. public static function parseCustomAnimationByArray($animArray, $is = 'start', $frame_val){
  550. $retString = '';
  551. $reverse = (isset($animArray['x_'.$is.'_reverse']) && $animArray['x_'.$is.'_reverse'] == true) ? '(R)' : ''; //movex reverse
  552. if(isset($animArray['x_'.$is]) && $animArray['x_'.$is] !== '' && $animArray['x_'.$is] !== 'inherit') $retString.= 'x:'.$animArray['x_'.$is].$reverse.';'; //movex
  553. $reverse = (isset($animArray['y_'.$is.'_reverse']) && $animArray['y_'.$is.'_reverse'] == true) ? '(R)' : ''; //movey reverse
  554. if(isset($animArray['y_'.$is]) && $animArray['y_'.$is] !== '' && $animArray['y_'.$is] !== 'inherit') $retString.= 'y:'.$animArray['y_'.$is].$reverse.';'; //movey
  555. if(isset($animArray['z_'.$is]) && $animArray['z_'.$is] !== '' && $animArray['z_'.$is] !== 'inherit') $retString.= 'z:'.$animArray['z_'.$is].';'; //movez
  556. $reverse = (isset($animArray['x_rotate_'.$is.'_reverse']) && $animArray['x_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationx reverse
  557. if(isset($animArray['x_rotate_'.$is]) && $animArray['x_rotate_'.$is] !== '' && $animArray['x_rotate_'.$is] !== 'inherit') $retString.= 'rX:'.$animArray['x_rotate_'.$is].$reverse.';'; //rotationx
  558. $reverse = (isset($animArray['y_rotate_'.$is.'_reverse']) && $animArray['y_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationy reverse
  559. if(isset($animArray['y_rotate_'.$is]) && $animArray['y_rotate_'.$is] !== '' && $animArray['y_rotate_'.$is] !== 'inherit') $retString.= 'rY:'.$animArray['y_rotate_'.$is].$reverse.';'; //rotationy
  560. $reverse = (isset($animArray['z_rotate_'.$is.'_reverse']) && $animArray['z_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationz reverse
  561. if(isset($animArray['z_rotate_'.$is]) && $animArray['z_rotate_'.$is] !== '' && $animArray['z_rotate_'.$is] !== 'inherit') $retString.= 'rZ:'.$animArray['z_rotate_'.$is].$reverse.';'; //rotationz
  562. if(isset($animArray['scale_x_'.$is]) && $animArray['scale_x_'.$is] !== '' && $animArray['scale_x_'.$is] !== 'inherit'){ //scalex
  563. $reverse = (isset($animArray['scale_x_'.$is.'_reverse']) && $animArray['scale_x_'.$is.'_reverse'] == true) ? '(R)' : ''; //scalex reverse
  564. $retString.= 'sX:';
  565. $retString.= ($animArray['scale_x_'.$is] == 0) ? 0 : $animArray['scale_x_'.$is];
  566. $retString.= $reverse;
  567. $retString.= ';';
  568. }
  569. if(isset($animArray['scale_y_'.$is]) && $animArray['scale_y_'.$is] !== '' && $animArray['scale_y_'.$is] !== 'inherit'){ //scaley
  570. $reverse = (isset($animArray['scale_y_'.$is.'_reverse']) && $animArray['scale_y_'.$is.'_reverse'] == true) ? '(R)' : ''; //scaley reverse
  571. $retString.= 'sY:';
  572. $retString.= ($animArray['scale_y_'.$is] == 0) ? 0 : $animArray['scale_y_'.$is];
  573. $retString.= $reverse;
  574. $retString.= ';';
  575. }
  576. $reverse = (isset($animArray['skew_x_'.$is.'_reverse']) && $animArray['skew_x_'.$is.'_reverse'] == true) ? '(R)' : ''; //skewx reverse
  577. if(isset($animArray['skew_x_'.$is]) && $animArray['skew_x_'.$is] !== '' && $animArray['skew_x_'.$is] !== 'inherit') $retString.= 'skX:'.$animArray['skew_x_'.$is].$reverse.';'; //skewx
  578. $reverse = (isset($animArray['skew_y_'.$is.'_reverse']) && $animArray['skew_y_'.$is.'_reverse'] == true) ? '(R)' : ''; //skewy reverse
  579. if(isset($animArray['skew_y_'.$is]) && $animArray['skew_y_'.$is] !== '' && $animArray['skew_y_'.$is] !== 'inherit') $retString.= 'skY:'.$animArray['skew_y_'.$is].$reverse.';'; //skewy
  580. if(isset($animArray['opacity_'.$is]) && $animArray['opacity_'.$is] !== '' && $animArray['opacity_'.$is] !== 'inherit'){ //captionopacity
  581. $retString.= 'opacity:';
  582. $opa = (intval($animArray['opacity_'.$is]) > 1) ? $animArray['opacity_'.$is] / 100 : $animArray['opacity_'.$is];
  583. $retString.= $opa;
  584. //$retString.= ($is == 'start' && ($opa == '0' || $opa == 0)) ? '0.0001' : $opa;
  585. $retString.= ';';
  586. }
  587. if($retString == ''){ //we do not have animations set, so set them here
  588. }
  589. return $retString;
  590. }
  591. /**
  592. * parse mask params
  593. * @since: 5.0
  594. */
  595. public static function parseCustomMaskByArray($animArray, $is = 'start'){
  596. $retString = '';
  597. $reverse = (isset($animArray['mask_x_'.$is.'_reverse']) && $animArray['mask_x_'.$is.'_reverse'] == true) ? '(R)' : '';
  598. if(isset($animArray['mask_x_'.$is]) && $animArray['mask_x_'.$is] !== '') $retString.= 'x:'.$animArray['mask_x_'.$is].$reverse.';';
  599. $reverse = (isset($animArray['mask_y_'.$is.'_reverse']) && $animArray['mask_y_'.$is.'_reverse'] == true) ? '(R)' : '';
  600. if(isset($animArray['mask_y_'.$is]) && $animArray['mask_y_'.$is] !== '') $retString.= 'y:'.$animArray['mask_y_'.$is].$reverse.';';
  601. if(isset($animArray['mask_speed_'.$is]) && $animArray['mask_speed_'.$is] !== '') $retString.= 's:'.$animArray['mask_speed_'.$is].';';
  602. if(isset($animArray['mask_ease_'.$is]) && $animArray['mask_ease_'.$is] !== '') $retString.= 'e:'.$animArray['mask_ease_'.$is].';';
  603. return $retString;
  604. }
  605. /**
  606. *
  607. * parse css file and get the classes from there.
  608. */
  609. public function getArrCaptionClasses($contentCSS){
  610. //parse css captions file
  611. $parser = new RevSliderCssParser();
  612. $parser->initContent($contentCSS);
  613. $arrCaptionClasses = $parser->getArrClasses('','',true);
  614. return($arrCaptionClasses);
  615. }
  616. /**
  617. *
  618. * get all CSS classes from database with version numbers
  619. */
  620. public function getArrCaptionSorted($contentCSS){ //get all from the database
  621. //parse css captions file
  622. $parser = new RevSliderCssParser();
  623. $parser->initContent($contentCSS);
  624. $arrCaptionClasses = $parser->getArrClasses('','',true);
  625. return($arrCaptionClasses);
  626. }
  627. /**
  628. *
  629. * get all font family types
  630. */
  631. public function getArrFontFamilys($slider = false){
  632. //Web Safe Fonts
  633. $fonts = array(
  634. // GOOGLE Loaded Fonts
  635. array('type' => 'websafe', 'version' => __('Loaded Google Fonts', 'revslider'), 'label' => 'Dont Show Me'),
  636. //Serif Fonts
  637. array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => 'Georgia, serif'),
  638. array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => '"Palatino Linotype", "Book Antiqua", Palatino, serif'),
  639. array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => '"Times New Roman", Times, serif'),
  640. //Sans-Serif Fonts
  641. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Arial, Helvetica, sans-serif'),
  642. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Arial Black", Gadget, sans-serif'),
  643. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Comic Sans MS", cursive, sans-serif'),
  644. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Impact, Charcoal, sans-serif'),
  645. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif'),
  646. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Tahoma, Geneva, sans-serif'),
  647. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Trebuchet MS", Helvetica, sans-serif'),
  648. array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Verdana, Geneva, sans-serif'),
  649. //Monospace Fonts
  650. array('type' => 'websafe', 'version' => __('Monospace Fonts', 'revslider'), 'label' => '"Courier New", Courier, monospace'),
  651. array('type' => 'websafe', 'version' => __('Monospace Fonts', 'revslider'), 'label' => '"Lucida Console", Monaco, monospace')
  652. );
  653. /*if($slider !== false){
  654. $font_custom = $slider->getParam("google_font","");
  655. if(!is_array($font_custom)) $font_custom = array($font_custom); //backwards compability
  656. if(is_array($font_custom)){
  657. foreach($font_custom as $key => $curFont){
  658. $font = $this->cleanFontStyle(stripslashes($curFont));
  659. if($font != false)
  660. $font_custom[$key] = array('version' => __('Depricated Google Fonts', 'revslider'), 'label' => $font);
  661. else
  662. unset($font_custom[$key]);
  663. }
  664. $fonts = array_merge($font_custom, $fonts);
  665. }
  666. }*/
  667. include(RS_PLUGIN_PATH.'includes/googlefonts.php');
  668. foreach($googlefonts as $f => $val){
  669. $fonts[] = array('type' => 'googlefont', 'version' => __('Google Fonts', 'revslider'), 'label' => $f, 'variants' => $val['variants'], 'subsets' => $val['subsets']);
  670. }
  671. return apply_filters('revslider_operations_getArrFontFamilys', $fonts);
  672. }
  673. /**
  674. * get font name in clean
  675. * @changed in 5.1.0
  676. */
  677. public function cleanFontStyle($font){
  678. $font = str_replace(array('family=', '+'), array('', ' '), $font);
  679. $font = explode(':', $font);
  680. return (strpos($font['0'], ' ') !== false) ? '"'.$font['0'].'"' : $font['0'];
  681. }
  682. /**
  683. *
  684. * get the select classes html for putting in the html by ajax
  685. */
  686. private function getHtmlSelectCaptionClasses($contentCSS){
  687. $arrCaptions = $this->getArrCaptionClasses($contentCSS);
  688. $htmlSelect = RevSliderFunctions::getHTMLSelect($arrCaptions,"","id='layer_caption' name='layer_caption'",true);
  689. return($htmlSelect);
  690. }
  691. /**
  692. * Fetch all Custom CSS only one time
  693. * @since: 5.2.4
  694. **/
  695. public static function fillCSS(){
  696. if(empty(self::$css)){
  697. $db = new RevSliderDB();
  698. $customCss = array();
  699. $result = $db->fetch(RevSliderGlobals::$table_css);
  700. if(!empty($result)){
  701. $customCss = $result;
  702. }
  703. self::$css = $customCss;
  704. }
  705. }
  706. /**
  707. *
  708. * get contents of the css table
  709. */
  710. public function getCaptionsContent(){
  711. if(empty(self::$css)){
  712. self::fillCSS();
  713. }
  714. $result = self::$css;
  715. $contentCSS = RevSliderCssParser::parseDbArrayToCss($result);
  716. return($contentCSS);
  717. }
  718. /**
  719. *
  720. * get contents of the css table
  721. */
  722. public static function getCaptionsContentArray($handle = false){
  723. if(empty(self::$css)){
  724. self::fillCSS();
  725. }
  726. $result = self::$css;
  727. $contentCSS = RevSliderCssParser::parseDbArrayToArray($result, $handle);
  728. return($contentCSS);
  729. }
  730. /**
  731. *
  732. * get contents of the static css file
  733. */
  734. public static function getStaticCss(){
  735. /*if ( is_multisite() ){
  736. if(!get_site_option('revslider-static-css')){
  737. if(file_exists(RS_PLUGIN_PATH.'public/assets/css/static-captions.css')){
  738. $contentCSS = @file_get_contents(RS_PLUGIN_PATH.'public/assets/css/static-captions.css');
  739. self::updateStaticCss($contentCSS);
  740. }
  741. }
  742. $contentCSS = get_site_option('revslider-static-css', '');
  743. }else{*/
  744. if(!get_option('revslider-static-css')){
  745. if(file_exists(RS_PLUGIN_PATH.'public/assets/css/static-captions.css')){
  746. $contentCSS = @file_get_contents(RS_PLUGIN_PATH.'public/assets/css/static-captions.css');
  747. self::updateStaticCss($contentCSS);
  748. }
  749. }
  750. $contentCSS = get_option('revslider-static-css', '');
  751. //}
  752. return($contentCSS);
  753. }
  754. /**
  755. *
  756. * get contents of the static css file
  757. */
  758. public static function updateStaticCss($content){
  759. $content = str_replace(array("\'", '\"', '\\\\'),array("'", '"', '\\'), trim($content));
  760. /*if ( is_multisite() ){
  761. $c = get_site_option('revslider-static-css', '');
  762. $c = update_site_option('revslider-static-css', $content);
  763. }else{*/
  764. $c = get_option('revslider-static-css', '');
  765. $c = RevSliderFunctionsWP::update_option('revslider-static-css', $content, 'off');
  766. //}
  767. return $content;
  768. }
  769. /**
  770. *
  771. * get contents of the static css file
  772. */
  773. public function getDynamicCss(){
  774. if(empty(self::$css)){
  775. self::fillCSS();
  776. }
  777. $result = self::$css;
  778. $styles = RevSliderCssParser::parseDbArrayToCss($styles, "\n");
  779. return $styles;
  780. }
  781. /**
  782. *
  783. * insert captions css file content
  784. * @return new captions html select
  785. */
  786. public function insertCaptionsContentData($content){
  787. global $revSliderVersion;
  788. if(!isset($content['handle']) || !isset($content['idle']) || !isset($content['hover'])) return false; // || !isset($content['advanced'])
  789. $db = new RevSliderDB();
  790. $handle = $content['handle'];
  791. if(!isset($content['hover'])) $content['hover'] = '';
  792. if(!isset($content['advanced'])) $content['advanced'] = array();
  793. if(!isset($content['advanced']['idle'])) $content['advanced']['idle'] = array();
  794. if(!isset($content['advanced']['hover'])) $content['advanced']['hover'] = array();
  795. $arrInsert = array();
  796. $arrInsert["handle"] = '.tp-caption.'.$handle;
  797. $arrInsert["params"] = stripslashes(json_encode(str_replace("'", '"', $content['idle'])));
  798. $arrInsert["hover"] = stripslashes(json_encode(str_replace("'", '"', $content['hover'])));
  799. if(!isset($content['settings'])) $content['settings'] = array();
  800. $content['settings']['version'] = 'custom';
  801. $content['settings']['translated'] = '5'; // translated to version 5 currently
  802. $arrInsert["settings"] = stripslashes(json_encode(str_replace("'", '"', $content['settings'])));
  803. $arrInsert["advanced"] = array();
  804. $arrInsert["advanced"]['idle'] = $content['advanced']['idle'];
  805. $arrInsert["advanced"]['hover'] = $content['advanced']['hover'];
  806. $arrInsert["advanced"] = stripslashes(json_encode(str_replace("'", '"', $arrInsert["advanced"])));
  807. $result = $db->insert(RevSliderGlobals::$table_css, $arrInsert);
  808. //output captions array
  809. $arrCaptions = RevSliderCssParser::get_captions_sorted();
  810. return($arrCaptions);
  811. }
  812. /**
  813. * update captions css file content
  814. * @return new captions html select
  815. */
  816. public function updateCaptionsContentData($content){
  817. global $revSliderVersion;
  818. if(!isset($content['handle']) || !isset($content['idle']) || !isset($content['hover'])) return false; // || !isset($content['advanced'])
  819. $db = new RevSliderDB();
  820. //first get single entry to merge settings
  821. $styles = $db->fetchSingle(RevSliderGlobals::$table_css, $db->prepare('`handle` = %s', array('.tp-caption.'.$content['handle'])));
  822. if(empty($styles)) return false;
  823. $settings = json_decode(str_replace("'", '"', $styles['settings']), true);
  824. if(isset($content['settings']) && !empty($content['settings'])){
  825. foreach($content['settings'] as $key => $value){
  826. $settings[$key] = $value;
  827. }
  828. //$settings = array_merge($content['settings'], $settings);
  829. }
  830. $handle = $content['handle'];
  831. if(!isset($content['idle'])) $content['idle'] = '';
  832. if(!isset($content['hover'])) $content['hover'] = '';
  833. if(!isset($content['advanced'])) $content['advanced'] = array();
  834. if(!isset($content['advanced']['idle'])) $content['advanced']['idle'] = array();
  835. if(!isset($content['advanced']['hover'])) $content['advanced']['hover'] = array();
  836. $arrUpdate = array();
  837. $arrUpdate["params"] = stripslashes(json_encode(str_replace("'", '"', $content['idle'])));
  838. $arrUpdate["hover"] = stripslashes(json_encode(str_replace("'", '"', $content['hover'])));
  839. $arrUpdate["settings"] = stripslashes(json_encode(str_replace("'", '"', $settings)));
  840. $arrUpdate["advanced"] = array();
  841. $arrUpdate["advanced"]['idle'] = $content['advanced']['idle'];
  842. $arrUpdate["advanced"]['hover'] = $content['advanced']['hover'];
  843. $arrUpdate["advanced"] = stripslashes(json_encode(str_replace("'", '"', $arrUpdate["advanced"])));
  844. $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => '.tp-caption.'.$handle));
  845. //output captions array
  846. $arrCaptions = RevSliderCssParser::get_captions_sorted();
  847. return($arrCaptions);
  848. }
  849. /**
  850. * update captions advanced css
  851. * @return: new captions html select
  852. * @since: 5.0
  853. */
  854. public function updateAdvancedCssData($data){
  855. if(!isset($data['handle']) || !isset($data['styles']) || !isset($data['type'])) return false;
  856. if($data['type'] !== 'idle' && $data['type'] !== 'hover') return false;
  857. $db = new RevSliderDB();
  858. //get current styles
  859. $styles = $db->fetchSingle(RevSliderGlobals::$table_css, $db->prepare('`handle` = %s', array($data['handle'])));
  860. if(!empty($styles)){
  861. if(!isset($styles['advanced'])) $styles['advanced'] = '';
  862. $adv = json_decode(str_replace("'", '"', $styles['advanced']), true);
  863. if(!isset($adv['idle'])) $adv['idle'] = array();
  864. if(!isset($adv['hover'])) $adv['hover'] = array();
  865. $adv[$data['type']] = $data['styles'];
  866. $arrUpdate = array();
  867. $arrUpdate['advanced'] = json_encode(str_replace("'", '"', $adv));
  868. $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => $data['handle']));
  869. //output captions array
  870. $arrCaptions = RevSliderCssParser::get_captions_sorted();
  871. return($arrCaptions);
  872. }else{
  873. return false;
  874. }
  875. }
  876. /**
  877. * rename caption
  878. * @since: 5.0
  879. */
  880. public function renameCaption($content){
  881. if(isset($content['old_name']) && isset($content['new_name'])) {
  882. $db = new RevSliderDB();
  883. $handle = $content['old_name'];
  884. $arrUpdate = array();
  885. $arrUpdate["handle"] = '.tp-caption.'.$content['new_name'];
  886. $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => '.tp-caption.'.$handle));
  887. if($result !== false){ //rename all layers in all Sliders that use this old name with the new name
  888. $slider = new RevSlider();
  889. $arrSliders = $slider->getArrSliders();
  890. if(!empty($arrSliders)){
  891. foreach($arrSliders as $slider){
  892. $arrSildes = $slider->getSlides();
  893. foreach($arrSildes as $slide){
  894. $slide->replaceCssClass($content['old_name'], $content['new_name']);
  895. }
  896. }
  897. }
  898. }
  899. }
  900. //output captions array
  901. $arrCaptions = RevSliderCssParser::get_captions_sorted();
  902. return($arrCaptions);
  903. }
  904. /**
  905. *
  906. * delete captions css file content
  907. * @return new captions html select
  908. */
  909. public function deleteCaptionsContentData($handle){
  910. $db = new RevSliderDB();
  911. $db->delete(RevSliderGlobals::$table_css, $db->prepare("handle= %s", array(".tp-caption.".$handle)));
  912. //$this->updateDynamicCaptions();
  913. //output captions array
  914. $arrCaptions = RevSliderCssParser::get_captions_sorted();
  915. return($arrCaptions);
  916. }
  917. /**
  918. *
  919. * update dynamic-captions css file content
  920. */
  921. public static function updateDynamicCaptions($full = false){
  922. if($full){
  923. $captions = array();
  924. $captions = RevSliderOperations::getCaptionsContentArray();
  925. $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
  926. }else{
  927. //go through all sliders and check which classes are used, get all classes from DB and write them into the file
  928. $slider = new RevSlider();
  929. $arrSliders = $slider->getArrSliders();
  930. $classes = array();
  931. //get used classes
  932. if(!empty($arrSliders)){
  933. foreach($arrSliders as $slider){
  934. try{
  935. $slides = $slider->getSlides();
  936. if(!empty($slides)){
  937. foreach($slides as $slide){
  938. $layers = $slide->getLayers();
  939. if(!empty($layers)){
  940. foreach($layers as $layer){
  941. if(isset($layer['style'])){
  942. if(!empty($layer['style'])) $classes[$layer['style']] = true;
  943. }
  944. }
  945. }
  946. }
  947. }
  948. }catch(Exception $e){
  949. $errorMessage = "ERROR: ".$e->getMessage();
  950. }
  951. }
  952. }
  953. if(!empty($classes)){
  954. $captions = array();
  955. foreach($classes as $class => $val){
  956. $captionCheck = RevSliderOperations::getCaptionsContentArray($class);
  957. if(!empty($captionCheck)) $captions[] = $captionCheck;
  958. }
  959. $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
  960. }
  961. }
  962. }
  963. /**
  964. *
  965. * get contents of the css file
  966. */
  967. public static function getCaptionsCssContentArray(){
  968. if(file_exists(RS_PLUGIN_PATH.'public/assets/css/captions.css'))
  969. $contentCSS = file_get_contents(RS_PLUGIN_PATH.'public/assets/css/captions.css');
  970. else if(file_exists(RS_PLUGIN_PATH.'public/assets/css/captions-original.css'))
  971. $contentCSS = file_get_contents(RS_PLUGIN_PATH.'public/assets/css/captions-original.css');
  972. else if(file_exists(RS_PLUGIN_PATH.'backup/'.'captions.css'))
  973. $contentCSS = file_get_contents(RS_PLUGIN_PATH.'backup/'.'captions.css');
  974. else if(file_exists(RS_PLUGIN_PATH.'backup/'.'captions-original.css'))
  975. $contentCSS = file_get_contents(RS_PLUGIN_PATH.'backup/'.'captions-original.css');
  976. else
  977. RevSliderFunctions::throwError("No captions.css found! This installation is incorrect, please make sure to reupload the Slider Revolution plugin and try again!");
  978. $result = RevSliderCssParser::parseCssToArray($contentCSS);
  979. return($result);
  980. }
  981. /**
  982. *
  983. * import contents of the css file
  984. */
  985. public static function importCaptionsCssContentArray(){
  986. $db = new RevSliderDB();
  987. $css = self::getCaptionsCssContentArray();
  988. $static = array();
  989. if(is_array($css) && $css !== false && count($css) > 0){
  990. foreach($css as $class => $styles){
  991. //check if static style or dynamic style
  992. $class = trim($class);
  993. if((strpos($class, ':hover') === false && strpos($class, ':') !== false) || //before, after
  994. strpos($class," ") !== false || // .tp-caption.imageclass img or .tp-caption .imageclass or .tp-caption.imageclass .img
  995. strpos($class,".tp-caption") === false || // everything that is not tp-caption
  996. (strpos($class,".") === false || strpos($class,"#") !== false) || // no class -> #ID or img
  997. strpos($class,">") !== false){ //.tp-caption>.imageclass or .tp-caption.imageclass>img or .tp-caption.imageclass .img
  998. $static[$class] = $styles;
  999. continue;
  1000. }
  1001. //is a dynamic style
  1002. if(strpos($class, ':hover') !== false){
  1003. $class = trim(str_replace(':hover', '', $class));
  1004. $arrInsert = array();
  1005. $arrInsert["hover"] = json_encode($styles);
  1006. $arrInsert["settings"] = json_encode(array('hover' => 'true'));
  1007. }else{
  1008. $arrInsert = array();
  1009. $arrInsert["params"] = json_encode($styles);
  1010. }
  1011. //check if class exists
  1012. $result = $db->fetch(RevSliderGlobals::$table_css, $db->prepare("handle = %s", array($class)));
  1013. if(!empty($result)){ //update
  1014. $db->update(RevSliderGlobals::$table_css, $arrInsert, array('handle' => $class));
  1015. }else{ //insert
  1016. $arrInsert["handle"] = $class;
  1017. $db->insert(RevSliderGlobals::$table_css, $arrInsert);
  1018. }
  1019. }
  1020. }
  1021. if(!empty($static)){ //save static into static-captions.css
  1022. $css = RevSliderCssParser::parseStaticArrayToCss($static);
  1023. $static_cur = RevSliderOperations::getStaticCss(); //get the open sans line!
  1024. $css = $static_cur."\n".$css;
  1025. self::updateStaticCss($css);
  1026. }
  1027. }
  1028. /**
  1029. *
  1030. * move old captions.css and captions-original.css
  1031. */
  1032. public static function moveOldCaptionsCss(){
  1033. if(file_exists(RevSliderGlobals::$filepath_captions_original))
  1034. $success = @rename(RevSliderGlobals::$filepath_captions_original, RevSliderGlobals::$filepath_backup.'/captions-original.css');
  1035. if(file_exists(RevSliderGlobals::$filepath_captions))
  1036. $success = @rename(RevSliderGlobals::$filepath_captions, RevSliderGlobals::$filepath_backup.'/captions.css');
  1037. }
  1038. /**
  1039. *
  1040. * preview slider output
  1041. * if output object is null - create object
  1042. */
  1043. public function previewOutput($sliderID,$output = null){
  1044. if($sliderID == "empty_output"){
  1045. $this->loadingMessageOutput();
  1046. exit();
  1047. }
  1048. if($output == null)
  1049. $output = new RevSliderOutput();
  1050. $slider = new RevSlider();
  1051. $slider->initByID($sliderID);
  1052. $isWpmlExists = RevSliderWpml::isWpmlExists();
  1053. $useWpml = $slider->getParam("use_wpml","off");
  1054. $wpmlActive = false;
  1055. if($isWpmlExists && $useWpml == "on"){
  1056. $wpmlActive = true;
  1057. $arrLanguages = RevSliderWpml::getArrLanguages(false);
  1058. //set current lang to output
  1059. $currentLang = RevSliderFunctions::getPostGetVariable("lang");
  1060. if(empty($currentLang))
  1061. $currentLang = RevSliderWpml::getCurrentLang();
  1062. if(empty($currentLang))
  1063. $currentLang = $arrLanguages[0];
  1064. $output->setLang($currentLang);
  1065. $selectLangChoose = RevSliderFunctions::getHTMLSelect($arrLanguages,$currentLang,"id='select_langs'",true);
  1066. }
  1067. $output->setPreviewMode();
  1068. //put the output html
  1069. $urlPlugin = RS_PLUGIN_URL.'public/assets/';
  1070. $urlPreviewPattern = RevSliderBase::$url_ajax_actions."&client_action=preview_slider&sliderid=".$sliderID."&lang=[lang]&nonce=[nonce]";
  1071. $nonce = wp_create_nonce("revslider_actions");
  1072. $setBase = (is_ssl()) ? "https://" : "http://";
  1073. ?>
  1074. <html>
  1075. <head>
  1076. <link rel='stylesheet' href='<?php echo $urlPlugin; ?>css/settings.css?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>' type='text/css' media='all' />
  1077. <link rel='stylesheet' href='<?php echo $urlPlugin; ?>fonts/font-awesome/css/font-awesome.css?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>' type='text/css' media='all' />
  1078. <link rel='stylesheet' href='<?php echo $urlPlugin; ?>fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>' type='text/css' media='all' />
  1079. <?php
  1080. $db = new RevSliderDB();
  1081. if(empty(self::$css)){
  1082. self::fillCSS();
  1083. }
  1084. $styles = self::$css;
  1085. $styles = RevSliderCssParser::parseDbArrayToCss($styles, "\n");
  1086. $styles = RevSliderCssParser::compress_css($styles);
  1087. echo '<style type="text/css">'.$styles.'</style>'; //.$stylesinnerlayers
  1088. $http = (is_ssl()) ? 'https' : 'http';
  1089. $operations = new RevSliderOperations();
  1090. $arrValues = $operations->getGeneralSettingsValues();
  1091. $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
  1092. if($set_diff_font !== ''){
  1093. $font_url = $set_diff_font;
  1094. }else{
  1095. $font_url = $http.'://fonts.googleapis.com/css?family=';
  1096. }
  1097. $custom_css = RevSliderOperations::getStaticCss();
  1098. echo '<style type="text/css">'.RevSliderCssParser::compress_css($custom_css).'</style>';
  1099. $gfonts = '';
  1100. $googleFont = $slider->getParam("google_font");
  1101. if(is_array($googleFont)){
  1102. foreach($googleFont as $key => $font){
  1103. }
  1104. }else{
  1105. RevSliderOperations::setCleanFontImport($googleFont);
  1106. //$gfonts .= RevSliderOperations::getCleanFontImport($googleFont);
  1107. }
  1108. //add all google fonts of layers
  1109. $gfsubsets = $slider->getParam("subsets",array());
  1110. $gf = $slider->getUsedFonts(false);
  1111. foreach($gf as $gfk => $gfv){
  1112. $variants = array();
  1113. if(!empty($gfv['variants'])){
  1114. foreach($gfv['variants'] as $mgvk => $mgvv){
  1115. $variants[] = $mgvk;
  1116. }
  1117. }
  1118. $subsets = array();
  1119. if(!empty($gfv['subsets'])){
  1120. foreach($gfv['subsets'] as $ssk => $ssv){
  1121. if(array_search(esc_attr($gfk.'+'.$ssv), $gfsubsets) !== false){
  1122. $subsets[] = $ssv;
  1123. }
  1124. }
  1125. }
  1126. RevSliderOperations::setCleanFontImport($gfk, '', '', $variants, $subsets);
  1127. //$gfonts .= RevSliderOperations::getCleanFontImport($gfk, '', '', $variants, $subsets);
  1128. }
  1129. echo RevSliderOperations::printCleanFontImport();
  1130. //echo $gfonts;
  1131. ?>
  1132. <script type='text/javascript' src='<?php echo $setBase; ?>code.jquery.com/jquery-latest.min.js'></script>
  1133. <script type='text/javascript' src='<?php echo $urlPlugin; ?>js/jquery.themepunch.tools.min.js?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>'></script>
  1134. <script type='text/javascript' src='<?php echo $urlPlugin; ?>js/jquery.themepunch.revolution.min.js?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>'></script>
  1135. <?php
  1136. $setRevStartSize = RevSliderFront::add_setREVStartSize();
  1137. echo $setRevStartSize;
  1138. ?>
  1139. <?php
  1140. do_action('revslider_preview_slider_head');
  1141. ?>
  1142. </head>
  1143. <body style="padding:0px;margin:0px;width:100%;height:100%;position:relative;">
  1144. <?php
  1145. if($wpmlActive == true){
  1146. ?>
  1147. <div style="margin-bottom:10px;text-align:center;">
  1148. <?php _e("Choose language",'revslider'); ?>: <?php echo $selectLangChoose; ?>
  1149. </div>
  1150. <script type="text/javascript">
  1151. var g_previewPattern = '<?php echo $urlPreviewPattern; ?>';
  1152. jQuery("#select_langs").change(function(){
  1153. var lang = this.value;
  1154. var nonce = "<?php echo $nonce; ?>";
  1155. var pattern = g_previewPattern;
  1156. var urlPreview = pattern.replace("[lang]",lang).replace("[nonce]",nonce);
  1157. location.href = urlPreview;
  1158. });
  1159. </script>
  1160. <?php
  1161. }
  1162. ?>
  1163. <?php
  1164. $output->putSliderBase($sliderID);
  1165. do_action('revslider_preview_slider_footer', $slider, $output);
  1166. ?>
  1167. </body>
  1168. </html>
  1169. <?php
  1170. }
  1171. /*
  1172. * show only the markup for jQuery version of plugin
  1173. */
  1174. public function previewOutputMarkup($sliderID){
  1175. $export_real = true; //if false, then kriki export for JavaScript Standalone version
  1176. if($export_real){ //set all different file path's here
  1177. $path_fonts = 'fonts/';
  1178. $path_css = 'css/';
  1179. $path_js = 'js/';
  1180. $path_assets = 'assets';
  1181. $path_assets_raw = 'assets';
  1182. $path_assets_vid = 'assets';
  1183. $path_assets_raw_vid = 'assets';
  1184. }else{
  1185. $path_fonts = '../../revolution/fonts/';
  1186. $path_css = '../../revolution/css/';
  1187. $path_js = '../../revolution/js/';
  1188. $path_assets = '../../assets/images';
  1189. $path_assets_raw = 'assets/images';
  1190. $path_assets_vid = '../../assets/videos';
  1191. $path_assets_raw_vid = 'assets/videos';
  1192. }
  1193. //check if file exists, and if yes, delete it!
  1194. if(file_exists(RevSliderGlobals::$uploadsUrlExportZip)){
  1195. @unlink(RevSliderGlobals::$uploadsUrlExportZip); //delete file to start with a fresh one
  1196. }
  1197. $usepcl = false;
  1198. if(class_exists('ZipArchive')){
  1199. $zip = new ZipArchive;
  1200. $success = $zip->open(RevSliderGlobals::$uploadsUrlExportZip, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE);
  1201. if($success !== true){
  1202. echo __("No write permissions. Can't create zip file: ", 'revslider').RevSliderGlobals::$uploadsUrlExportZip;
  1203. exit;
  1204. }
  1205. }else{
  1206. //fallback to pclzip
  1207. require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
  1208. $pclzip = new PclZip(RevSliderGlobals::$uploadsUrlExportZip);
  1209. //either the function uses die() or all is cool
  1210. $usepcl = true;
  1211. }
  1212. if($sliderID == "empty_output"){
  1213. echo __("Wrong request!", 'revslider');
  1214. exit;
  1215. }
  1216. $output = new RevSliderOutput();
  1217. $operations = new RevSliderOperations();
  1218. $slider = new RevSlider();
  1219. $slider->initByID($sliderID);
  1220. $output->setPreviewMode();
  1221. $http = (is_ssl()) ? 'https' : 'http';
  1222. $arrValues = $operations->getGeneralSettingsValues();
  1223. $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
  1224. if($set_diff_font !== ''){
  1225. $font_url = $set_diff_font;
  1226. }else{
  1227. $font_url = $http.'://fonts.googleapis.com/css?family=';
  1228. }
  1229. $static_css = RevSliderOperations::getStaticCss();
  1230. ob_start();
  1231. $output->putSliderBase($sliderID, array(), true);
  1232. $content = ob_get_contents();
  1233. ob_clean();
  1234. ob_end_clean();
  1235. $fonts = '';
  1236. while(strpos($content, '<!-- FONT -->') !== false){
  1237. $temp_font = substr($content, strpos($content, '<!-- FONT -->'), strpos($content, '<!-- /FONT -->') + 14 - strpos($content, '<!-- FONT -->'))."\n";
  1238. $fonts .= $temp_font;
  1239. $starthtml = substr($content, 0, strpos($content, '<!-- FONT -->'));
  1240. $endhtml = substr($content, strpos($content, '<!-- /FONT -->')+14);
  1241. $content = $starthtml.$endhtml; //remove from html markup
  1242. }
  1243. $fonts = str_replace(array('<!-- FONT -->', '<!-- /FONT -->'), '', $fonts); //remove the tags
  1244. $fonts = str_replace('/>','/>'."\n",$fonts);
  1245. $scripts = '';
  1246. while(strpos($content, '<!-- SCRIPT -->') !== false){
  1247. $temp_script = substr($content, strpos($content, '<!-- SCRIPT -->'), strpos($content, '<!-- /SCRIPT -->') + 16 - strpos($content, '<!-- SCRIPT -->'))."\n";
  1248. $scripts .= $temp_script;
  1249. $starthtml = substr($content, 0, strpos($content, '<!-- SCRIPT -->'));
  1250. $endhtml = substr($content, strpos($content, '<!-- /SCRIPT -->')+16);
  1251. $content = $starthtml.$endhtml; //remove from html markup
  1252. }
  1253. $scripts = str_replace(array('<!-- SCRIPT -->', '<!-- /SCRIPT -->'), '', $scripts); //remove the tags
  1254. $styles = '';
  1255. while(strpos($content, '<!-- STYLE -->') !== false){
  1256. $temp_style = substr($content, strpos($content, '<!-- STYLE -->'), strpos($content, '<!-- /STYLE -->') + 15 - strpos($content, '<!-- STYLE -->'))."\n";
  1257. $styles .= $temp_style;
  1258. $starthtml = substr($content, 0, strpos($content, '<!-- STYLE -->'));
  1259. $endhtml = substr($content, strpos($content, '<!-- /STYLE -->')+15);
  1260. $content = $starthtml.$endhtml; //remove from html markup
  1261. }
  1262. $styles = str_replace(array('<!-- STYLE -->', '<!-- /STYLE -->'), '', $styles); //remove the tags
  1263. $full_content = '';
  1264. ob_start();
  1265. ?><!DOCTYPE html>
  1266. <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
  1267. <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
  1268. <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
  1269. <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
  1270. <head>
  1271. <meta charset="utf-8">
  1272. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  1273. <title><?php echo $slider->getTitle(); ?> - Slider Revolution</title>
  1274. <meta name="description" content="Slider Revolution Example" />
  1275. <meta name="keywords" content="fullscreen image, grid layout, flexbox grid, transition" />
  1276. <meta name="author" content="ThemePunch" />
  1277. <meta name="viewport" content="width=device-width, initial-scale=1">
  1278. <!-- LOAD JQUERY LIBRARY -->
  1279. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js"></script>
  1280. <!-- LOADING FONTS AND ICONS -->
  1281. <?php echo $fonts; ?>
  1282. <link rel="stylesheet" type="text/css" href="<?php echo $path_fonts; ?>pe-icon-7-stroke/css/pe-icon-7-stroke.css">
  1283. <link rel="stylesheet" type="text/css" href="<?php echo $path_fonts; ?>font-awesome/css/font-awesome.css">
  1284. <!-- REVOLUTION STYLE SHEETS -->
  1285. <link rel="stylesheet" type="text/css" href="<?php echo $path_css; ?>settings.css">
  1286. <!-- REVOLUTION LAYERS STYLES -->
  1287. <?php
  1288. if($export_real){
  1289. echo $styles;
  1290. if($static_css !== ''){
  1291. echo '<style type="text/css">';
  1292. echo RevSliderCssParser::compress_css($static_css);
  1293. echo '</style>'."\n";
  1294. }
  1295. }else{
  1296. ?>
  1297. <link rel="stylesheet" type="text/css" href="<?php echo $path_css; ?>layers.css">
  1298. <!-- REVOLUTION NAVIGATION STYLES -->
  1299. <link rel="stylesheet" type="text/css" href="<?php echo $path_css; ?>navigation.css">
  1300. <!-- FONT AND STYLE FOR BASIC DOCUMENTS, NO NEED FOR FURTHER USAGE IN YOUR PROJECTS-->
  1301. <link href="http://fonts.googleapis.com/css?family=Roboto%3A700%2C300" rel="stylesheet" property="stylesheet" type="text/css" media="all" />
  1302. <link rel="stylesheet" type="text/css" href="../../assets/css/noneed.css">
  1303. <?php
  1304. }
  1305. ?>
  1306. <!-- REVOLUTION JS FILES -->
  1307. <script type="text/javascript" src="<?php echo $path_js; ?>jquery.themepunch.tools.min.js"></script>
  1308. <script type="text/javascript" src="<?php echo $path_js; ?>jquery.themepunch.revolution.min.js"></script>
  1309. <!-- SLIDER REVOLUTION 5.0 EXTENSIONS (Load Extensions only on Local File Systems ! The following part can be removed on Server for On Demand Loading) -->
  1310. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.actions.min.js"></script>
  1311. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.carousel.min.js"></script>
  1312. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.kenburn.min.js"></script>
  1313. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.layeranimation.min.js"></script>
  1314. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.migration.min.js"></script>
  1315. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.navigation.min.js"></script>
  1316. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.parallax.min.js"></script>
  1317. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.slideanims.min.js"></script>
  1318. <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.video.min.js"></script>
  1319. <?php
  1320. $setRevStartSize = RevSliderFront::add_setREVStartSize();
  1321. echo $setRevStartSize;
  1322. ?>
  1323. </head>
  1324. <body>
  1325. <?php if(!$export_real){ ?>
  1326. <!-- HEADER -->
  1327. <article class="content">
  1328. <!-- Add your site or application content here -->
  1329. <section class="header">
  1330. <span class="logo" style="float:left"></span>
  1331. <a class="button" style="float:right" target="_blank" href="http://www.themepunch.com/revsliderjquery-doc/slider-revolution-jquery-5-x-documentation/"><i class="pe-7s-help2"></i>Online Documentation</a>
  1332. <div class="clearfix"></div>
  1333. </section>
  1334. </article>
  1335. <?php
  1336. $slider_type = $slider->getParam('slider_type');
  1337. if($slider_type != 'fullscreen'){
  1338. ?>
  1339. <article class="small-history">
  1340. <h2 class="textaligncenter" style="margin-bottom:25px;">Your Slider Revolution jQuery Plugin</h2>
  1341. <p>Slider Revolution is an innovative, responsive Slider Plugin that displays your content the beautiful way. Whether it's a <strong>Slider, Carousel, Hero Scene</strong> or even a whole <strong>Front Page</strong>.<br>The <a href="https://codecanyon.net/item/slider-revolution-jquery-visual-editor-addon/13934907" target="_blank">visual drag &amp; drop editor</a> will help you to create your Sliders and tell your own stories in no time!</p>
  1342. </article>
  1343. <?php
  1344. }
  1345. ?>
  1346. <!-- SLIDER EXAMPLE -->
  1347. <section class="example">
  1348. <article class="content">
  1349. <?php } ?>
  1350. <?php
  1351. $head = ob_get_contents();
  1352. ob_clean();
  1353. ob_end_clean();
  1354. ob_start();
  1355. ?>
  1356. <?php if(!$export_real){ ?>
  1357. </article>
  1358. </section>
  1359. <div class="bottom-history-wrap" style="margin-top:150px">
  1360. <?php
  1361. if($slider_type == 'fullscreen'){
  1362. ?>
  1363. <article class="small-history bottom-history" style="background:#f5f7f9;">
  1364. <h2 class="textaligncenter" style="margin-bottom:25px;">Your Slider Revolution jQuery Plugin</h2>
  1365. <p>Slider Revolution is an innovative, responsive Slider Plugin that displays your content the beautiful way. Whether it's a <strong>Slider, Carousel, Hero Scene</strong> or even a whole <strong>Front Page</strong>.<br>The <a href="https://codecanyon.net/item/slider-revolution-jquery-visual-editor-addon/13934907" target="_blank">visual drag &amp; drop editor</a> will help you to create your Sliders and tell your own stories in no time!</p>
  1366. </article>
  1367. <?php
  1368. }
  1369. ?>
  1370. <article class="small-history bottom-history">
  1371. <i class="fa-icon-question tp-headicon"></i>
  1372. <h2 class="textaligncenter" style="margin-bottom:25px;">Find the Documentation ?</h2>
  1373. <p>We would always recommend to use our<a target="_blank" href="http://www.themepunch.com/revsliderjquery-doc/slider-revolution-jquery-5-x-documentation/"> online documentation</a> however you can find also our embeded local documentation zipped in the Documentation folder. Online Documentation and FAQ Page is regulary updated. You will find More examples, Visit us also at <a href="http://themepunch.com">http://themepunch.com</a> ! </p>
  1374. <div class="tp-smallinfo">Learn how to build your Slider!</div>
  1375. </article>
  1376. <article class="small-history bottom-history" style="background:#f5f7f9;">
  1377. <i class="fa-icon-arrows tp-headicon"></i>
  1378. <h2 class="textaligncenter" style="margin-bottom:25px;">Navigation Examples !</h2>
  1379. <p>You find many Examples for All Skins and Positions of Navigation examples in the <a target="_blank" href="file:../Navigation">examples/Navigation folder</a>. Based on these prepared examples you can build your own navigation skins. Feel free to copy and paste the markups after your requests in your own documents.</p>
  1380. <div class="tp-smallinfo">Customize the interaction with your visitor!</div>
  1381. </article>
  1382. <article class="small-history bottom-history">
  1383. <i class="fa-icon-cog tp-headicon"></i>
  1384. <h2 class="textaligncenter" style="margin-bottom:25px;">Layer and Slide Transitions</h2>
  1385. <p>We prepared a small List of Transition and a light weight Markup Builder in the <a target="_blank" href="file:../Transitions"> examples/Transitions folder</a>. This will help you to get an overview how the Slider and Layer Transitions works. Copy the Markups of the generated Slide and Layer Animation Examples and paste it into your own Documents.</p>
  1386. <div class="tp-smallinfo">Eye Catching Effects!</div>
  1387. </article>
  1388. </div>
  1389. <div class="clearfix"></div>
  1390. <footer>
  1391. <div class="footer_inner">
  1392. <div class="footerwidget">
  1393. <h3>Slider Revolution</h3>
  1394. <a href="http://revolution.themepunch.com/jquery/#features" target="_self">Features</a>
  1395. <a href="http://revolution.themepunch.com/examples-jquery/" target="_self">Usage Examples</a>
  1396. <a href="http://www.themepunch.com/revsliderjquery-doc/slider-revolution-jquery-5-x-documentation/" target="_blank">Online Documentation</a>
  1397. </div>
  1398. <div class="footerwidget">
  1399. <h3>Resources</h3>
  1400. <a href="http://www.themepunch.com/support-center/" target="_blank">FAQ Database</a>
  1401. <a href="http://themepunch.com" target="_blank">ThemePunch.com</a>
  1402. <a href="http://themepunch.us9.list-manage.com/subscribe?u=a5738148e5ec630766e28de16&amp;id=3e718acc63" target="_blank">Newsletter</a>
  1403. <a href="http://www.themepunch.com/products/" target="_blank">Plugins</a>
  1404. <a href="http://www.themepunch.com/products/" target="_blank">Themes</a>
  1405. </div>
  1406. <div class="footerwidget">
  1407. <h3>More Versions</h3>
  1408. <a href="http://revolution.themepunch.com" target="_blank">WordPress</a>
  1409. <a href="http://codecanyon.net/item/slider-revolution-responsive-prestashop-module/7140939?ref=themepunch" target="_blank">Prestashop</a>
  1410. <a href="http://codecanyon.net/item/slider-revolution-responsive-magento-extension/9332896?ref=themepunch" target="_blank">Magento</a>
  1411. <a href="http://codecanyon.net/item/slider-revolution-responsive-opencart-module/9994648?ref=themepunch" target="_blank">OpenCart</a>
  1412. <a href="http://codecanyon.net/item/slider-revolution-responsive-drupal-module/12041755?ref=themepunch" target="_blank">Drupal</a>
  1413. </div>
  1414. <div class="footerwidget social">
  1415. <h3>Follow Us</h3>
  1416. <ul>
  1417. <li><a href="https://www.facebook.com/themepunchofficial" target="_blank" class="so_facebook" data-rel="tooltip" data-animation="false" data-placement="bottom" data-original-title="Facebook"><i class="s_icon fa-icon-facebook
  1418. "></i></a>
  1419. </li>
  1420. <li><a href="https://twitter.com/themepunch" target="_blank" class="so_twitter" data-rel="tooltip" data-animation="false" data-placement="bottom" data-original-title="Twitter"><i class="s_icon fa-icon-twitter"></i></a>
  1421. </li>
  1422. <li><a href="https://plus.google.com/+ThemePunch/posts" target="_blank" class="so_gplus" data-rel="tooltip" data-animation="false" data-placement="bottom" data-original-title="Google+"><i class="s_icon fa-icon-google-plus"></i></a>
  1423. </li>
  1424. </ul>
  1425. </div>
  1426. <div class="clearfix"></div>
  1427. </div>
  1428. </footer>
  1429. <script type="text/javascript" src="../../assets/warning.js"></script>
  1430. <?php } ?>
  1431. </body>
  1432. </html>
  1433. <?php
  1434. $footer = ob_get_contents();
  1435. ob_clean();
  1436. ob_end_clean();
  1437. $slider_html = $head."\n".$content."\n".$scripts."\n".$footer;
  1438. $upload_dir = RevSliderFunctionsWP::getPathUploads();
  1439. $upload_dir_multisiteless = wp_upload_dir();
  1440. $cont_url = $upload_dir_multisiteless['baseurl'];
  1441. $cont_url_no_www = str_replace('www.', '', $upload_dir_multisiteless['baseurl']);
  1442. $upload_dir_multisiteless = $upload_dir_multisiteless['basedir'].'/';
  1443. $search = array($cont_url, $cont_url_no_www, RS_PLUGIN_URL);
  1444. if(defined('WHITEBOARD_PLUGIN_URL')){
  1445. $search[] = WHITEBOARD_PLUGIN_URL;
  1446. }
  1447. $search = apply_filters('revslider_html_export_replace_urls', $search);
  1448. $added = array();
  1449. foreach($search as $s){
  1450. preg_match_all("/(\"|')".str_replace('/', '\/', $s)."\S+(\"|')/", $slider_html, $_files);
  1451. if(!empty($_files) && isset($_files[0]) && !empty($_files[0])){
  1452. //go through all files, check for existance and add to the zip file
  1453. foreach($_files[0] as $_file){
  1454. $o = $_file;
  1455. $_file = str_replace(array('"', "'", $s), '', $_file);
  1456. //check if video or image
  1457. $use_path = $path_assets;
  1458. $use_path_raw = $path_assets_raw;
  1459. preg_match('/.*?.(?:jpg|jpeg|gif|png|svg)/i', $_file, $match);
  1460. preg_match('/.*?.(?:ogv|webm|mp4|mp3)/i', $_file, $match2);
  1461. $f = false;
  1462. if(!empty($match) && isset($match[0]) && !empty($match[0])){
  1463. //image
  1464. $use_path = $path_assets;
  1465. $use_path_raw = $path_assets_raw;
  1466. $f = true;
  1467. }
  1468. if(!empty($match2) && isset($match2[0]) && !empty($match2[0])){
  1469. //video
  1470. $use_path = $path_assets_vid;
  1471. $use_path_raw = $path_assets_raw_vid;
  1472. $f = true;
  1473. }
  1474. if($f == false){
  1475. //no file, just a location. So change the location accordingly by removing base and add ../../revolution
  1476. if(strpos($o, 'public/assets/js/') !== false){ //this will be the jsFileLocation script part
  1477. $slider_html = str_replace($o, '"'.$path_js.'"', $slider_html);
  1478. }
  1479. continue; //no correct file, nothing to add
  1480. }
  1481. if(isset($added[$_file])) continue;
  1482. $add = '';
  1483. $__file = '';
  1484. $repl_to = explode('/', $_file);
  1485. $repl_to = end($repl_to);
  1486. $remove = false;
  1487. if(is_file($upload_dir.$_file)){
  1488. $mf = str_replace('//', '/', $upload_dir.$_file);
  1489. if(!$usepcl){
  1490. $zip->addFile($mf, $use_path_raw.'/'.$repl_to);
  1491. }else{
  1492. $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
  1493. }
  1494. $remove = true;
  1495. }elseif(is_file($upload_dir_multisiteless.$_file)){
  1496. $mf = str_replace('//', '/', $upload_dir_multisiteless.$_file);
  1497. if(!$usepcl){
  1498. $zip->addFile($mf, $use_path_raw.'/'.$repl_to);
  1499. }else{
  1500. $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
  1501. }
  1502. $remove = true;
  1503. }elseif(is_file(RS_PLUGIN_PATH.$_file)){
  1504. $mf = str_replace('//', '/', RS_PLUGIN_PATH.$_file);
  1505. //we need to be special with svg files
  1506. $__file = basename($_file);
  1507. //remove admin/assets/
  1508. //$__file = str_replace('admin/assets/images/', '', $_file);
  1509. if(!$usepcl){
  1510. $zip->addFile($mf, $use_path_raw.'/'.$__file);
  1511. }else{
  1512. $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
  1513. }
  1514. $remove = true;
  1515. $add = '/';
  1516. }else{
  1517. if(defined('WHITEBOARD_PLUGIN_PATH')){
  1518. if(is_file(WHITEBOARD_PLUGIN_PATH.$_file)){
  1519. $mf = str_replace('//', '/', WHITEBOARD_PLUGIN_PATH.$_file);
  1520. //we need to be special with svg files
  1521. $__file = basename($_file);
  1522. if(!$usepcl){
  1523. $zip->addFile($mf, $use_path_raw.'/'.$__file);
  1524. }else{
  1525. $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
  1526. }
  1527. $remove = true;
  1528. $add = '/';
  1529. }
  1530. }
  1531. }
  1532. if($remove == true){
  1533. $added[$_file] = true; //set as added
  1534. //replace file with new path
  1535. if($add !== '') $_file = $__file; //set the different path here
  1536. $re = (strpos($o, "'") !== false) ? "'" : '"';
  1537. $slider_html = str_replace($o, $re.$use_path.'/'.$repl_to.$re, $slider_html);
  1538. }
  1539. }
  1540. }
  1541. }
  1542. if($export_real){ //only include if real export
  1543. //add common files to the zip
  1544. if(!$usepcl){
  1545. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.actions.min.js', 'js/extensions/revolution.extension.actions.min.js');
  1546. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.carousel.min.js', 'js/extensions/revolution.extension.carousel.min.js');
  1547. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.kenburn.min.js', 'js/extensions/revolution.extension.kenburn.min.js');
  1548. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.layeranimation.min.js', 'js/extensions/revolution.extension.layeranimation.min.js');
  1549. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.migration.min.js', 'js/extensions/revolution.extension.migration.min.js');
  1550. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.navigation.min.js', 'js/extensions/revolution.extension.navigation.min.js');
  1551. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.parallax.min.js', 'js/extensions/revolution.extension.parallax.min.js');
  1552. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.slideanims.min.js', 'js/extensions/revolution.extension.slideanims.min.js');
  1553. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.video.min.js', 'js/extensions/revolution.extension.video.min.js');
  1554. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/jquery.themepunch.enablelog.js', 'js/jquery.themepunch.enablelog.js');
  1555. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/jquery.themepunch.revolution.min.js', 'js/jquery.themepunch.revolution.min.js');
  1556. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/jquery.themepunch.tools.min.js', 'js/jquery.themepunch.tools.min.js');
  1557. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/css/settings.css', 'css/settings.css');
  1558. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css', 'fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css');
  1559. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/css/helper.css', 'fonts/pe-icon-7-stroke/css/helper.css');
  1560. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.eot', 'fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.eot');
  1561. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.svg', 'fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.svg');
  1562. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.ttf', 'fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.ttf');
  1563. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.woff', 'fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.woff');
  1564. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/css/font-awesome.css', 'fonts/font-awesome/css/font-awesome.css');
  1565. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/FontAwesome.otf', 'fonts/font-awesome/fonts/FontAwesome.otf');
  1566. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.eot', 'fonts/font-awesome/fonts/fontawesome-webfont.eot');
  1567. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.svg', 'fonts/font-awesome/fonts/fontawesome-webfont.svg');
  1568. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.ttf', 'fonts/font-awesome/fonts/fontawesome-webfont.ttf');
  1569. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.woff', 'fonts/font-awesome/fonts/fontawesome-webfont.woff');
  1570. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.eot', 'fonts/revicons/revicons.eot');
  1571. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.svg', 'fonts/revicons/revicons.svg');
  1572. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.ttf', 'fonts/revicons/revicons.ttf');
  1573. $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.woff', 'fonts/revicons/revicons.woff');
  1574. }else{
  1575. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.actions.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1576. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.carousel.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1577. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.kenburn.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1578. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.layeranimation.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1579. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.migration.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1580. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.navigation.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1581. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.parallax.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1582. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.slideanims.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1583. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.video.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1584. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/jquery.themepunch.enablelog.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/js/', PCLZIP_OPT_ADD_PATH, 'js/');
  1585. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/jquery.themepunch.revolution.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/js/', PCLZIP_OPT_ADD_PATH, 'js/');
  1586. $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/jquery.themepunch.tools.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/js/', PCLZIP_OPT_ADD_PATH, 'js/');
  1587. $pclzip->add(RS_PLUGIN_PATH.'public/assets/css/settings.css', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/css/', PCLZIP_OPT_ADD_PATH, 'css/');
  1588. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/css/pe-icon-7-stroke.css', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1589. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/css/helper.css', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1590. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.eot', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1591. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.svg', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1592. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.ttf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1593. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/fonts/Pe-icon-7-stroke.woff', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1594. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/css/font-awesome.css', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1595. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/FontAwesome.otf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1596. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.eot', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1597. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.svg', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1598. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.ttf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1599. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.woff', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1600. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.eot', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1601. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.svg', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1602. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.ttf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1603. $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.woff', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
  1604. }
  1605. $notice_text = "";
  1606. $notice_text .= __('Using this data is only allowed with a valid licence of the jQuery Slider Revolution Plugin, which can be found at CodeCanyon: http://codecanyon.net/item/slider-revolution-responsive-jquery-plugin/2580848?ref=themepunch', 'revslider');
  1607. if(!$usepcl){
  1608. $zip->addFromString("NOTICE.txt", $notice_text); //add slider settings
  1609. }else{
  1610. $pclzip->add(array(array( PCLZIP_ATT_FILE_NAME => 'NOTICE.txt',PCLZIP_ATT_FILE_CONTENT => $notice_text)));
  1611. }
  1612. }
  1613. if(!$usepcl){
  1614. $zip->addFromString("slider.html", $slider_html); //add slider settings
  1615. $zip->close();
  1616. }else{
  1617. $pclzip->add(array(array( PCLZIP_ATT_FILE_NAME => 'slider.html',PCLZIP_ATT_FILE_CONTENT => $slider_html)));
  1618. }
  1619. header("Content-type: application/zip");
  1620. header("Content-Disposition: attachment; filename=".sanitize_title($slider->getAlias()).".zip");
  1621. header("Pragma: no-cache");
  1622. header("Expires: 0");
  1623. readfile(RevSliderGlobals::$uploadsUrlExportZip);
  1624. @unlink(RevSliderGlobals::$uploadsUrlExportZip); //delete file after sending it to user
  1625. exit();
  1626. }
  1627. /**
  1628. *
  1629. * output loading message
  1630. */
  1631. public function loadingMessageOutput(){
  1632. ?>
  1633. <div class="message_loading_preview"><?php _e("Loading Preview...",'revslider')?></div>
  1634. <?php
  1635. }
  1636. /**
  1637. *
  1638. * put slide preview by data
  1639. */
  1640. public function putSlidePreviewByData($data){
  1641. if($data == "empty_output"){
  1642. $this->loadingMessageOutput();
  1643. exit();
  1644. }
  1645. $data = RevSliderFunctions::jsonDecodeFromClientSide($data);
  1646. $slideID = $data["slideid"];
  1647. $slide = new RevSlide();
  1648. $slide->initByID($slideID);
  1649. $sliderID = $slide->getSliderID();
  1650. $output = new RevSliderOutput();
  1651. $output->setOneSlideMode($data);
  1652. $this->previewOutput($sliderID,$output);
  1653. }
  1654. /**
  1655. * update general settings
  1656. */
  1657. public function updateGeneralSettings($data){
  1658. $strSettings = serialize($data);
  1659. update_option('revslider-global-settings', $data);
  1660. }
  1661. /**
  1662. *
  1663. * get general settigns values.
  1664. */
  1665. static function getGeneralSettingsValues(){
  1666. $arrValues = get_option('revslider-global-settings', '');
  1667. $arrValues = maybe_unserialize($arrValues);
  1668. return($arrValues);
  1669. }
  1670. /**
  1671. *
  1672. * modify custom slider params. This is instead custom settings difficulties.
  1673. */
  1674. public function modifyCustomSliderParams($data){
  1675. $arrNames = array("width","height",
  1676. "responsitive_w1","responsitive_sw1",
  1677. "responsitive_w2","responsitive_sw2",
  1678. "responsitive_w3","responsitive_sw3",
  1679. "responsitive_w4","responsitive_sw4",
  1680. "responsitive_w5","responsitive_sw5",
  1681. "responsitive_w6","responsitive_sw6");
  1682. $arrMain = $data["main"];
  1683. foreach($arrNames as $name){
  1684. if(array_key_exists($name, $arrMain)){
  1685. $arrMain[$name] = floatval($arrMain[$name]);
  1686. if(!is_numeric($arrMain[$name])) $arrMain[$name] = 0;
  1687. }
  1688. }
  1689. if(!isset($arrMain["fullscreen_offset_container"])) $arrMain["fullscreen_offset_container"] = '';
  1690. $arrMain["fullscreen_offset_container"] = $arrMain["fullscreen_offset_container"];
  1691. $data["main"] = $arrMain;
  1692. return($data);
  1693. }
  1694. /**
  1695. *
  1696. * get post types with categories for client side.
  1697. */
  1698. public static function getPostTypesWithCatsForClient(){
  1699. $arrPostTypes = RevSliderFunctionsWP::getPostTypesWithCats();
  1700. $globalCounter = 0;
  1701. $arrOutput = array();
  1702. foreach($arrPostTypes as $postType => $arrTaxWithCats){
  1703. $arrCats = array();
  1704. foreach($arrTaxWithCats as $tax){
  1705. $taxName = $tax["name"];
  1706. $taxTitle = $tax["title"];
  1707. $globalCounter++;
  1708. $arrCats["option_disabled_".$globalCounter] = "---- ".$taxTitle." ----";
  1709. foreach($tax["cats"] as $catID=>$catTitle){
  1710. $arrCats[$taxName."_".$catID] = $catTitle;
  1711. }
  1712. }//loop tax
  1713. $arrOutput[$postType] = $arrCats;
  1714. }//loop types
  1715. return($arrOutput);
  1716. }
  1717. public static function setCleanFontImport($font, $class = '', $url = '', $variants = array(), $subsets = array()){
  1718. global $revslider_fonts;
  1719. $ret = '';
  1720. if(!isset($revslider_fonts)) $revslider_fonts = array(); //if this is called without revslider.php beeing loaded
  1721. $do_print = false;
  1722. $tcf = '';
  1723. if(!empty($variants) || !empty($subsets)){
  1724. if(!isset($revslider_fonts[$font])) $revslider_fonts[$font] = array();
  1725. if(!isset($revslider_fonts[$font]['variants'])) $revslider_fonts[$font]['variants'] = array();
  1726. if(!isset($revslider_fonts[$font]['subsets'])) $revslider_fonts[$font]['subsets'] = array();
  1727. if(!empty($variants)){
  1728. foreach($variants as $k => $v){
  1729. if(!in_array($v, $revslider_fonts[$font]['variants'])){
  1730. $revslider_fonts[$font]['variants'][] = $v;
  1731. }else{ //already included somewhere, so do not call it anymore
  1732. unset($variants[$k]);
  1733. }
  1734. }
  1735. }
  1736. if(!empty($subsets)){
  1737. foreach($subsets as $k => $v){
  1738. if(!in_array($v, $revslider_fonts[$font]['subsets'])){
  1739. $revslider_fonts[$font]['subsets'][] = $v;
  1740. }else{ //already included somewhere, so do not call it anymore
  1741. unset($subsets[$k]);
  1742. }
  1743. }
  1744. }
  1745. /*
  1746. if(!empty($variants)){
  1747. $mgfirst = true;
  1748. foreach($variants as $mgvk => $mgvv){
  1749. if(!$mgfirst) $tcf .= ',';
  1750. $tcf .= $mgvv;
  1751. $mgfirst = false;
  1752. }
  1753. }
  1754. if(!empty($subsets)){
  1755. $mgfirst = true;
  1756. foreach($subsets as $ssk => $ssv){
  1757. if($mgfirst) $tcf .= '&subset=';
  1758. if(!$mgfirst) $tcf .= ',';
  1759. $tcf .= $ssv;
  1760. $mgfirst = false;
  1761. }
  1762. }
  1763. if($tcf !== ''){
  1764. $tcf = ':'.$tcf;
  1765. $do_print = true;
  1766. }*/
  1767. }else{
  1768. /*if(in_array($font, $revslider_fonts)){
  1769. $ret = '';
  1770. $do_print = false;
  1771. }else{
  1772. $do_print = true;
  1773. }*/
  1774. }
  1775. /*if($do_print){
  1776. $setBase = (is_ssl()) ? "https://" : "http://";
  1777. if($class !== '') $class = ' class="'.$class.'"';
  1778. if(!isset($revslider_fonts[$font])){
  1779. $revslider_fonts[$font] = array();
  1780. }
  1781. if(strpos($font, "href=") === false){ //fallback for old versions
  1782. $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
  1783. $ret = '<link href="'.$url.urlencode($font.$tcf).'"'.$class.' rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
  1784. }else{
  1785. $font = str_replace(array('http://', 'https://'), array($setBase, $setBase), $font);
  1786. $ret = html_entity_decode(stripslashes($font));
  1787. }
  1788. }
  1789. return apply_filters('revslider_getCleanFontImport', $ret, $font, $class, $url, $variants, $subsets);*/
  1790. }
  1791. /**
  1792. * set the rs_google_font to current date, so that it will be redownloaded
  1793. *
  1794. */
  1795. public static function deleteGoogleFonts(){
  1796. update_option('rs_google_font', time());
  1797. }
  1798. /**
  1799. * print html font import
  1800. *
  1801. */
  1802. public static function printCleanFontImport(){
  1803. global $revslider_fonts;
  1804. $do_print = false;
  1805. $font_first = true;
  1806. $ret = '';
  1807. $tcf = '';
  1808. $tcf2 = '';
  1809. $temp = '';
  1810. $fonts = array();
  1811. $glob_vals = RevSliderOperations::getGeneralSettingsValues();
  1812. $dl_fonts = RevSliderFunctions::getVal($glob_vals, 'load_google_fonts', 'off');
  1813. if($dl_fonts === 'disable') return $ret;
  1814. if(!empty($revslider_fonts)){
  1815. foreach($revslider_fonts as $f_n => $f_s){
  1816. if($f_n !== ''){
  1817. if(isset($f_s['variants']) && !empty($f_s['variants']) || isset($f_s['subsets']) && !empty($f_s['subsets'])){
  1818. $temp = '';
  1819. if(strpos($f_n, "href=") === false){
  1820. if($font_first == false) $tcf .= '%7C'; //'|';
  1821. $temp .= urlencode($f_n).':';
  1822. if(isset($f_s['variants']) && !empty($f_s['variants'])){
  1823. $mgfirst = true;
  1824. foreach($f_s['variants'] as $mgvk => $mgvv){
  1825. if(!$mgfirst) $temp .= urlencode(',');
  1826. $temp .= urlencode($mgvv);
  1827. $mgfirst = false;
  1828. }
  1829. }
  1830. $fonts[$f_n] = $temp; //we do not want to add the subsets
  1831. if(isset($f_s['subsets']) && !empty($f_s['subsets'])){
  1832. $mgfirst = true;
  1833. foreach($f_s['subsets'] as $ssk => $ssv){
  1834. if($mgfirst) $temp .= urlencode('&subset=');
  1835. if(!$mgfirst) $temp .= urlencode(',');
  1836. $temp .= urlencode($ssv);
  1837. $mgfirst = false;
  1838. }
  1839. }
  1840. $tcf .= $temp;
  1841. }else{
  1842. $f_n = str_replace(array('http://', 'https://'), array($setBase, $setBase), $f_n);
  1843. $temp = html_entity_decode(stripslashes($f_n));
  1844. $tcf2 .= $temp;
  1845. $fonts[$f_n] = $temp;
  1846. }
  1847. }
  1848. $font_first = false;
  1849. }
  1850. }
  1851. }
  1852. $setBase = (is_ssl()) ? "https://" : "http://";
  1853. if($dl_fonts === 'preload'){
  1854. if(!empty($fonts)){
  1855. $upload_dir = wp_upload_dir();
  1856. $base_dir = $upload_dir['basedir'];
  1857. $base_url = $upload_dir['baseurl'];
  1858. $rs_google_ts = get_option('rs_google_font', 0);
  1859. foreach($fonts as $key => $font){
  1860. //check if we downloaded the font already
  1861. $font_name = preg_replace('/[^-a-z0-9 ]+/i', '', $key);
  1862. $font_name = strtolower(str_replace(' ', '-', esc_attr($font_name)));
  1863. if(!is_file($base_dir.'/revslider/gfonts/'. $font_name . '/' . $font_name . '.woff2') || filemtime($base_dir.'/revslider/gfonts/'. $font_name . '/' . $font_name . '.woff2') < $rs_google_ts){
  1864. if(!is_dir($base_dir.'/revslider/gfonts/')){
  1865. mkdir($base_dir.'/revslider/gfonts/');
  1866. }
  1867. if(!is_dir($base_dir.'/revslider/gfonts/'.$font_name)){
  1868. mkdir($base_dir.'/revslider/gfonts/'.$font_name);
  1869. }
  1870. $regex_url = "/(http|https|ftp|ftps)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/";
  1871. $url = $setBase.'fonts.googleapis.com/css?family='.$font;
  1872. $content = wp_remote_get($url);
  1873. $body = RevSliderFunctions::getVal($content, 'body', '');
  1874. if(preg_match_all($regex_url, $body, $found_fonts)){
  1875. foreach($found_fonts as $found_font){
  1876. $found_font = $found_font[0];
  1877. $found_font = rtrim($found_font, ')');
  1878. $f_c = wp_remote_get($found_font);
  1879. $f_c_body = RevSliderFunctions::getVal($f_c, 'body', '');
  1880. $file = $base_dir.'/revslider/gfonts/'. $font_name . '/' . $font_name . '.woff2';
  1881. @mkdir(dirname($file));
  1882. @file_put_contents($file, $f_c_body);
  1883. break;
  1884. }
  1885. }
  1886. }
  1887. $f_raw = explode(':', $font);
  1888. $weights = (!empty($f_raw) && is_array($f_raw) && isset($f_raw[1])) ? explode(',', $f_raw[1]) : array('400');
  1889. $f_family = str_replace('+', ' ', $f_raw[0]);
  1890. if(!empty($weights) && is_array($weights)){
  1891. $ret .= '<style type="text/css">';
  1892. foreach($weights as $weight){
  1893. $ret .=
  1894. "@font-face {
  1895. font-family: '".$f_family."';
  1896. font-style: normal;
  1897. font-weight: ".$weight.";
  1898. src: local('".$f_family."'), local('".$f_family."'), url(".$base_url.'/revslider/gfonts/'. $font_name . '/' . $font_name . '.woff2'.") format('woff2');
  1899. }";
  1900. }
  1901. $ret .= '</style>';
  1902. }
  1903. }
  1904. }
  1905. }else{
  1906. $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
  1907. if($tcf !== ''){
  1908. $ret .= '<link href="'.$url.$tcf.'" rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
  1909. }
  1910. if($tcf2 !== ''){
  1911. $ret .= html_entity_decode(stripslashes($tcf2));
  1912. }
  1913. }
  1914. return apply_filters('revslider_printCleanFontImport', $ret);
  1915. }
  1916. /**
  1917. *
  1918. * get html font import
  1919. * OBSOLOETE FUNCTION
  1920. */
  1921. public static function getCleanFontImport($font, $class = '', $url = '', $variants = array(), $subsets = array()){
  1922. global $revslider_fonts;
  1923. $ret = '';
  1924. if(!isset($revslider_fonts)) $revslider_fonts = array(); //if this is called without revslider.php beeing loaded
  1925. $do_print = false;
  1926. $tcf = '';
  1927. if(!empty($variants) || !empty($subsets)){
  1928. if(!isset($revslider_fonts[$font])) $revslider_fonts[$font] = array();
  1929. if(!isset($revslider_fonts[$font]['variants'])) $revslider_fonts[$font]['variants'] = array();
  1930. if(!isset($revslider_fonts[$font]['subsets'])) $revslider_fonts[$font]['subsets'] = array();
  1931. if(!empty($variants)){
  1932. foreach($variants as $k => $v){
  1933. if(!in_array($v, $revslider_fonts[$font]['variants'])){
  1934. $revslider_fonts[$font]['variants'][] = $v;
  1935. }else{ //already included somewhere, so do not call it anymore
  1936. unset($variants[$k]);
  1937. }
  1938. }
  1939. }
  1940. if(!empty($subsets)){
  1941. foreach($subsets as $k => $v){
  1942. if(!in_array($v, $revslider_fonts[$font]['subsets'])){
  1943. $revslider_fonts[$font]['subsets'][] = $v;
  1944. }else{ //already included somewhere, so do not call it anymore
  1945. unset($subsets[$k]);
  1946. }
  1947. }
  1948. }
  1949. if(!empty($variants)){
  1950. $mgfirst = true;
  1951. foreach($variants as $mgvk => $mgvv){
  1952. if(!$mgfirst) $tcf .= ',';
  1953. $tcf .= $mgvv;
  1954. $mgfirst = false;
  1955. }
  1956. }
  1957. if(!empty($subsets)){
  1958. $mgfirst = true;
  1959. foreach($subsets as $ssk => $ssv){
  1960. if($mgfirst) $tcf .= '&subset=';
  1961. if(!$mgfirst) $tcf .= ',';
  1962. $tcf .= $ssv;
  1963. $mgfirst = false;
  1964. }
  1965. }
  1966. if($tcf !== ''){
  1967. $tcf = ':'.$tcf;
  1968. $do_print = true;
  1969. }
  1970. }else{
  1971. if(in_array($font, $revslider_fonts)){
  1972. $ret = '';
  1973. $do_print = false;
  1974. }else{
  1975. $do_print = true;
  1976. }
  1977. }
  1978. if($do_print){
  1979. $setBase = (is_ssl()) ? "https://" : "http://";
  1980. if($class !== '') $class = ' class="'.$class.'"';
  1981. if(!isset($revslider_fonts[$font])){
  1982. $revslider_fonts[$font] = array();
  1983. }
  1984. if(strpos($font, "href=") === false){ //fallback for old versions
  1985. $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
  1986. $ret = '<link href="'.$url.urlencode($font.$tcf).'"'.$class.' rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
  1987. }else{
  1988. $font = str_replace(array('http://', 'https://'), array($setBase, $setBase), $font);
  1989. $ret = html_entity_decode(stripslashes($font));
  1990. echo $ret;
  1991. }
  1992. }
  1993. return apply_filters('revslider_getCleanFontImport', $ret, $font, $class, $url, $variants, $subsets);
  1994. }
  1995. public function checkPurchaseVerification($data){
  1996. global $wp_version, $rslb;
  1997. $done = false;
  1998. $count = 0;
  1999. do{
  2000. $url = $rslb->get_url('updates');
  2001. $response = wp_remote_post($url.'/activate.php', array(
  2002. 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'),
  2003. 'body' => array(
  2004. 'code' => urlencode($data['code']),
  2005. //'email' => urlencode($data['email']),
  2006. 'version' => urlencode(RevSliderGlobals::SLIDER_REVISION),
  2007. 'product' => urlencode(RS_PLUGIN_SLUG)
  2008. )
  2009. ));
  2010. $response_code = wp_remote_retrieve_response_code( $response );
  2011. $version_info = wp_remote_retrieve_body( $response );
  2012. if($response_code == 200){
  2013. $done = true;
  2014. }else{
  2015. $rslb->move_server_list();
  2016. }
  2017. $count++;
  2018. }while($done == false && $count < 5);
  2019. if ( $response_code != 200 || is_wp_error( $version_info ) ) {
  2020. return false;
  2021. }
  2022. if($version_info == 'valid'){
  2023. update_option('revslider-valid', 'true');
  2024. update_option('revslider-code', $data['code']);
  2025. //update_option('revslider-email', $data['email']);
  2026. update_option('revslider-temp-active-notice', 'false');
  2027. return true;
  2028. }elseif($version_info == 'exist'){
  2029. return 'exist';
  2030. //RevSliderFunctions::throwError(__('Purchase Code already registered!', 'revslider'));
  2031. }elseif($version_info == 'temp_valid'){ //only temporary active, rechecking needs to be done soon on the themepunch servers (envato API may be down)
  2032. update_option('revslider-valid', 'true');
  2033. update_option('revslider-code', $data['code']);
  2034. //update_option('revslider-email', $data['email']);
  2035. update_option('revslider-temp-active', 'true');
  2036. update_option('revslider-temp-active-notice', 'false');
  2037. return 'temp';
  2038. }else{
  2039. return false;
  2040. }
  2041. /*elseif($version_info == 'bad_email'){
  2042. return 'bad_email';
  2043. }elseif($version_info == 'email_used'){
  2044. return 'email_used';
  2045. }*/
  2046. }
  2047. public function doPurchaseDeactivation($data){
  2048. global $wp_version, $rslb;
  2049. $code = get_option('revslider-code', '');
  2050. $done = false;
  2051. $count = 0;
  2052. do{
  2053. $url = $rslb->get_url('updates');
  2054. $response = wp_remote_post($url.'/deactivate.php', array(
  2055. 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'),
  2056. 'body' => array(
  2057. 'code' => urlencode($code),
  2058. 'product' => urlencode(RS_PLUGIN_SLUG)
  2059. )
  2060. ));
  2061. $response_code = wp_remote_retrieve_response_code( $response );
  2062. $version_info = wp_remote_retrieve_body( $response );
  2063. if($response_code == 200){
  2064. $done = true;
  2065. }else{
  2066. $rslb->move_server_list();
  2067. }
  2068. $count++;
  2069. }while($done == false && $count < 5);
  2070. if ( $response_code != 200 || is_wp_error( $version_info ) ) {
  2071. return false;
  2072. }
  2073. if($version_info == 'valid'){
  2074. update_option('revslider-valid', 'false');
  2075. update_option('revslider-temp-active', 'false');
  2076. update_option('revslider-code', '');
  2077. return true;
  2078. }else{
  2079. return false;
  2080. }
  2081. }
  2082. public static function get_performance($val, $min, $max) {
  2083. if ($val==0) $val = 1;
  2084. $arr = array();
  2085. //print_r(($max-$min)."/".($val-$min)."=");
  2086. $arr["proc"] = (($max-$min) / ($val-$min))*100;
  2087. //print_r($arr["proc"]." --> ");
  2088. if ($arr["proc"]>100) $arr["proc"] = 100;
  2089. if ($arr["proc"]<0) $arr["proc"] = 0;
  2090. if ($arr["proc"]<35) $arr["col"] = "slow";
  2091. else
  2092. if ($arr["proc"]<75) $arr["col"] = "ok";
  2093. else
  2094. //print_r($arr["proc"]." <br>");
  2095. $arr["col"] = "fast";
  2096. return $arr;
  2097. }
  2098. /**
  2099. * view the estimated speed of the Slider
  2100. * @since: 5.0
  2101. */
  2102. public static function get_slider_speed($sliderID){
  2103. //$data = wp_get_attachment_metadata($cur_img_id);
  2104. ob_start();
  2105. $total_size = 0;
  2106. $do_ssl = (is_ssl()) ? 'http:' : 'https:';
  2107. $slider = new RevSliderSlider();
  2108. $slider->initByID($sliderID);
  2109. $slides = $slider->getSlidesForExport();
  2110. $static_slides = $slider->getStaticSlideForExport();
  2111. if(!empty($static_slides) && is_array($static_slides)){
  2112. foreach($static_slides as $s_slide){
  2113. $slides[] = $s_slide;
  2114. }
  2115. }
  2116. $used_images = array();
  2117. $used_videos = array();
  2118. $used_captions = array();
  2119. $using_kenburns = false;
  2120. $using_parallax = false;
  2121. $using_carousel = false;
  2122. $using_navigation = false;
  2123. $using_videos = false;
  2124. $using_actions = false;
  2125. $using_layeranim = false;
  2126. $img_size = 0;
  2127. $video_size = 0;
  2128. $slide_counter = 0;
  2129. $firstslide_size = 0;
  2130. $smartslide_size = 0;
  2131. if($slider->getParam("use_parallax","off") == 'on')
  2132. $using_parallax = true;
  2133. if($slider->getParam("slider-type","standard") == 'carousel')
  2134. $using_carousel = true;
  2135. $enable_arrows = $slider->getParam('enable_arrows','off');
  2136. $enable_bullets = $slider->getParam('enable_bullets','off');
  2137. $enable_tabs = $slider->getParam('enable_tabs','off');
  2138. $enable_thumbnails = $slider->getParam('enable_thumbnails','off');
  2139. if($enable_arrows == 'on' || $enable_bullets == 'on' || $enable_tabs == 'on' || $enable_thumbnails == 'on')
  2140. $using_navigation = true;
  2141. if(!empty($slides) && count($slides) > 0){
  2142. foreach($slides as $key => $slide){
  2143. if(isset($slide['params']['state']) && $slide['params']['state'] != 'published') continue;
  2144. if(!isset($slide['id'])) continue;
  2145. $slide_counter++;
  2146. $slide_id = $slide['id'];
  2147. if(isset($slide['params']['kenburn_effect']) && $slide['params']['kenburn_effect'] == 'on')
  2148. $using_kenburns = true;
  2149. if(!isset($slide['params']['image_source_type'])) $slide['params']['image_source_type'] = 'full';
  2150. if(isset($slide['params']['image']) && $slide['params']['image'] != ''){
  2151. //add infos of image to an array
  2152. $infos = array();
  2153. $urlImage = false;
  2154. switch($slide['params']['background_type']){
  2155. case 'streamyoutube':
  2156. case 'streaminstagram':
  2157. case 'streamvimeo':
  2158. case 'youtube':
  2159. case 'vimeo':
  2160. $using_videos = true;
  2161. break;
  2162. }
  2163. if(isset($slide['params']['image_id'])){
  2164. $cur_img_id = $slide['params']['image_id'];
  2165. //get image sizes by ID
  2166. $urlImage = wp_get_attachment_image_src($slide['params']['image_id'], $slide['params']['image_source_type']);
  2167. }
  2168. if($urlImage === false){
  2169. $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($slide['params']['image']);
  2170. if($cur_img_id !== false){
  2171. $urlImage = wp_get_attachment_image_src($cur_img_id, $slide['params']['image_source_type']);
  2172. }
  2173. }
  2174. if($urlImage !== false){
  2175. $infos['id'] = $cur_img_id;
  2176. $file = get_attached_file( $cur_img_id );
  2177. $infos['info'] = pathinfo( $file );
  2178. if(file_exists( $file )){
  2179. $infos['size'] = filesize( $file );
  2180. $infos['size-format'] = size_format($infos['size'], 2);
  2181. $img_size += $infos['size'];
  2182. if ($slide_counter==1)
  2183. $firstslide_size += $infos['size'];
  2184. if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
  2185. $smartslide_size += $infos['size'];
  2186. }else{
  2187. $infos['id'] = false;
  2188. }
  2189. }else{
  2190. $infos['id'] = 'external';
  2191. }
  2192. if(strpos($slide_id, 'static_') !== false){
  2193. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2194. }else{
  2195. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2196. }
  2197. $used_images[$slide['params']['image']] = $infos;
  2198. }
  2199. if(isset($slide['layers']) && !empty($slide['layers']) && count($slide['layers']) > 0){
  2200. $using_layeranim = true;
  2201. foreach($slide['layers'] as $lKey => $layer){
  2202. switch($layer['type']){
  2203. case 'image':
  2204. $infos = array();
  2205. if(isset($layer['image_url']) && trim($layer['image_url']) != ''){
  2206. $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($layer['image_url']);
  2207. if($cur_img_id !== false){
  2208. if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
  2209. $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
  2210. if($urlImage !== false){
  2211. $infos['id'] = $cur_img_id;
  2212. $file = get_attached_file( $cur_img_id );
  2213. $infos['info'] = pathinfo( $file );
  2214. if(file_exists( $file )){
  2215. $infos['size'] = filesize( $file );
  2216. $infos['size-format'] = size_format($infos['size'], 2);
  2217. $img_size += $infos['size'];
  2218. if ($slide_counter==1)
  2219. $firstslide_size += $infos['size'];
  2220. if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
  2221. $smartslide_size += $infos['size'];
  2222. }else{
  2223. $infos['id'] = false;
  2224. }
  2225. }else{
  2226. $infos['id'] = 'external';
  2227. }
  2228. }else{
  2229. $infos['id'] = 'external';
  2230. }
  2231. if(strpos($slide_id, 'static_') !== false){
  2232. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2233. }else{
  2234. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2235. }
  2236. $used_images[$layer['image_url']] = $infos; //image_url if image caption
  2237. }
  2238. break;
  2239. case 'video':
  2240. $using_videos = true;
  2241. //get cover image if existing
  2242. $infos = array();
  2243. $poster_img = array();
  2244. if(isset($layer['video_data']) && isset($layer['video_data']->urlPoster)){
  2245. $poster_img[] = $layer['video_data']->urlPoster;
  2246. }
  2247. if(isset($layer['video_image_url']) && isset($layer['video_image_url'])){
  2248. $poster_img[] = $layer['video_image_url'];
  2249. }
  2250. if(!empty($poster_img)){
  2251. foreach($poster_img as $img){
  2252. if(trim($img) == '') continue;
  2253. $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($img);
  2254. if($cur_img_id !== false){
  2255. if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
  2256. $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
  2257. if($urlImage !== false){
  2258. $infos['id'] = $cur_img_id;
  2259. $file = get_attached_file( $cur_img_id );
  2260. $infos['info'] = pathinfo( $file );
  2261. if(file_exists( $file )){
  2262. $infos['size'] = filesize( $file );
  2263. $infos['size-format'] = size_format($infos['size'], 2);
  2264. $img_size += $infos['size'];
  2265. if ($slide_counter==1)
  2266. $firstslide_size += $infos['size'];
  2267. if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
  2268. $smartslide_size += $infos['size'];
  2269. }else{
  2270. $infos['id'] = false;
  2271. }
  2272. }else{
  2273. $infos['id'] = 'external';
  2274. }
  2275. }else{
  2276. $infos['id'] = 'external';
  2277. }
  2278. if(strpos($slide_id, 'static_') !== false){
  2279. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2280. }else{
  2281. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2282. }
  2283. $used_images[$img] = $infos; //image_url if image caption
  2284. }
  2285. }
  2286. $infos = array();
  2287. if(isset($layer['video_type'])){
  2288. //add videos and try to get video size
  2289. if(isset($layer['video_data'])){
  2290. $video_arr = array();
  2291. $max_video_size = 0;
  2292. if(strpos($slide_id, 'static_') !== false){
  2293. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2294. }else{
  2295. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2296. }
  2297. switch($layer['video_type']){
  2298. case 'html5':
  2299. if(isset($layer['video_data']->urlMp4) && !empty($layer['video_data']->urlMp4)) $video_arr['mp4'] = $layer['video_data']->urlMp4;
  2300. if(isset($layer['video_data']->urlWebm) && !empty($layer['video_data']->urlWebm)) $video_arr['webm'] = $layer['video_data']->urlWebm;
  2301. if(isset($layer['video_data']->urlOgv) && !empty($layer['video_data']->urlOgv)) $video_arr['mp4'] = $layer['video_data']->urlOgv;
  2302. if(!empty($video_arr)){
  2303. foreach($video_arr as $type => $url){
  2304. $cur_id = RevSliderFunctionsWP::get_image_id_by_url($url);
  2305. if($cur_id !== false){
  2306. $infos['id'] = $cur_id;
  2307. $file = get_attached_file( $cur_id );
  2308. $infos['info'] = pathinfo( $file );
  2309. if(file_exists( $file )){
  2310. $infos['size'] = filesize( $file );
  2311. $infos['size-format'] = size_format($infos['size'], 2);
  2312. if($infos['size'] > $max_video_size) $max_video_size = $infos['size']; //add only the largest video of the three here as each browser loads only one file and we can add here the biggest
  2313. }else{
  2314. $infos['id'] = 'external';
  2315. }
  2316. }else{
  2317. $infos['id'] = 'external';
  2318. }
  2319. $used_videos[$url] = $infos;
  2320. }
  2321. $video_size += $max_video_size;
  2322. }
  2323. break;
  2324. case 'youtube':
  2325. $infos['id'] = 'external';
  2326. if(!isset($layer['video_data']->id) || empty($layer['video_data']->id));
  2327. $used_videos[$do_ssl.'//www.youtube.com/watch?v='.$layer['video_data']->id] = $infos;
  2328. break;
  2329. case 'vimeo':
  2330. if(!isset($layer['video_data']->id) || empty($layer['video_data']->id));
  2331. $infos['id'] = 'external';
  2332. $used_videos[$do_ssl.'//vimeo.com/'.$layer['video_data']->id] = $infos;
  2333. break;
  2334. }
  2335. }
  2336. }
  2337. break;
  2338. }
  2339. //check captions for actions
  2340. if(isset($layer['layer_action']) && !empty($layer['layer_action'])){
  2341. $a_action = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'action', array()));
  2342. $a_link_type = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'link_type', array()));
  2343. if(!empty($a_action)){
  2344. foreach($a_action as $num => $action){
  2345. if($using_actions == true) break;
  2346. if($action !== 'link'){
  2347. $using_actions = true;
  2348. }else{
  2349. //check if jQuery or a tag
  2350. if($a_link_type[$num] == 'jquery') $using_actions = true;
  2351. }
  2352. }
  2353. }
  2354. }
  2355. if(isset($layer['style']) && $layer['style'] != '') $used_captions[$layer['style']] = true;
  2356. }
  2357. }
  2358. }
  2359. }
  2360. $total_size += $img_size;
  2361. $img_counter = 0;
  2362. $issues ="";
  2363. //$total_size += $video_size;
  2364. ?>
  2365. <span class="tp-clearfix" style="height:15px"></span>
  2366. <hr>
  2367. <span class="tp-clearfix" style="height:25px"></span>
  2368. <!-- HEADER OF MONITORING -->
  2369. <span class="tp-monitor-performance-title"><?php echo __("Overall Slider Performance",'revslider'); ?></span>
  2370. <span class="tp-monitor-performace-wrap">
  2371. <span id="image-performace-bar" style="width: %overall_performance%%" class="tp-monitor-performance-bar mo-%overall_color%-col"></span>
  2372. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2373. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2374. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2375. </span>
  2376. <span class="tp-clearfix" style="height:50px"></span>
  2377. <span class="tp-monitor-speed-table tp-monitor-single-speed">
  2378. <span class="tp-monitor-speed-cell">
  2379. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
  2380. <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-single%</span>
  2381. </span>
  2382. <span class="tp-monitor-speed-cell">
  2383. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
  2384. <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-single%</span>
  2385. </span>
  2386. <span class="tp-monitor-speed-cell">
  2387. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
  2388. <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-single%</span>
  2389. </span>
  2390. </span>
  2391. <span class="tp-monitor-speed-table tp-monitor-smart-speed">
  2392. <span class="tp-monitor-speed-cell">
  2393. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
  2394. <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-smart%</span>
  2395. </span>
  2396. <span class="tp-monitor-speed-cell">
  2397. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
  2398. <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-smart%</span>
  2399. </span>
  2400. <span class="tp-monitor-speed-cell">
  2401. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
  2402. <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-smart%</span>
  2403. </span>
  2404. </span>
  2405. <span class="tp-monitor-speed-table tp-monitor-all-speed">
  2406. <span class="tp-monitor-speed-cell">
  2407. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
  2408. <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-all%</span>
  2409. </span>
  2410. <span class="tp-monitor-speed-cell">
  2411. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
  2412. <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-all%</span>
  2413. </span>
  2414. <span class="tp-monitor-speed-cell">
  2415. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
  2416. <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-all%</span>
  2417. </span>
  2418. </span>
  2419. <span class="tp-clearfix" style="height:25px"></span>
  2420. <span style="float:left;width:165px">
  2421. <span class="tp-monitor-smalllabel"><?php echo __("Total Slider Size:",'revslider'); ?></span>
  2422. <span class="tp-monitor-fullsize">%overall_size%</span>
  2423. <a class="button-primary revblue tp-monitor-showdetails" data-target="#performance_overall_details" style="float:right; width:160px;vertical-align:top"><i class="eg-icon-chart-bar"></i>Show Full Statistics</a>
  2424. </span>
  2425. <span style="float:right; width:165px">
  2426. <span class="tp-monitor-smalllabel"><?php echo __("Preloaded Slides Size:",'revslider'); ?></span>
  2427. <span class="tp-monitor-fullsize tp-monitor-single-speed">%firstslide_size%</span>
  2428. <span class="tp-monitor-fullsize tp-monitor-smart-speed">%smartslide_size%</span>
  2429. <span class="tp-monitor-fullsize tp-monitor-all-speed">%allslide_size%</span>
  2430. <a class="button-primary revred tp-monitor-showdetails" data-target="#monitor-problems" style="float:right; width:160px;vertical-align:top;"><i class="eg-icon-info"></i>Show All Issues</a>
  2431. </span>
  2432. <span class="tp-clearfix" style="height:15px"></span>
  2433. <hr>
  2434. <span class="tp-clearfix" style="height:25px"></span>
  2435. <!-- THE IMAGE PERFORMANCE MESSING -->
  2436. <div id="monitor-problems" style="display:none">
  2437. <span class="tp-monitor-performance-title"><?php echo __("Need Some Attention",'revslider'); ?></span>
  2438. <span class="tp-clearfix" style="height:25px"></span>
  2439. <ul class="tp-monitor-list" id="monitor-problem-details" style="margin-bottom:15px;">
  2440. %issues%
  2441. </ul>
  2442. <span class="tp-clearfix" style="height:15px"></span>
  2443. <hr>
  2444. <span class="tp-clearfix" style="height:25px"></span>
  2445. </div>
  2446. <div id="performance_overall_details" style="display:none">
  2447. <!-- IMAGE LIST -->
  2448. <?php
  2449. if(!empty($used_images)){
  2450. ?>
  2451. <!-- THE IMAGE PERFORMANCE MESSING -->
  2452. <span class="tp-monitor-performance-title"><?php echo __("Image Performance",'revslider'); ?></span>
  2453. <span class="tp-monitor-performace-wrap">
  2454. <span id="image-performace-bar" style="width: %image_performance%%" class="tp-monitor-performance-bar mo-%image_color%-col"></span>
  2455. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2456. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2457. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2458. </span>
  2459. <span class="tp-clearfix" style="height:35px"></span>
  2460. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2461. <span style="float:left;width:40%">
  2462. <span class="tp-monitor-smalllabel"><?php echo __("Images Loaded:",'revslider'); ?></span>
  2463. <span class="tp-monitor-imageicon"></span>
  2464. <span id="image_sub_size" class="tp-monitor-total-subsize"><?php echo size_format($img_size,2); ?></span>
  2465. </span>
  2466. <span style="float:left;width:60%; text-align:right;">
  2467. <span class="tp-monitor-showdetails" data-target="#monitor-image-details" data-open="</span><?php echo __("Hide Details",'revslider'); ?>" data-close="</span><?php echo __("Show Details",'revslider'); ?>"><span class="tp-monitor-openclose"></span><span class="tp-show-inner-btn"><?php echo __("Show Details",'revslider'); ?></span></span>
  2468. </span>
  2469. <span class="tp-clearfix" style="height:15px"></span>
  2470. <!-- THE IMAGE LIST -->
  2471. <ul class="tp-monitor-list" id="monitor-image-details" style="display:none;margin-bottom:15px;">
  2472. <?php
  2473. foreach($used_images as $path => $image){
  2474. $_li = '<li class="tp-monitor-listli">';
  2475. if(isset($image['size'])) {
  2476. $img_counter++;
  2477. if ($image['size']<200000)
  2478. $_li .= '<span class="tp-monitor-good"></span>';
  2479. else
  2480. if ($image['size']<400000)
  2481. $_li .= '<span class="tp-monitor-well"></span>';
  2482. else
  2483. $_li .= '<span class="tp-monitor-warning"></span>';
  2484. if ($image['size']>1000000)
  2485. $_li .= '<span class="tp-monitor-size">'.size_format($image['size'],2).'</span>';
  2486. else
  2487. $_li .= '<span class="tp-monitor-size">'.size_format($image['size'],0).'</span>';
  2488. }else{
  2489. if($image['id'] == 'external'){
  2490. $_li .= '<span class="tp-monitor-neutral"></span><span class="tp-monitor-size">'.__('extern', 'revslider').'</span>';
  2491. }else{
  2492. $_li .= '<span class="tp-monitor-warning"></span><span class="tp-monitor-size">'.__('missing', 'revslider').'</span>';
  2493. }
  2494. }
  2495. $_li .= '<span class="tp-monitor-file">';
  2496. if(!isset($image['info']['basename']) || empty($image['info']['basename'])){
  2497. $_li .= '...'.substr($path,-20);
  2498. }else{
  2499. $_li .= substr($image['info']['basename'],-20);
  2500. }
  2501. $_li .= '</span>';
  2502. if(isset($image['url'])) {
  2503. //$_li .= ' <a href="'.$image['url'].'" target="_blank" class="tp-monitor-showimage"></a>';
  2504. $_li .= ' <a href="'.$image['url'].'" target="_blank" class="tp-monitor-linktoslide"></a>';
  2505. }
  2506. $_li .= '</li>';
  2507. echo $_li;
  2508. if ((isset($image['size']) && $image['size']>199999) || (!isset($image['size']) && !$image['id'] == 'external'))
  2509. $issues .= $_li;
  2510. }
  2511. ?>
  2512. </ul>
  2513. <?php
  2514. }
  2515. ?>
  2516. <!-- VIDEO LIST -->
  2517. <?php
  2518. if(!empty($used_videos)){
  2519. ?>
  2520. <span class="tp-clearfix" style="height:15px"></span>
  2521. <hr>
  2522. <span class="tp-clearfix" style="height:25px"></span>
  2523. <!-- THE VIDEO PERFORMANCE MESSING -->
  2524. <span class="tp-monitor-performance-title"><?php echo __("Video Performance",'revslider'); ?></span>
  2525. <span class="tp-monitor-performace-wrap">
  2526. <span id="video-performace-bar" style="width:50%" class="tp-monitor-performance-bar mo-neutral-col"></span>
  2527. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2528. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2529. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2530. </span>
  2531. <span class="tp-clearfix" style="height:35px"></span>
  2532. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2533. <span style="float:left;width:40%; display:block">
  2534. <span class="tp-monitor-smalllabel"><?php echo __("Videos Loaded (max):",'revslider'); ?></span>
  2535. <?php if ($video_size>0) {?>
  2536. <span class="tp-monitor-imageicon"></span>
  2537. <span id="video_sub_size" class="tp-monitor-total-subsize"><?php echo size_format($video_size,2); ?></span>
  2538. <?php } else {?>
  2539. <span class="tp-monitor-imageicon"></span>
  2540. <span class="tp-monitor-total-subsize"><?php echo __("Unknown",'revslider'); ?></span>
  2541. <?php } ?>
  2542. </span>
  2543. <span style="float:left;width:60%; text-align:right;">
  2544. <span class="tp-monitor-showdetails" data-target="#monitor-video-details" data-open="</span><?php echo __("Hide Details",'revslider'); ?>" data-close="</span><?php echo __("Show Details",'revslider'); ?>"><span class="tp-monitor-openclose"></span><span class="tp-show-inner-btn"><?php echo __("Show Details",'revslider'); ?></span></span>
  2545. </span>
  2546. <span class="tp-clearfix" style="height:15px"></span>
  2547. <ul class="tp-monitor-list" id="monitor-video-details" style="margin-bottom:15px;display:none;">
  2548. <?php
  2549. foreach($used_videos as $path => $video){
  2550. $_li = '<li class="tp-monitor-listli">';
  2551. if(isset($video['size'])){
  2552. $_li .= ' <span class="tp-monitor-neutral"></span>';
  2553. if ($video['size']>1000000)
  2554. $_li .= '<span class="tp-monitor-size">'.size_format($video['size'],2).'</span>';
  2555. else
  2556. $_li .= '<span class="tp-monitor-size">'.size_format($video['size'],0).'</span>';
  2557. }else{
  2558. if($video['id'] == 'external'){
  2559. $_li .= '<span class="tp-monitor-neutral"></span><span class="tp-monitor-size">'.__('extern', 'revslider').'</span>';
  2560. }else{
  2561. $_li .= '<span class="tp-monitor-warning"></span><span class="tp-monitor-size">'.__('missing', 'revslider').'</span>';
  2562. }
  2563. }
  2564. $_li .= '<span class="tp-monitor-file">';
  2565. if(!isset($video['info']['basename']) || empty($video['info']['basename'])){
  2566. $_li .= '...'.substr($path,-20);
  2567. }else{
  2568. $_li .= substr($video['info']['basename'],-20);
  2569. }
  2570. $_li .= '</span>';
  2571. if(isset($image['url'])) {
  2572. $_li .= ' <a href="'.$video['url'].'" target="_blank" class="tp-monitor-linktoslide"></a>';
  2573. }
  2574. $_li .= '</li>';
  2575. if (!isset($video['size']) && !$video['id'] == 'external')
  2576. $issues .= $_li;
  2577. echo $_li;
  2578. }
  2579. ?>
  2580. </ul>
  2581. <?php
  2582. }
  2583. $css_size = 0;
  2584. ?>
  2585. <span class="tp-clearfix" style="height:15px"></span>
  2586. <hr>
  2587. <span class="tp-clearfix" style="height:25px"></span>
  2588. <!-- THE IMAGE PERFORMANCE MESSING -->
  2589. <span class="tp-monitor-performance-title"><?php echo __("CSS Performance",'revslider'); ?></span>
  2590. <span class="tp-monitor-performace-wrap">
  2591. <span id="image-performace-bar" style="width:%css_performance%%" class="tp-monitor-performance-bar mo-%css_color%-col"></span>
  2592. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2593. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2594. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2595. </span>
  2596. <span class="tp-clearfix" style="height:35px"></span>
  2597. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2598. <span style="float:left;width:40%">
  2599. <span class="tp-monitor-smalllabel"><?php echo __("CSS Loaded:",'revslider'); ?></span>
  2600. <span class="tp-monitor-cssicon"></span><span id="css_sub_size" class="tp-monitor-total-subsize">%css_size%</span>
  2601. </span>
  2602. <span style="float:left;width:60%; text-align:right;">
  2603. <span class="tp-monitor-showdetails" data-target="#monitor-CSS-details" data-open="</span><?php echo __("Hide Details",'revslider'); ?>" data-close="</span><?php echo __("Show Details",'revslider'); ?>"><span class="tp-monitor-openclose"></span><span class="tp-show-inner-btn"><?php echo __("Show Details",'revslider'); ?></span></span>
  2604. </span>
  2605. <span class="tp-clearfix" style="height:15px"></span>
  2606. <?php
  2607. //get css files
  2608. echo '<ul class="tp-monitor-list" id="monitor-CSS-details" style="margin-bottom:15px;display:none;">';
  2609. if(file_exists( RS_PLUGIN_PATH . '/public/assets/css/settings.css' )){
  2610. $fs = filesize( RS_PLUGIN_PATH . '/public/assets/css/settings.css' );
  2611. $_li ='<li class="tp-monitor-listli">';
  2612. if ($fs<60000)
  2613. $_li .= '<span class="tp-monitor-good"></span>';
  2614. else
  2615. if ($fs<100000)
  2616. $_li .= '<span class="tp-monitor-well"></span>';
  2617. else
  2618. $_li .= '<span class="tp-monitor-warning"></span>';
  2619. $_li .= '<span class="tp-monitor-size">'.size_format($fs,0).'</span>';
  2620. $_li .= '<span class="tp-monitor-file">';
  2621. $_li .= __('css/settings.css','revslider');
  2622. $_li .= '</span>';
  2623. $_li .= '</li>';
  2624. if ($fs>99999)
  2625. $issues .=$_li;
  2626. echo $_li;
  2627. $total_size += $fs;
  2628. $css_size += $fs;
  2629. }
  2630. /*$custom_css = RevSliderOperations::getStaticCss();
  2631. $custom_css = RevSliderCssParser::compress_css($custom_css);
  2632. $_li = '<li class="tp-monitor-listli">';
  2633. if (strlen($custom_css)<50000)
  2634. $_li .= '<span class="tp-monitor-good"></span>';
  2635. else
  2636. if (strlen($custom_css)<100000)
  2637. $_li .= '<span class="tp-monitor-well"></span>';
  2638. else
  2639. $_li .= '<span class="tp-monitor-warning"></span>';
  2640. $_li .= '<span class="tp-monitor-size">'.size_format(strlen($custom_css),0).'</span>';
  2641. $_li .= '<span class="tp-monitor-file">';
  2642. $_li .= __('Static Styles','revslider');
  2643. $_li .= '</span>';
  2644. $_li .= '</li>';
  2645. if(strlen($custom_css)>49999)
  2646. $issues .=$_li;
  2647. echo $_li;
  2648. $total_size += strlen($custom_css);
  2649. $css_size += strlen($custom_css);
  2650. */
  2651. if(!empty($used_captions)){
  2652. $captions = array();
  2653. foreach($used_captions as $class => $val){
  2654. $cap = RevSliderOperations::getCaptionsContentArray($class);
  2655. if(!empty($cap))
  2656. $captions[] = $cap;
  2657. }
  2658. $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
  2659. $styles = RevSliderCssParser::compress_css($styles);
  2660. $_li = '<li class="tp-monitor-listli">';
  2661. if (strlen($styles)<50000)
  2662. $_li .= '<span class="tp-monitor-good"></span>';
  2663. else
  2664. if (strlen($styles)<100000)
  2665. $_li .= '<span class="tp-monitor-well"></span>';
  2666. else
  2667. $_li .= '<span class="tp-monitor-warning"></span>';
  2668. $_li .= '<span class="tp-monitor-size">'.size_format(strlen($styles),0).'</span>';
  2669. $_li .= '<span class="tp-monitor-file">';
  2670. $_li .= __('Dynamic Styles','revslider');
  2671. $_li .= '</span>';
  2672. $_li .= '</li>';
  2673. if (strlen($styles)>49999)
  2674. $issues .=$_li;
  2675. echo $_li;
  2676. $total_size += strlen($styles);
  2677. $css_size += strlen($styles);
  2678. }
  2679. echo '</ul>';
  2680. echo ' <span style="display:none" id="css-size-hidden">'.size_format($css_size, 2).'</span>';
  2681. $js_size = 0;
  2682. ?>
  2683. <span class="tp-clearfix" style="height:15px"></span>
  2684. <hr>
  2685. <span class="tp-clearfix" style="height:25px"></span>
  2686. <!-- THE jQuery PERFORMANCE MESSING -->
  2687. <span class="tp-monitor-performance-title"><?php echo __("jQuery Performance",'revslider'); ?></span>
  2688. <span class="tp-monitor-performace-wrap">
  2689. <span id="video-performace-bar" style="width:%js_performance%%" class="tp-monitor-performance-bar mo-%js_color%-col"></span>
  2690. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2691. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2692. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2693. </span>
  2694. <span class="tp-clearfix" style="height:35px"></span>
  2695. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2696. <span style="float:left;width:40%; display:block">
  2697. <span class="tp-monitor-smalllabel"><?php echo __("jQuery Loaded:",'revslider'); ?></span>
  2698. <span class="tp-monitor-imageicon"></span><span id="jquery_sub_size" class="tp-monitor-total-subsize">%js_size%</span>
  2699. </span>
  2700. <span style="float:left;width:60%; text-align:right;">
  2701. <span class="tp-monitor-showdetails" data-target="#monitor-jquery-details" data-open="</span><?php echo __("Hide Details",'revslider'); ?>" data-close="</span><?php echo __("Show Details",'revslider'); ?>"><span class="tp-monitor-openclose"></span><span class="tp-show-inner-btn"><?php echo __("Show Details",'revslider'); ?></span></span>
  2702. </span>
  2703. <span class="tp-clearfix" style="height:15px"></span>
  2704. <?php
  2705. echo '<ul class="tp-monitor-list" id="monitor-jquery-details" style="margin-bottom:15px;display:none">';
  2706. $jsfiles = array(
  2707. 'jquery.themepunch.tools.min.js' => RS_PLUGIN_PATH . '/public/assets/js/jquery.themepunch.tools.min.js',
  2708. 'jquery.themepunch.revolution.min.js' => RS_PLUGIN_PATH . '/public/assets/js/jquery.themepunch.revolution.min.js',
  2709. );
  2710. //check which js files will be used by the Slider
  2711. if($using_kenburns == true) $jsfiles['revolution.extension.kenburn.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.kenburn.min.js';
  2712. if($using_parallax == true) $jsfiles['revolution.extension.parallax.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.parallax.js';
  2713. if($using_navigation == true) $jsfiles['revolution.extension.navigation.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.navigation.min.js';
  2714. if($using_videos == true) $jsfiles['revolution.extension.video.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.video.min.js';
  2715. if($using_actions == true) $jsfiles['revolution.extension.actions.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.actions.min.js';
  2716. if($using_layeranim == true) $jsfiles['revolution.extension.layeranimation.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.layeranimation.min.js';
  2717. if($using_carousel == true)
  2718. $jsfiles['revolution.extension.carousel.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.carousel.min.js';
  2719. else
  2720. $jsfiles['revolution.extension.slideanims.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.slideanims.min.js';
  2721. //get the js files
  2722. foreach($jsfiles as $name => $path){
  2723. if(file_exists( $path )){
  2724. $fs = filesize( $path );
  2725. echo '<li class="tp-monitor-listli">';
  2726. echo '<span class="tp-monitor-good"></span>';
  2727. echo '<span class="tp-monitor-size">'.size_format($fs,0).'</span>';
  2728. echo '<span class="tp-monitor-file">';
  2729. echo $name;
  2730. echo '</span>';
  2731. echo '</li>';
  2732. $total_size += $fs;
  2733. $js_size += $fs;
  2734. }
  2735. }
  2736. echo '</ul>';
  2737. echo ' <span style="display:none" id="css-size-hidden">'.size_format($js_size, 2).'</span>';
  2738. $http = (is_ssl()) ? 'https' : 'http';
  2739. $operations = new RevSliderOperations();
  2740. $arrValues = $operations->getGeneralSettingsValues();
  2741. $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
  2742. if($set_diff_font !== ''){
  2743. $font_url = $set_diff_font;
  2744. }else{
  2745. $font_url = $http.'://fonts.googleapis.com/css?family=';
  2746. }
  2747. $my_fonts = $slider->getParam('google_font', array());
  2748. ?>
  2749. <span class="tp-clearfix" style="height:15px"></span>
  2750. <hr>
  2751. <span class="tp-clearfix" style="height:25px"></span>
  2752. <!-- THE Fonts PERFORMANCE MESSING -->
  2753. <span class="tp-monitor-performance-title"><?php echo __("Google Fonts Performance",'revslider'); ?></span>
  2754. <span class="tp-monitor-performace-wrap">
  2755. <span id="video-performace-bar" style="width:%font_performance%%" class="tp-monitor-performance-bar mo-%font_color%-col"></span>
  2756. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2757. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2758. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2759. </span>
  2760. <span class="tp-clearfix" style="height:35px"></span>
  2761. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2762. <span style="float:left;width:40%; display:block">
  2763. <span class="tp-monitor-smalllabel"><?php echo __("Fonts Loaded:",'revslider'); ?></span>
  2764. <span class="tp-monitor-jsicon"></span><span class="tp-monitor-total-subsize">%font_size%</span>
  2765. </span>
  2766. <span style="float:left;width:60%; text-align:right;">
  2767. <span class="tp-monitor-showdetails" data-target="#monitor-fonts-details" data-open="</span><?php echo __("Hide Details",'revslider'); ?>" data-close="</span><?php echo __("Show Details",'revslider'); ?>"><span class="tp-monitor-openclose"></span><span class="tp-show-inner-btn"><?php echo __("Show Details",'revslider'); ?></span></span>
  2768. </span>
  2769. <span class="tp-clearfix" style="height:15px"></span>
  2770. <?php
  2771. //echo '<span class="tp-monitor-smalllabel">'.$font_url.'</span>';
  2772. echo '<ul class="tp-monitor-list" id="monitor-fonts-details" style="margin-bottom:15px;display:none">';
  2773. $all_font_count = 0;
  2774. if(!empty($my_fonts)){
  2775. foreach($my_fonts as $c_font){
  2776. $fcount = RevSliderBase::get_font_weight_count($c_font);
  2777. $_li = '<li class="tp-monitor-listli">';
  2778. if ($fcount<4)
  2779. $_li .= '<span class="tp-monitor-good"></span>';
  2780. else
  2781. if ($fcount<7)
  2782. $_li .= '<span class="tp-monitor-well"></span>';
  2783. else
  2784. $_li .= '<span class="tp-monitor-warning"></span>';
  2785. $_li .= '<span class="tp-monitor-file">';
  2786. $_li .= strip_tags($c_font);
  2787. $_li .= '</span>';
  2788. $_li .= '</li>';
  2789. if ($fcount > 4)
  2790. $issues .= $_li;
  2791. echo $_li;
  2792. $all_font_count += $fcount;
  2793. }
  2794. }
  2795. echo '</ul>';
  2796. ?>
  2797. </div><!-- END OF OVERALL Div-->
  2798. <script>
  2799. jQuery(document).on("ready",function() {
  2800. jQuery('body').on('click','.tp-monitor-showdetails',function() {
  2801. var bt = jQuery(this);
  2802. if (bt.hasClass("selected")) {
  2803. bt.find('.tp-show-inner-btn').html(bt.data('close'));
  2804. bt.removeClass("selected");
  2805. jQuery(bt.data('target')).slideUp(200);
  2806. } else {
  2807. bt.find('.tp-show-inner-btn').html(bt.data('open'));
  2808. bt.addClass("selected");
  2809. jQuery(bt.data('target')).slideDown(200);
  2810. }
  2811. })
  2812. })
  2813. </script>
  2814. <?php
  2815. $content = ob_get_contents();
  2816. ob_end_clean();
  2817. if ($img_counter ==0) $img_counter = 1;
  2818. if ($slide_counter ==0) $slide_counter = 1;
  2819. $overall = RevSliderOperations::get_performance($total_size/$slide_counter, 0,400000); // 400KB / Slide is ok
  2820. $image = RevSliderOperations::get_performance($img_size/$img_counter, 0,100000); // 100KB Image OK
  2821. $css = RevSliderOperations::get_performance($css_size, 0,150000); // 150KB CSS OK
  2822. $js = RevSliderOperations::get_performance($js_size, 0,250000); // 250KB Image OK
  2823. $font = RevSliderOperations::get_performance($all_font_count, 0,15); // 250KB Image OK
  2824. $firstslide_size += $js_size;
  2825. $firstslide_size += $css_size;
  2826. $smartslide_size += $js_size;
  2827. $smartslide_size += $css_size;
  2828. $content = str_replace("%overall_performance%",$overall["proc"],$content);
  2829. $content = str_replace("%overall_color%",$overall["col"],$content);
  2830. $content = str_replace("%overall_size%",size_format($total_size,2),$content);
  2831. $content = str_replace("%image_performance%",$image["proc"],$content);
  2832. $content = str_replace("%image_color%",$image["col"],$content);
  2833. $content = str_replace("%css_performance%",$css["proc"],$content);
  2834. $content = str_replace("%css_color%",$css["col"],$content);
  2835. $content = str_replace("%css_size%",size_format($css_size,2),$content);
  2836. $content = str_replace("%js_performance%",$js["proc"],$content);
  2837. $content = str_replace("%js_color%",$js["col"],$content);
  2838. $content = str_replace("%js_size%",size_format($js_size,2),$content);
  2839. $content = str_replace("%font_performance%",$font["proc"],$content);
  2840. $content = str_replace("%font_color%",$font["col"],$content);
  2841. $content = str_replace("%font_size%",$all_font_count,$content);
  2842. $content = str_replace("%issues%", $issues, $content);
  2843. $content = str_replace("%firstslide_size%", size_format($firstslide_size,2), $content);
  2844. $content = str_replace("%smartslide_size%", size_format($smartslide_size,2), $content);
  2845. $content = str_replace("%allslide_size%", size_format($total_size,2), $content);
  2846. $total_size = $total_size / 1000;
  2847. $content = str_replace("%umtsspeed-all%", gmdate('i:s',$total_size/48), $content);
  2848. $content = str_replace("%dslspeed-all%", gmdate('i:s',$total_size/307), $content);
  2849. $content = str_replace("%t1speed-all%", gmdate('i:s',$total_size/1180), $content);
  2850. $firstslide_size = $firstslide_size / 1000;
  2851. $content = str_replace("%umtsspeed-single%", gmdate('i:s',$firstslide_size/48), $content);
  2852. $content = str_replace("%dslspeed-single%", gmdate('i:s',$firstslide_size/307), $content);
  2853. $content = str_replace("%t1speed-single%", gmdate('i:s',$firstslide_size/1180), $content);
  2854. $smartslide_size = $smartslide_size / 1000;
  2855. $content = str_replace("%umtsspeed-smart%", gmdate('i:s',$smartslide_size/48), $content);
  2856. $content = str_replace("%dslspeed-smart%", gmdate('i:s',$smartslide_size/307), $content);
  2857. $content = str_replace("%t1speed-smart%", gmdate('i:s',$smartslide_size/1180), $content);
  2858. echo $content;
  2859. }
  2860. /**
  2861. * these are the specific slider settings, which the user can switch between, for easier usage
  2862. * @since: 5.0
  2863. */
  2864. public static function get_preset_settings(){
  2865. $presets = array();
  2866. //ThemePunch default presets are added here directly
  2867. //preset -> standardpreset || heropreset || carouselpreset
  2868. $presets[] = array (
  2869. 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Auto', 'preset' => 'standardpreset' ),
  2870. 'values' =>
  2871. array (
  2872. 'next_slide_on_window_focus' => 'off',
  2873. 'delay' => '9000',
  2874. 'start_js_after_delay' => '0',
  2875. 'image_source_type' => 'full',
  2876. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  2877. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  2878. //data.layertype - Layer Type (image,video,html)
  2879. //data.layersettings - Default Settings for Layer
  2880. //data.layer - Layer as jQuery Object
  2881. });',
  2882. 'start_with_slide' => '1',
  2883. 'stop_on_hover' => 'on',
  2884. 'stop_slider' => 'off',
  2885. 'stop_after_loops' => '0',
  2886. 'stop_at_slide' => '1',
  2887. 'shuffle' => 'off',
  2888. 'viewport_start' => 'wait',
  2889. 'viewport_area' => '80',
  2890. 'enable_progressbar' => 'on',
  2891. 'background_dotted_overlay' => 'none',
  2892. 'background_color' => 'transparent',
  2893. 'padding' => '0',
  2894. 'show_background_image' => 'off',
  2895. 'background_image' => '',
  2896. 'bg_fit' => 'cover',
  2897. 'bg_repeat' => 'no-repeat',
  2898. 'bg_position' => 'center center',
  2899. 'position' => 'center',
  2900. 'use_spinner' => '-1',
  2901. 'spinner_color' => '#FFFFFF',
  2902. 'enable_arrows' => 'on',
  2903. 'navigation_arrow_style' => 'round',
  2904. 'arrows_always_on' => 'true',
  2905. 'hide_arrows' => '200',
  2906. 'hide_arrows_mobile' => '1200',
  2907. 'hide_arrows_on_mobile' => 'on',
  2908. 'arrows_under_hidden' => '600',
  2909. 'hide_arrows_over' => 'off',
  2910. 'arrows_over_hidden' => '0',
  2911. 'leftarrow_align_hor' => 'left',
  2912. 'leftarrow_align_vert' => 'center',
  2913. 'leftarrow_offset_hor' => '30',
  2914. 'leftarrow_offset_vert' => '0',
  2915. 'rightarrow_align_hor' => 'right',
  2916. 'rightarrow_align_vert' => 'center',
  2917. 'rightarrow_offset_hor' => '30',
  2918. 'rightarrow_offset_vert' => '0',
  2919. 'enable_bullets' => 'on',
  2920. 'navigation_bullets_style' => 'round-old',
  2921. 'bullets_space' => '5',
  2922. 'bullets_direction' => 'horizontal',
  2923. 'bullets_always_on' => 'true',
  2924. 'hide_bullets' => '200',
  2925. 'hide_bullets_mobile' => '1200',
  2926. 'hide_bullets_on_mobile' => 'on',
  2927. 'bullets_under_hidden' => '600',
  2928. 'hide_bullets_over' => 'off',
  2929. 'bullets_over_hidden' => '0',
  2930. 'bullets_align_hor' => 'center',
  2931. 'bullets_align_vert' => 'bottom',
  2932. 'bullets_offset_hor' => '0',
  2933. 'bullets_offset_vert' => '30',
  2934. 'enable_thumbnails' => 'off',
  2935. 'thumbnails_padding' => '5',
  2936. 'span_thumbnails_wrapper' => 'off',
  2937. 'thumbnails_wrapper_color' => 'transparent',
  2938. 'thumbnails_wrapper_opacity' => '100',
  2939. 'thumbnails_style' => 'round',
  2940. 'thumb_amount' => '5',
  2941. 'thumbnails_space' => '5',
  2942. 'thumbnail_direction' => 'horizontal',
  2943. 'thumb_width' => '100',
  2944. 'thumb_height' => '50',
  2945. 'thumb_width_min' => '100',
  2946. 'thumbs_always_on' => 'false',
  2947. 'hide_thumbs' => '200',
  2948. 'hide_thumbs_mobile' => '1200',
  2949. 'hide_thumbs_on_mobile' => 'off',
  2950. 'thumbs_under_hidden' => '0',
  2951. 'hide_thumbs_over' => 'off',
  2952. 'thumbs_over_hidden' => '0',
  2953. 'thumbnails_inner_outer' => 'inner',
  2954. 'thumbnails_align_hor' => 'center',
  2955. 'thumbnails_align_vert' => 'bottom',
  2956. 'thumbnails_offset_hor' => '0',
  2957. 'thumbnails_offset_vert' => '20',
  2958. 'enable_tabs' => 'off',
  2959. 'tabs_padding' => '5',
  2960. 'span_tabs_wrapper' => 'off',
  2961. 'tabs_wrapper_color' => 'transparent',
  2962. 'tabs_wrapper_opacity' => '5',
  2963. 'tabs_style' => '',
  2964. 'tabs_amount' => '5',
  2965. 'tabs_space' => '5',
  2966. 'tabs_direction' => 'horizontal',
  2967. 'tabs_width' => '100',
  2968. 'tabs_height' => '50',
  2969. 'tabs_width_min' => '100',
  2970. 'tabs_always_on' => 'false',
  2971. 'hide_tabs' => '200',
  2972. 'hide_tabs_mobile' => '1200',
  2973. 'hide_tabs_on_mobile' => 'off',
  2974. 'tabs_under_hidden' => '0',
  2975. 'hide_tabs_over' => 'off',
  2976. 'tabs_over_hidden' => '0',
  2977. 'tabs_inner_outer' => 'inner',
  2978. 'tabs_align_hor' => 'center',
  2979. 'tabs_align_vert' => 'bottom',
  2980. 'tabs_offset_hor' => '0',
  2981. 'tabs_offset_vert' => '20',
  2982. 'touchenabled' => 'on',
  2983. 'drag_block_vertical' => 'off',
  2984. 'swipe_velocity' => '75',
  2985. 'swipe_min_touches' => '50',
  2986. 'swipe_direction' => 'horizontal',
  2987. 'keyboard_navigation' => 'off',
  2988. 'keyboard_direction' => 'horizontal',
  2989. 'mousescroll_navigation' => 'off',
  2990. 'carousel_infinity' => 'off',
  2991. 'carousel_space' => '0',
  2992. 'carousel_borderr' => '0',
  2993. 'carousel_borderr_unit' => 'px',
  2994. 'carousel_padding_top' => '0',
  2995. 'carousel_padding_bottom' => '0',
  2996. 'carousel_maxitems' => '3',
  2997. 'carousel_stretch' => 'off',
  2998. 'carousel_fadeout' => 'on',
  2999. 'carousel_varyfade' => 'off',
  3000. 'carousel_rotation' => 'off',
  3001. 'carousel_varyrotate' => 'off',
  3002. 'carousel_maxrotation' => '0',
  3003. 'carousel_scale' => 'off',
  3004. 'carousel_varyscale' => 'off',
  3005. 'carousel_scaledown' => '50',
  3006. 'carousel_hposition' => 'center',
  3007. 'carousel_vposition' => 'center',
  3008. 'use_parallax' => 'on',
  3009. 'disable_parallax_mobile' => 'off',
  3010. 'parallax_type' => 'mouse',
  3011. 'parallax_origo' => 'slidercenter',
  3012. 'parallax_speed' => '2000',
  3013. 'parallax_level_1' => '2',
  3014. 'parallax_level_2' => '3',
  3015. 'parallax_level_3' => '4',
  3016. 'parallax_level_4' => '5',
  3017. 'parallax_level_5' => '6',
  3018. 'parallax_level_6' => '7',
  3019. 'parallax_level_7' => '12',
  3020. 'parallax_level_8' => '16',
  3021. 'parallax_level_9' => '10',
  3022. 'parallax_level_10' => '50',
  3023. 'lazy_load_type' => 'smart',
  3024. 'seo_optimization' => 'none',
  3025. 'simplify_ie8_ios4' => 'off',
  3026. 'show_alternative_type' => 'off',
  3027. 'show_alternate_image' => '',
  3028. 'jquery_noconflict' => 'off',
  3029. 'js_to_body' => 'false',
  3030. 'output_type' => 'none',
  3031. 'jquery_debugmode' => 'off',
  3032. 'slider_type' => 'auto',
  3033. 'width' => '1240',
  3034. 'width_notebook' => '1024',
  3035. 'width_tablet' => '778',
  3036. 'width_mobile' => '480',
  3037. 'height' => '600',
  3038. 'height_notebook' => '600',
  3039. 'height_tablet' => '500',
  3040. 'height_mobile' => '400',
  3041. 'enable_custom_size_notebook' => 'on',
  3042. 'enable_custom_size_tablet' => 'on',
  3043. 'enable_custom_size_iphone' => 'on',
  3044. 'main_overflow_hidden' => 'off',
  3045. 'auto_height' => 'off',
  3046. 'min_height' => '',
  3047. 'custom_javascript' => '',
  3048. 'custom_css' => '',
  3049. ),
  3050. );
  3051. $presets[] = array (
  3052. 'settings' =>
  3053. array ( 'class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Width', 'preset' => 'standardpreset' ),
  3054. 'values' =>
  3055. array (
  3056. 'next_slide_on_window_focus' => 'off',
  3057. 'delay' => '9000',
  3058. 'start_js_after_delay' => '0',
  3059. 'image_source_type' => 'full',
  3060. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3061. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3062. //data.layertype - Layer Type (image,video,html)
  3063. //data.layersettings - Default Settings for Layer
  3064. //data.layer - Layer as jQuery Object
  3065. });',
  3066. 'start_with_slide' => '1',
  3067. 'stop_on_hover' => 'on',
  3068. 'stop_slider' => 'off',
  3069. 'stop_after_loops' => '0',
  3070. 'stop_at_slide' => '1',
  3071. 'shuffle' => 'off',
  3072. 'viewport_start' => 'wait',
  3073. 'viewport_area' => '80',
  3074. 'enable_progressbar' => 'on',
  3075. 'background_dotted_overlay' => 'none',
  3076. 'background_color' => 'transparent',
  3077. 'padding' => '0',
  3078. 'show_background_image' => 'off',
  3079. 'background_image' => '',
  3080. 'bg_fit' => 'cover',
  3081. 'bg_repeat' => 'no-repeat',
  3082. 'bg_position' => 'center center',
  3083. 'position' => 'center',
  3084. 'use_spinner' => '-1',
  3085. 'spinner_color' => '#FFFFFF',
  3086. 'enable_arrows' => 'on',
  3087. 'navigation_arrow_style' => 'round',
  3088. 'arrows_always_on' => 'true',
  3089. 'hide_arrows' => '200',
  3090. 'hide_arrows_mobile' => '1200',
  3091. 'hide_arrows_on_mobile' => 'on',
  3092. 'arrows_under_hidden' => '600',
  3093. 'hide_arrows_over' => 'off',
  3094. 'arrows_over_hidden' => '0',
  3095. 'leftarrow_align_hor' => 'left',
  3096. 'leftarrow_align_vert' => 'center',
  3097. 'leftarrow_offset_hor' => '30',
  3098. 'leftarrow_offset_vert' => '0',
  3099. 'rightarrow_align_hor' => 'right',
  3100. 'rightarrow_align_vert' => 'center',
  3101. 'rightarrow_offset_hor' => '30',
  3102. 'rightarrow_offset_vert' => '0',
  3103. 'enable_bullets' => 'on',
  3104. 'navigation_bullets_style' => 'round-old',
  3105. 'bullets_space' => '5',
  3106. 'bullets_direction' => 'horizontal',
  3107. 'bullets_always_on' => 'true',
  3108. 'hide_bullets' => '200',
  3109. 'hide_bullets_mobile' => '1200',
  3110. 'hide_bullets_on_mobile' => 'on',
  3111. 'bullets_under_hidden' => '600',
  3112. 'hide_bullets_over' => 'off',
  3113. 'bullets_over_hidden' => '0',
  3114. 'bullets_align_hor' => 'center',
  3115. 'bullets_align_vert' => 'bottom',
  3116. 'bullets_offset_hor' => '0',
  3117. 'bullets_offset_vert' => '30',
  3118. 'enable_thumbnails' => 'off',
  3119. 'thumbnails_padding' => '5',
  3120. 'span_thumbnails_wrapper' => 'off',
  3121. 'thumbnails_wrapper_color' => 'transparent',
  3122. 'thumbnails_wrapper_opacity' => '100',
  3123. 'thumbnails_style' => 'round',
  3124. 'thumb_amount' => '5',
  3125. 'thumbnails_space' => '5',
  3126. 'thumbnail_direction' => 'horizontal',
  3127. 'thumb_width' => '100',
  3128. 'thumb_height' => '50',
  3129. 'thumb_width_min' => '100',
  3130. 'thumbs_always_on' => 'false',
  3131. 'hide_thumbs' => '200',
  3132. 'hide_thumbs_mobile' => '1200',
  3133. 'hide_thumbs_on_mobile' => 'off',
  3134. 'thumbs_under_hidden' => '0',
  3135. 'hide_thumbs_over' => 'off',
  3136. 'thumbs_over_hidden' => '0',
  3137. 'thumbnails_inner_outer' => 'inner',
  3138. 'thumbnails_align_hor' => 'center',
  3139. 'thumbnails_align_vert' => 'bottom',
  3140. 'thumbnails_offset_hor' => '0',
  3141. 'thumbnails_offset_vert' => '20',
  3142. 'enable_tabs' => 'off',
  3143. 'tabs_padding' => '5',
  3144. 'span_tabs_wrapper' => 'off',
  3145. 'tabs_wrapper_color' => 'transparent',
  3146. 'tabs_wrapper_opacity' => '5',
  3147. 'tabs_style' => '',
  3148. 'tabs_amount' => '5',
  3149. 'tabs_space' => '5',
  3150. 'tabs_direction' => 'horizontal',
  3151. 'tabs_width' => '100',
  3152. 'tabs_height' => '50',
  3153. 'tabs_width_min' => '100',
  3154. 'tabs_always_on' => 'false',
  3155. 'hide_tabs' => '200',
  3156. 'hide_tabs_mobile' => '1200',
  3157. 'hide_tabs_on_mobile' => 'off',
  3158. 'tabs_under_hidden' => '0',
  3159. 'hide_tabs_over' => 'off',
  3160. 'tabs_over_hidden' => '0',
  3161. 'tabs_inner_outer' => 'inner',
  3162. 'tabs_align_hor' => 'center',
  3163. 'tabs_align_vert' => 'bottom',
  3164. 'tabs_offset_hor' => '0',
  3165. 'tabs_offset_vert' => '20',
  3166. 'touchenabled' => 'on',
  3167. 'drag_block_vertical' => 'off',
  3168. 'swipe_velocity' => '75',
  3169. 'swipe_min_touches' => '50',
  3170. 'swipe_direction' => 'horizontal',
  3171. 'keyboard_navigation' => 'off',
  3172. 'keyboard_direction' => 'horizontal',
  3173. 'mousescroll_navigation' => 'off',
  3174. 'carousel_infinity' => 'off',
  3175. 'carousel_space' => '0',
  3176. 'carousel_borderr' => '0',
  3177. 'carousel_borderr_unit' => 'px',
  3178. 'carousel_padding_top' => '0',
  3179. 'carousel_padding_bottom' => '0',
  3180. 'carousel_maxitems' => '3',
  3181. 'carousel_stretch' => 'off',
  3182. 'carousel_fadeout' => 'on',
  3183. 'carousel_varyfade' => 'off',
  3184. 'carousel_rotation' => 'off',
  3185. 'carousel_varyrotate' => 'off',
  3186. 'carousel_maxrotation' => '0',
  3187. 'carousel_scale' => 'off',
  3188. 'carousel_varyscale' => 'off',
  3189. 'carousel_scaledown' => '50',
  3190. 'carousel_hposition' => 'center',
  3191. 'carousel_vposition' => 'center',
  3192. 'use_parallax' => 'on',
  3193. 'disable_parallax_mobile' => 'off',
  3194. 'parallax_type' => 'mouse',
  3195. 'parallax_origo' => 'slidercenter',
  3196. 'parallax_speed' => '2000',
  3197. 'parallax_level_1' => '2',
  3198. 'parallax_level_2' => '3',
  3199. 'parallax_level_3' => '4',
  3200. 'parallax_level_4' => '5',
  3201. 'parallax_level_5' => '6',
  3202. 'parallax_level_6' => '7',
  3203. 'parallax_level_7' => '12',
  3204. 'parallax_level_8' => '16',
  3205. 'parallax_level_9' => '10',
  3206. 'parallax_level_10' => '50',
  3207. 'lazy_load_type' => 'smart',
  3208. 'seo_optimization' => 'none',
  3209. 'simplify_ie8_ios4' => 'off',
  3210. 'show_alternative_type' => 'off',
  3211. 'show_alternate_image' => '',
  3212. 'jquery_noconflict' => 'off',
  3213. 'js_to_body' => 'false',
  3214. 'output_type' => 'none',
  3215. 'jquery_debugmode' => 'off',
  3216. 'slider_type' => 'fullwidth',
  3217. 'width' => '1240',
  3218. 'width_notebook' => '1024',
  3219. 'width_tablet' => '778',
  3220. 'width_mobile' => '480',
  3221. 'height' => '600',
  3222. 'height_notebook' => '600',
  3223. 'height_tablet' => '500',
  3224. 'height_mobile' => '400',
  3225. 'enable_custom_size_notebook' => 'on',
  3226. 'enable_custom_size_tablet' => 'on',
  3227. 'enable_custom_size_iphone' => 'on',
  3228. 'main_overflow_hidden' => 'off',
  3229. 'auto_height' => 'off',
  3230. 'min_height' => '',
  3231. 'custom_javascript' => '',
  3232. 'custom_css' => '',
  3233. ),
  3234. );
  3235. $presets[] = array (
  3236. 'settings' =>
  3237. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Screen', 'preset' => 'standardpreset' ),
  3238. 'values' =>
  3239. array (
  3240. 'next_slide_on_window_focus' => 'off',
  3241. 'delay' => '9000',
  3242. 'start_js_after_delay' => '0',
  3243. 'image_source_type' => 'full',
  3244. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3245. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3246. //data.layertype - Layer Type (image,video,html)
  3247. //data.layersettings - Default Settings for Layer
  3248. //data.layer - Layer as jQuery Object
  3249. });',
  3250. 'start_with_slide' => '1',
  3251. 'stop_on_hover' => 'on',
  3252. 'stop_slider' => 'off',
  3253. 'stop_after_loops' => '0',
  3254. 'stop_at_slide' => '1',
  3255. 'shuffle' => 'off',
  3256. 'viewport_start' => 'wait',
  3257. 'viewport_area' => '80',
  3258. 'enable_progressbar' => 'on',
  3259. 'background_dotted_overlay' => 'none',
  3260. 'background_color' => 'transparent',
  3261. 'padding' => '0',
  3262. 'show_background_image' => 'off',
  3263. 'background_image' => '',
  3264. 'bg_fit' => 'cover',
  3265. 'bg_repeat' => 'no-repeat',
  3266. 'bg_position' => 'center center',
  3267. 'position' => 'center',
  3268. 'use_spinner' => '-1',
  3269. 'spinner_color' => '#FFFFFF',
  3270. 'enable_arrows' => 'on',
  3271. 'navigation_arrow_style' => 'round',
  3272. 'arrows_always_on' => 'true',
  3273. 'hide_arrows' => '200',
  3274. 'hide_arrows_mobile' => '1200',
  3275. 'hide_arrows_on_mobile' => 'on',
  3276. 'arrows_under_hidden' => '600',
  3277. 'hide_arrows_over' => 'off',
  3278. 'arrows_over_hidden' => '0',
  3279. 'leftarrow_align_hor' => 'left',
  3280. 'leftarrow_align_vert' => 'center',
  3281. 'leftarrow_offset_hor' => '30',
  3282. 'leftarrow_offset_vert' => '0',
  3283. 'rightarrow_align_hor' => 'right',
  3284. 'rightarrow_align_vert' => 'center',
  3285. 'rightarrow_offset_hor' => '30',
  3286. 'rightarrow_offset_vert' => '0',
  3287. 'enable_bullets' => 'on',
  3288. 'navigation_bullets_style' => 'round-old',
  3289. 'bullets_space' => '5',
  3290. 'bullets_direction' => 'horizontal',
  3291. 'bullets_always_on' => 'true',
  3292. 'hide_bullets' => '200',
  3293. 'hide_bullets_mobile' => '1200',
  3294. 'hide_bullets_on_mobile' => 'on',
  3295. 'bullets_under_hidden' => '600',
  3296. 'hide_bullets_over' => 'off',
  3297. 'bullets_over_hidden' => '0',
  3298. 'bullets_align_hor' => 'center',
  3299. 'bullets_align_vert' => 'bottom',
  3300. 'bullets_offset_hor' => '0',
  3301. 'bullets_offset_vert' => '30',
  3302. 'enable_thumbnails' => 'off',
  3303. 'thumbnails_padding' => '5',
  3304. 'span_thumbnails_wrapper' => 'off',
  3305. 'thumbnails_wrapper_color' => 'transparent',
  3306. 'thumbnails_wrapper_opacity' => '100',
  3307. 'thumbnails_style' => 'round',
  3308. 'thumb_amount' => '5',
  3309. 'thumbnails_space' => '5',
  3310. 'thumbnail_direction' => 'horizontal',
  3311. 'thumb_width' => '100',
  3312. 'thumb_height' => '50',
  3313. 'thumb_width_min' => '100',
  3314. 'thumbs_always_on' => 'false',
  3315. 'hide_thumbs' => '200',
  3316. 'hide_thumbs_mobile' => '1200',
  3317. 'hide_thumbs_on_mobile' => 'off',
  3318. 'thumbs_under_hidden' => '0',
  3319. 'hide_thumbs_over' => 'off',
  3320. 'thumbs_over_hidden' => '0',
  3321. 'thumbnails_inner_outer' => 'inner',
  3322. 'thumbnails_align_hor' => 'center',
  3323. 'thumbnails_align_vert' => 'bottom',
  3324. 'thumbnails_offset_hor' => '0',
  3325. 'thumbnails_offset_vert' => '20',
  3326. 'enable_tabs' => 'off',
  3327. 'tabs_padding' => '5',
  3328. 'span_tabs_wrapper' => 'off',
  3329. 'tabs_wrapper_color' => 'transparent',
  3330. 'tabs_wrapper_opacity' => '5',
  3331. 'tabs_style' => '',
  3332. 'tabs_amount' => '5',
  3333. 'tabs_space' => '5',
  3334. 'tabs_direction' => 'horizontal',
  3335. 'tabs_width' => '100',
  3336. 'tabs_height' => '50',
  3337. 'tabs_width_min' => '100',
  3338. 'tabs_always_on' => 'false',
  3339. 'hide_tabs' => '200',
  3340. 'hide_tabs_mobile' => '1200',
  3341. 'hide_tabs_on_mobile' => 'off',
  3342. 'tabs_under_hidden' => '0',
  3343. 'hide_tabs_over' => 'off',
  3344. 'tabs_over_hidden' => '0',
  3345. 'tabs_inner_outer' => 'inner',
  3346. 'tabs_align_hor' => 'center',
  3347. 'tabs_align_vert' => 'bottom',
  3348. 'tabs_offset_hor' => '0',
  3349. 'tabs_offset_vert' => '20',
  3350. 'touchenabled' => 'on',
  3351. 'drag_block_vertical' => 'off',
  3352. 'swipe_velocity' => '75',
  3353. 'swipe_min_touches' => '50',
  3354. 'swipe_direction' => 'horizontal',
  3355. 'keyboard_navigation' => 'off',
  3356. 'keyboard_direction' => 'horizontal',
  3357. 'mousescroll_navigation' => 'off',
  3358. 'carousel_infinity' => 'off',
  3359. 'carousel_space' => '0',
  3360. 'carousel_borderr' => '0',
  3361. 'carousel_borderr_unit' => 'px',
  3362. 'carousel_padding_top' => '0',
  3363. 'carousel_padding_bottom' => '0',
  3364. 'carousel_maxitems' => '3',
  3365. 'carousel_stretch' => 'off',
  3366. 'carousel_fadeout' => 'on',
  3367. 'carousel_varyfade' => 'off',
  3368. 'carousel_rotation' => 'off',
  3369. 'carousel_varyrotate' => 'off',
  3370. 'carousel_maxrotation' => '0',
  3371. 'carousel_scale' => 'off',
  3372. 'carousel_varyscale' => 'off',
  3373. 'carousel_scaledown' => '50',
  3374. 'carousel_hposition' => 'center',
  3375. 'carousel_vposition' => 'center',
  3376. 'use_parallax' => 'on',
  3377. 'disable_parallax_mobile' => 'off',
  3378. 'parallax_type' => 'mouse',
  3379. 'parallax_origo' => 'slidercenter',
  3380. 'parallax_speed' => '2000',
  3381. 'parallax_level_1' => '2',
  3382. 'parallax_level_2' => '3',
  3383. 'parallax_level_3' => '4',
  3384. 'parallax_level_4' => '5',
  3385. 'parallax_level_5' => '6',
  3386. 'parallax_level_6' => '7',
  3387. 'parallax_level_7' => '12',
  3388. 'parallax_level_8' => '16',
  3389. 'parallax_level_9' => '10',
  3390. 'parallax_level_10' => '50',
  3391. 'lazy_load_type' => 'smart',
  3392. 'seo_optimization' => 'none',
  3393. 'simplify_ie8_ios4' => 'off',
  3394. 'show_alternative_type' => 'off',
  3395. 'show_alternate_image' => '',
  3396. 'jquery_noconflict' => 'off',
  3397. 'js_to_body' => 'false',
  3398. 'output_type' => 'none',
  3399. 'jquery_debugmode' => 'off',
  3400. 'slider_type' => 'fullscreen',
  3401. 'width' => '1240',
  3402. 'width_notebook' => '1024',
  3403. 'width_tablet' => '778',
  3404. 'width_mobile' => '480',
  3405. 'height' => '600',
  3406. 'height_notebook' => '600',
  3407. 'height_tablet' => '500',
  3408. 'height_mobile' => '400',
  3409. 'enable_custom_size_notebook' => 'on',
  3410. 'enable_custom_size_tablet' => 'on',
  3411. 'enable_custom_size_iphone' => 'on',
  3412. 'main_overflow_hidden' => 'off',
  3413. 'auto_height' => 'off',
  3414. 'min_height' => '',
  3415. 'custom_javascript' => '',
  3416. 'custom_css' => '',
  3417. ),
  3418. );
  3419. $presets[] = array (
  3420. 'settings' =>
  3421. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumb_auto1.png', 'name' => 'Thumbs-Bottom-Auto', 'preset' => 'standardpreset' ),
  3422. 'values' =>
  3423. array (
  3424. 'next_slide_on_window_focus' => 'off',
  3425. 'delay' => '9000',
  3426. 'start_js_after_delay' => '0',
  3427. 'image_source_type' => 'full',
  3428. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3429. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3430. //data.layertype - Layer Type (image,video,html)
  3431. //data.layersettings - Default Settings for Layer
  3432. //data.layer - Layer as jQuery Object
  3433. });',
  3434. 'start_with_slide' => '1',
  3435. 'stop_on_hover' => 'off',
  3436. 'stop_slider' => 'on',
  3437. 'stop_after_loops' => '0',
  3438. 'stop_at_slide' => '1',
  3439. 'shuffle' => 'off',
  3440. 'viewport_start' => 'wait',
  3441. 'viewport_area' => '80',
  3442. 'enable_progressbar' => 'off',
  3443. 'background_dotted_overlay' => 'none',
  3444. 'background_color' => 'transparent',
  3445. 'padding' => '0',
  3446. 'show_background_image' => 'off',
  3447. 'background_image' => '',
  3448. 'bg_fit' => 'cover',
  3449. 'bg_repeat' => 'no-repeat',
  3450. 'bg_position' => 'center center',
  3451. 'position' => 'center',
  3452. 'use_spinner' => '-1',
  3453. 'spinner_color' => '#FFFFFF',
  3454. 'enable_arrows' => 'on',
  3455. 'navigation_arrow_style' => 'navbar',
  3456. 'arrows_always_on' => 'false',
  3457. 'hide_arrows' => '200',
  3458. 'hide_arrows_mobile' => '1200',
  3459. 'hide_arrows_on_mobile' => 'on',
  3460. 'arrows_under_hidden' => '600',
  3461. 'hide_arrows_over' => 'off',
  3462. 'arrows_over_hidden' => '0',
  3463. 'leftarrow_align_hor' => 'left',
  3464. 'leftarrow_align_vert' => 'center',
  3465. 'leftarrow_offset_hor' => '30',
  3466. 'leftarrow_offset_vert' => '0',
  3467. 'rightarrow_align_hor' => 'right',
  3468. 'rightarrow_align_vert' => 'center',
  3469. 'rightarrow_offset_hor' => '30',
  3470. 'rightarrow_offset_vert' => '0',
  3471. 'enable_bullets' => 'off',
  3472. 'navigation_bullets_style' => 'round-old',
  3473. 'bullets_space' => '5',
  3474. 'bullets_direction' => 'horizontal',
  3475. 'bullets_always_on' => 'true',
  3476. 'hide_bullets' => '200',
  3477. 'hide_bullets_mobile' => '1200',
  3478. 'hide_bullets_on_mobile' => 'on',
  3479. 'bullets_under_hidden' => '600',
  3480. 'hide_bullets_over' => 'off',
  3481. 'bullets_over_hidden' => '0',
  3482. 'bullets_align_hor' => 'center',
  3483. 'bullets_align_vert' => 'bottom',
  3484. 'bullets_offset_hor' => '0',
  3485. 'bullets_offset_vert' => '30',
  3486. 'enable_thumbnails' => 'on',
  3487. 'thumbnails_padding' => '5',
  3488. 'span_thumbnails_wrapper' => 'off',
  3489. 'thumbnails_wrapper_color' => 'transparent',
  3490. 'thumbnails_wrapper_opacity' => '100',
  3491. 'thumbnails_style' => 'navbar',
  3492. 'thumb_amount' => '5',
  3493. 'thumbnails_space' => '5',
  3494. 'thumbnail_direction' => 'horizontal',
  3495. 'thumb_width' => '50',
  3496. 'thumb_height' => '50',
  3497. 'thumb_width_min' => '50',
  3498. 'thumbs_always_on' => 'false',
  3499. 'hide_thumbs' => '200',
  3500. 'hide_thumbs_mobile' => '1200',
  3501. 'hide_thumbs_on_mobile' => 'off',
  3502. 'thumbs_under_hidden' => '0',
  3503. 'hide_thumbs_over' => 'off',
  3504. 'thumbs_over_hidden' => '0',
  3505. 'thumbnails_inner_outer' => 'inner',
  3506. 'thumbnails_align_hor' => 'center',
  3507. 'thumbnails_align_vert' => 'bottom',
  3508. 'thumbnails_offset_hor' => '0',
  3509. 'thumbnails_offset_vert' => '20',
  3510. 'enable_tabs' => 'off',
  3511. 'tabs_padding' => '5',
  3512. 'span_tabs_wrapper' => 'off',
  3513. 'tabs_wrapper_color' => 'transparent',
  3514. 'tabs_wrapper_opacity' => '5',
  3515. 'tabs_style' => '',
  3516. 'tabs_amount' => '5',
  3517. 'tabs_space' => '5',
  3518. 'tabs_direction' => 'horizontal',
  3519. 'tabs_width' => '100',
  3520. 'tabs_height' => '50',
  3521. 'tabs_width_min' => '100',
  3522. 'tabs_always_on' => 'false',
  3523. 'hide_tabs' => '200',
  3524. 'hide_tabs_mobile' => '1200',
  3525. 'hide_tabs_on_mobile' => 'off',
  3526. 'tabs_under_hidden' => '0',
  3527. 'hide_tabs_over' => 'off',
  3528. 'tabs_over_hidden' => '0',
  3529. 'tabs_inner_outer' => 'inner',
  3530. 'tabs_align_hor' => 'center',
  3531. 'tabs_align_vert' => 'bottom',
  3532. 'tabs_offset_hor' => '0',
  3533. 'tabs_offset_vert' => '20',
  3534. 'touchenabled' => 'on',
  3535. 'drag_block_vertical' => 'off',
  3536. 'swipe_velocity' => '75',
  3537. 'swipe_min_touches' => '50',
  3538. 'swipe_direction' => 'horizontal',
  3539. 'keyboard_navigation' => 'off',
  3540. 'keyboard_direction' => 'horizontal',
  3541. 'mousescroll_navigation' => 'off',
  3542. 'carousel_infinity' => 'off',
  3543. 'carousel_space' => '0',
  3544. 'carousel_borderr' => '0',
  3545. 'carousel_borderr_unit' => 'px',
  3546. 'carousel_padding_top' => '0',
  3547. 'carousel_padding_bottom' => '0',
  3548. 'carousel_maxitems' => '3',
  3549. 'carousel_stretch' => 'off',
  3550. 'carousel_fadeout' => 'on',
  3551. 'carousel_varyfade' => 'off',
  3552. 'carousel_rotation' => 'off',
  3553. 'carousel_varyrotate' => 'off',
  3554. 'carousel_maxrotation' => '0',
  3555. 'carousel_scale' => 'off',
  3556. 'carousel_varyscale' => 'off',
  3557. 'carousel_scaledown' => '50',
  3558. 'carousel_hposition' => 'center',
  3559. 'carousel_vposition' => 'center',
  3560. 'use_parallax' => 'on',
  3561. 'disable_parallax_mobile' => 'off',
  3562. 'parallax_type' => 'mouse',
  3563. 'parallax_origo' => 'slidercenter',
  3564. 'parallax_speed' => '2000',
  3565. 'parallax_level_1' => '2',
  3566. 'parallax_level_2' => '3',
  3567. 'parallax_level_3' => '4',
  3568. 'parallax_level_4' => '5',
  3569. 'parallax_level_5' => '6',
  3570. 'parallax_level_6' => '7',
  3571. 'parallax_level_7' => '12',
  3572. 'parallax_level_8' => '16',
  3573. 'parallax_level_9' => '10',
  3574. 'parallax_level_10' => '50',
  3575. 'lazy_load_type' => 'smart',
  3576. 'seo_optimization' => 'none',
  3577. 'simplify_ie8_ios4' => 'off',
  3578. 'show_alternative_type' => 'off',
  3579. 'show_alternate_image' => '',
  3580. 'jquery_noconflict' => 'off',
  3581. 'js_to_body' => 'false',
  3582. 'output_type' => 'none',
  3583. 'jquery_debugmode' => 'off',
  3584. 'slider_type' => 'auto',
  3585. 'width' => '1240',
  3586. 'width_notebook' => '1024',
  3587. 'width_tablet' => '778',
  3588. 'width_mobile' => '480',
  3589. 'height' => '600',
  3590. 'height_notebook' => '600',
  3591. 'height_tablet' => '500',
  3592. 'height_mobile' => '400',
  3593. 'enable_custom_size_notebook' => 'on',
  3594. 'enable_custom_size_tablet' => 'on',
  3595. 'enable_custom_size_iphone' => 'on',
  3596. 'main_overflow_hidden' => 'off',
  3597. 'auto_height' => 'off',
  3598. 'min_height' => '',
  3599. 'custom_javascript' => '',
  3600. 'custom_css' => '',
  3601. ),
  3602. );
  3603. $presets[] = array (
  3604. 'settings' =>
  3605. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_left_auto.png', 'name' => 'Thumbs-Left-Auto', 'preset' => 'standardpreset' ),
  3606. 'values' =>
  3607. array (
  3608. 'next_slide_on_window_focus' => 'off',
  3609. 'delay' => '9000',
  3610. 'start_js_after_delay' => '0',
  3611. 'image_source_type' => 'full',
  3612. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3613. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3614. //data.layertype - Layer Type (image,video,html)
  3615. //data.layersettings - Default Settings for Layer
  3616. //data.layer - Layer as jQuery Object
  3617. });',
  3618. 'start_with_slide' => '1',
  3619. 'stop_on_hover' => 'off',
  3620. 'stop_slider' => 'on',
  3621. 'stop_after_loops' => '0',
  3622. 'stop_at_slide' => '1',
  3623. 'shuffle' => 'off',
  3624. 'viewport_start' => 'wait',
  3625. 'viewport_area' => '80',
  3626. 'enable_progressbar' => 'off',
  3627. 'background_dotted_overlay' => 'none',
  3628. 'background_color' => 'transparent',
  3629. 'padding' => '0',
  3630. 'show_background_image' => 'off',
  3631. 'background_image' => '',
  3632. 'bg_fit' => 'cover',
  3633. 'bg_repeat' => 'no-repeat',
  3634. 'bg_position' => 'center center',
  3635. 'position' => 'center',
  3636. 'use_spinner' => '-1',
  3637. 'spinner_color' => '#FFFFFF',
  3638. 'enable_arrows' => 'on',
  3639. 'navigation_arrow_style' => 'navbar',
  3640. 'arrows_always_on' => 'false',
  3641. 'hide_arrows' => '200',
  3642. 'hide_arrows_mobile' => '1200',
  3643. 'hide_arrows_on_mobile' => 'off',
  3644. 'arrows_under_hidden' => '600',
  3645. 'hide_arrows_over' => 'off',
  3646. 'arrows_over_hidden' => '0',
  3647. 'leftarrow_align_hor' => 'right',
  3648. 'leftarrow_align_vert' => 'bottom',
  3649. 'leftarrow_offset_hor' => '40',
  3650. 'leftarrow_offset_vert' => '0',
  3651. 'rightarrow_align_hor' => 'right',
  3652. 'rightarrow_align_vert' => 'bottom',
  3653. 'rightarrow_offset_hor' => '0',
  3654. 'rightarrow_offset_vert' => '0',
  3655. 'enable_bullets' => 'off',
  3656. 'navigation_bullets_style' => 'round-old',
  3657. 'bullets_space' => '5',
  3658. 'bullets_direction' => 'horizontal',
  3659. 'bullets_always_on' => 'true',
  3660. 'hide_bullets' => '200',
  3661. 'hide_bullets_mobile' => '1200',
  3662. 'hide_bullets_on_mobile' => 'on',
  3663. 'bullets_under_hidden' => '600',
  3664. 'hide_bullets_over' => 'off',
  3665. 'bullets_over_hidden' => '0',
  3666. 'bullets_align_hor' => 'center',
  3667. 'bullets_align_vert' => 'bottom',
  3668. 'bullets_offset_hor' => '0',
  3669. 'bullets_offset_vert' => '30',
  3670. 'enable_thumbnails' => 'on',
  3671. 'thumbnails_padding' => '5',
  3672. 'span_thumbnails_wrapper' => 'off',
  3673. 'thumbnails_wrapper_color' => 'transparent',
  3674. 'thumbnails_wrapper_opacity' => '100',
  3675. 'thumbnails_style' => 'navbar',
  3676. 'thumb_amount' => '5',
  3677. 'thumbnails_space' => '5',
  3678. 'thumbnail_direction' => 'vertical',
  3679. 'thumb_width' => '50',
  3680. 'thumb_height' => '50',
  3681. 'thumb_width_min' => '50',
  3682. 'thumbs_always_on' => 'false',
  3683. 'hide_thumbs' => '200',
  3684. 'hide_thumbs_mobile' => '1200',
  3685. 'hide_thumbs_on_mobile' => 'on',
  3686. 'thumbs_under_hidden' => '778',
  3687. 'hide_thumbs_over' => 'off',
  3688. 'thumbs_over_hidden' => '0',
  3689. 'thumbnails_inner_outer' => 'inner',
  3690. 'thumbnails_align_hor' => 'left',
  3691. 'thumbnails_align_vert' => 'center',
  3692. 'thumbnails_offset_hor' => '20',
  3693. 'thumbnails_offset_vert' => '0',
  3694. 'enable_tabs' => 'off',
  3695. 'tabs_padding' => '5',
  3696. 'span_tabs_wrapper' => 'off',
  3697. 'tabs_wrapper_color' => 'transparent',
  3698. 'tabs_wrapper_opacity' => '5',
  3699. 'tabs_style' => '',
  3700. 'tabs_amount' => '5',
  3701. 'tabs_space' => '5',
  3702. 'tabs_direction' => 'horizontal',
  3703. 'tabs_width' => '100',
  3704. 'tabs_height' => '50',
  3705. 'tabs_width_min' => '100',
  3706. 'tabs_always_on' => 'false',
  3707. 'hide_tabs' => '200',
  3708. 'hide_tabs_mobile' => '1200',
  3709. 'hide_tabs_on_mobile' => 'off',
  3710. 'tabs_under_hidden' => '0',
  3711. 'hide_tabs_over' => 'off',
  3712. 'tabs_over_hidden' => '0',
  3713. 'tabs_inner_outer' => 'inner',
  3714. 'tabs_align_hor' => 'center',
  3715. 'tabs_align_vert' => 'bottom',
  3716. 'tabs_offset_hor' => '0',
  3717. 'tabs_offset_vert' => '20',
  3718. 'touchenabled' => 'on',
  3719. 'drag_block_vertical' => 'off',
  3720. 'swipe_velocity' => '75',
  3721. 'swipe_min_touches' => '50',
  3722. 'swipe_direction' => 'horizontal',
  3723. 'keyboard_navigation' => 'off',
  3724. 'keyboard_direction' => 'horizontal',
  3725. 'mousescroll_navigation' => 'off',
  3726. 'carousel_infinity' => 'off',
  3727. 'carousel_space' => '0',
  3728. 'carousel_borderr' => '0',
  3729. 'carousel_borderr_unit' => 'px',
  3730. 'carousel_padding_top' => '0',
  3731. 'carousel_padding_bottom' => '0',
  3732. 'carousel_maxitems' => '3',
  3733. 'carousel_stretch' => 'off',
  3734. 'carousel_fadeout' => 'on',
  3735. 'carousel_varyfade' => 'off',
  3736. 'carousel_rotation' => 'off',
  3737. 'carousel_varyrotate' => 'off',
  3738. 'carousel_maxrotation' => '0',
  3739. 'carousel_scale' => 'off',
  3740. 'carousel_varyscale' => 'off',
  3741. 'carousel_scaledown' => '50',
  3742. 'carousel_hposition' => 'center',
  3743. 'carousel_vposition' => 'center',
  3744. 'use_parallax' => 'on',
  3745. 'disable_parallax_mobile' => 'off',
  3746. 'parallax_type' => 'mouse',
  3747. 'parallax_origo' => 'slidercenter',
  3748. 'parallax_speed' => '2000',
  3749. 'parallax_level_1' => '2',
  3750. 'parallax_level_2' => '3',
  3751. 'parallax_level_3' => '4',
  3752. 'parallax_level_4' => '5',
  3753. 'parallax_level_5' => '6',
  3754. 'parallax_level_6' => '7',
  3755. 'parallax_level_7' => '12',
  3756. 'parallax_level_8' => '16',
  3757. 'parallax_level_9' => '10',
  3758. 'parallax_level_10' => '50',
  3759. 'lazy_load_type' => 'smart',
  3760. 'seo_optimization' => 'none',
  3761. 'simplify_ie8_ios4' => 'off',
  3762. 'show_alternative_type' => 'off',
  3763. 'show_alternate_image' => '',
  3764. 'jquery_noconflict' => 'off',
  3765. 'js_to_body' => 'false',
  3766. 'output_type' => 'none',
  3767. 'jquery_debugmode' => 'off',
  3768. 'slider_type' => 'auto',
  3769. 'width' => '1240',
  3770. 'width_notebook' => '1024',
  3771. 'width_tablet' => '778',
  3772. 'width_mobile' => '480',
  3773. 'height' => '600',
  3774. 'height_notebook' => '600',
  3775. 'height_tablet' => '500',
  3776. 'height_mobile' => '400',
  3777. 'enable_custom_size_notebook' => 'on',
  3778. 'enable_custom_size_tablet' => 'on',
  3779. 'enable_custom_size_iphone' => 'on',
  3780. 'main_overflow_hidden' => 'off',
  3781. 'auto_height' => 'off',
  3782. 'min_height' => '',
  3783. 'custom_javascript' => '',
  3784. 'custom_css' => '',
  3785. ),
  3786. );
  3787. $presets[] = array (
  3788. 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_right_auto.png', 'name' => 'Thumbs-Right-Auto', 'preset' => 'standardpreset' ),
  3789. 'values' =>
  3790. array (
  3791. 'next_slide_on_window_focus' => 'off',
  3792. 'delay' => '9000',
  3793. 'start_js_after_delay' => '0',
  3794. 'image_source_type' => 'full',
  3795. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3796. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3797. //data.layertype - Layer Type (image,video,html)
  3798. //data.layersettings - Default Settings for Layer
  3799. //data.layer - Layer as jQuery Object
  3800. });',
  3801. 'start_with_slide' => '1',
  3802. 'stop_on_hover' => 'off',
  3803. 'stop_slider' => 'on',
  3804. 'stop_after_loops' => '0',
  3805. 'stop_at_slide' => '1',
  3806. 'shuffle' => 'off',
  3807. 'viewport_start' => 'wait',
  3808. 'viewport_area' => '80',
  3809. 'enable_progressbar' => 'off',
  3810. 'background_dotted_overlay' => 'none',
  3811. 'background_color' => 'transparent',
  3812. 'padding' => '0',
  3813. 'show_background_image' => 'off',
  3814. 'background_image' => '',
  3815. 'bg_fit' => 'cover',
  3816. 'bg_repeat' => 'no-repeat',
  3817. 'bg_position' => 'center center',
  3818. 'position' => 'center',
  3819. 'use_spinner' => '-1',
  3820. 'spinner_color' => '#FFFFFF',
  3821. 'enable_arrows' => 'on',
  3822. 'navigation_arrow_style' => 'navbar',
  3823. 'arrows_always_on' => 'false',
  3824. 'hide_arrows' => '200',
  3825. 'hide_arrows_mobile' => '1200',
  3826. 'hide_arrows_on_mobile' => 'off',
  3827. 'arrows_under_hidden' => '600',
  3828. 'hide_arrows_over' => 'off',
  3829. 'arrows_over_hidden' => '0',
  3830. 'leftarrow_align_hor' => 'left',
  3831. 'leftarrow_align_vert' => 'bottom',
  3832. 'leftarrow_offset_hor' => '0',
  3833. 'leftarrow_offset_vert' => '0',
  3834. 'rightarrow_align_hor' => 'left',
  3835. 'rightarrow_align_vert' => 'bottom',
  3836. 'rightarrow_offset_hor' => '40',
  3837. 'rightarrow_offset_vert' => '0',
  3838. 'enable_bullets' => 'off',
  3839. 'navigation_bullets_style' => 'round-old',
  3840. 'bullets_space' => '5',
  3841. 'bullets_direction' => 'horizontal',
  3842. 'bullets_always_on' => 'true',
  3843. 'hide_bullets' => '200',
  3844. 'hide_bullets_mobile' => '1200',
  3845. 'hide_bullets_on_mobile' => 'on',
  3846. 'bullets_under_hidden' => '600',
  3847. 'hide_bullets_over' => 'off',
  3848. 'bullets_over_hidden' => '0',
  3849. 'bullets_align_hor' => 'center',
  3850. 'bullets_align_vert' => 'bottom',
  3851. 'bullets_offset_hor' => '0',
  3852. 'bullets_offset_vert' => '30',
  3853. 'enable_thumbnails' => 'on',
  3854. 'thumbnails_padding' => '5',
  3855. 'span_thumbnails_wrapper' => 'off',
  3856. 'thumbnails_wrapper_color' => 'transparent',
  3857. 'thumbnails_wrapper_opacity' => '100',
  3858. 'thumbnails_style' => 'navbar',
  3859. 'thumb_amount' => '5',
  3860. 'thumbnails_space' => '5',
  3861. 'thumbnail_direction' => 'vertical',
  3862. 'thumb_width' => '50',
  3863. 'thumb_height' => '50',
  3864. 'thumb_width_min' => '50',
  3865. 'thumbs_always_on' => 'false',
  3866. 'hide_thumbs' => '200',
  3867. 'hide_thumbs_mobile' => '1200',
  3868. 'hide_thumbs_on_mobile' => 'on',
  3869. 'thumbs_under_hidden' => '778',
  3870. 'hide_thumbs_over' => 'off',
  3871. 'thumbs_over_hidden' => '0',
  3872. 'thumbnails_inner_outer' => 'inner',
  3873. 'thumbnails_align_hor' => 'right',
  3874. 'thumbnails_align_vert' => 'center',
  3875. 'thumbnails_offset_hor' => '20',
  3876. 'thumbnails_offset_vert' => '0',
  3877. 'enable_tabs' => 'off',
  3878. 'tabs_padding' => '5',
  3879. 'span_tabs_wrapper' => 'off',
  3880. 'tabs_wrapper_color' => 'transparent',
  3881. 'tabs_wrapper_opacity' => '5',
  3882. 'tabs_style' => '',
  3883. 'tabs_amount' => '5',
  3884. 'tabs_space' => '5',
  3885. 'tabs_direction' => 'horizontal',
  3886. 'tabs_width' => '100',
  3887. 'tabs_height' => '50',
  3888. 'tabs_width_min' => '100',
  3889. 'tabs_always_on' => 'false',
  3890. 'hide_tabs' => '200',
  3891. 'hide_tabs_mobile' => '1200',
  3892. 'hide_tabs_on_mobile' => 'off',
  3893. 'tabs_under_hidden' => '0',
  3894. 'hide_tabs_over' => 'off',
  3895. 'tabs_over_hidden' => '0',
  3896. 'tabs_inner_outer' => 'inner',
  3897. 'tabs_align_hor' => 'center',
  3898. 'tabs_align_vert' => 'bottom',
  3899. 'tabs_offset_hor' => '0',
  3900. 'tabs_offset_vert' => '20',
  3901. 'touchenabled' => 'on',
  3902. 'drag_block_vertical' => 'off',
  3903. 'swipe_velocity' => '75',
  3904. 'swipe_min_touches' => '50',
  3905. 'swipe_direction' => 'horizontal',
  3906. 'keyboard_navigation' => 'off',
  3907. 'keyboard_direction' => 'horizontal',
  3908. 'mousescroll_navigation' => 'off',
  3909. 'carousel_infinity' => 'off',
  3910. 'carousel_space' => '0',
  3911. 'carousel_borderr' => '0',
  3912. 'carousel_borderr_unit' => 'px',
  3913. 'carousel_padding_top' => '0',
  3914. 'carousel_padding_bottom' => '0',
  3915. 'carousel_maxitems' => '3',
  3916. 'carousel_stretch' => 'off',
  3917. 'carousel_fadeout' => 'on',
  3918. 'carousel_varyfade' => 'off',
  3919. 'carousel_rotation' => 'off',
  3920. 'carousel_varyrotate' => 'off',
  3921. 'carousel_maxrotation' => '0',
  3922. 'carousel_scale' => 'off',
  3923. 'carousel_varyscale' => 'off',
  3924. 'carousel_scaledown' => '50',
  3925. 'carousel_hposition' => 'center',
  3926. 'carousel_vposition' => 'center',
  3927. 'use_parallax' => 'on',
  3928. 'disable_parallax_mobile' => 'off',
  3929. 'parallax_type' => 'mouse',
  3930. 'parallax_origo' => 'slidercenter',
  3931. 'parallax_speed' => '2000',
  3932. 'parallax_level_1' => '2',
  3933. 'parallax_level_2' => '3',
  3934. 'parallax_level_3' => '4',
  3935. 'parallax_level_4' => '5',
  3936. 'parallax_level_5' => '6',
  3937. 'parallax_level_6' => '7',
  3938. 'parallax_level_7' => '12',
  3939. 'parallax_level_8' => '16',
  3940. 'parallax_level_9' => '10',
  3941. 'parallax_level_10' => '50',
  3942. 'lazy_load_type' => 'smart',
  3943. 'seo_optimization' => 'none',
  3944. 'simplify_ie8_ios4' => 'off',
  3945. 'show_alternative_type' => 'off',
  3946. 'show_alternate_image' => '',
  3947. 'jquery_noconflict' => 'off',
  3948. 'js_to_body' => 'false',
  3949. 'output_type' => 'none',
  3950. 'jquery_debugmode' => 'off',
  3951. 'slider_type' => 'auto',
  3952. 'width' => '1240',
  3953. 'width_notebook' => '1024',
  3954. 'width_tablet' => '778',
  3955. 'width_mobile' => '480',
  3956. 'height' => '600',
  3957. 'height_notebook' => '600',
  3958. 'height_tablet' => '500',
  3959. 'height_mobile' => '400',
  3960. 'enable_custom_size_notebook' => 'on',
  3961. 'enable_custom_size_tablet' => 'on',
  3962. 'enable_custom_size_iphone' => 'on',
  3963. 'main_overflow_hidden' => 'off',
  3964. 'auto_height' => 'off',
  3965. 'min_height' => '',
  3966. 'custom_javascript' => '',
  3967. 'custom_css' => '',
  3968. ),
  3969. );
  3970. $presets[] = array (
  3971. 'settings' =>
  3972. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/scroll_fullscreen.png', 'name' => 'Vertical-Bullet-Full-Screen', 'preset' => 'standardpreset' ),
  3973. 'values' =>
  3974. array (
  3975. 'next_slide_on_window_focus' => 'off',
  3976. 'delay' => '9000',
  3977. 'start_js_after_delay' => '0',
  3978. 'image_source_type' => 'full',
  3979. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3980. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3981. //data.layertype - Layer Type (image,video,html)
  3982. //data.layersettings - Default Settings for Layer
  3983. //data.layer - Layer as jQuery Object
  3984. });',
  3985. 'start_with_slide' => '1',
  3986. 'stop_on_hover' => 'off',
  3987. 'stop_slider' => 'on',
  3988. 'stop_after_loops' => '0',
  3989. 'stop_at_slide' => '1',
  3990. 'shuffle' => 'off',
  3991. 'viewport_start' => 'wait',
  3992. 'viewport_area' => '80',
  3993. 'enable_progressbar' => 'off',
  3994. 'background_dotted_overlay' => 'none',
  3995. 'background_color' => 'transparent',
  3996. 'padding' => '0',
  3997. 'show_background_image' => 'off',
  3998. 'background_image' => '',
  3999. 'bg_fit' => 'cover',
  4000. 'bg_repeat' => 'no-repeat',
  4001. 'bg_position' => 'center center',
  4002. 'position' => 'center',
  4003. 'use_spinner' => '-1',
  4004. 'spinner_color' => '#FFFFFF',
  4005. 'enable_arrows' => 'off',
  4006. 'navigation_arrow_style' => 'navbar',
  4007. 'arrows_always_on' => 'false',
  4008. 'hide_arrows' => '200',
  4009. 'hide_arrows_mobile' => '1200',
  4010. 'hide_arrows_on_mobile' => 'off',
  4011. 'arrows_under_hidden' => '600',
  4012. 'hide_arrows_over' => 'off',
  4013. 'arrows_over_hidden' => '0',
  4014. 'leftarrow_align_hor' => 'left',
  4015. 'leftarrow_align_vert' => 'bottom',
  4016. 'leftarrow_offset_hor' => '0',
  4017. 'leftarrow_offset_vert' => '0',
  4018. 'rightarrow_align_hor' => 'left',
  4019. 'rightarrow_align_vert' => 'bottom',
  4020. 'rightarrow_offset_hor' => '40',
  4021. 'rightarrow_offset_vert' => '0',
  4022. 'enable_bullets' => 'on',
  4023. 'navigation_bullets_style' => 'round-old',
  4024. 'bullets_space' => '5',
  4025. 'bullets_direction' => 'vertical',
  4026. 'bullets_always_on' => 'false',
  4027. 'hide_bullets' => '200',
  4028. 'hide_bullets_mobile' => '1200',
  4029. 'hide_bullets_on_mobile' => 'on',
  4030. 'bullets_under_hidden' => '600',
  4031. 'hide_bullets_over' => 'off',
  4032. 'bullets_over_hidden' => '0',
  4033. 'bullets_align_hor' => 'right',
  4034. 'bullets_align_vert' => 'center',
  4035. 'bullets_offset_hor' => '30',
  4036. 'bullets_offset_vert' => '0',
  4037. 'enable_thumbnails' => 'off',
  4038. 'thumbnails_padding' => '5',
  4039. 'span_thumbnails_wrapper' => 'off',
  4040. 'thumbnails_wrapper_color' => 'transparent',
  4041. 'thumbnails_wrapper_opacity' => '100',
  4042. 'thumbnails_style' => 'navbar',
  4043. 'thumb_amount' => '5',
  4044. 'thumbnails_space' => '5',
  4045. 'thumbnail_direction' => 'vertical',
  4046. 'thumb_width' => '50',
  4047. 'thumb_height' => '50',
  4048. 'thumb_width_min' => '50',
  4049. 'thumbs_always_on' => 'false',
  4050. 'hide_thumbs' => '200',
  4051. 'hide_thumbs_mobile' => '1200',
  4052. 'hide_thumbs_on_mobile' => 'on',
  4053. 'thumbs_under_hidden' => '778',
  4054. 'hide_thumbs_over' => 'off',
  4055. 'thumbs_over_hidden' => '0',
  4056. 'thumbnails_inner_outer' => 'inner',
  4057. 'thumbnails_align_hor' => 'right',
  4058. 'thumbnails_align_vert' => 'center',
  4059. 'thumbnails_offset_hor' => '20',
  4060. 'thumbnails_offset_vert' => '0',
  4061. 'enable_tabs' => 'off',
  4062. 'tabs_padding' => '5',
  4063. 'span_tabs_wrapper' => 'off',
  4064. 'tabs_wrapper_color' => 'transparent',
  4065. 'tabs_wrapper_opacity' => '5',
  4066. 'tabs_style' => '',
  4067. 'tabs_amount' => '5',
  4068. 'tabs_space' => '5',
  4069. 'tabs_direction' => 'horizontal',
  4070. 'tabs_width' => '100',
  4071. 'tabs_height' => '50',
  4072. 'tabs_width_min' => '100',
  4073. 'tabs_always_on' => 'false',
  4074. 'hide_tabs' => '200',
  4075. 'hide_tabs_mobile' => '1200',
  4076. 'hide_tabs_on_mobile' => 'off',
  4077. 'tabs_under_hidden' => '0',
  4078. 'hide_tabs_over' => 'off',
  4079. 'tabs_over_hidden' => '0',
  4080. 'tabs_inner_outer' => 'inner',
  4081. 'tabs_align_hor' => 'center',
  4082. 'tabs_align_vert' => 'bottom',
  4083. 'tabs_offset_hor' => '0',
  4084. 'tabs_offset_vert' => '20',
  4085. 'touchenabled' => 'on',
  4086. 'drag_block_vertical' => 'off',
  4087. 'swipe_velocity' => '75',
  4088. 'swipe_min_touches' => '50',
  4089. 'swipe_direction' => 'horizontal',
  4090. 'keyboard_navigation' => 'off',
  4091. 'keyboard_direction' => 'horizontal',
  4092. 'mousescroll_navigation' => 'off',
  4093. 'carousel_infinity' => 'off',
  4094. 'carousel_space' => '0',
  4095. 'carousel_borderr' => '0',
  4096. 'carousel_borderr_unit' => 'px',
  4097. 'carousel_padding_top' => '0',
  4098. 'carousel_padding_bottom' => '0',
  4099. 'carousel_maxitems' => '3',
  4100. 'carousel_stretch' => 'off',
  4101. 'carousel_fadeout' => 'on',
  4102. 'carousel_varyfade' => 'off',
  4103. 'carousel_rotation' => 'off',
  4104. 'carousel_varyrotate' => 'off',
  4105. 'carousel_maxrotation' => '0',
  4106. 'carousel_scale' => 'off',
  4107. 'carousel_varyscale' => 'off',
  4108. 'carousel_scaledown' => '50',
  4109. 'carousel_hposition' => 'center',
  4110. 'carousel_vposition' => 'center',
  4111. 'use_parallax' => 'on',
  4112. 'disable_parallax_mobile' => 'off',
  4113. 'parallax_type' => 'mouse',
  4114. 'parallax_origo' => 'slidercenter',
  4115. 'parallax_speed' => '2000',
  4116. 'parallax_level_1' => '2',
  4117. 'parallax_level_2' => '3',
  4118. 'parallax_level_3' => '4',
  4119. 'parallax_level_4' => '5',
  4120. 'parallax_level_5' => '6',
  4121. 'parallax_level_6' => '7',
  4122. 'parallax_level_7' => '12',
  4123. 'parallax_level_8' => '16',
  4124. 'parallax_level_9' => '10',
  4125. 'parallax_level_10' => '50',
  4126. 'lazy_load_type' => 'smart',
  4127. 'seo_optimization' => 'none',
  4128. 'simplify_ie8_ios4' => 'off',
  4129. 'show_alternative_type' => 'off',
  4130. 'show_alternate_image' => '',
  4131. 'jquery_noconflict' => 'off',
  4132. 'js_to_body' => 'false',
  4133. 'output_type' => 'none',
  4134. 'jquery_debugmode' => 'off',
  4135. 'slider_type' => 'fullscreen',
  4136. 'width' => '1240',
  4137. 'width_notebook' => '1024',
  4138. 'width_tablet' => '778',
  4139. 'width_mobile' => '480',
  4140. 'height' => '600',
  4141. 'height_notebook' => '600',
  4142. 'height_tablet' => '500',
  4143. 'height_mobile' => '400',
  4144. 'enable_custom_size_notebook' => 'on',
  4145. 'enable_custom_size_tablet' => 'on',
  4146. 'enable_custom_size_iphone' => 'on',
  4147. 'main_overflow_hidden' => 'off',
  4148. 'auto_height' => 'off',
  4149. 'min_height' => '',
  4150. 'custom_javascript' => '',
  4151. 'custom_css' => '',
  4152. ),
  4153. );
  4154. $presets[] = array (
  4155. 'settings' =>
  4156. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Screen', 'preset' => 'heropreset' ),
  4157. 'values' =>
  4158. array (
  4159. 'next_slide_on_window_focus' => 'off',
  4160. 'delay' => '9000',
  4161. 'start_js_after_delay' => '0',
  4162. 'image_source_type' => 'full',
  4163. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4164. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4165. //data.layertype - Layer Type (image,video,html)
  4166. //data.layersettings - Default Settings for Layer
  4167. //data.layer - Layer as jQuery Object
  4168. });',
  4169. 'start_with_slide' => '1',
  4170. 'stop_on_hover' => 'off',
  4171. 'stop_slider' => 'on',
  4172. 'stop_after_loops' => '0',
  4173. 'stop_at_slide' => '1',
  4174. 'shuffle' => 'off',
  4175. 'viewport_start' => 'wait',
  4176. 'viewport_area' => '80',
  4177. 'enable_progressbar' => 'off',
  4178. 'background_dotted_overlay' => 'none',
  4179. 'background_color' => 'transparent',
  4180. 'padding' => '0',
  4181. 'show_background_image' => 'off',
  4182. 'background_image' => '',
  4183. 'bg_fit' => 'cover',
  4184. 'bg_repeat' => 'no-repeat',
  4185. 'bg_position' => 'center center',
  4186. 'position' => 'center',
  4187. 'use_spinner' => '-1',
  4188. 'spinner_color' => '#FFFFFF',
  4189. 'enable_arrows' => 'off',
  4190. 'navigation_arrow_style' => 'navbar',
  4191. 'arrows_always_on' => 'false',
  4192. 'hide_arrows' => '200',
  4193. 'hide_arrows_mobile' => '1200',
  4194. 'hide_arrows_on_mobile' => 'off',
  4195. 'arrows_under_hidden' => '600',
  4196. 'hide_arrows_over' => 'off',
  4197. 'arrows_over_hidden' => '0',
  4198. 'leftarrow_align_hor' => 'left',
  4199. 'leftarrow_align_vert' => 'bottom',
  4200. 'leftarrow_offset_hor' => '0',
  4201. 'leftarrow_offset_vert' => '0',
  4202. 'rightarrow_align_hor' => 'left',
  4203. 'rightarrow_align_vert' => 'bottom',
  4204. 'rightarrow_offset_hor' => '40',
  4205. 'rightarrow_offset_vert' => '0',
  4206. 'enable_bullets' => 'on',
  4207. 'navigation_bullets_style' => 'round-old',
  4208. 'bullets_space' => '5',
  4209. 'bullets_direction' => 'vertical',
  4210. 'bullets_always_on' => 'true',
  4211. 'hide_bullets' => '200',
  4212. 'hide_bullets_mobile' => '1200',
  4213. 'hide_bullets_on_mobile' => 'on',
  4214. 'bullets_under_hidden' => '600',
  4215. 'hide_bullets_over' => 'off',
  4216. 'bullets_over_hidden' => '0',
  4217. 'bullets_align_hor' => 'right',
  4218. 'bullets_align_vert' => 'center',
  4219. 'bullets_offset_hor' => '30',
  4220. 'bullets_offset_vert' => '0',
  4221. 'enable_thumbnails' => 'off',
  4222. 'thumbnails_padding' => '5',
  4223. 'span_thumbnails_wrapper' => 'off',
  4224. 'thumbnails_wrapper_color' => 'transparent',
  4225. 'thumbnails_wrapper_opacity' => '100',
  4226. 'thumbnails_style' => 'navbar',
  4227. 'thumb_amount' => '5',
  4228. 'thumbnails_space' => '5',
  4229. 'thumbnail_direction' => 'vertical',
  4230. 'thumb_width' => '50',
  4231. 'thumb_height' => '50',
  4232. 'thumb_width_min' => '50',
  4233. 'thumbs_always_on' => 'false',
  4234. 'hide_thumbs' => '200',
  4235. 'hide_thumbs_mobile' => '1200',
  4236. 'hide_thumbs_on_mobile' => 'on',
  4237. 'thumbs_under_hidden' => '778',
  4238. 'hide_thumbs_over' => 'off',
  4239. 'thumbs_over_hidden' => '0',
  4240. 'thumbnails_inner_outer' => 'inner',
  4241. 'thumbnails_align_hor' => 'right',
  4242. 'thumbnails_align_vert' => 'center',
  4243. 'thumbnails_offset_hor' => '20',
  4244. 'thumbnails_offset_vert' => '0',
  4245. 'enable_tabs' => 'off',
  4246. 'tabs_padding' => '5',
  4247. 'span_tabs_wrapper' => 'off',
  4248. 'tabs_wrapper_color' => 'transparent',
  4249. 'tabs_wrapper_opacity' => '5',
  4250. 'tabs_style' => '',
  4251. 'tabs_amount' => '5',
  4252. 'tabs_space' => '5',
  4253. 'tabs_direction' => 'horizontal',
  4254. 'tabs_width' => '100',
  4255. 'tabs_height' => '50',
  4256. 'tabs_width_min' => '100',
  4257. 'tabs_always_on' => 'false',
  4258. 'hide_tabs' => '200',
  4259. 'hide_tabs_mobile' => '1200',
  4260. 'hide_tabs_on_mobile' => 'off',
  4261. 'tabs_under_hidden' => '0',
  4262. 'hide_tabs_over' => 'off',
  4263. 'tabs_over_hidden' => '0',
  4264. 'tabs_inner_outer' => 'inner',
  4265. 'tabs_align_hor' => 'center',
  4266. 'tabs_align_vert' => 'bottom',
  4267. 'tabs_offset_hor' => '0',
  4268. 'tabs_offset_vert' => '20',
  4269. 'touchenabled' => 'on',
  4270. 'drag_block_vertical' => 'off',
  4271. 'swipe_velocity' => '75',
  4272. 'swipe_min_touches' => '50',
  4273. 'swipe_direction' => 'horizontal',
  4274. 'keyboard_navigation' => 'off',
  4275. 'keyboard_direction' => 'horizontal',
  4276. 'mousescroll_navigation' => 'off',
  4277. 'carousel_infinity' => 'off',
  4278. 'carousel_space' => '0',
  4279. 'carousel_borderr' => '0',
  4280. 'carousel_borderr_unit' => 'px',
  4281. 'carousel_padding_top' => '0',
  4282. 'carousel_padding_bottom' => '0',
  4283. 'carousel_maxitems' => '3',
  4284. 'carousel_stretch' => 'off',
  4285. 'carousel_fadeout' => 'on',
  4286. 'carousel_varyfade' => 'off',
  4287. 'carousel_rotation' => 'off',
  4288. 'carousel_varyrotate' => 'off',
  4289. 'carousel_maxrotation' => '0',
  4290. 'carousel_scale' => 'off',
  4291. 'carousel_varyscale' => 'off',
  4292. 'carousel_scaledown' => '50',
  4293. 'carousel_hposition' => 'center',
  4294. 'carousel_vposition' => 'center',
  4295. 'use_parallax' => 'on',
  4296. 'disable_parallax_mobile' => 'off',
  4297. 'parallax_type' => 'mouse',
  4298. 'parallax_origo' => 'slidercenter',
  4299. 'parallax_speed' => '2000',
  4300. 'parallax_level_1' => '2',
  4301. 'parallax_level_2' => '3',
  4302. 'parallax_level_3' => '4',
  4303. 'parallax_level_4' => '5',
  4304. 'parallax_level_5' => '6',
  4305. 'parallax_level_6' => '7',
  4306. 'parallax_level_7' => '12',
  4307. 'parallax_level_8' => '16',
  4308. 'parallax_level_9' => '10',
  4309. 'parallax_level_10' => '50',
  4310. 'lazy_load_type' => 'smart',
  4311. 'seo_optimization' => 'none',
  4312. 'simplify_ie8_ios4' => 'off',
  4313. 'show_alternative_type' => 'off',
  4314. 'show_alternate_image' => '',
  4315. 'jquery_noconflict' => 'off',
  4316. 'js_to_body' => 'false',
  4317. 'output_type' => 'none',
  4318. 'jquery_debugmode' => 'off',
  4319. 'slider_type' => 'fullscreen',
  4320. 'width' => '1400',
  4321. 'width_notebook' => '1240',
  4322. 'width_tablet' => '778',
  4323. 'width_mobile' => '480',
  4324. 'height' => '868',
  4325. 'height_notebook' => '768',
  4326. 'height_tablet' => '960',
  4327. 'height_mobile' => '720',
  4328. 'enable_custom_size_notebook' => 'on',
  4329. 'enable_custom_size_tablet' => 'on',
  4330. 'enable_custom_size_iphone' => 'on',
  4331. 'main_overflow_hidden' => 'off',
  4332. 'auto_height' => 'off',
  4333. 'min_height' => '',
  4334. 'custom_javascript' => '',
  4335. 'custom_css' => '',
  4336. ),
  4337. );
  4338. $presets[] = array (
  4339. 'settings' =>
  4340. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Width', 'preset' => 'heropreset' ),
  4341. 'values' =>
  4342. array (
  4343. 'next_slide_on_window_focus' => 'off',
  4344. 'delay' => '9000',
  4345. 'start_js_after_delay' => '0',
  4346. 'image_source_type' => 'full',
  4347. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4348. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4349. //data.layertype - Layer Type (image,video,html)
  4350. //data.layersettings - Default Settings for Layer
  4351. //data.layer - Layer as jQuery Object
  4352. });',
  4353. 'start_with_slide' => '1',
  4354. 'stop_on_hover' => 'off',
  4355. 'stop_slider' => 'on',
  4356. 'stop_after_loops' => '0',
  4357. 'stop_at_slide' => '1',
  4358. 'shuffle' => 'off',
  4359. 'viewport_start' => 'wait',
  4360. 'viewport_area' => '80',
  4361. 'enable_progressbar' => 'off',
  4362. 'background_dotted_overlay' => 'none',
  4363. 'background_color' => 'transparent',
  4364. 'padding' => '0',
  4365. 'show_background_image' => 'off',
  4366. 'background_image' => '',
  4367. 'bg_fit' => 'cover',
  4368. 'bg_repeat' => 'no-repeat',
  4369. 'bg_position' => 'center center',
  4370. 'position' => 'center',
  4371. 'use_spinner' => '-1',
  4372. 'spinner_color' => '#FFFFFF',
  4373. 'enable_arrows' => 'off',
  4374. 'navigation_arrow_style' => 'navbar',
  4375. 'arrows_always_on' => 'false',
  4376. 'hide_arrows' => '200',
  4377. 'hide_arrows_mobile' => '1200',
  4378. 'hide_arrows_on_mobile' => 'off',
  4379. 'arrows_under_hidden' => '600',
  4380. 'hide_arrows_over' => 'off',
  4381. 'arrows_over_hidden' => '0',
  4382. 'leftarrow_align_hor' => 'left',
  4383. 'leftarrow_align_vert' => 'bottom',
  4384. 'leftarrow_offset_hor' => '0',
  4385. 'leftarrow_offset_vert' => '0',
  4386. 'rightarrow_align_hor' => 'left',
  4387. 'rightarrow_align_vert' => 'bottom',
  4388. 'rightarrow_offset_hor' => '40',
  4389. 'rightarrow_offset_vert' => '0',
  4390. 'enable_bullets' => 'on',
  4391. 'navigation_bullets_style' => 'round-old',
  4392. 'bullets_space' => '5',
  4393. 'bullets_direction' => 'vertical',
  4394. 'bullets_always_on' => 'true',
  4395. 'hide_bullets' => '200',
  4396. 'hide_bullets_mobile' => '1200',
  4397. 'hide_bullets_on_mobile' => 'on',
  4398. 'bullets_under_hidden' => '600',
  4399. 'hide_bullets_over' => 'off',
  4400. 'bullets_over_hidden' => '0',
  4401. 'bullets_align_hor' => 'right',
  4402. 'bullets_align_vert' => 'center',
  4403. 'bullets_offset_hor' => '30',
  4404. 'bullets_offset_vert' => '0',
  4405. 'enable_thumbnails' => 'off',
  4406. 'thumbnails_padding' => '5',
  4407. 'span_thumbnails_wrapper' => 'off',
  4408. 'thumbnails_wrapper_color' => 'transparent',
  4409. 'thumbnails_wrapper_opacity' => '100',
  4410. 'thumbnails_style' => 'navbar',
  4411. 'thumb_amount' => '5',
  4412. 'thumbnails_space' => '5',
  4413. 'thumbnail_direction' => 'vertical',
  4414. 'thumb_width' => '50',
  4415. 'thumb_height' => '50',
  4416. 'thumb_width_min' => '50',
  4417. 'thumbs_always_on' => 'false',
  4418. 'hide_thumbs' => '200',
  4419. 'hide_thumbs_mobile' => '1200',
  4420. 'hide_thumbs_on_mobile' => 'on',
  4421. 'thumbs_under_hidden' => '778',
  4422. 'hide_thumbs_over' => 'off',
  4423. 'thumbs_over_hidden' => '0',
  4424. 'thumbnails_inner_outer' => 'inner',
  4425. 'thumbnails_align_hor' => 'right',
  4426. 'thumbnails_align_vert' => 'center',
  4427. 'thumbnails_offset_hor' => '20',
  4428. 'thumbnails_offset_vert' => '0',
  4429. 'enable_tabs' => 'off',
  4430. 'tabs_padding' => '5',
  4431. 'span_tabs_wrapper' => 'off',
  4432. 'tabs_wrapper_color' => 'transparent',
  4433. 'tabs_wrapper_opacity' => '5',
  4434. 'tabs_style' => '',
  4435. 'tabs_amount' => '5',
  4436. 'tabs_space' => '5',
  4437. 'tabs_direction' => 'horizontal',
  4438. 'tabs_width' => '100',
  4439. 'tabs_height' => '50',
  4440. 'tabs_width_min' => '100',
  4441. 'tabs_always_on' => 'false',
  4442. 'hide_tabs' => '200',
  4443. 'hide_tabs_mobile' => '1200',
  4444. 'hide_tabs_on_mobile' => 'off',
  4445. 'tabs_under_hidden' => '0',
  4446. 'hide_tabs_over' => 'off',
  4447. 'tabs_over_hidden' => '0',
  4448. 'tabs_inner_outer' => 'inner',
  4449. 'tabs_align_hor' => 'center',
  4450. 'tabs_align_vert' => 'bottom',
  4451. 'tabs_offset_hor' => '0',
  4452. 'tabs_offset_vert' => '20',
  4453. 'touchenabled' => 'on',
  4454. 'drag_block_vertical' => 'off',
  4455. 'swipe_velocity' => '75',
  4456. 'swipe_min_touches' => '50',
  4457. 'swipe_direction' => 'horizontal',
  4458. 'keyboard_navigation' => 'off',
  4459. 'keyboard_direction' => 'horizontal',
  4460. 'mousescroll_navigation' => 'off',
  4461. 'carousel_infinity' => 'off',
  4462. 'carousel_space' => '0',
  4463. 'carousel_borderr' => '0',
  4464. 'carousel_borderr_unit' => 'px',
  4465. 'carousel_padding_top' => '0',
  4466. 'carousel_padding_bottom' => '0',
  4467. 'carousel_maxitems' => '3',
  4468. 'carousel_stretch' => 'off',
  4469. 'carousel_fadeout' => 'on',
  4470. 'carousel_varyfade' => 'off',
  4471. 'carousel_rotation' => 'off',
  4472. 'carousel_varyrotate' => 'off',
  4473. 'carousel_maxrotation' => '0',
  4474. 'carousel_scale' => 'off',
  4475. 'carousel_varyscale' => 'off',
  4476. 'carousel_scaledown' => '50',
  4477. 'carousel_hposition' => 'center',
  4478. 'carousel_vposition' => 'center',
  4479. 'use_parallax' => 'on',
  4480. 'disable_parallax_mobile' => 'off',
  4481. 'parallax_type' => 'mouse',
  4482. 'parallax_origo' => 'slidercenter',
  4483. 'parallax_speed' => '2000',
  4484. 'parallax_level_1' => '2',
  4485. 'parallax_level_2' => '3',
  4486. 'parallax_level_3' => '4',
  4487. 'parallax_level_4' => '5',
  4488. 'parallax_level_5' => '6',
  4489. 'parallax_level_6' => '7',
  4490. 'parallax_level_7' => '12',
  4491. 'parallax_level_8' => '16',
  4492. 'parallax_level_9' => '10',
  4493. 'parallax_level_10' => '50',
  4494. 'lazy_load_type' => 'smart',
  4495. 'seo_optimization' => 'none',
  4496. 'simplify_ie8_ios4' => 'off',
  4497. 'show_alternative_type' => 'off',
  4498. 'show_alternate_image' => '',
  4499. 'jquery_noconflict' => 'off',
  4500. 'js_to_body' => 'false',
  4501. 'output_type' => 'none',
  4502. 'jquery_debugmode' => 'off',
  4503. 'slider_type' => 'fullwidth',
  4504. 'width' => '1400',
  4505. 'width_notebook' => '1240',
  4506. 'width_tablet' => '778',
  4507. 'width_mobile' => '480',
  4508. 'height' => '600',
  4509. 'height_notebook' => '500',
  4510. 'height_tablet' => '400',
  4511. 'height_mobile' => '400',
  4512. 'enable_custom_size_notebook' => 'on',
  4513. 'enable_custom_size_tablet' => 'on',
  4514. 'enable_custom_size_iphone' => 'on',
  4515. 'main_overflow_hidden' => 'off',
  4516. 'auto_height' => 'off',
  4517. 'min_height' => '',
  4518. 'custom_javascript' => '',
  4519. 'custom_css' => '',
  4520. ),
  4521. );
  4522. $presets[] = array (
  4523. 'settings' =>
  4524. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Screen', 'preset' => 'heropreset' ),
  4525. 'values' =>
  4526. array (
  4527. 'next_slide_on_window_focus' => 'off',
  4528. 'delay' => '9000',
  4529. 'start_js_after_delay' => '0',
  4530. 'image_source_type' => 'full',
  4531. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4532. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4533. //data.layertype - Layer Type (image,video,html)
  4534. //data.layersettings - Default Settings for Layer
  4535. //data.layer - Layer as jQuery Object
  4536. });',
  4537. 'start_with_slide' => '1',
  4538. 'stop_on_hover' => 'off',
  4539. 'stop_slider' => 'on',
  4540. 'stop_after_loops' => '0',
  4541. 'stop_at_slide' => '1',
  4542. 'shuffle' => 'off',
  4543. 'viewport_start' => 'wait',
  4544. 'viewport_area' => '80',
  4545. 'enable_progressbar' => 'off',
  4546. 'background_dotted_overlay' => 'none',
  4547. 'background_color' => 'transparent',
  4548. 'padding' => '0',
  4549. 'show_background_image' => 'off',
  4550. 'background_image' => '',
  4551. 'bg_fit' => 'cover',
  4552. 'bg_repeat' => 'no-repeat',
  4553. 'bg_position' => 'center center',
  4554. 'position' => 'center',
  4555. 'use_spinner' => '-1',
  4556. 'spinner_color' => '#FFFFFF',
  4557. 'enable_arrows' => 'off',
  4558. 'navigation_arrow_style' => 'navbar',
  4559. 'arrows_always_on' => 'false',
  4560. 'hide_arrows' => '200',
  4561. 'hide_arrows_mobile' => '1200',
  4562. 'hide_arrows_on_mobile' => 'off',
  4563. 'arrows_under_hidden' => '600',
  4564. 'hide_arrows_over' => 'off',
  4565. 'arrows_over_hidden' => '0',
  4566. 'leftarrow_align_hor' => 'left',
  4567. 'leftarrow_align_vert' => 'bottom',
  4568. 'leftarrow_offset_hor' => '0',
  4569. 'leftarrow_offset_vert' => '0',
  4570. 'rightarrow_align_hor' => 'left',
  4571. 'rightarrow_align_vert' => 'bottom',
  4572. 'rightarrow_offset_hor' => '40',
  4573. 'rightarrow_offset_vert' => '0',
  4574. 'enable_bullets' => 'on',
  4575. 'navigation_bullets_style' => 'round-old',
  4576. 'bullets_space' => '5',
  4577. 'bullets_direction' => 'vertical',
  4578. 'bullets_always_on' => 'true',
  4579. 'hide_bullets' => '200',
  4580. 'hide_bullets_mobile' => '1200',
  4581. 'hide_bullets_on_mobile' => 'on',
  4582. 'bullets_under_hidden' => '600',
  4583. 'hide_bullets_over' => 'off',
  4584. 'bullets_over_hidden' => '0',
  4585. 'bullets_align_hor' => 'right',
  4586. 'bullets_align_vert' => 'center',
  4587. 'bullets_offset_hor' => '30',
  4588. 'bullets_offset_vert' => '0',
  4589. 'enable_thumbnails' => 'off',
  4590. 'thumbnails_padding' => '5',
  4591. 'span_thumbnails_wrapper' => 'off',
  4592. 'thumbnails_wrapper_color' => 'transparent',
  4593. 'thumbnails_wrapper_opacity' => '100',
  4594. 'thumbnails_style' => 'navbar',
  4595. 'thumb_amount' => '5',
  4596. 'thumbnails_space' => '5',
  4597. 'thumbnail_direction' => 'vertical',
  4598. 'thumb_width' => '50',
  4599. 'thumb_height' => '50',
  4600. 'thumb_width_min' => '50',
  4601. 'thumbs_always_on' => 'false',
  4602. 'hide_thumbs' => '200',
  4603. 'hide_thumbs_mobile' => '1200',
  4604. 'hide_thumbs_on_mobile' => 'on',
  4605. 'thumbs_under_hidden' => '778',
  4606. 'hide_thumbs_over' => 'off',
  4607. 'thumbs_over_hidden' => '0',
  4608. 'thumbnails_inner_outer' => 'inner',
  4609. 'thumbnails_align_hor' => 'right',
  4610. 'thumbnails_align_vert' => 'center',
  4611. 'thumbnails_offset_hor' => '20',
  4612. 'thumbnails_offset_vert' => '0',
  4613. 'enable_tabs' => 'off',
  4614. 'tabs_padding' => '5',
  4615. 'span_tabs_wrapper' => 'off',
  4616. 'tabs_wrapper_color' => 'transparent',
  4617. 'tabs_wrapper_opacity' => '5',
  4618. 'tabs_style' => '',
  4619. 'tabs_amount' => '5',
  4620. 'tabs_space' => '5',
  4621. 'tabs_direction' => 'horizontal',
  4622. 'tabs_width' => '100',
  4623. 'tabs_height' => '50',
  4624. 'tabs_width_min' => '100',
  4625. 'tabs_always_on' => 'false',
  4626. 'hide_tabs' => '200',
  4627. 'hide_tabs_mobile' => '1200',
  4628. 'hide_tabs_on_mobile' => 'off',
  4629. 'tabs_under_hidden' => '0',
  4630. 'hide_tabs_over' => 'off',
  4631. 'tabs_over_hidden' => '0',
  4632. 'tabs_inner_outer' => 'inner',
  4633. 'tabs_align_hor' => 'center',
  4634. 'tabs_align_vert' => 'bottom',
  4635. 'tabs_offset_hor' => '0',
  4636. 'tabs_offset_vert' => '20',
  4637. 'touchenabled' => 'on',
  4638. 'drag_block_vertical' => 'off',
  4639. 'swipe_velocity' => '75',
  4640. 'swipe_min_touches' => '50',
  4641. 'swipe_direction' => 'horizontal',
  4642. 'keyboard_navigation' => 'off',
  4643. 'keyboard_direction' => 'horizontal',
  4644. 'mousescroll_navigation' => 'off',
  4645. 'carousel_infinity' => 'off',
  4646. 'carousel_space' => '0',
  4647. 'carousel_borderr' => '0',
  4648. 'carousel_borderr_unit' => 'px',
  4649. 'carousel_padding_top' => '0',
  4650. 'carousel_padding_bottom' => '0',
  4651. 'carousel_maxitems' => '3',
  4652. 'carousel_stretch' => 'off',
  4653. 'carousel_fadeout' => 'on',
  4654. 'carousel_varyfade' => 'off',
  4655. 'carousel_rotation' => 'off',
  4656. 'carousel_varyrotate' => 'off',
  4657. 'carousel_maxrotation' => '0',
  4658. 'carousel_scale' => 'off',
  4659. 'carousel_varyscale' => 'off',
  4660. 'carousel_scaledown' => '50',
  4661. 'carousel_hposition' => 'center',
  4662. 'carousel_vposition' => 'center',
  4663. 'use_parallax' => 'on',
  4664. 'disable_parallax_mobile' => 'off',
  4665. 'parallax_type' => 'mouse',
  4666. 'parallax_origo' => 'slidercenter',
  4667. 'parallax_speed' => '2000',
  4668. 'parallax_level_1' => '2',
  4669. 'parallax_level_2' => '3',
  4670. 'parallax_level_3' => '4',
  4671. 'parallax_level_4' => '5',
  4672. 'parallax_level_5' => '6',
  4673. 'parallax_level_6' => '7',
  4674. 'parallax_level_7' => '12',
  4675. 'parallax_level_8' => '16',
  4676. 'parallax_level_9' => '10',
  4677. 'parallax_level_10' => '50',
  4678. 'lazy_load_type' => 'smart',
  4679. 'seo_optimization' => 'none',
  4680. 'simplify_ie8_ios4' => 'off',
  4681. 'show_alternative_type' => 'off',
  4682. 'show_alternate_image' => '',
  4683. 'jquery_noconflict' => 'off',
  4684. 'js_to_body' => 'false',
  4685. 'output_type' => 'none',
  4686. 'jquery_debugmode' => 'off',
  4687. 'slider_type' => 'fullscreen',
  4688. 'width' => '1240',
  4689. 'width_notebook' => '1024',
  4690. 'width_tablet' => '778',
  4691. 'width_mobile' => '480',
  4692. 'height' => '868',
  4693. 'height_notebook' => '768',
  4694. 'height_tablet' => '960',
  4695. 'height_mobile' => '720',
  4696. 'enable_custom_size_notebook' => 'on',
  4697. 'enable_custom_size_tablet' => 'on',
  4698. 'enable_custom_size_iphone' => 'on',
  4699. 'main_overflow_hidden' => 'off',
  4700. 'auto_height' => 'off',
  4701. 'min_height' => '',
  4702. 'custom_javascript' => '',
  4703. 'custom_css' => '',
  4704. ),
  4705. );
  4706. $presets[] = array (
  4707. 'settings' =>
  4708. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Width', 'preset' => 'heropreset' ),
  4709. 'values' =>
  4710. array (
  4711. 'next_slide_on_window_focus' => 'off',
  4712. 'delay' => '9000',
  4713. 'start_js_after_delay' => '0',
  4714. 'image_source_type' => 'full',
  4715. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4716. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4717. //data.layertype - Layer Type (image,video,html)
  4718. //data.layersettings - Default Settings for Layer
  4719. //data.layer - Layer as jQuery Object
  4720. });',
  4721. 'start_with_slide' => '1',
  4722. 'stop_on_hover' => 'off',
  4723. 'stop_slider' => 'on',
  4724. 'stop_after_loops' => '0',
  4725. 'stop_at_slide' => '1',
  4726. 'shuffle' => 'off',
  4727. 'viewport_start' => 'wait',
  4728. 'viewport_area' => '80',
  4729. 'enable_progressbar' => 'off',
  4730. 'background_dotted_overlay' => 'none',
  4731. 'background_color' => 'transparent',
  4732. 'padding' => '0',
  4733. 'show_background_image' => 'off',
  4734. 'background_image' => '',
  4735. 'bg_fit' => 'cover',
  4736. 'bg_repeat' => 'no-repeat',
  4737. 'bg_position' => 'center center',
  4738. 'position' => 'center',
  4739. 'use_spinner' => '-1',
  4740. 'spinner_color' => '#FFFFFF',
  4741. 'enable_arrows' => 'off',
  4742. 'navigation_arrow_style' => 'navbar',
  4743. 'arrows_always_on' => 'false',
  4744. 'hide_arrows' => '200',
  4745. 'hide_arrows_mobile' => '1200',
  4746. 'hide_arrows_on_mobile' => 'off',
  4747. 'arrows_under_hidden' => '600',
  4748. 'hide_arrows_over' => 'off',
  4749. 'arrows_over_hidden' => '0',
  4750. 'leftarrow_align_hor' => 'left',
  4751. 'leftarrow_align_vert' => 'bottom',
  4752. 'leftarrow_offset_hor' => '0',
  4753. 'leftarrow_offset_vert' => '0',
  4754. 'rightarrow_align_hor' => 'left',
  4755. 'rightarrow_align_vert' => 'bottom',
  4756. 'rightarrow_offset_hor' => '40',
  4757. 'rightarrow_offset_vert' => '0',
  4758. 'enable_bullets' => 'on',
  4759. 'navigation_bullets_style' => 'round-old',
  4760. 'bullets_space' => '5',
  4761. 'bullets_direction' => 'vertical',
  4762. 'bullets_always_on' => 'true',
  4763. 'hide_bullets' => '200',
  4764. 'hide_bullets_mobile' => '1200',
  4765. 'hide_bullets_on_mobile' => 'on',
  4766. 'bullets_under_hidden' => '600',
  4767. 'hide_bullets_over' => 'off',
  4768. 'bullets_over_hidden' => '0',
  4769. 'bullets_align_hor' => 'right',
  4770. 'bullets_align_vert' => 'center',
  4771. 'bullets_offset_hor' => '30',
  4772. 'bullets_offset_vert' => '0',
  4773. 'enable_thumbnails' => 'off',
  4774. 'thumbnails_padding' => '5',
  4775. 'span_thumbnails_wrapper' => 'off',
  4776. 'thumbnails_wrapper_color' => 'transparent',
  4777. 'thumbnails_wrapper_opacity' => '100',
  4778. 'thumbnails_style' => 'navbar',
  4779. 'thumb_amount' => '5',
  4780. 'thumbnails_space' => '5',
  4781. 'thumbnail_direction' => 'vertical',
  4782. 'thumb_width' => '50',
  4783. 'thumb_height' => '50',
  4784. 'thumb_width_min' => '50',
  4785. 'thumbs_always_on' => 'false',
  4786. 'hide_thumbs' => '200',
  4787. 'hide_thumbs_mobile' => '1200',
  4788. 'hide_thumbs_on_mobile' => 'on',
  4789. 'thumbs_under_hidden' => '778',
  4790. 'hide_thumbs_over' => 'off',
  4791. 'thumbs_over_hidden' => '0',
  4792. 'thumbnails_inner_outer' => 'inner',
  4793. 'thumbnails_align_hor' => 'right',
  4794. 'thumbnails_align_vert' => 'center',
  4795. 'thumbnails_offset_hor' => '20',
  4796. 'thumbnails_offset_vert' => '0',
  4797. 'enable_tabs' => 'off',
  4798. 'tabs_padding' => '5',
  4799. 'span_tabs_wrapper' => 'off',
  4800. 'tabs_wrapper_color' => 'transparent',
  4801. 'tabs_wrapper_opacity' => '5',
  4802. 'tabs_style' => '',
  4803. 'tabs_amount' => '5',
  4804. 'tabs_space' => '5',
  4805. 'tabs_direction' => 'horizontal',
  4806. 'tabs_width' => '100',
  4807. 'tabs_height' => '50',
  4808. 'tabs_width_min' => '100',
  4809. 'tabs_always_on' => 'false',
  4810. 'hide_tabs' => '200',
  4811. 'hide_tabs_mobile' => '1200',
  4812. 'hide_tabs_on_mobile' => 'off',
  4813. 'tabs_under_hidden' => '0',
  4814. 'hide_tabs_over' => 'off',
  4815. 'tabs_over_hidden' => '0',
  4816. 'tabs_inner_outer' => 'inner',
  4817. 'tabs_align_hor' => 'center',
  4818. 'tabs_align_vert' => 'bottom',
  4819. 'tabs_offset_hor' => '0',
  4820. 'tabs_offset_vert' => '20',
  4821. 'touchenabled' => 'on',
  4822. 'drag_block_vertical' => 'off',
  4823. 'swipe_velocity' => '75',
  4824. 'swipe_min_touches' => '50',
  4825. 'swipe_direction' => 'horizontal',
  4826. 'keyboard_navigation' => 'off',
  4827. 'keyboard_direction' => 'horizontal',
  4828. 'mousescroll_navigation' => 'off',
  4829. 'carousel_infinity' => 'off',
  4830. 'carousel_space' => '0',
  4831. 'carousel_borderr' => '0',
  4832. 'carousel_borderr_unit' => 'px',
  4833. 'carousel_padding_top' => '0',
  4834. 'carousel_padding_bottom' => '0',
  4835. 'carousel_maxitems' => '3',
  4836. 'carousel_stretch' => 'off',
  4837. 'carousel_fadeout' => 'on',
  4838. 'carousel_varyfade' => 'off',
  4839. 'carousel_rotation' => 'off',
  4840. 'carousel_varyrotate' => 'off',
  4841. 'carousel_maxrotation' => '0',
  4842. 'carousel_scale' => 'off',
  4843. 'carousel_varyscale' => 'off',
  4844. 'carousel_scaledown' => '50',
  4845. 'carousel_hposition' => 'center',
  4846. 'carousel_vposition' => 'center',
  4847. 'use_parallax' => 'on',
  4848. 'disable_parallax_mobile' => 'off',
  4849. 'parallax_type' => 'mouse',
  4850. 'parallax_origo' => 'slidercenter',
  4851. 'parallax_speed' => '2000',
  4852. 'parallax_level_1' => '2',
  4853. 'parallax_level_2' => '3',
  4854. 'parallax_level_3' => '4',
  4855. 'parallax_level_4' => '5',
  4856. 'parallax_level_5' => '6',
  4857. 'parallax_level_6' => '7',
  4858. 'parallax_level_7' => '12',
  4859. 'parallax_level_8' => '16',
  4860. 'parallax_level_9' => '10',
  4861. 'parallax_level_10' => '50',
  4862. 'lazy_load_type' => 'smart',
  4863. 'seo_optimization' => 'none',
  4864. 'simplify_ie8_ios4' => 'off',
  4865. 'show_alternative_type' => 'off',
  4866. 'show_alternate_image' => '',
  4867. 'jquery_noconflict' => 'off',
  4868. 'js_to_body' => 'false',
  4869. 'output_type' => 'none',
  4870. 'jquery_debugmode' => 'off',
  4871. 'slider_type' => 'fullwidth',
  4872. 'width' => '1240',
  4873. 'width_notebook' => '1024',
  4874. 'width_tablet' => '778',
  4875. 'width_mobile' => '480',
  4876. 'height' => '600',
  4877. 'height_notebook' => '500',
  4878. 'height_tablet' => '400',
  4879. 'height_mobile' => '300',
  4880. 'enable_custom_size_notebook' => 'on',
  4881. 'enable_custom_size_tablet' => 'on',
  4882. 'enable_custom_size_iphone' => 'on',
  4883. 'main_overflow_hidden' => 'off',
  4884. 'auto_height' => 'off',
  4885. 'min_height' => '',
  4886. 'custom_javascript' => '',
  4887. 'custom_css' => '',
  4888. ),
  4889. );
  4890. $presets[] = array (
  4891. 'settings' =>
  4892. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Thumbs', 'preset' => 'carouselpreset' ),
  4893. 'values' =>
  4894. array (
  4895. 'next_slide_on_window_focus' => 'off',
  4896. 'delay' => '9000',
  4897. 'start_js_after_delay' => '0',
  4898. 'image_source_type' => 'full',
  4899. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4900. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4901. //data.layertype - Layer Type (image,video,html)
  4902. //data.layersettings - Default Settings for Layer
  4903. //data.layer - Layer as jQuery Object
  4904. });',
  4905. 'start_with_slide' => '1',
  4906. 'stop_on_hover' => 'off',
  4907. 'stop_slider' => 'on',
  4908. 'stop_after_loops' => '0',
  4909. 'stop_at_slide' => '1',
  4910. 'shuffle' => 'off',
  4911. 'viewport_start' => 'wait',
  4912. 'viewport_area' => '80',
  4913. 'enable_progressbar' => 'on',
  4914. 'background_dotted_overlay' => 'none',
  4915. 'background_color' => 'transparent',
  4916. 'padding' => '0',
  4917. 'show_background_image' => 'off',
  4918. 'background_image' => '',
  4919. 'bg_fit' => 'cover',
  4920. 'bg_repeat' => 'no-repeat',
  4921. 'bg_position' => 'center center',
  4922. 'position' => 'center',
  4923. 'use_spinner' => '-1',
  4924. 'spinner_color' => '#FFFFFF',
  4925. 'enable_arrows' => 'on',
  4926. 'navigation_arrow_style' => 'navbar-old',
  4927. 'arrows_always_on' => 'false',
  4928. 'hide_arrows' => '200',
  4929. 'hide_arrows_mobile' => '1200',
  4930. 'hide_arrows_on_mobile' => 'off',
  4931. 'arrows_under_hidden' => '600',
  4932. 'hide_arrows_over' => 'off',
  4933. 'arrows_over_hidden' => '0',
  4934. 'leftarrow_align_hor' => 'left',
  4935. 'leftarrow_align_vert' => 'center',
  4936. 'leftarrow_offset_hor' => '30',
  4937. 'leftarrow_offset_vert' => '0',
  4938. 'rightarrow_align_hor' => 'right',
  4939. 'rightarrow_align_vert' => 'center',
  4940. 'rightarrow_offset_hor' => '30',
  4941. 'rightarrow_offset_vert' => '0',
  4942. 'enable_bullets' => 'off',
  4943. 'navigation_bullets_style' => 'round-old',
  4944. 'bullets_space' => '5',
  4945. 'bullets_direction' => 'horizontal',
  4946. 'bullets_always_on' => 'true',
  4947. 'hide_bullets' => '200',
  4948. 'hide_bullets_mobile' => '1200',
  4949. 'hide_bullets_on_mobile' => 'on',
  4950. 'bullets_under_hidden' => '600',
  4951. 'hide_bullets_over' => 'off',
  4952. 'bullets_over_hidden' => '0',
  4953. 'bullets_align_hor' => 'center',
  4954. 'bullets_align_vert' => 'bottom',
  4955. 'bullets_offset_hor' => '0',
  4956. 'bullets_offset_vert' => '30',
  4957. 'enable_thumbnails' => 'on',
  4958. 'thumbnails_padding' => '20',
  4959. 'span_thumbnails_wrapper' => 'on',
  4960. 'thumbnails_wrapper_color' => '#000000',
  4961. 'thumbnails_wrapper_opacity' => '15',
  4962. 'thumbnails_style' => 'navbar',
  4963. 'thumb_amount' => '9',
  4964. 'thumbnails_space' => '10',
  4965. 'thumbnail_direction' => 'horizontal',
  4966. 'thumb_width' => '60',
  4967. 'thumb_height' => '60',
  4968. 'thumb_width_min' => '60',
  4969. 'thumbs_always_on' => 'false',
  4970. 'hide_thumbs' => '200',
  4971. 'hide_thumbs_mobile' => '1200',
  4972. 'hide_thumbs_on_mobile' => 'off',
  4973. 'thumbs_under_hidden' => '0',
  4974. 'hide_thumbs_over' => 'off',
  4975. 'thumbs_over_hidden' => '0',
  4976. 'thumbnails_inner_outer' => 'outer-bottom',
  4977. 'thumbnails_align_hor' => 'center',
  4978. 'thumbnails_align_vert' => 'bottom',
  4979. 'thumbnails_offset_hor' => '0',
  4980. 'thumbnails_offset_vert' => '0',
  4981. 'enable_tabs' => 'off',
  4982. 'tabs_padding' => '5',
  4983. 'span_tabs_wrapper' => 'off',
  4984. 'tabs_wrapper_color' => 'transparent',
  4985. 'tabs_wrapper_opacity' => '5',
  4986. 'tabs_style' => '',
  4987. 'tabs_amount' => '5',
  4988. 'tabs_space' => '5',
  4989. 'tabs_direction' => 'horizontal',
  4990. 'tabs_width' => '100',
  4991. 'tabs_height' => '50',
  4992. 'tabs_width_min' => '100',
  4993. 'tabs_always_on' => 'false',
  4994. 'hide_tabs' => '200',
  4995. 'hide_tabs_mobile' => '1200',
  4996. 'hide_tabs_on_mobile' => 'off',
  4997. 'tabs_under_hidden' => '0',
  4998. 'hide_tabs_over' => 'off',
  4999. 'tabs_over_hidden' => '0',
  5000. 'tabs_inner_outer' => 'inner',
  5001. 'tabs_align_hor' => 'center',
  5002. 'tabs_align_vert' => 'bottom',
  5003. 'tabs_offset_hor' => '0',
  5004. 'tabs_offset_vert' => '20',
  5005. 'touchenabled' => 'on',
  5006. 'drag_block_vertical' => 'off',
  5007. 'swipe_velocity' => '75',
  5008. 'swipe_min_touches' => '50',
  5009. 'swipe_direction' => 'horizontal',
  5010. 'keyboard_navigation' => 'off',
  5011. 'keyboard_direction' => 'horizontal',
  5012. 'mousescroll_navigation' => 'off',
  5013. 'carousel_infinity' => 'off',
  5014. 'carousel_space' => '-150',
  5015. 'carousel_borderr' => '0',
  5016. 'carousel_borderr_unit' => 'px',
  5017. 'carousel_padding_top' => '0',
  5018. 'carousel_padding_bottom' => '0',
  5019. 'carousel_maxitems' => '5',
  5020. 'carousel_stretch' => 'off',
  5021. 'carousel_fadeout' => 'on',
  5022. 'carousel_varyfade' => 'on',
  5023. 'carousel_rotation' => 'on',
  5024. 'carousel_varyrotate' => 'on',
  5025. 'carousel_maxrotation' => '65',
  5026. 'carousel_scale' => 'on',
  5027. 'carousel_varyscale' => 'off',
  5028. 'carousel_scaledown' => '55',
  5029. 'carousel_hposition' => 'center',
  5030. 'carousel_vposition' => 'center',
  5031. 'use_parallax' => 'on',
  5032. 'disable_parallax_mobile' => 'off',
  5033. 'parallax_type' => 'mouse',
  5034. 'parallax_origo' => 'slidercenter',
  5035. 'parallax_speed' => '2000',
  5036. 'parallax_level_1' => '2',
  5037. 'parallax_level_2' => '3',
  5038. 'parallax_level_3' => '4',
  5039. 'parallax_level_4' => '5',
  5040. 'parallax_level_5' => '6',
  5041. 'parallax_level_6' => '7',
  5042. 'parallax_level_7' => '12',
  5043. 'parallax_level_8' => '16',
  5044. 'parallax_level_9' => '10',
  5045. 'parallax_level_10' => '50',
  5046. 'lazy_load_type' => 'smart',
  5047. 'seo_optimization' => 'none',
  5048. 'simplify_ie8_ios4' => 'off',
  5049. 'show_alternative_type' => 'off',
  5050. 'show_alternate_image' => '',
  5051. 'jquery_noconflict' => 'off',
  5052. 'js_to_body' => 'false',
  5053. 'output_type' => 'none',
  5054. 'jquery_debugmode' => 'off',
  5055. 'slider_type' => 'fullwidth',
  5056. 'width' => '600',
  5057. 'width_notebook' => '600',
  5058. 'width_tablet' => '600',
  5059. 'width_mobile' => '600',
  5060. 'height' => '600',
  5061. 'height_notebook' => '600',
  5062. 'height_tablet' => '600',
  5063. 'height_mobile' => '600',
  5064. 'enable_custom_size_notebook' => 'off',
  5065. 'enable_custom_size_tablet' => 'off',
  5066. 'enable_custom_size_iphone' => 'off',
  5067. 'main_overflow_hidden' => 'off',
  5068. 'auto_height' => 'off',
  5069. 'min_height' => '',
  5070. 'custom_css' => '',
  5071. 'custom_javascript' => '',
  5072. ),
  5073. );
  5074. $presets[] = array (
  5075. 'settings' =>
  5076. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_endless.png', 'name' => 'Cover-Flow-Infinite', 'preset' => 'carouselpreset' ),
  5077. 'values' =>
  5078. array (
  5079. 'next_slide_on_window_focus' => 'off',
  5080. 'delay' => '9000',
  5081. 'start_js_after_delay' => '0',
  5082. 'image_source_type' => 'full',
  5083. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5084. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5085. //data.layertype - Layer Type (image,video,html)
  5086. //data.layersettings - Default Settings for Layer
  5087. //data.layer - Layer as jQuery Object
  5088. });',
  5089. 'start_with_slide' => '1',
  5090. 'stop_on_hover' => 'off',
  5091. 'stop_slider' => 'on',
  5092. 'stop_after_loops' => '0',
  5093. 'stop_at_slide' => '1',
  5094. 'shuffle' => 'off',
  5095. 'viewport_start' => 'wait',
  5096. 'viewport_area' => '80',
  5097. 'enable_progressbar' => 'on',
  5098. 'background_dotted_overlay' => 'none',
  5099. 'background_color' => 'transparent',
  5100. 'padding' => '0',
  5101. 'show_background_image' => 'off',
  5102. 'background_image' => '',
  5103. 'bg_fit' => 'cover',
  5104. 'bg_repeat' => 'no-repeat',
  5105. 'bg_position' => 'center center',
  5106. 'position' => 'center',
  5107. 'use_spinner' => '-1',
  5108. 'spinner_color' => '#FFFFFF',
  5109. 'enable_arrows' => 'on',
  5110. 'navigation_arrow_style' => 'round',
  5111. 'arrows_always_on' => 'false',
  5112. 'hide_arrows' => '200',
  5113. 'hide_arrows_mobile' => '1200',
  5114. 'hide_arrows_on_mobile' => 'off',
  5115. 'arrows_under_hidden' => '600',
  5116. 'hide_arrows_over' => 'off',
  5117. 'arrows_over_hidden' => '0',
  5118. 'leftarrow_align_hor' => 'left',
  5119. 'leftarrow_align_vert' => 'center',
  5120. 'leftarrow_offset_hor' => '30',
  5121. 'leftarrow_offset_vert' => '0',
  5122. 'rightarrow_align_hor' => 'right',
  5123. 'rightarrow_align_vert' => 'center',
  5124. 'rightarrow_offset_hor' => '30',
  5125. 'rightarrow_offset_vert' => '0',
  5126. 'enable_bullets' => 'off',
  5127. 'navigation_bullets_style' => 'round-old',
  5128. 'bullets_space' => '5',
  5129. 'bullets_direction' => 'horizontal',
  5130. 'bullets_always_on' => 'true',
  5131. 'hide_bullets' => '200',
  5132. 'hide_bullets_mobile' => '1200',
  5133. 'hide_bullets_on_mobile' => 'on',
  5134. 'bullets_under_hidden' => '600',
  5135. 'hide_bullets_over' => 'off',
  5136. 'bullets_over_hidden' => '0',
  5137. 'bullets_align_hor' => 'center',
  5138. 'bullets_align_vert' => 'bottom',
  5139. 'bullets_offset_hor' => '0',
  5140. 'bullets_offset_vert' => '30',
  5141. 'enable_thumbnails' => 'off',
  5142. 'thumbnails_padding' => '20',
  5143. 'span_thumbnails_wrapper' => 'on',
  5144. 'thumbnails_wrapper_color' => '#000000',
  5145. 'thumbnails_wrapper_opacity' => '15',
  5146. 'thumbnails_style' => 'navbar',
  5147. 'thumb_amount' => '9',
  5148. 'thumbnails_space' => '10',
  5149. 'thumbnail_direction' => 'horizontal',
  5150. 'thumb_width' => '60',
  5151. 'thumb_height' => '60',
  5152. 'thumb_width_min' => '60',
  5153. 'thumbs_always_on' => 'false',
  5154. 'hide_thumbs' => '200',
  5155. 'hide_thumbs_mobile' => '1200',
  5156. 'hide_thumbs_on_mobile' => 'off',
  5157. 'thumbs_under_hidden' => '0',
  5158. 'hide_thumbs_over' => 'off',
  5159. 'thumbs_over_hidden' => '0',
  5160. 'thumbnails_inner_outer' => 'outer-bottom',
  5161. 'thumbnails_align_hor' => 'center',
  5162. 'thumbnails_align_vert' => 'bottom',
  5163. 'thumbnails_offset_hor' => '0',
  5164. 'thumbnails_offset_vert' => '0',
  5165. 'enable_tabs' => 'off',
  5166. 'tabs_padding' => '5',
  5167. 'span_tabs_wrapper' => 'off',
  5168. 'tabs_wrapper_color' => 'transparent',
  5169. 'tabs_wrapper_opacity' => '5',
  5170. 'tabs_style' => '',
  5171. 'tabs_amount' => '5',
  5172. 'tabs_space' => '5',
  5173. 'tabs_direction' => 'horizontal',
  5174. 'tabs_width' => '100',
  5175. 'tabs_height' => '50',
  5176. 'tabs_width_min' => '100',
  5177. 'tabs_always_on' => 'false',
  5178. 'hide_tabs' => '200',
  5179. 'hide_tabs_mobile' => '1200',
  5180. 'hide_tabs_on_mobile' => 'off',
  5181. 'tabs_under_hidden' => '0',
  5182. 'hide_tabs_over' => 'off',
  5183. 'tabs_over_hidden' => '0',
  5184. 'tabs_inner_outer' => 'inner',
  5185. 'tabs_align_hor' => 'center',
  5186. 'tabs_align_vert' => 'bottom',
  5187. 'tabs_offset_hor' => '0',
  5188. 'tabs_offset_vert' => '20',
  5189. 'touchenabled' => 'on',
  5190. 'drag_block_vertical' => 'off',
  5191. 'swipe_velocity' => '75',
  5192. 'swipe_min_touches' => '50',
  5193. 'swipe_direction' => 'horizontal',
  5194. 'keyboard_navigation' => 'off',
  5195. 'keyboard_direction' => 'horizontal',
  5196. 'mousescroll_navigation' => 'off',
  5197. 'carousel_infinity' => 'on',
  5198. 'carousel_space' => '-150',
  5199. 'carousel_borderr' => '0',
  5200. 'carousel_borderr_unit' => 'px',
  5201. 'carousel_padding_top' => '0',
  5202. 'carousel_padding_bottom' => '0',
  5203. 'carousel_maxitems' => '3',
  5204. 'carousel_stretch' => 'off',
  5205. 'carousel_fadeout' => 'on',
  5206. 'carousel_varyfade' => 'on',
  5207. 'carousel_rotation' => 'on',
  5208. 'carousel_varyrotate' => 'on',
  5209. 'carousel_maxrotation' => '65',
  5210. 'carousel_scale' => 'on',
  5211. 'carousel_varyscale' => 'off',
  5212. 'carousel_scaledown' => '55',
  5213. 'carousel_hposition' => 'center',
  5214. 'carousel_vposition' => 'center',
  5215. 'use_parallax' => 'on',
  5216. 'disable_parallax_mobile' => 'off',
  5217. 'parallax_type' => 'mouse',
  5218. 'parallax_origo' => 'slidercenter',
  5219. 'parallax_speed' => '2000',
  5220. 'parallax_level_1' => '2',
  5221. 'parallax_level_2' => '3',
  5222. 'parallax_level_3' => '4',
  5223. 'parallax_level_4' => '5',
  5224. 'parallax_level_5' => '6',
  5225. 'parallax_level_6' => '7',
  5226. 'parallax_level_7' => '12',
  5227. 'parallax_level_8' => '16',
  5228. 'parallax_level_9' => '10',
  5229. 'parallax_level_10' => '50',
  5230. 'lazy_load_type' => 'smart',
  5231. 'seo_optimization' => 'none',
  5232. 'simplify_ie8_ios4' => 'off',
  5233. 'show_alternative_type' => 'off',
  5234. 'show_alternate_image' => '',
  5235. 'jquery_noconflict' => 'off',
  5236. 'js_to_body' => 'false',
  5237. 'output_type' => 'none',
  5238. 'jquery_debugmode' => 'off',
  5239. 'slider_type' => 'fullwidth',
  5240. 'width' => '600',
  5241. 'width_notebook' => '600',
  5242. 'width_tablet' => '600',
  5243. 'width_mobile' => '600',
  5244. 'height' => '600',
  5245. 'height_notebook' => '600',
  5246. 'height_tablet' => '600',
  5247. 'height_mobile' => '600',
  5248. 'enable_custom_size_notebook' => 'off',
  5249. 'enable_custom_size_tablet' => 'off',
  5250. 'enable_custom_size_iphone' => 'off',
  5251. 'main_overflow_hidden' => 'off',
  5252. 'auto_height' => 'off',
  5253. 'min_height' => '',
  5254. 'custom_css' => '',
  5255. 'custom_javascript' => '',
  5256. ),
  5257. );
  5258. $presets[] = array (
  5259. 'settings' =>
  5260. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs.png', 'name' => 'Flat-Infinite-Thumbs', 'preset' => 'carouselpreset' ),
  5261. 'values' =>
  5262. array (
  5263. 'next_slide_on_window_focus' => 'off',
  5264. 'delay' => '9000',
  5265. 'start_js_after_delay' => '0',
  5266. 'image_source_type' => 'full',
  5267. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5268. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5269. //data.layertype - Layer Type (image,video,html)
  5270. //data.layersettings - Default Settings for Layer
  5271. //data.layer - Layer as jQuery Object
  5272. });',
  5273. 'start_with_slide' => '1',
  5274. 'stop_on_hover' => 'off',
  5275. 'stop_slider' => 'on',
  5276. 'stop_after_loops' => '0',
  5277. 'stop_at_slide' => '1',
  5278. 'shuffle' => 'off',
  5279. 'viewport_start' => 'wait',
  5280. 'viewport_area' => '80',
  5281. 'enable_progressbar' => 'on',
  5282. 'background_dotted_overlay' => 'none',
  5283. 'background_color' => '#111111',
  5284. 'padding' => '0',
  5285. 'show_background_image' => 'off',
  5286. 'background_image' => '',
  5287. 'bg_fit' => 'cover',
  5288. 'bg_repeat' => 'no-repeat',
  5289. 'bg_position' => 'center center',
  5290. 'position' => 'center',
  5291. 'use_spinner' => '-1',
  5292. 'spinner_color' => '#FFFFFF',
  5293. 'enable_arrows' => 'on',
  5294. 'navigation_arrow_style' => 'navbar',
  5295. 'arrows_always_on' => 'false',
  5296. 'hide_arrows' => '200',
  5297. 'hide_arrows_mobile' => '1200',
  5298. 'hide_arrows_on_mobile' => 'off',
  5299. 'arrows_under_hidden' => '600',
  5300. 'hide_arrows_over' => 'off',
  5301. 'arrows_over_hidden' => '0',
  5302. 'leftarrow_align_hor' => 'left',
  5303. 'leftarrow_align_vert' => 'center',
  5304. 'leftarrow_offset_hor' => '30',
  5305. 'leftarrow_offset_vert' => '0',
  5306. 'rightarrow_align_hor' => 'right',
  5307. 'rightarrow_align_vert' => 'center',
  5308. 'rightarrow_offset_hor' => '30',
  5309. 'rightarrow_offset_vert' => '0',
  5310. 'enable_bullets' => 'off',
  5311. 'navigation_bullets_style' => 'round-old',
  5312. 'bullets_space' => '5',
  5313. 'bullets_direction' => 'horizontal',
  5314. 'bullets_always_on' => 'true',
  5315. 'hide_bullets' => '200',
  5316. 'hide_bullets_mobile' => '1200',
  5317. 'hide_bullets_on_mobile' => 'on',
  5318. 'bullets_under_hidden' => '600',
  5319. 'hide_bullets_over' => 'off',
  5320. 'bullets_over_hidden' => '0',
  5321. 'bullets_align_hor' => 'center',
  5322. 'bullets_align_vert' => 'bottom',
  5323. 'bullets_offset_hor' => '0',
  5324. 'bullets_offset_vert' => '30',
  5325. 'enable_thumbnails' => 'on',
  5326. 'thumbnails_padding' => '20',
  5327. 'span_thumbnails_wrapper' => 'on',
  5328. 'thumbnails_wrapper_color' => '#222222',
  5329. 'thumbnails_wrapper_opacity' => '100',
  5330. 'thumbnails_style' => 'navbar',
  5331. 'thumb_amount' => '9',
  5332. 'thumbnails_space' => '10',
  5333. 'thumbnail_direction' => 'horizontal',
  5334. 'thumb_width' => '60',
  5335. 'thumb_height' => '60',
  5336. 'thumb_width_min' => '60',
  5337. 'thumbs_always_on' => 'false',
  5338. 'hide_thumbs' => '200',
  5339. 'hide_thumbs_mobile' => '1200',
  5340. 'hide_thumbs_on_mobile' => 'off',
  5341. 'thumbs_under_hidden' => '0',
  5342. 'hide_thumbs_over' => 'off',
  5343. 'thumbs_over_hidden' => '0',
  5344. 'thumbnails_inner_outer' => 'outer-bottom',
  5345. 'thumbnails_align_hor' => 'center',
  5346. 'thumbnails_align_vert' => 'bottom',
  5347. 'thumbnails_offset_hor' => '0',
  5348. 'thumbnails_offset_vert' => '0',
  5349. 'enable_tabs' => 'off',
  5350. 'tabs_padding' => '5',
  5351. 'span_tabs_wrapper' => 'off',
  5352. 'tabs_wrapper_color' => 'transparent',
  5353. 'tabs_wrapper_opacity' => '5',
  5354. 'tabs_style' => '',
  5355. 'tabs_amount' => '5',
  5356. 'tabs_space' => '5',
  5357. 'tabs_direction' => 'horizontal',
  5358. 'tabs_width' => '100',
  5359. 'tabs_height' => '50',
  5360. 'tabs_width_min' => '100',
  5361. 'tabs_always_on' => 'false',
  5362. 'hide_tabs' => '200',
  5363. 'hide_tabs_mobile' => '1200',
  5364. 'hide_tabs_on_mobile' => 'off',
  5365. 'tabs_under_hidden' => '0',
  5366. 'hide_tabs_over' => 'off',
  5367. 'tabs_over_hidden' => '0',
  5368. 'tabs_inner_outer' => 'inner',
  5369. 'tabs_align_hor' => 'center',
  5370. 'tabs_align_vert' => 'bottom',
  5371. 'tabs_offset_hor' => '0',
  5372. 'tabs_offset_vert' => '20',
  5373. 'touchenabled' => 'on',
  5374. 'drag_block_vertical' => 'off',
  5375. 'swipe_velocity' => '75',
  5376. 'swipe_min_touches' => '50',
  5377. 'swipe_direction' => 'horizontal',
  5378. 'keyboard_navigation' => 'off',
  5379. 'keyboard_direction' => 'horizontal',
  5380. 'mousescroll_navigation' => 'off',
  5381. 'carousel_infinity' => 'on',
  5382. 'carousel_space' => '0',
  5383. 'carousel_borderr' => '0',
  5384. 'carousel_borderr_unit' => 'px',
  5385. 'carousel_padding_top' => '0',
  5386. 'carousel_padding_bottom' => '0',
  5387. 'carousel_maxitems' => '3',
  5388. 'carousel_stretch' => 'off',
  5389. 'carousel_fadeout' => 'on',
  5390. 'carousel_varyfade' => 'on',
  5391. 'carousel_rotation' => 'off',
  5392. 'carousel_varyrotate' => 'on',
  5393. 'carousel_maxrotation' => '65',
  5394. 'carousel_scale' => 'off',
  5395. 'carousel_varyscale' => 'off',
  5396. 'carousel_scaledown' => '55',
  5397. 'carousel_hposition' => 'center',
  5398. 'carousel_vposition' => 'center',
  5399. 'use_parallax' => 'on',
  5400. 'disable_parallax_mobile' => 'off',
  5401. 'parallax_type' => 'mouse',
  5402. 'parallax_origo' => 'slidercenter',
  5403. 'parallax_speed' => '2000',
  5404. 'parallax_level_1' => '2',
  5405. 'parallax_level_2' => '3',
  5406. 'parallax_level_3' => '4',
  5407. 'parallax_level_4' => '5',
  5408. 'parallax_level_5' => '6',
  5409. 'parallax_level_6' => '7',
  5410. 'parallax_level_7' => '12',
  5411. 'parallax_level_8' => '16',
  5412. 'parallax_level_9' => '10',
  5413. 'parallax_level_10' => '50',
  5414. 'lazy_load_type' => 'smart',
  5415. 'seo_optimization' => 'none',
  5416. 'simplify_ie8_ios4' => 'off',
  5417. 'show_alternative_type' => 'off',
  5418. 'show_alternate_image' => '',
  5419. 'jquery_noconflict' => 'off',
  5420. 'js_to_body' => 'false',
  5421. 'output_type' => 'none',
  5422. 'jquery_debugmode' => 'off',
  5423. 'slider_type' => 'fullwidth',
  5424. 'width' => '720',
  5425. 'width_notebook' => '720',
  5426. 'width_tablet' => '720',
  5427. 'width_mobile' => '720',
  5428. 'height' => '405',
  5429. 'height_notebook' => '405',
  5430. 'height_tablet' => '405',
  5431. 'height_mobile' => '405',
  5432. 'enable_custom_size_notebook' => 'off',
  5433. 'enable_custom_size_tablet' => 'off',
  5434. 'enable_custom_size_iphone' => 'off',
  5435. 'main_overflow_hidden' => 'off',
  5436. 'auto_height' => 'off',
  5437. 'min_height' => '',
  5438. 'custom_css' => '',
  5439. 'custom_javascript' => '',
  5440. ),
  5441. );
  5442. $presets[] = array (
  5443. 'settings' =>
  5444. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel.png', 'name' => 'Flat-Infinite', 'preset' => 'carouselpreset' ),
  5445. 'values' =>
  5446. array (
  5447. 'next_slide_on_window_focus' => 'off',
  5448. 'delay' => '9000',
  5449. 'start_js_after_delay' => '0',
  5450. 'image_source_type' => 'full',
  5451. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5452. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5453. //data.layertype - Layer Type (image,video,html)
  5454. //data.layersettings - Default Settings for Layer
  5455. //data.layer - Layer as jQuery Object
  5456. });',
  5457. 'start_with_slide' => '1',
  5458. 'stop_on_hover' => 'off',
  5459. 'stop_slider' => 'on',
  5460. 'stop_after_loops' => '0',
  5461. 'stop_at_slide' => '1',
  5462. 'shuffle' => 'off',
  5463. 'viewport_start' => 'wait',
  5464. 'viewport_area' => '80',
  5465. 'enable_progressbar' => 'on',
  5466. 'background_dotted_overlay' => 'none',
  5467. 'background_color' => '#111111',
  5468. 'padding' => '0',
  5469. 'show_background_image' => 'off',
  5470. 'background_image' => '',
  5471. 'bg_fit' => 'cover',
  5472. 'bg_repeat' => 'no-repeat',
  5473. 'bg_position' => 'center center',
  5474. 'position' => 'center',
  5475. 'use_spinner' => '-1',
  5476. 'spinner_color' => '#FFFFFF',
  5477. 'enable_arrows' => 'on',
  5478. 'navigation_arrow_style' => 'uranus',
  5479. 'arrows_always_on' => 'false',
  5480. 'hide_arrows' => '200',
  5481. 'hide_arrows_mobile' => '1200',
  5482. 'hide_arrows_on_mobile' => 'off',
  5483. 'arrows_under_hidden' => '600',
  5484. 'hide_arrows_over' => 'off',
  5485. 'arrows_over_hidden' => '0',
  5486. 'leftarrow_align_hor' => 'left',
  5487. 'leftarrow_align_vert' => 'center',
  5488. 'leftarrow_offset_hor' => '30',
  5489. 'leftarrow_offset_vert' => '0',
  5490. 'rightarrow_align_hor' => 'right',
  5491. 'rightarrow_align_vert' => 'center',
  5492. 'rightarrow_offset_hor' => '30',
  5493. 'rightarrow_offset_vert' => '0',
  5494. 'enable_bullets' => 'off',
  5495. 'navigation_bullets_style' => 'round-old',
  5496. 'bullets_space' => '5',
  5497. 'bullets_direction' => 'horizontal',
  5498. 'bullets_always_on' => 'true',
  5499. 'hide_bullets' => '200',
  5500. 'hide_bullets_mobile' => '1200',
  5501. 'hide_bullets_on_mobile' => 'on',
  5502. 'bullets_under_hidden' => '600',
  5503. 'hide_bullets_over' => 'off',
  5504. 'bullets_over_hidden' => '0',
  5505. 'bullets_align_hor' => 'center',
  5506. 'bullets_align_vert' => 'bottom',
  5507. 'bullets_offset_hor' => '0',
  5508. 'bullets_offset_vert' => '30',
  5509. 'enable_thumbnails' => 'off',
  5510. 'thumbnails_padding' => '20',
  5511. 'span_thumbnails_wrapper' => 'on',
  5512. 'thumbnails_wrapper_color' => '#222222',
  5513. 'thumbnails_wrapper_opacity' => '100',
  5514. 'thumbnails_style' => 'navbar',
  5515. 'thumb_amount' => '9',
  5516. 'thumbnails_space' => '10',
  5517. 'thumbnail_direction' => 'horizontal',
  5518. 'thumb_width' => '60',
  5519. 'thumb_height' => '60',
  5520. 'thumb_width_min' => '60',
  5521. 'thumbs_always_on' => 'false',
  5522. 'hide_thumbs' => '200',
  5523. 'hide_thumbs_mobile' => '1200',
  5524. 'hide_thumbs_on_mobile' => 'off',
  5525. 'thumbs_under_hidden' => '0',
  5526. 'hide_thumbs_over' => 'off',
  5527. 'thumbs_over_hidden' => '0',
  5528. 'thumbnails_inner_outer' => 'outer-bottom',
  5529. 'thumbnails_align_hor' => 'center',
  5530. 'thumbnails_align_vert' => 'bottom',
  5531. 'thumbnails_offset_hor' => '0',
  5532. 'thumbnails_offset_vert' => '0',
  5533. 'enable_tabs' => 'off',
  5534. 'tabs_padding' => '5',
  5535. 'span_tabs_wrapper' => 'off',
  5536. 'tabs_wrapper_color' => 'transparent',
  5537. 'tabs_wrapper_opacity' => '5',
  5538. 'tabs_style' => '',
  5539. 'tabs_amount' => '5',
  5540. 'tabs_space' => '5',
  5541. 'tabs_direction' => 'horizontal',
  5542. 'tabs_width' => '100',
  5543. 'tabs_height' => '50',
  5544. 'tabs_width_min' => '100',
  5545. 'tabs_always_on' => 'false',
  5546. 'hide_tabs' => '200',
  5547. 'hide_tabs_mobile' => '1200',
  5548. 'hide_tabs_on_mobile' => 'off',
  5549. 'tabs_under_hidden' => '0',
  5550. 'hide_tabs_over' => 'off',
  5551. 'tabs_over_hidden' => '0',
  5552. 'tabs_inner_outer' => 'inner',
  5553. 'tabs_align_hor' => 'center',
  5554. 'tabs_align_vert' => 'bottom',
  5555. 'tabs_offset_hor' => '0',
  5556. 'tabs_offset_vert' => '20',
  5557. 'touchenabled' => 'on',
  5558. 'drag_block_vertical' => 'off',
  5559. 'swipe_velocity' => '75',
  5560. 'swipe_min_touches' => '50',
  5561. 'swipe_direction' => 'horizontal',
  5562. 'keyboard_navigation' => 'off',
  5563. 'keyboard_direction' => 'horizontal',
  5564. 'mousescroll_navigation' => 'off',
  5565. 'carousel_infinity' => 'on',
  5566. 'carousel_space' => '0',
  5567. 'carousel_borderr' => '0',
  5568. 'carousel_borderr_unit' => 'px',
  5569. 'carousel_padding_top' => '0',
  5570. 'carousel_padding_bottom' => '0',
  5571. 'carousel_maxitems' => '3',
  5572. 'carousel_stretch' => 'off',
  5573. 'carousel_fadeout' => 'on',
  5574. 'carousel_varyfade' => 'on',
  5575. 'carousel_rotation' => 'off',
  5576. 'carousel_varyrotate' => 'on',
  5577. 'carousel_maxrotation' => '65',
  5578. 'carousel_scale' => 'off',
  5579. 'carousel_varyscale' => 'off',
  5580. 'carousel_scaledown' => '55',
  5581. 'carousel_hposition' => 'center',
  5582. 'carousel_vposition' => 'center',
  5583. 'use_parallax' => 'on',
  5584. 'disable_parallax_mobile' => 'off',
  5585. 'parallax_type' => 'mouse',
  5586. 'parallax_origo' => 'slidercenter',
  5587. 'parallax_speed' => '2000',
  5588. 'parallax_level_1' => '2',
  5589. 'parallax_level_2' => '3',
  5590. 'parallax_level_3' => '4',
  5591. 'parallax_level_4' => '5',
  5592. 'parallax_level_5' => '6',
  5593. 'parallax_level_6' => '7',
  5594. 'parallax_level_7' => '12',
  5595. 'parallax_level_8' => '16',
  5596. 'parallax_level_9' => '10',
  5597. 'parallax_level_10' => '50',
  5598. 'lazy_load_type' => 'smart',
  5599. 'seo_optimization' => 'none',
  5600. 'simplify_ie8_ios4' => 'off',
  5601. 'show_alternative_type' => 'off',
  5602. 'show_alternate_image' => '',
  5603. 'jquery_noconflict' => 'off',
  5604. 'js_to_body' => 'false',
  5605. 'output_type' => 'none',
  5606. 'jquery_debugmode' => 'off',
  5607. 'slider_type' => 'fullwidth',
  5608. 'width' => '720',
  5609. 'width_notebook' => '720',
  5610. 'width_tablet' => '720',
  5611. 'width_mobile' => '720',
  5612. 'height' => '405',
  5613. 'height_notebook' => '405',
  5614. 'height_tablet' => '405',
  5615. 'height_mobile' => '405',
  5616. 'enable_custom_size_notebook' => 'off',
  5617. 'enable_custom_size_tablet' => 'off',
  5618. 'enable_custom_size_iphone' => 'off',
  5619. 'main_overflow_hidden' => 'off',
  5620. 'auto_height' => 'off',
  5621. 'min_height' => '',
  5622. 'custom_css' => '',
  5623. 'custom_javascript' => '',
  5624. ),
  5625. );
  5626. $presets[] = array (
  5627. 'settings' =>
  5628. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs_left.png', 'name' => 'Flat-Thumbs-Left', 'preset' => 'carouselpreset' ),
  5629. 'values' =>
  5630. array (
  5631. 'next_slide_on_window_focus' => 'off',
  5632. 'delay' => '9000',
  5633. 'start_js_after_delay' => '0',
  5634. 'image_source_type' => 'full',
  5635. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5636. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5637. //data.layertype - Layer Type (image,video,html)
  5638. //data.layersettings - Default Settings for Layer
  5639. //data.layer - Layer as jQuery Object
  5640. });',
  5641. 'start_with_slide' => '1',
  5642. 'stop_on_hover' => 'off',
  5643. 'stop_slider' => 'on',
  5644. 'stop_after_loops' => '0',
  5645. 'stop_at_slide' => '1',
  5646. 'shuffle' => 'off',
  5647. 'viewport_start' => 'wait',
  5648. 'viewport_area' => '80',
  5649. 'enable_progressbar' => 'on',
  5650. 'background_dotted_overlay' => 'none',
  5651. 'background_color' => '#111111',
  5652. 'padding' => '0',
  5653. 'show_background_image' => 'off',
  5654. 'background_image' => '',
  5655. 'bg_fit' => 'cover',
  5656. 'bg_repeat' => 'no-repeat',
  5657. 'bg_position' => 'center center',
  5658. 'position' => 'center',
  5659. 'use_spinner' => '-1',
  5660. 'spinner_color' => '#FFFFFF',
  5661. 'enable_arrows' => 'on',
  5662. 'navigation_arrow_style' => 'uranus',
  5663. 'arrows_always_on' => 'false',
  5664. 'hide_arrows' => '200',
  5665. 'hide_arrows_mobile' => '1200',
  5666. 'hide_arrows_on_mobile' => 'off',
  5667. 'arrows_under_hidden' => '600',
  5668. 'hide_arrows_over' => 'off',
  5669. 'arrows_over_hidden' => '0',
  5670. 'leftarrow_align_hor' => 'left',
  5671. 'leftarrow_align_vert' => 'center',
  5672. 'leftarrow_offset_hor' => '30',
  5673. 'leftarrow_offset_vert' => '0',
  5674. 'rightarrow_align_hor' => 'right',
  5675. 'rightarrow_align_vert' => 'center',
  5676. 'rightarrow_offset_hor' => '30',
  5677. 'rightarrow_offset_vert' => '0',
  5678. 'enable_bullets' => 'off',
  5679. 'navigation_bullets_style' => 'round-old',
  5680. 'bullets_space' => '5',
  5681. 'bullets_direction' => 'horizontal',
  5682. 'bullets_always_on' => 'true',
  5683. 'hide_bullets' => '200',
  5684. 'hide_bullets_mobile' => '1200',
  5685. 'hide_bullets_on_mobile' => 'on',
  5686. 'bullets_under_hidden' => '600',
  5687. 'hide_bullets_over' => 'off',
  5688. 'bullets_over_hidden' => '0',
  5689. 'bullets_align_hor' => 'center',
  5690. 'bullets_align_vert' => 'bottom',
  5691. 'bullets_offset_hor' => '0',
  5692. 'bullets_offset_vert' => '30',
  5693. 'enable_thumbnails' => 'on',
  5694. 'thumbnails_padding' => '20',
  5695. 'span_thumbnails_wrapper' => 'on',
  5696. 'thumbnails_wrapper_color' => '#222222',
  5697. 'thumbnails_wrapper_opacity' => '100',
  5698. 'thumbnails_style' => 'navbar',
  5699. 'thumb_amount' => '9',
  5700. 'thumbnails_space' => '10',
  5701. 'thumbnail_direction' => 'vertical',
  5702. 'thumb_width' => '60',
  5703. 'thumb_height' => '60',
  5704. 'thumb_width_min' => '60',
  5705. 'thumbs_always_on' => 'false',
  5706. 'hide_thumbs' => '200',
  5707. 'hide_thumbs_mobile' => '1200',
  5708. 'hide_thumbs_on_mobile' => 'off',
  5709. 'thumbs_under_hidden' => '0',
  5710. 'hide_thumbs_over' => 'off',
  5711. 'thumbs_over_hidden' => '0',
  5712. 'thumbnails_inner_outer' => 'outer-left',
  5713. 'thumbnails_align_hor' => 'left',
  5714. 'thumbnails_align_vert' => 'top',
  5715. 'thumbnails_offset_hor' => '0',
  5716. 'thumbnails_offset_vert' => '0',
  5717. 'enable_tabs' => 'off',
  5718. 'tabs_padding' => '5',
  5719. 'span_tabs_wrapper' => 'off',
  5720. 'tabs_wrapper_color' => 'transparent',
  5721. 'tabs_wrapper_opacity' => '5',
  5722. 'tabs_style' => '',
  5723. 'tabs_amount' => '5',
  5724. 'tabs_space' => '5',
  5725. 'tabs_direction' => 'horizontal',
  5726. 'tabs_width' => '100',
  5727. 'tabs_height' => '50',
  5728. 'tabs_width_min' => '100',
  5729. 'tabs_always_on' => 'false',
  5730. 'hide_tabs' => '200',
  5731. 'hide_tabs_mobile' => '1200',
  5732. 'hide_tabs_on_mobile' => 'off',
  5733. 'tabs_under_hidden' => '0',
  5734. 'hide_tabs_over' => 'off',
  5735. 'tabs_over_hidden' => '0',
  5736. 'tabs_inner_outer' => 'inner',
  5737. 'tabs_align_hor' => 'center',
  5738. 'tabs_align_vert' => 'bottom',
  5739. 'tabs_offset_hor' => '0',
  5740. 'tabs_offset_vert' => '20',
  5741. 'touchenabled' => 'on',
  5742. 'drag_block_vertical' => 'off',
  5743. 'swipe_velocity' => '75',
  5744. 'swipe_min_touches' => '50',
  5745. 'swipe_direction' => 'horizontal',
  5746. 'keyboard_navigation' => 'off',
  5747. 'keyboard_direction' => 'horizontal',
  5748. 'mousescroll_navigation' => 'off',
  5749. 'carousel_infinity' => 'on',
  5750. 'carousel_space' => '0',
  5751. 'carousel_borderr' => '0',
  5752. 'carousel_borderr_unit' => 'px',
  5753. 'carousel_padding_top' => '0',
  5754. 'carousel_padding_bottom' => '0',
  5755. 'carousel_maxitems' => '3',
  5756. 'carousel_stretch' => 'off',
  5757. 'carousel_fadeout' => 'on',
  5758. 'carousel_varyfade' => 'on',
  5759. 'carousel_rotation' => 'off',
  5760. 'carousel_varyrotate' => 'on',
  5761. 'carousel_maxrotation' => '65',
  5762. 'carousel_scale' => 'off',
  5763. 'carousel_varyscale' => 'off',
  5764. 'carousel_scaledown' => '55',
  5765. 'carousel_hposition' => 'center',
  5766. 'carousel_vposition' => 'center',
  5767. 'use_parallax' => 'on',
  5768. 'disable_parallax_mobile' => 'off',
  5769. 'parallax_type' => 'mouse',
  5770. 'parallax_origo' => 'slidercenter',
  5771. 'parallax_speed' => '2000',
  5772. 'parallax_level_1' => '2',
  5773. 'parallax_level_2' => '3',
  5774. 'parallax_level_3' => '4',
  5775. 'parallax_level_4' => '5',
  5776. 'parallax_level_5' => '6',
  5777. 'parallax_level_6' => '7',
  5778. 'parallax_level_7' => '12',
  5779. 'parallax_level_8' => '16',
  5780. 'parallax_level_9' => '10',
  5781. 'parallax_level_10' => '50',
  5782. 'lazy_load_type' => 'smart',
  5783. 'seo_optimization' => 'none',
  5784. 'simplify_ie8_ios4' => 'off',
  5785. 'show_alternative_type' => 'off',
  5786. 'show_alternate_image' => '',
  5787. 'jquery_noconflict' => 'off',
  5788. 'js_to_body' => 'false',
  5789. 'output_type' => 'none',
  5790. 'jquery_debugmode' => 'off',
  5791. 'slider_type' => 'fullwidth',
  5792. 'width' => '720',
  5793. 'width_notebook' => '720',
  5794. 'width_tablet' => '720',
  5795. 'width_mobile' => '720',
  5796. 'height' => '405',
  5797. 'height_notebook' => '405',
  5798. 'height_tablet' => '405',
  5799. 'height_mobile' => '405',
  5800. 'enable_custom_size_notebook' => 'off',
  5801. 'enable_custom_size_tablet' => 'off',
  5802. 'enable_custom_size_iphone' => 'off',
  5803. 'main_overflow_hidden' => 'off',
  5804. 'auto_height' => 'off',
  5805. 'min_height' => '',
  5806. 'custom_css' => '',
  5807. 'custom_javascript' => '',
  5808. ),
  5809. );
  5810. $presets[] = array (
  5811. 'settings' =>
  5812. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_thumbs_right_fullscreen.png', 'name' => 'Full-Screen-Thumbs-Right', 'preset' => 'carouselpreset' ),
  5813. 'values' =>
  5814. array (
  5815. 'next_slide_on_window_focus' => 'off',
  5816. 'delay' => '9000',
  5817. 'start_js_after_delay' => '0',
  5818. 'image_source_type' => 'full',
  5819. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5820. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5821. //data.layertype - Layer Type (image,video,html)
  5822. //data.layersettings - Default Settings for Layer
  5823. //data.layer - Layer as jQuery Object
  5824. });',
  5825. 'start_with_slide' => '1',
  5826. 'stop_on_hover' => 'off',
  5827. 'stop_slider' => 'on',
  5828. 'stop_after_loops' => '0',
  5829. 'stop_at_slide' => '1',
  5830. 'shuffle' => 'off',
  5831. 'viewport_start' => 'wait',
  5832. 'viewport_area' => '80',
  5833. 'enable_progressbar' => 'on',
  5834. 'background_dotted_overlay' => 'none',
  5835. 'background_color' => '#111111',
  5836. 'padding' => '0',
  5837. 'show_background_image' => 'off',
  5838. 'background_image' => '',
  5839. 'bg_fit' => 'cover',
  5840. 'bg_repeat' => 'no-repeat',
  5841. 'bg_position' => 'center center',
  5842. 'position' => 'center',
  5843. 'use_spinner' => '-1',
  5844. 'spinner_color' => '#FFFFFF',
  5845. 'enable_arrows' => 'on',
  5846. 'navigation_arrow_style' => 'uranus',
  5847. 'arrows_always_on' => 'false',
  5848. 'hide_arrows' => '200',
  5849. 'hide_arrows_mobile' => '1200',
  5850. 'hide_arrows_on_mobile' => 'off',
  5851. 'arrows_under_hidden' => '600',
  5852. 'hide_arrows_over' => 'off',
  5853. 'arrows_over_hidden' => '0',
  5854. 'leftarrow_align_hor' => 'left',
  5855. 'leftarrow_align_vert' => 'center',
  5856. 'leftarrow_offset_hor' => '30',
  5857. 'leftarrow_offset_vert' => '0',
  5858. 'rightarrow_align_hor' => 'right',
  5859. 'rightarrow_align_vert' => 'center',
  5860. 'rightarrow_offset_hor' => '30',
  5861. 'rightarrow_offset_vert' => '0',
  5862. 'enable_bullets' => 'off',
  5863. 'navigation_bullets_style' => 'round-old',
  5864. 'bullets_space' => '5',
  5865. 'bullets_direction' => 'horizontal',
  5866. 'bullets_always_on' => 'true',
  5867. 'hide_bullets' => '200',
  5868. 'hide_bullets_mobile' => '1200',
  5869. 'hide_bullets_on_mobile' => 'on',
  5870. 'bullets_under_hidden' => '600',
  5871. 'hide_bullets_over' => 'off',
  5872. 'bullets_over_hidden' => '0',
  5873. 'bullets_align_hor' => 'center',
  5874. 'bullets_align_vert' => 'bottom',
  5875. 'bullets_offset_hor' => '0',
  5876. 'bullets_offset_vert' => '30',
  5877. 'enable_thumbnails' => 'on',
  5878. 'thumbnails_padding' => '20',
  5879. 'span_thumbnails_wrapper' => 'on',
  5880. 'thumbnails_wrapper_color' => '#222222',
  5881. 'thumbnails_wrapper_opacity' => '100',
  5882. 'thumbnails_style' => 'navbar',
  5883. 'thumb_amount' => '9',
  5884. 'thumbnails_space' => '10',
  5885. 'thumbnail_direction' => 'vertical',
  5886. 'thumb_width' => '60',
  5887. 'thumb_height' => '60',
  5888. 'thumb_width_min' => '60',
  5889. 'thumbs_always_on' => 'false',
  5890. 'hide_thumbs' => '200',
  5891. 'hide_thumbs_mobile' => '1200',
  5892. 'hide_thumbs_on_mobile' => 'off',
  5893. 'thumbs_under_hidden' => '0',
  5894. 'hide_thumbs_over' => 'off',
  5895. 'thumbs_over_hidden' => '0',
  5896. 'thumbnails_inner_outer' => 'outer-right',
  5897. 'thumbnails_align_hor' => 'right',
  5898. 'thumbnails_align_vert' => 'top',
  5899. 'thumbnails_offset_hor' => '0',
  5900. 'thumbnails_offset_vert' => '0',
  5901. 'enable_tabs' => 'off',
  5902. 'tabs_padding' => '5',
  5903. 'span_tabs_wrapper' => 'off',
  5904. 'tabs_wrapper_color' => 'transparent',
  5905. 'tabs_wrapper_opacity' => '5',
  5906. 'tabs_style' => '',
  5907. 'tabs_amount' => '5',
  5908. 'tabs_space' => '5',
  5909. 'tabs_direction' => 'horizontal',
  5910. 'tabs_width' => '100',
  5911. 'tabs_height' => '50',
  5912. 'tabs_width_min' => '100',
  5913. 'tabs_always_on' => 'false',
  5914. 'hide_tabs' => '200',
  5915. 'hide_tabs_mobile' => '1200',
  5916. 'hide_tabs_on_mobile' => 'off',
  5917. 'tabs_under_hidden' => '0',
  5918. 'hide_tabs_over' => 'off',
  5919. 'tabs_over_hidden' => '0',
  5920. 'tabs_inner_outer' => 'inner',
  5921. 'tabs_align_hor' => 'center',
  5922. 'tabs_align_vert' => 'bottom',
  5923. 'tabs_offset_hor' => '0',
  5924. 'tabs_offset_vert' => '20',
  5925. 'touchenabled' => 'on',
  5926. 'drag_block_vertical' => 'off',
  5927. 'swipe_velocity' => '75',
  5928. 'swipe_min_touches' => '50',
  5929. 'swipe_direction' => 'horizontal',
  5930. 'keyboard_navigation' => 'off',
  5931. 'keyboard_direction' => 'horizontal',
  5932. 'mousescroll_navigation' => 'off',
  5933. 'carousel_infinity' => 'on',
  5934. 'carousel_space' => '0',
  5935. 'carousel_borderr' => '0',
  5936. 'carousel_borderr_unit' => 'px',
  5937. 'carousel_padding_top' => '0',
  5938. 'carousel_padding_bottom' => '0',
  5939. 'carousel_maxitems' => '3',
  5940. 'carousel_stretch' => 'off',
  5941. 'carousel_fadeout' => 'on',
  5942. 'carousel_varyfade' => 'on',
  5943. 'carousel_rotation' => 'off',
  5944. 'carousel_varyrotate' => 'on',
  5945. 'carousel_maxrotation' => '65',
  5946. 'carousel_scale' => 'off',
  5947. 'carousel_varyscale' => 'off',
  5948. 'carousel_scaledown' => '55',
  5949. 'carousel_hposition' => 'center',
  5950. 'carousel_vposition' => 'center',
  5951. 'use_parallax' => 'on',
  5952. 'disable_parallax_mobile' => 'off',
  5953. 'parallax_type' => 'mouse',
  5954. 'parallax_origo' => 'slidercenter',
  5955. 'parallax_speed' => '2000',
  5956. 'parallax_level_1' => '2',
  5957. 'parallax_level_2' => '3',
  5958. 'parallax_level_3' => '4',
  5959. 'parallax_level_4' => '5',
  5960. 'parallax_level_5' => '6',
  5961. 'parallax_level_6' => '7',
  5962. 'parallax_level_7' => '12',
  5963. 'parallax_level_8' => '16',
  5964. 'parallax_level_9' => '10',
  5965. 'parallax_level_10' => '50',
  5966. 'lazy_load_type' => 'smart',
  5967. 'seo_optimization' => 'none',
  5968. 'simplify_ie8_ios4' => 'off',
  5969. 'show_alternative_type' => 'off',
  5970. 'show_alternate_image' => '',
  5971. 'jquery_noconflict' => 'off',
  5972. 'js_to_body' => 'false',
  5973. 'output_type' => 'none',
  5974. 'jquery_debugmode' => 'off',
  5975. 'slider_type' => 'fullscreen',
  5976. 'width' => '900',
  5977. 'width_notebook' => '720',
  5978. 'width_tablet' => '720',
  5979. 'width_mobile' => '720',
  5980. 'height' => '720',
  5981. 'height_notebook' => '405',
  5982. 'height_tablet' => '405',
  5983. 'height_mobile' => '405',
  5984. 'enable_custom_size_notebook' => 'off',
  5985. 'enable_custom_size_tablet' => 'off',
  5986. 'enable_custom_size_iphone' => 'off',
  5987. 'main_overflow_hidden' => 'off',
  5988. 'auto_height' => 'off',
  5989. 'min_height' => '',
  5990. 'custom_css' => '',
  5991. 'custom_javascript' => '',
  5992. ),
  5993. );
  5994. $presets[] = array (
  5995. 'settings' =>
  5996. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Full-Screen', 'preset' => 'carouselpreset' ),
  5997. 'values' =>
  5998. array (
  5999. 'next_slide_on_window_focus' => 'off',
  6000. 'delay' => '9000',
  6001. 'start_js_after_delay' => '0',
  6002. 'image_source_type' => 'full',
  6003. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  6004. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  6005. //data.layertype - Layer Type (image,video,html)
  6006. //data.layersettings - Default Settings for Layer
  6007. //data.layer - Layer as jQuery Object
  6008. });',
  6009. 'start_with_slide' => '1',
  6010. 'first_transition_active' => 'on',
  6011. 'first_transition_type' => 'fade',
  6012. 'first_transition_duration' => '1500',
  6013. 'first_transition_slot_amount' => '7',
  6014. 'stop_on_hover' => 'off',
  6015. 'stop_slider' => 'on',
  6016. 'stop_after_loops' => '0',
  6017. 'stop_at_slide' => '1',
  6018. 'shuffle' => 'off',
  6019. 'viewport_start' => 'wait',
  6020. 'viewport_area' => '80',
  6021. 'enable_progressbar' => 'on',
  6022. 'background_dotted_overlay' => 'none',
  6023. 'background_color' => 'transparent',
  6024. 'padding' => '0',
  6025. 'show_background_image' => 'off',
  6026. 'background_image' => '',
  6027. 'bg_fit' => 'cover',
  6028. 'bg_repeat' => 'no-repeat',
  6029. 'bg_position' => 'center center',
  6030. 'position' => 'center',
  6031. 'use_spinner' => '-1',
  6032. 'spinner_color' => '#FFFFFF',
  6033. 'enable_arrows' => 'on',
  6034. 'navigation_arrow_style' => 'navbar-old',
  6035. 'arrows_always_on' => 'false',
  6036. 'hide_arrows' => '200',
  6037. 'hide_arrows_mobile' => '1200',
  6038. 'hide_arrows_on_mobile' => 'off',
  6039. 'arrows_under_hidden' => '600',
  6040. 'hide_arrows_over' => 'off',
  6041. 'arrows_over_hidden' => '0',
  6042. 'leftarrow_align_hor' => 'left',
  6043. 'leftarrow_align_vert' => 'center',
  6044. 'leftarrow_offset_hor' => '30',
  6045. 'leftarrow_offset_vert' => '0',
  6046. 'rightarrow_align_hor' => 'right',
  6047. 'rightarrow_align_vert' => 'center',
  6048. 'rightarrow_offset_hor' => '30',
  6049. 'rightarrow_offset_vert' => '0',
  6050. 'enable_bullets' => 'off',
  6051. 'navigation_bullets_style' => 'round-old',
  6052. 'bullets_space' => '5',
  6053. 'bullets_direction' => 'horizontal',
  6054. 'bullets_always_on' => 'true',
  6055. 'hide_bullets' => '200',
  6056. 'hide_bullets_mobile' => '1200',
  6057. 'hide_bullets_on_mobile' => 'on',
  6058. 'bullets_under_hidden' => '600',
  6059. 'hide_bullets_over' => 'off',
  6060. 'bullets_over_hidden' => '0',
  6061. 'bullets_align_hor' => 'center',
  6062. 'bullets_align_vert' => 'bottom',
  6063. 'bullets_offset_hor' => '0',
  6064. 'bullets_offset_vert' => '30',
  6065. 'enable_thumbnails' => 'on',
  6066. 'thumbnails_padding' => '20',
  6067. 'span_thumbnails_wrapper' => 'on',
  6068. 'thumbnails_wrapper_color' => '#000000',
  6069. 'thumbnails_wrapper_opacity' => '15',
  6070. 'thumbnails_style' => 'navbar',
  6071. 'thumb_amount' => '9',
  6072. 'thumbnails_space' => '10',
  6073. 'thumbnail_direction' => 'horizontal',
  6074. 'thumb_width' => '60',
  6075. 'thumb_height' => '60',
  6076. 'thumb_width_min' => '60',
  6077. 'thumbs_always_on' => 'false',
  6078. 'hide_thumbs' => '200',
  6079. 'hide_thumbs_mobile' => '1200',
  6080. 'hide_thumbs_on_mobile' => 'off',
  6081. 'thumbs_under_hidden' => '0',
  6082. 'hide_thumbs_over' => 'off',
  6083. 'thumbs_over_hidden' => '0',
  6084. 'thumbnails_inner_outer' => 'inner',
  6085. 'thumbnails_align_hor' => 'center',
  6086. 'thumbnails_align_vert' => 'bottom',
  6087. 'thumbnails_offset_hor' => '0',
  6088. 'thumbnails_offset_vert' => '0',
  6089. 'enable_tabs' => 'off',
  6090. 'tabs_padding' => '5',
  6091. 'span_tabs_wrapper' => 'off',
  6092. 'tabs_wrapper_color' => 'transparent',
  6093. 'tabs_wrapper_opacity' => '5',
  6094. 'tabs_style' => '',
  6095. 'tabs_amount' => '5',
  6096. 'tabs_space' => '5',
  6097. 'tabs_direction' => 'horizontal',
  6098. 'tabs_width' => '100',
  6099. 'tabs_height' => '50',
  6100. 'tabs_width_min' => '100',
  6101. 'tabs_always_on' => 'false',
  6102. 'hide_tabs' => '200',
  6103. 'hide_tabs_mobile' => '1200',
  6104. 'hide_tabs_on_mobile' => 'off',
  6105. 'tabs_under_hidden' => '0',
  6106. 'hide_tabs_over' => 'off',
  6107. 'tabs_over_hidden' => '0',
  6108. 'tabs_inner_outer' => 'inner',
  6109. 'tabs_align_hor' => 'center',
  6110. 'tabs_align_vert' => 'bottom',
  6111. 'tabs_offset_hor' => '0',
  6112. 'tabs_offset_vert' => '20',
  6113. 'touchenabled' => 'on',
  6114. 'drag_block_vertical' => 'off',
  6115. 'swipe_velocity' => '75',
  6116. 'swipe_min_touches' => '50',
  6117. 'swipe_direction' => 'horizontal',
  6118. 'keyboard_navigation' => 'off',
  6119. 'keyboard_direction' => 'horizontal',
  6120. 'mousescroll_navigation' => 'off',
  6121. 'carousel_infinity' => 'on',
  6122. 'carousel_space' => '-150',
  6123. 'carousel_borderr' => '0',
  6124. 'carousel_borderr_unit' => '%',
  6125. 'carousel_padding_top' => '0',
  6126. 'carousel_padding_bottom' => '0',
  6127. 'carousel_maxitems' => '5',
  6128. 'carousel_stretch' => 'off',
  6129. 'carousel_fadeout' => 'on',
  6130. 'carousel_varyfade' => 'on',
  6131. 'carousel_rotation' => 'on',
  6132. 'carousel_varyrotate' => 'on',
  6133. 'carousel_maxrotation' => '65',
  6134. 'carousel_scale' => 'on',
  6135. 'carousel_varyscale' => 'off',
  6136. 'carousel_scaledown' => '55',
  6137. 'carousel_hposition' => 'center',
  6138. 'carousel_vposition' => 'center',
  6139. 'use_parallax' => 'on',
  6140. 'disable_parallax_mobile' => 'off',
  6141. 'parallax_type' => 'mouse',
  6142. 'parallax_origo' => 'slidercenter',
  6143. 'parallax_speed' => '2000',
  6144. 'parallax_level_1' => '2',
  6145. 'parallax_level_2' => '3',
  6146. 'parallax_level_3' => '4',
  6147. 'parallax_level_4' => '5',
  6148. 'parallax_level_5' => '6',
  6149. 'parallax_level_6' => '7',
  6150. 'parallax_level_7' => '12',
  6151. 'parallax_level_8' => '16',
  6152. 'parallax_level_9' => '10',
  6153. 'parallax_level_10' => '50',
  6154. 'lazy_load_type' => 'smart',
  6155. 'seo_optimization' => 'none',
  6156. 'simplify_ie8_ios4' => 'off',
  6157. 'show_alternative_type' => 'off',
  6158. 'show_alternate_image' => '',
  6159. 'jquery_noconflict' => 'off',
  6160. 'js_to_body' => 'false',
  6161. 'output_type' => 'none',
  6162. 'jquery_debugmode' => 'off',
  6163. 'slider_type' => 'fullscreen',
  6164. 'width' => '800',
  6165. 'width_notebook' => '600',
  6166. 'width_tablet' => '600',
  6167. 'width_mobile' => '600',
  6168. 'height' => '800',
  6169. 'height_notebook' => '600',
  6170. 'height_tablet' => '600',
  6171. 'height_mobile' => '600',
  6172. 'enable_custom_size_notebook' => 'off',
  6173. 'enable_custom_size_tablet' => 'off',
  6174. 'enable_custom_size_iphone' => 'off',
  6175. 'main_overflow_hidden' => 'off',
  6176. 'auto_height' => 'off',
  6177. 'min_height' => '',
  6178. 'custom_css' => '',
  6179. 'custom_javascript' => '',
  6180. ),
  6181. );
  6182. $presets[] = array (
  6183. 'settings' =>
  6184. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_full_rounded.png', 'name' => 'Cover-Flow-Rounded', 'preset' => 'carouselpreset' ),
  6185. 'values' =>
  6186. array (
  6187. 'next_slide_on_window_focus' => 'off',
  6188. 'delay' => '9000',
  6189. 'start_js_after_delay' => '0',
  6190. 'image_source_type' => 'full',
  6191. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  6192. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  6193. //data.layertype - Layer Type (image,video,html)
  6194. //data.layersettings - Default Settings for Layer
  6195. //data.layer - Layer as jQuery Object
  6196. });',
  6197. 'start_with_slide' => '1',
  6198. 'first_transition_active' => 'on',
  6199. 'first_transition_type' => 'fade',
  6200. 'first_transition_duration' => '1500',
  6201. 'first_transition_slot_amount' => '7',
  6202. 'stop_on_hover' => 'off',
  6203. 'stop_slider' => 'on',
  6204. 'stop_after_loops' => '0',
  6205. 'stop_at_slide' => '1',
  6206. 'shuffle' => 'off',
  6207. 'viewport_start' => 'wait',
  6208. 'viewport_area' => '80',
  6209. 'enable_progressbar' => 'on',
  6210. 'background_dotted_overlay' => 'none',
  6211. 'background_color' => 'transparent',
  6212. 'padding' => '0',
  6213. 'show_background_image' => 'off',
  6214. 'background_image' => '',
  6215. 'bg_fit' => 'cover',
  6216. 'bg_repeat' => 'no-repeat',
  6217. 'bg_position' => 'center center',
  6218. 'position' => 'center',
  6219. 'use_spinner' => '-1',
  6220. 'spinner_color' => '#FFFFFF',
  6221. 'enable_arrows' => 'on',
  6222. 'navigation_arrow_style' => 'round',
  6223. 'arrows_always_on' => 'false',
  6224. 'hide_arrows' => '200',
  6225. 'hide_arrows_mobile' => '1200',
  6226. 'hide_arrows_on_mobile' => 'off',
  6227. 'arrows_under_hidden' => '600',
  6228. 'hide_arrows_over' => 'off',
  6229. 'arrows_over_hidden' => '0',
  6230. 'leftarrow_align_hor' => 'left',
  6231. 'leftarrow_align_vert' => 'center',
  6232. 'leftarrow_offset_hor' => '30',
  6233. 'leftarrow_offset_vert' => '0',
  6234. 'rightarrow_align_hor' => 'right',
  6235. 'rightarrow_align_vert' => 'center',
  6236. 'rightarrow_offset_hor' => '30',
  6237. 'rightarrow_offset_vert' => '0',
  6238. 'enable_bullets' => 'off',
  6239. 'navigation_bullets_style' => 'round-old',
  6240. 'bullets_space' => '5',
  6241. 'bullets_direction' => 'horizontal',
  6242. 'bullets_always_on' => 'true',
  6243. 'hide_bullets' => '200',
  6244. 'hide_bullets_mobile' => '1200',
  6245. 'hide_bullets_on_mobile' => 'on',
  6246. 'bullets_under_hidden' => '600',
  6247. 'hide_bullets_over' => 'off',
  6248. 'bullets_over_hidden' => '0',
  6249. 'bullets_align_hor' => 'center',
  6250. 'bullets_align_vert' => 'bottom',
  6251. 'bullets_offset_hor' => '0',
  6252. 'bullets_offset_vert' => '30',
  6253. 'enable_thumbnails' => 'on',
  6254. 'thumbnails_padding' => '20',
  6255. 'span_thumbnails_wrapper' => 'on',
  6256. 'thumbnails_wrapper_color' => '#000000',
  6257. 'thumbnails_wrapper_opacity' => '0',
  6258. 'thumbnails_style' => 'preview1',
  6259. 'thumb_amount' => '9',
  6260. 'thumbnails_space' => '10',
  6261. 'thumbnail_direction' => 'horizontal',
  6262. 'thumb_width' => '60',
  6263. 'thumb_height' => '60',
  6264. 'thumb_width_min' => '60',
  6265. 'thumbs_always_on' => 'false',
  6266. 'hide_thumbs' => '200',
  6267. 'hide_thumbs_mobile' => '1200',
  6268. 'hide_thumbs_on_mobile' => 'off',
  6269. 'thumbs_under_hidden' => '0',
  6270. 'hide_thumbs_over' => 'off',
  6271. 'thumbs_over_hidden' => '0',
  6272. 'thumbnails_inner_outer' => 'inner',
  6273. 'thumbnails_align_hor' => 'center',
  6274. 'thumbnails_align_vert' => 'bottom',
  6275. 'thumbnails_offset_hor' => '0',
  6276. 'thumbnails_offset_vert' => '0',
  6277. 'enable_tabs' => 'off',
  6278. 'tabs_padding' => '5',
  6279. 'span_tabs_wrapper' => 'off',
  6280. 'tabs_wrapper_color' => 'transparent',
  6281. 'tabs_wrapper_opacity' => '5',
  6282. 'tabs_style' => '',
  6283. 'tabs_amount' => '5',
  6284. 'tabs_space' => '5',
  6285. 'tabs_direction' => 'horizontal',
  6286. 'tabs_width' => '100',
  6287. 'tabs_height' => '50',
  6288. 'tabs_width_min' => '100',
  6289. 'tabs_always_on' => 'false',
  6290. 'hide_tabs' => '200',
  6291. 'hide_tabs_mobile' => '1200',
  6292. 'hide_tabs_on_mobile' => 'off',
  6293. 'tabs_under_hidden' => '0',
  6294. 'hide_tabs_over' => 'off',
  6295. 'tabs_over_hidden' => '0',
  6296. 'tabs_inner_outer' => 'inner',
  6297. 'tabs_align_hor' => 'center',
  6298. 'tabs_align_vert' => 'bottom',
  6299. 'tabs_offset_hor' => '0',
  6300. 'tabs_offset_vert' => '20',
  6301. 'touchenabled' => 'on',
  6302. 'drag_block_vertical' => 'off',
  6303. 'swipe_velocity' => '75',
  6304. 'swipe_min_touches' => '50',
  6305. 'swipe_direction' => 'horizontal',
  6306. 'keyboard_navigation' => 'off',
  6307. 'keyboard_direction' => 'horizontal',
  6308. 'mousescroll_navigation' => 'off',
  6309. 'carousel_infinity' => 'on',
  6310. 'carousel_space' => '-150',
  6311. 'carousel_borderr' => '50',
  6312. 'carousel_borderr_unit' => '%',
  6313. 'carousel_padding_top' => '0',
  6314. 'carousel_padding_bottom' => '0',
  6315. 'carousel_maxitems' => '5',
  6316. 'carousel_stretch' => 'off',
  6317. 'carousel_fadeout' => 'on',
  6318. 'carousel_varyfade' => 'on',
  6319. 'carousel_rotation' => 'off',
  6320. 'carousel_varyrotate' => 'on',
  6321. 'carousel_maxrotation' => '65',
  6322. 'carousel_scale' => 'on',
  6323. 'carousel_varyscale' => 'off',
  6324. 'carousel_scaledown' => '55',
  6325. 'carousel_hposition' => 'center',
  6326. 'carousel_vposition' => 'center',
  6327. 'use_parallax' => 'on',
  6328. 'disable_parallax_mobile' => 'off',
  6329. 'parallax_type' => 'mouse',
  6330. 'parallax_origo' => 'slidercenter',
  6331. 'parallax_speed' => '2000',
  6332. 'parallax_level_1' => '2',
  6333. 'parallax_level_2' => '3',
  6334. 'parallax_level_3' => '4',
  6335. 'parallax_level_4' => '5',
  6336. 'parallax_level_5' => '6',
  6337. 'parallax_level_6' => '7',
  6338. 'parallax_level_7' => '12',
  6339. 'parallax_level_8' => '16',
  6340. 'parallax_level_9' => '10',
  6341. 'parallax_level_10' => '50',
  6342. 'lazy_load_type' => 'smart',
  6343. 'seo_optimization' => 'none',
  6344. 'simplify_ie8_ios4' => 'off',
  6345. 'show_alternative_type' => 'off',
  6346. 'show_alternate_image' => '',
  6347. 'jquery_noconflict' => 'off',
  6348. 'js_to_body' => 'false',
  6349. 'output_type' => 'none',
  6350. 'jquery_debugmode' => 'off',
  6351. 'slider_type' => 'fullwidth',
  6352. 'width' => '800',
  6353. 'width_notebook' => '600',
  6354. 'width_tablet' => '600',
  6355. 'width_mobile' => '600',
  6356. 'height' => '800',
  6357. 'height_notebook' => '600',
  6358. 'height_tablet' => '600',
  6359. 'height_mobile' => '600',
  6360. 'enable_custom_size_notebook' => 'off',
  6361. 'enable_custom_size_tablet' => 'off',
  6362. 'enable_custom_size_iphone' => 'off',
  6363. 'main_overflow_hidden' => 'off',
  6364. 'auto_height' => 'off',
  6365. 'min_height' => '',
  6366. 'custom_css' => '',
  6367. 'custom_javascript' => '',
  6368. ),
  6369. );
  6370. //add the presets made from customers
  6371. $customer_presets = get_option('revslider_presets', array());
  6372. $presets = array_merge($presets, $customer_presets);
  6373. $presets = apply_filters('revslider_slider_presets', $presets);
  6374. foreach($presets as $key => $preset){
  6375. if(intval($preset['settings']['image']) > 0){
  6376. $img = wp_get_attachment_image_src(esc_attr($preset['settings']['image']), 'medium');
  6377. $presets[$key]['settings']['image'] = ($img !== false) ? $img['0'] : '';
  6378. }
  6379. }
  6380. return $presets;
  6381. }
  6382. /**
  6383. *
  6384. * @since: 5.0
  6385. **/
  6386. public static function add_preset_setting($data){
  6387. if(!isset($data['settings']) || !isset($data['values'])) return __('Missing values to add preset', 'revslider');
  6388. $customer_presets = get_option('revslider_presets', array());
  6389. $data['settings']['custom'] = true;
  6390. $customer_presets[] = array(
  6391. 'settings' => $data['settings'],
  6392. 'values' => $data['values']
  6393. );
  6394. RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
  6395. return true;
  6396. }
  6397. /**
  6398. * @since: 5.0
  6399. **/
  6400. public static function remove_preset_setting($data){
  6401. if(!isset($data['name'])) return __('Missing values to remove preset', 'revslider');
  6402. $customer_presets = get_option('revslider_presets', array());
  6403. if(!empty($customer_presets)){
  6404. foreach($customer_presets as $key => $preset){
  6405. if($preset['settings']['name'] == $data['name']){
  6406. unset($customer_presets[$key]);
  6407. break;
  6408. }
  6409. }
  6410. }
  6411. RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
  6412. return true;
  6413. }
  6414. /**
  6415. * @since: 5.0
  6416. **/
  6417. public static function update_preset_setting($data){
  6418. if(!isset($data['name'])) return __('Missing values to update preset', 'revslider');
  6419. $customer_presets = get_option('revslider_presets', array());
  6420. if(!empty($customer_presets)){
  6421. foreach($customer_presets as $key => $preset){
  6422. if($preset['settings']['name'] == $data['name']){
  6423. $customer_presets[$key]['values'] = $data['values'];
  6424. break;
  6425. }
  6426. }
  6427. }
  6428. RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
  6429. return true;
  6430. }
  6431. /**
  6432. * @since: 5.3.0
  6433. * create a page with revslider shortcodes included
  6434. **/
  6435. public static function create_slider_page($added){
  6436. $new_page_id = 0;
  6437. if(!is_array($added)) return apply_filters('revslider_create_slider_page', $new_page_id, $added);
  6438. $content = '';
  6439. $page_id = get_option('rs_import_page_id', 1);
  6440. //$title = '';
  6441. //get alias of all new Sliders that got created and add them as a shortcode onto a page
  6442. foreach($added as $sid){
  6443. $slider = new RevSlider();
  6444. $slider->initByID($sid);
  6445. $alias = $slider->getAlias();
  6446. /*if($title == ''){
  6447. $title = $slider->getTitle();
  6448. }*/
  6449. if($alias !== ''){
  6450. $content .= '[rev_slider alias="'.$alias.'"][/rev_slider]'; //this way we will reorder as last comes first
  6451. }
  6452. }
  6453. if($content !== ''){
  6454. $new_page_id = wp_insert_post(
  6455. array(
  6456. 'post_title' => wp_strip_all_tags( 'RevSlider Page '.$page_id ), //$title
  6457. 'post_content' => $content,
  6458. 'post_type' => 'page',
  6459. 'post_status' => 'draft',
  6460. 'page_template' => '../public/views/revslider-page-template.php'
  6461. )
  6462. );
  6463. if(is_wp_error($new_page_id)) $new_page_id = 0; //fallback to 0
  6464. $page_id++;
  6465. update_option('rs_import_page_id', $page_id);
  6466. }
  6467. return apply_filters('revslider_create_slider_page', $new_page_id, $added);
  6468. }
  6469. /**
  6470. * @since: 5.3.1
  6471. * get cache plugins
  6472. **/
  6473. public function get_installed_cache_plugins(){
  6474. //get all plugins
  6475. $plugins = get_plugins();
  6476. //arrays for found cache related plugins
  6477. $known_cache_plugins = array();
  6478. $unknown_cache_plugins = array();
  6479. //run through all plugins
  6480. foreach ($plugins as $plugin_key => $plugin_values) {
  6481. switch($plugin_key){
  6482. //check if W3TC or WP Super Cache or WP Rocket
  6483. //add to known plugins
  6484. case "wp-rocket/wp-rocket.php":
  6485. $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wprocket";
  6486. break;
  6487. case "wp-super-cache/wp-cache.php":
  6488. $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wpsc";
  6489. break;
  6490. case "w3-total-cache/w3-total-cache.php":
  6491. $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#w3tc";
  6492. break;
  6493. //check if cache in slug
  6494. default:
  6495. if(strpos($plugin_key,"cache")){
  6496. //add to unknown plugins
  6497. $unknown_cache_plugins[$plugin_values['Name']] = $plugin_values['PluginURI'];
  6498. }
  6499. break;
  6500. }
  6501. }
  6502. $all = array_merge($known_cache_plugins, $unknown_cache_plugins);
  6503. return apply_filters('revslider_get_installed_cache_plugins', $all);
  6504. }
  6505. /**
  6506. * @since: 5.3.1
  6507. * show failed import HTML
  6508. **/
  6509. public static function import_failed_message($message, $link = false){
  6510. echo '<div style="font-family:arial; width:100%;height:100%;position:absolute;top:0px;left:0px;background-image:url('.RS_PLUGIN_URL.'admin/assets/images/errorbg.jpg); background-position:center center; background-size:cover;">';
  6511. echo '<div style="width:100%;height:250px;text-align:center; line-height:25px; position:absolute;top:50%;left:0;padding:40px;box-sizing:border-box;margin-top:-165px;">';
  6512. echo '<div style="font-size:30px; font-weight:600; line-height:50px; white-space:nowrap;margin-bottom:10px">Error: '.$message.'</div>';
  6513. if($link !== false){
  6514. echo '<a style="padding:10px 25px; color:#fff; border-radius:4px; text-decoration:none !important; background:#2980b9; font-weight:400; font-size:14px; line-height:30px; vertical-align:middle;" href="'.$link.'">Go Back</a>';
  6515. }
  6516. echo '</div>';
  6517. echo '</div>';
  6518. }
  6519. }
  6520. /**
  6521. * old classname extends new one (old classnames will be obsolete soon)
  6522. * @since: 5.0
  6523. **/
  6524. class RevOperations extends RevSliderOperations {}
  6525. ?>