| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133 |
- <?php
- /**
- * @author ThemePunch <info@themepunch.com>
- * @link http://www.themepunch.com/
- * @copyright 2015 ThemePunch
- */
-
- if( !defined( 'ABSPATH') ) exit();
- class RevSliderOperations extends RevSliderElementsBase{
-
- private static $animations;
- private static $css;
- /**
- * get easing functions array
- */
- public function getArrEasing(){ //true
- $arrEasing = array(
- "Linear.easeNone" => "Linear.easeNone",
- "Power0.easeIn" => "Power0.easeIn (linear)",
- "Power0.easeInOut" => "Power0.easeInOut (linear)",
- "Power0.easeOut" => "Power0.easeOut (linear)",
- "Power1.easeIn" => "Power1.easeIn",
- "Power1.easeInOut" => "Power1.easeInOut",
- "Power1.easeOut" => "Power1.easeOut",
- "Power2.easeIn" => "Power2.easeIn",
- "Power2.easeInOut" => "Power2.easeInOut",
- "Power2.easeOut" => "Power2.easeOut",
- "Power3.easeIn" => "Power3.easeIn",
- "Power3.easeInOut" => "Power3.easeInOut",
- "Power3.easeOut" => "Power3.easeOut",
- "Power4.easeIn" => "Power4.easeIn",
- "Power4.easeInOut" => "Power4.easeInOut",
- "Power4.easeOut" => "Power4.easeOut",
- "Quad.easeIn" => "Quad.easeIn (same as Power1.easeIn)",
- "Quad.easeInOut" => "Quad.easeInOut (same as Power1.easeInOut)",
- "Quad.easeOut" => "Quad.easeOut (same as Power1.easeOut)",
- "Cubic.easeIn" => "Cubic.easeIn (same as Power2.easeIn)",
- "Cubic.easeInOut" => "Cubic.easeInOut (same as Power2.easeInOut)",
- "Cubic.easeOut" => "Cubic.easeOut (same as Power2.easeOut)",
- "Quart.easeIn" => "Quart.easeIn (same as Power3.easeIn)",
- "Quart.easeInOut" => "Quart.easeInOut (same as Power3.easeInOut)",
- "Quart.easeOut" => "Quart.easeOut (same as Power3.easeOut)",
- "Quint.easeIn" => "Quint.easeIn (same as Power4.easeIn)",
- "Quint.easeInOut" => "Quint.easeInOut (same as Power4.easeInOut)",
- "Quint.easeOut" => "Quint.easeOut (same as Power4.easeOut)",
- "Strong.easeIn" => "Strong.easeIn (same as Power4.easeIn)",
- "Strong.easeInOut" => "Strong.easeInOut (same as Power4.easeInOut)",
- "Strong.easeOut" => "Strong.easeOut (same as Power4.easeOut)",
- "Back.easeIn" => "Back.easeIn",
- "Back.easeInOut" => "Back.easeInOut",
- "Back.easeOut" => "Back.easeOut",
- "Bounce.easeIn" => "Bounce.easeIn",
- "Bounce.easeInOut" => "Bounce.easeInOut",
- "Bounce.easeOut" => "Bounce.easeOut",
- "Circ.easeIn" => "Circ.easeIn",
- "Circ.easeInOut" => "Circ.easeInOut",
- "Circ.easeOut" => "Circ.easeOut",
- "Elastic.easeIn" => "Elastic.easeIn",
- "Elastic.easeInOut" => "Elastic.easeInOut",
- "Elastic.easeOut" => "Elastic.easeOut",
- "Expo.easeIn" => "Expo.easeIn",
- "Expo.easeInOut" => "Expo.easeInOut",
- "Expo.easeOut" => "Expo.easeOut",
- "Sine.easeIn" => "Sine.easeIn",
- "Sine.easeInOut" => "Sine.easeInOut",
- "Sine.easeOut" => "Sine.easeOut",
- "SlowMo.ease" => "SlowMo.ease",
- //add old easings //From here on display none
- "easeOutBack" => "easeOutBack",
- "easeInQuad" => "easeInQuad",
- "easeOutQuad" => "easeOutQuad",
- "easeInOutQuad" => "easeInOutQuad",
- "easeInCubic" => "easeInCubic",
- "easeOutCubic" => "easeOutCubic",
- "easeInOutCubic" => "easeInOutCubic",
- "easeInQuart" => "easeInQuart",
- "easeOutQuart" => "easeOutQuart",
- "easeInOutQuart" => "easeInOutQuart",
- "easeInQuint" => "easeInQuint",
- "easeOutQuint" => "easeOutQuint",
- "easeInOutQuint" => "easeInOutQuint",
- "easeInSine" => "easeInSine",
- "easeOutSine" => "easeOutSine",
- "easeInOutSine" => "easeInOutSine",
- "easeInExpo" => "easeInExpo",
- "easeOutExpo" => "easeOutExpo",
- "easeInOutExpo" => "easeInOutExpo",
- "easeInCirc" => "easeInCirc",
- "easeOutCirc" => "easeOutCirc",
- "easeInOutCirc" => "easeInOutCirc",
- "easeInElastic" => "easeInElastic",
- "easeOutElastic" => "easeOutElastic",
- "easeInOutElastic" => "easeInOutElastic",
- "easeInBack" => "easeInBack",
- "easeInOutBack" => "easeInOutBack",
- "easeInBounce" => "easeInBounce",
- "easeOutBounce" => "easeOutBounce",
- "easeInOutBounce" => "easeInOutBounce",
- "Quad.easeIn" => "Quad.easeIn (same as Power1.easeIn)",
- "Quad.easeInOut" => "Quad.easeInOut (same as Power1.easeInOut)",
- "Quad.easeOut" => "Quad.easeOut (same as Power1.easeOut)",
- "Cubic.easeIn" => "Cubic.easeIn (same as Power2.easeIn)",
- "Cubic.easeInOut" => "Cubic.easeInOut (same as Power2.easeInOut)",
- "Cubic.easeOut" => "Cubic.easeOut (same as Power2.easeOut)",
- "Quart.easeIn" => "Quart.easeIn (same as Power3.easeIn)",
- "Quart.easeInOut" => "Quart.easeInOut (same as Power3.easeInOut)",
- "Quart.easeOut" => "Quart.easeOut (same as Power3.easeOut)",
- "Quint.easeIn" => "Quint.easeIn (same as Power4.easeIn)",
- "Quint.easeInOut" => "Quint.easeInOut (same as Power4.easeInOut)",
- "Quint.easeOut" => "Quint.easeOut (same as Power4.easeOut)",
- "Strong.easeIn" => "Strong.easeIn (same as Power4.easeIn)",
- "Strong.easeInOut" => "Strong.easeInOut (same as Power4.easeInOut)",
- "Strong.easeOut" => "Strong.easeOut (same as Power4.easeOut)"
- );
- return($arrEasing);
- }
- /**
- * get easing functions array
- */
- public function getArrSplit(){ //true
- $arrSplit = array(
- "none" => "No Split",
- "chars" => "Char Based",
- "words" => "Word Based",
- "lines" => "Line Based"
- );
- return($arrSplit);
- }
- /**
- * get arr end easing
- */
- public function getArrEndEasing(){
- $arrEasing = $this->getArrEasing();
- $arrEasing = array_merge(array("nothing" => "No Change"),$arrEasing);
- return($arrEasing);
- }
- /**
- * get transition array
- */
- public function getArrTransition(){
- $arrTransition = array(
- "notselectable1"=>"BASICS",
- "notransition"=>"No Transition",
- "fade"=>"Fade",
- "crossfade"=>"Fade Cross",
- "fadethroughdark"=>"Fade Through Black",
- "fadethroughlight"=>"Fade Through Light",
- "fadethroughtransparent"=>"Fade Through Transparent",
-
- "notselectable2"=>"SLIDE SIMPLE",
- "slideup"=>"Slide To Top",
- "slidedown"=>"Slide To Bottom",
- "slideright"=>"Slide To Right",
- "slideleft"=>"Slide To Left",
- "slidehorizontal"=>"Slide Horizontal (Next/Previous)",
- "slidevertical"=>"Slide Vertical (Next/Previous)",
- "notselectable21"=>"SLIDE OVER",
- "slideoverup"=>"Slide Over To Top",
- "slideoverdown"=>"Slide Over To Bottom",
- "slideoverright"=>"Slide Over To Right",
- "slideoverleft"=>"Slide Over To Left",
- "slideoverhorizontal"=>"Slide Over Horizontal (Next/Previous)",
- "slideoververtical"=>"Slide Over Vertical (Next/Previous)",
- "notselectable22"=>"SLIDE REMOVE",
- "slideremoveup"=>"Slide Remove To Top",
- "slideremovedown"=>"Slide Remove To Bottom",
- "slideremoveright"=>"Slide Remove To Right",
- "slideremoveleft"=>"Slide Remove To Left",
- "slideremovehorizontal"=>"Slide Remove Horizontal (Next/Previous)",
- "slideremovevertical"=>"Slide Remove Vertical (Next/Previous)",
- "notselectable26"=>"SLIDING OVERLAYS",
- "slidingoverlayup"=>"Sliding Overlays To Top",
- "slidingoverlaydown"=>"Sliding Overlays To Bottom",
- "slidingoverlayright"=>"Sliding Overlays To Right",
- "slidingoverlayleft"=>"Sliding Overlays To Left",
- "slidingoverlayhorizontal"=>"Sliding Overlays Horizontal (Next/Previous)",
- "slidingoverlayvertical"=>"Sliding Overlays Vertical (Next/Previous)",
-
- "notselectable23"=>"SLOTS AND BOXES",
- "boxslide"=>"Slide Boxes",
- "slotslide-horizontal"=>"Slide Slots Horizontal",
- "slotslide-vertical"=>"Slide Slots Vertical",
- "boxfade"=>"Fade Boxes",
- "slotfade-horizontal"=>"Fade Slots Horizontal",
- "slotfade-vertical"=>"Fade Slots Vertical",
-
- "notselectable31"=>"FADE & SLIDE",
- "fadefromright"=>"Fade and Slide from Right",
- "fadefromleft"=>"Fade and Slide from Left",
- "fadefromtop"=>"Fade and Slide from Top",
- "fadefrombottom"=>"Fade and Slide from Bottom",
- "fadetoleftfadefromright"=>"To Left From Right",
- "fadetorightfadefromleft"=>"To Right From Left",
- "fadetotopfadefrombottom"=>"To Top From Bottom",
- "fadetobottomfadefromtop"=>"To Bottom From Top",
-
- "notselectable4"=>"PARALLAX",
- "parallaxtoright"=>"Parallax to Right",
- "parallaxtoleft"=>"Parallax to Left",
- "parallaxtotop"=>"Parallax to Top",
- "parallaxtobottom"=>"Parallax to Bottom",
- "parallaxhorizontal"=>"Parallax Horizontal",
- "parallaxvertical"=>"Parallax Vertical",
- "notselectable5"=>"ZOOM TRANSITIONS",
- "scaledownfromright"=>"Zoom Out and Fade From Right",
- "scaledownfromleft"=>"Zoom Out and Fade From Left",
- "scaledownfromtop"=>"Zoom Out and Fade From Top",
- "scaledownfrombottom"=>"Zoom Out and Fade From Bottom",
- "zoomout"=>"ZoomOut",
- "zoomin"=>"ZoomIn",
- "slotzoom-horizontal"=>"Zoom Slots Horizontal",
- "slotzoom-vertical"=>"Zoom Slots Vertical",
-
- "notselectable6"=>"CURTAIN TRANSITIONS",
- "curtain-1"=>"Curtain from Left",
- "curtain-2"=>"Curtain from Right",
- "curtain-3"=>"Curtain from Middle",
- "notselectable8"=>"FILTER TRANSITIONS",
- "grayscale"=>"Grayscale Transition",
- "grayscalecross"=>"Grayscale Cross Transition",
- "brightness"=>"Brightness Transition",
- "brightnesscross"=>"Brightness Cross Transition",
- "blurlight"=>"Blur Light Transition",
- "blurlightcross"=>"Blur Light Cross Transition",
- "blurstrong"=>"Blur Strong Transition",
- "blurstrongcross"=>"Blur Strong Cross Transition",
-
-
- "notselectable7"=>"PREMIUM TRANSITIONS",
- "3dcurtain-horizontal"=>"3D Curtain Horizontal",
- "3dcurtain-vertical"=>"3D Curtain Vertical",
- "cube"=>"Cube Vertical",
- "cube-horizontal"=>"Cube Horizontal",
- "incube"=>"In Cube Vertical",
- "incube-horizontal"=>"In Cube Horizontal",
- "turnoff"=>"TurnOff Horizontal",
- "turnoff-vertical"=>"TurnOff Vertical",
- "papercut"=>"Paper Cut",
- "flyin"=>"Fly In",
- "notselectable1a"=>"RANDOM",
- "random-selected"=>"Random of Selected",
- "random-static"=>"Random Flat",
- "random-premium"=>"Random Premium",
- "random"=>"Random Flat and Premium"
- );
-
- return($arrTransition);
- }
-
- /**
- * get animations array
- */
- public static function getArrAnimations($all = true){
- $arrAnimations = array(
-
- );
-
- $arrAnimations['custom'] = array('handle' => __('## Custom Animation ##', 'revslider'));
- $arrAnimations['vSFXs'] = array('handle' => '-----------------------------------');
- $arrAnimations['vSFX'] = array('handle' => __('- SPECIAL EFFECTS -', 'revslider'));
- $arrAnimations['vSFXe'] = array('handle' => '-----------------------------------');
-
- $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'));
- $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'));
- $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'));
- $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'));
- $arrAnimations['v5s'] = array('handle' => '-----------------------------------');
- $arrAnimations['v5'] = array('handle' => __('- VERSION 5.0 ANIMATIONS -', 'revslider'));
- $arrAnimations['v5e'] = array('handle' => '-----------------------------------');
-
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
-
- $arrAnimations['v4s'] = array('handle' => '-----------------------------------');
- $arrAnimations['v4'] = array('handle' => __('- VERSION 4.0 ANIMATIONS -', 'revslider'));
- $arrAnimations['v4e'] = array('handle' => '-----------------------------------');
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
-
-
- if($all){
- $arrAnimations['vss'] = array('handle' => '--------------------------------------');
- $arrAnimations['vs'] = array('handle' => __('- SAVED CUSTOM ANIMATIONS -', 'revslider'));
- $arrAnimations['vse'] = array('handle' => '--------------------------------------');
-
- //$custom = RevSliderOperations::getCustomAnimations('customin');
- $custom = RevSliderOperations::getCustomAnimationsFullPre('customin');
- $arrAnimations = array_merge($arrAnimations, $custom);
- }
-
- foreach($arrAnimations as $key => $value){
- if(!isset($value['params'])) continue;
-
- $t = json_decode(str_replace("'", '"', $value['params']), true);
- if(!empty($t))
- $arrAnimations[$key]['params'] = $t;
- }
-
- return($arrAnimations);
- }
- /**
- * get "end" animations array
- */
- public static function getArrEndAnimations($all = true){
- $arrAnimations = array();
- $arrAnimations['custom'] = array('handle' => __('## Custom Animation ##', 'revslider'));
- $arrAnimations['auto'] = array('handle' => __('Automatic Reverse', 'revslider'));
- $arrAnimations['vSFXs'] = array('handle' => '-----------------------------------');
- $arrAnimations['vSFX'] = array('handle' => __('- SPECIAL EFFECTS -', 'revslider'));
- $arrAnimations['vSFXe'] = array('handle' => '-----------------------------------');
-
- $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'));
- $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'));
- $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'));
- $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'));
-
- $arrAnimations['v5s'] = array('handle' => '-----------------------------------');
- $arrAnimations['v5'] = array('handle' => __('- VERSION 5.0 ANIMATIONS -', 'revslider'));
- $arrAnimations['v5e'] = array('handle' => '-----------------------------------');
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
-
- $arrAnimations['v4s'] = array('handle' => '-----------------------------------');
- $arrAnimations['v4'] = array('handle' => __('- VERSION 4.0 ANIMATIONS -', 'revslider'));
- $arrAnimations['v4e'] = array('handle' => '-----------------------------------');
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- $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'));
- if($all){
- $arrAnimations['vss'] = array('handle' => '--------------------------------------');
- $arrAnimations['vs'] = array('handle' => __('- SAVED CUSTOM ANIMATIONS -', 'revslider'));
- $arrAnimations['vse'] = array('handle' => '--------------------------------------');
- //$custom = RevSliderOperations::getCustomAnimations('customout');
- $custom = RevSliderOperations::getCustomAnimationsFullPre('customout');
- $arrAnimations = array_merge($arrAnimations, $custom);
- }
-
- foreach($arrAnimations as $key => $value){
- if(!isset($value['params'])) continue;
-
- $t = json_decode(str_replace("'", '"', $value['params']), true);
- if(!empty($t))
- $arrAnimations[$key]['params'] = $t;
- }
- return($arrAnimations);
- }
- /**
- * insert custom animations
- */
- public static function insertCustomAnim($anim){
- if(isset($anim['handle'])) {
- $db = new RevSliderDB();
- $arrInsert = array();
- $arrInsert["handle"] = $anim['handle'];
- unset($anim['handle']);
- $arrInsert["params"] = stripslashes(json_encode(str_replace("'", '"', $anim['params'])));
- $arrInsert["settings"] = json_encode(array('version' => 'custom'));
- $result = $db->insert(RevSliderGlobals::$table_layer_anims, $arrInsert);
- }
- $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
- $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
- $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
- return $arrAnims;
- }
- /**
- * insert custom animations
- */
- public static function updateCustomAnim($anim){
-
- if(isset($anim['handle'])) {
- $db = new RevSliderDB();
- $handle = $anim['handle'];
- unset($anim['handle']);
-
- $id = str_replace(array('customin-', 'customout-'), array('', ''), $handle);
-
- $arrUpdate = array();
- $arrUpdate['params'] = stripslashes(json_encode(str_replace("'", '"', $anim['params'])));
- //$arrUpdate["settings"] = json_encode(array('version' => 'custom'));
-
- $result = $db->update(RevSliderGlobals::$table_layer_anims, $arrUpdate, array('id' => $id));
- }
- $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
- $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
- $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
- return $arrAnims;
- }
- /**
- * update custom animations name
- * @since: 5.0
- */
- public static function updateCustomAnimName($anim){
- if(isset($anim['handle'])) {
- $db = new RevSliderDB();
- $id = $anim['id'];
- unset($anim['id']);
-
- $result = $db->update(RevSliderGlobals::$table_layer_anims, $anim, array('id' => $id));
- }
- $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
- $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
- $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
- return $arrAnims;
- }
- /**
- *
- * delete custom animations
- */
- public static function deleteCustomAnim($rawID){
-
- if(trim($rawID) != '') {
- $db = new RevSliderDB();
- $id = str_replace(array('customin-', 'customout-'), array('', ''), $rawID);
- $db->delete(RevSliderGlobals::$table_layer_anims, $db->prepare("id = %s", array(intval($id))));
- }
- $arrAnims['customin'] = RevSliderOperations::getCustomAnimations();
- $arrAnims['customout'] = RevSliderOperations::getCustomAnimations('customout');
- $arrAnims['customfull'] = RevSliderOperations::getFullCustomAnimations();
- return $arrAnims;
- }
-
- /**
- * Fetch all Custom Animations only one time
- * @since: 5.2.4
- **/
- public static function fillAnimations(){
- if(empty(self::$animations)){
- $db = new RevSliderDB();
-
- $customAnimations = array();
- $result = $db->fetch(RevSliderGlobals::$table_layer_anims);
- if(!empty($result)){
- $customAnimations = $result;
- }
-
- self::$animations = $customAnimations;
- }
- }
-
- /**
- *
- * get custom animations
- */
- public static function getCustomAnimations($pre = 'customin'){
-
- if(empty(self::$animations)){
- self::fillAnimations();
- }
-
- $customAnimations = self::$animations;
-
- $ret_array = array();
-
- foreach($customAnimations as $key => $value){
- $params = json_decode($value['params'], true);
- if(!isset($params['type']) || $params['type'] == $pre){
- $ret_array[$pre.'-'.$value['id']] = $value['handle'];
- }
- }
-
- asort($ret_array);
-
- return $ret_array;
- }
-
-
- /**
- *
- * get custom animations
- */
- public static function getCustomAnimationsFullPre($pre = 'customin'){
-
- if(empty(self::$animations)){
- self::fillAnimations();
- }
-
- $customAnimations = array();
- $customTemp = array();
- $sort = array();
-
- foreach(self::$animations as $key => $value){
- $params = json_decode($value['params'], true);
- if(!isset($params['type']) || $params['type'] == $pre){
- $customTemp[$pre.'-'.$value['id']] = $value;
- $sort[$pre.'-'.$value['id']] = $value['handle'];
- }
- }
- if(!empty($sort)){
- asort($sort);
- foreach($sort as $k => $v){
- $customAnimations[$k] = $customTemp[$k];
- }
- }
- return $customAnimations;
- }
-
- /**
- *
- * get full custom animations
- */
- public static function getFullCustomAnimations(){
-
- if(empty(self::$animations)){
- self::fillAnimations();
- }
-
- $customAnimations = self::$animations;
-
- $ret_anims = array();
- foreach($customAnimations as $key => $value){
- $ret_anims[$key]['id'] = $value['id'];
- $ret_anims[$key]['handle'] = $value['handle'];
- $ret_anims[$key]['params'] = json_decode(str_replace("'", '"', $value['params']), true);
- }
- return $ret_anims;
- }
- /**
- *
- * get animation params by handle
- */
- public static function getCustomAnimationByHandle($handle){
- if(empty(self::$animations)){
- self::fillAnimations();
- }
-
- foreach(self::$animations as $key => $value){
- if($value['handle'] == $handle){
- return json_decode(str_replace("'", '"', $value['params']), true);
- }
- }
-
- return false;
-
- }
- /**
- *
- * get animation params by id
- */
- public static function getFullCustomAnimationByID($id){
- if(empty(self::$animations)){
- self::fillAnimations();
- }
-
- foreach(self::$animations as $key => $value){
- if($value['id'] == $id){
- $customAnimations = array();
- $customAnimations['id'] = $value['id'];
- $customAnimations['handle'] = $value['handle'];
- $customAnimations['params'] = json_decode(str_replace("'", '"', $value['params']), true);
- return $customAnimations;
- }
- }
-
- return false;
- }
- /**
- * parse animation params
- * 5.0.5: added (R) for reverse
- */
- public static function parseCustomAnimationByArray($animArray, $is = 'start', $frame_val){
- $retString = '';
-
- $reverse = (isset($animArray['x_'.$is.'_reverse']) && $animArray['x_'.$is.'_reverse'] == true) ? '(R)' : ''; //movex reverse
- if(isset($animArray['x_'.$is]) && $animArray['x_'.$is] !== '' && $animArray['x_'.$is] !== 'inherit') $retString.= 'x:'.$animArray['x_'.$is].$reverse.';'; //movex
- $reverse = (isset($animArray['y_'.$is.'_reverse']) && $animArray['y_'.$is.'_reverse'] == true) ? '(R)' : ''; //movey reverse
- if(isset($animArray['y_'.$is]) && $animArray['y_'.$is] !== '' && $animArray['y_'.$is] !== 'inherit') $retString.= 'y:'.$animArray['y_'.$is].$reverse.';'; //movey
- if(isset($animArray['z_'.$is]) && $animArray['z_'.$is] !== '' && $animArray['z_'.$is] !== 'inherit') $retString.= 'z:'.$animArray['z_'.$is].';'; //movez
- $reverse = (isset($animArray['x_rotate_'.$is.'_reverse']) && $animArray['x_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationx reverse
- if(isset($animArray['x_rotate_'.$is]) && $animArray['x_rotate_'.$is] !== '' && $animArray['x_rotate_'.$is] !== 'inherit') $retString.= 'rX:'.$animArray['x_rotate_'.$is].$reverse.';'; //rotationx
- $reverse = (isset($animArray['y_rotate_'.$is.'_reverse']) && $animArray['y_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationy reverse
- if(isset($animArray['y_rotate_'.$is]) && $animArray['y_rotate_'.$is] !== '' && $animArray['y_rotate_'.$is] !== 'inherit') $retString.= 'rY:'.$animArray['y_rotate_'.$is].$reverse.';'; //rotationy
- $reverse = (isset($animArray['z_rotate_'.$is.'_reverse']) && $animArray['z_rotate_'.$is.'_reverse'] == true) ? '(R)' : ''; //rotationz reverse
- if(isset($animArray['z_rotate_'.$is]) && $animArray['z_rotate_'.$is] !== '' && $animArray['z_rotate_'.$is] !== 'inherit') $retString.= 'rZ:'.$animArray['z_rotate_'.$is].$reverse.';'; //rotationz
- if(isset($animArray['scale_x_'.$is]) && $animArray['scale_x_'.$is] !== '' && $animArray['scale_x_'.$is] !== 'inherit'){ //scalex
- $reverse = (isset($animArray['scale_x_'.$is.'_reverse']) && $animArray['scale_x_'.$is.'_reverse'] == true) ? '(R)' : ''; //scalex reverse
- $retString.= 'sX:';
- $retString.= ($animArray['scale_x_'.$is] == 0) ? 0 : $animArray['scale_x_'.$is];
- $retString.= $reverse;
- $retString.= ';';
- }
- if(isset($animArray['scale_y_'.$is]) && $animArray['scale_y_'.$is] !== '' && $animArray['scale_y_'.$is] !== 'inherit'){ //scaley
- $reverse = (isset($animArray['scale_y_'.$is.'_reverse']) && $animArray['scale_y_'.$is.'_reverse'] == true) ? '(R)' : ''; //scaley reverse
- $retString.= 'sY:';
- $retString.= ($animArray['scale_y_'.$is] == 0) ? 0 : $animArray['scale_y_'.$is];
- $retString.= $reverse;
- $retString.= ';';
- }
-
- $reverse = (isset($animArray['skew_x_'.$is.'_reverse']) && $animArray['skew_x_'.$is.'_reverse'] == true) ? '(R)' : ''; //skewx reverse
- if(isset($animArray['skew_x_'.$is]) && $animArray['skew_x_'.$is] !== '' && $animArray['skew_x_'.$is] !== 'inherit') $retString.= 'skX:'.$animArray['skew_x_'.$is].$reverse.';'; //skewx
- $reverse = (isset($animArray['skew_y_'.$is.'_reverse']) && $animArray['skew_y_'.$is.'_reverse'] == true) ? '(R)' : ''; //skewy reverse
- if(isset($animArray['skew_y_'.$is]) && $animArray['skew_y_'.$is] !== '' && $animArray['skew_y_'.$is] !== 'inherit') $retString.= 'skY:'.$animArray['skew_y_'.$is].$reverse.';'; //skewy
- if(isset($animArray['opacity_'.$is]) && $animArray['opacity_'.$is] !== '' && $animArray['opacity_'.$is] !== 'inherit'){ //captionopacity
- $retString.= 'opacity:';
- $opa = (intval($animArray['opacity_'.$is]) > 1) ? $animArray['opacity_'.$is] / 100 : $animArray['opacity_'.$is];
- $retString.= $opa;
- //$retString.= ($is == 'start' && ($opa == '0' || $opa == 0)) ? '0.0001' : $opa;
- $retString.= ';';
- }
-
- if($retString == ''){ //we do not have animations set, so set them here
-
- }
-
- return $retString;
- }
-
- /**
- * parse mask params
- * @since: 5.0
- */
- public static function parseCustomMaskByArray($animArray, $is = 'start'){
- $retString = '';
- $reverse = (isset($animArray['mask_x_'.$is.'_reverse']) && $animArray['mask_x_'.$is.'_reverse'] == true) ? '(R)' : '';
- if(isset($animArray['mask_x_'.$is]) && $animArray['mask_x_'.$is] !== '') $retString.= 'x:'.$animArray['mask_x_'.$is].$reverse.';';
- $reverse = (isset($animArray['mask_y_'.$is.'_reverse']) && $animArray['mask_y_'.$is.'_reverse'] == true) ? '(R)' : '';
- if(isset($animArray['mask_y_'.$is]) && $animArray['mask_y_'.$is] !== '') $retString.= 'y:'.$animArray['mask_y_'.$is].$reverse.';';
- if(isset($animArray['mask_speed_'.$is]) && $animArray['mask_speed_'.$is] !== '') $retString.= 's:'.$animArray['mask_speed_'.$is].';';
- if(isset($animArray['mask_ease_'.$is]) && $animArray['mask_ease_'.$is] !== '') $retString.= 'e:'.$animArray['mask_ease_'.$is].';';
-
- return $retString;
- }
-
- /**
- *
- * parse css file and get the classes from there.
- */
- public function getArrCaptionClasses($contentCSS){
- //parse css captions file
- $parser = new RevSliderCssParser();
- $parser->initContent($contentCSS);
- $arrCaptionClasses = $parser->getArrClasses('','',true);
-
- return($arrCaptionClasses);
- }
-
- /**
- *
- * get all CSS classes from database with version numbers
- */
- public function getArrCaptionSorted($contentCSS){ //get all from the database
- //parse css captions file
- $parser = new RevSliderCssParser();
- $parser->initContent($contentCSS);
- $arrCaptionClasses = $parser->getArrClasses('','',true);
-
- return($arrCaptionClasses);
- }
- /**
- *
- * get all font family types
- */
- public function getArrFontFamilys($slider = false){
-
- //Web Safe Fonts
- $fonts = array(
- // GOOGLE Loaded Fonts
- array('type' => 'websafe', 'version' => __('Loaded Google Fonts', 'revslider'), 'label' => 'Dont Show Me'),
- //Serif Fonts
- array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => 'Georgia, serif'),
- array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => '"Palatino Linotype", "Book Antiqua", Palatino, serif'),
- array('type' => 'websafe', 'version' => __('Serif Fonts', 'revslider'), 'label' => '"Times New Roman", Times, serif'),
- //Sans-Serif Fonts
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Arial, Helvetica, sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Arial Black", Gadget, sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Comic Sans MS", cursive, sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Impact, Charcoal, sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Tahoma, Geneva, sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => '"Trebuchet MS", Helvetica, sans-serif'),
- array('type' => 'websafe', 'version' => __('Sans-Serif Fonts', 'revslider'), 'label' => 'Verdana, Geneva, sans-serif'),
- //Monospace Fonts
- array('type' => 'websafe', 'version' => __('Monospace Fonts', 'revslider'), 'label' => '"Courier New", Courier, monospace'),
- array('type' => 'websafe', 'version' => __('Monospace Fonts', 'revslider'), 'label' => '"Lucida Console", Monaco, monospace')
- );
-
- /*if($slider !== false){
- $font_custom = $slider->getParam("google_font","");
-
- if(!is_array($font_custom)) $font_custom = array($font_custom); //backwards compability
- if(is_array($font_custom)){
- foreach($font_custom as $key => $curFont){
- $font = $this->cleanFontStyle(stripslashes($curFont));
-
- if($font != false)
- $font_custom[$key] = array('version' => __('Depricated Google Fonts', 'revslider'), 'label' => $font);
- else
- unset($font_custom[$key]);
- }
- $fonts = array_merge($font_custom, $fonts);
- }
- }*/
-
- include(RS_PLUGIN_PATH.'includes/googlefonts.php');
-
- foreach($googlefonts as $f => $val){
- $fonts[] = array('type' => 'googlefont', 'version' => __('Google Fonts', 'revslider'), 'label' => $f, 'variants' => $val['variants'], 'subsets' => $val['subsets']);
- }
-
- return apply_filters('revslider_operations_getArrFontFamilys', $fonts);
- }
- /**
- * get font name in clean
- * @changed in 5.1.0
- */
- public function cleanFontStyle($font){
-
- $font = str_replace(array('family=', '+'), array('', ' '), $font);
- $font = explode(':', $font);
- return (strpos($font['0'], ' ') !== false) ? '"'.$font['0'].'"' : $font['0'];
-
- }
- /**
- *
- * get the select classes html for putting in the html by ajax
- */
- private function getHtmlSelectCaptionClasses($contentCSS){
- $arrCaptions = $this->getArrCaptionClasses($contentCSS);
- $htmlSelect = RevSliderFunctions::getHTMLSelect($arrCaptions,"","id='layer_caption' name='layer_caption'",true);
- return($htmlSelect);
- }
-
- /**
- * Fetch all Custom CSS only one time
- * @since: 5.2.4
- **/
- public static function fillCSS(){
- if(empty(self::$css)){
- $db = new RevSliderDB();
-
- $customCss = array();
- $result = $db->fetch(RevSliderGlobals::$table_css);
- if(!empty($result)){
- $customCss = $result;
- }
-
- self::$css = $customCss;
- }
- }
-
- /**
- *
- * get contents of the css table
- */
- public function getCaptionsContent(){
-
- if(empty(self::$css)){
- self::fillCSS();
- }
-
- $result = self::$css;
- $contentCSS = RevSliderCssParser::parseDbArrayToCss($result);
- return($contentCSS);
- }
- /**
- *
- * get contents of the css table
- */
- public static function getCaptionsContentArray($handle = false){
- if(empty(self::$css)){
- self::fillCSS();
- }
-
- $result = self::$css;
- $contentCSS = RevSliderCssParser::parseDbArrayToArray($result, $handle);
- return($contentCSS);
- }
- /**
- *
- * get contents of the static css file
- */
- public static function getStaticCss(){
- /*if ( is_multisite() ){
- if(!get_site_option('revslider-static-css')){
- if(file_exists(RS_PLUGIN_PATH.'public/assets/css/static-captions.css')){
- $contentCSS = @file_get_contents(RS_PLUGIN_PATH.'public/assets/css/static-captions.css');
- self::updateStaticCss($contentCSS);
- }
- }
- $contentCSS = get_site_option('revslider-static-css', '');
- }else{*/
- if(!get_option('revslider-static-css')){
- if(file_exists(RS_PLUGIN_PATH.'public/assets/css/static-captions.css')){
- $contentCSS = @file_get_contents(RS_PLUGIN_PATH.'public/assets/css/static-captions.css');
- self::updateStaticCss($contentCSS);
- }
- }
- $contentCSS = get_option('revslider-static-css', '');
- //}
- return($contentCSS);
- }
- /**
- *
- * get contents of the static css file
- */
- public static function updateStaticCss($content){
- $content = str_replace(array("\'", '\"', '\\\\'),array("'", '"', '\\'), trim($content));
- /*if ( is_multisite() ){
- $c = get_site_option('revslider-static-css', '');
- $c = update_site_option('revslider-static-css', $content);
- }else{*/
- $c = get_option('revslider-static-css', '');
- $c = RevSliderFunctionsWP::update_option('revslider-static-css', $content, 'off');
- //}
- return $content;
- }
- /**
- *
- * get contents of the static css file
- */
- public function getDynamicCss(){
- if(empty(self::$css)){
- self::fillCSS();
- }
-
- $result = self::$css;
- $styles = RevSliderCssParser::parseDbArrayToCss($styles, "\n");
- return $styles;
- }
- /**
- *
- * insert captions css file content
- * @return new captions html select
- */
- public function insertCaptionsContentData($content){
- global $revSliderVersion;
-
- if(!isset($content['handle']) || !isset($content['idle']) || !isset($content['hover'])) return false; // || !isset($content['advanced'])
-
- $db = new RevSliderDB();
- $handle = $content['handle'];
-
- if(!isset($content['hover'])) $content['hover'] = '';
- if(!isset($content['advanced'])) $content['advanced'] = array();
- if(!isset($content['advanced']['idle'])) $content['advanced']['idle'] = array();
- if(!isset($content['advanced']['hover'])) $content['advanced']['hover'] = array();
-
- $arrInsert = array();
- $arrInsert["handle"] = '.tp-caption.'.$handle;
- $arrInsert["params"] = stripslashes(json_encode(str_replace("'", '"', $content['idle'])));
- $arrInsert["hover"] = stripslashes(json_encode(str_replace("'", '"', $content['hover'])));
-
- if(!isset($content['settings'])) $content['settings'] = array();
- $content['settings']['version'] = 'custom';
- $content['settings']['translated'] = '5'; // translated to version 5 currently
- $arrInsert["settings"] = stripslashes(json_encode(str_replace("'", '"', $content['settings'])));
-
- $arrInsert["advanced"] = array();
- $arrInsert["advanced"]['idle'] = $content['advanced']['idle'];
- $arrInsert["advanced"]['hover'] = $content['advanced']['hover'];
- $arrInsert["advanced"] = stripslashes(json_encode(str_replace("'", '"', $arrInsert["advanced"])));
-
- $result = $db->insert(RevSliderGlobals::$table_css, $arrInsert);
- //output captions array
- $arrCaptions = RevSliderCssParser::get_captions_sorted();
-
- return($arrCaptions);
- }
- /**
- * update captions css file content
- * @return new captions html select
- */
- public function updateCaptionsContentData($content){
- global $revSliderVersion;
-
- if(!isset($content['handle']) || !isset($content['idle']) || !isset($content['hover'])) return false; // || !isset($content['advanced'])
-
- $db = new RevSliderDB();
- //first get single entry to merge settings
- $styles = $db->fetchSingle(RevSliderGlobals::$table_css, $db->prepare('`handle` = %s', array('.tp-caption.'.$content['handle'])));
-
- if(empty($styles)) return false;
-
- $settings = json_decode(str_replace("'", '"', $styles['settings']), true);
- if(isset($content['settings']) && !empty($content['settings'])){
- foreach($content['settings'] as $key => $value){
- $settings[$key] = $value;
- }
- //$settings = array_merge($content['settings'], $settings);
- }
-
- $handle = $content['handle'];
-
- if(!isset($content['idle'])) $content['idle'] = '';
- if(!isset($content['hover'])) $content['hover'] = '';
- if(!isset($content['advanced'])) $content['advanced'] = array();
- if(!isset($content['advanced']['idle'])) $content['advanced']['idle'] = array();
- if(!isset($content['advanced']['hover'])) $content['advanced']['hover'] = array();
-
- $arrUpdate = array();
- $arrUpdate["params"] = stripslashes(json_encode(str_replace("'", '"', $content['idle'])));
- $arrUpdate["hover"] = stripslashes(json_encode(str_replace("'", '"', $content['hover'])));
- $arrUpdate["settings"] = stripslashes(json_encode(str_replace("'", '"', $settings)));
-
- $arrUpdate["advanced"] = array();
- $arrUpdate["advanced"]['idle'] = $content['advanced']['idle'];
- $arrUpdate["advanced"]['hover'] = $content['advanced']['hover'];
- $arrUpdate["advanced"] = stripslashes(json_encode(str_replace("'", '"', $arrUpdate["advanced"])));
-
- $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => '.tp-caption.'.$handle));
-
- //output captions array
- $arrCaptions = RevSliderCssParser::get_captions_sorted();
-
- return($arrCaptions);
- }
-
-
- /**
- * update captions advanced css
- * @return: new captions html select
- * @since: 5.0
- */
- public function updateAdvancedCssData($data){
- if(!isset($data['handle']) || !isset($data['styles']) || !isset($data['type'])) return false;
- if($data['type'] !== 'idle' && $data['type'] !== 'hover') return false;
-
- $db = new RevSliderDB();
-
- //get current styles
- $styles = $db->fetchSingle(RevSliderGlobals::$table_css, $db->prepare('`handle` = %s', array($data['handle'])));
-
- if(!empty($styles)){
- if(!isset($styles['advanced'])) $styles['advanced'] = '';
-
- $adv = json_decode(str_replace("'", '"', $styles['advanced']), true);
-
- if(!isset($adv['idle'])) $adv['idle'] = array();
- if(!isset($adv['hover'])) $adv['hover'] = array();
-
- $adv[$data['type']] = $data['styles'];
-
- $arrUpdate = array();
-
- $arrUpdate['advanced'] = json_encode(str_replace("'", '"', $adv));
-
- $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => $data['handle']));
-
- //output captions array
- $arrCaptions = RevSliderCssParser::get_captions_sorted();
-
- return($arrCaptions);
-
- }else{
- return false;
- }
-
- }
-
- /**
- * rename caption
- * @since: 5.0
- */
- public function renameCaption($content){
- if(isset($content['old_name']) && isset($content['new_name'])) {
- $db = new RevSliderDB();
- $handle = $content['old_name'];
- $arrUpdate = array();
- $arrUpdate["handle"] = '.tp-caption.'.$content['new_name'];
- $result = $db->update(RevSliderGlobals::$table_css, $arrUpdate, array('handle' => '.tp-caption.'.$handle));
- if($result !== false){ //rename all layers in all Sliders that use this old name with the new name
- $slider = new RevSlider();
- $arrSliders = $slider->getArrSliders();
- if(!empty($arrSliders)){
- foreach($arrSliders as $slider){
- $arrSildes = $slider->getSlides();
- foreach($arrSildes as $slide){
- $slide->replaceCssClass($content['old_name'], $content['new_name']);
- }
- }
- }
- }
- }
- //output captions array
- $arrCaptions = RevSliderCssParser::get_captions_sorted();
- return($arrCaptions);
- }
-
-
- /**
- *
- * delete captions css file content
- * @return new captions html select
- */
- public function deleteCaptionsContentData($handle){
- $db = new RevSliderDB();
-
- $db->delete(RevSliderGlobals::$table_css, $db->prepare("handle= %s", array(".tp-caption.".$handle)));
- //$this->updateDynamicCaptions();
- //output captions array
- $arrCaptions = RevSliderCssParser::get_captions_sorted();
-
- return($arrCaptions);
- }
- /**
- *
- * update dynamic-captions css file content
- */
- public static function updateDynamicCaptions($full = false){
- if($full){
- $captions = array();
- $captions = RevSliderOperations::getCaptionsContentArray();
- $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
- }else{
- //go through all sliders and check which classes are used, get all classes from DB and write them into the file
- $slider = new RevSlider();
- $arrSliders = $slider->getArrSliders();
- $classes = array();
- //get used classes
- if(!empty($arrSliders)){
- foreach($arrSliders as $slider){
- try{
- $slides = $slider->getSlides();
- if(!empty($slides)){
- foreach($slides as $slide){
- $layers = $slide->getLayers();
- if(!empty($layers)){
- foreach($layers as $layer){
- if(isset($layer['style'])){
- if(!empty($layer['style'])) $classes[$layer['style']] = true;
- }
- }
- }
- }
- }
- }catch(Exception $e){
- $errorMessage = "ERROR: ".$e->getMessage();
- }
- }
- }
- if(!empty($classes)){
- $captions = array();
- foreach($classes as $class => $val){
- $captionCheck = RevSliderOperations::getCaptionsContentArray($class);
- if(!empty($captionCheck)) $captions[] = $captionCheck;
- }
- $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
- }
- }
- }
- /**
- *
- * get contents of the css file
- */
- public static function getCaptionsCssContentArray(){
- if(file_exists(RS_PLUGIN_PATH.'public/assets/css/captions.css'))
- $contentCSS = file_get_contents(RS_PLUGIN_PATH.'public/assets/css/captions.css');
- else if(file_exists(RS_PLUGIN_PATH.'public/assets/css/captions-original.css'))
- $contentCSS = file_get_contents(RS_PLUGIN_PATH.'public/assets/css/captions-original.css');
- else if(file_exists(RS_PLUGIN_PATH.'backup/'.'captions.css'))
- $contentCSS = file_get_contents(RS_PLUGIN_PATH.'backup/'.'captions.css');
- else if(file_exists(RS_PLUGIN_PATH.'backup/'.'captions-original.css'))
- $contentCSS = file_get_contents(RS_PLUGIN_PATH.'backup/'.'captions-original.css');
- else
- RevSliderFunctions::throwError("No captions.css found! This installation is incorrect, please make sure to reupload the Slider Revolution plugin and try again!");
-
- $result = RevSliderCssParser::parseCssToArray($contentCSS);
- return($result);
- }
- /**
- *
- * import contents of the css file
- */
- public static function importCaptionsCssContentArray(){
- $db = new RevSliderDB();
- $css = self::getCaptionsCssContentArray();
- $static = array();
- if(is_array($css) && $css !== false && count($css) > 0){
- foreach($css as $class => $styles){
- //check if static style or dynamic style
- $class = trim($class);
- if((strpos($class, ':hover') === false && strpos($class, ':') !== false) || //before, after
- strpos($class," ") !== false || // .tp-caption.imageclass img or .tp-caption .imageclass or .tp-caption.imageclass .img
- strpos($class,".tp-caption") === false || // everything that is not tp-caption
- (strpos($class,".") === false || strpos($class,"#") !== false) || // no class -> #ID or img
- strpos($class,">") !== false){ //.tp-caption>.imageclass or .tp-caption.imageclass>img or .tp-caption.imageclass .img
- $static[$class] = $styles;
- continue;
- }
- //is a dynamic style
- if(strpos($class, ':hover') !== false){
- $class = trim(str_replace(':hover', '', $class));
- $arrInsert = array();
- $arrInsert["hover"] = json_encode($styles);
- $arrInsert["settings"] = json_encode(array('hover' => 'true'));
- }else{
- $arrInsert = array();
- $arrInsert["params"] = json_encode($styles);
- }
- //check if class exists
- $result = $db->fetch(RevSliderGlobals::$table_css, $db->prepare("handle = %s", array($class)));
- if(!empty($result)){ //update
- $db->update(RevSliderGlobals::$table_css, $arrInsert, array('handle' => $class));
- }else{ //insert
- $arrInsert["handle"] = $class;
- $db->insert(RevSliderGlobals::$table_css, $arrInsert);
- }
- }
- }
- if(!empty($static)){ //save static into static-captions.css
- $css = RevSliderCssParser::parseStaticArrayToCss($static);
- $static_cur = RevSliderOperations::getStaticCss(); //get the open sans line!
- $css = $static_cur."\n".$css;
- self::updateStaticCss($css);
- }
- }
- /**
- *
- * move old captions.css and captions-original.css
- */
- public static function moveOldCaptionsCss(){
- if(file_exists(RevSliderGlobals::$filepath_captions_original))
- $success = @rename(RevSliderGlobals::$filepath_captions_original, RevSliderGlobals::$filepath_backup.'/captions-original.css');
- if(file_exists(RevSliderGlobals::$filepath_captions))
- $success = @rename(RevSliderGlobals::$filepath_captions, RevSliderGlobals::$filepath_backup.'/captions.css');
- }
- /**
- *
- * preview slider output
- * if output object is null - create object
- */
- public function previewOutput($sliderID,$output = null){
-
- if($sliderID == "empty_output"){
- $this->loadingMessageOutput();
- exit();
- }
- if($output == null)
- $output = new RevSliderOutput();
- $slider = new RevSlider();
- $slider->initByID($sliderID);
- $isWpmlExists = RevSliderWpml::isWpmlExists();
- $useWpml = $slider->getParam("use_wpml","off");
- $wpmlActive = false;
- if($isWpmlExists && $useWpml == "on"){
- $wpmlActive = true;
- $arrLanguages = RevSliderWpml::getArrLanguages(false);
- //set current lang to output
- $currentLang = RevSliderFunctions::getPostGetVariable("lang");
- if(empty($currentLang))
- $currentLang = RevSliderWpml::getCurrentLang();
- if(empty($currentLang))
- $currentLang = $arrLanguages[0];
- $output->setLang($currentLang);
- $selectLangChoose = RevSliderFunctions::getHTMLSelect($arrLanguages,$currentLang,"id='select_langs'",true);
- }
- $output->setPreviewMode();
- //put the output html
- $urlPlugin = RS_PLUGIN_URL.'public/assets/';
- $urlPreviewPattern = RevSliderBase::$url_ajax_actions."&client_action=preview_slider&sliderid=".$sliderID."&lang=[lang]&nonce=[nonce]";
- $nonce = wp_create_nonce("revslider_actions");
- $setBase = (is_ssl()) ? "https://" : "http://";
- ?>
- <html>
- <head>
- <link rel='stylesheet' href='<?php echo $urlPlugin; ?>css/settings.css?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>' type='text/css' media='all' />
- <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' />
- <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' />
- <?php
- $db = new RevSliderDB();
- if(empty(self::$css)){
- self::fillCSS();
- }
-
- $styles = self::$css;
- $styles = RevSliderCssParser::parseDbArrayToCss($styles, "\n");
- $styles = RevSliderCssParser::compress_css($styles);
- echo '<style type="text/css">'.$styles.'</style>'; //.$stylesinnerlayers
- $http = (is_ssl()) ? 'https' : 'http';
-
- $operations = new RevSliderOperations();
- $arrValues = $operations->getGeneralSettingsValues();
-
- $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
- if($set_diff_font !== ''){
- $font_url = $set_diff_font;
- }else{
- $font_url = $http.'://fonts.googleapis.com/css?family=';
- }
- $custom_css = RevSliderOperations::getStaticCss();
- echo '<style type="text/css">'.RevSliderCssParser::compress_css($custom_css).'</style>';
-
- $gfonts = '';
- $googleFont = $slider->getParam("google_font");
- if(is_array($googleFont)){
- foreach($googleFont as $key => $font){
-
- }
- }else{
- RevSliderOperations::setCleanFontImport($googleFont);
- //$gfonts .= RevSliderOperations::getCleanFontImport($googleFont);
- }
- //add all google fonts of layers
- $gfsubsets = $slider->getParam("subsets",array());
- $gf = $slider->getUsedFonts(false);
-
- foreach($gf as $gfk => $gfv){
- $variants = array();
- if(!empty($gfv['variants'])){
- foreach($gfv['variants'] as $mgvk => $mgvv){
- $variants[] = $mgvk;
- }
- }
-
- $subsets = array();
- if(!empty($gfv['subsets'])){
- foreach($gfv['subsets'] as $ssk => $ssv){
- if(array_search(esc_attr($gfk.'+'.$ssv), $gfsubsets) !== false){
- $subsets[] = $ssv;
- }
- }
- }
- RevSliderOperations::setCleanFontImport($gfk, '', '', $variants, $subsets);
- //$gfonts .= RevSliderOperations::getCleanFontImport($gfk, '', '', $variants, $subsets);
- }
-
- echo RevSliderOperations::printCleanFontImport();
- //echo $gfonts;
- ?>
- <script type='text/javascript' src='<?php echo $setBase; ?>code.jquery.com/jquery-latest.min.js'></script>
- <script type='text/javascript' src='<?php echo $urlPlugin; ?>js/jquery.themepunch.tools.min.js?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>'></script>
- <script type='text/javascript' src='<?php echo $urlPlugin; ?>js/jquery.themepunch.revolution.min.js?rev=<?php echo RevSliderGlobals::SLIDER_REVISION; ?>'></script>
- <?php
- $setRevStartSize = RevSliderFront::add_setREVStartSize();
- echo $setRevStartSize;
- ?>
- <?php
- do_action('revslider_preview_slider_head');
- ?>
- </head>
- <body style="padding:0px;margin:0px;width:100%;height:100%;position:relative;">
- <?php
- if($wpmlActive == true){
- ?>
- <div style="margin-bottom:10px;text-align:center;">
- <?php _e("Choose language",'revslider'); ?>: <?php echo $selectLangChoose; ?>
- </div>
- <script type="text/javascript">
- var g_previewPattern = '<?php echo $urlPreviewPattern; ?>';
- jQuery("#select_langs").change(function(){
- var lang = this.value;
- var nonce = "<?php echo $nonce; ?>";
- var pattern = g_previewPattern;
- var urlPreview = pattern.replace("[lang]",lang).replace("[nonce]",nonce);
- location.href = urlPreview;
- });
- </script>
- <?php
- }
- ?>
- <?php
- $output->putSliderBase($sliderID);
- do_action('revslider_preview_slider_footer', $slider, $output);
- ?>
- </body>
- </html>
- <?php
- }
- /*
- * show only the markup for jQuery version of plugin
- */
- public function previewOutputMarkup($sliderID){
- $export_real = true; //if false, then kriki export for JavaScript Standalone version
-
- if($export_real){ //set all different file path's here
- $path_fonts = 'fonts/';
- $path_css = 'css/';
- $path_js = 'js/';
- $path_assets = 'assets';
- $path_assets_raw = 'assets';
- $path_assets_vid = 'assets';
- $path_assets_raw_vid = 'assets';
- }else{
- $path_fonts = '../../revolution/fonts/';
- $path_css = '../../revolution/css/';
- $path_js = '../../revolution/js/';
- $path_assets = '../../assets/images';
- $path_assets_raw = 'assets/images';
- $path_assets_vid = '../../assets/videos';
- $path_assets_raw_vid = 'assets/videos';
- }
-
- //check if file exists, and if yes, delete it!
-
- if(file_exists(RevSliderGlobals::$uploadsUrlExportZip)){
- @unlink(RevSliderGlobals::$uploadsUrlExportZip); //delete file to start with a fresh one
- }
-
- $usepcl = false;
- if(class_exists('ZipArchive')){
- $zip = new ZipArchive;
- $success = $zip->open(RevSliderGlobals::$uploadsUrlExportZip, ZIPARCHIVE::CREATE | ZipArchive::OVERWRITE);
-
- if($success !== true){
- echo __("No write permissions. Can't create zip file: ", 'revslider').RevSliderGlobals::$uploadsUrlExportZip;
- exit;
- }
- }else{
- //fallback to pclzip
- require_once(ABSPATH . 'wp-admin/includes/class-pclzip.php');
-
- $pclzip = new PclZip(RevSliderGlobals::$uploadsUrlExportZip);
-
- //either the function uses die() or all is cool
- $usepcl = true;
- }
-
-
- if($sliderID == "empty_output"){
- echo __("Wrong request!", 'revslider');
- exit;
- }
- $output = new RevSliderOutput();
- $operations = new RevSliderOperations();
- $slider = new RevSlider();
- $slider->initByID($sliderID);
-
- $output->setPreviewMode();
-
- $http = (is_ssl()) ? 'https' : 'http';
-
- $arrValues = $operations->getGeneralSettingsValues();
- $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
- if($set_diff_font !== ''){
- $font_url = $set_diff_font;
- }else{
- $font_url = $http.'://fonts.googleapis.com/css?family=';
- }
- $static_css = RevSliderOperations::getStaticCss();
-
- ob_start();
- $output->putSliderBase($sliderID, array(), true);
- $content = ob_get_contents();
- ob_clean();
- ob_end_clean();
-
-
- $fonts = '';
- while(strpos($content, '<!-- FONT -->') !== false){
- $temp_font = substr($content, strpos($content, '<!-- FONT -->'), strpos($content, '<!-- /FONT -->') + 14 - strpos($content, '<!-- FONT -->'))."\n";
- $fonts .= $temp_font;
-
- $starthtml = substr($content, 0, strpos($content, '<!-- FONT -->'));
- $endhtml = substr($content, strpos($content, '<!-- /FONT -->')+14);
-
- $content = $starthtml.$endhtml; //remove from html markup
- }
- $fonts = str_replace(array('<!-- FONT -->', '<!-- /FONT -->'), '', $fonts); //remove the tags
- $fonts = str_replace('/>','/>'."\n",$fonts);
- $scripts = '';
- while(strpos($content, '<!-- SCRIPT -->') !== false){
- $temp_script = substr($content, strpos($content, '<!-- SCRIPT -->'), strpos($content, '<!-- /SCRIPT -->') + 16 - strpos($content, '<!-- SCRIPT -->'))."\n";
- $scripts .= $temp_script;
-
- $starthtml = substr($content, 0, strpos($content, '<!-- SCRIPT -->'));
- $endhtml = substr($content, strpos($content, '<!-- /SCRIPT -->')+16);
-
- $content = $starthtml.$endhtml; //remove from html markup
- }
- $scripts = str_replace(array('<!-- SCRIPT -->', '<!-- /SCRIPT -->'), '', $scripts); //remove the tags
-
- $styles = '';
- while(strpos($content, '<!-- STYLE -->') !== false){
- $temp_style = substr($content, strpos($content, '<!-- STYLE -->'), strpos($content, '<!-- /STYLE -->') + 15 - strpos($content, '<!-- STYLE -->'))."\n";
- $styles .= $temp_style;
-
- $starthtml = substr($content, 0, strpos($content, '<!-- STYLE -->'));
- $endhtml = substr($content, strpos($content, '<!-- /STYLE -->')+15);
-
- $content = $starthtml.$endhtml; //remove from html markup
- }
- $styles = str_replace(array('<!-- STYLE -->', '<!-- /STYLE -->'), '', $styles); //remove the tags
-
- $full_content = '';
-
- ob_start();
- ?><!DOCTYPE html>
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
- <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
- <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
- <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title><?php echo $slider->getTitle(); ?> - Slider Revolution</title>
- <meta name="description" content="Slider Revolution Example" />
- <meta name="keywords" content="fullscreen image, grid layout, flexbox grid, transition" />
- <meta name="author" content="ThemePunch" />
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- LOAD JQUERY LIBRARY -->
- <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.js"></script>
-
- <!-- LOADING FONTS AND ICONS -->
- <?php echo $fonts; ?>
-
- <link rel="stylesheet" type="text/css" href="<?php echo $path_fonts; ?>pe-icon-7-stroke/css/pe-icon-7-stroke.css">
- <link rel="stylesheet" type="text/css" href="<?php echo $path_fonts; ?>font-awesome/css/font-awesome.css">
-
- <!-- REVOLUTION STYLE SHEETS -->
- <link rel="stylesheet" type="text/css" href="<?php echo $path_css; ?>settings.css">
- <!-- REVOLUTION LAYERS STYLES -->
- <?php
- if($export_real){
- echo $styles;
-
- if($static_css !== ''){
- echo '<style type="text/css">';
- echo RevSliderCssParser::compress_css($static_css);
- echo '</style>'."\n";
- }
- }else{
- ?>
- <link rel="stylesheet" type="text/css" href="<?php echo $path_css; ?>layers.css">
-
- <!-- REVOLUTION NAVIGATION STYLES -->
- <link rel="stylesheet" type="text/css" href="<?php echo $path_css; ?>navigation.css">
-
- <!-- FONT AND STYLE FOR BASIC DOCUMENTS, NO NEED FOR FURTHER USAGE IN YOUR PROJECTS-->
- <link href="http://fonts.googleapis.com/css?family=Roboto%3A700%2C300" rel="stylesheet" property="stylesheet" type="text/css" media="all" />
- <link rel="stylesheet" type="text/css" href="../../assets/css/noneed.css">
- <?php
- }
- ?>
- <!-- REVOLUTION JS FILES -->
- <script type="text/javascript" src="<?php echo $path_js; ?>jquery.themepunch.tools.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>jquery.themepunch.revolution.min.js"></script>
- <!-- SLIDER REVOLUTION 5.0 EXTENSIONS (Load Extensions only on Local File Systems ! The following part can be removed on Server for On Demand Loading) -->
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.actions.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.carousel.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.kenburn.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.layeranimation.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.migration.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.navigation.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.parallax.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.slideanims.min.js"></script>
- <script type="text/javascript" src="<?php echo $path_js; ?>extensions/revolution.extension.video.min.js"></script>
- <?php
- $setRevStartSize = RevSliderFront::add_setREVStartSize();
- echo $setRevStartSize;
- ?>
- </head>
-
- <body>
- <?php if(!$export_real){ ?>
- <!-- HEADER -->
- <article class="content">
- <!-- Add your site or application content here -->
- <section class="header">
- <span class="logo" style="float:left"></span>
- <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>
- <div class="clearfix"></div>
- </section>
- </article>
-
- <?php
- $slider_type = $slider->getParam('slider_type');
- if($slider_type != 'fullscreen'){
- ?>
- <article class="small-history">
- <h2 class="textaligncenter" style="margin-bottom:25px;">Your Slider Revolution jQuery Plugin</h2>
- <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 & drop editor</a> will help you to create your Sliders and tell your own stories in no time!</p>
- </article>
- <?php
- }
- ?>
- <!-- SLIDER EXAMPLE -->
- <section class="example">
- <article class="content">
- <?php } ?>
- <?php
- $head = ob_get_contents();
- ob_clean();
- ob_end_clean();
- ob_start();
- ?>
- <?php if(!$export_real){ ?>
- </article>
- </section>
- <div class="bottom-history-wrap" style="margin-top:150px">
- <?php
- if($slider_type == 'fullscreen'){
- ?>
- <article class="small-history bottom-history" style="background:#f5f7f9;">
- <h2 class="textaligncenter" style="margin-bottom:25px;">Your Slider Revolution jQuery Plugin</h2>
- <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 & drop editor</a> will help you to create your Sliders and tell your own stories in no time!</p>
- </article>
- <?php
- }
- ?>
-
- <article class="small-history bottom-history">
- <i class="fa-icon-question tp-headicon"></i>
- <h2 class="textaligncenter" style="margin-bottom:25px;">Find the Documentation ?</h2>
- <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>
- <div class="tp-smallinfo">Learn how to build your Slider!</div>
- </article>
- <article class="small-history bottom-history" style="background:#f5f7f9;">
- <i class="fa-icon-arrows tp-headicon"></i>
- <h2 class="textaligncenter" style="margin-bottom:25px;">Navigation Examples !</h2>
- <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>
- <div class="tp-smallinfo">Customize the interaction with your visitor!</div>
- </article>
- <article class="small-history bottom-history">
- <i class="fa-icon-cog tp-headicon"></i>
- <h2 class="textaligncenter" style="margin-bottom:25px;">Layer and Slide Transitions</h2>
- <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>
- <div class="tp-smallinfo">Eye Catching Effects!</div>
- </article>
- </div>
- <div class="clearfix"></div>
- <footer>
- <div class="footer_inner">
- <div class="footerwidget">
- <h3>Slider Revolution</h3>
- <a href="http://revolution.themepunch.com/jquery/#features" target="_self">Features</a>
- <a href="http://revolution.themepunch.com/examples-jquery/" target="_self">Usage Examples</a>
- <a href="http://www.themepunch.com/revsliderjquery-doc/slider-revolution-jquery-5-x-documentation/" target="_blank">Online Documentation</a>
- </div>
- <div class="footerwidget">
- <h3>Resources</h3>
- <a href="http://www.themepunch.com/support-center/" target="_blank">FAQ Database</a>
- <a href="http://themepunch.com" target="_blank">ThemePunch.com</a>
- <a href="http://themepunch.us9.list-manage.com/subscribe?u=a5738148e5ec630766e28de16&id=3e718acc63" target="_blank">Newsletter</a>
- <a href="http://www.themepunch.com/products/" target="_blank">Plugins</a>
- <a href="http://www.themepunch.com/products/" target="_blank">Themes</a>
- </div>
- <div class="footerwidget">
- <h3>More Versions</h3>
- <a href="http://revolution.themepunch.com" target="_blank">WordPress</a>
- <a href="http://codecanyon.net/item/slider-revolution-responsive-prestashop-module/7140939?ref=themepunch" target="_blank">Prestashop</a>
- <a href="http://codecanyon.net/item/slider-revolution-responsive-magento-extension/9332896?ref=themepunch" target="_blank">Magento</a>
- <a href="http://codecanyon.net/item/slider-revolution-responsive-opencart-module/9994648?ref=themepunch" target="_blank">OpenCart</a>
- <a href="http://codecanyon.net/item/slider-revolution-responsive-drupal-module/12041755?ref=themepunch" target="_blank">Drupal</a>
- </div>
- <div class="footerwidget social">
- <h3>Follow Us</h3>
- <ul>
- <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
- "></i></a>
- </li>
- <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>
- </li>
- <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>
- </li>
- </ul>
- </div>
- <div class="clearfix"></div>
- </div>
- </footer>
- <script type="text/javascript" src="../../assets/warning.js"></script>
- <?php } ?>
- </body>
- </html>
- <?php
- $footer = ob_get_contents();
- ob_clean();
- ob_end_clean();
- $slider_html = $head."\n".$content."\n".$scripts."\n".$footer;
-
- $upload_dir = RevSliderFunctionsWP::getPathUploads();
- $upload_dir_multisiteless = wp_upload_dir();
- $cont_url = $upload_dir_multisiteless['baseurl'];
- $cont_url_no_www = str_replace('www.', '', $upload_dir_multisiteless['baseurl']);
- $upload_dir_multisiteless = $upload_dir_multisiteless['basedir'].'/';
-
- $search = array($cont_url, $cont_url_no_www, RS_PLUGIN_URL);
- if(defined('WHITEBOARD_PLUGIN_URL')){
- $search[] = WHITEBOARD_PLUGIN_URL;
- }
-
- $search = apply_filters('revslider_html_export_replace_urls', $search);
-
- $added = array();
-
- foreach($search as $s){
- preg_match_all("/(\"|')".str_replace('/', '\/', $s)."\S+(\"|')/", $slider_html, $_files);
-
- if(!empty($_files) && isset($_files[0]) && !empty($_files[0])){
- //go through all files, check for existance and add to the zip file
- foreach($_files[0] as $_file){
- $o = $_file;
- $_file = str_replace(array('"', "'", $s), '', $_file);
-
- //check if video or image
- $use_path = $path_assets;
- $use_path_raw = $path_assets_raw;
-
- preg_match('/.*?.(?:jpg|jpeg|gif|png|svg)/i', $_file, $match);
- preg_match('/.*?.(?:ogv|webm|mp4|mp3)/i', $_file, $match2);
-
- $f = false;
- if(!empty($match) && isset($match[0]) && !empty($match[0])){
- //image
- $use_path = $path_assets;
- $use_path_raw = $path_assets_raw;
- $f = true;
- }
- if(!empty($match2) && isset($match2[0]) && !empty($match2[0])){
- //video
- $use_path = $path_assets_vid;
- $use_path_raw = $path_assets_raw_vid;
- $f = true;
- }
-
- if($f == false){
- //no file, just a location. So change the location accordingly by removing base and add ../../revolution
- if(strpos($o, 'public/assets/js/') !== false){ //this will be the jsFileLocation script part
- $slider_html = str_replace($o, '"'.$path_js.'"', $slider_html);
- }
- continue; //no correct file, nothing to add
- }
-
- if(isset($added[$_file])) continue;
-
- $add = '';
- $__file = '';
- $repl_to = explode('/', $_file);
- $repl_to = end($repl_to);
-
- $remove = false;
-
- if(is_file($upload_dir.$_file)){
- $mf = str_replace('//', '/', $upload_dir.$_file);
- if(!$usepcl){
- $zip->addFile($mf, $use_path_raw.'/'.$repl_to);
- }else{
- $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
- }
- $remove = true;
- }elseif(is_file($upload_dir_multisiteless.$_file)){
- $mf = str_replace('//', '/', $upload_dir_multisiteless.$_file);
- if(!$usepcl){
- $zip->addFile($mf, $use_path_raw.'/'.$repl_to);
- }else{
- $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
- }
- $remove = true;
- }elseif(is_file(RS_PLUGIN_PATH.$_file)){
- $mf = str_replace('//', '/', RS_PLUGIN_PATH.$_file);
-
- //we need to be special with svg files
- $__file = basename($_file);
-
- //remove admin/assets/
- //$__file = str_replace('admin/assets/images/', '', $_file);
-
-
- if(!$usepcl){
- $zip->addFile($mf, $use_path_raw.'/'.$__file);
- }else{
- $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
- }
- $remove = true;
- $add = '/';
- }else{
- if(defined('WHITEBOARD_PLUGIN_PATH')){
- if(is_file(WHITEBOARD_PLUGIN_PATH.$_file)){
- $mf = str_replace('//', '/', WHITEBOARD_PLUGIN_PATH.$_file);
-
- //we need to be special with svg files
- $__file = basename($_file);
-
- if(!$usepcl){
- $zip->addFile($mf, $use_path_raw.'/'.$__file);
- }else{
- $v_list = $pclzip->add($mf, PCLZIP_OPT_REMOVE_PATH, str_replace(basename($mf), '', $mf), PCLZIP_OPT_ADD_PATH, $use_path_raw.'/');
- }
- $remove = true;
- $add = '/';
-
- }
- }
- }
- if($remove == true){
- $added[$_file] = true; //set as added
- //replace file with new path
- if($add !== '') $_file = $__file; //set the different path here
- $re = (strpos($o, "'") !== false) ? "'" : '"';
- $slider_html = str_replace($o, $re.$use_path.'/'.$repl_to.$re, $slider_html);
- }
- }
-
- }
- }
-
- if($export_real){ //only include if real export
- //add common files to the zip
- if(!$usepcl){
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.actions.min.js', 'js/extensions/revolution.extension.actions.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.carousel.min.js', 'js/extensions/revolution.extension.carousel.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.kenburn.min.js', 'js/extensions/revolution.extension.kenburn.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.layeranimation.min.js', 'js/extensions/revolution.extension.layeranimation.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.migration.min.js', 'js/extensions/revolution.extension.migration.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.navigation.min.js', 'js/extensions/revolution.extension.navigation.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.parallax.min.js', 'js/extensions/revolution.extension.parallax.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.slideanims.min.js', 'js/extensions/revolution.extension.slideanims.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/extensions/revolution.extension.video.min.js', 'js/extensions/revolution.extension.video.min.js');
-
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/jquery.themepunch.enablelog.js', 'js/jquery.themepunch.enablelog.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/jquery.themepunch.revolution.min.js', 'js/jquery.themepunch.revolution.min.js');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/js/jquery.themepunch.tools.min.js', 'js/jquery.themepunch.tools.min.js');
-
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/css/settings.css', 'css/settings.css');
-
-
- $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');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/pe-icon-7-stroke/css/helper.css', 'fonts/pe-icon-7-stroke/css/helper.css');
- $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');
- $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');
- $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');
- $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');
-
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/css/font-awesome.css', 'fonts/font-awesome/css/font-awesome.css');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/FontAwesome.otf', 'fonts/font-awesome/fonts/FontAwesome.otf');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.eot', 'fonts/font-awesome/fonts/fontawesome-webfont.eot');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.svg', 'fonts/font-awesome/fonts/fontawesome-webfont.svg');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.ttf', 'fonts/font-awesome/fonts/fontawesome-webfont.ttf');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/font-awesome/fonts/fontawesome-webfont.woff', 'fonts/font-awesome/fonts/fontawesome-webfont.woff');
-
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.eot', 'fonts/revicons/revicons.eot');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.svg', 'fonts/revicons/revicons.svg');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.ttf', 'fonts/revicons/revicons.ttf');
- $zip->addFile(RS_PLUGIN_PATH.'/public/assets/fonts/revicons/revicons.woff', 'fonts/revicons/revicons.woff');
- }else{
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.actions.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.carousel.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.kenburn.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.layeranimation.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.migration.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.navigation.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.parallax.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.slideanims.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/js/extensions/revolution.extension.video.min.js', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
-
- $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/');
- $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/');
- $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/');
-
- $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/');
-
- $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/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/pe-icon-7-stroke/css/helper.css', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $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/');
- $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/');
- $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/');
- $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/');
-
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/css/font-awesome.css', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/FontAwesome.otf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.eot', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.svg', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.ttf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/font-awesome/fonts/fontawesome-webfont.woff', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
-
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.eot', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.svg', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.ttf', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- $pclzip->add(RS_PLUGIN_PATH.'public/assets/fonts/revicons/revicons.woff', PCLZIP_OPT_REMOVE_PATH, RS_PLUGIN_PATH.'public/assets/');
- }
-
- $notice_text = "";
- $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');
-
- if(!$usepcl){
- $zip->addFromString("NOTICE.txt", $notice_text); //add slider settings
- }else{
- $pclzip->add(array(array( PCLZIP_ATT_FILE_NAME => 'NOTICE.txt',PCLZIP_ATT_FILE_CONTENT => $notice_text)));
- }
-
- }
-
- if(!$usepcl){
- $zip->addFromString("slider.html", $slider_html); //add slider settings
-
- $zip->close();
- }else{
- $pclzip->add(array(array( PCLZIP_ATT_FILE_NAME => 'slider.html',PCLZIP_ATT_FILE_CONTENT => $slider_html)));
- }
-
- header("Content-type: application/zip");
- header("Content-Disposition: attachment; filename=".sanitize_title($slider->getAlias()).".zip");
- header("Pragma: no-cache");
- header("Expires: 0");
- readfile(RevSliderGlobals::$uploadsUrlExportZip);
-
- @unlink(RevSliderGlobals::$uploadsUrlExportZip); //delete file after sending it to user
- exit();
- }
- /**
- *
- * output loading message
- */
- public function loadingMessageOutput(){
- ?>
- <div class="message_loading_preview"><?php _e("Loading Preview...",'revslider')?></div>
- <?php
- }
- /**
- *
- * put slide preview by data
- */
- public function putSlidePreviewByData($data){
- if($data == "empty_output"){
- $this->loadingMessageOutput();
- exit();
- }
- $data = RevSliderFunctions::jsonDecodeFromClientSide($data);
-
- $slideID = $data["slideid"];
- $slide = new RevSlide();
- $slide->initByID($slideID);
- $sliderID = $slide->getSliderID();
- $output = new RevSliderOutput();
- $output->setOneSlideMode($data);
- $this->previewOutput($sliderID,$output);
- }
- /**
- * update general settings
- */
- public function updateGeneralSettings($data){
- $strSettings = serialize($data);
- update_option('revslider-global-settings', $data);
-
- }
- /**
- *
- * get general settigns values.
- */
- static function getGeneralSettingsValues(){
-
- $arrValues = get_option('revslider-global-settings', '');
-
- $arrValues = maybe_unserialize($arrValues);
- return($arrValues);
- }
- /**
- *
- * modify custom slider params. This is instead custom settings difficulties.
- */
- public function modifyCustomSliderParams($data){
- $arrNames = array("width","height",
- "responsitive_w1","responsitive_sw1",
- "responsitive_w2","responsitive_sw2",
- "responsitive_w3","responsitive_sw3",
- "responsitive_w4","responsitive_sw4",
- "responsitive_w5","responsitive_sw5",
- "responsitive_w6","responsitive_sw6");
- $arrMain = $data["main"];
- foreach($arrNames as $name){
- if(array_key_exists($name, $arrMain)){
- $arrMain[$name] = floatval($arrMain[$name]);
- if(!is_numeric($arrMain[$name])) $arrMain[$name] = 0;
- }
- }
- if(!isset($arrMain["fullscreen_offset_container"])) $arrMain["fullscreen_offset_container"] = '';
-
- $arrMain["fullscreen_offset_container"] = $arrMain["fullscreen_offset_container"];
- $data["main"] = $arrMain;
- return($data);
- }
- /**
- *
- * get post types with categories for client side.
- */
- public static function getPostTypesWithCatsForClient(){
- $arrPostTypes = RevSliderFunctionsWP::getPostTypesWithCats();
- $globalCounter = 0;
- $arrOutput = array();
- foreach($arrPostTypes as $postType => $arrTaxWithCats){
- $arrCats = array();
- foreach($arrTaxWithCats as $tax){
- $taxName = $tax["name"];
- $taxTitle = $tax["title"];
- $globalCounter++;
- $arrCats["option_disabled_".$globalCounter] = "---- ".$taxTitle." ----";
- foreach($tax["cats"] as $catID=>$catTitle){
- $arrCats[$taxName."_".$catID] = $catTitle;
- }
- }//loop tax
- $arrOutput[$postType] = $arrCats;
- }//loop types
- return($arrOutput);
- }
-
- public static function setCleanFontImport($font, $class = '', $url = '', $variants = array(), $subsets = array()){
- global $revslider_fonts;
-
- $ret = '';
-
- if(!isset($revslider_fonts)) $revslider_fonts = array(); //if this is called without revslider.php beeing loaded
-
- $do_print = false;
- $tcf = '';
- if(!empty($variants) || !empty($subsets)){
- if(!isset($revslider_fonts[$font])) $revslider_fonts[$font] = array();
- if(!isset($revslider_fonts[$font]['variants'])) $revslider_fonts[$font]['variants'] = array();
- if(!isset($revslider_fonts[$font]['subsets'])) $revslider_fonts[$font]['subsets'] = array();
-
- if(!empty($variants)){
- foreach($variants as $k => $v){
- if(!in_array($v, $revslider_fonts[$font]['variants'])){
- $revslider_fonts[$font]['variants'][] = $v;
- }else{ //already included somewhere, so do not call it anymore
- unset($variants[$k]);
- }
- }
- }
- if(!empty($subsets)){
- foreach($subsets as $k => $v){
- if(!in_array($v, $revslider_fonts[$font]['subsets'])){
- $revslider_fonts[$font]['subsets'][] = $v;
- }else{ //already included somewhere, so do not call it anymore
- unset($subsets[$k]);
- }
- }
- }
- /*
- if(!empty($variants)){
- $mgfirst = true;
- foreach($variants as $mgvk => $mgvv){
- if(!$mgfirst) $tcf .= ',';
- $tcf .= $mgvv;
- $mgfirst = false;
- }
- }
-
- if(!empty($subsets)){
-
- $mgfirst = true;
- foreach($subsets as $ssk => $ssv){
- if($mgfirst) $tcf .= '&subset=';
- if(!$mgfirst) $tcf .= ',';
- $tcf .= $ssv;
- $mgfirst = false;
- }
- }
-
- if($tcf !== ''){
- $tcf = ':'.$tcf;
- $do_print = true;
- }*/
- }else{
- /*if(in_array($font, $revslider_fonts)){
- $ret = '';
- $do_print = false;
- }else{
- $do_print = true;
- }*/
- }
-
-
- /*if($do_print){
- $setBase = (is_ssl()) ? "https://" : "http://";
-
- if($class !== '') $class = ' class="'.$class.'"';
-
- if(!isset($revslider_fonts[$font])){
- $revslider_fonts[$font] = array();
- }
- if(strpos($font, "href=") === false){ //fallback for old versions
- $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
- $ret = '<link href="'.$url.urlencode($font.$tcf).'"'.$class.' rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
- }else{
- $font = str_replace(array('http://', 'https://'), array($setBase, $setBase), $font);
- $ret = html_entity_decode(stripslashes($font));
- }
- }
-
-
- return apply_filters('revslider_getCleanFontImport', $ret, $font, $class, $url, $variants, $subsets);*/
- }
-
-
- /**
- * print html font import
- *
- */
- public static function printCleanFontImport(){
- global $revslider_fonts;
-
- $do_print = false;
- $font_first = true;
- $ret = '';
- $tcf = '';
- $tcf2 = '';
-
- if(!empty($revslider_fonts)){
- foreach($revslider_fonts as $f_n => $f_s){
- if($f_n !== ''){
- if(isset($f_s['variants']) && !empty($f_s['variants']) || isset($f_s['subsets']) && !empty($f_s['subsets'])){
- if(strpos($f_n, "href=") === false){
- if($font_first == false) $tcf .= '%7C'; //'|';
- $tcf .= urlencode($f_n).':';
-
- if(isset($f_s['variants']) && !empty($f_s['variants'])){
- $mgfirst = true;
- foreach($f_s['variants'] as $mgvk => $mgvv){
- if(!$mgfirst) $tcf .= urlencode(',');
- $tcf .= urlencode($mgvv);
- $mgfirst = false;
- }
- }
-
- if(isset($f_s['subsets']) && !empty($f_s['subsets'])){
- $mgfirst = true;
- foreach($f_s['subsets'] as $ssk => $ssv){
- if($mgfirst) $tcf .= urlencode('&subset=');
- if(!$mgfirst) $tcf .= urlencode(',');
- $tcf .= urlencode($ssv);
- $mgfirst = false;
- }
- }
-
- }else{
- $f_n = str_replace(array('http://', 'https://'), array($setBase, $setBase), $f_n);
- $tcf2 .= html_entity_decode(stripslashes($f_n));
- }
- }
- $font_first = false;
- }
- }
- }
-
- $setBase = (is_ssl()) ? "https://" : "http://";
-
- $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
- if($tcf !== ''){
- $ret .= '<link href="'.$url.$tcf.'" rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
- }
- if($tcf2 !== ''){
- $ret .= html_entity_decode(stripslashes($tcf2));
- }
-
- return apply_filters('revslider_printCleanFontImport', $ret);
- }
-
-
- /**
- *
- * get html font import
- */
- public static function getCleanFontImport($font, $class = '', $url = '', $variants = array(), $subsets = array()){
- global $revslider_fonts;
-
- $ret = '';
-
- if(!isset($revslider_fonts)) $revslider_fonts = array(); //if this is called without revslider.php beeing loaded
-
- $do_print = false;
- $tcf = '';
- if(!empty($variants) || !empty($subsets)){
- if(!isset($revslider_fonts[$font])) $revslider_fonts[$font] = array();
- if(!isset($revslider_fonts[$font]['variants'])) $revslider_fonts[$font]['variants'] = array();
- if(!isset($revslider_fonts[$font]['subsets'])) $revslider_fonts[$font]['subsets'] = array();
-
- if(!empty($variants)){
- foreach($variants as $k => $v){
- if(!in_array($v, $revslider_fonts[$font]['variants'])){
- $revslider_fonts[$font]['variants'][] = $v;
- }else{ //already included somewhere, so do not call it anymore
- unset($variants[$k]);
- }
- }
- }
- if(!empty($subsets)){
- foreach($subsets as $k => $v){
- if(!in_array($v, $revslider_fonts[$font]['subsets'])){
- $revslider_fonts[$font]['subsets'][] = $v;
- }else{ //already included somewhere, so do not call it anymore
- unset($subsets[$k]);
- }
- }
- }
-
- if(!empty($variants)){
- $mgfirst = true;
- foreach($variants as $mgvk => $mgvv){
- if(!$mgfirst) $tcf .= ',';
- $tcf .= $mgvv;
- $mgfirst = false;
- }
- }
-
- if(!empty($subsets)){
-
- $mgfirst = true;
- foreach($subsets as $ssk => $ssv){
- if($mgfirst) $tcf .= '&subset=';
- if(!$mgfirst) $tcf .= ',';
- $tcf .= $ssv;
- $mgfirst = false;
- }
- }
-
- if($tcf !== ''){
- $tcf = ':'.$tcf;
- $do_print = true;
- }
- }else{
- if(in_array($font, $revslider_fonts)){
- $ret = '';
- $do_print = false;
- }else{
- $do_print = true;
- }
- }
-
-
- if($do_print){
- $setBase = (is_ssl()) ? "https://" : "http://";
-
- if($class !== '') $class = ' class="'.$class.'"';
-
- if(!isset($revslider_fonts[$font])){
- $revslider_fonts[$font] = array();
- }
- if(strpos($font, "href=") === false){ //fallback for old versions
- $url = RevSliderFront::modify_punch_url($setBase . 'fonts.googleapis.com/css?family=');
- $ret = '<link href="'.$url.urlencode($font.$tcf).'"'.$class.' rel="stylesheet" property="stylesheet" type="text/css" media="all">'; //id="rev-google-font"
- }else{
- $font = str_replace(array('http://', 'https://'), array($setBase, $setBase), $font);
- $ret = html_entity_decode(stripslashes($font));
- }
- }
-
-
- return apply_filters('revslider_getCleanFontImport', $ret, $font, $class, $url, $variants, $subsets);
- }
- public function checkPurchaseVerification($data){
- global $wp_version, $rslb;
-
- $done = false;
- $count = 0;
- do{
- $url = $rslb->get_url('updates');
- $response = wp_remote_post($url.'/activate.php', array(
- 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'),
- 'body' => array(
- 'code' => urlencode($data['code']),
- //'email' => urlencode($data['email']),
- 'version' => urlencode(RevSliderGlobals::SLIDER_REVISION),
- 'product' => urlencode(RS_PLUGIN_SLUG)
- )
- ));
- $response_code = wp_remote_retrieve_response_code( $response );
- $version_info = wp_remote_retrieve_body( $response );
-
- if($response_code == 200){
- $done = true;
- }else{
- $rslb->move_server_list();
- }
-
- $count++;
- }while($done == false && $count < 5);
-
- if ( $response_code != 200 || is_wp_error( $version_info ) ) {
- return false;
- }
- if($version_info == 'valid'){
- update_option('revslider-valid', 'true');
- update_option('revslider-code', $data['code']);
- //update_option('revslider-email', $data['email']);
- update_option('revslider-temp-active-notice', 'false');
- return true;
- }elseif($version_info == 'exist'){
- return 'exist';
- //RevSliderFunctions::throwError(__('Purchase Code already registered!', 'revslider'));
- }elseif($version_info == 'temp_valid'){ //only temporary active, rechecking needs to be done soon on the themepunch servers (envato API may be down)
- update_option('revslider-valid', 'true');
- update_option('revslider-code', $data['code']);
- //update_option('revslider-email', $data['email']);
- update_option('revslider-temp-active', 'true');
- update_option('revslider-temp-active-notice', 'false');
- return 'temp';
- }else{
- return false;
- }
- /*elseif($version_info == 'bad_email'){
- return 'bad_email';
- }elseif($version_info == 'email_used'){
- return 'email_used';
- }*/
- }
- public function doPurchaseDeactivation($data){
- global $wp_version, $rslb;
-
- $code = get_option('revslider-code', '');
- $done = false;
- $count = 0;
- do{
- $url = $rslb->get_url('updates');
- $response = wp_remote_post($url.'/deactivate.php', array(
- 'user-agent' => 'WordPress/'.$wp_version.'; '.get_bloginfo('url'),
- 'body' => array(
- 'code' => urlencode($code),
- 'product' => urlencode(RS_PLUGIN_SLUG)
- )
- ));
- $response_code = wp_remote_retrieve_response_code( $response );
- $version_info = wp_remote_retrieve_body( $response );
- if($response_code == 200){
- $done = true;
- }else{
- $rslb->move_server_list();
- }
-
- $count++;
- }while($done == false && $count < 5);
-
- if ( $response_code != 200 || is_wp_error( $version_info ) ) {
- return false;
- }
- if($version_info == 'valid'){
- update_option('revslider-valid', 'false');
- update_option('revslider-temp-active', 'false');
- update_option('revslider-code', '');
- return true;
- }else{
- return false;
- }
- }
-
- public static function get_performance($val, $min, $max) {
-
- if ($val==0) $val = 1;
- $arr = array();
- //print_r(($max-$min)."/".($val-$min)."=");
- $arr["proc"] = (($max-$min) / ($val-$min))*100;
- //print_r($arr["proc"]." --> ");
-
- if ($arr["proc"]>100) $arr["proc"] = 100;
- if ($arr["proc"]<0) $arr["proc"] = 0;
- if ($arr["proc"]<35) $arr["col"] = "slow";
- else
- if ($arr["proc"]<75) $arr["col"] = "ok";
- else
- //print_r($arr["proc"]." <br>");
- $arr["col"] = "fast";
- return $arr;
- }
-
-
- /**
- * view the estimated speed of the Slider
- * @since: 5.0
- */
- public static function get_slider_speed($sliderID){
- //$data = wp_get_attachment_metadata($cur_img_id);
-
- ob_start();
- $total_size = 0;
-
- $do_ssl = (is_ssl()) ? 'http:' : 'https:';
-
- $slider = new RevSliderSlider();
- $slider->initByID($sliderID);
- $slides = $slider->getSlidesForExport();
-
- $static_slides = $slider->getStaticSlideForExport();
- if(!empty($static_slides) && is_array($static_slides)){
- foreach($static_slides as $s_slide){
- $slides[] = $s_slide;
- }
- }
-
- $used_images = array();
- $used_videos = array();
- $used_captions = array();
-
- $using_kenburns = false;
- $using_parallax = false;
- $using_carousel = false;
- $using_navigation = false;
- $using_videos = false;
- $using_actions = false;
- $using_layeranim = false;
-
- $img_size = 0;
- $video_size = 0;
- $slide_counter = 0;
- $firstslide_size = 0;
- $smartslide_size = 0;
-
- if($slider->getParam("use_parallax","off") == 'on')
- $using_parallax = true;
-
- if($slider->getParam("slider-type","standard") == 'carousel')
- $using_carousel = true;
-
- $enable_arrows = $slider->getParam('enable_arrows','off');
- $enable_bullets = $slider->getParam('enable_bullets','off');
- $enable_tabs = $slider->getParam('enable_tabs','off');
- $enable_thumbnails = $slider->getParam('enable_thumbnails','off');
-
- if($enable_arrows == 'on' || $enable_bullets == 'on' || $enable_tabs == 'on' || $enable_thumbnails == 'on')
- $using_navigation = true;
-
- if(!empty($slides) && count($slides) > 0){
- foreach($slides as $key => $slide){
-
- if(isset($slide['params']['state']) && $slide['params']['state'] != 'published') continue;
- if(!isset($slide['id'])) continue;
-
- $slide_counter++;
- $slide_id = $slide['id'];
-
- if(isset($slide['params']['kenburn_effect']) && $slide['params']['kenburn_effect'] == 'on')
- $using_kenburns = true;
-
-
- if(!isset($slide['params']['image_source_type'])) $slide['params']['image_source_type'] = 'full';
-
- if(isset($slide['params']['image']) && $slide['params']['image'] != ''){
- //add infos of image to an array
- $infos = array();
- $urlImage = false;
-
- switch($slide['params']['background_type']){
- case 'streamyoutube':
- case 'streaminstagram':
- case 'streamvimeo':
- case 'youtube':
- case 'vimeo':
- $using_videos = true;
- break;
- }
-
- if(isset($slide['params']['image_id'])){
- $cur_img_id = $slide['params']['image_id'];
- //get image sizes by ID
- $urlImage = wp_get_attachment_image_src($slide['params']['image_id'], $slide['params']['image_source_type']);
- }
- if($urlImage === false){
- $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($slide['params']['image']);
- if($cur_img_id !== false){
- $urlImage = wp_get_attachment_image_src($cur_img_id, $slide['params']['image_source_type']);
- }
- }
-
- if($urlImage !== false){
- $infos['id'] = $cur_img_id;
- $file = get_attached_file( $cur_img_id );
- $infos['info'] = pathinfo( $file );
-
- if(file_exists( $file )){
- $infos['size'] = filesize( $file );
- $infos['size-format'] = size_format($infos['size'], 2);
- $img_size += $infos['size'];
- if ($slide_counter==1)
- $firstslide_size += $infos['size'];
- if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
- $smartslide_size += $infos['size'];
- }else{
- $infos['id'] = false;
- }
- }else{
- $infos['id'] = 'external';
- }
-
- if(strpos($slide_id, 'static_') !== false){
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
- }else{
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
- }
-
- $used_images[$slide['params']['image']] = $infos;
- }
-
- if(isset($slide['layers']) && !empty($slide['layers']) && count($slide['layers']) > 0){
-
- $using_layeranim = true;
-
- foreach($slide['layers'] as $lKey => $layer){
- switch($layer['type']){
- case 'image':
- $infos = array();
- if(isset($layer['image_url']) && trim($layer['image_url']) != ''){
-
- $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($layer['image_url']);
- if($cur_img_id !== false){
- if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
-
- $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
-
- if($urlImage !== false){
- $infos['id'] = $cur_img_id;
- $file = get_attached_file( $cur_img_id );
- $infos['info'] = pathinfo( $file );
- if(file_exists( $file )){
- $infos['size'] = filesize( $file );
- $infos['size-format'] = size_format($infos['size'], 2);
- $img_size += $infos['size'];
- if ($slide_counter==1)
- $firstslide_size += $infos['size'];
- if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
- $smartslide_size += $infos['size'];
-
- }else{
- $infos['id'] = false;
- }
- }else{
- $infos['id'] = 'external';
- }
- }else{
- $infos['id'] = 'external';
- }
-
- if(strpos($slide_id, 'static_') !== false){
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
- }else{
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
- }
-
- $used_images[$layer['image_url']] = $infos; //image_url if image caption
- }
- break;
- case 'video':
- $using_videos = true;
-
- //get cover image if existing
- $infos = array();
- $poster_img = array();
- if(isset($layer['video_data']) && isset($layer['video_data']->urlPoster)){
- $poster_img[] = $layer['video_data']->urlPoster;
- }
- if(isset($layer['video_image_url']) && isset($layer['video_image_url'])){
- $poster_img[] = $layer['video_image_url'];
- }
- if(!empty($poster_img)){
- foreach($poster_img as $img){
- if(trim($img) == '') continue;
-
- $cur_img_id = RevSliderFunctionsWP::get_image_id_by_url($img);
-
- if($cur_img_id !== false){
- if(!isset($layer['layer-image-size']) || $layer['layer-image-size'] == 'auto') $layer['layer-image-size'] = $slide['params']['image_source_type'];
-
- $urlImage = wp_get_attachment_image_src($cur_img_id, $layer['layer-image-size']);
-
- if($urlImage !== false){
- $infos['id'] = $cur_img_id;
- $file = get_attached_file( $cur_img_id );
- $infos['info'] = pathinfo( $file );
- if(file_exists( $file )){
- $infos['size'] = filesize( $file );
- $infos['size-format'] = size_format($infos['size'], 2);
- $img_size += $infos['size'];
- if ($slide_counter==1)
- $firstslide_size += $infos['size'];
- if ($slide_counter==1 || $slide_counter==2 || $slide_counter==count($slides))
- $smartslide_size += $infos['size'];
- }else{
- $infos['id'] = false;
- }
- }else{
- $infos['id'] = 'external';
- }
- }else{
- $infos['id'] = 'external';
- }
-
- if(strpos($slide_id, 'static_') !== false){
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
- }else{
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
- }
-
- $used_images[$img] = $infos; //image_url if image caption
- }
- }
-
- $infos = array();
- if(isset($layer['video_type'])){
- //add videos and try to get video size
- if(isset($layer['video_data'])){
- $video_arr = array();
- $max_video_size = 0;
-
- if(strpos($slide_id, 'static_') !== false){
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id=static_'.$sliderID);
- }else{
- $infos['url'] = RevSliderBaseAdmin::getViewUrl(RevSliderAdmin::VIEW_SLIDE, 'id='.$slide_id);
- }
-
- switch($layer['video_type']){
- case 'html5':
- if(isset($layer['video_data']->urlMp4) && !empty($layer['video_data']->urlMp4)) $video_arr['mp4'] = $layer['video_data']->urlMp4;
- if(isset($layer['video_data']->urlWebm) && !empty($layer['video_data']->urlWebm)) $video_arr['webm'] = $layer['video_data']->urlWebm;
- if(isset($layer['video_data']->urlOgv) && !empty($layer['video_data']->urlOgv)) $video_arr['mp4'] = $layer['video_data']->urlOgv;
- if(!empty($video_arr)){
- foreach($video_arr as $type => $url){
- $cur_id = RevSliderFunctionsWP::get_image_id_by_url($url);
-
- if($cur_id !== false){
- $infos['id'] = $cur_id;
- $file = get_attached_file( $cur_id );
- $infos['info'] = pathinfo( $file );
- if(file_exists( $file )){
- $infos['size'] = filesize( $file );
- $infos['size-format'] = size_format($infos['size'], 2);
- 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
- }else{
- $infos['id'] = 'external';
- }
- }else{
- $infos['id'] = 'external';
- }
-
- $used_videos[$url] = $infos;
- }
-
- $video_size += $max_video_size;
- }
- break;
- case 'youtube':
- $infos['id'] = 'external';
- if(!isset($layer['video_data']->id) || empty($layer['video_data']->id)) continue;
- $used_videos[$do_ssl.'//www.youtube.com/watch?v='.$layer['video_data']->id] = $infos;
- break;
- case 'vimeo':
- if(!isset($layer['video_data']->id) || empty($layer['video_data']->id)) continue;
- $infos['id'] = 'external';
- $used_videos[$do_ssl.'//vimeo.com/'.$layer['video_data']->id] = $infos;
- break;
- }
-
- }
- }
- break;
- }
-
- //check captions for actions
- if(isset($layer['layer_action']) && !empty($layer['layer_action'])){
-
- $a_action = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'action', array()));
- $a_link_type = RevSliderFunctions::cleanStdClassToArray(RevSliderFunctions::getVal($layer['layer_action'], 'link_type', array()));
-
- if(!empty($a_action)){
- foreach($a_action as $num => $action){
- if($using_actions == true) break;
-
- if($action !== 'link'){
- $using_actions = true;
- }else{
- //check if jQuery or a tag
- if($a_link_type[$num] == 'jquery') $using_actions = true;
- }
- }
- }
-
- }
-
- if(isset($layer['style']) && $layer['style'] != '') $used_captions[$layer['style']] = true;
- }
- }
- }
- }
- $total_size += $img_size;
- $img_counter = 0;
- $issues ="";
- //$total_size += $video_size;
- ?>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
-
- <!-- HEADER OF MONITORING -->
- <span class="tp-monitor-performance-title"><?php echo __("Overall Slider Performance",'revslider'); ?></span>
- <span class="tp-monitor-performace-wrap">
- <span id="image-performace-bar" style="width: %overall_performance%%" class="tp-monitor-performance-bar mo-%overall_color%-col"></span>
- <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
- <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
- <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
- </span>
- <span class="tp-clearfix" style="height:50px"></span>
-
- <span class="tp-monitor-speed-table tp-monitor-single-speed">
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-single%</span>
- </span>
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-single%</span>
- </span>
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-single%</span>
- </span>
- </span>
- <span class="tp-monitor-speed-table tp-monitor-smart-speed">
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-smart%</span>
- </span>
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-smart%</span>
- </span>
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-smart%</span>
- </span>
- </span>
- <span class="tp-monitor-speed-table tp-monitor-all-speed">
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed UMTS:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="umts-speed">%umtsspeed-all%</span>
- </span>
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed DSL:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="dsl-speed">%dslspeed-all%</span>
- </span>
- <span class="tp-monitor-speed-cell">
- <span class="tp-monitor-smalllabel"><?php echo __("Load Speed T1:",'revslider'); ?></span>
- <span class="tp-monitor-total-subsize" id="t1-speed">%t1speed-all%</span>
- </span>
- </span>
- <span class="tp-clearfix" style="height:25px"></span>
- <span style="float:left;width:165px">
- <span class="tp-monitor-smalllabel"><?php echo __("Total Slider Size:",'revslider'); ?></span>
- <span class="tp-monitor-fullsize">%overall_size%</span>
- <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>
- </span>
- <span style="float:right; width:165px">
- <span class="tp-monitor-smalllabel"><?php echo __("Preloaded Slides Size:",'revslider'); ?></span>
- <span class="tp-monitor-fullsize tp-monitor-single-speed">%firstslide_size%</span>
- <span class="tp-monitor-fullsize tp-monitor-smart-speed">%smartslide_size%</span>
- <span class="tp-monitor-fullsize tp-monitor-all-speed">%allslide_size%</span>
- <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>
- </span>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
-
- <!-- THE IMAGE PERFORMANCE MESSING -->
- <div id="monitor-problems" style="display:none">
- <span class="tp-monitor-performance-title"><?php echo __("Need Some Attention",'revslider'); ?></span>
- <span class="tp-clearfix" style="height:25px"></span>
- <ul class="tp-monitor-list" id="monitor-problem-details" style="margin-bottom:15px;">
- %issues%
- </ul>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
- </div>
- <div id="performance_overall_details" style="display:none">
- <!-- IMAGE LIST -->
- <?php
- if(!empty($used_images)){
- ?>
- <!-- THE IMAGE PERFORMANCE MESSING -->
- <span class="tp-monitor-performance-title"><?php echo __("Image Performance",'revslider'); ?></span>
- <span class="tp-monitor-performace-wrap">
- <span id="image-performace-bar" style="width: %image_performance%%" class="tp-monitor-performance-bar mo-%image_color%-col"></span>
- <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
- <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
- <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
- </span>
- <span class="tp-clearfix" style="height:35px"></span>
- <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
- <span style="float:left;width:40%">
- <span class="tp-monitor-smalllabel"><?php echo __("Images Loaded:",'revslider'); ?></span>
- <span class="tp-monitor-imageicon"></span>
- <span id="image_sub_size" class="tp-monitor-total-subsize"><?php echo size_format($img_size,2); ?></span>
- </span>
- <span style="float:left;width:60%; text-align:right;">
- <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>
- </span>
- <span class="tp-clearfix" style="height:15px"></span>
- <!-- THE IMAGE LIST -->
-
- <ul class="tp-monitor-list" id="monitor-image-details" style="display:none;margin-bottom:15px;">
- <?php
- foreach($used_images as $path => $image){
- $_li = '<li class="tp-monitor-listli">';
-
- if(isset($image['size'])) {
- $img_counter++;
- if ($image['size']<200000)
- $_li .= '<span class="tp-monitor-good"></span>';
- else
- if ($image['size']<400000)
- $_li .= '<span class="tp-monitor-well"></span>';
- else
- $_li .= '<span class="tp-monitor-warning"></span>';
-
- if ($image['size']>1000000)
- $_li .= '<span class="tp-monitor-size">'.size_format($image['size'],2).'</span>';
- else
- $_li .= '<span class="tp-monitor-size">'.size_format($image['size'],0).'</span>';
- }else{
- if($image['id'] == 'external'){
- $_li .= '<span class="tp-monitor-neutral"></span><span class="tp-monitor-size">'.__('extern', 'revslider').'</span>';
- }else{
- $_li .= '<span class="tp-monitor-warning"></span><span class="tp-monitor-size">'.__('missing', 'revslider').'</span>';
- }
- }
-
- $_li .= '<span class="tp-monitor-file">';
- if(!isset($image['info']['basename']) || empty($image['info']['basename'])){
- $_li .= '...'.substr($path,-20);
- }else{
- $_li .= substr($image['info']['basename'],-20);
- }
- $_li .= '</span>';
-
-
- if(isset($image['url'])) {
- //$_li .= ' <a href="'.$image['url'].'" target="_blank" class="tp-monitor-showimage"></a>';
- $_li .= ' <a href="'.$image['url'].'" target="_blank" class="tp-monitor-linktoslide"></a>';
-
- }
-
- $_li .= '</li>';
- echo $_li;
- if ((isset($image['size']) && $image['size']>199999) || (!isset($image['size']) && !$image['id'] == 'external'))
- $issues .= $_li;
- }
- ?>
- </ul>
- <?php
- }
- ?>
-
- <!-- VIDEO LIST -->
- <?php
- if(!empty($used_videos)){
- ?>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
-
- <!-- THE VIDEO PERFORMANCE MESSING -->
- <span class="tp-monitor-performance-title"><?php echo __("Video Performance",'revslider'); ?></span>
- <span class="tp-monitor-performace-wrap">
- <span id="video-performace-bar" style="width:50%" class="tp-monitor-performance-bar mo-neutral-col"></span>
- <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
- <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
- <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
- </span>
-
- <span class="tp-clearfix" style="height:35px"></span>
- <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
- <span style="float:left;width:40%; display:block">
- <span class="tp-monitor-smalllabel"><?php echo __("Videos Loaded (max):",'revslider'); ?></span>
- <?php if ($video_size>0) {?>
- <span class="tp-monitor-imageicon"></span>
- <span id="video_sub_size" class="tp-monitor-total-subsize"><?php echo size_format($video_size,2); ?></span>
- <?php } else {?>
- <span class="tp-monitor-imageicon"></span>
- <span class="tp-monitor-total-subsize"><?php echo __("Unknown",'revslider'); ?></span>
- <?php } ?>
- </span>
- <span style="float:left;width:60%; text-align:right;">
- <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>
- </span>
- <span class="tp-clearfix" style="height:15px"></span>
-
- <ul class="tp-monitor-list" id="monitor-video-details" style="margin-bottom:15px;display:none;">
- <?php
- foreach($used_videos as $path => $video){
- $_li = '<li class="tp-monitor-listli">';
-
- if(isset($video['size'])){
- $_li .= ' <span class="tp-monitor-neutral"></span>';
-
- if ($video['size']>1000000)
- $_li .= '<span class="tp-monitor-size">'.size_format($video['size'],2).'</span>';
- else
- $_li .= '<span class="tp-monitor-size">'.size_format($video['size'],0).'</span>';
- }else{
- if($video['id'] == 'external'){
- $_li .= '<span class="tp-monitor-neutral"></span><span class="tp-monitor-size">'.__('extern', 'revslider').'</span>';
- }else{
- $_li .= '<span class="tp-monitor-warning"></span><span class="tp-monitor-size">'.__('missing', 'revslider').'</span>';
- }
- }
-
- $_li .= '<span class="tp-monitor-file">';
- if(!isset($video['info']['basename']) || empty($video['info']['basename'])){
- $_li .= '...'.substr($path,-20);
- }else{
- $_li .= substr($video['info']['basename'],-20);
- }
- $_li .= '</span>';
- if(isset($image['url'])) {
- $_li .= ' <a href="'.$video['url'].'" target="_blank" class="tp-monitor-linktoslide"></a>';
- }
-
- $_li .= '</li>';
- if (!isset($video['size']) && !$video['id'] == 'external')
- $issues .= $_li;
- echo $_li;
- }
- ?>
- </ul>
- <?php
- }
-
-
- $css_size = 0;
- ?>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
- <!-- THE IMAGE PERFORMANCE MESSING -->
- <span class="tp-monitor-performance-title"><?php echo __("CSS Performance",'revslider'); ?></span>
- <span class="tp-monitor-performace-wrap">
- <span id="image-performace-bar" style="width:%css_performance%%" class="tp-monitor-performance-bar mo-%css_color%-col"></span>
- <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
- <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
- <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
- </span>
- <span class="tp-clearfix" style="height:35px"></span>
- <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
- <span style="float:left;width:40%">
- <span class="tp-monitor-smalllabel"><?php echo __("CSS Loaded:",'revslider'); ?></span>
- <span class="tp-monitor-cssicon"></span><span id="css_sub_size" class="tp-monitor-total-subsize">%css_size%</span>
- </span>
- <span style="float:left;width:60%; text-align:right;">
- <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>
- </span>
- <span class="tp-clearfix" style="height:15px"></span>
- <?php
- //get css files
- echo '<ul class="tp-monitor-list" id="monitor-CSS-details" style="margin-bottom:15px;display:none;">';
- if(file_exists( RS_PLUGIN_PATH . '/public/assets/css/settings.css' )){
- $fs = filesize( RS_PLUGIN_PATH . '/public/assets/css/settings.css' );
- $_li ='<li class="tp-monitor-listli">';
- if ($fs<60000)
- $_li .= '<span class="tp-monitor-good"></span>';
- else
- if ($fs<100000)
- $_li .= '<span class="tp-monitor-well"></span>';
- else
- $_li .= '<span class="tp-monitor-warning"></span>';
-
- $_li .= '<span class="tp-monitor-size">'.size_format($fs,0).'</span>';
- $_li .= '<span class="tp-monitor-file">';
- $_li .= __('css/settings.css','revslider');
- $_li .= '</span>';
-
- $_li .= '</li>';
- if ($fs>99999)
- $issues .=$_li;
- echo $_li;
-
- $total_size += $fs;
- $css_size += $fs;
- }
- /*$custom_css = RevSliderOperations::getStaticCss();
- $custom_css = RevSliderCssParser::compress_css($custom_css);
- $_li = '<li class="tp-monitor-listli">';
- if (strlen($custom_css)<50000)
- $_li .= '<span class="tp-monitor-good"></span>';
- else
- if (strlen($custom_css)<100000)
- $_li .= '<span class="tp-monitor-well"></span>';
- else
- $_li .= '<span class="tp-monitor-warning"></span>';
-
- $_li .= '<span class="tp-monitor-size">'.size_format(strlen($custom_css),0).'</span>';
- $_li .= '<span class="tp-monitor-file">';
- $_li .= __('Static Styles','revslider');
- $_li .= '</span>';
-
- $_li .= '</li>';
- if(strlen($custom_css)>49999)
- $issues .=$_li;
- echo $_li;
- $total_size += strlen($custom_css);
- $css_size += strlen($custom_css);
- */
-
-
- if(!empty($used_captions)){
- $captions = array();
- foreach($used_captions as $class => $val){
- $cap = RevSliderOperations::getCaptionsContentArray($class);
- if(!empty($cap))
- $captions[] = $cap;
- }
- $styles = RevSliderCssParser::parseArrayToCss($captions, "\n");
- $styles = RevSliderCssParser::compress_css($styles);
-
- $_li = '<li class="tp-monitor-listli">';
- if (strlen($styles)<50000)
- $_li .= '<span class="tp-monitor-good"></span>';
- else
- if (strlen($styles)<100000)
- $_li .= '<span class="tp-monitor-well"></span>';
- else
- $_li .= '<span class="tp-monitor-warning"></span>';
-
- $_li .= '<span class="tp-monitor-size">'.size_format(strlen($styles),0).'</span>';
- $_li .= '<span class="tp-monitor-file">';
- $_li .= __('Dynamic Styles','revslider');
- $_li .= '</span>';
-
- $_li .= '</li>';
- if (strlen($styles)>49999)
- $issues .=$_li;
- echo $_li;
- $total_size += strlen($styles);
- $css_size += strlen($styles);
- }
- echo '</ul>';
- echo ' <span style="display:none" id="css-size-hidden">'.size_format($css_size, 2).'</span>';
-
-
-
- $js_size = 0;
-
- ?>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
-
- <!-- THE jQuery PERFORMANCE MESSING -->
- <span class="tp-monitor-performance-title"><?php echo __("jQuery Performance",'revslider'); ?></span>
- <span class="tp-monitor-performace-wrap">
- <span id="video-performace-bar" style="width:%js_performance%%" class="tp-monitor-performance-bar mo-%js_color%-col"></span>
- <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
- <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
- <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
- </span>
-
- <span class="tp-clearfix" style="height:35px"></span>
- <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
- <span style="float:left;width:40%; display:block">
- <span class="tp-monitor-smalllabel"><?php echo __("jQuery Loaded:",'revslider'); ?></span>
- <span class="tp-monitor-imageicon"></span><span id="jquery_sub_size" class="tp-monitor-total-subsize">%js_size%</span>
- </span>
- <span style="float:left;width:60%; text-align:right;">
- <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>
- </span>
- <span class="tp-clearfix" style="height:15px"></span>
-
- <?php
- echo '<ul class="tp-monitor-list" id="monitor-jquery-details" style="margin-bottom:15px;display:none">';
-
- $jsfiles = array(
- 'jquery.themepunch.tools.min.js' => RS_PLUGIN_PATH . '/public/assets/js/jquery.themepunch.tools.min.js',
- 'jquery.themepunch.revolution.min.js' => RS_PLUGIN_PATH . '/public/assets/js/jquery.themepunch.revolution.min.js',
-
- );
- //check which js files will be used by the Slider
- if($using_kenburns == true) $jsfiles['revolution.extension.kenburn.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.kenburn.min.js';
- if($using_parallax == true) $jsfiles['revolution.extension.parallax.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.parallax.js';
- if($using_navigation == true) $jsfiles['revolution.extension.navigation.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.navigation.min.js';
- if($using_videos == true) $jsfiles['revolution.extension.video.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.video.min.js';
- if($using_actions == true) $jsfiles['revolution.extension.actions.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.actions.min.js';
- if($using_layeranim == true) $jsfiles['revolution.extension.layeranimation.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.layeranimation.min.js';
- if($using_carousel == true)
- $jsfiles['revolution.extension.carousel.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.carousel.min.js';
- else
- $jsfiles['revolution.extension.slideanims.min.js'] = RS_PLUGIN_PATH . '/public/assets/js/extensions/revolution.extension.slideanims.min.js';
-
-
- //get the js files
- foreach($jsfiles as $name => $path){
- if(file_exists( $path )){
- $fs = filesize( $path );
- echo '<li class="tp-monitor-listli">';
- echo '<span class="tp-monitor-good"></span>';
- echo '<span class="tp-monitor-size">'.size_format($fs,0).'</span>';
- echo '<span class="tp-monitor-file">';
- echo $name;
- echo '</span>';
- echo '</li>';
- $total_size += $fs;
- $js_size += $fs;
- }
- }
-
- echo '</ul>';
- echo ' <span style="display:none" id="css-size-hidden">'.size_format($js_size, 2).'</span>';
-
- $http = (is_ssl()) ? 'https' : 'http';
-
- $operations = new RevSliderOperations();
- $arrValues = $operations->getGeneralSettingsValues();
-
- $set_diff_font = RevSliderFunctions::getVal($arrValues, "change_font_loading",'');
- if($set_diff_font !== ''){
- $font_url = $set_diff_font;
- }else{
- $font_url = $http.'://fonts.googleapis.com/css?family=';
- }
-
- $my_fonts = $slider->getParam('google_font', array());
-
- ?>
- <span class="tp-clearfix" style="height:15px"></span>
- <hr>
- <span class="tp-clearfix" style="height:25px"></span>
-
- <!-- THE Fonts PERFORMANCE MESSING -->
- <span class="tp-monitor-performance-title"><?php echo __("Google Fonts Performance",'revslider'); ?></span>
- <span class="tp-monitor-performace-wrap">
- <span id="video-performace-bar" style="width:%font_performance%%" class="tp-monitor-performance-bar mo-%font_color%-col"></span>
- <span class="tp-monitor-slow"><?php echo __("Slow",'revslider'); ?></span>
- <span class="tp-monitor-ok"><?php echo __("Ok",'revslider'); ?></span>
- <span class="tp-monitor-fast"><?php echo __("Fast",'revslider'); ?></span>
- </span>
-
- <span class="tp-clearfix" style="height:35px"></span>
- <!-- FULL SIZE OF SUBCATEGORY && SHOW/HIDE LIST -->
- <span style="float:left;width:40%; display:block">
- <span class="tp-monitor-smalllabel"><?php echo __("Fonts Loaded:",'revslider'); ?></span>
- <span class="tp-monitor-jsicon"></span><span class="tp-monitor-total-subsize">%font_size%</span>
- </span>
- <span style="float:left;width:60%; text-align:right;">
- <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>
- </span>
- <span class="tp-clearfix" style="height:15px"></span>
-
- <?php
- //echo '<span class="tp-monitor-smalllabel">'.$font_url.'</span>';
-
- echo '<ul class="tp-monitor-list" id="monitor-fonts-details" style="margin-bottom:15px;display:none">';
- $all_font_count = 0;
- if(!empty($my_fonts)){
- foreach($my_fonts as $c_font){
- $fcount = RevSliderBase::get_font_weight_count($c_font);
- $_li = '<li class="tp-monitor-listli">';
- if ($fcount<4)
- $_li .= '<span class="tp-monitor-good"></span>';
- else
- if ($fcount<7)
- $_li .= '<span class="tp-monitor-well"></span>';
- else
- $_li .= '<span class="tp-monitor-warning"></span>';
-
-
- $_li .= '<span class="tp-monitor-file">';
- $_li .= strip_tags($c_font);
- $_li .= '</span>';
- $_li .= '</li>';
- if ($fcount > 4)
- $issues .= $_li;
- echo $_li;
- $all_font_count += $fcount;
- }
- }
- echo '</ul>';
- ?>
- </div><!-- END OF OVERALL Div-->
-
- <script>
- jQuery(document).on("ready",function() {
-
- jQuery('body').on('click','.tp-monitor-showdetails',function() {
- var bt = jQuery(this);
- if (bt.hasClass("selected")) {
- bt.find('.tp-show-inner-btn').html(bt.data('close'));
- bt.removeClass("selected");
- jQuery(bt.data('target')).slideUp(200);
- } else {
- bt.find('.tp-show-inner-btn').html(bt.data('open'));
- bt.addClass("selected");
- jQuery(bt.data('target')).slideDown(200);
- }
-
- })
- })
- </script>
- <?php
- $content = ob_get_contents();
- ob_end_clean();
-
- if ($img_counter ==0) $img_counter = 1;
- if ($slide_counter ==0) $slide_counter = 1;
- $overall = RevSliderOperations::get_performance($total_size/$slide_counter, 0,400000); // 400KB / Slide is ok
- $image = RevSliderOperations::get_performance($img_size/$img_counter, 0,100000); // 100KB Image OK
- $css = RevSliderOperations::get_performance($css_size, 0,150000); // 150KB CSS OK
- $js = RevSliderOperations::get_performance($js_size, 0,250000); // 250KB Image OK
- $font = RevSliderOperations::get_performance($all_font_count, 0,15); // 250KB Image OK
- $firstslide_size += $js_size;
- $firstslide_size += $css_size;
- $smartslide_size += $js_size;
- $smartslide_size += $css_size;
- $content = str_replace("%overall_performance%",$overall["proc"],$content);
- $content = str_replace("%overall_color%",$overall["col"],$content);
- $content = str_replace("%overall_size%",size_format($total_size,2),$content);
-
- $content = str_replace("%image_performance%",$image["proc"],$content);
- $content = str_replace("%image_color%",$image["col"],$content);
-
- $content = str_replace("%css_performance%",$css["proc"],$content);
- $content = str_replace("%css_color%",$css["col"],$content);
- $content = str_replace("%css_size%",size_format($css_size,2),$content);
-
- $content = str_replace("%js_performance%",$js["proc"],$content);
- $content = str_replace("%js_color%",$js["col"],$content);
- $content = str_replace("%js_size%",size_format($js_size,2),$content);
- $content = str_replace("%font_performance%",$font["proc"],$content);
- $content = str_replace("%font_color%",$font["col"],$content);
- $content = str_replace("%font_size%",$all_font_count,$content);
- $content = str_replace("%issues%", $issues, $content);
- $content = str_replace("%firstslide_size%", size_format($firstslide_size,2), $content);
- $content = str_replace("%smartslide_size%", size_format($smartslide_size,2), $content);
- $content = str_replace("%allslide_size%", size_format($total_size,2), $content);
- $total_size = $total_size / 1000;
- $content = str_replace("%umtsspeed-all%", gmdate('i:s',$total_size/48), $content);
- $content = str_replace("%dslspeed-all%", gmdate('i:s',$total_size/307), $content);
- $content = str_replace("%t1speed-all%", gmdate('i:s',$total_size/1180), $content);
- $firstslide_size = $firstslide_size / 1000;
- $content = str_replace("%umtsspeed-single%", gmdate('i:s',$firstslide_size/48), $content);
- $content = str_replace("%dslspeed-single%", gmdate('i:s',$firstslide_size/307), $content);
- $content = str_replace("%t1speed-single%", gmdate('i:s',$firstslide_size/1180), $content);
- $smartslide_size = $smartslide_size / 1000;
- $content = str_replace("%umtsspeed-smart%", gmdate('i:s',$smartslide_size/48), $content);
- $content = str_replace("%dslspeed-smart%", gmdate('i:s',$smartslide_size/307), $content);
- $content = str_replace("%t1speed-smart%", gmdate('i:s',$smartslide_size/1180), $content);
- echo $content;
- }
-
-
-
- /**
- * these are the specific slider settings, which the user can switch between, for easier usage
- * @since: 5.0
- */
- public static function get_preset_settings(){
- $presets = array();
-
- //ThemePunch default presets are added here directly
-
- //preset -> standardpreset || heropreset || carouselpreset
- $presets[] = array (
- 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Auto', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'on',
- 'stop_slider' => 'off',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'round',
- 'arrows_always_on' => 'true',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'on',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'round',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '100',
- 'thumb_height' => '50',
- 'thumb_width_min' => '100',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '20',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'auto',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
-
- $presets[] = array (
- 'settings' =>
- array ( 'class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Width', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'on',
- 'stop_slider' => 'off',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'round',
- 'arrows_always_on' => 'true',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'on',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'round',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '100',
- 'thumb_height' => '50',
- 'thumb_width_min' => '100',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '20',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/slideshow_auto_layout.png', 'name' => 'Slideshow-Full-Screen', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'on',
- 'stop_slider' => 'off',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'round',
- 'arrows_always_on' => 'true',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'on',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'round',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '100',
- 'thumb_height' => '50',
- 'thumb_width_min' => '100',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '20',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullscreen',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
-
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumb_auto1.png', 'name' => 'Thumbs-Bottom-Auto', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'on',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '20',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'auto',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
-
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_left_auto.png', 'name' => 'Thumbs-Left-Auto', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'right',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '40',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '0',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'left',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'auto',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
-
- $presets[] = array (
- 'settings' => array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/thumbs_right_auto.png', 'name' => 'Thumbs-Right-Auto', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '0',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'left',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '40',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'auto',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/scroll_fullscreen.png', 'name' => 'Vertical-Bullet-Full-Screen', 'preset' => 'standardpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'off',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '0',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'left',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '40',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'vertical',
- 'bullets_always_on' => 'false',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'right',
- 'bullets_align_vert' => 'center',
- 'bullets_offset_hor' => '30',
- 'bullets_offset_vert' => '0',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullscreen',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '500',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Screen', 'preset' => 'heropreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'off',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '0',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'left',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '40',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'vertical',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'right',
- 'bullets_align_vert' => 'center',
- 'bullets_offset_hor' => '30',
- 'bullets_offset_vert' => '0',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullscreen',
- 'width' => '1400',
- 'width_notebook' => '1240',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '868',
- 'height_notebook' => '768',
- 'height_tablet' => '960',
- 'height_mobile' => '720',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Wide-Full-Width', 'preset' => 'heropreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'off',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '0',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'left',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '40',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'vertical',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'right',
- 'bullets_align_vert' => 'center',
- 'bullets_offset_hor' => '30',
- 'bullets_offset_vert' => '0',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '1400',
- 'width_notebook' => '1240',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '500',
- 'height_tablet' => '400',
- 'height_mobile' => '400',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Screen', 'preset' => 'heropreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'off',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '0',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'left',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '40',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'vertical',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'right',
- 'bullets_align_vert' => 'center',
- 'bullets_offset_hor' => '30',
- 'bullets_offset_vert' => '0',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullscreen',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '868',
- 'height_notebook' => '768',
- 'height_tablet' => '960',
- 'height_mobile' => '720',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/wide_fullscreen.png', 'name' => 'Regular-Full-Width', 'preset' => 'heropreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'off',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'off',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'bottom',
- 'leftarrow_offset_hor' => '0',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'left',
- 'rightarrow_align_vert' => 'bottom',
- 'rightarrow_offset_hor' => '40',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'on',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'vertical',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'right',
- 'bullets_align_vert' => 'center',
- 'bullets_offset_hor' => '30',
- 'bullets_offset_vert' => '0',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '5',
- 'span_thumbnails_wrapper' => 'off',
- 'thumbnails_wrapper_color' => 'transparent',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '5',
- 'thumbnails_space' => '5',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '50',
- 'thumb_height' => '50',
- 'thumb_width_min' => '50',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'on',
- 'thumbs_under_hidden' => '778',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'center',
- 'thumbnails_offset_hor' => '20',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'off',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'off',
- 'carousel_maxrotation' => '0',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '50',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '1240',
- 'width_notebook' => '1024',
- 'width_tablet' => '778',
- 'width_mobile' => '480',
- 'height' => '600',
- 'height_notebook' => '500',
- 'height_tablet' => '400',
- 'height_mobile' => '300',
- 'enable_custom_size_notebook' => 'on',
- 'enable_custom_size_tablet' => 'on',
- 'enable_custom_size_iphone' => 'on',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_javascript' => '',
- 'custom_css' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Thumbs', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'navbar-old',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#000000',
- 'thumbnails_wrapper_opacity' => '15',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'outer-bottom',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'off',
- 'carousel_space' => '-150',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '5',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'on',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'on',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '600',
- 'width_notebook' => '600',
- 'width_tablet' => '600',
- 'width_mobile' => '600',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '600',
- 'height_mobile' => '600',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_endless.png', 'name' => 'Cover-Flow-Infinite', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'round',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#000000',
- 'thumbnails_wrapper_opacity' => '15',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'outer-bottom',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '-150',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'on',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'on',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '600',
- 'width_notebook' => '600',
- 'width_tablet' => '600',
- 'width_mobile' => '600',
- 'height' => '600',
- 'height_notebook' => '600',
- 'height_tablet' => '600',
- 'height_mobile' => '600',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs.png', 'name' => 'Flat-Infinite-Thumbs', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => '#111111',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'navbar',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#222222',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'outer-bottom',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '720',
- 'width_notebook' => '720',
- 'width_tablet' => '720',
- 'width_mobile' => '720',
- 'height' => '405',
- 'height_notebook' => '405',
- 'height_tablet' => '405',
- 'height_mobile' => '405',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel.png', 'name' => 'Flat-Infinite', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => '#111111',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'uranus',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'off',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#222222',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'outer-bottom',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '720',
- 'width_notebook' => '720',
- 'width_tablet' => '720',
- 'width_mobile' => '720',
- 'height' => '405',
- 'height_notebook' => '405',
- 'height_tablet' => '405',
- 'height_mobile' => '405',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/flat_carousel_thumbs_left.png', 'name' => 'Flat-Thumbs-Left', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => '#111111',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'uranus',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#222222',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'outer-left',
- 'thumbnails_align_hor' => 'left',
- 'thumbnails_align_vert' => 'top',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '720',
- 'width_notebook' => '720',
- 'width_tablet' => '720',
- 'width_mobile' => '720',
- 'height' => '405',
- 'height_notebook' => '405',
- 'height_tablet' => '405',
- 'height_mobile' => '405',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_thumbs_right_fullscreen.png', 'name' => 'Full-Screen-Thumbs-Right', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => '#111111',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'uranus',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#222222',
- 'thumbnails_wrapper_opacity' => '100',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'vertical',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'outer-right',
- 'thumbnails_align_hor' => 'right',
- 'thumbnails_align_vert' => 'top',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '0',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => 'px',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '3',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'off',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullscreen',
- 'width' => '900',
- 'width_notebook' => '720',
- 'width_tablet' => '720',
- 'width_mobile' => '720',
- 'height' => '720',
- 'height_notebook' => '405',
- 'height_tablet' => '405',
- 'height_mobile' => '405',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/cover_carousel_thumbs.png', 'name' => 'Cover-Flow-Full-Screen', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'first_transition_active' => 'on',
- 'first_transition_type' => 'fade',
- 'first_transition_duration' => '1500',
- 'first_transition_slot_amount' => '7',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'navbar-old',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#000000',
- 'thumbnails_wrapper_opacity' => '15',
- 'thumbnails_style' => 'navbar',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '-150',
- 'carousel_borderr' => '0',
- 'carousel_borderr_unit' => '%',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '5',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'on',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'on',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullscreen',
- 'width' => '800',
- 'width_notebook' => '600',
- 'width_tablet' => '600',
- 'width_mobile' => '600',
- 'height' => '800',
- 'height_notebook' => '600',
- 'height_tablet' => '600',
- 'height_mobile' => '600',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
- $presets[] = array (
- 'settings' =>
- array ('class' => '', 'image' => RS_PLUGIN_URL.'admin/assets/images/sliderpresets/carousel_full_rounded.png', 'name' => 'Cover-Flow-Rounded', 'preset' => 'carouselpreset' ),
- 'values' =>
- array (
- 'next_slide_on_window_focus' => 'off',
- 'delay' => '9000',
- 'start_js_after_delay' => '0',
- 'image_source_type' => 'full',
- 0 => 'revapi39.bind(\\"revolution.slide.layeraction\\",function (e) {
- //data.eventtype - Layer Action (enterstage, enteredstage, leavestage,leftstage)
- //data.layertype - Layer Type (image,video,html)
- //data.layersettings - Default Settings for Layer
- //data.layer - Layer as jQuery Object
- });',
- 'start_with_slide' => '1',
- 'first_transition_active' => 'on',
- 'first_transition_type' => 'fade',
- 'first_transition_duration' => '1500',
- 'first_transition_slot_amount' => '7',
- 'stop_on_hover' => 'off',
- 'stop_slider' => 'on',
- 'stop_after_loops' => '0',
- 'stop_at_slide' => '1',
- 'shuffle' => 'off',
- 'viewport_start' => 'wait',
- 'viewport_area' => '80',
- 'enable_progressbar' => 'on',
- 'background_dotted_overlay' => 'none',
- 'background_color' => 'transparent',
- 'padding' => '0',
- 'show_background_image' => 'off',
- 'background_image' => '',
- 'bg_fit' => 'cover',
- 'bg_repeat' => 'no-repeat',
- 'bg_position' => 'center center',
- 'position' => 'center',
- 'use_spinner' => '-1',
- 'spinner_color' => '#FFFFFF',
- 'enable_arrows' => 'on',
- 'navigation_arrow_style' => 'round',
- 'arrows_always_on' => 'false',
- 'hide_arrows' => '200',
- 'hide_arrows_mobile' => '1200',
- 'hide_arrows_on_mobile' => 'off',
- 'arrows_under_hidden' => '600',
- 'hide_arrows_over' => 'off',
- 'arrows_over_hidden' => '0',
- 'leftarrow_align_hor' => 'left',
- 'leftarrow_align_vert' => 'center',
- 'leftarrow_offset_hor' => '30',
- 'leftarrow_offset_vert' => '0',
- 'rightarrow_align_hor' => 'right',
- 'rightarrow_align_vert' => 'center',
- 'rightarrow_offset_hor' => '30',
- 'rightarrow_offset_vert' => '0',
- 'enable_bullets' => 'off',
- 'navigation_bullets_style' => 'round-old',
- 'bullets_space' => '5',
- 'bullets_direction' => 'horizontal',
- 'bullets_always_on' => 'true',
- 'hide_bullets' => '200',
- 'hide_bullets_mobile' => '1200',
- 'hide_bullets_on_mobile' => 'on',
- 'bullets_under_hidden' => '600',
- 'hide_bullets_over' => 'off',
- 'bullets_over_hidden' => '0',
- 'bullets_align_hor' => 'center',
- 'bullets_align_vert' => 'bottom',
- 'bullets_offset_hor' => '0',
- 'bullets_offset_vert' => '30',
- 'enable_thumbnails' => 'on',
- 'thumbnails_padding' => '20',
- 'span_thumbnails_wrapper' => 'on',
- 'thumbnails_wrapper_color' => '#000000',
- 'thumbnails_wrapper_opacity' => '0',
- 'thumbnails_style' => 'preview1',
- 'thumb_amount' => '9',
- 'thumbnails_space' => '10',
- 'thumbnail_direction' => 'horizontal',
- 'thumb_width' => '60',
- 'thumb_height' => '60',
- 'thumb_width_min' => '60',
- 'thumbs_always_on' => 'false',
- 'hide_thumbs' => '200',
- 'hide_thumbs_mobile' => '1200',
- 'hide_thumbs_on_mobile' => 'off',
- 'thumbs_under_hidden' => '0',
- 'hide_thumbs_over' => 'off',
- 'thumbs_over_hidden' => '0',
- 'thumbnails_inner_outer' => 'inner',
- 'thumbnails_align_hor' => 'center',
- 'thumbnails_align_vert' => 'bottom',
- 'thumbnails_offset_hor' => '0',
- 'thumbnails_offset_vert' => '0',
- 'enable_tabs' => 'off',
- 'tabs_padding' => '5',
- 'span_tabs_wrapper' => 'off',
- 'tabs_wrapper_color' => 'transparent',
- 'tabs_wrapper_opacity' => '5',
- 'tabs_style' => '',
- 'tabs_amount' => '5',
- 'tabs_space' => '5',
- 'tabs_direction' => 'horizontal',
- 'tabs_width' => '100',
- 'tabs_height' => '50',
- 'tabs_width_min' => '100',
- 'tabs_always_on' => 'false',
- 'hide_tabs' => '200',
- 'hide_tabs_mobile' => '1200',
- 'hide_tabs_on_mobile' => 'off',
- 'tabs_under_hidden' => '0',
- 'hide_tabs_over' => 'off',
- 'tabs_over_hidden' => '0',
- 'tabs_inner_outer' => 'inner',
- 'tabs_align_hor' => 'center',
- 'tabs_align_vert' => 'bottom',
- 'tabs_offset_hor' => '0',
- 'tabs_offset_vert' => '20',
- 'touchenabled' => 'on',
- 'drag_block_vertical' => 'off',
- 'swipe_velocity' => '75',
- 'swipe_min_touches' => '50',
- 'swipe_direction' => 'horizontal',
- 'keyboard_navigation' => 'off',
- 'keyboard_direction' => 'horizontal',
- 'mousescroll_navigation' => 'off',
- 'carousel_infinity' => 'on',
- 'carousel_space' => '-150',
- 'carousel_borderr' => '50',
- 'carousel_borderr_unit' => '%',
- 'carousel_padding_top' => '0',
- 'carousel_padding_bottom' => '0',
- 'carousel_maxitems' => '5',
- 'carousel_stretch' => 'off',
- 'carousel_fadeout' => 'on',
- 'carousel_varyfade' => 'on',
- 'carousel_rotation' => 'off',
- 'carousel_varyrotate' => 'on',
- 'carousel_maxrotation' => '65',
- 'carousel_scale' => 'on',
- 'carousel_varyscale' => 'off',
- 'carousel_scaledown' => '55',
- 'carousel_hposition' => 'center',
- 'carousel_vposition' => 'center',
- 'use_parallax' => 'on',
- 'disable_parallax_mobile' => 'off',
- 'parallax_type' => 'mouse',
- 'parallax_origo' => 'slidercenter',
- 'parallax_speed' => '2000',
- 'parallax_level_1' => '2',
- 'parallax_level_2' => '3',
- 'parallax_level_3' => '4',
- 'parallax_level_4' => '5',
- 'parallax_level_5' => '6',
- 'parallax_level_6' => '7',
- 'parallax_level_7' => '12',
- 'parallax_level_8' => '16',
- 'parallax_level_9' => '10',
- 'parallax_level_10' => '50',
- 'lazy_load_type' => 'smart',
- 'seo_optimization' => 'none',
- 'simplify_ie8_ios4' => 'off',
- 'show_alternative_type' => 'off',
- 'show_alternate_image' => '',
- 'jquery_noconflict' => 'off',
- 'js_to_body' => 'false',
- 'output_type' => 'none',
- 'jquery_debugmode' => 'off',
- 'slider_type' => 'fullwidth',
- 'width' => '800',
- 'width_notebook' => '600',
- 'width_tablet' => '600',
- 'width_mobile' => '600',
- 'height' => '800',
- 'height_notebook' => '600',
- 'height_tablet' => '600',
- 'height_mobile' => '600',
- 'enable_custom_size_notebook' => 'off',
- 'enable_custom_size_tablet' => 'off',
- 'enable_custom_size_iphone' => 'off',
- 'main_overflow_hidden' => 'off',
- 'auto_height' => 'off',
- 'min_height' => '',
- 'custom_css' => '',
- 'custom_javascript' => '',
- ),
- );
-
- //add the presets made from customers
- $customer_presets = get_option('revslider_presets', array());
-
-
- $presets = array_merge($presets, $customer_presets);
-
- $presets = apply_filters('revslider_slider_presets', $presets);
-
- foreach($presets as $key => $preset){
- if(intval($preset['settings']['image']) > 0){
- $img = wp_get_attachment_image_src(esc_attr($preset['settings']['image']), 'medium');
- $presets[$key]['settings']['image'] = ($img !== false) ? $img['0'] : '';
- }
- }
-
- return $presets;
-
- }
-
- /**
- *
- * @since: 5.0
- **/
- public static function add_preset_setting($data){
-
- if(!isset($data['settings']) || !isset($data['values'])) return __('Missing values to add preset', 'revslider');
-
- $customer_presets = get_option('revslider_presets', array());
-
- $data['settings']['custom'] = true;
-
- $customer_presets[] = array(
- 'settings' => $data['settings'],
- 'values' => $data['values']
- );
-
- RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
-
- return true;
- }
-
-
- /**
- * @since: 5.0
- **/
- public static function remove_preset_setting($data){
-
- if(!isset($data['name'])) return __('Missing values to remove preset', 'revslider');
-
- $customer_presets = get_option('revslider_presets', array());
-
- if(!empty($customer_presets)){
- foreach($customer_presets as $key => $preset){
- if($preset['settings']['name'] == $data['name']){
- unset($customer_presets[$key]);
- break;
- }
- }
- }
-
- RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
-
- return true;
- }
-
-
- /**
- * @since: 5.0
- **/
- public static function update_preset_setting($data){
-
- if(!isset($data['name'])) return __('Missing values to update preset', 'revslider');
-
- $customer_presets = get_option('revslider_presets', array());
-
- if(!empty($customer_presets)){
- foreach($customer_presets as $key => $preset){
- if($preset['settings']['name'] == $data['name']){
- $customer_presets[$key]['values'] = $data['values'];
- break;
- }
- }
- }
-
- RevSliderFunctionsWP::update_option('revslider_presets', $customer_presets, 'off');
-
- return true;
- }
-
-
- /**
- * @since: 5.3.0
- * create a page with revslider shortcodes included
- **/
- public static function create_slider_page($added){
-
- $new_page_id = 0;
-
- if(!is_array($added)) return apply_filters('revslider_create_slider_page', $new_page_id, $added);
-
- $content = '';
- $page_id = get_option('rs_import_page_id', 1);
- //$title = '';
-
- //get alias of all new Sliders that got created and add them as a shortcode onto a page
- foreach($added as $sid){
- $slider = new RevSlider();
- $slider->initByID($sid);
- $alias = $slider->getAlias();
- /*if($title == ''){
- $title = $slider->getTitle();
- }*/
- if($alias !== ''){
- $content .= '[rev_slider alias="'.$alias.'"][/rev_slider]'; //this way we will reorder as last comes first
- }
- }
-
- if($content !== ''){
- $new_page_id = wp_insert_post(
- array(
- 'post_title' => wp_strip_all_tags( 'RevSlider Page '.$page_id ), //$title
- 'post_content' => $content,
- 'post_type' => 'page',
- 'post_status' => 'draft',
- 'page_template' => '../public/views/revslider-page-template.php'
- )
- );
-
- if(is_wp_error($new_page_id)) $new_page_id = 0; //fallback to 0
-
- $page_id++;
- update_option('rs_import_page_id', $page_id);
- }
-
- return apply_filters('revslider_create_slider_page', $new_page_id, $added);
- }
-
-
- /**
- * @since: 5.3.1
- * get cache plugins
- **/
- public function get_installed_cache_plugins(){
- //get all plugins
- $plugins = get_plugins();
- //arrays for found cache related plugins
- $known_cache_plugins = array();
- $unknown_cache_plugins = array();
- //run through all plugins
- foreach ($plugins as $plugin_key => $plugin_values) {
- switch($plugin_key){
- //check if W3TC or WP Super Cache or WP Rocket
- //add to known plugins
- case "wp-rocket/wp-rocket.php":
- $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wprocket";
- break;
- case "wp-super-cache/wp-cache.php":
- $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#wpsc";
- break;
- case "w3-total-cache/w3-total-cache.php":
- $known_cache_plugins[$plugin_values['Name']] = "https://www.themepunch.com/faq/updating-make-sure-clear-caches/#w3tc";
- break;
- //check if cache in slug
- default:
- if(strpos($plugin_key,"cache")){
- //add to unknown plugins
- $unknown_cache_plugins[$plugin_values['Name']] = $plugin_values['PluginURI'];
- }
- break;
- }
- }
-
- $all = array_merge($known_cache_plugins, $unknown_cache_plugins);
-
- return apply_filters('revslider_get_installed_cache_plugins', $all);
-
- }
-
-
- /**
- * @since: 5.3.1
- * show failed import HTML
- **/
- public static function import_failed_message($message, $link = false){
-
- 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;">';
- 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;">';
- echo '<div style="font-size:30px; font-weight:600; line-height:50px; white-space:nowrap;margin-bottom:10px">Error: '.$message.'</div>';
- if($link !== false){
- 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>';
- }
- echo '</div>';
- echo '</div>';
-
- }
- }
- /**
- * old classname extends new one (old classnames will be obsolete soon)
- * @since: 5.0
- **/
- class RevOperations extends RevSliderOperations {}
- ?>
|