operations.class.php 289 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133
  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. * print html font import
  1793. *
  1794. */
  1795. public static function printCleanFontImport(){
  1796. global $revslider_fonts;
  1797. $do_print = false;
  1798. $font_first = true;
  1799. $ret = '';
  1800. $tcf = '';
  1801. $tcf2 = '';
  1802. if(!empty($revslider_fonts)){
  1803. foreach($revslider_fonts as $f_n => $f_s){
  1804. if($f_n !== ''){
  1805. if(isset($f_s['variants']) && !empty($f_s['variants']) || isset($f_s['subsets']) && !empty($f_s['subsets'])){
  1806. if(strpos($f_n, "href=") === false){
  1807. if($font_first == false) $tcf .= '%7C'; //'|';
  1808. $tcf .= urlencode($f_n).':';
  1809. if(isset($f_s['variants']) && !empty($f_s['variants'])){
  1810. $mgfirst = true;
  1811. foreach($f_s['variants'] as $mgvk => $mgvv){
  1812. if(!$mgfirst) $tcf .= urlencode(',');
  1813. $tcf .= urlencode($mgvv);
  1814. $mgfirst = false;
  1815. }
  1816. }
  1817. if(isset($f_s['subsets']) && !empty($f_s['subsets'])){
  1818. $mgfirst = true;
  1819. foreach($f_s['subsets'] as $ssk => $ssv){
  1820. if($mgfirst) $tcf .= urlencode('&subset=');
  1821. if(!$mgfirst) $tcf .= urlencode(',');
  1822. $tcf .= urlencode($ssv);
  1823. $mgfirst = false;
  1824. }
  1825. }
  1826. }else{
  1827. $f_n = str_replace(array('http://', 'https://'), array($setBase, $setBase), $f_n);
  1828. $tcf2 .= html_entity_decode(stripslashes($f_n));
  1829. }
  1830. }
  1831. $font_first = false;
  1832. }
  1833. }
  1834. }
  1835. $setBase = (is_ssl()) ? "https://" : "http://";
  1836. $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
  1837. if($tcf !== ''){
  1838. $ret .= '<link href="'.$url.$tcf.'" rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
  1839. }
  1840. if($tcf2 !== ''){
  1841. $ret .= html_entity_decode(stripslashes($tcf2));
  1842. }
  1843. return apply_filters('revslider_printCleanFontImport', $ret);
  1844. }
  1845. /**
  1846. *
  1847. * get html font import
  1848. */
  1849. public static function getCleanFontImport($font, $class = '', $url = '', $variants = array(), $subsets = array()){
  1850. global $revslider_fonts;
  1851. $ret = '';
  1852. if(!isset($revslider_fonts)) $revslider_fonts = array(); //if this is called without revslider.php beeing loaded
  1853. $do_print = false;
  1854. $tcf = '';
  1855. if(!empty($variants) || !empty($subsets)){
  1856. if(!isset($revslider_fonts[$font])) $revslider_fonts[$font] = array();
  1857. if(!isset($revslider_fonts[$font]['variants'])) $revslider_fonts[$font]['variants'] = array();
  1858. if(!isset($revslider_fonts[$font]['subsets'])) $revslider_fonts[$font]['subsets'] = array();
  1859. if(!empty($variants)){
  1860. foreach($variants as $k => $v){
  1861. if(!in_array($v, $revslider_fonts[$font]['variants'])){
  1862. $revslider_fonts[$font]['variants'][] = $v;
  1863. }else{ //already included somewhere, so do not call it anymore
  1864. unset($variants[$k]);
  1865. }
  1866. }
  1867. }
  1868. if(!empty($subsets)){
  1869. foreach($subsets as $k => $v){
  1870. if(!in_array($v, $revslider_fonts[$font]['subsets'])){
  1871. $revslider_fonts[$font]['subsets'][] = $v;
  1872. }else{ //already included somewhere, so do not call it anymore
  1873. unset($subsets[$k]);
  1874. }
  1875. }
  1876. }
  1877. if(!empty($variants)){
  1878. $mgfirst = true;
  1879. foreach($variants as $mgvk => $mgvv){
  1880. if(!$mgfirst) $tcf .= ',';
  1881. $tcf .= $mgvv;
  1882. $mgfirst = false;
  1883. }
  1884. }
  1885. if(!empty($subsets)){
  1886. $mgfirst = true;
  1887. foreach($subsets as $ssk => $ssv){
  1888. if($mgfirst) $tcf .= '&subset=';
  1889. if(!$mgfirst) $tcf .= ',';
  1890. $tcf .= $ssv;
  1891. $mgfirst = false;
  1892. }
  1893. }
  1894. if($tcf !== ''){
  1895. $tcf = ':'.$tcf;
  1896. $do_print = true;
  1897. }
  1898. }else{
  1899. if(in_array($font, $revslider_fonts)){
  1900. $ret = '';
  1901. $do_print = false;
  1902. }else{
  1903. $do_print = true;
  1904. }
  1905. }
  1906. if($do_print){
  1907. $setBase = (is_ssl()) ? "https://" : "http://";
  1908. if($class !== '') $class = ' class="'.$class.'"';
  1909. if(!isset($revslider_fonts[$font])){
  1910. $revslider_fonts[$font] = array();
  1911. }
  1912. if(strpos($font, "href=") === false){ //fallback for old versions
  1913. $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
  1914. $ret = '<link href="'.$url.urlencode($font.$tcf).'"'.$class.' rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
  1915. }else{
  1916. $font = str_replace(array('http://', 'https://'), array($setBase, $setBase), $font);
  1917. $ret = html_entity_decode(stripslashes($font));
  1918. }
  1919. }
  1920. return apply_filters('revslider_getCleanFontImport', $ret, $font, $class, $url, $variants, $subsets);
  1921. }
  1922. public function checkPurchaseVerification($data){
  1923. global $wp_version, $rslb;
  1924. $done = false;
  1925. $count = 0;
  1926. do{
  1927. $url = $rslb->get_url('updates');
  1928. $response = wp_remote_post($url.'/activate.php', array(
  1929. 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'),
  1930. 'body' => array(
  1931. 'code' => urlencode($data['code']),
  1932. //'email' => urlencode($data['email']),
  1933. 'version' => urlencode(RevSliderGlobals::SLIDER_REVISION),
  1934. 'product' => urlencode(RS_PLUGIN_SLUG)
  1935. )
  1936. ));
  1937. $response_code = wp_remote_retrieve_response_code( $response );
  1938. $version_info = wp_remote_retrieve_body( $response );
  1939. if($response_code == 200){
  1940. $done = true;
  1941. }else{
  1942. $rslb->move_server_list();
  1943. }
  1944. $count++;
  1945. }while($done == false && $count < 5);
  1946. if ( $response_code != 200 || is_wp_error( $version_info ) ) {
  1947. return false;
  1948. }
  1949. if($version_info == 'valid'){
  1950. update_option('revslider-valid', 'true');
  1951. update_option('revslider-code', $data['code']);
  1952. //update_option('revslider-email', $data['email']);
  1953. update_option('revslider-temp-active-notice', 'false');
  1954. return true;
  1955. }elseif($version_info == 'exist'){
  1956. return 'exist';
  1957. //RevSliderFunctions::throwError(__('Purchase Code already registered!', 'revslider'));
  1958. }elseif($version_info == 'temp_valid'){ //only temporary active, rechecking needs to be done soon on the themepunch servers (envato API may be down)
  1959. update_option('revslider-valid', 'true');
  1960. update_option('revslider-code', $data['code']);
  1961. //update_option('revslider-email', $data['email']);
  1962. update_option('revslider-temp-active', 'true');
  1963. update_option('revslider-temp-active-notice', 'false');
  1964. return 'temp';
  1965. }else{
  1966. return false;
  1967. }
  1968. /*elseif($version_info == 'bad_email'){
  1969. return 'bad_email';
  1970. }elseif($version_info == 'email_used'){
  1971. return 'email_used';
  1972. }*/
  1973. }
  1974. public function doPurchaseDeactivation($data){
  1975. global $wp_version, $rslb;
  1976. $code = get_option('revslider-code', '');
  1977. $done = false;
  1978. $count = 0;
  1979. do{
  1980. $url = $rslb->get_url('updates');
  1981. $response = wp_remote_post($url.'/deactivate.php', array(
  1982. 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'),
  1983. 'body' => array(
  1984. 'code' => urlencode($code),
  1985. 'product' => urlencode(RS_PLUGIN_SLUG)
  1986. )
  1987. ));
  1988. $response_code = wp_remote_retrieve_response_code( $response );
  1989. $version_info = wp_remote_retrieve_body( $response );
  1990. if($response_code == 200){
  1991. $done = true;
  1992. }else{
  1993. $rslb->move_server_list();
  1994. }
  1995. $count++;
  1996. }while($done == false && $count < 5);
  1997. if ( $response_code != 200 || is_wp_error( $version_info ) ) {
  1998. return false;
  1999. }
  2000. if($version_info == 'valid'){
  2001. update_option('revslider-valid', 'false');
  2002. update_option('revslider-temp-active', 'false');
  2003. update_option('revslider-code', '');
  2004. return true;
  2005. }else{
  2006. return false;
  2007. }
  2008. }
  2009. public static function get_performance($val, $min, $max) {
  2010. if ($val==0) $val = 1;
  2011. $arr = array();
  2012. //print_r(($max-$min)."/".($val-$min)."=");
  2013. $arr["proc"] = (($max-$min) / ($val-$min))*100;
  2014. //print_r($arr["proc"]." --> ");
  2015. if ($arr["proc"]>100) $arr["proc"] = 100;
  2016. if ($arr["proc"]<0) $arr["proc"] = 0;
  2017. if ($arr["proc"]<35) $arr["col"] = "slow";
  2018. else
  2019. if ($arr["proc"]<75) $arr["col"] = "ok";
  2020. else
  2021. //print_r($arr["proc"]." <br>");
  2022. $arr["col"] = "fast";
  2023. return $arr;
  2024. }
  2025. /**
  2026. * view the estimated speed of the Slider
  2027. * @since: 5.0
  2028. */
  2029. public static function get_slider_speed($sliderID){
  2030. //$data = wp_get_attachment_metadata($cur_img_id);
  2031. ob_start();
  2032. $total_size = 0;
  2033. $do_ssl = (is_ssl()) ? 'http:' : 'https:';
  2034. $slider = new RevSliderSlider();
  2035. $slider->initByID($sliderID);
  2036. $slides = $slider->getSlidesForExport();
  2037. $static_slides = $slider->getStaticSlideForExport();
  2038. if(!empty($static_slides) && is_array($static_slides)){
  2039. foreach($static_slides as $s_slide){
  2040. $slides[] = $s_slide;
  2041. }
  2042. }
  2043. $used_images = array();
  2044. $used_videos = array();
  2045. $used_captions = array();
  2046. $using_kenburns = false;
  2047. $using_parallax = false;
  2048. $using_carousel = false;
  2049. $using_navigation = false;
  2050. $using_videos = false;
  2051. $using_actions = false;
  2052. $using_layeranim = false;
  2053. $img_size = 0;
  2054. $video_size = 0;
  2055. $slide_counter = 0;
  2056. $firstslide_size = 0;
  2057. $smartslide_size = 0;
  2058. if($slider->getParam("use_parallax","off") == 'on')
  2059. $using_parallax = true;
  2060. if($slider->getParam("slider-type","standard") == 'carousel')
  2061. $using_carousel = true;
  2062. $enable_arrows = $slider->getParam('enable_arrows','off');
  2063. $enable_bullets = $slider->getParam('enable_bullets','off');
  2064. $enable_tabs = $slider->getParam('enable_tabs','off');
  2065. $enable_thumbnails = $slider->getParam('enable_thumbnails','off');
  2066. if($enable_arrows == 'on' || $enable_bullets == 'on' || $enable_tabs == 'on' || $enable_thumbnails == 'on')
  2067. $using_navigation = true;
  2068. if(!empty($slides) && count($slides) > 0){
  2069. foreach($slides as $key => $slide){
  2070. if(isset($slide['params']['state']) && $slide['params']['state'] != 'published') continue;
  2071. if(!isset($slide['id'])) continue;
  2072. $slide_counter++;
  2073. $slide_id = $slide['id'];
  2074. if(isset($slide['params']['kenburn_effect']) && $slide['params']['kenburn_effect'] == 'on')
  2075. $using_kenburns = true;
  2076. if(!isset($slide['params']['image_source_type'])) $slide['params']['image_source_type'] = 'full';
  2077. if(isset($slide['params']['image']) && $slide['params']['image'] != ''){
  2078. //add infos of image to an array
  2079. $infos = array();
  2080. $urlImage = false;
  2081. switch($slide['params']['background_type']){
  2082. case 'streamyoutube':
  2083. case 'streaminstagram':
  2084. case 'streamvimeo':
  2085. case 'youtube':
  2086. case 'vimeo':
  2087. $using_videos = true;
  2088. break;
  2089. }
  2090. if(isset($slide['params']['image_id'])){
  2091. $cur_img_id = $slide['params']['image_id'];
  2092. //get image sizes by ID
  2093. $urlImage = wp_get_attachment_image_src($slide['params']['image_id'], $slide['params']['image_source_type']);
  2094. }
  2095. if($urlImage === false){
  2096. $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($slide['params']['image']);
  2097. if($cur_img_id !== false){
  2098. $urlImage = wp_get_attachment_image_src($cur_img_id, $slide['params']['image_source_type']);
  2099. }
  2100. }
  2101. if($urlImage !== false){
  2102. $infos['id'] = $cur_img_id;
  2103. $file = get_attached_file( $cur_img_id );
  2104. $infos['info'] = pathinfo( $file );
  2105. if(file_exists( $file )){
  2106. $infos['size'] = filesize( $file );
  2107. $infos['size-format'] = size_format($infos['size'], 2);
  2108. $img_size += $infos['size'];
  2109. if ($slide_counter==1)
  2110. $firstslide_size += $infos['size'];
  2111. if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
  2112. $smartslide_size += $infos['size'];
  2113. }else{
  2114. $infos['id'] = false;
  2115. }
  2116. }else{
  2117. $infos['id'] = 'external';
  2118. }
  2119. if(strpos($slide_id, 'static_') !== false){
  2120. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2121. }else{
  2122. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2123. }
  2124. $used_images[$slide['params']['image']] = $infos;
  2125. }
  2126. if(isset($slide['layers']) && !empty($slide['layers']) && count($slide['layers']) > 0){
  2127. $using_layeranim = true;
  2128. foreach($slide['layers'] as $lKey => $layer){
  2129. switch($layer['type']){
  2130. case 'image':
  2131. $infos = array();
  2132. if(isset($layer['image_url']) && trim($layer['image_url']) != ''){
  2133. $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($layer['image_url']);
  2134. if($cur_img_id !== false){
  2135. if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
  2136. $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
  2137. if($urlImage !== false){
  2138. $infos['id'] = $cur_img_id;
  2139. $file = get_attached_file( $cur_img_id );
  2140. $infos['info'] = pathinfo( $file );
  2141. if(file_exists( $file )){
  2142. $infos['size'] = filesize( $file );
  2143. $infos['size-format'] = size_format($infos['size'], 2);
  2144. $img_size += $infos['size'];
  2145. if ($slide_counter==1)
  2146. $firstslide_size += $infos['size'];
  2147. if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
  2148. $smartslide_size += $infos['size'];
  2149. }else{
  2150. $infos['id'] = false;
  2151. }
  2152. }else{
  2153. $infos['id'] = 'external';
  2154. }
  2155. }else{
  2156. $infos['id'] = 'external';
  2157. }
  2158. if(strpos($slide_id, 'static_') !== false){
  2159. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2160. }else{
  2161. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2162. }
  2163. $used_images[$layer['image_url']] = $infos; //image_url if image caption
  2164. }
  2165. break;
  2166. case 'video':
  2167. $using_videos = true;
  2168. //get cover image if existing
  2169. $infos = array();
  2170. $poster_img = array();
  2171. if(isset($layer['video_data']) && isset($layer['video_data']->urlPoster)){
  2172. $poster_img[] = $layer['video_data']->urlPoster;
  2173. }
  2174. if(isset($layer['video_image_url']) && isset($layer['video_image_url'])){
  2175. $poster_img[] = $layer['video_image_url'];
  2176. }
  2177. if(!empty($poster_img)){
  2178. foreach($poster_img as $img){
  2179. if(trim($img) == '') continue;
  2180. $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($img);
  2181. if($cur_img_id !== false){
  2182. if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
  2183. $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
  2184. if($urlImage !== false){
  2185. $infos['id'] = $cur_img_id;
  2186. $file = get_attached_file( $cur_img_id );
  2187. $infos['info'] = pathinfo( $file );
  2188. if(file_exists( $file )){
  2189. $infos['size'] = filesize( $file );
  2190. $infos['size-format'] = size_format($infos['size'], 2);
  2191. $img_size += $infos['size'];
  2192. if ($slide_counter==1)
  2193. $firstslide_size += $infos['size'];
  2194. if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
  2195. $smartslide_size += $infos['size'];
  2196. }else{
  2197. $infos['id'] = false;
  2198. }
  2199. }else{
  2200. $infos['id'] = 'external';
  2201. }
  2202. }else{
  2203. $infos['id'] = 'external';
  2204. }
  2205. if(strpos($slide_id, 'static_') !== false){
  2206. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2207. }else{
  2208. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2209. }
  2210. $used_images[$img] = $infos; //image_url if image caption
  2211. }
  2212. }
  2213. $infos = array();
  2214. if(isset($layer['video_type'])){
  2215. //add videos and try to get video size
  2216. if(isset($layer['video_data'])){
  2217. $video_arr = array();
  2218. $max_video_size = 0;
  2219. if(strpos($slide_id, 'static_') !== false){
  2220. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
  2221. }else{
  2222. $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
  2223. }
  2224. switch($layer['video_type']){
  2225. case 'html5':
  2226. if(isset($layer['video_data']->urlMp4) && !empty($layer['video_data']->urlMp4)) $video_arr['mp4'] = $layer['video_data']->urlMp4;
  2227. if(isset($layer['video_data']->urlWebm) && !empty($layer['video_data']->urlWebm)) $video_arr['webm'] = $layer['video_data']->urlWebm;
  2228. if(isset($layer['video_data']->urlOgv) && !empty($layer['video_data']->urlOgv)) $video_arr['mp4'] = $layer['video_data']->urlOgv;
  2229. if(!empty($video_arr)){
  2230. foreach($video_arr as $type => $url){
  2231. $cur_id = RevSliderFunctionsWP::get_image_id_by_url($url);
  2232. if($cur_id !== false){
  2233. $infos['id'] = $cur_id;
  2234. $file = get_attached_file( $cur_id );
  2235. $infos['info'] = pathinfo( $file );
  2236. if(file_exists( $file )){
  2237. $infos['size'] = filesize( $file );
  2238. $infos['size-format'] = size_format($infos['size'], 2);
  2239. 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
  2240. }else{
  2241. $infos['id'] = 'external';
  2242. }
  2243. }else{
  2244. $infos['id'] = 'external';
  2245. }
  2246. $used_videos[$url] = $infos;
  2247. }
  2248. $video_size += $max_video_size;
  2249. }
  2250. break;
  2251. case 'youtube':
  2252. $infos['id'] = 'external';
  2253. if(!isset($layer['video_data']->id) || empty($layer['video_data']->id)) continue;
  2254. $used_videos[$do_ssl.'//www.youtube.com/watch?v='.$layer['video_data']->id] = $infos;
  2255. break;
  2256. case 'vimeo':
  2257. if(!isset($layer['video_data']->id) || empty($layer['video_data']->id)) continue;
  2258. $infos['id'] = 'external';
  2259. $used_videos[$do_ssl.'//vimeo.com/'.$layer['video_data']->id] = $infos;
  2260. break;
  2261. }
  2262. }
  2263. }
  2264. break;
  2265. }
  2266. //check captions for actions
  2267. if(isset($layer['layer_action']) && !empty($layer['layer_action'])){
  2268. $a_action = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'action', array()));
  2269. $a_link_type = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'link_type', array()));
  2270. if(!empty($a_action)){
  2271. foreach($a_action as $num => $action){
  2272. if($using_actions == true) break;
  2273. if($action !== 'link'){
  2274. $using_actions = true;
  2275. }else{
  2276. //check if jQuery or a tag
  2277. if($a_link_type[$num] == 'jquery') $using_actions = true;
  2278. }
  2279. }
  2280. }
  2281. }
  2282. if(isset($layer['style']) && $layer['style'] != '') $used_captions[$layer['style']] = true;
  2283. }
  2284. }
  2285. }
  2286. }
  2287. $total_size += $img_size;
  2288. $img_counter = 0;
  2289. $issues ="";
  2290. //$total_size += $video_size;
  2291. ?>
  2292. <span class="tp-clearfix" style="height:15px"></span>
  2293. <hr>
  2294. <span class="tp-clearfix" style="height:25px"></span>
  2295. <!-- HEADER OF MONITORING -->
  2296. <span class="tp-monitor-performance-title"><?php echo __("Overall Slider Performance",'revslider'); ?></span>
  2297. <span class="tp-monitor-performace-wrap">
  2298. <span id="image-performace-bar" style="width: %overall_performance%%" class="tp-monitor-performance-bar mo-%overall_color%-col"></span>
  2299. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2300. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2301. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2302. </span>
  2303. <span class="tp-clearfix" style="height:50px"></span>
  2304. <span class="tp-monitor-speed-table tp-monitor-single-speed">
  2305. <span class="tp-monitor-speed-cell">
  2306. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
  2307. <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-single%</span>
  2308. </span>
  2309. <span class="tp-monitor-speed-cell">
  2310. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
  2311. <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-single%</span>
  2312. </span>
  2313. <span class="tp-monitor-speed-cell">
  2314. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
  2315. <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-single%</span>
  2316. </span>
  2317. </span>
  2318. <span class="tp-monitor-speed-table tp-monitor-smart-speed">
  2319. <span class="tp-monitor-speed-cell">
  2320. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
  2321. <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-smart%</span>
  2322. </span>
  2323. <span class="tp-monitor-speed-cell">
  2324. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
  2325. <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-smart%</span>
  2326. </span>
  2327. <span class="tp-monitor-speed-cell">
  2328. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
  2329. <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-smart%</span>
  2330. </span>
  2331. </span>
  2332. <span class="tp-monitor-speed-table tp-monitor-all-speed">
  2333. <span class="tp-monitor-speed-cell">
  2334. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
  2335. <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-all%</span>
  2336. </span>
  2337. <span class="tp-monitor-speed-cell">
  2338. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
  2339. <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-all%</span>
  2340. </span>
  2341. <span class="tp-monitor-speed-cell">
  2342. <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
  2343. <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-all%</span>
  2344. </span>
  2345. </span>
  2346. <span class="tp-clearfix" style="height:25px"></span>
  2347. <span style="float:left;width:165px">
  2348. <span class="tp-monitor-smalllabel"><?php echo __("Total Slider Size:",'revslider'); ?></span>
  2349. <span class="tp-monitor-fullsize">%overall_size%</span>
  2350. <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>
  2351. </span>
  2352. <span style="float:right; width:165px">
  2353. <span class="tp-monitor-smalllabel"><?php echo __("Preloaded Slides Size:",'revslider'); ?></span>
  2354. <span class="tp-monitor-fullsize tp-monitor-single-speed">%firstslide_size%</span>
  2355. <span class="tp-monitor-fullsize tp-monitor-smart-speed">%smartslide_size%</span>
  2356. <span class="tp-monitor-fullsize tp-monitor-all-speed">%allslide_size%</span>
  2357. <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>
  2358. </span>
  2359. <span class="tp-clearfix" style="height:15px"></span>
  2360. <hr>
  2361. <span class="tp-clearfix" style="height:25px"></span>
  2362. <!-- THE IMAGE PERFORMANCE MESSING -->
  2363. <div id="monitor-problems" style="display:none">
  2364. <span class="tp-monitor-performance-title"><?php echo __("Need Some Attention",'revslider'); ?></span>
  2365. <span class="tp-clearfix" style="height:25px"></span>
  2366. <ul class="tp-monitor-list" id="monitor-problem-details" style="margin-bottom:15px;">
  2367. %issues%
  2368. </ul>
  2369. <span class="tp-clearfix" style="height:15px"></span>
  2370. <hr>
  2371. <span class="tp-clearfix" style="height:25px"></span>
  2372. </div>
  2373. <div id="performance_overall_details" style="display:none">
  2374. <!-- IMAGE LIST -->
  2375. <?php
  2376. if(!empty($used_images)){
  2377. ?>
  2378. <!-- THE IMAGE PERFORMANCE MESSING -->
  2379. <span class="tp-monitor-performance-title"><?php echo __("Image Performance",'revslider'); ?></span>
  2380. <span class="tp-monitor-performace-wrap">
  2381. <span id="image-performace-bar" style="width: %image_performance%%" class="tp-monitor-performance-bar mo-%image_color%-col"></span>
  2382. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2383. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2384. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2385. </span>
  2386. <span class="tp-clearfix" style="height:35px"></span>
  2387. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2388. <span style="float:left;width:40%">
  2389. <span class="tp-monitor-smalllabel"><?php echo __("Images Loaded:",'revslider'); ?></span>
  2390. <span class="tp-monitor-imageicon"></span>
  2391. <span id="image_sub_size" class="tp-monitor-total-subsize"><?php echo size_format($img_size,2); ?></span>
  2392. </span>
  2393. <span style="float:left;width:60%; text-align:right;">
  2394. <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>
  2395. </span>
  2396. <span class="tp-clearfix" style="height:15px"></span>
  2397. <!-- THE IMAGE LIST -->
  2398. <ul class="tp-monitor-list" id="monitor-image-details" style="display:none;margin-bottom:15px;">
  2399. <?php
  2400. foreach($used_images as $path => $image){
  2401. $_li = '<li class="tp-monitor-listli">';
  2402. if(isset($image['size'])) {
  2403. $img_counter++;
  2404. if ($image['size']<200000)
  2405. $_li .= '<span class="tp-monitor-good"></span>';
  2406. else
  2407. if ($image['size']<400000)
  2408. $_li .= '<span class="tp-monitor-well"></span>';
  2409. else
  2410. $_li .= '<span class="tp-monitor-warning"></span>';
  2411. if ($image['size']>1000000)
  2412. $_li .= '<span class="tp-monitor-size">'.size_format($image['size'],2).'</span>';
  2413. else
  2414. $_li .= '<span class="tp-monitor-size">'.size_format($image['size'],0).'</span>';
  2415. }else{
  2416. if($image['id'] == 'external'){
  2417. $_li .= '<span class="tp-monitor-neutral"></span><span class="tp-monitor-size">'.__('extern', 'revslider').'</span>';
  2418. }else{
  2419. $_li .= '<span class="tp-monitor-warning"></span><span class="tp-monitor-size">'.__('missing', 'revslider').'</span>';
  2420. }
  2421. }
  2422. $_li .= '<span class="tp-monitor-file">';
  2423. if(!isset($image['info']['basename']) || empty($image['info']['basename'])){
  2424. $_li .= '...'.substr($path,-20);
  2425. }else{
  2426. $_li .= substr($image['info']['basename'],-20);
  2427. }
  2428. $_li .= '</span>';
  2429. if(isset($image['url'])) {
  2430. //$_li .= ' <a href="'.$image['url'].'" target="_blank" class="tp-monitor-showimage"></a>';
  2431. $_li .= ' <a href="'.$image['url'].'" target="_blank" class="tp-monitor-linktoslide"></a>';
  2432. }
  2433. $_li .= '</li>';
  2434. echo $_li;
  2435. if ((isset($image['size']) && $image['size']>199999) || (!isset($image['size']) && !$image['id'] == 'external'))
  2436. $issues .= $_li;
  2437. }
  2438. ?>
  2439. </ul>
  2440. <?php
  2441. }
  2442. ?>
  2443. <!-- VIDEO LIST -->
  2444. <?php
  2445. if(!empty($used_videos)){
  2446. ?>
  2447. <span class="tp-clearfix" style="height:15px"></span>
  2448. <hr>
  2449. <span class="tp-clearfix" style="height:25px"></span>
  2450. <!-- THE VIDEO PERFORMANCE MESSING -->
  2451. <span class="tp-monitor-performance-title"><?php echo __("Video Performance",'revslider'); ?></span>
  2452. <span class="tp-monitor-performace-wrap">
  2453. <span id="video-performace-bar" style="width:50%" class="tp-monitor-performance-bar mo-neutral-col"></span>
  2454. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2455. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2456. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2457. </span>
  2458. <span class="tp-clearfix" style="height:35px"></span>
  2459. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2460. <span style="float:left;width:40%; display:block">
  2461. <span class="tp-monitor-smalllabel"><?php echo __("Videos Loaded (max):",'revslider'); ?></span>
  2462. <?php if ($video_size>0) {?>
  2463. <span class="tp-monitor-imageicon"></span>
  2464. <span id="video_sub_size" class="tp-monitor-total-subsize"><?php echo size_format($video_size,2); ?></span>
  2465. <?php } else {?>
  2466. <span class="tp-monitor-imageicon"></span>
  2467. <span class="tp-monitor-total-subsize"><?php echo __("Unknown",'revslider'); ?></span>
  2468. <?php } ?>
  2469. </span>
  2470. <span style="float:left;width:60%; text-align:right;">
  2471. <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>
  2472. </span>
  2473. <span class="tp-clearfix" style="height:15px"></span>
  2474. <ul class="tp-monitor-list" id="monitor-video-details" style="margin-bottom:15px;display:none;">
  2475. <?php
  2476. foreach($used_videos as $path => $video){
  2477. $_li = '<li class="tp-monitor-listli">';
  2478. if(isset($video['size'])){
  2479. $_li .= ' <span class="tp-monitor-neutral"></span>';
  2480. if ($video['size']>1000000)
  2481. $_li .= '<span class="tp-monitor-size">'.size_format($video['size'],2).'</span>';
  2482. else
  2483. $_li .= '<span class="tp-monitor-size">'.size_format($video['size'],0).'</span>';
  2484. }else{
  2485. if($video['id'] == 'external'){
  2486. $_li .= '<span class="tp-monitor-neutral"></span><span class="tp-monitor-size">'.__('extern', 'revslider').'</span>';
  2487. }else{
  2488. $_li .= '<span class="tp-monitor-warning"></span><span class="tp-monitor-size">'.__('missing', 'revslider').'</span>';
  2489. }
  2490. }
  2491. $_li .= '<span class="tp-monitor-file">';
  2492. if(!isset($video['info']['basename']) || empty($video['info']['basename'])){
  2493. $_li .= '...'.substr($path,-20);
  2494. }else{
  2495. $_li .= substr($video['info']['basename'],-20);
  2496. }
  2497. $_li .= '</span>';
  2498. if(isset($image['url'])) {
  2499. $_li .= ' <a href="'.$video['url'].'" target="_blank" class="tp-monitor-linktoslide"></a>';
  2500. }
  2501. $_li .= '</li>';
  2502. if (!isset($video['size']) && !$video['id'] == 'external')
  2503. $issues .= $_li;
  2504. echo $_li;
  2505. }
  2506. ?>
  2507. </ul>
  2508. <?php
  2509. }
  2510. $css_size = 0;
  2511. ?>
  2512. <span class="tp-clearfix" style="height:15px"></span>
  2513. <hr>
  2514. <span class="tp-clearfix" style="height:25px"></span>
  2515. <!-- THE IMAGE PERFORMANCE MESSING -->
  2516. <span class="tp-monitor-performance-title"><?php echo __("CSS Performance",'revslider'); ?></span>
  2517. <span class="tp-monitor-performace-wrap">
  2518. <span id="image-performace-bar" style="width:%css_performance%%" class="tp-monitor-performance-bar mo-%css_color%-col"></span>
  2519. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2520. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2521. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2522. </span>
  2523. <span class="tp-clearfix" style="height:35px"></span>
  2524. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2525. <span style="float:left;width:40%">
  2526. <span class="tp-monitor-smalllabel"><?php echo __("CSS Loaded:",'revslider'); ?></span>
  2527. <span class="tp-monitor-cssicon"></span><span id="css_sub_size" class="tp-monitor-total-subsize">%css_size%</span>
  2528. </span>
  2529. <span style="float:left;width:60%; text-align:right;">
  2530. <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>
  2531. </span>
  2532. <span class="tp-clearfix" style="height:15px"></span>
  2533. <?php
  2534. //get css files
  2535. echo '<ul class="tp-monitor-list" id="monitor-CSS-details" style="margin-bottom:15px;display:none;">';
  2536. if(file_exists( RS_PLUGIN_PATH . '/public/assets/css/settings.css' )){
  2537. $fs = filesize( RS_PLUGIN_PATH . '/public/assets/css/settings.css' );
  2538. $_li ='<li class="tp-monitor-listli">';
  2539. if ($fs<60000)
  2540. $_li .= '<span class="tp-monitor-good"></span>';
  2541. else
  2542. if ($fs<100000)
  2543. $_li .= '<span class="tp-monitor-well"></span>';
  2544. else
  2545. $_li .= '<span class="tp-monitor-warning"></span>';
  2546. $_li .= '<span class="tp-monitor-size">'.size_format($fs,0).'</span>';
  2547. $_li .= '<span class="tp-monitor-file">';
  2548. $_li .= __('css/settings.css','revslider');
  2549. $_li .= '</span>';
  2550. $_li .= '</li>';
  2551. if ($fs>99999)
  2552. $issues .=$_li;
  2553. echo $_li;
  2554. $total_size += $fs;
  2555. $css_size += $fs;
  2556. }
  2557. /*$custom_css = RevSliderOperations::getStaticCss();
  2558. $custom_css = RevSliderCssParser::compress_css($custom_css);
  2559. $_li = '<li class="tp-monitor-listli">';
  2560. if (strlen($custom_css)<50000)
  2561. $_li .= '<span class="tp-monitor-good"></span>';
  2562. else
  2563. if (strlen($custom_css)<100000)
  2564. $_li .= '<span class="tp-monitor-well"></span>';
  2565. else
  2566. $_li .= '<span class="tp-monitor-warning"></span>';
  2567. $_li .= '<span class="tp-monitor-size">'.size_format(strlen($custom_css),0).'</span>';
  2568. $_li .= '<span class="tp-monitor-file">';
  2569. $_li .= __('Static Styles','revslider');
  2570. $_li .= '</span>';
  2571. $_li .= '</li>';
  2572. if(strlen($custom_css)>49999)
  2573. $issues .=$_li;
  2574. echo $_li;
  2575. $total_size += strlen($custom_css);
  2576. $css_size += strlen($custom_css);
  2577. */
  2578. if(!empty($used_captions)){
  2579. $captions = array();
  2580. foreach($used_captions as $class => $val){
  2581. $cap = RevSliderOperations::getCaptionsContentArray($class);
  2582. if(!empty($cap))
  2583. $captions[] = $cap;
  2584. }
  2585. $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
  2586. $styles = RevSliderCssParser::compress_css($styles);
  2587. $_li = '<li class="tp-monitor-listli">';
  2588. if (strlen($styles)<50000)
  2589. $_li .= '<span class="tp-monitor-good"></span>';
  2590. else
  2591. if (strlen($styles)<100000)
  2592. $_li .= '<span class="tp-monitor-well"></span>';
  2593. else
  2594. $_li .= '<span class="tp-monitor-warning"></span>';
  2595. $_li .= '<span class="tp-monitor-size">'.size_format(strlen($styles),0).'</span>';
  2596. $_li .= '<span class="tp-monitor-file">';
  2597. $_li .= __('Dynamic Styles','revslider');
  2598. $_li .= '</span>';
  2599. $_li .= '</li>';
  2600. if (strlen($styles)>49999)
  2601. $issues .=$_li;
  2602. echo $_li;
  2603. $total_size += strlen($styles);
  2604. $css_size += strlen($styles);
  2605. }
  2606. echo '</ul>';
  2607. echo ' <span style="display:none" id="css-size-hidden">'.size_format($css_size, 2).'</span>';
  2608. $js_size = 0;
  2609. ?>
  2610. <span class="tp-clearfix" style="height:15px"></span>
  2611. <hr>
  2612. <span class="tp-clearfix" style="height:25px"></span>
  2613. <!-- THE jQuery PERFORMANCE MESSING -->
  2614. <span class="tp-monitor-performance-title"><?php echo __("jQuery Performance",'revslider'); ?></span>
  2615. <span class="tp-monitor-performace-wrap">
  2616. <span id="video-performace-bar" style="width:%js_performance%%" class="tp-monitor-performance-bar mo-%js_color%-col"></span>
  2617. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2618. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2619. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2620. </span>
  2621. <span class="tp-clearfix" style="height:35px"></span>
  2622. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2623. <span style="float:left;width:40%; display:block">
  2624. <span class="tp-monitor-smalllabel"><?php echo __("jQuery Loaded:",'revslider'); ?></span>
  2625. <span class="tp-monitor-imageicon"></span><span id="jquery_sub_size" class="tp-monitor-total-subsize">%js_size%</span>
  2626. </span>
  2627. <span style="float:left;width:60%; text-align:right;">
  2628. <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>
  2629. </span>
  2630. <span class="tp-clearfix" style="height:15px"></span>
  2631. <?php
  2632. echo '<ul class="tp-monitor-list" id="monitor-jquery-details" style="margin-bottom:15px;display:none">';
  2633. $jsfiles = array(
  2634. 'jquery.themepunch.tools.min.js' => RS_PLUGIN_PATH . '/public/assets/js/jquery.themepunch.tools.min.js',
  2635. 'jquery.themepunch.revolution.min.js' => RS_PLUGIN_PATH . '/public/assets/js/jquery.themepunch.revolution.min.js',
  2636. );
  2637. //check which js files will be used by the Slider
  2638. if($using_kenburns == true) $jsfiles['revolution.extension.kenburn.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.kenburn.min.js';
  2639. if($using_parallax == true) $jsfiles['revolution.extension.parallax.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.parallax.js';
  2640. if($using_navigation == true) $jsfiles['revolution.extension.navigation.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.navigation.min.js';
  2641. if($using_videos == true) $jsfiles['revolution.extension.video.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.video.min.js';
  2642. if($using_actions == true) $jsfiles['revolution.extension.actions.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.actions.min.js';
  2643. if($using_layeranim == true) $jsfiles['revolution.extension.layeranimation.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.layeranimation.min.js';
  2644. if($using_carousel == true)
  2645. $jsfiles['revolution.extension.carousel.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.carousel.min.js';
  2646. else
  2647. $jsfiles['revolution.extension.slideanims.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.slideanims.min.js';
  2648. //get the js files
  2649. foreach($jsfiles as $name => $path){
  2650. if(file_exists( $path )){
  2651. $fs = filesize( $path );
  2652. echo '<li class="tp-monitor-listli">';
  2653. echo '<span class="tp-monitor-good"></span>';
  2654. echo '<span class="tp-monitor-size">'.size_format($fs,0).'</span>';
  2655. echo '<span class="tp-monitor-file">';
  2656. echo $name;
  2657. echo '</span>';
  2658. echo '</li>';
  2659. $total_size += $fs;
  2660. $js_size += $fs;
  2661. }
  2662. }
  2663. echo '</ul>';
  2664. echo ' <span style="display:none" id="css-size-hidden">'.size_format($js_size, 2).'</span>';
  2665. $http = (is_ssl()) ? 'https' : 'http';
  2666. $operations = new RevSliderOperations();
  2667. $arrValues = $operations->getGeneralSettingsValues();
  2668. $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
  2669. if($set_diff_font !== ''){
  2670. $font_url = $set_diff_font;
  2671. }else{
  2672. $font_url = $http.'://fonts.googleapis.com/css?family=';
  2673. }
  2674. $my_fonts = $slider->getParam('google_font', array());
  2675. ?>
  2676. <span class="tp-clearfix" style="height:15px"></span>
  2677. <hr>
  2678. <span class="tp-clearfix" style="height:25px"></span>
  2679. <!-- THE Fonts PERFORMANCE MESSING -->
  2680. <span class="tp-monitor-performance-title"><?php echo __("Google Fonts Performance",'revslider'); ?></span>
  2681. <span class="tp-monitor-performace-wrap">
  2682. <span id="video-performace-bar" style="width:%font_performance%%" class="tp-monitor-performance-bar mo-%font_color%-col"></span>
  2683. <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
  2684. <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
  2685. <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
  2686. </span>
  2687. <span class="tp-clearfix" style="height:35px"></span>
  2688. <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
  2689. <span style="float:left;width:40%; display:block">
  2690. <span class="tp-monitor-smalllabel"><?php echo __("Fonts Loaded:",'revslider'); ?></span>
  2691. <span class="tp-monitor-jsicon"></span><span class="tp-monitor-total-subsize">%font_size%</span>
  2692. </span>
  2693. <span style="float:left;width:60%; text-align:right;">
  2694. <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>
  2695. </span>
  2696. <span class="tp-clearfix" style="height:15px"></span>
  2697. <?php
  2698. //echo '<span class="tp-monitor-smalllabel">'.$font_url.'</span>';
  2699. echo '<ul class="tp-monitor-list" id="monitor-fonts-details" style="margin-bottom:15px;display:none">';
  2700. $all_font_count = 0;
  2701. if(!empty($my_fonts)){
  2702. foreach($my_fonts as $c_font){
  2703. $fcount = RevSliderBase::get_font_weight_count($c_font);
  2704. $_li = '<li class="tp-monitor-listli">';
  2705. if ($fcount<4)
  2706. $_li .= '<span class="tp-monitor-good"></span>';
  2707. else
  2708. if ($fcount<7)
  2709. $_li .= '<span class="tp-monitor-well"></span>';
  2710. else
  2711. $_li .= '<span class="tp-monitor-warning"></span>';
  2712. $_li .= '<span class="tp-monitor-file">';
  2713. $_li .= strip_tags($c_font);
  2714. $_li .= '</span>';
  2715. $_li .= '</li>';
  2716. if ($fcount > 4)
  2717. $issues .= $_li;
  2718. echo $_li;
  2719. $all_font_count += $fcount;
  2720. }
  2721. }
  2722. echo '</ul>';
  2723. ?>
  2724. </div><!-- END OF OVERALL Div-->
  2725. <script>
  2726. jQuery(document).on("ready",function() {
  2727. jQuery('body').on('click','.tp-monitor-showdetails',function() {
  2728. var bt = jQuery(this);
  2729. if (bt.hasClass("selected")) {
  2730. bt.find('.tp-show-inner-btn').html(bt.data('close'));
  2731. bt.removeClass("selected");
  2732. jQuery(bt.data('target')).slideUp(200);
  2733. } else {
  2734. bt.find('.tp-show-inner-btn').html(bt.data('open'));
  2735. bt.addClass("selected");
  2736. jQuery(bt.data('target')).slideDown(200);
  2737. }
  2738. })
  2739. })
  2740. </script>
  2741. <?php
  2742. $content = ob_get_contents();
  2743. ob_end_clean();
  2744. if ($img_counter ==0) $img_counter = 1;
  2745. if ($slide_counter ==0) $slide_counter = 1;
  2746. $overall = RevSliderOperations::get_performance($total_size/$slide_counter, 0,400000); // 400KB / Slide is ok
  2747. $image = RevSliderOperations::get_performance($img_size/$img_counter, 0,100000); // 100KB Image OK
  2748. $css = RevSliderOperations::get_performance($css_size, 0,150000); // 150KB CSS OK
  2749. $js = RevSliderOperations::get_performance($js_size, 0,250000); // 250KB Image OK
  2750. $font = RevSliderOperations::get_performance($all_font_count, 0,15); // 250KB Image OK
  2751. $firstslide_size += $js_size;
  2752. $firstslide_size += $css_size;
  2753. $smartslide_size += $js_size;
  2754. $smartslide_size += $css_size;
  2755. $content = str_replace("%overall_performance%",$overall["proc"],$content);
  2756. $content = str_replace("%overall_color%",$overall["col"],$content);
  2757. $content = str_replace("%overall_size%",size_format($total_size,2),$content);
  2758. $content = str_replace("%image_performance%",$image["proc"],$content);
  2759. $content = str_replace("%image_color%",$image["col"],$content);
  2760. $content = str_replace("%css_performance%",$css["proc"],$content);
  2761. $content = str_replace("%css_color%",$css["col"],$content);
  2762. $content = str_replace("%css_size%",size_format($css_size,2),$content);
  2763. $content = str_replace("%js_performance%",$js["proc"],$content);
  2764. $content = str_replace("%js_color%",$js["col"],$content);
  2765. $content = str_replace("%js_size%",size_format($js_size,2),$content);
  2766. $content = str_replace("%font_performance%",$font["proc"],$content);
  2767. $content = str_replace("%font_color%",$font["col"],$content);
  2768. $content = str_replace("%font_size%",$all_font_count,$content);
  2769. $content = str_replace("%issues%", $issues, $content);
  2770. $content = str_replace("%firstslide_size%", size_format($firstslide_size,2), $content);
  2771. $content = str_replace("%smartslide_size%", size_format($smartslide_size,2), $content);
  2772. $content = str_replace("%allslide_size%", size_format($total_size,2), $content);
  2773. $total_size = $total_size / 1000;
  2774. $content = str_replace("%umtsspeed-all%", gmdate('i:s',$total_size/48), $content);
  2775. $content = str_replace("%dslspeed-all%", gmdate('i:s',$total_size/307), $content);
  2776. $content = str_replace("%t1speed-all%", gmdate('i:s',$total_size/1180), $content);
  2777. $firstslide_size = $firstslide_size / 1000;
  2778. $content = str_replace("%umtsspeed-single%", gmdate('i:s',$firstslide_size/48), $content);
  2779. $content = str_replace("%dslspeed-single%", gmdate('i:s',$firstslide_size/307), $content);
  2780. $content = str_replace("%t1speed-single%", gmdate('i:s',$firstslide_size/1180), $content);
  2781. $smartslide_size = $smartslide_size / 1000;
  2782. $content = str_replace("%umtsspeed-smart%", gmdate('i:s',$smartslide_size/48), $content);
  2783. $content = str_replace("%dslspeed-smart%", gmdate('i:s',$smartslide_size/307), $content);
  2784. $content = str_replace("%t1speed-smart%", gmdate('i:s',$smartslide_size/1180), $content);
  2785. echo $content;
  2786. }
  2787. /**
  2788. * these are the specific slider settings, which the user can switch between, for easier usage
  2789. * @since: 5.0
  2790. */
  2791. public static function get_preset_settings(){
  2792. $presets = array();
  2793. //ThemePunch default presets are added here directly
  2794. //preset -> standardpreset || heropreset || carouselpreset
  2795. $presets[] = array (
  2796. 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Auto', 'preset' => 'standardpreset' ),
  2797. 'values' =>
  2798. array (
  2799. 'next_slide_on_window_focus' => 'off',
  2800. 'delay' => '9000',
  2801. 'start_js_after_delay' => '0',
  2802. 'image_source_type' => 'full',
  2803. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  2804. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  2805. //data.layertype - Layer Type (image,video,html)
  2806. //data.layersettings - Default Settings for Layer
  2807. //data.layer - Layer as jQuery Object
  2808. });',
  2809. 'start_with_slide' => '1',
  2810. 'stop_on_hover' => 'on',
  2811. 'stop_slider' => 'off',
  2812. 'stop_after_loops' => '0',
  2813. 'stop_at_slide' => '1',
  2814. 'shuffle' => 'off',
  2815. 'viewport_start' => 'wait',
  2816. 'viewport_area' => '80',
  2817. 'enable_progressbar' => 'on',
  2818. 'background_dotted_overlay' => 'none',
  2819. 'background_color' => 'transparent',
  2820. 'padding' => '0',
  2821. 'show_background_image' => 'off',
  2822. 'background_image' => '',
  2823. 'bg_fit' => 'cover',
  2824. 'bg_repeat' => 'no-repeat',
  2825. 'bg_position' => 'center center',
  2826. 'position' => 'center',
  2827. 'use_spinner' => '-1',
  2828. 'spinner_color' => '#FFFFFF',
  2829. 'enable_arrows' => 'on',
  2830. 'navigation_arrow_style' => 'round',
  2831. 'arrows_always_on' => 'true',
  2832. 'hide_arrows' => '200',
  2833. 'hide_arrows_mobile' => '1200',
  2834. 'hide_arrows_on_mobile' => 'on',
  2835. 'arrows_under_hidden' => '600',
  2836. 'hide_arrows_over' => 'off',
  2837. 'arrows_over_hidden' => '0',
  2838. 'leftarrow_align_hor' => 'left',
  2839. 'leftarrow_align_vert' => 'center',
  2840. 'leftarrow_offset_hor' => '30',
  2841. 'leftarrow_offset_vert' => '0',
  2842. 'rightarrow_align_hor' => 'right',
  2843. 'rightarrow_align_vert' => 'center',
  2844. 'rightarrow_offset_hor' => '30',
  2845. 'rightarrow_offset_vert' => '0',
  2846. 'enable_bullets' => 'on',
  2847. 'navigation_bullets_style' => 'round-old',
  2848. 'bullets_space' => '5',
  2849. 'bullets_direction' => 'horizontal',
  2850. 'bullets_always_on' => 'true',
  2851. 'hide_bullets' => '200',
  2852. 'hide_bullets_mobile' => '1200',
  2853. 'hide_bullets_on_mobile' => 'on',
  2854. 'bullets_under_hidden' => '600',
  2855. 'hide_bullets_over' => 'off',
  2856. 'bullets_over_hidden' => '0',
  2857. 'bullets_align_hor' => 'center',
  2858. 'bullets_align_vert' => 'bottom',
  2859. 'bullets_offset_hor' => '0',
  2860. 'bullets_offset_vert' => '30',
  2861. 'enable_thumbnails' => 'off',
  2862. 'thumbnails_padding' => '5',
  2863. 'span_thumbnails_wrapper' => 'off',
  2864. 'thumbnails_wrapper_color' => 'transparent',
  2865. 'thumbnails_wrapper_opacity' => '100',
  2866. 'thumbnails_style' => 'round',
  2867. 'thumb_amount' => '5',
  2868. 'thumbnails_space' => '5',
  2869. 'thumbnail_direction' => 'horizontal',
  2870. 'thumb_width' => '100',
  2871. 'thumb_height' => '50',
  2872. 'thumb_width_min' => '100',
  2873. 'thumbs_always_on' => 'false',
  2874. 'hide_thumbs' => '200',
  2875. 'hide_thumbs_mobile' => '1200',
  2876. 'hide_thumbs_on_mobile' => 'off',
  2877. 'thumbs_under_hidden' => '0',
  2878. 'hide_thumbs_over' => 'off',
  2879. 'thumbs_over_hidden' => '0',
  2880. 'thumbnails_inner_outer' => 'inner',
  2881. 'thumbnails_align_hor' => 'center',
  2882. 'thumbnails_align_vert' => 'bottom',
  2883. 'thumbnails_offset_hor' => '0',
  2884. 'thumbnails_offset_vert' => '20',
  2885. 'enable_tabs' => 'off',
  2886. 'tabs_padding' => '5',
  2887. 'span_tabs_wrapper' => 'off',
  2888. 'tabs_wrapper_color' => 'transparent',
  2889. 'tabs_wrapper_opacity' => '5',
  2890. 'tabs_style' => '',
  2891. 'tabs_amount' => '5',
  2892. 'tabs_space' => '5',
  2893. 'tabs_direction' => 'horizontal',
  2894. 'tabs_width' => '100',
  2895. 'tabs_height' => '50',
  2896. 'tabs_width_min' => '100',
  2897. 'tabs_always_on' => 'false',
  2898. 'hide_tabs' => '200',
  2899. 'hide_tabs_mobile' => '1200',
  2900. 'hide_tabs_on_mobile' => 'off',
  2901. 'tabs_under_hidden' => '0',
  2902. 'hide_tabs_over' => 'off',
  2903. 'tabs_over_hidden' => '0',
  2904. 'tabs_inner_outer' => 'inner',
  2905. 'tabs_align_hor' => 'center',
  2906. 'tabs_align_vert' => 'bottom',
  2907. 'tabs_offset_hor' => '0',
  2908. 'tabs_offset_vert' => '20',
  2909. 'touchenabled' => 'on',
  2910. 'drag_block_vertical' => 'off',
  2911. 'swipe_velocity' => '75',
  2912. 'swipe_min_touches' => '50',
  2913. 'swipe_direction' => 'horizontal',
  2914. 'keyboard_navigation' => 'off',
  2915. 'keyboard_direction' => 'horizontal',
  2916. 'mousescroll_navigation' => 'off',
  2917. 'carousel_infinity' => 'off',
  2918. 'carousel_space' => '0',
  2919. 'carousel_borderr' => '0',
  2920. 'carousel_borderr_unit' => 'px',
  2921. 'carousel_padding_top' => '0',
  2922. 'carousel_padding_bottom' => '0',
  2923. 'carousel_maxitems' => '3',
  2924. 'carousel_stretch' => 'off',
  2925. 'carousel_fadeout' => 'on',
  2926. 'carousel_varyfade' => 'off',
  2927. 'carousel_rotation' => 'off',
  2928. 'carousel_varyrotate' => 'off',
  2929. 'carousel_maxrotation' => '0',
  2930. 'carousel_scale' => 'off',
  2931. 'carousel_varyscale' => 'off',
  2932. 'carousel_scaledown' => '50',
  2933. 'carousel_hposition' => 'center',
  2934. 'carousel_vposition' => 'center',
  2935. 'use_parallax' => 'on',
  2936. 'disable_parallax_mobile' => 'off',
  2937. 'parallax_type' => 'mouse',
  2938. 'parallax_origo' => 'slidercenter',
  2939. 'parallax_speed' => '2000',
  2940. 'parallax_level_1' => '2',
  2941. 'parallax_level_2' => '3',
  2942. 'parallax_level_3' => '4',
  2943. 'parallax_level_4' => '5',
  2944. 'parallax_level_5' => '6',
  2945. 'parallax_level_6' => '7',
  2946. 'parallax_level_7' => '12',
  2947. 'parallax_level_8' => '16',
  2948. 'parallax_level_9' => '10',
  2949. 'parallax_level_10' => '50',
  2950. 'lazy_load_type' => 'smart',
  2951. 'seo_optimization' => 'none',
  2952. 'simplify_ie8_ios4' => 'off',
  2953. 'show_alternative_type' => 'off',
  2954. 'show_alternate_image' => '',
  2955. 'jquery_noconflict' => 'off',
  2956. 'js_to_body' => 'false',
  2957. 'output_type' => 'none',
  2958. 'jquery_debugmode' => 'off',
  2959. 'slider_type' => 'auto',
  2960. 'width' => '1240',
  2961. 'width_notebook' => '1024',
  2962. 'width_tablet' => '778',
  2963. 'width_mobile' => '480',
  2964. 'height' => '600',
  2965. 'height_notebook' => '600',
  2966. 'height_tablet' => '500',
  2967. 'height_mobile' => '400',
  2968. 'enable_custom_size_notebook' => 'on',
  2969. 'enable_custom_size_tablet' => 'on',
  2970. 'enable_custom_size_iphone' => 'on',
  2971. 'main_overflow_hidden' => 'off',
  2972. 'auto_height' => 'off',
  2973. 'min_height' => '',
  2974. 'custom_javascript' => '',
  2975. 'custom_css' => '',
  2976. ),
  2977. );
  2978. $presets[] = array (
  2979. 'settings' =>
  2980. array ( 'class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Width', 'preset' => 'standardpreset' ),
  2981. 'values' =>
  2982. array (
  2983. 'next_slide_on_window_focus' => 'off',
  2984. 'delay' => '9000',
  2985. 'start_js_after_delay' => '0',
  2986. 'image_source_type' => 'full',
  2987. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  2988. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  2989. //data.layertype - Layer Type (image,video,html)
  2990. //data.layersettings - Default Settings for Layer
  2991. //data.layer - Layer as jQuery Object
  2992. });',
  2993. 'start_with_slide' => '1',
  2994. 'stop_on_hover' => 'on',
  2995. 'stop_slider' => 'off',
  2996. 'stop_after_loops' => '0',
  2997. 'stop_at_slide' => '1',
  2998. 'shuffle' => 'off',
  2999. 'viewport_start' => 'wait',
  3000. 'viewport_area' => '80',
  3001. 'enable_progressbar' => 'on',
  3002. 'background_dotted_overlay' => 'none',
  3003. 'background_color' => 'transparent',
  3004. 'padding' => '0',
  3005. 'show_background_image' => 'off',
  3006. 'background_image' => '',
  3007. 'bg_fit' => 'cover',
  3008. 'bg_repeat' => 'no-repeat',
  3009. 'bg_position' => 'center center',
  3010. 'position' => 'center',
  3011. 'use_spinner' => '-1',
  3012. 'spinner_color' => '#FFFFFF',
  3013. 'enable_arrows' => 'on',
  3014. 'navigation_arrow_style' => 'round',
  3015. 'arrows_always_on' => 'true',
  3016. 'hide_arrows' => '200',
  3017. 'hide_arrows_mobile' => '1200',
  3018. 'hide_arrows_on_mobile' => 'on',
  3019. 'arrows_under_hidden' => '600',
  3020. 'hide_arrows_over' => 'off',
  3021. 'arrows_over_hidden' => '0',
  3022. 'leftarrow_align_hor' => 'left',
  3023. 'leftarrow_align_vert' => 'center',
  3024. 'leftarrow_offset_hor' => '30',
  3025. 'leftarrow_offset_vert' => '0',
  3026. 'rightarrow_align_hor' => 'right',
  3027. 'rightarrow_align_vert' => 'center',
  3028. 'rightarrow_offset_hor' => '30',
  3029. 'rightarrow_offset_vert' => '0',
  3030. 'enable_bullets' => 'on',
  3031. 'navigation_bullets_style' => 'round-old',
  3032. 'bullets_space' => '5',
  3033. 'bullets_direction' => 'horizontal',
  3034. 'bullets_always_on' => 'true',
  3035. 'hide_bullets' => '200',
  3036. 'hide_bullets_mobile' => '1200',
  3037. 'hide_bullets_on_mobile' => 'on',
  3038. 'bullets_under_hidden' => '600',
  3039. 'hide_bullets_over' => 'off',
  3040. 'bullets_over_hidden' => '0',
  3041. 'bullets_align_hor' => 'center',
  3042. 'bullets_align_vert' => 'bottom',
  3043. 'bullets_offset_hor' => '0',
  3044. 'bullets_offset_vert' => '30',
  3045. 'enable_thumbnails' => 'off',
  3046. 'thumbnails_padding' => '5',
  3047. 'span_thumbnails_wrapper' => 'off',
  3048. 'thumbnails_wrapper_color' => 'transparent',
  3049. 'thumbnails_wrapper_opacity' => '100',
  3050. 'thumbnails_style' => 'round',
  3051. 'thumb_amount' => '5',
  3052. 'thumbnails_space' => '5',
  3053. 'thumbnail_direction' => 'horizontal',
  3054. 'thumb_width' => '100',
  3055. 'thumb_height' => '50',
  3056. 'thumb_width_min' => '100',
  3057. 'thumbs_always_on' => 'false',
  3058. 'hide_thumbs' => '200',
  3059. 'hide_thumbs_mobile' => '1200',
  3060. 'hide_thumbs_on_mobile' => 'off',
  3061. 'thumbs_under_hidden' => '0',
  3062. 'hide_thumbs_over' => 'off',
  3063. 'thumbs_over_hidden' => '0',
  3064. 'thumbnails_inner_outer' => 'inner',
  3065. 'thumbnails_align_hor' => 'center',
  3066. 'thumbnails_align_vert' => 'bottom',
  3067. 'thumbnails_offset_hor' => '0',
  3068. 'thumbnails_offset_vert' => '20',
  3069. 'enable_tabs' => 'off',
  3070. 'tabs_padding' => '5',
  3071. 'span_tabs_wrapper' => 'off',
  3072. 'tabs_wrapper_color' => 'transparent',
  3073. 'tabs_wrapper_opacity' => '5',
  3074. 'tabs_style' => '',
  3075. 'tabs_amount' => '5',
  3076. 'tabs_space' => '5',
  3077. 'tabs_direction' => 'horizontal',
  3078. 'tabs_width' => '100',
  3079. 'tabs_height' => '50',
  3080. 'tabs_width_min' => '100',
  3081. 'tabs_always_on' => 'false',
  3082. 'hide_tabs' => '200',
  3083. 'hide_tabs_mobile' => '1200',
  3084. 'hide_tabs_on_mobile' => 'off',
  3085. 'tabs_under_hidden' => '0',
  3086. 'hide_tabs_over' => 'off',
  3087. 'tabs_over_hidden' => '0',
  3088. 'tabs_inner_outer' => 'inner',
  3089. 'tabs_align_hor' => 'center',
  3090. 'tabs_align_vert' => 'bottom',
  3091. 'tabs_offset_hor' => '0',
  3092. 'tabs_offset_vert' => '20',
  3093. 'touchenabled' => 'on',
  3094. 'drag_block_vertical' => 'off',
  3095. 'swipe_velocity' => '75',
  3096. 'swipe_min_touches' => '50',
  3097. 'swipe_direction' => 'horizontal',
  3098. 'keyboard_navigation' => 'off',
  3099. 'keyboard_direction' => 'horizontal',
  3100. 'mousescroll_navigation' => 'off',
  3101. 'carousel_infinity' => 'off',
  3102. 'carousel_space' => '0',
  3103. 'carousel_borderr' => '0',
  3104. 'carousel_borderr_unit' => 'px',
  3105. 'carousel_padding_top' => '0',
  3106. 'carousel_padding_bottom' => '0',
  3107. 'carousel_maxitems' => '3',
  3108. 'carousel_stretch' => 'off',
  3109. 'carousel_fadeout' => 'on',
  3110. 'carousel_varyfade' => 'off',
  3111. 'carousel_rotation' => 'off',
  3112. 'carousel_varyrotate' => 'off',
  3113. 'carousel_maxrotation' => '0',
  3114. 'carousel_scale' => 'off',
  3115. 'carousel_varyscale' => 'off',
  3116. 'carousel_scaledown' => '50',
  3117. 'carousel_hposition' => 'center',
  3118. 'carousel_vposition' => 'center',
  3119. 'use_parallax' => 'on',
  3120. 'disable_parallax_mobile' => 'off',
  3121. 'parallax_type' => 'mouse',
  3122. 'parallax_origo' => 'slidercenter',
  3123. 'parallax_speed' => '2000',
  3124. 'parallax_level_1' => '2',
  3125. 'parallax_level_2' => '3',
  3126. 'parallax_level_3' => '4',
  3127. 'parallax_level_4' => '5',
  3128. 'parallax_level_5' => '6',
  3129. 'parallax_level_6' => '7',
  3130. 'parallax_level_7' => '12',
  3131. 'parallax_level_8' => '16',
  3132. 'parallax_level_9' => '10',
  3133. 'parallax_level_10' => '50',
  3134. 'lazy_load_type' => 'smart',
  3135. 'seo_optimization' => 'none',
  3136. 'simplify_ie8_ios4' => 'off',
  3137. 'show_alternative_type' => 'off',
  3138. 'show_alternate_image' => '',
  3139. 'jquery_noconflict' => 'off',
  3140. 'js_to_body' => 'false',
  3141. 'output_type' => 'none',
  3142. 'jquery_debugmode' => 'off',
  3143. 'slider_type' => 'fullwidth',
  3144. 'width' => '1240',
  3145. 'width_notebook' => '1024',
  3146. 'width_tablet' => '778',
  3147. 'width_mobile' => '480',
  3148. 'height' => '600',
  3149. 'height_notebook' => '600',
  3150. 'height_tablet' => '500',
  3151. 'height_mobile' => '400',
  3152. 'enable_custom_size_notebook' => 'on',
  3153. 'enable_custom_size_tablet' => 'on',
  3154. 'enable_custom_size_iphone' => 'on',
  3155. 'main_overflow_hidden' => 'off',
  3156. 'auto_height' => 'off',
  3157. 'min_height' => '',
  3158. 'custom_javascript' => '',
  3159. 'custom_css' => '',
  3160. ),
  3161. );
  3162. $presets[] = array (
  3163. 'settings' =>
  3164. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Screen', 'preset' => 'standardpreset' ),
  3165. 'values' =>
  3166. array (
  3167. 'next_slide_on_window_focus' => 'off',
  3168. 'delay' => '9000',
  3169. 'start_js_after_delay' => '0',
  3170. 'image_source_type' => 'full',
  3171. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3172. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3173. //data.layertype - Layer Type (image,video,html)
  3174. //data.layersettings - Default Settings for Layer
  3175. //data.layer - Layer as jQuery Object
  3176. });',
  3177. 'start_with_slide' => '1',
  3178. 'stop_on_hover' => 'on',
  3179. 'stop_slider' => 'off',
  3180. 'stop_after_loops' => '0',
  3181. 'stop_at_slide' => '1',
  3182. 'shuffle' => 'off',
  3183. 'viewport_start' => 'wait',
  3184. 'viewport_area' => '80',
  3185. 'enable_progressbar' => 'on',
  3186. 'background_dotted_overlay' => 'none',
  3187. 'background_color' => 'transparent',
  3188. 'padding' => '0',
  3189. 'show_background_image' => 'off',
  3190. 'background_image' => '',
  3191. 'bg_fit' => 'cover',
  3192. 'bg_repeat' => 'no-repeat',
  3193. 'bg_position' => 'center center',
  3194. 'position' => 'center',
  3195. 'use_spinner' => '-1',
  3196. 'spinner_color' => '#FFFFFF',
  3197. 'enable_arrows' => 'on',
  3198. 'navigation_arrow_style' => 'round',
  3199. 'arrows_always_on' => 'true',
  3200. 'hide_arrows' => '200',
  3201. 'hide_arrows_mobile' => '1200',
  3202. 'hide_arrows_on_mobile' => 'on',
  3203. 'arrows_under_hidden' => '600',
  3204. 'hide_arrows_over' => 'off',
  3205. 'arrows_over_hidden' => '0',
  3206. 'leftarrow_align_hor' => 'left',
  3207. 'leftarrow_align_vert' => 'center',
  3208. 'leftarrow_offset_hor' => '30',
  3209. 'leftarrow_offset_vert' => '0',
  3210. 'rightarrow_align_hor' => 'right',
  3211. 'rightarrow_align_vert' => 'center',
  3212. 'rightarrow_offset_hor' => '30',
  3213. 'rightarrow_offset_vert' => '0',
  3214. 'enable_bullets' => 'on',
  3215. 'navigation_bullets_style' => 'round-old',
  3216. 'bullets_space' => '5',
  3217. 'bullets_direction' => 'horizontal',
  3218. 'bullets_always_on' => 'true',
  3219. 'hide_bullets' => '200',
  3220. 'hide_bullets_mobile' => '1200',
  3221. 'hide_bullets_on_mobile' => 'on',
  3222. 'bullets_under_hidden' => '600',
  3223. 'hide_bullets_over' => 'off',
  3224. 'bullets_over_hidden' => '0',
  3225. 'bullets_align_hor' => 'center',
  3226. 'bullets_align_vert' => 'bottom',
  3227. 'bullets_offset_hor' => '0',
  3228. 'bullets_offset_vert' => '30',
  3229. 'enable_thumbnails' => 'off',
  3230. 'thumbnails_padding' => '5',
  3231. 'span_thumbnails_wrapper' => 'off',
  3232. 'thumbnails_wrapper_color' => 'transparent',
  3233. 'thumbnails_wrapper_opacity' => '100',
  3234. 'thumbnails_style' => 'round',
  3235. 'thumb_amount' => '5',
  3236. 'thumbnails_space' => '5',
  3237. 'thumbnail_direction' => 'horizontal',
  3238. 'thumb_width' => '100',
  3239. 'thumb_height' => '50',
  3240. 'thumb_width_min' => '100',
  3241. 'thumbs_always_on' => 'false',
  3242. 'hide_thumbs' => '200',
  3243. 'hide_thumbs_mobile' => '1200',
  3244. 'hide_thumbs_on_mobile' => 'off',
  3245. 'thumbs_under_hidden' => '0',
  3246. 'hide_thumbs_over' => 'off',
  3247. 'thumbs_over_hidden' => '0',
  3248. 'thumbnails_inner_outer' => 'inner',
  3249. 'thumbnails_align_hor' => 'center',
  3250. 'thumbnails_align_vert' => 'bottom',
  3251. 'thumbnails_offset_hor' => '0',
  3252. 'thumbnails_offset_vert' => '20',
  3253. 'enable_tabs' => 'off',
  3254. 'tabs_padding' => '5',
  3255. 'span_tabs_wrapper' => 'off',
  3256. 'tabs_wrapper_color' => 'transparent',
  3257. 'tabs_wrapper_opacity' => '5',
  3258. 'tabs_style' => '',
  3259. 'tabs_amount' => '5',
  3260. 'tabs_space' => '5',
  3261. 'tabs_direction' => 'horizontal',
  3262. 'tabs_width' => '100',
  3263. 'tabs_height' => '50',
  3264. 'tabs_width_min' => '100',
  3265. 'tabs_always_on' => 'false',
  3266. 'hide_tabs' => '200',
  3267. 'hide_tabs_mobile' => '1200',
  3268. 'hide_tabs_on_mobile' => 'off',
  3269. 'tabs_under_hidden' => '0',
  3270. 'hide_tabs_over' => 'off',
  3271. 'tabs_over_hidden' => '0',
  3272. 'tabs_inner_outer' => 'inner',
  3273. 'tabs_align_hor' => 'center',
  3274. 'tabs_align_vert' => 'bottom',
  3275. 'tabs_offset_hor' => '0',
  3276. 'tabs_offset_vert' => '20',
  3277. 'touchenabled' => 'on',
  3278. 'drag_block_vertical' => 'off',
  3279. 'swipe_velocity' => '75',
  3280. 'swipe_min_touches' => '50',
  3281. 'swipe_direction' => 'horizontal',
  3282. 'keyboard_navigation' => 'off',
  3283. 'keyboard_direction' => 'horizontal',
  3284. 'mousescroll_navigation' => 'off',
  3285. 'carousel_infinity' => 'off',
  3286. 'carousel_space' => '0',
  3287. 'carousel_borderr' => '0',
  3288. 'carousel_borderr_unit' => 'px',
  3289. 'carousel_padding_top' => '0',
  3290. 'carousel_padding_bottom' => '0',
  3291. 'carousel_maxitems' => '3',
  3292. 'carousel_stretch' => 'off',
  3293. 'carousel_fadeout' => 'on',
  3294. 'carousel_varyfade' => 'off',
  3295. 'carousel_rotation' => 'off',
  3296. 'carousel_varyrotate' => 'off',
  3297. 'carousel_maxrotation' => '0',
  3298. 'carousel_scale' => 'off',
  3299. 'carousel_varyscale' => 'off',
  3300. 'carousel_scaledown' => '50',
  3301. 'carousel_hposition' => 'center',
  3302. 'carousel_vposition' => 'center',
  3303. 'use_parallax' => 'on',
  3304. 'disable_parallax_mobile' => 'off',
  3305. 'parallax_type' => 'mouse',
  3306. 'parallax_origo' => 'slidercenter',
  3307. 'parallax_speed' => '2000',
  3308. 'parallax_level_1' => '2',
  3309. 'parallax_level_2' => '3',
  3310. 'parallax_level_3' => '4',
  3311. 'parallax_level_4' => '5',
  3312. 'parallax_level_5' => '6',
  3313. 'parallax_level_6' => '7',
  3314. 'parallax_level_7' => '12',
  3315. 'parallax_level_8' => '16',
  3316. 'parallax_level_9' => '10',
  3317. 'parallax_level_10' => '50',
  3318. 'lazy_load_type' => 'smart',
  3319. 'seo_optimization' => 'none',
  3320. 'simplify_ie8_ios4' => 'off',
  3321. 'show_alternative_type' => 'off',
  3322. 'show_alternate_image' => '',
  3323. 'jquery_noconflict' => 'off',
  3324. 'js_to_body' => 'false',
  3325. 'output_type' => 'none',
  3326. 'jquery_debugmode' => 'off',
  3327. 'slider_type' => 'fullscreen',
  3328. 'width' => '1240',
  3329. 'width_notebook' => '1024',
  3330. 'width_tablet' => '778',
  3331. 'width_mobile' => '480',
  3332. 'height' => '600',
  3333. 'height_notebook' => '600',
  3334. 'height_tablet' => '500',
  3335. 'height_mobile' => '400',
  3336. 'enable_custom_size_notebook' => 'on',
  3337. 'enable_custom_size_tablet' => 'on',
  3338. 'enable_custom_size_iphone' => 'on',
  3339. 'main_overflow_hidden' => 'off',
  3340. 'auto_height' => 'off',
  3341. 'min_height' => '',
  3342. 'custom_javascript' => '',
  3343. 'custom_css' => '',
  3344. ),
  3345. );
  3346. $presets[] = array (
  3347. 'settings' =>
  3348. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumb_auto1.png', 'name' => 'Thumbs-Bottom-Auto', 'preset' => 'standardpreset' ),
  3349. 'values' =>
  3350. array (
  3351. 'next_slide_on_window_focus' => 'off',
  3352. 'delay' => '9000',
  3353. 'start_js_after_delay' => '0',
  3354. 'image_source_type' => 'full',
  3355. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3356. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3357. //data.layertype - Layer Type (image,video,html)
  3358. //data.layersettings - Default Settings for Layer
  3359. //data.layer - Layer as jQuery Object
  3360. });',
  3361. 'start_with_slide' => '1',
  3362. 'stop_on_hover' => 'off',
  3363. 'stop_slider' => 'on',
  3364. 'stop_after_loops' => '0',
  3365. 'stop_at_slide' => '1',
  3366. 'shuffle' => 'off',
  3367. 'viewport_start' => 'wait',
  3368. 'viewport_area' => '80',
  3369. 'enable_progressbar' => 'off',
  3370. 'background_dotted_overlay' => 'none',
  3371. 'background_color' => 'transparent',
  3372. 'padding' => '0',
  3373. 'show_background_image' => 'off',
  3374. 'background_image' => '',
  3375. 'bg_fit' => 'cover',
  3376. 'bg_repeat' => 'no-repeat',
  3377. 'bg_position' => 'center center',
  3378. 'position' => 'center',
  3379. 'use_spinner' => '-1',
  3380. 'spinner_color' => '#FFFFFF',
  3381. 'enable_arrows' => 'on',
  3382. 'navigation_arrow_style' => 'navbar',
  3383. 'arrows_always_on' => 'false',
  3384. 'hide_arrows' => '200',
  3385. 'hide_arrows_mobile' => '1200',
  3386. 'hide_arrows_on_mobile' => 'on',
  3387. 'arrows_under_hidden' => '600',
  3388. 'hide_arrows_over' => 'off',
  3389. 'arrows_over_hidden' => '0',
  3390. 'leftarrow_align_hor' => 'left',
  3391. 'leftarrow_align_vert' => 'center',
  3392. 'leftarrow_offset_hor' => '30',
  3393. 'leftarrow_offset_vert' => '0',
  3394. 'rightarrow_align_hor' => 'right',
  3395. 'rightarrow_align_vert' => 'center',
  3396. 'rightarrow_offset_hor' => '30',
  3397. 'rightarrow_offset_vert' => '0',
  3398. 'enable_bullets' => 'off',
  3399. 'navigation_bullets_style' => 'round-old',
  3400. 'bullets_space' => '5',
  3401. 'bullets_direction' => 'horizontal',
  3402. 'bullets_always_on' => 'true',
  3403. 'hide_bullets' => '200',
  3404. 'hide_bullets_mobile' => '1200',
  3405. 'hide_bullets_on_mobile' => 'on',
  3406. 'bullets_under_hidden' => '600',
  3407. 'hide_bullets_over' => 'off',
  3408. 'bullets_over_hidden' => '0',
  3409. 'bullets_align_hor' => 'center',
  3410. 'bullets_align_vert' => 'bottom',
  3411. 'bullets_offset_hor' => '0',
  3412. 'bullets_offset_vert' => '30',
  3413. 'enable_thumbnails' => 'on',
  3414. 'thumbnails_padding' => '5',
  3415. 'span_thumbnails_wrapper' => 'off',
  3416. 'thumbnails_wrapper_color' => 'transparent',
  3417. 'thumbnails_wrapper_opacity' => '100',
  3418. 'thumbnails_style' => 'navbar',
  3419. 'thumb_amount' => '5',
  3420. 'thumbnails_space' => '5',
  3421. 'thumbnail_direction' => 'horizontal',
  3422. 'thumb_width' => '50',
  3423. 'thumb_height' => '50',
  3424. 'thumb_width_min' => '50',
  3425. 'thumbs_always_on' => 'false',
  3426. 'hide_thumbs' => '200',
  3427. 'hide_thumbs_mobile' => '1200',
  3428. 'hide_thumbs_on_mobile' => 'off',
  3429. 'thumbs_under_hidden' => '0',
  3430. 'hide_thumbs_over' => 'off',
  3431. 'thumbs_over_hidden' => '0',
  3432. 'thumbnails_inner_outer' => 'inner',
  3433. 'thumbnails_align_hor' => 'center',
  3434. 'thumbnails_align_vert' => 'bottom',
  3435. 'thumbnails_offset_hor' => '0',
  3436. 'thumbnails_offset_vert' => '20',
  3437. 'enable_tabs' => 'off',
  3438. 'tabs_padding' => '5',
  3439. 'span_tabs_wrapper' => 'off',
  3440. 'tabs_wrapper_color' => 'transparent',
  3441. 'tabs_wrapper_opacity' => '5',
  3442. 'tabs_style' => '',
  3443. 'tabs_amount' => '5',
  3444. 'tabs_space' => '5',
  3445. 'tabs_direction' => 'horizontal',
  3446. 'tabs_width' => '100',
  3447. 'tabs_height' => '50',
  3448. 'tabs_width_min' => '100',
  3449. 'tabs_always_on' => 'false',
  3450. 'hide_tabs' => '200',
  3451. 'hide_tabs_mobile' => '1200',
  3452. 'hide_tabs_on_mobile' => 'off',
  3453. 'tabs_under_hidden' => '0',
  3454. 'hide_tabs_over' => 'off',
  3455. 'tabs_over_hidden' => '0',
  3456. 'tabs_inner_outer' => 'inner',
  3457. 'tabs_align_hor' => 'center',
  3458. 'tabs_align_vert' => 'bottom',
  3459. 'tabs_offset_hor' => '0',
  3460. 'tabs_offset_vert' => '20',
  3461. 'touchenabled' => 'on',
  3462. 'drag_block_vertical' => 'off',
  3463. 'swipe_velocity' => '75',
  3464. 'swipe_min_touches' => '50',
  3465. 'swipe_direction' => 'horizontal',
  3466. 'keyboard_navigation' => 'off',
  3467. 'keyboard_direction' => 'horizontal',
  3468. 'mousescroll_navigation' => 'off',
  3469. 'carousel_infinity' => 'off',
  3470. 'carousel_space' => '0',
  3471. 'carousel_borderr' => '0',
  3472. 'carousel_borderr_unit' => 'px',
  3473. 'carousel_padding_top' => '0',
  3474. 'carousel_padding_bottom' => '0',
  3475. 'carousel_maxitems' => '3',
  3476. 'carousel_stretch' => 'off',
  3477. 'carousel_fadeout' => 'on',
  3478. 'carousel_varyfade' => 'off',
  3479. 'carousel_rotation' => 'off',
  3480. 'carousel_varyrotate' => 'off',
  3481. 'carousel_maxrotation' => '0',
  3482. 'carousel_scale' => 'off',
  3483. 'carousel_varyscale' => 'off',
  3484. 'carousel_scaledown' => '50',
  3485. 'carousel_hposition' => 'center',
  3486. 'carousel_vposition' => 'center',
  3487. 'use_parallax' => 'on',
  3488. 'disable_parallax_mobile' => 'off',
  3489. 'parallax_type' => 'mouse',
  3490. 'parallax_origo' => 'slidercenter',
  3491. 'parallax_speed' => '2000',
  3492. 'parallax_level_1' => '2',
  3493. 'parallax_level_2' => '3',
  3494. 'parallax_level_3' => '4',
  3495. 'parallax_level_4' => '5',
  3496. 'parallax_level_5' => '6',
  3497. 'parallax_level_6' => '7',
  3498. 'parallax_level_7' => '12',
  3499. 'parallax_level_8' => '16',
  3500. 'parallax_level_9' => '10',
  3501. 'parallax_level_10' => '50',
  3502. 'lazy_load_type' => 'smart',
  3503. 'seo_optimization' => 'none',
  3504. 'simplify_ie8_ios4' => 'off',
  3505. 'show_alternative_type' => 'off',
  3506. 'show_alternate_image' => '',
  3507. 'jquery_noconflict' => 'off',
  3508. 'js_to_body' => 'false',
  3509. 'output_type' => 'none',
  3510. 'jquery_debugmode' => 'off',
  3511. 'slider_type' => 'auto',
  3512. 'width' => '1240',
  3513. 'width_notebook' => '1024',
  3514. 'width_tablet' => '778',
  3515. 'width_mobile' => '480',
  3516. 'height' => '600',
  3517. 'height_notebook' => '600',
  3518. 'height_tablet' => '500',
  3519. 'height_mobile' => '400',
  3520. 'enable_custom_size_notebook' => 'on',
  3521. 'enable_custom_size_tablet' => 'on',
  3522. 'enable_custom_size_iphone' => 'on',
  3523. 'main_overflow_hidden' => 'off',
  3524. 'auto_height' => 'off',
  3525. 'min_height' => '',
  3526. 'custom_javascript' => '',
  3527. 'custom_css' => '',
  3528. ),
  3529. );
  3530. $presets[] = array (
  3531. 'settings' =>
  3532. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_left_auto.png', 'name' => 'Thumbs-Left-Auto', 'preset' => 'standardpreset' ),
  3533. 'values' =>
  3534. array (
  3535. 'next_slide_on_window_focus' => 'off',
  3536. 'delay' => '9000',
  3537. 'start_js_after_delay' => '0',
  3538. 'image_source_type' => 'full',
  3539. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3540. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3541. //data.layertype - Layer Type (image,video,html)
  3542. //data.layersettings - Default Settings for Layer
  3543. //data.layer - Layer as jQuery Object
  3544. });',
  3545. 'start_with_slide' => '1',
  3546. 'stop_on_hover' => 'off',
  3547. 'stop_slider' => 'on',
  3548. 'stop_after_loops' => '0',
  3549. 'stop_at_slide' => '1',
  3550. 'shuffle' => 'off',
  3551. 'viewport_start' => 'wait',
  3552. 'viewport_area' => '80',
  3553. 'enable_progressbar' => 'off',
  3554. 'background_dotted_overlay' => 'none',
  3555. 'background_color' => 'transparent',
  3556. 'padding' => '0',
  3557. 'show_background_image' => 'off',
  3558. 'background_image' => '',
  3559. 'bg_fit' => 'cover',
  3560. 'bg_repeat' => 'no-repeat',
  3561. 'bg_position' => 'center center',
  3562. 'position' => 'center',
  3563. 'use_spinner' => '-1',
  3564. 'spinner_color' => '#FFFFFF',
  3565. 'enable_arrows' => 'on',
  3566. 'navigation_arrow_style' => 'navbar',
  3567. 'arrows_always_on' => 'false',
  3568. 'hide_arrows' => '200',
  3569. 'hide_arrows_mobile' => '1200',
  3570. 'hide_arrows_on_mobile' => 'off',
  3571. 'arrows_under_hidden' => '600',
  3572. 'hide_arrows_over' => 'off',
  3573. 'arrows_over_hidden' => '0',
  3574. 'leftarrow_align_hor' => 'right',
  3575. 'leftarrow_align_vert' => 'bottom',
  3576. 'leftarrow_offset_hor' => '40',
  3577. 'leftarrow_offset_vert' => '0',
  3578. 'rightarrow_align_hor' => 'right',
  3579. 'rightarrow_align_vert' => 'bottom',
  3580. 'rightarrow_offset_hor' => '0',
  3581. 'rightarrow_offset_vert' => '0',
  3582. 'enable_bullets' => 'off',
  3583. 'navigation_bullets_style' => 'round-old',
  3584. 'bullets_space' => '5',
  3585. 'bullets_direction' => 'horizontal',
  3586. 'bullets_always_on' => 'true',
  3587. 'hide_bullets' => '200',
  3588. 'hide_bullets_mobile' => '1200',
  3589. 'hide_bullets_on_mobile' => 'on',
  3590. 'bullets_under_hidden' => '600',
  3591. 'hide_bullets_over' => 'off',
  3592. 'bullets_over_hidden' => '0',
  3593. 'bullets_align_hor' => 'center',
  3594. 'bullets_align_vert' => 'bottom',
  3595. 'bullets_offset_hor' => '0',
  3596. 'bullets_offset_vert' => '30',
  3597. 'enable_thumbnails' => 'on',
  3598. 'thumbnails_padding' => '5',
  3599. 'span_thumbnails_wrapper' => 'off',
  3600. 'thumbnails_wrapper_color' => 'transparent',
  3601. 'thumbnails_wrapper_opacity' => '100',
  3602. 'thumbnails_style' => 'navbar',
  3603. 'thumb_amount' => '5',
  3604. 'thumbnails_space' => '5',
  3605. 'thumbnail_direction' => 'vertical',
  3606. 'thumb_width' => '50',
  3607. 'thumb_height' => '50',
  3608. 'thumb_width_min' => '50',
  3609. 'thumbs_always_on' => 'false',
  3610. 'hide_thumbs' => '200',
  3611. 'hide_thumbs_mobile' => '1200',
  3612. 'hide_thumbs_on_mobile' => 'on',
  3613. 'thumbs_under_hidden' => '778',
  3614. 'hide_thumbs_over' => 'off',
  3615. 'thumbs_over_hidden' => '0',
  3616. 'thumbnails_inner_outer' => 'inner',
  3617. 'thumbnails_align_hor' => 'left',
  3618. 'thumbnails_align_vert' => 'center',
  3619. 'thumbnails_offset_hor' => '20',
  3620. 'thumbnails_offset_vert' => '0',
  3621. 'enable_tabs' => 'off',
  3622. 'tabs_padding' => '5',
  3623. 'span_tabs_wrapper' => 'off',
  3624. 'tabs_wrapper_color' => 'transparent',
  3625. 'tabs_wrapper_opacity' => '5',
  3626. 'tabs_style' => '',
  3627. 'tabs_amount' => '5',
  3628. 'tabs_space' => '5',
  3629. 'tabs_direction' => 'horizontal',
  3630. 'tabs_width' => '100',
  3631. 'tabs_height' => '50',
  3632. 'tabs_width_min' => '100',
  3633. 'tabs_always_on' => 'false',
  3634. 'hide_tabs' => '200',
  3635. 'hide_tabs_mobile' => '1200',
  3636. 'hide_tabs_on_mobile' => 'off',
  3637. 'tabs_under_hidden' => '0',
  3638. 'hide_tabs_over' => 'off',
  3639. 'tabs_over_hidden' => '0',
  3640. 'tabs_inner_outer' => 'inner',
  3641. 'tabs_align_hor' => 'center',
  3642. 'tabs_align_vert' => 'bottom',
  3643. 'tabs_offset_hor' => '0',
  3644. 'tabs_offset_vert' => '20',
  3645. 'touchenabled' => 'on',
  3646. 'drag_block_vertical' => 'off',
  3647. 'swipe_velocity' => '75',
  3648. 'swipe_min_touches' => '50',
  3649. 'swipe_direction' => 'horizontal',
  3650. 'keyboard_navigation' => 'off',
  3651. 'keyboard_direction' => 'horizontal',
  3652. 'mousescroll_navigation' => 'off',
  3653. 'carousel_infinity' => 'off',
  3654. 'carousel_space' => '0',
  3655. 'carousel_borderr' => '0',
  3656. 'carousel_borderr_unit' => 'px',
  3657. 'carousel_padding_top' => '0',
  3658. 'carousel_padding_bottom' => '0',
  3659. 'carousel_maxitems' => '3',
  3660. 'carousel_stretch' => 'off',
  3661. 'carousel_fadeout' => 'on',
  3662. 'carousel_varyfade' => 'off',
  3663. 'carousel_rotation' => 'off',
  3664. 'carousel_varyrotate' => 'off',
  3665. 'carousel_maxrotation' => '0',
  3666. 'carousel_scale' => 'off',
  3667. 'carousel_varyscale' => 'off',
  3668. 'carousel_scaledown' => '50',
  3669. 'carousel_hposition' => 'center',
  3670. 'carousel_vposition' => 'center',
  3671. 'use_parallax' => 'on',
  3672. 'disable_parallax_mobile' => 'off',
  3673. 'parallax_type' => 'mouse',
  3674. 'parallax_origo' => 'slidercenter',
  3675. 'parallax_speed' => '2000',
  3676. 'parallax_level_1' => '2',
  3677. 'parallax_level_2' => '3',
  3678. 'parallax_level_3' => '4',
  3679. 'parallax_level_4' => '5',
  3680. 'parallax_level_5' => '6',
  3681. 'parallax_level_6' => '7',
  3682. 'parallax_level_7' => '12',
  3683. 'parallax_level_8' => '16',
  3684. 'parallax_level_9' => '10',
  3685. 'parallax_level_10' => '50',
  3686. 'lazy_load_type' => 'smart',
  3687. 'seo_optimization' => 'none',
  3688. 'simplify_ie8_ios4' => 'off',
  3689. 'show_alternative_type' => 'off',
  3690. 'show_alternate_image' => '',
  3691. 'jquery_noconflict' => 'off',
  3692. 'js_to_body' => 'false',
  3693. 'output_type' => 'none',
  3694. 'jquery_debugmode' => 'off',
  3695. 'slider_type' => 'auto',
  3696. 'width' => '1240',
  3697. 'width_notebook' => '1024',
  3698. 'width_tablet' => '778',
  3699. 'width_mobile' => '480',
  3700. 'height' => '600',
  3701. 'height_notebook' => '600',
  3702. 'height_tablet' => '500',
  3703. 'height_mobile' => '400',
  3704. 'enable_custom_size_notebook' => 'on',
  3705. 'enable_custom_size_tablet' => 'on',
  3706. 'enable_custom_size_iphone' => 'on',
  3707. 'main_overflow_hidden' => 'off',
  3708. 'auto_height' => 'off',
  3709. 'min_height' => '',
  3710. 'custom_javascript' => '',
  3711. 'custom_css' => '',
  3712. ),
  3713. );
  3714. $presets[] = array (
  3715. 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_right_auto.png', 'name' => 'Thumbs-Right-Auto', 'preset' => 'standardpreset' ),
  3716. 'values' =>
  3717. array (
  3718. 'next_slide_on_window_focus' => 'off',
  3719. 'delay' => '9000',
  3720. 'start_js_after_delay' => '0',
  3721. 'image_source_type' => 'full',
  3722. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3723. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3724. //data.layertype - Layer Type (image,video,html)
  3725. //data.layersettings - Default Settings for Layer
  3726. //data.layer - Layer as jQuery Object
  3727. });',
  3728. 'start_with_slide' => '1',
  3729. 'stop_on_hover' => 'off',
  3730. 'stop_slider' => 'on',
  3731. 'stop_after_loops' => '0',
  3732. 'stop_at_slide' => '1',
  3733. 'shuffle' => 'off',
  3734. 'viewport_start' => 'wait',
  3735. 'viewport_area' => '80',
  3736. 'enable_progressbar' => 'off',
  3737. 'background_dotted_overlay' => 'none',
  3738. 'background_color' => 'transparent',
  3739. 'padding' => '0',
  3740. 'show_background_image' => 'off',
  3741. 'background_image' => '',
  3742. 'bg_fit' => 'cover',
  3743. 'bg_repeat' => 'no-repeat',
  3744. 'bg_position' => 'center center',
  3745. 'position' => 'center',
  3746. 'use_spinner' => '-1',
  3747. 'spinner_color' => '#FFFFFF',
  3748. 'enable_arrows' => 'on',
  3749. 'navigation_arrow_style' => 'navbar',
  3750. 'arrows_always_on' => 'false',
  3751. 'hide_arrows' => '200',
  3752. 'hide_arrows_mobile' => '1200',
  3753. 'hide_arrows_on_mobile' => 'off',
  3754. 'arrows_under_hidden' => '600',
  3755. 'hide_arrows_over' => 'off',
  3756. 'arrows_over_hidden' => '0',
  3757. 'leftarrow_align_hor' => 'left',
  3758. 'leftarrow_align_vert' => 'bottom',
  3759. 'leftarrow_offset_hor' => '0',
  3760. 'leftarrow_offset_vert' => '0',
  3761. 'rightarrow_align_hor' => 'left',
  3762. 'rightarrow_align_vert' => 'bottom',
  3763. 'rightarrow_offset_hor' => '40',
  3764. 'rightarrow_offset_vert' => '0',
  3765. 'enable_bullets' => 'off',
  3766. 'navigation_bullets_style' => 'round-old',
  3767. 'bullets_space' => '5',
  3768. 'bullets_direction' => 'horizontal',
  3769. 'bullets_always_on' => 'true',
  3770. 'hide_bullets' => '200',
  3771. 'hide_bullets_mobile' => '1200',
  3772. 'hide_bullets_on_mobile' => 'on',
  3773. 'bullets_under_hidden' => '600',
  3774. 'hide_bullets_over' => 'off',
  3775. 'bullets_over_hidden' => '0',
  3776. 'bullets_align_hor' => 'center',
  3777. 'bullets_align_vert' => 'bottom',
  3778. 'bullets_offset_hor' => '0',
  3779. 'bullets_offset_vert' => '30',
  3780. 'enable_thumbnails' => 'on',
  3781. 'thumbnails_padding' => '5',
  3782. 'span_thumbnails_wrapper' => 'off',
  3783. 'thumbnails_wrapper_color' => 'transparent',
  3784. 'thumbnails_wrapper_opacity' => '100',
  3785. 'thumbnails_style' => 'navbar',
  3786. 'thumb_amount' => '5',
  3787. 'thumbnails_space' => '5',
  3788. 'thumbnail_direction' => 'vertical',
  3789. 'thumb_width' => '50',
  3790. 'thumb_height' => '50',
  3791. 'thumb_width_min' => '50',
  3792. 'thumbs_always_on' => 'false',
  3793. 'hide_thumbs' => '200',
  3794. 'hide_thumbs_mobile' => '1200',
  3795. 'hide_thumbs_on_mobile' => 'on',
  3796. 'thumbs_under_hidden' => '778',
  3797. 'hide_thumbs_over' => 'off',
  3798. 'thumbs_over_hidden' => '0',
  3799. 'thumbnails_inner_outer' => 'inner',
  3800. 'thumbnails_align_hor' => 'right',
  3801. 'thumbnails_align_vert' => 'center',
  3802. 'thumbnails_offset_hor' => '20',
  3803. 'thumbnails_offset_vert' => '0',
  3804. 'enable_tabs' => 'off',
  3805. 'tabs_padding' => '5',
  3806. 'span_tabs_wrapper' => 'off',
  3807. 'tabs_wrapper_color' => 'transparent',
  3808. 'tabs_wrapper_opacity' => '5',
  3809. 'tabs_style' => '',
  3810. 'tabs_amount' => '5',
  3811. 'tabs_space' => '5',
  3812. 'tabs_direction' => 'horizontal',
  3813. 'tabs_width' => '100',
  3814. 'tabs_height' => '50',
  3815. 'tabs_width_min' => '100',
  3816. 'tabs_always_on' => 'false',
  3817. 'hide_tabs' => '200',
  3818. 'hide_tabs_mobile' => '1200',
  3819. 'hide_tabs_on_mobile' => 'off',
  3820. 'tabs_under_hidden' => '0',
  3821. 'hide_tabs_over' => 'off',
  3822. 'tabs_over_hidden' => '0',
  3823. 'tabs_inner_outer' => 'inner',
  3824. 'tabs_align_hor' => 'center',
  3825. 'tabs_align_vert' => 'bottom',
  3826. 'tabs_offset_hor' => '0',
  3827. 'tabs_offset_vert' => '20',
  3828. 'touchenabled' => 'on',
  3829. 'drag_block_vertical' => 'off',
  3830. 'swipe_velocity' => '75',
  3831. 'swipe_min_touches' => '50',
  3832. 'swipe_direction' => 'horizontal',
  3833. 'keyboard_navigation' => 'off',
  3834. 'keyboard_direction' => 'horizontal',
  3835. 'mousescroll_navigation' => 'off',
  3836. 'carousel_infinity' => 'off',
  3837. 'carousel_space' => '0',
  3838. 'carousel_borderr' => '0',
  3839. 'carousel_borderr_unit' => 'px',
  3840. 'carousel_padding_top' => '0',
  3841. 'carousel_padding_bottom' => '0',
  3842. 'carousel_maxitems' => '3',
  3843. 'carousel_stretch' => 'off',
  3844. 'carousel_fadeout' => 'on',
  3845. 'carousel_varyfade' => 'off',
  3846. 'carousel_rotation' => 'off',
  3847. 'carousel_varyrotate' => 'off',
  3848. 'carousel_maxrotation' => '0',
  3849. 'carousel_scale' => 'off',
  3850. 'carousel_varyscale' => 'off',
  3851. 'carousel_scaledown' => '50',
  3852. 'carousel_hposition' => 'center',
  3853. 'carousel_vposition' => 'center',
  3854. 'use_parallax' => 'on',
  3855. 'disable_parallax_mobile' => 'off',
  3856. 'parallax_type' => 'mouse',
  3857. 'parallax_origo' => 'slidercenter',
  3858. 'parallax_speed' => '2000',
  3859. 'parallax_level_1' => '2',
  3860. 'parallax_level_2' => '3',
  3861. 'parallax_level_3' => '4',
  3862. 'parallax_level_4' => '5',
  3863. 'parallax_level_5' => '6',
  3864. 'parallax_level_6' => '7',
  3865. 'parallax_level_7' => '12',
  3866. 'parallax_level_8' => '16',
  3867. 'parallax_level_9' => '10',
  3868. 'parallax_level_10' => '50',
  3869. 'lazy_load_type' => 'smart',
  3870. 'seo_optimization' => 'none',
  3871. 'simplify_ie8_ios4' => 'off',
  3872. 'show_alternative_type' => 'off',
  3873. 'show_alternate_image' => '',
  3874. 'jquery_noconflict' => 'off',
  3875. 'js_to_body' => 'false',
  3876. 'output_type' => 'none',
  3877. 'jquery_debugmode' => 'off',
  3878. 'slider_type' => 'auto',
  3879. 'width' => '1240',
  3880. 'width_notebook' => '1024',
  3881. 'width_tablet' => '778',
  3882. 'width_mobile' => '480',
  3883. 'height' => '600',
  3884. 'height_notebook' => '600',
  3885. 'height_tablet' => '500',
  3886. 'height_mobile' => '400',
  3887. 'enable_custom_size_notebook' => 'on',
  3888. 'enable_custom_size_tablet' => 'on',
  3889. 'enable_custom_size_iphone' => 'on',
  3890. 'main_overflow_hidden' => 'off',
  3891. 'auto_height' => 'off',
  3892. 'min_height' => '',
  3893. 'custom_javascript' => '',
  3894. 'custom_css' => '',
  3895. ),
  3896. );
  3897. $presets[] = array (
  3898. 'settings' =>
  3899. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/scroll_fullscreen.png', 'name' => 'Vertical-Bullet-Full-Screen', 'preset' => 'standardpreset' ),
  3900. 'values' =>
  3901. array (
  3902. 'next_slide_on_window_focus' => 'off',
  3903. 'delay' => '9000',
  3904. 'start_js_after_delay' => '0',
  3905. 'image_source_type' => 'full',
  3906. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  3907. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  3908. //data.layertype - Layer Type (image,video,html)
  3909. //data.layersettings - Default Settings for Layer
  3910. //data.layer - Layer as jQuery Object
  3911. });',
  3912. 'start_with_slide' => '1',
  3913. 'stop_on_hover' => 'off',
  3914. 'stop_slider' => 'on',
  3915. 'stop_after_loops' => '0',
  3916. 'stop_at_slide' => '1',
  3917. 'shuffle' => 'off',
  3918. 'viewport_start' => 'wait',
  3919. 'viewport_area' => '80',
  3920. 'enable_progressbar' => 'off',
  3921. 'background_dotted_overlay' => 'none',
  3922. 'background_color' => 'transparent',
  3923. 'padding' => '0',
  3924. 'show_background_image' => 'off',
  3925. 'background_image' => '',
  3926. 'bg_fit' => 'cover',
  3927. 'bg_repeat' => 'no-repeat',
  3928. 'bg_position' => 'center center',
  3929. 'position' => 'center',
  3930. 'use_spinner' => '-1',
  3931. 'spinner_color' => '#FFFFFF',
  3932. 'enable_arrows' => 'off',
  3933. 'navigation_arrow_style' => 'navbar',
  3934. 'arrows_always_on' => 'false',
  3935. 'hide_arrows' => '200',
  3936. 'hide_arrows_mobile' => '1200',
  3937. 'hide_arrows_on_mobile' => 'off',
  3938. 'arrows_under_hidden' => '600',
  3939. 'hide_arrows_over' => 'off',
  3940. 'arrows_over_hidden' => '0',
  3941. 'leftarrow_align_hor' => 'left',
  3942. 'leftarrow_align_vert' => 'bottom',
  3943. 'leftarrow_offset_hor' => '0',
  3944. 'leftarrow_offset_vert' => '0',
  3945. 'rightarrow_align_hor' => 'left',
  3946. 'rightarrow_align_vert' => 'bottom',
  3947. 'rightarrow_offset_hor' => '40',
  3948. 'rightarrow_offset_vert' => '0',
  3949. 'enable_bullets' => 'on',
  3950. 'navigation_bullets_style' => 'round-old',
  3951. 'bullets_space' => '5',
  3952. 'bullets_direction' => 'vertical',
  3953. 'bullets_always_on' => 'false',
  3954. 'hide_bullets' => '200',
  3955. 'hide_bullets_mobile' => '1200',
  3956. 'hide_bullets_on_mobile' => 'on',
  3957. 'bullets_under_hidden' => '600',
  3958. 'hide_bullets_over' => 'off',
  3959. 'bullets_over_hidden' => '0',
  3960. 'bullets_align_hor' => 'right',
  3961. 'bullets_align_vert' => 'center',
  3962. 'bullets_offset_hor' => '30',
  3963. 'bullets_offset_vert' => '0',
  3964. 'enable_thumbnails' => 'off',
  3965. 'thumbnails_padding' => '5',
  3966. 'span_thumbnails_wrapper' => 'off',
  3967. 'thumbnails_wrapper_color' => 'transparent',
  3968. 'thumbnails_wrapper_opacity' => '100',
  3969. 'thumbnails_style' => 'navbar',
  3970. 'thumb_amount' => '5',
  3971. 'thumbnails_space' => '5',
  3972. 'thumbnail_direction' => 'vertical',
  3973. 'thumb_width' => '50',
  3974. 'thumb_height' => '50',
  3975. 'thumb_width_min' => '50',
  3976. 'thumbs_always_on' => 'false',
  3977. 'hide_thumbs' => '200',
  3978. 'hide_thumbs_mobile' => '1200',
  3979. 'hide_thumbs_on_mobile' => 'on',
  3980. 'thumbs_under_hidden' => '778',
  3981. 'hide_thumbs_over' => 'off',
  3982. 'thumbs_over_hidden' => '0',
  3983. 'thumbnails_inner_outer' => 'inner',
  3984. 'thumbnails_align_hor' => 'right',
  3985. 'thumbnails_align_vert' => 'center',
  3986. 'thumbnails_offset_hor' => '20',
  3987. 'thumbnails_offset_vert' => '0',
  3988. 'enable_tabs' => 'off',
  3989. 'tabs_padding' => '5',
  3990. 'span_tabs_wrapper' => 'off',
  3991. 'tabs_wrapper_color' => 'transparent',
  3992. 'tabs_wrapper_opacity' => '5',
  3993. 'tabs_style' => '',
  3994. 'tabs_amount' => '5',
  3995. 'tabs_space' => '5',
  3996. 'tabs_direction' => 'horizontal',
  3997. 'tabs_width' => '100',
  3998. 'tabs_height' => '50',
  3999. 'tabs_width_min' => '100',
  4000. 'tabs_always_on' => 'false',
  4001. 'hide_tabs' => '200',
  4002. 'hide_tabs_mobile' => '1200',
  4003. 'hide_tabs_on_mobile' => 'off',
  4004. 'tabs_under_hidden' => '0',
  4005. 'hide_tabs_over' => 'off',
  4006. 'tabs_over_hidden' => '0',
  4007. 'tabs_inner_outer' => 'inner',
  4008. 'tabs_align_hor' => 'center',
  4009. 'tabs_align_vert' => 'bottom',
  4010. 'tabs_offset_hor' => '0',
  4011. 'tabs_offset_vert' => '20',
  4012. 'touchenabled' => 'on',
  4013. 'drag_block_vertical' => 'off',
  4014. 'swipe_velocity' => '75',
  4015. 'swipe_min_touches' => '50',
  4016. 'swipe_direction' => 'horizontal',
  4017. 'keyboard_navigation' => 'off',
  4018. 'keyboard_direction' => 'horizontal',
  4019. 'mousescroll_navigation' => 'off',
  4020. 'carousel_infinity' => 'off',
  4021. 'carousel_space' => '0',
  4022. 'carousel_borderr' => '0',
  4023. 'carousel_borderr_unit' => 'px',
  4024. 'carousel_padding_top' => '0',
  4025. 'carousel_padding_bottom' => '0',
  4026. 'carousel_maxitems' => '3',
  4027. 'carousel_stretch' => 'off',
  4028. 'carousel_fadeout' => 'on',
  4029. 'carousel_varyfade' => 'off',
  4030. 'carousel_rotation' => 'off',
  4031. 'carousel_varyrotate' => 'off',
  4032. 'carousel_maxrotation' => '0',
  4033. 'carousel_scale' => 'off',
  4034. 'carousel_varyscale' => 'off',
  4035. 'carousel_scaledown' => '50',
  4036. 'carousel_hposition' => 'center',
  4037. 'carousel_vposition' => 'center',
  4038. 'use_parallax' => 'on',
  4039. 'disable_parallax_mobile' => 'off',
  4040. 'parallax_type' => 'mouse',
  4041. 'parallax_origo' => 'slidercenter',
  4042. 'parallax_speed' => '2000',
  4043. 'parallax_level_1' => '2',
  4044. 'parallax_level_2' => '3',
  4045. 'parallax_level_3' => '4',
  4046. 'parallax_level_4' => '5',
  4047. 'parallax_level_5' => '6',
  4048. 'parallax_level_6' => '7',
  4049. 'parallax_level_7' => '12',
  4050. 'parallax_level_8' => '16',
  4051. 'parallax_level_9' => '10',
  4052. 'parallax_level_10' => '50',
  4053. 'lazy_load_type' => 'smart',
  4054. 'seo_optimization' => 'none',
  4055. 'simplify_ie8_ios4' => 'off',
  4056. 'show_alternative_type' => 'off',
  4057. 'show_alternate_image' => '',
  4058. 'jquery_noconflict' => 'off',
  4059. 'js_to_body' => 'false',
  4060. 'output_type' => 'none',
  4061. 'jquery_debugmode' => 'off',
  4062. 'slider_type' => 'fullscreen',
  4063. 'width' => '1240',
  4064. 'width_notebook' => '1024',
  4065. 'width_tablet' => '778',
  4066. 'width_mobile' => '480',
  4067. 'height' => '600',
  4068. 'height_notebook' => '600',
  4069. 'height_tablet' => '500',
  4070. 'height_mobile' => '400',
  4071. 'enable_custom_size_notebook' => 'on',
  4072. 'enable_custom_size_tablet' => 'on',
  4073. 'enable_custom_size_iphone' => 'on',
  4074. 'main_overflow_hidden' => 'off',
  4075. 'auto_height' => 'off',
  4076. 'min_height' => '',
  4077. 'custom_javascript' => '',
  4078. 'custom_css' => '',
  4079. ),
  4080. );
  4081. $presets[] = array (
  4082. 'settings' =>
  4083. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Screen', 'preset' => 'heropreset' ),
  4084. 'values' =>
  4085. array (
  4086. 'next_slide_on_window_focus' => 'off',
  4087. 'delay' => '9000',
  4088. 'start_js_after_delay' => '0',
  4089. 'image_source_type' => 'full',
  4090. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4091. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4092. //data.layertype - Layer Type (image,video,html)
  4093. //data.layersettings - Default Settings for Layer
  4094. //data.layer - Layer as jQuery Object
  4095. });',
  4096. 'start_with_slide' => '1',
  4097. 'stop_on_hover' => 'off',
  4098. 'stop_slider' => 'on',
  4099. 'stop_after_loops' => '0',
  4100. 'stop_at_slide' => '1',
  4101. 'shuffle' => 'off',
  4102. 'viewport_start' => 'wait',
  4103. 'viewport_area' => '80',
  4104. 'enable_progressbar' => 'off',
  4105. 'background_dotted_overlay' => 'none',
  4106. 'background_color' => 'transparent',
  4107. 'padding' => '0',
  4108. 'show_background_image' => 'off',
  4109. 'background_image' => '',
  4110. 'bg_fit' => 'cover',
  4111. 'bg_repeat' => 'no-repeat',
  4112. 'bg_position' => 'center center',
  4113. 'position' => 'center',
  4114. 'use_spinner' => '-1',
  4115. 'spinner_color' => '#FFFFFF',
  4116. 'enable_arrows' => 'off',
  4117. 'navigation_arrow_style' => 'navbar',
  4118. 'arrows_always_on' => 'false',
  4119. 'hide_arrows' => '200',
  4120. 'hide_arrows_mobile' => '1200',
  4121. 'hide_arrows_on_mobile' => 'off',
  4122. 'arrows_under_hidden' => '600',
  4123. 'hide_arrows_over' => 'off',
  4124. 'arrows_over_hidden' => '0',
  4125. 'leftarrow_align_hor' => 'left',
  4126. 'leftarrow_align_vert' => 'bottom',
  4127. 'leftarrow_offset_hor' => '0',
  4128. 'leftarrow_offset_vert' => '0',
  4129. 'rightarrow_align_hor' => 'left',
  4130. 'rightarrow_align_vert' => 'bottom',
  4131. 'rightarrow_offset_hor' => '40',
  4132. 'rightarrow_offset_vert' => '0',
  4133. 'enable_bullets' => 'on',
  4134. 'navigation_bullets_style' => 'round-old',
  4135. 'bullets_space' => '5',
  4136. 'bullets_direction' => 'vertical',
  4137. 'bullets_always_on' => 'true',
  4138. 'hide_bullets' => '200',
  4139. 'hide_bullets_mobile' => '1200',
  4140. 'hide_bullets_on_mobile' => 'on',
  4141. 'bullets_under_hidden' => '600',
  4142. 'hide_bullets_over' => 'off',
  4143. 'bullets_over_hidden' => '0',
  4144. 'bullets_align_hor' => 'right',
  4145. 'bullets_align_vert' => 'center',
  4146. 'bullets_offset_hor' => '30',
  4147. 'bullets_offset_vert' => '0',
  4148. 'enable_thumbnails' => 'off',
  4149. 'thumbnails_padding' => '5',
  4150. 'span_thumbnails_wrapper' => 'off',
  4151. 'thumbnails_wrapper_color' => 'transparent',
  4152. 'thumbnails_wrapper_opacity' => '100',
  4153. 'thumbnails_style' => 'navbar',
  4154. 'thumb_amount' => '5',
  4155. 'thumbnails_space' => '5',
  4156. 'thumbnail_direction' => 'vertical',
  4157. 'thumb_width' => '50',
  4158. 'thumb_height' => '50',
  4159. 'thumb_width_min' => '50',
  4160. 'thumbs_always_on' => 'false',
  4161. 'hide_thumbs' => '200',
  4162. 'hide_thumbs_mobile' => '1200',
  4163. 'hide_thumbs_on_mobile' => 'on',
  4164. 'thumbs_under_hidden' => '778',
  4165. 'hide_thumbs_over' => 'off',
  4166. 'thumbs_over_hidden' => '0',
  4167. 'thumbnails_inner_outer' => 'inner',
  4168. 'thumbnails_align_hor' => 'right',
  4169. 'thumbnails_align_vert' => 'center',
  4170. 'thumbnails_offset_hor' => '20',
  4171. 'thumbnails_offset_vert' => '0',
  4172. 'enable_tabs' => 'off',
  4173. 'tabs_padding' => '5',
  4174. 'span_tabs_wrapper' => 'off',
  4175. 'tabs_wrapper_color' => 'transparent',
  4176. 'tabs_wrapper_opacity' => '5',
  4177. 'tabs_style' => '',
  4178. 'tabs_amount' => '5',
  4179. 'tabs_space' => '5',
  4180. 'tabs_direction' => 'horizontal',
  4181. 'tabs_width' => '100',
  4182. 'tabs_height' => '50',
  4183. 'tabs_width_min' => '100',
  4184. 'tabs_always_on' => 'false',
  4185. 'hide_tabs' => '200',
  4186. 'hide_tabs_mobile' => '1200',
  4187. 'hide_tabs_on_mobile' => 'off',
  4188. 'tabs_under_hidden' => '0',
  4189. 'hide_tabs_over' => 'off',
  4190. 'tabs_over_hidden' => '0',
  4191. 'tabs_inner_outer' => 'inner',
  4192. 'tabs_align_hor' => 'center',
  4193. 'tabs_align_vert' => 'bottom',
  4194. 'tabs_offset_hor' => '0',
  4195. 'tabs_offset_vert' => '20',
  4196. 'touchenabled' => 'on',
  4197. 'drag_block_vertical' => 'off',
  4198. 'swipe_velocity' => '75',
  4199. 'swipe_min_touches' => '50',
  4200. 'swipe_direction' => 'horizontal',
  4201. 'keyboard_navigation' => 'off',
  4202. 'keyboard_direction' => 'horizontal',
  4203. 'mousescroll_navigation' => 'off',
  4204. 'carousel_infinity' => 'off',
  4205. 'carousel_space' => '0',
  4206. 'carousel_borderr' => '0',
  4207. 'carousel_borderr_unit' => 'px',
  4208. 'carousel_padding_top' => '0',
  4209. 'carousel_padding_bottom' => '0',
  4210. 'carousel_maxitems' => '3',
  4211. 'carousel_stretch' => 'off',
  4212. 'carousel_fadeout' => 'on',
  4213. 'carousel_varyfade' => 'off',
  4214. 'carousel_rotation' => 'off',
  4215. 'carousel_varyrotate' => 'off',
  4216. 'carousel_maxrotation' => '0',
  4217. 'carousel_scale' => 'off',
  4218. 'carousel_varyscale' => 'off',
  4219. 'carousel_scaledown' => '50',
  4220. 'carousel_hposition' => 'center',
  4221. 'carousel_vposition' => 'center',
  4222. 'use_parallax' => 'on',
  4223. 'disable_parallax_mobile' => 'off',
  4224. 'parallax_type' => 'mouse',
  4225. 'parallax_origo' => 'slidercenter',
  4226. 'parallax_speed' => '2000',
  4227. 'parallax_level_1' => '2',
  4228. 'parallax_level_2' => '3',
  4229. 'parallax_level_3' => '4',
  4230. 'parallax_level_4' => '5',
  4231. 'parallax_level_5' => '6',
  4232. 'parallax_level_6' => '7',
  4233. 'parallax_level_7' => '12',
  4234. 'parallax_level_8' => '16',
  4235. 'parallax_level_9' => '10',
  4236. 'parallax_level_10' => '50',
  4237. 'lazy_load_type' => 'smart',
  4238. 'seo_optimization' => 'none',
  4239. 'simplify_ie8_ios4' => 'off',
  4240. 'show_alternative_type' => 'off',
  4241. 'show_alternate_image' => '',
  4242. 'jquery_noconflict' => 'off',
  4243. 'js_to_body' => 'false',
  4244. 'output_type' => 'none',
  4245. 'jquery_debugmode' => 'off',
  4246. 'slider_type' => 'fullscreen',
  4247. 'width' => '1400',
  4248. 'width_notebook' => '1240',
  4249. 'width_tablet' => '778',
  4250. 'width_mobile' => '480',
  4251. 'height' => '868',
  4252. 'height_notebook' => '768',
  4253. 'height_tablet' => '960',
  4254. 'height_mobile' => '720',
  4255. 'enable_custom_size_notebook' => 'on',
  4256. 'enable_custom_size_tablet' => 'on',
  4257. 'enable_custom_size_iphone' => 'on',
  4258. 'main_overflow_hidden' => 'off',
  4259. 'auto_height' => 'off',
  4260. 'min_height' => '',
  4261. 'custom_javascript' => '',
  4262. 'custom_css' => '',
  4263. ),
  4264. );
  4265. $presets[] = array (
  4266. 'settings' =>
  4267. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Width', 'preset' => 'heropreset' ),
  4268. 'values' =>
  4269. array (
  4270. 'next_slide_on_window_focus' => 'off',
  4271. 'delay' => '9000',
  4272. 'start_js_after_delay' => '0',
  4273. 'image_source_type' => 'full',
  4274. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4275. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4276. //data.layertype - Layer Type (image,video,html)
  4277. //data.layersettings - Default Settings for Layer
  4278. //data.layer - Layer as jQuery Object
  4279. });',
  4280. 'start_with_slide' => '1',
  4281. 'stop_on_hover' => 'off',
  4282. 'stop_slider' => 'on',
  4283. 'stop_after_loops' => '0',
  4284. 'stop_at_slide' => '1',
  4285. 'shuffle' => 'off',
  4286. 'viewport_start' => 'wait',
  4287. 'viewport_area' => '80',
  4288. 'enable_progressbar' => 'off',
  4289. 'background_dotted_overlay' => 'none',
  4290. 'background_color' => 'transparent',
  4291. 'padding' => '0',
  4292. 'show_background_image' => 'off',
  4293. 'background_image' => '',
  4294. 'bg_fit' => 'cover',
  4295. 'bg_repeat' => 'no-repeat',
  4296. 'bg_position' => 'center center',
  4297. 'position' => 'center',
  4298. 'use_spinner' => '-1',
  4299. 'spinner_color' => '#FFFFFF',
  4300. 'enable_arrows' => 'off',
  4301. 'navigation_arrow_style' => 'navbar',
  4302. 'arrows_always_on' => 'false',
  4303. 'hide_arrows' => '200',
  4304. 'hide_arrows_mobile' => '1200',
  4305. 'hide_arrows_on_mobile' => 'off',
  4306. 'arrows_under_hidden' => '600',
  4307. 'hide_arrows_over' => 'off',
  4308. 'arrows_over_hidden' => '0',
  4309. 'leftarrow_align_hor' => 'left',
  4310. 'leftarrow_align_vert' => 'bottom',
  4311. 'leftarrow_offset_hor' => '0',
  4312. 'leftarrow_offset_vert' => '0',
  4313. 'rightarrow_align_hor' => 'left',
  4314. 'rightarrow_align_vert' => 'bottom',
  4315. 'rightarrow_offset_hor' => '40',
  4316. 'rightarrow_offset_vert' => '0',
  4317. 'enable_bullets' => 'on',
  4318. 'navigation_bullets_style' => 'round-old',
  4319. 'bullets_space' => '5',
  4320. 'bullets_direction' => 'vertical',
  4321. 'bullets_always_on' => 'true',
  4322. 'hide_bullets' => '200',
  4323. 'hide_bullets_mobile' => '1200',
  4324. 'hide_bullets_on_mobile' => 'on',
  4325. 'bullets_under_hidden' => '600',
  4326. 'hide_bullets_over' => 'off',
  4327. 'bullets_over_hidden' => '0',
  4328. 'bullets_align_hor' => 'right',
  4329. 'bullets_align_vert' => 'center',
  4330. 'bullets_offset_hor' => '30',
  4331. 'bullets_offset_vert' => '0',
  4332. 'enable_thumbnails' => 'off',
  4333. 'thumbnails_padding' => '5',
  4334. 'span_thumbnails_wrapper' => 'off',
  4335. 'thumbnails_wrapper_color' => 'transparent',
  4336. 'thumbnails_wrapper_opacity' => '100',
  4337. 'thumbnails_style' => 'navbar',
  4338. 'thumb_amount' => '5',
  4339. 'thumbnails_space' => '5',
  4340. 'thumbnail_direction' => 'vertical',
  4341. 'thumb_width' => '50',
  4342. 'thumb_height' => '50',
  4343. 'thumb_width_min' => '50',
  4344. 'thumbs_always_on' => 'false',
  4345. 'hide_thumbs' => '200',
  4346. 'hide_thumbs_mobile' => '1200',
  4347. 'hide_thumbs_on_mobile' => 'on',
  4348. 'thumbs_under_hidden' => '778',
  4349. 'hide_thumbs_over' => 'off',
  4350. 'thumbs_over_hidden' => '0',
  4351. 'thumbnails_inner_outer' => 'inner',
  4352. 'thumbnails_align_hor' => 'right',
  4353. 'thumbnails_align_vert' => 'center',
  4354. 'thumbnails_offset_hor' => '20',
  4355. 'thumbnails_offset_vert' => '0',
  4356. 'enable_tabs' => 'off',
  4357. 'tabs_padding' => '5',
  4358. 'span_tabs_wrapper' => 'off',
  4359. 'tabs_wrapper_color' => 'transparent',
  4360. 'tabs_wrapper_opacity' => '5',
  4361. 'tabs_style' => '',
  4362. 'tabs_amount' => '5',
  4363. 'tabs_space' => '5',
  4364. 'tabs_direction' => 'horizontal',
  4365. 'tabs_width' => '100',
  4366. 'tabs_height' => '50',
  4367. 'tabs_width_min' => '100',
  4368. 'tabs_always_on' => 'false',
  4369. 'hide_tabs' => '200',
  4370. 'hide_tabs_mobile' => '1200',
  4371. 'hide_tabs_on_mobile' => 'off',
  4372. 'tabs_under_hidden' => '0',
  4373. 'hide_tabs_over' => 'off',
  4374. 'tabs_over_hidden' => '0',
  4375. 'tabs_inner_outer' => 'inner',
  4376. 'tabs_align_hor' => 'center',
  4377. 'tabs_align_vert' => 'bottom',
  4378. 'tabs_offset_hor' => '0',
  4379. 'tabs_offset_vert' => '20',
  4380. 'touchenabled' => 'on',
  4381. 'drag_block_vertical' => 'off',
  4382. 'swipe_velocity' => '75',
  4383. 'swipe_min_touches' => '50',
  4384. 'swipe_direction' => 'horizontal',
  4385. 'keyboard_navigation' => 'off',
  4386. 'keyboard_direction' => 'horizontal',
  4387. 'mousescroll_navigation' => 'off',
  4388. 'carousel_infinity' => 'off',
  4389. 'carousel_space' => '0',
  4390. 'carousel_borderr' => '0',
  4391. 'carousel_borderr_unit' => 'px',
  4392. 'carousel_padding_top' => '0',
  4393. 'carousel_padding_bottom' => '0',
  4394. 'carousel_maxitems' => '3',
  4395. 'carousel_stretch' => 'off',
  4396. 'carousel_fadeout' => 'on',
  4397. 'carousel_varyfade' => 'off',
  4398. 'carousel_rotation' => 'off',
  4399. 'carousel_varyrotate' => 'off',
  4400. 'carousel_maxrotation' => '0',
  4401. 'carousel_scale' => 'off',
  4402. 'carousel_varyscale' => 'off',
  4403. 'carousel_scaledown' => '50',
  4404. 'carousel_hposition' => 'center',
  4405. 'carousel_vposition' => 'center',
  4406. 'use_parallax' => 'on',
  4407. 'disable_parallax_mobile' => 'off',
  4408. 'parallax_type' => 'mouse',
  4409. 'parallax_origo' => 'slidercenter',
  4410. 'parallax_speed' => '2000',
  4411. 'parallax_level_1' => '2',
  4412. 'parallax_level_2' => '3',
  4413. 'parallax_level_3' => '4',
  4414. 'parallax_level_4' => '5',
  4415. 'parallax_level_5' => '6',
  4416. 'parallax_level_6' => '7',
  4417. 'parallax_level_7' => '12',
  4418. 'parallax_level_8' => '16',
  4419. 'parallax_level_9' => '10',
  4420. 'parallax_level_10' => '50',
  4421. 'lazy_load_type' => 'smart',
  4422. 'seo_optimization' => 'none',
  4423. 'simplify_ie8_ios4' => 'off',
  4424. 'show_alternative_type' => 'off',
  4425. 'show_alternate_image' => '',
  4426. 'jquery_noconflict' => 'off',
  4427. 'js_to_body' => 'false',
  4428. 'output_type' => 'none',
  4429. 'jquery_debugmode' => 'off',
  4430. 'slider_type' => 'fullwidth',
  4431. 'width' => '1400',
  4432. 'width_notebook' => '1240',
  4433. 'width_tablet' => '778',
  4434. 'width_mobile' => '480',
  4435. 'height' => '600',
  4436. 'height_notebook' => '500',
  4437. 'height_tablet' => '400',
  4438. 'height_mobile' => '400',
  4439. 'enable_custom_size_notebook' => 'on',
  4440. 'enable_custom_size_tablet' => 'on',
  4441. 'enable_custom_size_iphone' => 'on',
  4442. 'main_overflow_hidden' => 'off',
  4443. 'auto_height' => 'off',
  4444. 'min_height' => '',
  4445. 'custom_javascript' => '',
  4446. 'custom_css' => '',
  4447. ),
  4448. );
  4449. $presets[] = array (
  4450. 'settings' =>
  4451. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Screen', 'preset' => 'heropreset' ),
  4452. 'values' =>
  4453. array (
  4454. 'next_slide_on_window_focus' => 'off',
  4455. 'delay' => '9000',
  4456. 'start_js_after_delay' => '0',
  4457. 'image_source_type' => 'full',
  4458. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4459. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4460. //data.layertype - Layer Type (image,video,html)
  4461. //data.layersettings - Default Settings for Layer
  4462. //data.layer - Layer as jQuery Object
  4463. });',
  4464. 'start_with_slide' => '1',
  4465. 'stop_on_hover' => 'off',
  4466. 'stop_slider' => 'on',
  4467. 'stop_after_loops' => '0',
  4468. 'stop_at_slide' => '1',
  4469. 'shuffle' => 'off',
  4470. 'viewport_start' => 'wait',
  4471. 'viewport_area' => '80',
  4472. 'enable_progressbar' => 'off',
  4473. 'background_dotted_overlay' => 'none',
  4474. 'background_color' => 'transparent',
  4475. 'padding' => '0',
  4476. 'show_background_image' => 'off',
  4477. 'background_image' => '',
  4478. 'bg_fit' => 'cover',
  4479. 'bg_repeat' => 'no-repeat',
  4480. 'bg_position' => 'center center',
  4481. 'position' => 'center',
  4482. 'use_spinner' => '-1',
  4483. 'spinner_color' => '#FFFFFF',
  4484. 'enable_arrows' => 'off',
  4485. 'navigation_arrow_style' => 'navbar',
  4486. 'arrows_always_on' => 'false',
  4487. 'hide_arrows' => '200',
  4488. 'hide_arrows_mobile' => '1200',
  4489. 'hide_arrows_on_mobile' => 'off',
  4490. 'arrows_under_hidden' => '600',
  4491. 'hide_arrows_over' => 'off',
  4492. 'arrows_over_hidden' => '0',
  4493. 'leftarrow_align_hor' => 'left',
  4494. 'leftarrow_align_vert' => 'bottom',
  4495. 'leftarrow_offset_hor' => '0',
  4496. 'leftarrow_offset_vert' => '0',
  4497. 'rightarrow_align_hor' => 'left',
  4498. 'rightarrow_align_vert' => 'bottom',
  4499. 'rightarrow_offset_hor' => '40',
  4500. 'rightarrow_offset_vert' => '0',
  4501. 'enable_bullets' => 'on',
  4502. 'navigation_bullets_style' => 'round-old',
  4503. 'bullets_space' => '5',
  4504. 'bullets_direction' => 'vertical',
  4505. 'bullets_always_on' => 'true',
  4506. 'hide_bullets' => '200',
  4507. 'hide_bullets_mobile' => '1200',
  4508. 'hide_bullets_on_mobile' => 'on',
  4509. 'bullets_under_hidden' => '600',
  4510. 'hide_bullets_over' => 'off',
  4511. 'bullets_over_hidden' => '0',
  4512. 'bullets_align_hor' => 'right',
  4513. 'bullets_align_vert' => 'center',
  4514. 'bullets_offset_hor' => '30',
  4515. 'bullets_offset_vert' => '0',
  4516. 'enable_thumbnails' => 'off',
  4517. 'thumbnails_padding' => '5',
  4518. 'span_thumbnails_wrapper' => 'off',
  4519. 'thumbnails_wrapper_color' => 'transparent',
  4520. 'thumbnails_wrapper_opacity' => '100',
  4521. 'thumbnails_style' => 'navbar',
  4522. 'thumb_amount' => '5',
  4523. 'thumbnails_space' => '5',
  4524. 'thumbnail_direction' => 'vertical',
  4525. 'thumb_width' => '50',
  4526. 'thumb_height' => '50',
  4527. 'thumb_width_min' => '50',
  4528. 'thumbs_always_on' => 'false',
  4529. 'hide_thumbs' => '200',
  4530. 'hide_thumbs_mobile' => '1200',
  4531. 'hide_thumbs_on_mobile' => 'on',
  4532. 'thumbs_under_hidden' => '778',
  4533. 'hide_thumbs_over' => 'off',
  4534. 'thumbs_over_hidden' => '0',
  4535. 'thumbnails_inner_outer' => 'inner',
  4536. 'thumbnails_align_hor' => 'right',
  4537. 'thumbnails_align_vert' => 'center',
  4538. 'thumbnails_offset_hor' => '20',
  4539. 'thumbnails_offset_vert' => '0',
  4540. 'enable_tabs' => 'off',
  4541. 'tabs_padding' => '5',
  4542. 'span_tabs_wrapper' => 'off',
  4543. 'tabs_wrapper_color' => 'transparent',
  4544. 'tabs_wrapper_opacity' => '5',
  4545. 'tabs_style' => '',
  4546. 'tabs_amount' => '5',
  4547. 'tabs_space' => '5',
  4548. 'tabs_direction' => 'horizontal',
  4549. 'tabs_width' => '100',
  4550. 'tabs_height' => '50',
  4551. 'tabs_width_min' => '100',
  4552. 'tabs_always_on' => 'false',
  4553. 'hide_tabs' => '200',
  4554. 'hide_tabs_mobile' => '1200',
  4555. 'hide_tabs_on_mobile' => 'off',
  4556. 'tabs_under_hidden' => '0',
  4557. 'hide_tabs_over' => 'off',
  4558. 'tabs_over_hidden' => '0',
  4559. 'tabs_inner_outer' => 'inner',
  4560. 'tabs_align_hor' => 'center',
  4561. 'tabs_align_vert' => 'bottom',
  4562. 'tabs_offset_hor' => '0',
  4563. 'tabs_offset_vert' => '20',
  4564. 'touchenabled' => 'on',
  4565. 'drag_block_vertical' => 'off',
  4566. 'swipe_velocity' => '75',
  4567. 'swipe_min_touches' => '50',
  4568. 'swipe_direction' => 'horizontal',
  4569. 'keyboard_navigation' => 'off',
  4570. 'keyboard_direction' => 'horizontal',
  4571. 'mousescroll_navigation' => 'off',
  4572. 'carousel_infinity' => 'off',
  4573. 'carousel_space' => '0',
  4574. 'carousel_borderr' => '0',
  4575. 'carousel_borderr_unit' => 'px',
  4576. 'carousel_padding_top' => '0',
  4577. 'carousel_padding_bottom' => '0',
  4578. 'carousel_maxitems' => '3',
  4579. 'carousel_stretch' => 'off',
  4580. 'carousel_fadeout' => 'on',
  4581. 'carousel_varyfade' => 'off',
  4582. 'carousel_rotation' => 'off',
  4583. 'carousel_varyrotate' => 'off',
  4584. 'carousel_maxrotation' => '0',
  4585. 'carousel_scale' => 'off',
  4586. 'carousel_varyscale' => 'off',
  4587. 'carousel_scaledown' => '50',
  4588. 'carousel_hposition' => 'center',
  4589. 'carousel_vposition' => 'center',
  4590. 'use_parallax' => 'on',
  4591. 'disable_parallax_mobile' => 'off',
  4592. 'parallax_type' => 'mouse',
  4593. 'parallax_origo' => 'slidercenter',
  4594. 'parallax_speed' => '2000',
  4595. 'parallax_level_1' => '2',
  4596. 'parallax_level_2' => '3',
  4597. 'parallax_level_3' => '4',
  4598. 'parallax_level_4' => '5',
  4599. 'parallax_level_5' => '6',
  4600. 'parallax_level_6' => '7',
  4601. 'parallax_level_7' => '12',
  4602. 'parallax_level_8' => '16',
  4603. 'parallax_level_9' => '10',
  4604. 'parallax_level_10' => '50',
  4605. 'lazy_load_type' => 'smart',
  4606. 'seo_optimization' => 'none',
  4607. 'simplify_ie8_ios4' => 'off',
  4608. 'show_alternative_type' => 'off',
  4609. 'show_alternate_image' => '',
  4610. 'jquery_noconflict' => 'off',
  4611. 'js_to_body' => 'false',
  4612. 'output_type' => 'none',
  4613. 'jquery_debugmode' => 'off',
  4614. 'slider_type' => 'fullscreen',
  4615. 'width' => '1240',
  4616. 'width_notebook' => '1024',
  4617. 'width_tablet' => '778',
  4618. 'width_mobile' => '480',
  4619. 'height' => '868',
  4620. 'height_notebook' => '768',
  4621. 'height_tablet' => '960',
  4622. 'height_mobile' => '720',
  4623. 'enable_custom_size_notebook' => 'on',
  4624. 'enable_custom_size_tablet' => 'on',
  4625. 'enable_custom_size_iphone' => 'on',
  4626. 'main_overflow_hidden' => 'off',
  4627. 'auto_height' => 'off',
  4628. 'min_height' => '',
  4629. 'custom_javascript' => '',
  4630. 'custom_css' => '',
  4631. ),
  4632. );
  4633. $presets[] = array (
  4634. 'settings' =>
  4635. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Width', 'preset' => 'heropreset' ),
  4636. 'values' =>
  4637. array (
  4638. 'next_slide_on_window_focus' => 'off',
  4639. 'delay' => '9000',
  4640. 'start_js_after_delay' => '0',
  4641. 'image_source_type' => 'full',
  4642. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4643. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4644. //data.layertype - Layer Type (image,video,html)
  4645. //data.layersettings - Default Settings for Layer
  4646. //data.layer - Layer as jQuery Object
  4647. });',
  4648. 'start_with_slide' => '1',
  4649. 'stop_on_hover' => 'off',
  4650. 'stop_slider' => 'on',
  4651. 'stop_after_loops' => '0',
  4652. 'stop_at_slide' => '1',
  4653. 'shuffle' => 'off',
  4654. 'viewport_start' => 'wait',
  4655. 'viewport_area' => '80',
  4656. 'enable_progressbar' => 'off',
  4657. 'background_dotted_overlay' => 'none',
  4658. 'background_color' => 'transparent',
  4659. 'padding' => '0',
  4660. 'show_background_image' => 'off',
  4661. 'background_image' => '',
  4662. 'bg_fit' => 'cover',
  4663. 'bg_repeat' => 'no-repeat',
  4664. 'bg_position' => 'center center',
  4665. 'position' => 'center',
  4666. 'use_spinner' => '-1',
  4667. 'spinner_color' => '#FFFFFF',
  4668. 'enable_arrows' => 'off',
  4669. 'navigation_arrow_style' => 'navbar',
  4670. 'arrows_always_on' => 'false',
  4671. 'hide_arrows' => '200',
  4672. 'hide_arrows_mobile' => '1200',
  4673. 'hide_arrows_on_mobile' => 'off',
  4674. 'arrows_under_hidden' => '600',
  4675. 'hide_arrows_over' => 'off',
  4676. 'arrows_over_hidden' => '0',
  4677. 'leftarrow_align_hor' => 'left',
  4678. 'leftarrow_align_vert' => 'bottom',
  4679. 'leftarrow_offset_hor' => '0',
  4680. 'leftarrow_offset_vert' => '0',
  4681. 'rightarrow_align_hor' => 'left',
  4682. 'rightarrow_align_vert' => 'bottom',
  4683. 'rightarrow_offset_hor' => '40',
  4684. 'rightarrow_offset_vert' => '0',
  4685. 'enable_bullets' => 'on',
  4686. 'navigation_bullets_style' => 'round-old',
  4687. 'bullets_space' => '5',
  4688. 'bullets_direction' => 'vertical',
  4689. 'bullets_always_on' => 'true',
  4690. 'hide_bullets' => '200',
  4691. 'hide_bullets_mobile' => '1200',
  4692. 'hide_bullets_on_mobile' => 'on',
  4693. 'bullets_under_hidden' => '600',
  4694. 'hide_bullets_over' => 'off',
  4695. 'bullets_over_hidden' => '0',
  4696. 'bullets_align_hor' => 'right',
  4697. 'bullets_align_vert' => 'center',
  4698. 'bullets_offset_hor' => '30',
  4699. 'bullets_offset_vert' => '0',
  4700. 'enable_thumbnails' => 'off',
  4701. 'thumbnails_padding' => '5',
  4702. 'span_thumbnails_wrapper' => 'off',
  4703. 'thumbnails_wrapper_color' => 'transparent',
  4704. 'thumbnails_wrapper_opacity' => '100',
  4705. 'thumbnails_style' => 'navbar',
  4706. 'thumb_amount' => '5',
  4707. 'thumbnails_space' => '5',
  4708. 'thumbnail_direction' => 'vertical',
  4709. 'thumb_width' => '50',
  4710. 'thumb_height' => '50',
  4711. 'thumb_width_min' => '50',
  4712. 'thumbs_always_on' => 'false',
  4713. 'hide_thumbs' => '200',
  4714. 'hide_thumbs_mobile' => '1200',
  4715. 'hide_thumbs_on_mobile' => 'on',
  4716. 'thumbs_under_hidden' => '778',
  4717. 'hide_thumbs_over' => 'off',
  4718. 'thumbs_over_hidden' => '0',
  4719. 'thumbnails_inner_outer' => 'inner',
  4720. 'thumbnails_align_hor' => 'right',
  4721. 'thumbnails_align_vert' => 'center',
  4722. 'thumbnails_offset_hor' => '20',
  4723. 'thumbnails_offset_vert' => '0',
  4724. 'enable_tabs' => 'off',
  4725. 'tabs_padding' => '5',
  4726. 'span_tabs_wrapper' => 'off',
  4727. 'tabs_wrapper_color' => 'transparent',
  4728. 'tabs_wrapper_opacity' => '5',
  4729. 'tabs_style' => '',
  4730. 'tabs_amount' => '5',
  4731. 'tabs_space' => '5',
  4732. 'tabs_direction' => 'horizontal',
  4733. 'tabs_width' => '100',
  4734. 'tabs_height' => '50',
  4735. 'tabs_width_min' => '100',
  4736. 'tabs_always_on' => 'false',
  4737. 'hide_tabs' => '200',
  4738. 'hide_tabs_mobile' => '1200',
  4739. 'hide_tabs_on_mobile' => 'off',
  4740. 'tabs_under_hidden' => '0',
  4741. 'hide_tabs_over' => 'off',
  4742. 'tabs_over_hidden' => '0',
  4743. 'tabs_inner_outer' => 'inner',
  4744. 'tabs_align_hor' => 'center',
  4745. 'tabs_align_vert' => 'bottom',
  4746. 'tabs_offset_hor' => '0',
  4747. 'tabs_offset_vert' => '20',
  4748. 'touchenabled' => 'on',
  4749. 'drag_block_vertical' => 'off',
  4750. 'swipe_velocity' => '75',
  4751. 'swipe_min_touches' => '50',
  4752. 'swipe_direction' => 'horizontal',
  4753. 'keyboard_navigation' => 'off',
  4754. 'keyboard_direction' => 'horizontal',
  4755. 'mousescroll_navigation' => 'off',
  4756. 'carousel_infinity' => 'off',
  4757. 'carousel_space' => '0',
  4758. 'carousel_borderr' => '0',
  4759. 'carousel_borderr_unit' => 'px',
  4760. 'carousel_padding_top' => '0',
  4761. 'carousel_padding_bottom' => '0',
  4762. 'carousel_maxitems' => '3',
  4763. 'carousel_stretch' => 'off',
  4764. 'carousel_fadeout' => 'on',
  4765. 'carousel_varyfade' => 'off',
  4766. 'carousel_rotation' => 'off',
  4767. 'carousel_varyrotate' => 'off',
  4768. 'carousel_maxrotation' => '0',
  4769. 'carousel_scale' => 'off',
  4770. 'carousel_varyscale' => 'off',
  4771. 'carousel_scaledown' => '50',
  4772. 'carousel_hposition' => 'center',
  4773. 'carousel_vposition' => 'center',
  4774. 'use_parallax' => 'on',
  4775. 'disable_parallax_mobile' => 'off',
  4776. 'parallax_type' => 'mouse',
  4777. 'parallax_origo' => 'slidercenter',
  4778. 'parallax_speed' => '2000',
  4779. 'parallax_level_1' => '2',
  4780. 'parallax_level_2' => '3',
  4781. 'parallax_level_3' => '4',
  4782. 'parallax_level_4' => '5',
  4783. 'parallax_level_5' => '6',
  4784. 'parallax_level_6' => '7',
  4785. 'parallax_level_7' => '12',
  4786. 'parallax_level_8' => '16',
  4787. 'parallax_level_9' => '10',
  4788. 'parallax_level_10' => '50',
  4789. 'lazy_load_type' => 'smart',
  4790. 'seo_optimization' => 'none',
  4791. 'simplify_ie8_ios4' => 'off',
  4792. 'show_alternative_type' => 'off',
  4793. 'show_alternate_image' => '',
  4794. 'jquery_noconflict' => 'off',
  4795. 'js_to_body' => 'false',
  4796. 'output_type' => 'none',
  4797. 'jquery_debugmode' => 'off',
  4798. 'slider_type' => 'fullwidth',
  4799. 'width' => '1240',
  4800. 'width_notebook' => '1024',
  4801. 'width_tablet' => '778',
  4802. 'width_mobile' => '480',
  4803. 'height' => '600',
  4804. 'height_notebook' => '500',
  4805. 'height_tablet' => '400',
  4806. 'height_mobile' => '300',
  4807. 'enable_custom_size_notebook' => 'on',
  4808. 'enable_custom_size_tablet' => 'on',
  4809. 'enable_custom_size_iphone' => 'on',
  4810. 'main_overflow_hidden' => 'off',
  4811. 'auto_height' => 'off',
  4812. 'min_height' => '',
  4813. 'custom_javascript' => '',
  4814. 'custom_css' => '',
  4815. ),
  4816. );
  4817. $presets[] = array (
  4818. 'settings' =>
  4819. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Thumbs', 'preset' => 'carouselpreset' ),
  4820. 'values' =>
  4821. array (
  4822. 'next_slide_on_window_focus' => 'off',
  4823. 'delay' => '9000',
  4824. 'start_js_after_delay' => '0',
  4825. 'image_source_type' => 'full',
  4826. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  4827. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  4828. //data.layertype - Layer Type (image,video,html)
  4829. //data.layersettings - Default Settings for Layer
  4830. //data.layer - Layer as jQuery Object
  4831. });',
  4832. 'start_with_slide' => '1',
  4833. 'stop_on_hover' => 'off',
  4834. 'stop_slider' => 'on',
  4835. 'stop_after_loops' => '0',
  4836. 'stop_at_slide' => '1',
  4837. 'shuffle' => 'off',
  4838. 'viewport_start' => 'wait',
  4839. 'viewport_area' => '80',
  4840. 'enable_progressbar' => 'on',
  4841. 'background_dotted_overlay' => 'none',
  4842. 'background_color' => 'transparent',
  4843. 'padding' => '0',
  4844. 'show_background_image' => 'off',
  4845. 'background_image' => '',
  4846. 'bg_fit' => 'cover',
  4847. 'bg_repeat' => 'no-repeat',
  4848. 'bg_position' => 'center center',
  4849. 'position' => 'center',
  4850. 'use_spinner' => '-1',
  4851. 'spinner_color' => '#FFFFFF',
  4852. 'enable_arrows' => 'on',
  4853. 'navigation_arrow_style' => 'navbar-old',
  4854. 'arrows_always_on' => 'false',
  4855. 'hide_arrows' => '200',
  4856. 'hide_arrows_mobile' => '1200',
  4857. 'hide_arrows_on_mobile' => 'off',
  4858. 'arrows_under_hidden' => '600',
  4859. 'hide_arrows_over' => 'off',
  4860. 'arrows_over_hidden' => '0',
  4861. 'leftarrow_align_hor' => 'left',
  4862. 'leftarrow_align_vert' => 'center',
  4863. 'leftarrow_offset_hor' => '30',
  4864. 'leftarrow_offset_vert' => '0',
  4865. 'rightarrow_align_hor' => 'right',
  4866. 'rightarrow_align_vert' => 'center',
  4867. 'rightarrow_offset_hor' => '30',
  4868. 'rightarrow_offset_vert' => '0',
  4869. 'enable_bullets' => 'off',
  4870. 'navigation_bullets_style' => 'round-old',
  4871. 'bullets_space' => '5',
  4872. 'bullets_direction' => 'horizontal',
  4873. 'bullets_always_on' => 'true',
  4874. 'hide_bullets' => '200',
  4875. 'hide_bullets_mobile' => '1200',
  4876. 'hide_bullets_on_mobile' => 'on',
  4877. 'bullets_under_hidden' => '600',
  4878. 'hide_bullets_over' => 'off',
  4879. 'bullets_over_hidden' => '0',
  4880. 'bullets_align_hor' => 'center',
  4881. 'bullets_align_vert' => 'bottom',
  4882. 'bullets_offset_hor' => '0',
  4883. 'bullets_offset_vert' => '30',
  4884. 'enable_thumbnails' => 'on',
  4885. 'thumbnails_padding' => '20',
  4886. 'span_thumbnails_wrapper' => 'on',
  4887. 'thumbnails_wrapper_color' => '#000000',
  4888. 'thumbnails_wrapper_opacity' => '15',
  4889. 'thumbnails_style' => 'navbar',
  4890. 'thumb_amount' => '9',
  4891. 'thumbnails_space' => '10',
  4892. 'thumbnail_direction' => 'horizontal',
  4893. 'thumb_width' => '60',
  4894. 'thumb_height' => '60',
  4895. 'thumb_width_min' => '60',
  4896. 'thumbs_always_on' => 'false',
  4897. 'hide_thumbs' => '200',
  4898. 'hide_thumbs_mobile' => '1200',
  4899. 'hide_thumbs_on_mobile' => 'off',
  4900. 'thumbs_under_hidden' => '0',
  4901. 'hide_thumbs_over' => 'off',
  4902. 'thumbs_over_hidden' => '0',
  4903. 'thumbnails_inner_outer' => 'outer-bottom',
  4904. 'thumbnails_align_hor' => 'center',
  4905. 'thumbnails_align_vert' => 'bottom',
  4906. 'thumbnails_offset_hor' => '0',
  4907. 'thumbnails_offset_vert' => '0',
  4908. 'enable_tabs' => 'off',
  4909. 'tabs_padding' => '5',
  4910. 'span_tabs_wrapper' => 'off',
  4911. 'tabs_wrapper_color' => 'transparent',
  4912. 'tabs_wrapper_opacity' => '5',
  4913. 'tabs_style' => '',
  4914. 'tabs_amount' => '5',
  4915. 'tabs_space' => '5',
  4916. 'tabs_direction' => 'horizontal',
  4917. 'tabs_width' => '100',
  4918. 'tabs_height' => '50',
  4919. 'tabs_width_min' => '100',
  4920. 'tabs_always_on' => 'false',
  4921. 'hide_tabs' => '200',
  4922. 'hide_tabs_mobile' => '1200',
  4923. 'hide_tabs_on_mobile' => 'off',
  4924. 'tabs_under_hidden' => '0',
  4925. 'hide_tabs_over' => 'off',
  4926. 'tabs_over_hidden' => '0',
  4927. 'tabs_inner_outer' => 'inner',
  4928. 'tabs_align_hor' => 'center',
  4929. 'tabs_align_vert' => 'bottom',
  4930. 'tabs_offset_hor' => '0',
  4931. 'tabs_offset_vert' => '20',
  4932. 'touchenabled' => 'on',
  4933. 'drag_block_vertical' => 'off',
  4934. 'swipe_velocity' => '75',
  4935. 'swipe_min_touches' => '50',
  4936. 'swipe_direction' => 'horizontal',
  4937. 'keyboard_navigation' => 'off',
  4938. 'keyboard_direction' => 'horizontal',
  4939. 'mousescroll_navigation' => 'off',
  4940. 'carousel_infinity' => 'off',
  4941. 'carousel_space' => '-150',
  4942. 'carousel_borderr' => '0',
  4943. 'carousel_borderr_unit' => 'px',
  4944. 'carousel_padding_top' => '0',
  4945. 'carousel_padding_bottom' => '0',
  4946. 'carousel_maxitems' => '5',
  4947. 'carousel_stretch' => 'off',
  4948. 'carousel_fadeout' => 'on',
  4949. 'carousel_varyfade' => 'on',
  4950. 'carousel_rotation' => 'on',
  4951. 'carousel_varyrotate' => 'on',
  4952. 'carousel_maxrotation' => '65',
  4953. 'carousel_scale' => 'on',
  4954. 'carousel_varyscale' => 'off',
  4955. 'carousel_scaledown' => '55',
  4956. 'carousel_hposition' => 'center',
  4957. 'carousel_vposition' => 'center',
  4958. 'use_parallax' => 'on',
  4959. 'disable_parallax_mobile' => 'off',
  4960. 'parallax_type' => 'mouse',
  4961. 'parallax_origo' => 'slidercenter',
  4962. 'parallax_speed' => '2000',
  4963. 'parallax_level_1' => '2',
  4964. 'parallax_level_2' => '3',
  4965. 'parallax_level_3' => '4',
  4966. 'parallax_level_4' => '5',
  4967. 'parallax_level_5' => '6',
  4968. 'parallax_level_6' => '7',
  4969. 'parallax_level_7' => '12',
  4970. 'parallax_level_8' => '16',
  4971. 'parallax_level_9' => '10',
  4972. 'parallax_level_10' => '50',
  4973. 'lazy_load_type' => 'smart',
  4974. 'seo_optimization' => 'none',
  4975. 'simplify_ie8_ios4' => 'off',
  4976. 'show_alternative_type' => 'off',
  4977. 'show_alternate_image' => '',
  4978. 'jquery_noconflict' => 'off',
  4979. 'js_to_body' => 'false',
  4980. 'output_type' => 'none',
  4981. 'jquery_debugmode' => 'off',
  4982. 'slider_type' => 'fullwidth',
  4983. 'width' => '600',
  4984. 'width_notebook' => '600',
  4985. 'width_tablet' => '600',
  4986. 'width_mobile' => '600',
  4987. 'height' => '600',
  4988. 'height_notebook' => '600',
  4989. 'height_tablet' => '600',
  4990. 'height_mobile' => '600',
  4991. 'enable_custom_size_notebook' => 'off',
  4992. 'enable_custom_size_tablet' => 'off',
  4993. 'enable_custom_size_iphone' => 'off',
  4994. 'main_overflow_hidden' => 'off',
  4995. 'auto_height' => 'off',
  4996. 'min_height' => '',
  4997. 'custom_css' => '',
  4998. 'custom_javascript' => '',
  4999. ),
  5000. );
  5001. $presets[] = array (
  5002. 'settings' =>
  5003. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_endless.png', 'name' => 'Cover-Flow-Infinite', 'preset' => 'carouselpreset' ),
  5004. 'values' =>
  5005. array (
  5006. 'next_slide_on_window_focus' => 'off',
  5007. 'delay' => '9000',
  5008. 'start_js_after_delay' => '0',
  5009. 'image_source_type' => 'full',
  5010. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5011. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5012. //data.layertype - Layer Type (image,video,html)
  5013. //data.layersettings - Default Settings for Layer
  5014. //data.layer - Layer as jQuery Object
  5015. });',
  5016. 'start_with_slide' => '1',
  5017. 'stop_on_hover' => 'off',
  5018. 'stop_slider' => 'on',
  5019. 'stop_after_loops' => '0',
  5020. 'stop_at_slide' => '1',
  5021. 'shuffle' => 'off',
  5022. 'viewport_start' => 'wait',
  5023. 'viewport_area' => '80',
  5024. 'enable_progressbar' => 'on',
  5025. 'background_dotted_overlay' => 'none',
  5026. 'background_color' => 'transparent',
  5027. 'padding' => '0',
  5028. 'show_background_image' => 'off',
  5029. 'background_image' => '',
  5030. 'bg_fit' => 'cover',
  5031. 'bg_repeat' => 'no-repeat',
  5032. 'bg_position' => 'center center',
  5033. 'position' => 'center',
  5034. 'use_spinner' => '-1',
  5035. 'spinner_color' => '#FFFFFF',
  5036. 'enable_arrows' => 'on',
  5037. 'navigation_arrow_style' => 'round',
  5038. 'arrows_always_on' => 'false',
  5039. 'hide_arrows' => '200',
  5040. 'hide_arrows_mobile' => '1200',
  5041. 'hide_arrows_on_mobile' => 'off',
  5042. 'arrows_under_hidden' => '600',
  5043. 'hide_arrows_over' => 'off',
  5044. 'arrows_over_hidden' => '0',
  5045. 'leftarrow_align_hor' => 'left',
  5046. 'leftarrow_align_vert' => 'center',
  5047. 'leftarrow_offset_hor' => '30',
  5048. 'leftarrow_offset_vert' => '0',
  5049. 'rightarrow_align_hor' => 'right',
  5050. 'rightarrow_align_vert' => 'center',
  5051. 'rightarrow_offset_hor' => '30',
  5052. 'rightarrow_offset_vert' => '0',
  5053. 'enable_bullets' => 'off',
  5054. 'navigation_bullets_style' => 'round-old',
  5055. 'bullets_space' => '5',
  5056. 'bullets_direction' => 'horizontal',
  5057. 'bullets_always_on' => 'true',
  5058. 'hide_bullets' => '200',
  5059. 'hide_bullets_mobile' => '1200',
  5060. 'hide_bullets_on_mobile' => 'on',
  5061. 'bullets_under_hidden' => '600',
  5062. 'hide_bullets_over' => 'off',
  5063. 'bullets_over_hidden' => '0',
  5064. 'bullets_align_hor' => 'center',
  5065. 'bullets_align_vert' => 'bottom',
  5066. 'bullets_offset_hor' => '0',
  5067. 'bullets_offset_vert' => '30',
  5068. 'enable_thumbnails' => 'off',
  5069. 'thumbnails_padding' => '20',
  5070. 'span_thumbnails_wrapper' => 'on',
  5071. 'thumbnails_wrapper_color' => '#000000',
  5072. 'thumbnails_wrapper_opacity' => '15',
  5073. 'thumbnails_style' => 'navbar',
  5074. 'thumb_amount' => '9',
  5075. 'thumbnails_space' => '10',
  5076. 'thumbnail_direction' => 'horizontal',
  5077. 'thumb_width' => '60',
  5078. 'thumb_height' => '60',
  5079. 'thumb_width_min' => '60',
  5080. 'thumbs_always_on' => 'false',
  5081. 'hide_thumbs' => '200',
  5082. 'hide_thumbs_mobile' => '1200',
  5083. 'hide_thumbs_on_mobile' => 'off',
  5084. 'thumbs_under_hidden' => '0',
  5085. 'hide_thumbs_over' => 'off',
  5086. 'thumbs_over_hidden' => '0',
  5087. 'thumbnails_inner_outer' => 'outer-bottom',
  5088. 'thumbnails_align_hor' => 'center',
  5089. 'thumbnails_align_vert' => 'bottom',
  5090. 'thumbnails_offset_hor' => '0',
  5091. 'thumbnails_offset_vert' => '0',
  5092. 'enable_tabs' => 'off',
  5093. 'tabs_padding' => '5',
  5094. 'span_tabs_wrapper' => 'off',
  5095. 'tabs_wrapper_color' => 'transparent',
  5096. 'tabs_wrapper_opacity' => '5',
  5097. 'tabs_style' => '',
  5098. 'tabs_amount' => '5',
  5099. 'tabs_space' => '5',
  5100. 'tabs_direction' => 'horizontal',
  5101. 'tabs_width' => '100',
  5102. 'tabs_height' => '50',
  5103. 'tabs_width_min' => '100',
  5104. 'tabs_always_on' => 'false',
  5105. 'hide_tabs' => '200',
  5106. 'hide_tabs_mobile' => '1200',
  5107. 'hide_tabs_on_mobile' => 'off',
  5108. 'tabs_under_hidden' => '0',
  5109. 'hide_tabs_over' => 'off',
  5110. 'tabs_over_hidden' => '0',
  5111. 'tabs_inner_outer' => 'inner',
  5112. 'tabs_align_hor' => 'center',
  5113. 'tabs_align_vert' => 'bottom',
  5114. 'tabs_offset_hor' => '0',
  5115. 'tabs_offset_vert' => '20',
  5116. 'touchenabled' => 'on',
  5117. 'drag_block_vertical' => 'off',
  5118. 'swipe_velocity' => '75',
  5119. 'swipe_min_touches' => '50',
  5120. 'swipe_direction' => 'horizontal',
  5121. 'keyboard_navigation' => 'off',
  5122. 'keyboard_direction' => 'horizontal',
  5123. 'mousescroll_navigation' => 'off',
  5124. 'carousel_infinity' => 'on',
  5125. 'carousel_space' => '-150',
  5126. 'carousel_borderr' => '0',
  5127. 'carousel_borderr_unit' => 'px',
  5128. 'carousel_padding_top' => '0',
  5129. 'carousel_padding_bottom' => '0',
  5130. 'carousel_maxitems' => '3',
  5131. 'carousel_stretch' => 'off',
  5132. 'carousel_fadeout' => 'on',
  5133. 'carousel_varyfade' => 'on',
  5134. 'carousel_rotation' => 'on',
  5135. 'carousel_varyrotate' => 'on',
  5136. 'carousel_maxrotation' => '65',
  5137. 'carousel_scale' => 'on',
  5138. 'carousel_varyscale' => 'off',
  5139. 'carousel_scaledown' => '55',
  5140. 'carousel_hposition' => 'center',
  5141. 'carousel_vposition' => 'center',
  5142. 'use_parallax' => 'on',
  5143. 'disable_parallax_mobile' => 'off',
  5144. 'parallax_type' => 'mouse',
  5145. 'parallax_origo' => 'slidercenter',
  5146. 'parallax_speed' => '2000',
  5147. 'parallax_level_1' => '2',
  5148. 'parallax_level_2' => '3',
  5149. 'parallax_level_3' => '4',
  5150. 'parallax_level_4' => '5',
  5151. 'parallax_level_5' => '6',
  5152. 'parallax_level_6' => '7',
  5153. 'parallax_level_7' => '12',
  5154. 'parallax_level_8' => '16',
  5155. 'parallax_level_9' => '10',
  5156. 'parallax_level_10' => '50',
  5157. 'lazy_load_type' => 'smart',
  5158. 'seo_optimization' => 'none',
  5159. 'simplify_ie8_ios4' => 'off',
  5160. 'show_alternative_type' => 'off',
  5161. 'show_alternate_image' => '',
  5162. 'jquery_noconflict' => 'off',
  5163. 'js_to_body' => 'false',
  5164. 'output_type' => 'none',
  5165. 'jquery_debugmode' => 'off',
  5166. 'slider_type' => 'fullwidth',
  5167. 'width' => '600',
  5168. 'width_notebook' => '600',
  5169. 'width_tablet' => '600',
  5170. 'width_mobile' => '600',
  5171. 'height' => '600',
  5172. 'height_notebook' => '600',
  5173. 'height_tablet' => '600',
  5174. 'height_mobile' => '600',
  5175. 'enable_custom_size_notebook' => 'off',
  5176. 'enable_custom_size_tablet' => 'off',
  5177. 'enable_custom_size_iphone' => 'off',
  5178. 'main_overflow_hidden' => 'off',
  5179. 'auto_height' => 'off',
  5180. 'min_height' => '',
  5181. 'custom_css' => '',
  5182. 'custom_javascript' => '',
  5183. ),
  5184. );
  5185. $presets[] = array (
  5186. 'settings' =>
  5187. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs.png', 'name' => 'Flat-Infinite-Thumbs', 'preset' => 'carouselpreset' ),
  5188. 'values' =>
  5189. array (
  5190. 'next_slide_on_window_focus' => 'off',
  5191. 'delay' => '9000',
  5192. 'start_js_after_delay' => '0',
  5193. 'image_source_type' => 'full',
  5194. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5195. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5196. //data.layertype - Layer Type (image,video,html)
  5197. //data.layersettings - Default Settings for Layer
  5198. //data.layer - Layer as jQuery Object
  5199. });',
  5200. 'start_with_slide' => '1',
  5201. 'stop_on_hover' => 'off',
  5202. 'stop_slider' => 'on',
  5203. 'stop_after_loops' => '0',
  5204. 'stop_at_slide' => '1',
  5205. 'shuffle' => 'off',
  5206. 'viewport_start' => 'wait',
  5207. 'viewport_area' => '80',
  5208. 'enable_progressbar' => 'on',
  5209. 'background_dotted_overlay' => 'none',
  5210. 'background_color' => '#111111',
  5211. 'padding' => '0',
  5212. 'show_background_image' => 'off',
  5213. 'background_image' => '',
  5214. 'bg_fit' => 'cover',
  5215. 'bg_repeat' => 'no-repeat',
  5216. 'bg_position' => 'center center',
  5217. 'position' => 'center',
  5218. 'use_spinner' => '-1',
  5219. 'spinner_color' => '#FFFFFF',
  5220. 'enable_arrows' => 'on',
  5221. 'navigation_arrow_style' => 'navbar',
  5222. 'arrows_always_on' => 'false',
  5223. 'hide_arrows' => '200',
  5224. 'hide_arrows_mobile' => '1200',
  5225. 'hide_arrows_on_mobile' => 'off',
  5226. 'arrows_under_hidden' => '600',
  5227. 'hide_arrows_over' => 'off',
  5228. 'arrows_over_hidden' => '0',
  5229. 'leftarrow_align_hor' => 'left',
  5230. 'leftarrow_align_vert' => 'center',
  5231. 'leftarrow_offset_hor' => '30',
  5232. 'leftarrow_offset_vert' => '0',
  5233. 'rightarrow_align_hor' => 'right',
  5234. 'rightarrow_align_vert' => 'center',
  5235. 'rightarrow_offset_hor' => '30',
  5236. 'rightarrow_offset_vert' => '0',
  5237. 'enable_bullets' => 'off',
  5238. 'navigation_bullets_style' => 'round-old',
  5239. 'bullets_space' => '5',
  5240. 'bullets_direction' => 'horizontal',
  5241. 'bullets_always_on' => 'true',
  5242. 'hide_bullets' => '200',
  5243. 'hide_bullets_mobile' => '1200',
  5244. 'hide_bullets_on_mobile' => 'on',
  5245. 'bullets_under_hidden' => '600',
  5246. 'hide_bullets_over' => 'off',
  5247. 'bullets_over_hidden' => '0',
  5248. 'bullets_align_hor' => 'center',
  5249. 'bullets_align_vert' => 'bottom',
  5250. 'bullets_offset_hor' => '0',
  5251. 'bullets_offset_vert' => '30',
  5252. 'enable_thumbnails' => 'on',
  5253. 'thumbnails_padding' => '20',
  5254. 'span_thumbnails_wrapper' => 'on',
  5255. 'thumbnails_wrapper_color' => '#222222',
  5256. 'thumbnails_wrapper_opacity' => '100',
  5257. 'thumbnails_style' => 'navbar',
  5258. 'thumb_amount' => '9',
  5259. 'thumbnails_space' => '10',
  5260. 'thumbnail_direction' => 'horizontal',
  5261. 'thumb_width' => '60',
  5262. 'thumb_height' => '60',
  5263. 'thumb_width_min' => '60',
  5264. 'thumbs_always_on' => 'false',
  5265. 'hide_thumbs' => '200',
  5266. 'hide_thumbs_mobile' => '1200',
  5267. 'hide_thumbs_on_mobile' => 'off',
  5268. 'thumbs_under_hidden' => '0',
  5269. 'hide_thumbs_over' => 'off',
  5270. 'thumbs_over_hidden' => '0',
  5271. 'thumbnails_inner_outer' => 'outer-bottom',
  5272. 'thumbnails_align_hor' => 'center',
  5273. 'thumbnails_align_vert' => 'bottom',
  5274. 'thumbnails_offset_hor' => '0',
  5275. 'thumbnails_offset_vert' => '0',
  5276. 'enable_tabs' => 'off',
  5277. 'tabs_padding' => '5',
  5278. 'span_tabs_wrapper' => 'off',
  5279. 'tabs_wrapper_color' => 'transparent',
  5280. 'tabs_wrapper_opacity' => '5',
  5281. 'tabs_style' => '',
  5282. 'tabs_amount' => '5',
  5283. 'tabs_space' => '5',
  5284. 'tabs_direction' => 'horizontal',
  5285. 'tabs_width' => '100',
  5286. 'tabs_height' => '50',
  5287. 'tabs_width_min' => '100',
  5288. 'tabs_always_on' => 'false',
  5289. 'hide_tabs' => '200',
  5290. 'hide_tabs_mobile' => '1200',
  5291. 'hide_tabs_on_mobile' => 'off',
  5292. 'tabs_under_hidden' => '0',
  5293. 'hide_tabs_over' => 'off',
  5294. 'tabs_over_hidden' => '0',
  5295. 'tabs_inner_outer' => 'inner',
  5296. 'tabs_align_hor' => 'center',
  5297. 'tabs_align_vert' => 'bottom',
  5298. 'tabs_offset_hor' => '0',
  5299. 'tabs_offset_vert' => '20',
  5300. 'touchenabled' => 'on',
  5301. 'drag_block_vertical' => 'off',
  5302. 'swipe_velocity' => '75',
  5303. 'swipe_min_touches' => '50',
  5304. 'swipe_direction' => 'horizontal',
  5305. 'keyboard_navigation' => 'off',
  5306. 'keyboard_direction' => 'horizontal',
  5307. 'mousescroll_navigation' => 'off',
  5308. 'carousel_infinity' => 'on',
  5309. 'carousel_space' => '0',
  5310. 'carousel_borderr' => '0',
  5311. 'carousel_borderr_unit' => 'px',
  5312. 'carousel_padding_top' => '0',
  5313. 'carousel_padding_bottom' => '0',
  5314. 'carousel_maxitems' => '3',
  5315. 'carousel_stretch' => 'off',
  5316. 'carousel_fadeout' => 'on',
  5317. 'carousel_varyfade' => 'on',
  5318. 'carousel_rotation' => 'off',
  5319. 'carousel_varyrotate' => 'on',
  5320. 'carousel_maxrotation' => '65',
  5321. 'carousel_scale' => 'off',
  5322. 'carousel_varyscale' => 'off',
  5323. 'carousel_scaledown' => '55',
  5324. 'carousel_hposition' => 'center',
  5325. 'carousel_vposition' => 'center',
  5326. 'use_parallax' => 'on',
  5327. 'disable_parallax_mobile' => 'off',
  5328. 'parallax_type' => 'mouse',
  5329. 'parallax_origo' => 'slidercenter',
  5330. 'parallax_speed' => '2000',
  5331. 'parallax_level_1' => '2',
  5332. 'parallax_level_2' => '3',
  5333. 'parallax_level_3' => '4',
  5334. 'parallax_level_4' => '5',
  5335. 'parallax_level_5' => '6',
  5336. 'parallax_level_6' => '7',
  5337. 'parallax_level_7' => '12',
  5338. 'parallax_level_8' => '16',
  5339. 'parallax_level_9' => '10',
  5340. 'parallax_level_10' => '50',
  5341. 'lazy_load_type' => 'smart',
  5342. 'seo_optimization' => 'none',
  5343. 'simplify_ie8_ios4' => 'off',
  5344. 'show_alternative_type' => 'off',
  5345. 'show_alternate_image' => '',
  5346. 'jquery_noconflict' => 'off',
  5347. 'js_to_body' => 'false',
  5348. 'output_type' => 'none',
  5349. 'jquery_debugmode' => 'off',
  5350. 'slider_type' => 'fullwidth',
  5351. 'width' => '720',
  5352. 'width_notebook' => '720',
  5353. 'width_tablet' => '720',
  5354. 'width_mobile' => '720',
  5355. 'height' => '405',
  5356. 'height_notebook' => '405',
  5357. 'height_tablet' => '405',
  5358. 'height_mobile' => '405',
  5359. 'enable_custom_size_notebook' => 'off',
  5360. 'enable_custom_size_tablet' => 'off',
  5361. 'enable_custom_size_iphone' => 'off',
  5362. 'main_overflow_hidden' => 'off',
  5363. 'auto_height' => 'off',
  5364. 'min_height' => '',
  5365. 'custom_css' => '',
  5366. 'custom_javascript' => '',
  5367. ),
  5368. );
  5369. $presets[] = array (
  5370. 'settings' =>
  5371. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel.png', 'name' => 'Flat-Infinite', 'preset' => 'carouselpreset' ),
  5372. 'values' =>
  5373. array (
  5374. 'next_slide_on_window_focus' => 'off',
  5375. 'delay' => '9000',
  5376. 'start_js_after_delay' => '0',
  5377. 'image_source_type' => 'full',
  5378. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5379. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5380. //data.layertype - Layer Type (image,video,html)
  5381. //data.layersettings - Default Settings for Layer
  5382. //data.layer - Layer as jQuery Object
  5383. });',
  5384. 'start_with_slide' => '1',
  5385. 'stop_on_hover' => 'off',
  5386. 'stop_slider' => 'on',
  5387. 'stop_after_loops' => '0',
  5388. 'stop_at_slide' => '1',
  5389. 'shuffle' => 'off',
  5390. 'viewport_start' => 'wait',
  5391. 'viewport_area' => '80',
  5392. 'enable_progressbar' => 'on',
  5393. 'background_dotted_overlay' => 'none',
  5394. 'background_color' => '#111111',
  5395. 'padding' => '0',
  5396. 'show_background_image' => 'off',
  5397. 'background_image' => '',
  5398. 'bg_fit' => 'cover',
  5399. 'bg_repeat' => 'no-repeat',
  5400. 'bg_position' => 'center center',
  5401. 'position' => 'center',
  5402. 'use_spinner' => '-1',
  5403. 'spinner_color' => '#FFFFFF',
  5404. 'enable_arrows' => 'on',
  5405. 'navigation_arrow_style' => 'uranus',
  5406. 'arrows_always_on' => 'false',
  5407. 'hide_arrows' => '200',
  5408. 'hide_arrows_mobile' => '1200',
  5409. 'hide_arrows_on_mobile' => 'off',
  5410. 'arrows_under_hidden' => '600',
  5411. 'hide_arrows_over' => 'off',
  5412. 'arrows_over_hidden' => '0',
  5413. 'leftarrow_align_hor' => 'left',
  5414. 'leftarrow_align_vert' => 'center',
  5415. 'leftarrow_offset_hor' => '30',
  5416. 'leftarrow_offset_vert' => '0',
  5417. 'rightarrow_align_hor' => 'right',
  5418. 'rightarrow_align_vert' => 'center',
  5419. 'rightarrow_offset_hor' => '30',
  5420. 'rightarrow_offset_vert' => '0',
  5421. 'enable_bullets' => 'off',
  5422. 'navigation_bullets_style' => 'round-old',
  5423. 'bullets_space' => '5',
  5424. 'bullets_direction' => 'horizontal',
  5425. 'bullets_always_on' => 'true',
  5426. 'hide_bullets' => '200',
  5427. 'hide_bullets_mobile' => '1200',
  5428. 'hide_bullets_on_mobile' => 'on',
  5429. 'bullets_under_hidden' => '600',
  5430. 'hide_bullets_over' => 'off',
  5431. 'bullets_over_hidden' => '0',
  5432. 'bullets_align_hor' => 'center',
  5433. 'bullets_align_vert' => 'bottom',
  5434. 'bullets_offset_hor' => '0',
  5435. 'bullets_offset_vert' => '30',
  5436. 'enable_thumbnails' => 'off',
  5437. 'thumbnails_padding' => '20',
  5438. 'span_thumbnails_wrapper' => 'on',
  5439. 'thumbnails_wrapper_color' => '#222222',
  5440. 'thumbnails_wrapper_opacity' => '100',
  5441. 'thumbnails_style' => 'navbar',
  5442. 'thumb_amount' => '9',
  5443. 'thumbnails_space' => '10',
  5444. 'thumbnail_direction' => 'horizontal',
  5445. 'thumb_width' => '60',
  5446. 'thumb_height' => '60',
  5447. 'thumb_width_min' => '60',
  5448. 'thumbs_always_on' => 'false',
  5449. 'hide_thumbs' => '200',
  5450. 'hide_thumbs_mobile' => '1200',
  5451. 'hide_thumbs_on_mobile' => 'off',
  5452. 'thumbs_under_hidden' => '0',
  5453. 'hide_thumbs_over' => 'off',
  5454. 'thumbs_over_hidden' => '0',
  5455. 'thumbnails_inner_outer' => 'outer-bottom',
  5456. 'thumbnails_align_hor' => 'center',
  5457. 'thumbnails_align_vert' => 'bottom',
  5458. 'thumbnails_offset_hor' => '0',
  5459. 'thumbnails_offset_vert' => '0',
  5460. 'enable_tabs' => 'off',
  5461. 'tabs_padding' => '5',
  5462. 'span_tabs_wrapper' => 'off',
  5463. 'tabs_wrapper_color' => 'transparent',
  5464. 'tabs_wrapper_opacity' => '5',
  5465. 'tabs_style' => '',
  5466. 'tabs_amount' => '5',
  5467. 'tabs_space' => '5',
  5468. 'tabs_direction' => 'horizontal',
  5469. 'tabs_width' => '100',
  5470. 'tabs_height' => '50',
  5471. 'tabs_width_min' => '100',
  5472. 'tabs_always_on' => 'false',
  5473. 'hide_tabs' => '200',
  5474. 'hide_tabs_mobile' => '1200',
  5475. 'hide_tabs_on_mobile' => 'off',
  5476. 'tabs_under_hidden' => '0',
  5477. 'hide_tabs_over' => 'off',
  5478. 'tabs_over_hidden' => '0',
  5479. 'tabs_inner_outer' => 'inner',
  5480. 'tabs_align_hor' => 'center',
  5481. 'tabs_align_vert' => 'bottom',
  5482. 'tabs_offset_hor' => '0',
  5483. 'tabs_offset_vert' => '20',
  5484. 'touchenabled' => 'on',
  5485. 'drag_block_vertical' => 'off',
  5486. 'swipe_velocity' => '75',
  5487. 'swipe_min_touches' => '50',
  5488. 'swipe_direction' => 'horizontal',
  5489. 'keyboard_navigation' => 'off',
  5490. 'keyboard_direction' => 'horizontal',
  5491. 'mousescroll_navigation' => 'off',
  5492. 'carousel_infinity' => 'on',
  5493. 'carousel_space' => '0',
  5494. 'carousel_borderr' => '0',
  5495. 'carousel_borderr_unit' => 'px',
  5496. 'carousel_padding_top' => '0',
  5497. 'carousel_padding_bottom' => '0',
  5498. 'carousel_maxitems' => '3',
  5499. 'carousel_stretch' => 'off',
  5500. 'carousel_fadeout' => 'on',
  5501. 'carousel_varyfade' => 'on',
  5502. 'carousel_rotation' => 'off',
  5503. 'carousel_varyrotate' => 'on',
  5504. 'carousel_maxrotation' => '65',
  5505. 'carousel_scale' => 'off',
  5506. 'carousel_varyscale' => 'off',
  5507. 'carousel_scaledown' => '55',
  5508. 'carousel_hposition' => 'center',
  5509. 'carousel_vposition' => 'center',
  5510. 'use_parallax' => 'on',
  5511. 'disable_parallax_mobile' => 'off',
  5512. 'parallax_type' => 'mouse',
  5513. 'parallax_origo' => 'slidercenter',
  5514. 'parallax_speed' => '2000',
  5515. 'parallax_level_1' => '2',
  5516. 'parallax_level_2' => '3',
  5517. 'parallax_level_3' => '4',
  5518. 'parallax_level_4' => '5',
  5519. 'parallax_level_5' => '6',
  5520. 'parallax_level_6' => '7',
  5521. 'parallax_level_7' => '12',
  5522. 'parallax_level_8' => '16',
  5523. 'parallax_level_9' => '10',
  5524. 'parallax_level_10' => '50',
  5525. 'lazy_load_type' => 'smart',
  5526. 'seo_optimization' => 'none',
  5527. 'simplify_ie8_ios4' => 'off',
  5528. 'show_alternative_type' => 'off',
  5529. 'show_alternate_image' => '',
  5530. 'jquery_noconflict' => 'off',
  5531. 'js_to_body' => 'false',
  5532. 'output_type' => 'none',
  5533. 'jquery_debugmode' => 'off',
  5534. 'slider_type' => 'fullwidth',
  5535. 'width' => '720',
  5536. 'width_notebook' => '720',
  5537. 'width_tablet' => '720',
  5538. 'width_mobile' => '720',
  5539. 'height' => '405',
  5540. 'height_notebook' => '405',
  5541. 'height_tablet' => '405',
  5542. 'height_mobile' => '405',
  5543. 'enable_custom_size_notebook' => 'off',
  5544. 'enable_custom_size_tablet' => 'off',
  5545. 'enable_custom_size_iphone' => 'off',
  5546. 'main_overflow_hidden' => 'off',
  5547. 'auto_height' => 'off',
  5548. 'min_height' => '',
  5549. 'custom_css' => '',
  5550. 'custom_javascript' => '',
  5551. ),
  5552. );
  5553. $presets[] = array (
  5554. 'settings' =>
  5555. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs_left.png', 'name' => 'Flat-Thumbs-Left', 'preset' => 'carouselpreset' ),
  5556. 'values' =>
  5557. array (
  5558. 'next_slide_on_window_focus' => 'off',
  5559. 'delay' => '9000',
  5560. 'start_js_after_delay' => '0',
  5561. 'image_source_type' => 'full',
  5562. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5563. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5564. //data.layertype - Layer Type (image,video,html)
  5565. //data.layersettings - Default Settings for Layer
  5566. //data.layer - Layer as jQuery Object
  5567. });',
  5568. 'start_with_slide' => '1',
  5569. 'stop_on_hover' => 'off',
  5570. 'stop_slider' => 'on',
  5571. 'stop_after_loops' => '0',
  5572. 'stop_at_slide' => '1',
  5573. 'shuffle' => 'off',
  5574. 'viewport_start' => 'wait',
  5575. 'viewport_area' => '80',
  5576. 'enable_progressbar' => 'on',
  5577. 'background_dotted_overlay' => 'none',
  5578. 'background_color' => '#111111',
  5579. 'padding' => '0',
  5580. 'show_background_image' => 'off',
  5581. 'background_image' => '',
  5582. 'bg_fit' => 'cover',
  5583. 'bg_repeat' => 'no-repeat',
  5584. 'bg_position' => 'center center',
  5585. 'position' => 'center',
  5586. 'use_spinner' => '-1',
  5587. 'spinner_color' => '#FFFFFF',
  5588. 'enable_arrows' => 'on',
  5589. 'navigation_arrow_style' => 'uranus',
  5590. 'arrows_always_on' => 'false',
  5591. 'hide_arrows' => '200',
  5592. 'hide_arrows_mobile' => '1200',
  5593. 'hide_arrows_on_mobile' => 'off',
  5594. 'arrows_under_hidden' => '600',
  5595. 'hide_arrows_over' => 'off',
  5596. 'arrows_over_hidden' => '0',
  5597. 'leftarrow_align_hor' => 'left',
  5598. 'leftarrow_align_vert' => 'center',
  5599. 'leftarrow_offset_hor' => '30',
  5600. 'leftarrow_offset_vert' => '0',
  5601. 'rightarrow_align_hor' => 'right',
  5602. 'rightarrow_align_vert' => 'center',
  5603. 'rightarrow_offset_hor' => '30',
  5604. 'rightarrow_offset_vert' => '0',
  5605. 'enable_bullets' => 'off',
  5606. 'navigation_bullets_style' => 'round-old',
  5607. 'bullets_space' => '5',
  5608. 'bullets_direction' => 'horizontal',
  5609. 'bullets_always_on' => 'true',
  5610. 'hide_bullets' => '200',
  5611. 'hide_bullets_mobile' => '1200',
  5612. 'hide_bullets_on_mobile' => 'on',
  5613. 'bullets_under_hidden' => '600',
  5614. 'hide_bullets_over' => 'off',
  5615. 'bullets_over_hidden' => '0',
  5616. 'bullets_align_hor' => 'center',
  5617. 'bullets_align_vert' => 'bottom',
  5618. 'bullets_offset_hor' => '0',
  5619. 'bullets_offset_vert' => '30',
  5620. 'enable_thumbnails' => 'on',
  5621. 'thumbnails_padding' => '20',
  5622. 'span_thumbnails_wrapper' => 'on',
  5623. 'thumbnails_wrapper_color' => '#222222',
  5624. 'thumbnails_wrapper_opacity' => '100',
  5625. 'thumbnails_style' => 'navbar',
  5626. 'thumb_amount' => '9',
  5627. 'thumbnails_space' => '10',
  5628. 'thumbnail_direction' => 'vertical',
  5629. 'thumb_width' => '60',
  5630. 'thumb_height' => '60',
  5631. 'thumb_width_min' => '60',
  5632. 'thumbs_always_on' => 'false',
  5633. 'hide_thumbs' => '200',
  5634. 'hide_thumbs_mobile' => '1200',
  5635. 'hide_thumbs_on_mobile' => 'off',
  5636. 'thumbs_under_hidden' => '0',
  5637. 'hide_thumbs_over' => 'off',
  5638. 'thumbs_over_hidden' => '0',
  5639. 'thumbnails_inner_outer' => 'outer-left',
  5640. 'thumbnails_align_hor' => 'left',
  5641. 'thumbnails_align_vert' => 'top',
  5642. 'thumbnails_offset_hor' => '0',
  5643. 'thumbnails_offset_vert' => '0',
  5644. 'enable_tabs' => 'off',
  5645. 'tabs_padding' => '5',
  5646. 'span_tabs_wrapper' => 'off',
  5647. 'tabs_wrapper_color' => 'transparent',
  5648. 'tabs_wrapper_opacity' => '5',
  5649. 'tabs_style' => '',
  5650. 'tabs_amount' => '5',
  5651. 'tabs_space' => '5',
  5652. 'tabs_direction' => 'horizontal',
  5653. 'tabs_width' => '100',
  5654. 'tabs_height' => '50',
  5655. 'tabs_width_min' => '100',
  5656. 'tabs_always_on' => 'false',
  5657. 'hide_tabs' => '200',
  5658. 'hide_tabs_mobile' => '1200',
  5659. 'hide_tabs_on_mobile' => 'off',
  5660. 'tabs_under_hidden' => '0',
  5661. 'hide_tabs_over' => 'off',
  5662. 'tabs_over_hidden' => '0',
  5663. 'tabs_inner_outer' => 'inner',
  5664. 'tabs_align_hor' => 'center',
  5665. 'tabs_align_vert' => 'bottom',
  5666. 'tabs_offset_hor' => '0',
  5667. 'tabs_offset_vert' => '20',
  5668. 'touchenabled' => 'on',
  5669. 'drag_block_vertical' => 'off',
  5670. 'swipe_velocity' => '75',
  5671. 'swipe_min_touches' => '50',
  5672. 'swipe_direction' => 'horizontal',
  5673. 'keyboard_navigation' => 'off',
  5674. 'keyboard_direction' => 'horizontal',
  5675. 'mousescroll_navigation' => 'off',
  5676. 'carousel_infinity' => 'on',
  5677. 'carousel_space' => '0',
  5678. 'carousel_borderr' => '0',
  5679. 'carousel_borderr_unit' => 'px',
  5680. 'carousel_padding_top' => '0',
  5681. 'carousel_padding_bottom' => '0',
  5682. 'carousel_maxitems' => '3',
  5683. 'carousel_stretch' => 'off',
  5684. 'carousel_fadeout' => 'on',
  5685. 'carousel_varyfade' => 'on',
  5686. 'carousel_rotation' => 'off',
  5687. 'carousel_varyrotate' => 'on',
  5688. 'carousel_maxrotation' => '65',
  5689. 'carousel_scale' => 'off',
  5690. 'carousel_varyscale' => 'off',
  5691. 'carousel_scaledown' => '55',
  5692. 'carousel_hposition' => 'center',
  5693. 'carousel_vposition' => 'center',
  5694. 'use_parallax' => 'on',
  5695. 'disable_parallax_mobile' => 'off',
  5696. 'parallax_type' => 'mouse',
  5697. 'parallax_origo' => 'slidercenter',
  5698. 'parallax_speed' => '2000',
  5699. 'parallax_level_1' => '2',
  5700. 'parallax_level_2' => '3',
  5701. 'parallax_level_3' => '4',
  5702. 'parallax_level_4' => '5',
  5703. 'parallax_level_5' => '6',
  5704. 'parallax_level_6' => '7',
  5705. 'parallax_level_7' => '12',
  5706. 'parallax_level_8' => '16',
  5707. 'parallax_level_9' => '10',
  5708. 'parallax_level_10' => '50',
  5709. 'lazy_load_type' => 'smart',
  5710. 'seo_optimization' => 'none',
  5711. 'simplify_ie8_ios4' => 'off',
  5712. 'show_alternative_type' => 'off',
  5713. 'show_alternate_image' => '',
  5714. 'jquery_noconflict' => 'off',
  5715. 'js_to_body' => 'false',
  5716. 'output_type' => 'none',
  5717. 'jquery_debugmode' => 'off',
  5718. 'slider_type' => 'fullwidth',
  5719. 'width' => '720',
  5720. 'width_notebook' => '720',
  5721. 'width_tablet' => '720',
  5722. 'width_mobile' => '720',
  5723. 'height' => '405',
  5724. 'height_notebook' => '405',
  5725. 'height_tablet' => '405',
  5726. 'height_mobile' => '405',
  5727. 'enable_custom_size_notebook' => 'off',
  5728. 'enable_custom_size_tablet' => 'off',
  5729. 'enable_custom_size_iphone' => 'off',
  5730. 'main_overflow_hidden' => 'off',
  5731. 'auto_height' => 'off',
  5732. 'min_height' => '',
  5733. 'custom_css' => '',
  5734. 'custom_javascript' => '',
  5735. ),
  5736. );
  5737. $presets[] = array (
  5738. 'settings' =>
  5739. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_thumbs_right_fullscreen.png', 'name' => 'Full-Screen-Thumbs-Right', 'preset' => 'carouselpreset' ),
  5740. 'values' =>
  5741. array (
  5742. 'next_slide_on_window_focus' => 'off',
  5743. 'delay' => '9000',
  5744. 'start_js_after_delay' => '0',
  5745. 'image_source_type' => 'full',
  5746. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5747. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5748. //data.layertype - Layer Type (image,video,html)
  5749. //data.layersettings - Default Settings for Layer
  5750. //data.layer - Layer as jQuery Object
  5751. });',
  5752. 'start_with_slide' => '1',
  5753. 'stop_on_hover' => 'off',
  5754. 'stop_slider' => 'on',
  5755. 'stop_after_loops' => '0',
  5756. 'stop_at_slide' => '1',
  5757. 'shuffle' => 'off',
  5758. 'viewport_start' => 'wait',
  5759. 'viewport_area' => '80',
  5760. 'enable_progressbar' => 'on',
  5761. 'background_dotted_overlay' => 'none',
  5762. 'background_color' => '#111111',
  5763. 'padding' => '0',
  5764. 'show_background_image' => 'off',
  5765. 'background_image' => '',
  5766. 'bg_fit' => 'cover',
  5767. 'bg_repeat' => 'no-repeat',
  5768. 'bg_position' => 'center center',
  5769. 'position' => 'center',
  5770. 'use_spinner' => '-1',
  5771. 'spinner_color' => '#FFFFFF',
  5772. 'enable_arrows' => 'on',
  5773. 'navigation_arrow_style' => 'uranus',
  5774. 'arrows_always_on' => 'false',
  5775. 'hide_arrows' => '200',
  5776. 'hide_arrows_mobile' => '1200',
  5777. 'hide_arrows_on_mobile' => 'off',
  5778. 'arrows_under_hidden' => '600',
  5779. 'hide_arrows_over' => 'off',
  5780. 'arrows_over_hidden' => '0',
  5781. 'leftarrow_align_hor' => 'left',
  5782. 'leftarrow_align_vert' => 'center',
  5783. 'leftarrow_offset_hor' => '30',
  5784. 'leftarrow_offset_vert' => '0',
  5785. 'rightarrow_align_hor' => 'right',
  5786. 'rightarrow_align_vert' => 'center',
  5787. 'rightarrow_offset_hor' => '30',
  5788. 'rightarrow_offset_vert' => '0',
  5789. 'enable_bullets' => 'off',
  5790. 'navigation_bullets_style' => 'round-old',
  5791. 'bullets_space' => '5',
  5792. 'bullets_direction' => 'horizontal',
  5793. 'bullets_always_on' => 'true',
  5794. 'hide_bullets' => '200',
  5795. 'hide_bullets_mobile' => '1200',
  5796. 'hide_bullets_on_mobile' => 'on',
  5797. 'bullets_under_hidden' => '600',
  5798. 'hide_bullets_over' => 'off',
  5799. 'bullets_over_hidden' => '0',
  5800. 'bullets_align_hor' => 'center',
  5801. 'bullets_align_vert' => 'bottom',
  5802. 'bullets_offset_hor' => '0',
  5803. 'bullets_offset_vert' => '30',
  5804. 'enable_thumbnails' => 'on',
  5805. 'thumbnails_padding' => '20',
  5806. 'span_thumbnails_wrapper' => 'on',
  5807. 'thumbnails_wrapper_color' => '#222222',
  5808. 'thumbnails_wrapper_opacity' => '100',
  5809. 'thumbnails_style' => 'navbar',
  5810. 'thumb_amount' => '9',
  5811. 'thumbnails_space' => '10',
  5812. 'thumbnail_direction' => 'vertical',
  5813. 'thumb_width' => '60',
  5814. 'thumb_height' => '60',
  5815. 'thumb_width_min' => '60',
  5816. 'thumbs_always_on' => 'false',
  5817. 'hide_thumbs' => '200',
  5818. 'hide_thumbs_mobile' => '1200',
  5819. 'hide_thumbs_on_mobile' => 'off',
  5820. 'thumbs_under_hidden' => '0',
  5821. 'hide_thumbs_over' => 'off',
  5822. 'thumbs_over_hidden' => '0',
  5823. 'thumbnails_inner_outer' => 'outer-right',
  5824. 'thumbnails_align_hor' => 'right',
  5825. 'thumbnails_align_vert' => 'top',
  5826. 'thumbnails_offset_hor' => '0',
  5827. 'thumbnails_offset_vert' => '0',
  5828. 'enable_tabs' => 'off',
  5829. 'tabs_padding' => '5',
  5830. 'span_tabs_wrapper' => 'off',
  5831. 'tabs_wrapper_color' => 'transparent',
  5832. 'tabs_wrapper_opacity' => '5',
  5833. 'tabs_style' => '',
  5834. 'tabs_amount' => '5',
  5835. 'tabs_space' => '5',
  5836. 'tabs_direction' => 'horizontal',
  5837. 'tabs_width' => '100',
  5838. 'tabs_height' => '50',
  5839. 'tabs_width_min' => '100',
  5840. 'tabs_always_on' => 'false',
  5841. 'hide_tabs' => '200',
  5842. 'hide_tabs_mobile' => '1200',
  5843. 'hide_tabs_on_mobile' => 'off',
  5844. 'tabs_under_hidden' => '0',
  5845. 'hide_tabs_over' => 'off',
  5846. 'tabs_over_hidden' => '0',
  5847. 'tabs_inner_outer' => 'inner',
  5848. 'tabs_align_hor' => 'center',
  5849. 'tabs_align_vert' => 'bottom',
  5850. 'tabs_offset_hor' => '0',
  5851. 'tabs_offset_vert' => '20',
  5852. 'touchenabled' => 'on',
  5853. 'drag_block_vertical' => 'off',
  5854. 'swipe_velocity' => '75',
  5855. 'swipe_min_touches' => '50',
  5856. 'swipe_direction' => 'horizontal',
  5857. 'keyboard_navigation' => 'off',
  5858. 'keyboard_direction' => 'horizontal',
  5859. 'mousescroll_navigation' => 'off',
  5860. 'carousel_infinity' => 'on',
  5861. 'carousel_space' => '0',
  5862. 'carousel_borderr' => '0',
  5863. 'carousel_borderr_unit' => 'px',
  5864. 'carousel_padding_top' => '0',
  5865. 'carousel_padding_bottom' => '0',
  5866. 'carousel_maxitems' => '3',
  5867. 'carousel_stretch' => 'off',
  5868. 'carousel_fadeout' => 'on',
  5869. 'carousel_varyfade' => 'on',
  5870. 'carousel_rotation' => 'off',
  5871. 'carousel_varyrotate' => 'on',
  5872. 'carousel_maxrotation' => '65',
  5873. 'carousel_scale' => 'off',
  5874. 'carousel_varyscale' => 'off',
  5875. 'carousel_scaledown' => '55',
  5876. 'carousel_hposition' => 'center',
  5877. 'carousel_vposition' => 'center',
  5878. 'use_parallax' => 'on',
  5879. 'disable_parallax_mobile' => 'off',
  5880. 'parallax_type' => 'mouse',
  5881. 'parallax_origo' => 'slidercenter',
  5882. 'parallax_speed' => '2000',
  5883. 'parallax_level_1' => '2',
  5884. 'parallax_level_2' => '3',
  5885. 'parallax_level_3' => '4',
  5886. 'parallax_level_4' => '5',
  5887. 'parallax_level_5' => '6',
  5888. 'parallax_level_6' => '7',
  5889. 'parallax_level_7' => '12',
  5890. 'parallax_level_8' => '16',
  5891. 'parallax_level_9' => '10',
  5892. 'parallax_level_10' => '50',
  5893. 'lazy_load_type' => 'smart',
  5894. 'seo_optimization' => 'none',
  5895. 'simplify_ie8_ios4' => 'off',
  5896. 'show_alternative_type' => 'off',
  5897. 'show_alternate_image' => '',
  5898. 'jquery_noconflict' => 'off',
  5899. 'js_to_body' => 'false',
  5900. 'output_type' => 'none',
  5901. 'jquery_debugmode' => 'off',
  5902. 'slider_type' => 'fullscreen',
  5903. 'width' => '900',
  5904. 'width_notebook' => '720',
  5905. 'width_tablet' => '720',
  5906. 'width_mobile' => '720',
  5907. 'height' => '720',
  5908. 'height_notebook' => '405',
  5909. 'height_tablet' => '405',
  5910. 'height_mobile' => '405',
  5911. 'enable_custom_size_notebook' => 'off',
  5912. 'enable_custom_size_tablet' => 'off',
  5913. 'enable_custom_size_iphone' => 'off',
  5914. 'main_overflow_hidden' => 'off',
  5915. 'auto_height' => 'off',
  5916. 'min_height' => '',
  5917. 'custom_css' => '',
  5918. 'custom_javascript' => '',
  5919. ),
  5920. );
  5921. $presets[] = array (
  5922. 'settings' =>
  5923. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Full-Screen', 'preset' => 'carouselpreset' ),
  5924. 'values' =>
  5925. array (
  5926. 'next_slide_on_window_focus' => 'off',
  5927. 'delay' => '9000',
  5928. 'start_js_after_delay' => '0',
  5929. 'image_source_type' => 'full',
  5930. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  5931. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  5932. //data.layertype - Layer Type (image,video,html)
  5933. //data.layersettings - Default Settings for Layer
  5934. //data.layer - Layer as jQuery Object
  5935. });',
  5936. 'start_with_slide' => '1',
  5937. 'first_transition_active' => 'on',
  5938. 'first_transition_type' => 'fade',
  5939. 'first_transition_duration' => '1500',
  5940. 'first_transition_slot_amount' => '7',
  5941. 'stop_on_hover' => 'off',
  5942. 'stop_slider' => 'on',
  5943. 'stop_after_loops' => '0',
  5944. 'stop_at_slide' => '1',
  5945. 'shuffle' => 'off',
  5946. 'viewport_start' => 'wait',
  5947. 'viewport_area' => '80',
  5948. 'enable_progressbar' => 'on',
  5949. 'background_dotted_overlay' => 'none',
  5950. 'background_color' => 'transparent',
  5951. 'padding' => '0',
  5952. 'show_background_image' => 'off',
  5953. 'background_image' => '',
  5954. 'bg_fit' => 'cover',
  5955. 'bg_repeat' => 'no-repeat',
  5956. 'bg_position' => 'center center',
  5957. 'position' => 'center',
  5958. 'use_spinner' => '-1',
  5959. 'spinner_color' => '#FFFFFF',
  5960. 'enable_arrows' => 'on',
  5961. 'navigation_arrow_style' => 'navbar-old',
  5962. 'arrows_always_on' => 'false',
  5963. 'hide_arrows' => '200',
  5964. 'hide_arrows_mobile' => '1200',
  5965. 'hide_arrows_on_mobile' => 'off',
  5966. 'arrows_under_hidden' => '600',
  5967. 'hide_arrows_over' => 'off',
  5968. 'arrows_over_hidden' => '0',
  5969. 'leftarrow_align_hor' => 'left',
  5970. 'leftarrow_align_vert' => 'center',
  5971. 'leftarrow_offset_hor' => '30',
  5972. 'leftarrow_offset_vert' => '0',
  5973. 'rightarrow_align_hor' => 'right',
  5974. 'rightarrow_align_vert' => 'center',
  5975. 'rightarrow_offset_hor' => '30',
  5976. 'rightarrow_offset_vert' => '0',
  5977. 'enable_bullets' => 'off',
  5978. 'navigation_bullets_style' => 'round-old',
  5979. 'bullets_space' => '5',
  5980. 'bullets_direction' => 'horizontal',
  5981. 'bullets_always_on' => 'true',
  5982. 'hide_bullets' => '200',
  5983. 'hide_bullets_mobile' => '1200',
  5984. 'hide_bullets_on_mobile' => 'on',
  5985. 'bullets_under_hidden' => '600',
  5986. 'hide_bullets_over' => 'off',
  5987. 'bullets_over_hidden' => '0',
  5988. 'bullets_align_hor' => 'center',
  5989. 'bullets_align_vert' => 'bottom',
  5990. 'bullets_offset_hor' => '0',
  5991. 'bullets_offset_vert' => '30',
  5992. 'enable_thumbnails' => 'on',
  5993. 'thumbnails_padding' => '20',
  5994. 'span_thumbnails_wrapper' => 'on',
  5995. 'thumbnails_wrapper_color' => '#000000',
  5996. 'thumbnails_wrapper_opacity' => '15',
  5997. 'thumbnails_style' => 'navbar',
  5998. 'thumb_amount' => '9',
  5999. 'thumbnails_space' => '10',
  6000. 'thumbnail_direction' => 'horizontal',
  6001. 'thumb_width' => '60',
  6002. 'thumb_height' => '60',
  6003. 'thumb_width_min' => '60',
  6004. 'thumbs_always_on' => 'false',
  6005. 'hide_thumbs' => '200',
  6006. 'hide_thumbs_mobile' => '1200',
  6007. 'hide_thumbs_on_mobile' => 'off',
  6008. 'thumbs_under_hidden' => '0',
  6009. 'hide_thumbs_over' => 'off',
  6010. 'thumbs_over_hidden' => '0',
  6011. 'thumbnails_inner_outer' => 'inner',
  6012. 'thumbnails_align_hor' => 'center',
  6013. 'thumbnails_align_vert' => 'bottom',
  6014. 'thumbnails_offset_hor' => '0',
  6015. 'thumbnails_offset_vert' => '0',
  6016. 'enable_tabs' => 'off',
  6017. 'tabs_padding' => '5',
  6018. 'span_tabs_wrapper' => 'off',
  6019. 'tabs_wrapper_color' => 'transparent',
  6020. 'tabs_wrapper_opacity' => '5',
  6021. 'tabs_style' => '',
  6022. 'tabs_amount' => '5',
  6023. 'tabs_space' => '5',
  6024. 'tabs_direction' => 'horizontal',
  6025. 'tabs_width' => '100',
  6026. 'tabs_height' => '50',
  6027. 'tabs_width_min' => '100',
  6028. 'tabs_always_on' => 'false',
  6029. 'hide_tabs' => '200',
  6030. 'hide_tabs_mobile' => '1200',
  6031. 'hide_tabs_on_mobile' => 'off',
  6032. 'tabs_under_hidden' => '0',
  6033. 'hide_tabs_over' => 'off',
  6034. 'tabs_over_hidden' => '0',
  6035. 'tabs_inner_outer' => 'inner',
  6036. 'tabs_align_hor' => 'center',
  6037. 'tabs_align_vert' => 'bottom',
  6038. 'tabs_offset_hor' => '0',
  6039. 'tabs_offset_vert' => '20',
  6040. 'touchenabled' => 'on',
  6041. 'drag_block_vertical' => 'off',
  6042. 'swipe_velocity' => '75',
  6043. 'swipe_min_touches' => '50',
  6044. 'swipe_direction' => 'horizontal',
  6045. 'keyboard_navigation' => 'off',
  6046. 'keyboard_direction' => 'horizontal',
  6047. 'mousescroll_navigation' => 'off',
  6048. 'carousel_infinity' => 'on',
  6049. 'carousel_space' => '-150',
  6050. 'carousel_borderr' => '0',
  6051. 'carousel_borderr_unit' => '%',
  6052. 'carousel_padding_top' => '0',
  6053. 'carousel_padding_bottom' => '0',
  6054. 'carousel_maxitems' => '5',
  6055. 'carousel_stretch' => 'off',
  6056. 'carousel_fadeout' => 'on',
  6057. 'carousel_varyfade' => 'on',
  6058. 'carousel_rotation' => 'on',
  6059. 'carousel_varyrotate' => 'on',
  6060. 'carousel_maxrotation' => '65',
  6061. 'carousel_scale' => 'on',
  6062. 'carousel_varyscale' => 'off',
  6063. 'carousel_scaledown' => '55',
  6064. 'carousel_hposition' => 'center',
  6065. 'carousel_vposition' => 'center',
  6066. 'use_parallax' => 'on',
  6067. 'disable_parallax_mobile' => 'off',
  6068. 'parallax_type' => 'mouse',
  6069. 'parallax_origo' => 'slidercenter',
  6070. 'parallax_speed' => '2000',
  6071. 'parallax_level_1' => '2',
  6072. 'parallax_level_2' => '3',
  6073. 'parallax_level_3' => '4',
  6074. 'parallax_level_4' => '5',
  6075. 'parallax_level_5' => '6',
  6076. 'parallax_level_6' => '7',
  6077. 'parallax_level_7' => '12',
  6078. 'parallax_level_8' => '16',
  6079. 'parallax_level_9' => '10',
  6080. 'parallax_level_10' => '50',
  6081. 'lazy_load_type' => 'smart',
  6082. 'seo_optimization' => 'none',
  6083. 'simplify_ie8_ios4' => 'off',
  6084. 'show_alternative_type' => 'off',
  6085. 'show_alternate_image' => '',
  6086. 'jquery_noconflict' => 'off',
  6087. 'js_to_body' => 'false',
  6088. 'output_type' => 'none',
  6089. 'jquery_debugmode' => 'off',
  6090. 'slider_type' => 'fullscreen',
  6091. 'width' => '800',
  6092. 'width_notebook' => '600',
  6093. 'width_tablet' => '600',
  6094. 'width_mobile' => '600',
  6095. 'height' => '800',
  6096. 'height_notebook' => '600',
  6097. 'height_tablet' => '600',
  6098. 'height_mobile' => '600',
  6099. 'enable_custom_size_notebook' => 'off',
  6100. 'enable_custom_size_tablet' => 'off',
  6101. 'enable_custom_size_iphone' => 'off',
  6102. 'main_overflow_hidden' => 'off',
  6103. 'auto_height' => 'off',
  6104. 'min_height' => '',
  6105. 'custom_css' => '',
  6106. 'custom_javascript' => '',
  6107. ),
  6108. );
  6109. $presets[] = array (
  6110. 'settings' =>
  6111. array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_full_rounded.png', 'name' => 'Cover-Flow-Rounded', 'preset' => 'carouselpreset' ),
  6112. 'values' =>
  6113. array (
  6114. 'next_slide_on_window_focus' => 'off',
  6115. 'delay' => '9000',
  6116. 'start_js_after_delay' => '0',
  6117. 'image_source_type' => 'full',
  6118. 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
  6119. //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
  6120. //data.layertype - Layer Type (image,video,html)
  6121. //data.layersettings - Default Settings for Layer
  6122. //data.layer - Layer as jQuery Object
  6123. });',
  6124. 'start_with_slide' => '1',
  6125. 'first_transition_active' => 'on',
  6126. 'first_transition_type' => 'fade',
  6127. 'first_transition_duration' => '1500',
  6128. 'first_transition_slot_amount' => '7',
  6129. 'stop_on_hover' => 'off',
  6130. 'stop_slider' => 'on',
  6131. 'stop_after_loops' => '0',
  6132. 'stop_at_slide' => '1',
  6133. 'shuffle' => 'off',
  6134. 'viewport_start' => 'wait',
  6135. 'viewport_area' => '80',
  6136. 'enable_progressbar' => 'on',
  6137. 'background_dotted_overlay' => 'none',
  6138. 'background_color' => 'transparent',
  6139. 'padding' => '0',
  6140. 'show_background_image' => 'off',
  6141. 'background_image' => '',
  6142. 'bg_fit' => 'cover',
  6143. 'bg_repeat' => 'no-repeat',
  6144. 'bg_position' => 'center center',
  6145. 'position' => 'center',
  6146. 'use_spinner' => '-1',
  6147. 'spinner_color' => '#FFFFFF',
  6148. 'enable_arrows' => 'on',
  6149. 'navigation_arrow_style' => 'round',
  6150. 'arrows_always_on' => 'false',
  6151. 'hide_arrows' => '200',
  6152. 'hide_arrows_mobile' => '1200',
  6153. 'hide_arrows_on_mobile' => 'off',
  6154. 'arrows_under_hidden' => '600',
  6155. 'hide_arrows_over' => 'off',
  6156. 'arrows_over_hidden' => '0',
  6157. 'leftarrow_align_hor' => 'left',
  6158. 'leftarrow_align_vert' => 'center',
  6159. 'leftarrow_offset_hor' => '30',
  6160. 'leftarrow_offset_vert' => '0',
  6161. 'rightarrow_align_hor' => 'right',
  6162. 'rightarrow_align_vert' => 'center',
  6163. 'rightarrow_offset_hor' => '30',
  6164. 'rightarrow_offset_vert' => '0',
  6165. 'enable_bullets' => 'off',
  6166. 'navigation_bullets_style' => 'round-old',
  6167. 'bullets_space' => '5',
  6168. 'bullets_direction' => 'horizontal',
  6169. 'bullets_always_on' => 'true',
  6170. 'hide_bullets' => '200',
  6171. 'hide_bullets_mobile' => '1200',
  6172. 'hide_bullets_on_mobile' => 'on',
  6173. 'bullets_under_hidden' => '600',
  6174. 'hide_bullets_over' => 'off',
  6175. 'bullets_over_hidden' => '0',
  6176. 'bullets_align_hor' => 'center',
  6177. 'bullets_align_vert' => 'bottom',
  6178. 'bullets_offset_hor' => '0',
  6179. 'bullets_offset_vert' => '30',
  6180. 'enable_thumbnails' => 'on',
  6181. 'thumbnails_padding' => '20',
  6182. 'span_thumbnails_wrapper' => 'on',
  6183. 'thumbnails_wrapper_color' => '#000000',
  6184. 'thumbnails_wrapper_opacity' => '0',
  6185. 'thumbnails_style' => 'preview1',
  6186. 'thumb_amount' => '9',
  6187. 'thumbnails_space' => '10',
  6188. 'thumbnail_direction' => 'horizontal',
  6189. 'thumb_width' => '60',
  6190. 'thumb_height' => '60',
  6191. 'thumb_width_min' => '60',
  6192. 'thumbs_always_on' => 'false',
  6193. 'hide_thumbs' => '200',
  6194. 'hide_thumbs_mobile' => '1200',
  6195. 'hide_thumbs_on_mobile' => 'off',
  6196. 'thumbs_under_hidden' => '0',
  6197. 'hide_thumbs_over' => 'off',
  6198. 'thumbs_over_hidden' => '0',
  6199. 'thumbnails_inner_outer' => 'inner',
  6200. 'thumbnails_align_hor' => 'center',
  6201. 'thumbnails_align_vert' => 'bottom',
  6202. 'thumbnails_offset_hor' => '0',
  6203. 'thumbnails_offset_vert' => '0',
  6204. 'enable_tabs' => 'off',
  6205. 'tabs_padding' => '5',
  6206. 'span_tabs_wrapper' => 'off',
  6207. 'tabs_wrapper_color' => 'transparent',
  6208. 'tabs_wrapper_opacity' => '5',
  6209. 'tabs_style' => '',
  6210. 'tabs_amount' => '5',
  6211. 'tabs_space' => '5',
  6212. 'tabs_direction' => 'horizontal',
  6213. 'tabs_width' => '100',
  6214. 'tabs_height' => '50',
  6215. 'tabs_width_min' => '100',
  6216. 'tabs_always_on' => 'false',
  6217. 'hide_tabs' => '200',
  6218. 'hide_tabs_mobile' => '1200',
  6219. 'hide_tabs_on_mobile' => 'off',
  6220. 'tabs_under_hidden' => '0',
  6221. 'hide_tabs_over' => 'off',
  6222. 'tabs_over_hidden' => '0',
  6223. 'tabs_inner_outer' => 'inner',
  6224. 'tabs_align_hor' => 'center',
  6225. 'tabs_align_vert' => 'bottom',
  6226. 'tabs_offset_hor' => '0',
  6227. 'tabs_offset_vert' => '20',
  6228. 'touchenabled' => 'on',
  6229. 'drag_block_vertical' => 'off',
  6230. 'swipe_velocity' => '75',
  6231. 'swipe_min_touches' => '50',
  6232. 'swipe_direction' => 'horizontal',
  6233. 'keyboard_navigation' => 'off',
  6234. 'keyboard_direction' => 'horizontal',
  6235. 'mousescroll_navigation' => 'off',
  6236. 'carousel_infinity' => 'on',
  6237. 'carousel_space' => '-150',
  6238. 'carousel_borderr' => '50',
  6239. 'carousel_borderr_unit' => '%',
  6240. 'carousel_padding_top' => '0',
  6241. 'carousel_padding_bottom' => '0',
  6242. 'carousel_maxitems' => '5',
  6243. 'carousel_stretch' => 'off',
  6244. 'carousel_fadeout' => 'on',
  6245. 'carousel_varyfade' => 'on',
  6246. 'carousel_rotation' => 'off',
  6247. 'carousel_varyrotate' => 'on',
  6248. 'carousel_maxrotation' => '65',
  6249. 'carousel_scale' => 'on',
  6250. 'carousel_varyscale' => 'off',
  6251. 'carousel_scaledown' => '55',
  6252. 'carousel_hposition' => 'center',
  6253. 'carousel_vposition' => 'center',
  6254. 'use_parallax' => 'on',
  6255. 'disable_parallax_mobile' => 'off',
  6256. 'parallax_type' => 'mouse',
  6257. 'parallax_origo' => 'slidercenter',
  6258. 'parallax_speed' => '2000',
  6259. 'parallax_level_1' => '2',
  6260. 'parallax_level_2' => '3',
  6261. 'parallax_level_3' => '4',
  6262. 'parallax_level_4' => '5',
  6263. 'parallax_level_5' => '6',
  6264. 'parallax_level_6' => '7',
  6265. 'parallax_level_7' => '12',
  6266. 'parallax_level_8' => '16',
  6267. 'parallax_level_9' => '10',
  6268. 'parallax_level_10' => '50',
  6269. 'lazy_load_type' => 'smart',
  6270. 'seo_optimization' => 'none',
  6271. 'simplify_ie8_ios4' => 'off',
  6272. 'show_alternative_type' => 'off',
  6273. 'show_alternate_image' => '',
  6274. 'jquery_noconflict' => 'off',
  6275. 'js_to_body' => 'false',
  6276. 'output_type' => 'none',
  6277. 'jquery_debugmode' => 'off',
  6278. 'slider_type' => 'fullwidth',
  6279. 'width' => '800',
  6280. 'width_notebook' => '600',
  6281. 'width_tablet' => '600',
  6282. 'width_mobile' => '600',
  6283. 'height' => '800',
  6284. 'height_notebook' => '600',
  6285. 'height_tablet' => '600',
  6286. 'height_mobile' => '600',
  6287. 'enable_custom_size_notebook' => 'off',
  6288. 'enable_custom_size_tablet' => 'off',
  6289. 'enable_custom_size_iphone' => 'off',
  6290. 'main_overflow_hidden' => 'off',
  6291. 'auto_height' => 'off',
  6292. 'min_height' => '',
  6293. 'custom_css' => '',
  6294. 'custom_javascript' => '',
  6295. ),
  6296. );
  6297. //add the presets made from customers
  6298. $customer_presets = get_option('revslider_presets', array());
  6299. $presets = array_merge($presets, $customer_presets);
  6300. $presets = apply_filters('revslider_slider_presets', $presets);
  6301. foreach($presets as $key => $preset){
  6302. if(intval($preset['settings']['image']) > 0){
  6303. $img = wp_get_attachment_image_src(esc_attr($preset['settings']['image']), 'medium');
  6304. $presets[$key]['settings']['image'] = ($img !== false) ? $img['0'] : '';
  6305. }
  6306. }
  6307. return $presets;
  6308. }
  6309. /**
  6310. *
  6311. * @since: 5.0
  6312. **/
  6313. public static function add_preset_setting($data){
  6314. if(!isset($data['settings']) || !isset($data['values'])) return __('Missing values to add preset', 'revslider');
  6315. $customer_presets = get_option('revslider_presets', array());
  6316. $data['settings']['custom'] = true;
  6317. $customer_presets[] = array(
  6318. 'settings' => $data['settings'],
  6319. 'values' => $data['values']
  6320. );
  6321. RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
  6322. return true;
  6323. }
  6324. /**
  6325. * @since: 5.0
  6326. **/
  6327. public static function remove_preset_setting($data){
  6328. if(!isset($data['name'])) return __('Missing values to remove preset', 'revslider');
  6329. $customer_presets = get_option('revslider_presets', array());
  6330. if(!empty($customer_presets)){
  6331. foreach($customer_presets as $key => $preset){
  6332. if($preset['settings']['name'] == $data['name']){
  6333. unset($customer_presets[$key]);
  6334. break;
  6335. }
  6336. }
  6337. }
  6338. RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
  6339. return true;
  6340. }
  6341. /**
  6342. * @since: 5.0
  6343. **/
  6344. public static function update_preset_setting($data){
  6345. if(!isset($data['name'])) return __('Missing values to update preset', 'revslider');
  6346. $customer_presets = get_option('revslider_presets', array());
  6347. if(!empty($customer_presets)){
  6348. foreach($customer_presets as $key => $preset){
  6349. if($preset['settings']['name'] == $data['name']){
  6350. $customer_presets[$key]['values'] = $data['values'];
  6351. break;
  6352. }
  6353. }
  6354. }
  6355. RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
  6356. return true;
  6357. }
  6358. /**
  6359. * @since: 5.3.0
  6360. * create a page with revslider shortcodes included
  6361. **/
  6362. public static function create_slider_page($added){
  6363. $new_page_id = 0;
  6364. if(!is_array($added)) return apply_filters('revslider_create_slider_page', $new_page_id, $added);
  6365. $content = '';
  6366. $page_id = get_option('rs_import_page_id', 1);
  6367. //$title = '';
  6368. //get alias of all new Sliders that got created and add them as a shortcode onto a page
  6369. foreach($added as $sid){
  6370. $slider = new RevSlider();
  6371. $slider->initByID($sid);
  6372. $alias = $slider->getAlias();
  6373. /*if($title == ''){
  6374. $title = $slider->getTitle();
  6375. }*/
  6376. if($alias !== ''){
  6377. $content .= '[rev_slider alias="'.$alias.'"][/rev_slider]'; //this way we will reorder as last comes first
  6378. }
  6379. }
  6380. if($content !== ''){
  6381. $new_page_id = wp_insert_post(
  6382. array(
  6383. 'post_title' => wp_strip_all_tags( 'RevSlider Page '.$page_id ), //$title
  6384. 'post_content' => $content,
  6385. 'post_type' => 'page',
  6386. 'post_status' => 'draft',
  6387. 'page_template' => '../public/views/revslider-page-template.php'
  6388. )
  6389. );
  6390. if(is_wp_error($new_page_id)) $new_page_id = 0; //fallback to 0
  6391. $page_id++;
  6392. update_option('rs_import_page_id', $page_id);
  6393. }
  6394. return apply_filters('revslider_create_slider_page', $new_page_id, $added);
  6395. }
  6396. /**
  6397. * @since: 5.3.1
  6398. * get cache plugins
  6399. **/
  6400. public function get_installed_cache_plugins(){
  6401. //get all plugins
  6402. $plugins = get_plugins();
  6403. //arrays for found cache related plugins
  6404. $known_cache_plugins = array();
  6405. $unknown_cache_plugins = array();
  6406. //run through all plugins
  6407. foreach ($plugins as $plugin_key => $plugin_values) {
  6408. switch($plugin_key){
  6409. //check if W3TC or WP Super Cache or WP Rocket
  6410. //add to known plugins
  6411. case "wp-rocket/wp-rocket.php":
  6412. $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wprocket";
  6413. break;
  6414. case "wp-super-cache/wp-cache.php":
  6415. $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wpsc";
  6416. break;
  6417. case "w3-total-cache/w3-total-cache.php":
  6418. $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#w3tc";
  6419. break;
  6420. //check if cache in slug
  6421. default:
  6422. if(strpos($plugin_key,"cache")){
  6423. //add to unknown plugins
  6424. $unknown_cache_plugins[$plugin_values['Name']] = $plugin_values['PluginURI'];
  6425. }
  6426. break;
  6427. }
  6428. }
  6429. $all = array_merge($known_cache_plugins, $unknown_cache_plugins);
  6430. return apply_filters('revslider_get_installed_cache_plugins', $all);
  6431. }
  6432. /**
  6433. * @since: 5.3.1
  6434. * show failed import HTML
  6435. **/
  6436. public static function import_failed_message($message, $link = false){
  6437. 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;">';
  6438. 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;">';
  6439. echo '<div style="font-size:30px; font-weight:600; line-height:50px; white-space:nowrap;margin-bottom:10px">Error: '.$message.'</div>';
  6440. if($link !== false){
  6441. 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>';
  6442. }
  6443. echo '</div>';
  6444. echo '</div>';
  6445. }
  6446. }
  6447. /**
  6448. * old classname extends new one (old classnames will be obsolete soon)
  6449. * @since: 5.0
  6450. **/
  6451. class RevOperations extends RevSliderOperations {}
  6452. ?>