12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019 |
- <?php
- if( class_exists( 'Sakurairo_CSF' ) ) {
- $prefix = 'iro_options';
- if ( ! function_exists( 'iro_validate_optional_url' ) ) {
- function iro_validate_optional_url( $value ) {
- if ( !empty( $value ) ) {
- return csf_validate_url($value);
- }
- }
- }
- Sakurairo_CSF::createOptions( $prefix, array(
- 'menu_title' => __('iro-Options','sakurairo_csf'),
- 'menu_slug' => 'iro_options',
- ) );
- Sakurairo_CSF::createSection($prefix, array(
- 'title' => __('Hello!','sakurairo_csf'),
- 'icon' => 'fa fa-podcast',
- 'fields' => array(
- array(
- 'type' => 'heading',
- 'content' => __('News+','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<img src="https://news.maho.cc/sakurairo.php" alt="News_Plus" width="100%" height="100%" />','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'id' => 'preliminary',
- 'title' => __('Preliminary Options','sakurairo_csf'),
- 'icon' => 'fa fa-sliders',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Preliminary/">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'personal_avatar',
- 'type' => 'upload',
- 'title' => __('Personal Avatar','sakurairo_csf'),
- 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'text_logo_options',
- 'type' => 'switcher',
- 'title' => __('Mashiro Special Effects Text','sakurairo_csf'),
- 'label' => __('After turned on, the personal avatar will be replaced by the text as the home page display content','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'text_logo',
- 'type' => 'fieldset',
- 'title' => __('Mashiro Special Effects Text Options','sakurairo_csf'),
- 'dependency' => array( 'text_logo_options', '==', 'true', '', 'true' ),
- 'fields' => array(
- array(
- 'id' => 'text',
- 'type' => 'text',
- 'title' => __('Text','sakurairo_csf'),
- 'desc' => __('The text content should not be too long, and the recommended length is 16 bytes.','sakurairo_csf'),
- ),
- array(
- 'id' => 'font',
- 'type' => 'text',
- 'title' => __('Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- ),
- array(
- 'id' => 'size',
- 'type' => 'slider',
- 'title' => __('Size','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 70-90','sakurairo_csf'),
- 'unit' => 'px',
- 'min' => '40',
- 'max' => '140',
- ),
- array(
- 'id' => 'color',
- 'type' => 'color',
- 'title' => __('Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
- ),
- ),
- 'default' => array(
- 'text' => 'ひょうりゅ',
- 'size' => '80',
- 'color' => '#FFF',
- ),
- ),
- array(
- 'id' => 'iro_logo',
- 'type' => 'upload',
- 'title' => __('Navigation Menu Logo','sakurairo_csf'),
- 'desc' => __('The best size is 40px, and the nav menu text logo will not be displayed after filling in','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'favicon_link',
- 'type' => 'text',
- 'title' => __('Site Icon','sakurairo_csf'),
- 'desc' => __('Fill in the address, which decides the icon next to the title above the browser','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/favicon.ico'
- ),
- array(
- 'id' => 'iro_meta',
- 'type' => 'switcher',
- 'title' => __('Custom Site Keywords and Descriptions','sakurairo_csf'),
- 'label' => __('After turning on, you can customize the site keywords and descriptions','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'iro_meta_keywords',
- 'type' => 'text',
- 'title' => __('Site Keywords','sakurairo_csf'),
- 'dependency' => array( 'iro_meta', '==', 'true', '', 'true' ),
- 'desc' => __('The keywords should be separated with half width comma "," and it\'s better to set within 5 keywords','sakurairo_csf'),
- ),
- array(
- 'id' => 'iro_meta_description',
- 'type' => 'text',
- 'title' => __('Site Descriptions','sakurairo_csf'),
- 'dependency' => array( 'iro_meta', '==', 'true', '', 'true' ),
- 'desc' => __('Use concise words to describe the site, it is recommended to write within 120 words','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'id' => 'global',
- 'title' => __('Global Options','sakurairo_csf'),
- 'icon' => 'fa fa-globe',
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Appearance Options','sakurairo_csf'),
- 'icon' => 'fa fa-tree',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E5%A4%96%E8%A7%82%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Color Schemes','sakurairo_csf'),
- ),
- array(
- 'id' => 'theme_skin',
- 'type' => 'color',
- 'title' => __('Theme Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#505050'
- ),
- array(
- 'id' => 'theme_skin_matching',
- 'type' => 'color',
- 'title' => __('Matching Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#F9D938'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Dark Mode','sakurairo_csf'),
- ),
- array(
- 'id' => 'theme_skin_dark',
- 'type' => 'color',
- 'title' => __('Dark Mode Theme Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#FCCD00'
- ),
- array(
- 'id' => 'theme_darkmode_auto',
- 'type' => 'switcher',
- 'title' => __('Automatically Switch to Dark Mode','sakurairo_csf'),
- 'label' => __('Default on','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'type' => 'content',
- 'content' => __(
- '<p><strong>Client local time:</strong>Dark mode will switch on automatically from 22:00 to 7:00</p>'
- .'<p><strong>Follow client settings:</strong>Follow client browser settings</p>'
- .'<p><strong>Always on:</strong>Always on, except being configured by the client</p>','sakurairo_csf'),
- 'dependency' => array( 'theme_darkmode_auto', '==', 'true', '', 'true' ),
- ),
- array(
- 'id' => 'theme_darkmode_strategy',
- 'type' => 'select',
- 'title' => __('Automatic Switch Strategy of Dark Mode','sakurairo_csf'),
- 'dependency' => array( 'theme_darkmode_auto', '==', 'true', '', 'true' ),
- 'options' => array(
- 'time' => __('Client local time','sakurairo_csf'),
- 'client' => __('Follow client settings','sakurairo_csf'),
- 'eien' => __('Always on','sakurairo_csf'),
- ),
- "default"=>"time"
- ),
- array(
- 'id' => 'theme_darkmode_img_bright',
- 'type' => 'slider',
- 'title' => __('Dark Mode Image Brightness','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8','sakurairo_csf'),
- 'step' => '0.01',
- 'min' => '0.4',
- 'max' => '1',
- 'default' => '0.8'
- ),
- array(
- 'id' => 'theme_darkmode_widget_transparency',
- 'type' => 'slider',
- 'title' => __('Dark Mode Component Transparency','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8','sakurairo_csf'),
- 'step' => '0.01',
- 'min' => '0.2',
- 'max' => '1',
- 'default' => '0.8'
- ),
- array(
- 'id' => 'theme_darkmode_background_transparency',
- 'type' => 'slider',
- 'title' => __('Dark mode Background Transparency','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8. In order to ensure the best appearance, please keep the display of the frontend background image','sakurairo_csf'),
- 'step' => '0.01',
- 'min' => '0.2',
- 'max' => '1',
- 'default' => '0.8'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Other Appearance Related','sakurairo_csf'),
- ),
- array(
- 'id' => 'theme_commemorate_mode',
- 'type' => 'switcher',
- 'title' => __('Commemorate Mode','sakurairo_csf'),
- 'label' => __('After turning on, a black and white filter will be added to the global theme','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'load_out_svg',
- 'type' => 'text',
- 'title' => __('Occupying SVG while Loading Control Units','sakurairo_csf'),
- 'desc' => __('Fill in the address, which is the SVG displayed when loading control units','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/outload.svg'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Font Options','sakurairo_csf'),
- 'icon' => 'fa fa-font',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E5%AD%97%E4%BD%93%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Global','sakurairo_csf'),
- ),
- array(
- 'id' => 'global_font_weight',
- 'type' => 'slider',
- 'title' => __('Non-Emphasis Text Weight','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 300-500','sakurairo_csf'),
- 'step' => '10',
- 'min' => '100',
- 'max' => '700',
- 'default' => '300'
- ),
- array(
- 'id' => 'global_font_size',
- 'type' => 'slider',
- 'title' => __('Text Font Size','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 15-18','sakurairo_csf'),
- 'step' => '1',
- 'unit' => 'px',
- 'min' => '10',
- 'max' => '20',
- 'default' => '15'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('External Fonts','sakurairo_csf'),
- ),
- array(
- 'id' => 'reference_exter_font',
- 'type' => 'switcher',
- 'title' => __('Reference External Fonts','sakurairo_csf'),
- 'label' => __('After turning on, you can use external fonts as the default font or other component fonts, but it may affect performance','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'exter_font',
- 'type' => 'fieldset',
- 'title' => __('External Font Options','sakurairo_csf'),
- 'dependency' => array( 'reference_exter_font', '==', 'true', '', 'true' ),
- 'fields' => array(
- array(
- 'id' => 'font1',
- 'type' => 'text',
- 'title' => __('Font 1 Name','sakurairo_csf'),
- ),
- array(
- 'id' => 'link1',
- 'type' => 'text',
- 'title' => __('Font 1 Link','sakurairo_csf'),
- ),
- array(
- 'id' => 'font2',
- 'type' => 'text',
- 'title' => __('Font 2 Name','sakurairo_csf'),
- ),
- array(
- 'id' => 'link2',
- 'type' => 'text',
- 'title' => __('Font 2 Link','sakurairo_csf'),
- ),
- ),
- 'default' => array(
- 'font1' => '',
- 'link1' => '',
- 'font2' => '',
- 'link2' => '',
- ),
- ),
- array(
- 'id' => 'gfonts_api',
- 'type' => 'text',
- 'title' => __('Google Fonts Api Link','sakurairo_csf'),
- 'default' => 'cdn2.tianli0.top/fonts'
- ),
- array(
- 'id' => 'gfonts_add_name',
- 'type' => 'text',
- 'title' => __('Google Fonts Name','sakurairo_csf'),
- 'desc' => __('Please make sure that the added fonts can be referenced in Google Fonts library. Fill in the font names. The added fonts must be preceded by "|". If multiple fonts are referenced, use "|" as the separator. If the font name has spaces, use a plus sign instead. For example: | zcool + xiaowei| Ma + Shan + Zheng','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Navigation Menu Options','sakurairo_csf'),
- 'icon' => 'fa fa-map-signs',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E5%AF%BC%E8%88%AA%E8%8F%9C%E5%8D%95%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'nav_menu_style',
- 'type' => 'image_select',
- 'title' => __('Nav Menu Style','sakurairo_csf'),
- 'options' => array(
- 'sakurairo' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/nav_menu_style_iro.webp',
- 'sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/nav_menu_style_sakura.webp',
- ),
- 'default' => 'sakurairo'
- ),
- array(
- 'id' => 'nav_menu_radius',
- 'type' => 'slider',
- 'title' => __('Nav Menu Radius','sakurairo_csf'),
- 'dependency' => array( 'nav_menu_style', '==', 'sakurairo', '', 'true' ),
- 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
- 'unit' => 'px',
- 'max' => '50',
- 'default' => '15'
- ),
- array(
- 'id' => 'nav_menu_display',
- 'type' => 'radio',
- 'title' => __('Nav Menu Content Display Method','sakurairo_csf'),
- 'desc' => __('You can choose to unfold or fold the nav menu contents','sakurairo_csf'),
- 'options' => array(
- 'unfold' => __('Unfold','sakurairo_csf'),
- 'fold' => __('Fold','sakurairo_csf'),
- ),
- 'default' => 'unfold'
- ),
- array(
- 'id' => 'nav_menu_animation',
- 'type' => 'switcher',
- 'title' => __('Nav Menu Animation Effects','sakurairo_csf'),
- 'label' => __('It is on by default. If it is off, the nav menu content will be displayed directly without effects','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'nav_menu_animation_time',
- 'type' => 'slider',
- 'title' => __('Nav Menu Animation Time','sakurairo_csf'),
- 'dependency' => array( 'nav_menu_animation', '==', 'true', '', 'true' ),
- 'desc' => __('Slide to adjust, the recommended value range is 1-2','sakurairo_csf'),
- 'step' => '0.01',
- 'unit' => 's',
- 'max' => '5',
- 'default' => '2'
- ),
- array(
- 'id' => 'nav_menu_font',
- 'type' => 'text',
- 'title' => __('Nav Menu Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- 'default' => 'Noto Serif SC'
- ),
- array(
- 'id' => 'nav_menu_search',
- 'type' => 'switcher',
- 'title' => __('Nav Menu Search','sakurairo_csf'),
- 'label' => __('It is on by default. Click to enter the search area','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'search_area_background',
- 'type' => 'upload',
- 'title' => __('Search Area Background Image','sakurairo_csf'),
- 'desc' => __('Set the background image of your search area. Leave this option blank to display a white background','sakurairo_csf'),
- 'dependency' => array( 'nav_menu_search', '==', 'true', '', 'true' ),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/iloli.gif'
- ),
- array(
- 'id' => 'nav_menu_user_avatar',
- 'type' => 'switcher',
- 'title' => __('Nav Menu User Avatar','sakurairo_csf'),
- 'label' => __('It is on by default. Click to enter the login interface','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'unlisted_avatar',
- 'type' => 'upload',
- 'title' => __('Nav Menu Unlisted User Avatar','sakurairo_csf'),
- 'dependency' => array( 'nav_menu_user_avatar', '==', 'true', '', 'true' ),
- 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/topavatar.png'
- ),
- array(
- 'id' => 'nav_menu_secondary_arrow',
- 'type' => 'switcher',
- 'title' => __('Secondary Menu Prompt Arrow','sakurairo_csf'),
- 'label' => __('After turning on, the menu prompt arrow will appear in the secondary menu of the navigation menu','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'nav_menu_secondary_radius',
- 'type' => 'slider',
- 'title' => __('Secondary Menu Radius','sakurairo_csf'),
- 'dependency' => array( 'nav_menu_style', '==', 'sakurairo', '', 'true' ),
- 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
- 'unit' => 'px',
- 'max' => '30',
- 'default' => '15'
- ),
- array(
- 'id' => 'mashiro_logo_option',
- 'type' => 'switcher',
- 'title' => __('Mashiro Logo Style','sakurairo_csf'),
- 'label' => __('After turning on, the Mashiro Logo will appear and replace the navigation menu logo position','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'mashiro_logo',
- 'type' => 'fieldset',
- 'title' => __('Nav Menu Text Logo Options','sakurairo_csf'),
- 'dependency' => array( 'mashiro_logo_option', '==', 'true', '', 'true' ),
- 'fields' => array(
- array(
- 'id' => 'text_a',
- 'type' => 'text',
- 'title' => __('Text A','sakurairo_csf'),
- ),
- array(
- 'id' => 'text_b',
- 'type' => 'text',
- 'title' => __('Text B','sakurairo_csf'),
- ),
- array(
- 'id' => 'text_c',
- 'type' => 'text',
- 'title' => __('Text C','sakurairo_csf'),
- ),
- array(
- 'id' => 'text_secondary',
- 'type' => 'text',
- 'title' => __('Secondary Text','sakurairo_csf'),
- 'dependency' => array( 'text_b', '!=', '', '', 'true' ),
- ),
- array(
- 'id' => 'font_name',
- 'type' => 'text',
- 'title' => __('Font Name','sakurairo_csf'),
- ),
- ),
- 'default' => array(
- 'text_a' => '',
- 'text_b' => '',
- 'text_c' => '',
- 'text_secondary' => '',
- 'font_name' => 'Noto Serif SC',
- ),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Widgets Panel and Frontend Related Options','sakurairo_csf'),
- 'icon' => 'fa fa-th-large',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E6%A0%B7%E5%BC%8F%E8%8F%9C%E5%8D%95%E5%92%8C%E5%89%8D%E5%8F%B0%E8%83%8C%E6%99%AF%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Widgets Panel','sakurairo_csf'),
- ),
- array(
- 'id' => 'style_menu_radius',
- 'type' => 'slider',
- 'title' => __('Widgets Panel Button Radius','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value is 10','sakurairo_csf'),
- 'unit' => 'px',
- 'max' => '50',
- 'default' => '10'
- ),
- array(
- 'id' => 'style_menu_selection_radius',
- 'type' => 'slider',
- 'title' => __('Widgets Panel Widget Radius','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value is 10','sakurairo_csf'),
- 'unit' => 'px',
- 'max' => '30',
- 'default' => '10'
- ),
- array(
- 'id' => 'style_menu_font',
- 'type' => 'text',
- 'title' => __('Widgets Panel Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- 'default' => 'Noto Serif SC'
- ),
- array(
- 'id' => 'sakura_widget',
- 'type' => 'switcher',
- 'title' => __('Widgets Panel WP Widget Area','sakurairo_csf'),
- 'label' => __('When turned on, the WP Widget Area will be displayed in Widgets Panel','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'widget_shuo',
- 'type' => 'switcher',
- 'title' => __('Widgets Panel Shuoshuo','sakurairo_csf'),
- 'label' => __('When turned on, the Latest Shuoshuo text will be displayed in Widgets Panel','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'widget_daynight',
- 'type' => 'switcher',
- 'title' => __('Widgets Panel Day&Night Switching','sakurairo_csf'),
- 'label' => __('Enabled by default, the Day&Night Switching will be displayed in Widgets Panel','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'widget_font',
- 'type' => 'switcher',
- 'title' => __('Widgets Panel Font Switching','sakurairo_csf'),
- 'label' => __('Enabled by default, the Font Switching will be displayed in Widgets Panel','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Frontend Background','sakurairo_csf'),
- ),
- array(
- 'id' => 'reception_background_size',
- 'type' => 'select',
- 'options' => array(
- 'cover' => __('Cover','sakurairo_csf'),
- 'contain' => __('Contain','sakurairo_csf'),
- 'auto' => __('Auto','sakurairo_csf'),
- ),
- 'title' => __('Frontend Background Scaling Method','sakurairo_csf'),
- 'desc' => __('You can choose two ways to scale the frontend background, the default is auto-scaling','sakurairo_csf'),
- 'default' => 'auto'
- ),
- array(
- 'id' => 'reception_background_blur',
- 'type' => 'switcher',
- 'title' => __('Background Transparency Blur','sakurairo_csf'),
- 'label' => __('After opening Background Transparency Blur','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'reception_background',
- 'type' => 'tabbed',
- 'title' => __('Widgets Panel Background Switching(Frontend Background)','sakurairo_csf'),
- 'tabs' => array(
- array(
- 'title' => __('Default','sakurairo_csf'),
- 'icon' => 'fa fa-television',
- 'fields' => array(
- array(
- 'id' => 'img1',
- 'type' => 'upload',
- 'title' => __('Image','sakurairo_csf'),
- ),
- )
- ),
- array(
- 'title' => __('Heart Shaped','sakurairo_csf'),
- 'icon' => 'fa fa-heart-o',
- 'fields' => array(
- array(
- 'id' => 'heart_shaped',
- 'type' => 'switcher',
- 'title' => __('Switch','sakurairo_csf'),
- ),
- array(
- 'id' => 'img2',
- 'type' => 'upload',
- 'title' => __('Image','sakurairo_csf'),
- ),
- )
- ),
- array(
- 'title' => __('Star Shaped','sakurairo_csf'),
- 'icon' => 'fa fa-star-o',
- 'fields' => array(
- array(
- 'id' => 'star_shaped',
- 'type' => 'switcher',
- 'title' => __('Switch','sakurairo_csf'),
- ),
- array(
- 'id' => 'img3',
- 'type' => 'upload',
- 'title' => __('Image','sakurairo_csf'),
- ),
- )
- ),
- array(
- 'title' => __('Square Shaped','sakurairo_csf'),
- 'icon' => 'fa fa-delicious',
- 'fields' => array(
- array(
- 'id' => 'square_shaped',
- 'type' => 'switcher',
- 'title' => __('Switch','sakurairo_csf'),
- ),
- array(
- 'id' => 'img4',
- 'type' => 'upload',
- 'title' => __('Image','sakurairo_csf'),
- ),
- )
- ),
- array(
- 'title' => __('Lemon Shaped','sakurairo_csf'),
- 'icon' => 'fa fa-lemon-o',
- 'fields' => array(
- array(
- 'id' => 'lemon_shaped',
- 'type' => 'switcher',
- 'title' => __('Switch','sakurairo_csf'),
- ),
- array(
- 'id' => 'img5',
- 'type' => 'upload',
- 'title' => __('Image','sakurairo_csf'),
- ),
- )
- ),
- ),
- 'default' => array(
- 'heart_shaped' => true,
- 'star_shaped' => true,
- 'square_shaped' => true,
- 'lemon_shaped' => true,
- 'img2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg1.png',
- 'img3' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg2.png',
- 'img4' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg3.png',
- 'img5' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg4.png',
- )
- ),
- array(
- 'id' => 'reception_background_transparency',
- 'type' => 'slider',
- 'title' => __('Background Transparency in the Frontend','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended sliding value range is 0.6-0.8','sakurairo_csf'),
- 'step' => '0.01',
- 'min' => '0.2',
- 'max' => '1',
- 'default' => '0.8'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Frontend Font','sakurairo_csf'),
- ),
- array(
- 'id' => 'global_default_font',
- 'type' => 'text',
- 'title' => __('Global Default Font/Widgets Panel Font Switching A','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- ),
- array(
- 'id' => 'global_font_2',
- 'type' => 'text',
- 'title' => __('Widgets Panel Font Switching B','sakurairo_csf'),
- 'dependency' => array( 'widget_font', '==', 'true', '', 'true' ),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Footer Options','sakurairo_csf'),
- 'icon' => 'fa fa-caret-square-o-down',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E9%A1%B5%E5%B0%BE%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'aplayer_server',
- 'type' => 'select',
- 'title' => __('Footer Online Music Player','sakurairo_csf'),
- 'desc' => __('A button will appear at the bottom left corner of the footer after turning on, click it and the footer online player will be displayed','sakurairo_csf'),
- 'options' => array(
- 'off' => __('Off','sakurairo_csf'),
- 'netease' => __('Netease Cloud Music','sakurairo_csf'),
- 'kugou' => __('Kugou Music(may not be available)','sakurairo_csf'),
- 'baidu' => __('Baidu Music(not available on servers overseas)','sakurairo_csf'),
- 'tencent' => __('QQ Music(may not be available)','sakurairo_csf'),
- ),
- 'default' => 'off'
- ),
- array(
- 'id' => 'aplayer_server_proxy',
- 'type' => 'text',
- 'title' => __('Footer Online Music Player Proxy','sakurairo_csf'),
- 'dependency' => array( 'aplayer_server', '!=', 'off', '', 'true' ),
- 'desc' => __('Ex. http://127.0.0.1:8080. Reference: https://curl.se/libcurl/c/CURLOPT_PROXY.html','sakurairo_csf'),
- 'default' => ''
- ),
- array(
- 'id' => 'aplayer_playlistid',
- 'type' => 'text',
- 'title' => __('Footer Online Music Player Songlist ID','sakurairo_csf'),
- 'dependency' => array( 'aplayer_server', '!=', 'off', '', 'true' ),
- 'desc' => __('Fill in the song ID, e.g. https://music.163.com/#/playlist?id=5380675133 SongID:5380675133','sakurairo_csf'),
- 'default' => '5380675133'
- ),
- array(
- 'id' => 'aplayer_order',
- 'type' => 'select',
- 'title' => __('Footer Online Music Player Mode','sakurairo_csf'),
- 'dependency' => array( 'aplayer_server', '!=', 'off', '', 'true' ),
- 'desc' => __('Select music player mode','sakurairo_csf'),
- 'options' => array(
- 'list' => __('List','sakurairo_csf'),
- 'random' => __('Random','sakurairo_csf'),
- ),
- 'default' => 'list'
- ),
- array(
- 'id' => 'aplayer_preload',
- 'type' => 'select',
- 'title' => __('Footer Online Music Player Preload','sakurairo_csf'),
- 'dependency' => array( 'aplayer_server', '!=', 'off', '', 'true' ),
- 'desc' => __('Whether to preload songs','sakurairo_csf'),
- 'options' => array(
- 'none' => __('Off','sakurairo_csf'),
- 'metadata' => __('Preload Metadata','sakurairo_csf'),
- 'auto' => __('Auto','sakurairo_csf'),
- ),
- 'default' => 'auto'
- ),
- array(
- 'id' => 'aplayer_volume',
- 'type' => 'slider',
- 'title' => __('Default Volume of Footer Online Music Player','sakurairo_csf'),
- 'dependency' => array( 'aplayer_server', '!=', 'off', '', 'true' ),
- 'desc' => __('Slide to adjust, the recommended sliding value range is 0.4-0.6','sakurairo_csf'),
- 'step' => '0.01',
- 'max' => '1',
- 'default' => '0.5'
- ),
- array(
- 'id' => 'aplayer_cookie',
- 'type' => 'textarea',
- 'title' => __('Netease Cloud Music Cookies','sakurairo_csf'),
- 'dependency' => array( 'aplayer_server', '==', 'netease', '', 'true' ),
- 'desc' => __('If you want to play VIP music on Netease Cloud Music Platform, please fill in your account cookies in this option.','sakurairo_csf'),
- ),
- array(
- 'id' => 'footer_sakura',
- 'type' => 'switcher',
- 'title' => __('Footer Sakura Icon','sakurairo_csf'),
- 'label' => __('Enabled by default, sakura icon will appear on the footer','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'footer_info',
- 'type' => 'textarea',
- 'title' => __('Footer Info','sakurairo_csf'),
- 'desc' => __('Footer description text, supports HTML code','sakurairo_csf'),
- 'default' => 'Copyright © by FUUKEI All Rights Reserved.'
- ),
- array(
- 'id' => 'footer_text_font',
- 'type' => 'text',
- 'title' => __('Footer Text Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- 'default' => 'Noto Serif SC'
- ),
- array(
- 'id' => 'footer_load_occupancy',
- 'type' => 'switcher',
- 'title' => __('Footer Load Occupancy Query','sakurairo_csf'),
- 'label' => __('Load occupancy information will appear at the end of the page after turning it on. Not recommended in production environment.','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'footer_upyun',
- 'type' => 'switcher',
- 'title' => __('Footer Upyun League Logo','sakurairo_csf'),
- 'label' => __('Upyun Logo will appear at the end of the page after turning it on','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id'=>'footer_addition',
- 'type' => 'code_editor',
- 'sanitize' => false,
- 'title' => __('Footer Addition','sakurairo_csf'),
- 'desc' => __('Add HTML code at the end of the page. Useful for adding customize JavaScript.','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Hitokoto','sakurairo_csf'),
- ),
- array(
- 'id' => 'footer_yiyan',
- 'type' => 'switcher',
- 'title' => __('Footer Hitokoto','sakurairo_csf'),
- 'label' => __('Hitokoto will appear at the end of the page after turning it on','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'type' => 'content',
- 'dependency' => array( 'footer_yiyan', '==', 'true', '', 'true' ),
- 'content' => __('<h4>Hitokoto API Setup Instructions</h4>'
- .' <p>Fill in as the example:<code> ["https://api.nmxc.ltd/yiyan/", "https://v1.hitokoto.cn/"]</code>, where the first API will be used first and the next ones will be the backup. </p>'
- .' <p><strong>Official API:</strong> See the <a href="https://developer.hitokoto.cn/sentence/"> documentation</a> for how to use it, and the parameter "return code" should not be anything except JSON. <a href="https://v1.hitokoto.cn/">https://v1.hitokoto.cn/</a></p>'
- .' <p><strong>Maho API:</strong> An reverse proxy mirror of the official API. <a href="https://api.nmxc.ltd/yiyan/">https://api.nmxc.ltd/yiyan/</a></p>','sakurairo_csf'),
- ),
- array(
- 'id' => 'yiyan_api',
- 'type' => 'textarea',
- 'title' => __('Hitokoto API address','sakurairo_csf'),
- 'dependency' => array( 'footer_yiyan', '==', 'true', '', 'true' ),
- 'desc' => __('Fill in the address in JavaScript array format','sakurairo_csf'),
- 'default' => '["https://v1.hitokoto.cn/","https://api.nmxc.ltd/yiyan/"]'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Cursor Options','sakurairo_csf'),
- 'icon' => 'fa fa-i-cursor',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E5%85%89%E6%A0%87%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'cursor_nor',
- 'type' => 'text',
- 'title' => __('Standard Cursor Style','sakurairo_csf'),
- 'desc' => __('Apply to global, fill in ".cur" mouse file link','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/normal.cur'
- ),
- array(
- 'id' => 'cursor_no',
- 'type' => 'text',
- 'title' => __('Selected Cursor Style','sakurairo_csf'),
- 'desc' => __('Apply to multiple styles, fill in ".cur" file link','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/No_Disponible.cur'
- ),
- array(
- 'id' => 'cursor_ayu',
- 'type' => 'text',
- 'title' => __('Selected Control Unit Cursor Style','sakurairo_csf'),
- 'desc' => __('Apply to selected control unit, fill in ".cur" file link','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/ayuda.cur'
- ),
- array(
- 'id' => 'cursor_text',
- 'type' => 'text',
- 'title' => __('Selected Text Cursor Style','sakurairo_csf'),
- 'desc' => __('Apply to selected text, fill in ".cur" file link','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/texto.cur'
- ),
- array(
- 'id' => 'cursor_work',
- 'type' => 'text',
- 'title' => __('Work Status Cursor Style','sakurairo_csf'),
- 'desc' => __('Apply to load control unit, fill in ".cur" file link','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/work.cur'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'global',
- 'title' => __('Additional Options','sakurairo_csf'),
- 'icon' => 'fa fa-gift',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Global/#%E9%A2%9D%E5%A4%96%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Effects&Animations','sakurairo_csf'),
- ),
-
- array(
- 'id' => 'preload_animation',
- 'type' => 'switcher',
- 'title' => __('Preload Animation','sakurairo_csf'),
- 'label' => __('Preload animation before new pages load; To enable this option, ensure your page resources can load properly.' ,'sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'preload_animation_color1',
- 'type' => 'color',
- 'title' => __('Preload Animation Color A','sakurairo_csf'),
- 'dependency' => array( 'preload_animation', '==', 'true', '', 'true' ),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#ffea99'
- ),
- array(
- 'id' => 'preload_animation_color2',
- 'type' => 'color',
- 'title' => __('Preload Animation Color B','sakurairo_csf'),
- 'dependency' => array( 'preload_animation', '==', 'true', '', 'true' ),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#FCCD00'
- ),
- array(
- 'id' => 'preload_blur',
- 'title' => __('Preload Animation Blur Transition Effect','sakurairo_csf'),
- 'dependency' => array( 'preload_animation', '==', 'true', '', 'true' ),
- 'desc' => __('Blur transition duration in milliseconds ms, off when set to 0.' ,'sakurairo_csf'),
- 'default' => '0',
- 'type' => 'slider',
- 'step' => '10',
- 'max' => '10000',
- ),
- array(
- 'id' => 'sakura_falling_effects',
- 'type' => 'select',
- 'title' => __('Sakura Falling Effects','sakurairo_csf'),
- 'options' => array(
- 'off' => __('Off','sakurairo_csf'),
- 'native' => __('Native Quantity','sakurairo_csf'),
- 'quarter' => __('Quarter Quantity','sakurairo_csf'),
- 'half' => __('Half Quantity','sakurairo_csf'),
- 'less' => __('Less Quantity','sakurairo_csf'),
- ),
- 'default' => 'off'
- ),
- array(
- 'id' => 'particles_effects',
- 'type' => 'switcher',
- 'title' => __('Particles Effects','sakurairo_csf'),
- 'dependency' => array( 'sakura_falling_effects', '==', 'off', '', 'true' ),
- 'label' => __('Particles effects will appear in the global background. Please open the Cover-and-Frontend-Background-Integration Options to get the best experience','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id'=> 'particles_json',
- 'type' => 'code_editor',
- 'sanitize' => false,
- 'title' => __('Particles JSON','sakurairo_csf'),
- 'dependency' => array( 'particles_effects', '==', 'true', '', 'true' ),
- 'desc' => __('You can go to the <a href="https://vincentgarreau.com/particles.js/">Project Address</a> to generate your unique Particles Effects','sakurairo_csf'),
- 'default' => '
- {
- "particles": {
- "number": {
- "value": 200,
- "density": {
- "enable": true,
- "value_area": 800
- }
- },
- "color": {
- "value": "#fff"
- },
- "shape": {
- "type": "circle",
- "stroke": {
- "width": 0,
- "color": "#000000"
- },
- "polygon": {
- "nb_sides": 5
- },
- "image": {
- "src": "img/github.svg",
- "width": 100,
- "height": 100
- }
- },
- "opacity": {
- "value": 0.5,
- "random": true,
- "anim": {
- "enable": false,
- "speed": 1,
- "opacity_min": 0.1,
- "sync": false
- }
- },
- "size": {
- "value": 10,
- "random": true,
- "anim": {
- "enable": false,
- "speed": 40,
- "size_min": 0.1,
- "sync": false
- }
- },
- "line_linked": {
- "enable": false,
- "distance": 500,
- "color": "#ffffff",
- "opacity": 0.4,
- "width": 2
- },
- "move": {
- "enable": true,
- "speed": 2,
- "direction": "bottom",
- "random": false,
- "straight": false,
- "out_mode": "out",
- "bounce": false,
- "attract": {
- "enable": false,
- "rotateX": 600,
- "rotateY": 1200
- }
- }
- },
- "interactivity": {
- "detect_on": "canvas",
- "events": {
- "onhover": {
- "enable": true,
- "mode": "bubble"
- },
- "onclick": {
- "enable": true,
- "mode": "repulse"
- },
- "resize": true
- },
- "modes": {
- "grab": {
- "distance": 400,
- "line_linked": {
- "opacity": 0.5
- }
- },
- "bubble": {
- "distance": 400,
- "size": 4,
- "duration": 0.3,
- "opacity": 1,
- "speed": 3
- },
- "repulse": {
- "distance": 200,
- "duration": 0.4
- },
- "push": {
- "particles_nb": 4
- },
- "remove": {
- "particles_nb": 2
- }
- }
- },
- "retina_detect": true
- }'
- ),
- array(
- 'id' => 'note_effects',
- 'type' => 'switcher',
- 'title' => __('Note Touch Effects','sakurairo_csf'),
- 'label' => __('After turning on, there will be a note sound alert when the back to top button and Mashiro style logo touch','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Feature','sakurairo_csf'),
- ),
- array(
- 'id' => 'poi_pjax',
- 'type' => 'switcher',
- 'title' => __('PJAX Partial Refresh','sakurairo_csf'),
- 'label' => __('Enabled by default, clicking to a new page will not require reloading','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'nprogress_on',
- 'type' => 'switcher',
- 'title' => __('NProgress Loading Progress Bar','sakurairo_csf'),
- 'label' => __('Enabled by default, when loading page there will be a progress bar alert','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'smoothscroll_option',
- 'type' => 'switcher',
- 'title' => __('Global Smooth Scroll','sakurairo_csf'),
- 'label' => __('Enabled by default, page scrolling will be smoother','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'captcha_select',
- 'type' => 'select',
- 'title' => __('Captcha Selection','sakurairo_csf'),
- 'options' => array(
- 'off' => __('Off','sakurairo_csf'),
- 'iro_captcha' => __('Theme Built in Captcha','sakurairo_csf'),
- 'vaptcha' => __('Vaptcha','sakurairo_csf')
- ),
- 'default' => 'off',
- ),
- array(
- 'id' => 'vaptcha_vid',
- 'type' => 'text',
- 'title' => __('Vaptcha VID','sakurairo_csf'),
- 'dependency' => array( 'captcha_select', '==', 'vaptcha', '', 'true' ),
- 'desc' => __('Fill in your Vaptcha VID','sakurairo_csf'),
- ),
- array(
- 'id' => 'vaptcha_key',
- 'type' => 'text',
- 'title' => __('Vaptcha KEY','sakurairo_csf'),
- 'dependency' => array( 'captcha_select', '==', 'vaptcha', '', 'true' ),
- 'desc' => __('Fill in your Vaptcha KEY','sakurairo_csf'),
- ),
- array(
- 'id' => 'vaptcha_scene',
- 'type' => 'select',
- 'title' => __('Vaptcha Scene','sakurairo_csf'),
- 'dependency' => array( 'captcha_select', '==', 'vaptcha', '', 'true' ),
- 'options' => array(
- '1' => __(1,'sakurairo_csf'),
- '2' => __(2,'sakurairo_csf'),
- '3' => __(3,'sakurairo_csf'),
- '4' => __(4,'sakurairo_csf'),
- '5' => __(5,'sakurairo_csf'),
- '6' => __(6,'sakurairo_csf'),
- ),
- 'default' => 1,
- ),
- array(
- 'id' => 'pagenav_style',
- 'type' => 'radio',
- 'title' => __('Pagination Mode','sakurairo_csf'),
- 'options' => array(
- 'ajax' => __('Ajax Load','sakurairo_csf'),
- 'np' => __('Page Up/Down','sakurairo_csf'),
- ),
- 'default' => 'ajax'
- ),
- array(
- 'id' => 'page_auto_load',
- 'type' => 'select',
- 'title' => __('Next Page Auto Load','sakurairo_csf'),
- 'dependency' => array( 'pagenav_style', '==', 'ajax', '', 'true' ),
- 'options' => array(
- '233' => __('do not autoload','sakurairo_csf'),
- '0' => __('0 Sec','sakurairo_csf'),
- '1' => __('1 Sec','sakurairo_csf'),
- '2' => __('2 Sec','sakurairo_csf'),
- '3' => __('3 Sec','sakurairo_csf'),
- '4' => __('4 Sec','sakurairo_csf'),
- '5' => __('5 Sec','sakurairo_csf'),
- '6' => __('6 Sec','sakurairo_csf'),
- '7' => __('7 Sec','sakurairo_csf'),
- '8' => __('8 Sec','sakurairo_csf'),
- '9' => __('9 Sec','sakurairo_csf'),
- '10' => __('10 Sec','sakurairo_csf'),
- ),
- 'default' => '233'
- ),
- array(
- 'id' => 'load_nextpage_svg',
- 'type' => 'text',
- 'title' => __('Placeholder SVG when loading the next page','sakurairo_csf'),
- 'desc' => __('Fill in the address, this is the SVG that will be displayed as a placeholder when the next page is loading','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/ball.svg'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'id' => 'homepage',
- 'title' => __('HomePage Options','sakurairo_csf'),
- 'icon' => 'fa fa-home',
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'homepage',
- 'title' => __('Cover Options','sakurairo_csf'),
- 'icon' => 'fa fa-laptop',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Homepage/#%E5%B0%81%E9%9D%A2%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'cover_switch',
- 'type' => 'switcher',
- 'title' => __('Cover Switch','sakurairo_csf'),
- 'label' => __('On by default, if off, all options below will be disabled','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'cover_full_screen',
- 'type' => 'switcher',
- 'title' => __('Cover Full Screen','sakurairo_csf'),
- 'label' => __('Default on','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => true
- ),
- array(
- 'id' => 'cover_half_screen_curve',
- 'type' => 'switcher',
- 'title' => __('Cover Arc Occlusion (Below)','sakurairo_csf'),
- 'label' => __('An arc occlusion will appear below the cover when turned on','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'cover_full_screen', '==', 'false' ),
- ),
- 'default' => false
- ),
- array(
- 'id' => 'cover_radius',
- 'type' => 'slider',
- 'title' => __('Cover Radius','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 15-20','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'unit' => 'px',
- 'max' => '60',
- 'default' => '15'
- ),
- array(
- 'id' => 'cover_animation',
- 'type' => 'switcher',
- 'title' => __('Cover Animation','sakurairo_csf'),
- 'label' => __('On by default, if off, the cover will be displayed directly','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => true
- ),
- array(
- 'id' => 'cover_animation_time',
- 'type' => 'slider',
- 'title' => __('Cover Animation Time','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 1-2','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'cover_animation', '==', 'true' ),
- ),
- 'step' => '0.01',
- 'unit' => 's',
- 'max' => '5',
- 'default' => '2'
- ),
- array(
- 'id' => 'infor_bar',
- 'type' => 'switcher',
- 'title' => __('Cover Info Bar','sakurairo_csf'),
- 'label' => __('Enabled by default, show avatar, Mashiro effects text, signature bar, shuoshuo bar, social area','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => true
- ),
- array(
- 'id' => 'infor_bar_style',
- 'type' => 'image_select',
- 'title' => __('Cover Info Bar Style','sakurairo_csf'),
- 'options' => array(
- 'v1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/infor_bar_style_v1.webp',
- 'v2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/infor_bar_style_v2.webp',
- ),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'default' => 'v1'
- ),
- array(
- 'id' => 'infor_bar_bgcolor',
- 'type' => 'color',
- 'title' => __('Cover Info Bar Background Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'default' => 'rgba(255,255,255,0.6)'
- ),
- array(
- 'id' => 'avatar_radius',
- 'type' => 'slider',
- 'title' => __('Cover Info Bar Avatar Radius','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value is 100','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'unit' => 'px',
- 'default' => '100'
- ),
- array(
- 'id' => 'signature_radius',
- 'type' => 'slider',
- 'title' => __('Cover Info Bar Rounded','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range 10-20','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'unit' => 'px',
- 'max' => '50',
- 'default' => '15'
- ),
- array(
- 'id' => 'signature_text',
- 'type' => 'text',
- 'title' => __('Cover Signature Field Text','sakurairo_csf'),
- 'desc' => __('A self-descriptive quote','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'default' => '届ける言葉を今は育ててる'
- ),
- array(
- 'id' => 'signature_font',
- 'type' => 'text',
- 'title' => __('Cover Signature Field Text Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'default' => 'Noto Serif SC'
- ),
- array(
- 'id' => 'signature_font_size',
- 'type' => 'slider',
- 'title' => __('Cover Signature Field Text Font Size','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 15-18','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'unit' => 'px',
- 'min' => '5',
- 'max' => '20',
- 'default' => '16'
- ),
- array(
- 'id' => 'signature_typing',
- 'type' => 'switcher',
- 'title' => __('Cover Signature Bar Typing Effects','sakurairo_csf'),
- 'label' => __('When turned on, the signature bar text will have an additional paragraph of text and will be rendered with typing effects','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- ),
- 'default' => false
- ),
- array(
- 'id' => 'signature_typing_marks',
- 'type' => 'switcher',
- 'title' => __('Cover Signature Field Typing Effects Double Quotes','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- array( 'signature_typing', '==', 'true' ),
- ),
- 'label' => __('Typing effects will be appended with double quotes when turned on','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'signature_typing_placeholder',
- 'type' => 'text',
- 'title' => __('Cover Signature Field Typing Effects Placeholder','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- array( 'signature_typing', '==', 'true' ),
- ),
- 'default' => '疯狂造句中......'
- ),
- array(
- 'id' => 'signature_typing_json',
- 'type' => 'code_editor',
- 'sanitize' => false,
- 'title' => __('Typed.js initial option','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'infor_bar', '==', 'true' ),
- array( 'signature_typing', '==', 'true' ),
- ),
- 'default' => '{"strings":["给时光以生命,给岁月以文明"],"typeSpeed":140,"backSpeed":50,"loop":false,"showCursor":true}'
- ),
- array(
- 'id' => 'random_graphs_options',
- 'type' => 'select',
- 'title' => __('Cover Random Image Options','sakurairo_csf'),
- 'options' => array(
- 'external_api' => __('External API','sakurairo_csf'),
- 'webp_optimization' => __('Webp optimized','sakurairo_csf'),
- 'local' => __('Local','sakurairo_csf'),
- ),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => 'external_api'
- ),
- array(
- 'id' => 'random_graphs_mts',
- 'type' => 'switcher',
- 'title' => __('Cover Random Image Multi-terminal Separation','sakurairo_csf'),
- 'label' => __('Enabled by default, desktop and mobile devices will use separate random image addresses','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => true
- ),
- array(
- 'id' => 'random_graphs_link',
- 'type' => 'text',
- 'title' => __('Webp Optimization/External API Desktop Side Random Graphics Address','sakurairo_csf'),
- 'desc' => __('Fill in an URL','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'random_graphs_options', '!=', 'local', '', 'true' ),
- ),
- 'default' => 'https://api.maho.cc/random-img/pc.php',
- 'sanitize' => false,
- 'validate' => 'csf_validate_url',
- ),
- array(
- 'id' => 'random_graphs_link_mobile',
- 'type' => 'text',
- 'title' => __('External API Mobile Devices Random Image Address','sakurairo_csf'),
- 'dependency' => array(
- array( 'random_graphs_mts', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- array( 'random_graphs_options', '!=', 'local', '', 'true' ),
- ),
- 'desc' => __('Fill in an URL','sakurairo_csf'),
- 'default' => 'https://api.maho.cc/random-img/mobile.php',
- 'sanitize' => false,
- 'validate' => 'csf_validate_url',
- ),
- array(
- 'id' => 'cache_cover',
- 'type' => 'switcher',
- 'title' => __('Cover Random Background Image Cache','sakurairo_csf'),
- 'label' => __('Enabled by default, this feature will cache a cover image locally, which can improve the loading speed of the first cover after entering the homepage. Note: This feature needs the cover APIs that accept cross-domain requests.' ,'sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => true
- ),
- array(
- 'id' => 'site_bg_as_cover',
- 'type' => 'switcher',
- 'title' => __('Cover and Frontend Background Integration','sakurairo_csf'),
- 'label' => __('When enabled, the background of the cover will be set to transparent, while the frontend background will use the cover\'s random image API','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => false
- ),
- array(
- 'id' => 'random_graphs_filter',
- 'type' => 'select',
- 'title' => __('Cover Random Images Filter','sakurairo_csf'),
- 'options' => array(
- 'filter-nothing' => __('No filter','sakurairo_csf'),
- 'filter-undertint' => __('Light filter','sakurairo_csf'),
- 'filter-dim' => __('Dimmed filter','sakurairo_csf'),
- 'filter-grid' => __('Grid filter','sakurairo_csf'),
- 'filter-dot' => __('Dot filter','sakurairo_csf'),
- ),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => 'filter-nothing'
- ),
- array(
- 'id' => 'wave_effects',
- 'type' => 'switcher',
- 'title' => __('Cover Wave Effects','sakurairo_csf'),
- 'label' => __('Wave effect will appear at the bottom of the cover of the home page after turning on, and it will be forced off in the dark mode','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => false
- ),
- array(
- 'id' => 'drop_down_arrow',
- 'type' => 'switcher',
- 'title' => __('Cover Dropdown Arrow','sakurairo_csf'),
- 'label' => __('Enabled by default, show a dropdown arrow at bottom of home cover','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => true
- ),
- array(
- 'id' => 'drop_down_arrow_mobile',
- 'type' => 'switcher',
- 'title' => __('Cover Dropdown Arrow Display on Mobile Devices','sakurairo_csf'),
- 'dependency' => array(
- array( 'drop_down_arrow', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'label' => __('Drop down arrow will appear at the bottom of the mobile devices\' home cover after turning it on','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'drop_down_arrow_color',
- 'type' => 'color',
- 'title' => __('Cover Dropdown Arrow Color','sakurairo_csf'),
- 'dependency' => array(
- array( 'drop_down_arrow', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
- 'default' => 'rgba(255,255,255,0.8)'
- ),
- array(
- 'id' => 'drop_down_arrow_dark_color',
- 'type' => 'color',
- 'title' => __('Cover Dropdown Arrow Color (Dark Mode)','sakurairo_csf'),
- 'dependency' => array(
- array( 'drop_down_arrow', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'desc' => __('Customize the colors, dark colors are recommended','sakurairo_csf'),
- 'default' => 'rgba(51,51,51,0.8)'
- ),
- array(
- 'id' => 'cover_video',
- 'type' => 'switcher',
- 'title' => __('Cover Video','sakurairo_csf'),
- 'label' => __('Use a video instead of the images as the cover','sakurairo_csf'),
- 'dependency' => array( 'cover_switch', '==', 'true', '', 'true' ),
- 'default' => false
- ),
- array(
- 'id' => 'cover_video_loop',
- 'type' => 'switcher',
- 'title' => __('Cover Video Loop','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_video', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'label' => __('Video will loop automatically when enabled.','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'cover_video_live',
- 'type' => 'switcher',
- 'title' => __('Cover Video Auto Resume','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_video', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'label' => __('Cover Video will resume automatically when coming back to homepage while Pjax enabled.','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'cover_video_link',
- 'type' => 'text',
- 'title' => __('Cover Video URL Base Path','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_video', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'validate' => 'iro_validate_optional_url',
- 'desc' => __("Fill in the base path your video located at. For example: https://localhost. Your site's URL is used as default. Please pay attention to the protocol name of the URL.",'sakurairo_csf'),
- ),
- array(
- 'id' => 'cover_video_title',
- 'type' => 'text',
- 'title' => __('Cover Video File Name','sakurairo_csf'),
- 'dependency' => array(
- array( 'cover_video', '==', 'true' ),
- array( 'cover_switch', '==', 'true', '', 'true' ),
- ),
- 'desc' => __('For example: abc.mp4. Multiple videos should be separated by English commas like "abc.mp4,efg.mp4," Random play is on by default.','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'homepage',
- 'title' => __('Cover Social Area Options','sakurairo_csf'),
- 'icon' => 'fa fa-share-square-o',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Homepage/#%E5%B0%81%E9%9D%A2%E7%A4%BE%E4%BA%A4%E5%8C%BA%E5%9F%9F%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Related Options','sakurairo_csf'),
- ),
- array(
- 'id' => 'social_area',
- 'type' => 'switcher',
- 'title' => __('Cover Social Area','sakurairo_csf'),
- 'label' => __('Enabled by default, show cover random image toggle button and social network icons','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'social_display_icon',
- 'type' => 'image_select',
- 'title' => __('Social Icon','sakurairo_csf'),
- 'desc' => __('Select your favorite icon pack. Icon pack references are detailed in the "About Theme" section','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'options' => array(
- 'display_icon/fluent_design' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_fd.gif',
- 'display_icon/muh2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_h2.gif',
- 'display_icon/flat_colorful' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_fc.gif',
- 'display_icon/sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_sa.gif',
- 'display_icon/macaronblue' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_mb.webp',
- 'display_icon/macarongreen' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_mg.webp',
- 'display_icon/macaronpurple' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_mp.webp',
- 'display_icon/pink' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_sp.webp',
- 'display_icon/orange' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_so.webp',
- 'display_icon/sangosyu' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_sg.webp',
- 'display_icon/sora' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_ts.webp',
- 'display_icon/nae' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_nn.webp',
- ),
- 'default' => 'display_icon/fluent_design'
- ),
- array(
- 'id' => 'social_area_radius',
- 'type' => 'slider',
- 'title' => __('Cover Social Area Rounded Corners','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('Slide to adjust, the recommended value range is 10-20','sakurairo_csf'),
- 'unit' => 'px',
- 'max' => '30',
- 'default' => '15'
- ),
- array(
- 'id' => 'cover_random_graphs_switch',
- 'type' => 'switcher',
- 'title' => __('Switch Button of Random Images','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'label' => __('Enabled by default, show cover random image toggle button','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Social Network','sakurairo_csf'),
- ),
- array(
- 'id' => 'wechat',
- 'type' => 'upload',
- 'title' => __('Wechat','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'qq',
- 'type' => 'text',
- 'title' => __('QQ','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('Please note the format of filling out the form, e.g. tencent://message/?uin=123456','sakurairo_csf'),
- ),
- array(
- 'id' => 'bili',
- 'type' => 'text',
- 'title' => __('Bilibili','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'wangyiyun',
- 'type' => 'text',
- 'title' => __('NetEase Music','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'sina',
- 'type' => 'text',
- 'title' => __('Weibo','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'github',
- 'type' => 'text',
- 'title' => __('Github','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'telegram',
- 'type' => 'text',
- 'title' => __('Telegram','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'steam',
- 'type' => 'text',
- 'title' => __('Steam','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'zhihu',
- 'type' => 'text',
- 'title' => __('ZhiHu','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'qzone',
- 'type' => 'text',
- 'title' => __('QZone','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'lofter',
- 'type' => 'text',
- 'title' => __('Lofter','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'youku',
- 'type' => 'text',
- 'title' => __('Youku','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'linkedin',
- 'type' => 'text',
- 'title' => __('Linkedin','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'twitter',
- 'type' => 'text',
- 'title' => __('Twitter','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'facebook',
- 'type' => 'text',
- 'title' => __('Facebook','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'csdn',
- 'type' => 'text',
- 'title' => __('CSDN','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'jianshu',
- 'type' => 'text',
- 'title' => __('JianShu','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'socialdiy1',
- 'type' => 'text',
- 'title' => __('Customized Social Network Ⅰ','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
-
- array(
- 'id' => 'socialdiy1_title',
- 'type' => 'text',
- 'title' => __('Customized Social Network Ⅰ Title','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- "default" => "DIY1"
- ),
- array(
- 'id' => 'socialdiyp1',
- 'type' => 'upload',
- 'title' => __('Customized Social Network Ⅰ icon','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'socialdiy2',
- 'type' => 'text',
- 'title' => __('Customized Social Network Ⅱ','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- ),
- array(
- 'id' => 'socialdiy2_title',
- 'type' => 'text',
- 'title' => __('Customized Social Network Ⅱ Title','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- "default" => "DIY2"
- ),
-
- array(
- 'id' => 'socialdiyp2',
- 'type' => 'upload',
- 'title' => __('Customized Social Network Ⅱ icon','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'email_name',
- 'type' => 'text',
- 'title' => __('Email Username','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('name@domain.com fo name, the full address can be known only when there is a js runtime in the frontend, you can fill in with confidence','sakurairo_csf'),
- ),
- array(
- 'id' => 'email_domain',
- 'type' => 'text',
- 'title' => __('Email Domain','sakurairo_csf'),
- 'dependency' => array( 'social_area', '==', 'true', '', 'true' ),
- 'desc' => __('name@domain.com fo domain.com','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'homepage',
- 'title' => __('Bulletin Board and Area Title Options','sakurairo_csf'),
- 'icon' => 'fa fa-bullhorn',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Homepage/#%E5%85%AC%E5%91%8A%E6%A0%8F%E5%92%8C%E5%8C%BA%E5%9F%9F%E6%A0%87%E9%A2%98%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Bulletin Board','sakurairo_csf'),
- ),
- array(
- 'id' => 'bulletin_board',
- 'type' => 'switcher',
- 'title' => __('Bulletin Board','sakurairo_csf'),
- 'label' => __('When enabled the bulletin board will be displayed below the front cover','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'bulletin_board_style',
- 'type' => 'radio',
- 'title' => __('Bulletin Board Style','sakurairo_csf'),
- 'dependency' => array( 'bulletin_board', '==', 'true', '', 'true' ),
- 'options' => array(
- 'picture' => __('Picture Background','sakurairo_csf'),
- 'pure' => __('Color Background','sakurairo_csf'),
- ),
- 'default' => 'picture'
- ),
- array(
- 'id' => 'bulletin_board_icon',
- 'type' => 'switcher',
- 'title' => __('Bulletin Board "Notice" Icon','sakurairo_csf'),
- 'dependency' => array( 'bulletin_board', '==', 'true', '', 'true' ),
- 'label' => __('The "Notice" icon will be displayed on the left side of the announcement bar','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'bulletin_board_bg',
- 'type' => 'upload',
- 'title' => __('Bulletin Board Background','sakurairo_csf'),
- 'dependency' => array(
- array( 'bulletin_board', '==', 'true', '', 'true' ),
- array( 'bulletin_board_style', '==', 'picture' ),
- ),
- 'desc' => __('Best width 820px, best height 67px','sakurairo_csf'),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/announcement_bg.webp'
- ),
- array(
- 'id' => 'bulletin_board_border_color',
- 'type' => 'color',
- 'title' => __('Bulletin Board Border Color','sakurairo_csf'),
- 'dependency' => array(
- array( 'bulletin_board', '==', 'true', '', 'true' ),
- array( 'bulletin_board_style', '==', 'pure' ),
- ),
- 'desc' => __('Customize the colors, it is recommended to use a light color that corresponds with the theme color','sakurairo_csf'),
- 'default' => '#E6E6E6'
- ),
- array(
- 'id' => 'bulletin_text',
- 'type' => 'text',
- 'title' => __('Bulletin Board Text','sakurairo_csf'),
- 'dependency' => array( 'bulletin_board', '==', 'true', '', 'true' ),
- 'desc' => __('Fill in the announcement text, the text beyond 142 bytes will be hidden','sakurairo_csf'),
- ),
- array(
- 'id' => 'bulletin_board_text_align',
- 'type' => 'image_select',
- 'title' => __('Bulletin Board Alignment','sakurairo_csf'),
- 'dependency' => array( 'bulletin_board', '==', 'true', '', 'true' ),
- 'options' => array(
- 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/announce_text_left.webp',
- 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/announce_text_right.webp',
- 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/announce_text_center.webp',
- ),
- 'default' => 'left'
- ),
- array(
- 'id' => 'bulletin_text_color',
- 'type' => 'color',
- 'title' => __('Bulletin Board Text Color','sakurairo_csf'),
- 'dependency' => array( 'bulletin_board', '==', 'true', '', 'true' ),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#999'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Area Title','sakurairo_csf'),
- ),
- array(
- 'id' => 'exhibition_area_icon',
- 'type' => 'text',
- 'title' => __('Display Area Icon','sakurairo_csf'),
- 'desc' => __('Default is "fa-solid fa-laptop", You can check the <a href="https://fontawesome.com/search?o=r&m=free">FontAwesome Website</a> to see the icons that can be filled in' ,'sakurairo_csf'),
- 'default' => 'fa-solid fa-laptop'
- ),
- array(
- 'id' => 'exhibition_area_title',
- 'type' => 'text',
- 'title' => __('Display Area Title','sakurairo_csf'),
- 'desc' => __('Default is "Display", you can change it to anything else, but of course it CANNOT be used as an ad! Not allowed!!!' ,'sakurairo_csf'),
- 'default' => 'Display'
- ),
- array(
- 'id' => 'post_area_icon',
- 'type' => 'text',
- 'title' => __('Post Area Icon','sakurairo_csf'),
- 'desc' => __('Default is "fa-regular fa-bookmark", You can check the <a href="https://fontawesome.com/search?o=r&m=free">FontAwesome Website</a> to see the icons that can be filled in' ,'sakurairo_csf'),
- 'default' => 'fa-regular fa-bookmark'
- ),
- array(
- 'id' => 'post_area_title',
- 'type' => 'text',
- 'title' => __('Post Area Title','sakurairo_csf'),
- 'desc' => __('Default is "Article", you can change it to anything else, but of course it CANNOT be used as an ad! Not allowed!!!' ,'sakurairo_csf'),
- 'default' => 'Article'
- ),
- array(
- 'id' => 'area_title_font',
- 'type' => 'text',
- 'title' => __('Area Title Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- 'default' => 'Noto Serif SC'
- ),
- array(
- 'id' => 'area_title_text_align',
- 'type' => 'image_select',
- 'title' => __('Area Title Alignment','sakurairo_csf'),
- 'options' => array(
- 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/area_title_text_left.webp',
- 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/area_title_text_right.webp',
- 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/area_title_text_center.webp',
- ),
- 'default' => 'left'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'homepage',
- 'title' => __('Display Area Options','sakurairo_csf'),
- 'icon' => 'fa fa-bookmark',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Homepage/#%E5%B1%95%E7%A4%BA%E5%8C%BA%E5%9F%9F%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'exhibition_area',
- 'type' => 'switcher',
- 'title' => __('Display Area','sakurairo_csf'),
- 'label' => __('Enabled by default, display area is above article area','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'exhibition_area_matching_color',
- 'type' => 'color',
- 'title' => __('Display Area Matching Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'dependency' => array( 'exhibition_area', '==', 'true', '', 'true' ),
- 'default' => '#a0daa9'
- ),
- array(
- 'id' => 'exhibition_area_style',
- 'type' => 'image_select',
- 'title' => __('Display Area Style','sakurairo_csf'),
- 'dependency' => array( 'exhibition_area', '==', 'true', '', 'true' ),
- 'options' => array(
- 'left_and_right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/exhibition_area_style_lr.webp',
- 'bottom_to_top' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/exhibition_area_style_ud.webp',
- ),
- 'default' => 'left_and_right'
- ),
- array(
- 'id' => 'exhibition_area_compat',
- 'type' => 'switcher',
- 'title' => __('Display Area Compatibility Mode','sakurairo_csf'),
- 'dependency' => array(
- array( 'exhibition_area_style', '==', 'left_and_right', '', 'true' ),
- array( 'exhibition_area', '==', 'true' ),
- ),
- 'label' => __('Enabled by default, this option avoids the problem of misaligned display areas','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'exhibition_background_color',
- 'type' => 'color',
- 'title' => __('Display Area Background Color','sakurairo_csf'),
- 'dependency' => array(
- array( 'exhibition_area_style', '==', 'left_and_right', '', 'true' ),
- array( 'exhibition_area', '==', 'true' ),
- ),
- 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
- 'default' => 'rgba(255,255,255,0.4)'
- ),
-
- array(
- 'id' => 'exhibition_radius',
- 'type' => 'slider',
- 'title' => __('Display Area Rounded Corners','sakurairo_csf'),
- 'dependency' => array(
- array( 'exhibition_area_style', '==', 'left_and_right', '', 'true' ),
- array( 'exhibition_area_compat', '==', 'true' ),
- array( 'exhibition_area', '==', 'true' ),
- ),
- 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
- 'unit' => 'px',
- 'default' => '15'
- ),
- array(
- 'id' => 'exhibition',
- 'type' => 'tabbed',
- 'title' => __('Display Area Options','sakurairo_csf'),
- 'dependency' => array( 'exhibition_area', '==', 'true', '', 'true' ),
- 'tabs' => array(
- array(
- 'title' => __('First Display Area','sakurairo_csf'),
- 'fields' => array(
- array(
- 'id' => 'img1',
- 'type' => 'upload',
- 'title' => __('image','sakurairo_csf'),
- 'desc' => __('best width 260px, best height 160px','sakurairo_csf'),
- ),
- array(
- 'id' => 'title1',
- 'type' => 'text',
- 'title' => __('title','sakurairo_csf'),
- ),
- array(
- 'id' => 'description1',
- 'type' => 'text',
- 'title' => __('description','sakurairo_csf'),
- ),
- array(
- 'id' => 'link1',
- 'type' => 'text',
- 'title' => __('add URL','sakurairo_csf'),
- ),
- )
- ),
- array(
- 'title' => __('Second Display Area','sakurairo_csf'),
- 'fields' => array(
- array(
- 'id' => 'img2',
- 'type' => 'upload',
- 'title' => __('image','sakurairo_csf'),
- 'desc' => __('best width 260px, best height 160px','sakurairo_csf'),
- ),
- array(
- 'id' => 'title2',
- 'type' => 'text',
- 'title' => __('title','sakurairo_csf'),
- ),
- array(
- 'id' => 'description2',
- 'type' => 'text',
- 'title' => __('description','sakurairo_csf'),
- ),
- array(
- 'id' => 'link2',
- 'type' => 'text',
- 'title' => __('add URL','sakurairo_csf'),
- ),
- )
- ),
- array(
- 'title' => __('Third Display Area','sakurairo_csf'),
- 'fields' => array(
- array(
- 'id' => 'img3',
- 'type' => 'upload',
- 'title' => __('image','sakurairo_csf'),
- 'desc' => __('best width 260px, best height 160px','sakurairo_csf'),
- ),
- array(
- 'id' => 'title3',
- 'type' => 'text',
- 'title' => __('title','sakurairo_csf'),
- ),
- array(
- 'id' => 'description3',
- 'type' => 'text',
- 'title' => __('description','sakurairo_csf'),
- ),
- array(
- 'id' => 'link3',
- 'type' => 'text',
- 'title' => __('add URL','sakurairo_csf'),
- ),
- )
- ),
- ),
- 'default' => array(
- 'link1' => '',
- 'link2' => '',
- 'link3' => '',
- 'img1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/exhibition1.webp',
- 'img2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/exhibition2.webp',
- 'img3' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/exhibition3.webp',
- 'title1' => 'アンコール',
- 'title2' => 'ハルジオン',
- 'title3' => 'かいぶつ',
- 'description1' => 'ここは夜のない世界',
- 'description2' => '過ぎてゆく時間の中',
- 'description3' => '素晴らしき世界に今日も乾杯',
- )
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'homepage',
- 'title' => __('Article Area Options','sakurairo_csf'),
- 'icon' => 'fa fa-book',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Homepage/#%E6%96%87%E7%AB%A0%E5%8C%BA%E5%9F%9F%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'post_list_style',
- 'type' => 'image_select',
- 'title' => __('Article Area Display Style','sakurairo_csf'),
- 'options' => array(
- 'imageflow' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura_left.webp',
- 'akinastyle' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_akina.webp',
- ),
- 'default' => 'imageflow'
- ),
- array(
- 'id' => 'post_list_matching_color',
- 'type' => 'color',
- 'title' => __('Article Area Matching Color','sakurairo_csf'),
- 'dependency' => array( 'post_list_style', '==', 'imageflow', '', 'true' ),
- 'desc' => __('Customize the colors, This option only supports filling in hexadecimal colors, suggest the same as the matching color','sakurairo_csf'),
- 'default' => '#FCCD00'
- ),
- array(
- 'id' => 'post_border_shadow_color',
- 'type' => 'color',
- 'title' => __('Article Area Border Shadow Color','sakurairo_csf'),
- 'dependency' => array( 'post_list_style', '==', 'imageflow', '', 'true' ),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#e8e8e8'
- ),
- array(
- 'id' => 'post_list_akina_type',
- 'type' => 'image_select',
- 'title' => __('Article Area Featured Image Display Shapes','sakurairo_csf'),
- 'dependency' => array( 'post_list_style', '==', 'akinastyle', '', 'true' ),
- 'desc' => __('You can choose a circular or a rectangular display of the featured image','sakurairo_csf'),
- 'options' => array(
- 'round' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_akina.webp',
- 'square' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_akina2.webp',
- ),
- 'default' => 'round'
- ),
- array(
- 'id' => 'post_list_image_align',
- 'type' => 'image_select',
- 'title' => __('Article Area Featured Image Alignment','sakurairo_csf'),
- 'dependency' => array( 'post_list_style', '==', 'imageflow', '', 'true' ),
- 'desc' => __('You can choose different directions to display the featured images','sakurairo_csf'),
- 'options' => array(
- 'alternate' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura1.webp',
- 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura2.webp',
- 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura3.webp',
- ),
- 'default' => 'alternate'
- ),
- array(
- 'id' => 'post_cover_options',
- 'type' => 'radio',
- 'title' => __('Article Area Featured Image Options','sakurairo_csf'),
- 'options' => array(
- 'type_1' => __('Cover Random Image','sakurairo_csf'),
- 'type_2' => __('External API Random Image','sakurairo_csf'),
- ),
- 'default' => 'type_1'
- ),
- array(
- 'id' => 'post_cover',
- 'type' => 'text',
- 'title' => __('Article Area Featured Image External API Random Image Address','sakurairo_csf'),
- 'dependency' => array( 'post_cover_options', '==', 'type_2', '', 'true' ),
- 'desc' => __('add URL','sakurairo_csf'),
- 'sanitize' => false,
- 'validate' => 'iro_validate_optional_url',
- ),
- array(
- 'id' => 'post_title_font_size',
- 'type' => 'slider',
- 'title' => __('Article Area Title Font Size','sakurairo_csf'),
- 'desc' => __('Slide to adjust, the recommended value range is 16-20','sakurairo_csf'),
- 'dependency' => array( 'post_list_style', '==', 'imageflow', '', 'true' ),
- 'unit' => 'px',
- 'step' => '1',
- 'min' => '10',
- 'max' => '30',
- 'default' => '18'
- ),
- array(
- 'id' => 'post_date_font_size',
- 'type' => 'slider',
- 'title' => __('Article Area Time Display Area Font Size','sakurairo_csf'),
- 'dependency' => array( 'post_list_style', '==', 'imageflow', '', 'true' ),
- 'desc' => __('Slide to adjust, the recommended values range is 10-14','sakurairo_csf'),
- 'unit' => 'px',
- 'step' => '1',
- 'min' => '6',
- 'max' => '20',
- 'default' => '12'
- ),
-
- array(
- 'id' => 'is_author_meta_show',
- 'type' => 'switcher',
- 'title' => __('Article Area Author Info','sakurairo_csf'),
- 'label' => __('When turned on, author information will be added to the article metadata section.' ,'sakurairo_csf'),
- 'default' => false
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'id' => 'page',
- 'title' => __('Page Options','sakurairo_csf'),
- 'icon' => 'fa fa-file-text',
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'page',
- 'title' => __('Common Options','sakurairo_csf'),
- 'icon' => 'fa fa-compass',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Pages/#%E7%BB%BC%E5%90%88%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'page_style',
- 'type' => 'image_select',
- 'title' => __('Page Style','sakurairo_csf'),
- 'options' => array(
- 'sakurairo' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/page_style_iro.webp',
- 'sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/page_style_sakura.webp',
- ),
- 'default' => 'sakurairo'
- ),
- array(
- 'id' => 'entry_content_style',
- 'type' => 'radio',
- 'title' => __('Page Layout Style','sakurairo_csf'),
- 'options' => array(
- 'sakurairo' => __('Default Style','sakurairo_csf'),
- 'github' => __('Github Style','sakurairo_csf'),
- ),
- 'default' => 'sakurairo'
- ),
- array(
- 'id' => 'patternimg',
- 'type' => 'switcher',
- 'title' => __('Page Decoration Image','sakurairo_csf'),
- 'label' => __('Enabled by default, show on article pages, standalone pages and category pages','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'page_title_animation',
- 'type' => 'switcher',
- 'title' => __('Page Title Animation','sakurairo_csf'),
- 'label' => __('Page title will have float-in animation when turned on','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'page_title_animation_time',
- 'type' => 'slider',
- 'title' => __('Page Title Animation Time','sakurairo_csf'),
- 'dependency' => array( 'page_title_animation', '==', 'true', '', 'true' ),
- 'desc' => __('Slide to adjust, recommended value range is 1-2','sakurairo_csf'),
- 'step' => '0.01',
- 'unit' => 's',
- 'max' => '5',
- 'default' => '2'
- ),
- array(
- 'id' => 'clipboard_copyright',
- 'type' => 'switcher',
- 'title' => __('Page Clipboard Copyright Notice','sakurairo_csf'),
- 'label' => __('Enabled by default, users will have copyright notice text when copying text content over 30 bytes','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'page_lazyload',
- 'type' => 'switcher',
- 'title' => __('Page LazyLoad','sakurairo_csf'),
- 'label' => __('LazyLoad effect for page images, WordPress block editor already comes with similar effect, not recommended to turn on','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'page_lazyload_spinner',
- 'type' => 'text',
- 'title' => __('Page LazyLoad Placeholder SVG','sakurairo_csf'),
- 'dependency' => array( 'page_lazyload', '==', 'true', '', 'true' ),
- 'desc' => __('Fill in the address, this is the placeholder image that will be displayed when the page LazyLoad is being loaded','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/inload.svg'
- ),
- array(
- 'id' => 'load_in_svg',
- 'type' => 'text',
- 'title' => __('Page Image Placeholder SVG','sakurairo_csf'),
- 'desc' => __('Fill address, this is the SVG that will be displayed as a placeholder when the page image is being loaded','sakurairo_csf'),
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/inload.svg'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'page',
- 'title' => __('Article Page Options','sakurairo_csf'),
- 'icon' => 'fa fa-archive',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Pages/#%E6%96%87%E7%AB%A0%E9%A1%B5%E9%9D%A2%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'article_title_font_size',
- 'type' => 'slider',
- 'title' => __('Article Page Title Font Size','sakurairo_csf'),
- 'desc' => __('Slide to adjust, recommended value range is 28-36. This option is only available for article pages that have a featured image set','sakurairo_csf'),
- 'unit' => 'px',
- 'min' => '16',
- 'max' => '48',
- 'default' => '32'
- ),
- array(
- 'id' => 'article_title_line',
- 'type' => 'switcher',
- 'title' => __('Article Page Title Underline Animation','sakurairo_csf'),
- 'label' => __('Article title will have underline animation when this is enabled and article has a featured image set','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'article_auto_toc',
- 'type' => 'switcher',
- 'title' => __('Article Page Auto Show Menu','sakurairo_csf'),
- 'label' => __('Enabled by default, the article page will automatically show the menu. PHP extension "DOM" is required for this feature.','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'inline_code_background_color',
- 'type' => 'color',
- 'title' => __('Inline Code Background Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#F2F1F1'
- ),
- array(
- 'id' => 'inline_code_background_color_in_dark_mode',
- 'type' => 'color',
- 'title' => __('Inline Code Background Color In Dark Mode','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color,this color is only displayed in dark mode','sakurairo_csf'),
- 'default' => '#505050'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Article Expansion Area','sakurairo_csf'),
- ),
- array(
- 'id' => 'article_function',
- 'type' => 'switcher',
- 'title' => __('Article Page Function Bar','sakurairo_csf'),
- 'label' => __('Enabled by default, will be displayed on the article page with the features enabled below','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'article_lincenses',
- 'type' => 'switcher',
- 'title' => __('Article Lincenses','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'label' => __('Enabled by default, Article lincenses will appear on the function bar','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'alipay_code',
- 'type' => 'upload',
- 'title' => __('Article Page Appreciation Function (Alipay QR Code)','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'desc' => __('Upload Alipay Receipt QR Code Image','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'wechat_code',
- 'type' => 'upload',
- 'title' => __('Article Page Appreciation Function (Wechat QR Code)','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'desc' => __('Upload WeChat Receipt QR Code Image','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'id' => 'author_profile_avatar',
- 'type' => 'switcher',
- 'title' => __('Article Page Author Avatar','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'label' => __('Enabled by default, Author avatar will appear on the function bar','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'author_profile_name',
- 'type' => 'switcher',
- 'title' => __('Article Page Author Name','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'label' => __('Author name will appear on the function bar when enabled','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'author_profile_quote',
- 'type' => 'switcher',
- 'title' => __('Article Page Author Signature','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'label' => __('Enabled by default, Author signature will appear on the function bar','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'author_profile_quote_text',
- 'type' => 'text',
- 'title' => __('Article Page Author Info Signature Text','sakurairo_csf'),
- 'dependency' => array(
- array( 'article_function', '==', 'true', '', 'true' ),
- array( 'author_profile_quote', '==', 'true' ),
- ),
- 'desc' => __('A self-descriptive quote','sakurairo_csf'),
- 'default' => '届ける言葉を今は育ててる'
- ),
- array(
- 'id' => 'article_modified_time',
- 'type' => 'switcher',
- 'title' => __('Article Last Update Time','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'label' => __('Article last update time will appear on the function bar when enabled','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'article_tag',
- 'type' => 'switcher',
- 'title' => __('Article Tag','sakurairo_csf'),
- 'dependency' => array( 'article_function', '==', 'true', '', 'true' ),
- 'label' => __('Enabled by default, Article tag will appear on the function bar','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'article_nextpre',
- 'type' => 'switcher',
- 'title' => __('Article Page Prev/Next Article Switcher','sakurairo_csf'),
- 'label' => __('Enabled by default, the previous and next article switch will appear on the article pages','sakurairo_csf'),
- 'default' => true
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'page',
- 'title' => __('Template Page Options','sakurairo_csf'),
- 'icon' => 'fa fa-window-maximize',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Pages/#%E6%A8%A1%E6%9D%BF%E9%A1%B5%E9%9D%A2%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Public Settings','sakurairo_csf'),
- ),
- array(
- 'id' => 'page_temp_title_font_size',
- 'type' => 'slider',
- 'title' => __('Template Page Title Font Size','sakurairo_csf'),
- 'desc' => __('Slide to adjust, recommended value range is 36-48. This option is only available for template pages with featured images already set','sakurairo_csf'),
- 'unit' => 'px',
- 'min' => '20',
- 'max' => '64',
- 'default' => '40'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('ShuoShuo Template Settings','sakurairo_csf'),
- ),
- array(
- 'id' => 'shuoshuo_background_color1',
- 'type' => 'color',
- 'title' => __('Ideas Template Background ColorⅠ','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => 'rgba(255,224,102,0.2)'
- ),
- array(
- 'id' => 'shuoshuo_background_color2',
- 'type' => 'color',
- 'title' => __('Ideas Template Background Color II','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => 'rgba(255,204,0,0.2)'
- ),
- array(
- 'id' => 'shuoshuo_arrow',
- 'type' => 'switcher',
- 'title' => __('Ideas Template Tip Arrow','sakurairo_csf'),
- 'label' => __('After turning on the alert arrow will appear on the left side of the comment','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'shuoshuo_font',
- 'type' => 'text',
- 'title' => __('Ideas Template Font','sakurairo_csf'),
- 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
- 'default' => 'Noto Serif SC'
- ),
- array(
- 'id' => 'shuoshuo_per_page',
- 'type' => 'text',
- 'title' => __('Number Of ShuoShuo','sakurairo_csf'),
- 'desc' => __('Enter a positive integer or "-1" to control the number of ShuoShuo displayed on each page. Enter "-1" to display all messages.','sakurairo_csf'),
- 'default' => '5'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Bangumi Template Settings','sakurairo_csf'),
- ),
- array(
- 'id' => 'bangumi_source',
- 'type' => 'image_select',
- 'title' => __('Bangumi Template Source', 'sakurairo_csf'),
- 'options' => array(
- 'bilibili' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/bangumi_tep_bili.webp',
- 'myanimelist' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/bangumi_tep_mal.webp',
- ),
- 'default' => 'bilibili'
- ),
- array(
- 'id' => 'my_anime_list_username',
- 'type' => 'text',
- 'title' => __('My Anime List Username','sakurairo_csf'),
- 'dependency' => array( 'bangumi_source', '==', 'myanimelist', '', 'true' ),
- 'desc' => __('Username on https://myanimelist.net/','sakurairo_csf'),
- 'default' => ''
- ),
- array(
- 'id' => 'my_anime_list_sort',
- 'type' => 'radio',
- 'title' => __('My Anime List Sort','sakurairo_csf'),
- 'dependency' => array( 'bangumi_source', '==', 'myanimelist', '', 'true' ),
- 'options' => array(
- '1' => __('Status and Last Updated', 'sakurairo_csf'),
- '2' => __('Last Updated', 'sakurairo_csf'),
- '3' => __('Status', 'sakurairo_csf'),
- ),
- 'default' => '1'
- ),
- array(
- 'id' => 'bilibili_id',
- 'type' => 'text',
- 'title' => __('Bilibili Account UID','sakurairo_csf'),
- 'desc' => __('Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the number part "13972644"','sakurairo_csf'),
- 'dependency' => array( 'bangumi_source', '==', 'bilibili', '', 'true' ),
- 'default' => '13972644'
- ),
- array(
- 'id' => 'bilibili_cookie',
- 'type' => 'text',
- 'title' => __('Bilibili Account Cookies','sakurairo_csf'),
- 'desc' => __('Fill in your account cookies, F12 to open your browser web panel, go to your bilibili homepage to get cookies. If left empty, it will not show the progress of catching up bangumis','sakurairo_csf'),
- 'dependency' => array( 'bangumi_source', '==', 'bilibili', '', 'true' ),
- 'default' => 'LIVE_BUVID='
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Friend Link Template Settings','sakurairo_csf'),
- ),
- array(
- 'id' => 'friend_link_align',
- 'type' => 'image_select',
- 'title' => __('Friend Link Template Unit Alignment','sakurairo_csf'),
- 'options' => array(
- 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/friend_link_left.webp',
- 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/friend_link_right.webp',
- 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/friend_link_center.webp',
- ),
- 'default' => 'left'
- ),
- array(
- 'id' => 'friend_link_title_matching_color',
- 'type' => 'color',
- 'title' => __('Friend Link Template Unit Matching Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#ac354b'
- ),
- array(
- 'id' => 'friend_link_shadow_color',
- 'type' => 'color',
- 'title' => __('Friend Link Template Unit Border Shadow Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#e8e8e8'
- ),
- array(
- 'id' => 'friend_link_sorting_mode',
- 'type' => 'select',
- 'title' => __('Friend Link Sorting Mode','sakurairo_csf'),
- 'desc' => __('Select the friend link sorting mode, "Name" is used by Default.','sakurairo_csf'),
- 'options' => array(
- 'name' => __('Name','sakurairo_csf'),
- 'rating' => __('Rating','sakurairo_csf'),
- 'updated' => __('Updated','sakurairo_csf'),
- 'rand' => __('Rand','sakurairo_csf'),
- ),
- 'default' => 'name'
- ),
- array(
- 'id' => 'friend_link_order',
- 'type' => 'select',
- 'title' => __('Ascending OR Descending','sakurairo_csf'),
- 'desc' => __('Order friend link in ascending or descending.','sakurairo_csf'),
- 'dependency' => array( 'friend_link_sorting_mode', '!=', 'rand', '', 'true' ),
- 'options' => array(
- 'ASC' => __('Ascending','sakurairo_csf'),
- 'DESC' => __('Descending','sakurairo_csf'),
- ),
- 'default' => 'ASC'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Login Template Settings','sakurairo_csf'),
- ),
- array(
- 'id' => 'ex_register_open',
- 'type' => 'switcher',
- 'title' => __('Login Template Registration Function','sakurairo_csf'),
- 'label' => __('Login template will allow registration when enabled','sakurairo_csf'),
- 'default' => false
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'page',
- 'title' => __('Comment-related Options','sakurairo_csf'),
- 'icon' => 'fa fa-comments-o',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Pages/#%E8%AF%84%E8%AE%BA%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Comment Area Style','sakurairo_csf'),
- ),
- array(
- 'id' => 'comment_area',
- 'type' => 'radio',
- 'title' => __('Page Comment Area Display','sakurairo_csf'),
- 'desc' => __('You can choose to expand or shirink the content of the comment area','sakurairo_csf'),
- 'options' => array(
- 'unfold' => __('Expand','sakurairo_csf'),
- 'fold' => __('Shrink','sakurairo_csf'),
- ),
- 'default' => 'unfold'
- ),
- array(
- 'id' => 'comment_area_matching_color',
- 'type' => 'color',
- 'title' => __('Page Comment Area Matching Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#6667ab'
- ),
- array(
- 'id' => 'comment_area_shadow_color',
- 'type' => 'color',
- 'title' => __('Page Comment Area Shadow Color','sakurairo_csf'),
- 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
- 'default' => '#e8e8e8'
- ),
- array(
- 'id' => 'comment_area_image',
- 'type' => 'upload',
- 'title' => __('Page Comment Area Bottom Right Background Image','sakurairo_csf'),
- 'desc' => __('If this option is blank, there will be no image, no best recommendation here','sakurairo_csf'),
- 'library' => 'image',
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Comment Area Function','sakurairo_csf'),
- ),
- array(
- 'id' => 'smilies_list',
- 'type' => 'button_set',
- 'title' => __('Comment Area Emoticon','sakurairo_csf'),
- 'desc' => __('Select the emoticons to be displayed in the comment area input box. Uncheck all to turn off the comment input box emoticon function.','sakurairo_csf'),
- 'multiple' => true,
- 'options' => array(
- 'bilibili' => __('BiliBili Emoticon Pack','sakurairo_csf'),
- 'tieba' => __('Baidu Tieba Emoticon Pack','sakurairo_csf'),
- 'yanwenzi' => __('Emoji','sakurairo_csf'),
- 'custom' => __('Customized Emoticon Pack','sakurairo_csf'),
- ),
- 'default' => array( 'bilibili', 'tieba', 'yanwenzi' )
- ),
- array(
- 'id' => 'smilies_name',
- 'type' => 'text',
- 'title' => __('Customized Emoticon Column Name','sakurairo_csf'),
- 'desc' => __('It is recommended to enter less than 4 Chinese characters in length to avoid causing compatibility issues on mobile terminals.','sakurairo_csf'),
- 'dependency' => array( 'smilies_list', 'any', 'custom', '', 'true' ),
- 'default' => 'custom'
- ),
-
- array(
- 'id' => 'smilies_dir',
- 'type' => 'text',
- 'title' => __('Path To Custom Expression','sakurairo_csf'),
- 'desc' => __('Click <a href="./admin.php?update_custom_smilies=true" target="_blank">here</a> updating emoticon list. Specific usage reference: <a href="https://docs.fuukei.org/Sakurairo/Pages/#%E8%AF%84%E8%AE%BA%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE" target="_blank">Comment related settings</a>','sakurairo_csf'),
- 'dependency' => array( 'smilies_list', 'any', 'custom', '', 'true' ),
- ),
- array(
- 'id' => 'smilies_proxy',
- 'type' => 'text',
- 'title' => __('Custom Emoticon Proxy Address','sakurairo_csf'),
- 'desc' => __('Fill in the CDN address of the emoticon image. If left blank, the CDN proxy function will not be enabled.','sakurairo_csf'),
- 'dependency' => array(
- array('smilies_list', 'any', 'custom', '', 'true' ),
- array('smilies_dir', '!=', '', '', 'true'),
- ),
- ),
- array(
- 'id' => 'comment_useragent',
- 'type' => 'switcher',
- 'title' => __('Page Comment Area UA Info','sakurairo_csf'),
- 'label' => __('When enabled, the page comment area will display the user’s browser, operating system information','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'comment_location',
- 'type' => 'switcher',
- 'title' => __('Page Comment Area Location Information','sakurairo_csf'),
- 'label' => __('When enabled, the page comment area will show the user’s location information','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'comment_private_message',
- 'type' => 'switcher',
- 'title' => __('Private Comment Function','sakurairo_csf'),
- 'label' => __('When enabled, users are allowed to set their comments to be invisible to others','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'not_robot',
- 'type' => 'switcher',
- 'title' => __('Page Comment Area Bot Verification','sakurairo_csf'),
- 'label' => __('After turning on user comments need to be verified before posting','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'qq_avatar_link',
- 'type' => 'select',
- 'title' => __('QQ Avatar Link Encryption','sakurairo_csf'),
- 'options' => array(
- 'off' => __('Off','sakurairo_csf'),
- 'type_1' => __('Redirect (low security)','sakurairo_csf'),
- 'type_2' => __('Get avatar data in the backend (medium security)','sakurairo_csf'),
- 'type_3' => __('Parse avatar interface in the backend (high security, slow)','sakurairo_csf'),
- ),
- 'default' => 'off'
- ),
- array(
- 'id' => 'img_upload_api',
- 'type' => 'select',
- 'title' => __('Page Comment Area Upload Image Interface','sakurairo_csf'),
- 'options' => array(
- 'off' => __('Off','sakurairo_csf'),
- 'imgur' => 'Imgur (https://imgur.com)',
- 'smms' => 'SM.MS (https://sm.ms)',
- 'chevereto' => 'Chevereto (https://chevereto.com)',
- 'lsky' => 'Lsky Pro (https://www.lsky.pro)',
- ),
- 'default' => 'off'
- ),
- array(
- 'id' => 'imgur_client_id',
- 'type' => 'text',
- 'title' => __('Imgur Client ID','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'imgur', '', 'true' ),
- 'desc' => __('Fill in Client ID here, to register please visit https://api.imgur.com/oauth2/addclient','sakurairo_csf'),
- ),
- array(
- 'id' => 'imgur_upload_image_proxy',
- 'type' => 'text',
- 'title' => __('Imgur Upload Proxy','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'imgur', '', 'true' ),
- 'desc' => __('The proxy used by the backend when uploading images to Imgur. You can refer to the tutorial: https://2heng.xin/2018/06/06/javascript-upload-images-with-imgur-api/','sakurairo_csf'),
- 'default' => 'https://api.imgur.com/3/image/'
- ),
- array(
- 'id' => 'smms_client_id',
- 'type' => 'text',
- 'title' => __('SM.MS Secret Token','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'smms', '', 'true' ),
- 'desc' => __('Fill in your Key here, to get it please visit https://sm.ms/home/apitoken','sakurairo_csf'),
- ),
- array(
- 'id' => 'chevereto_api_key',
- 'type' => 'text',
- 'title' => __('Chevereto API v1 Key','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'chevereto', '', 'true' ),
- 'desc' => __('Fill in the Key here, to get please visit your Chevereto home page address/dashboard/settings/api','sakurairo_csf'),
- ),
- array(
- 'id' => 'cheverto_url',
- 'type' => 'text',
- 'title' => __('Chevereto Address','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'chevereto', '', 'true' ),
- 'desc' => __('Your Chevereto home page address. Please note that there is no "/" at the end, e.g. https://your.cherverto.com','sakurairo_csf'),
- ),
- array(
- 'id' => 'lsky_api_key',
- 'type' => 'text',
- 'title' => __('Lsky Pro v1 Token','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'lsky', '', 'true' ),
- 'desc' => __('Fill in the Token here, Please note that there is no "Bearer " at first, to get please visit your Lsky Pro home page address/api','sakurairo_csf'),
- ),
- array(
- 'id' => 'lsky_url',
- 'type' => 'text',
- 'title' => __('Lsky Pro Address','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '==', 'lsky', '', 'true' ),
- 'desc' => __('Your Lsky Pro home page address. Please note that there is no "/" at the end, e.g. https://your.lskypro.com','sakurairo_csf'),
- ),
-
- array(
- 'id' => 'comment_image_proxy',
- 'type' => 'text',
- 'title' => __('Comment Image Proxy','sakurairo_csf'),
- 'desc' => __('Proxy for the image displayed on the frontend','sakurairo_csf'),
- 'dependency' => array( 'img_upload_api', '!=', 'off', '', 'true' ),
- 'default' => 'https://images.weserv.nl/?url='
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Comment Email Notification','sakurairo_csf'),
- ),
- array(
- 'id' => 'mail_img',
- 'type' => 'upload',
- 'title' => __('Mail Template Featured Image','sakurairo_csf'),
- 'desc' => __('Set the background image of your reply email','sakurairo_csf'),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/mail_head.webp'
- ),
- array(
- 'id' => 'mail_user_name',
- 'type' => 'text',
- 'title' => __('Mail Template Sending Address Prefix','sakurairo_csf'),
- 'desc' => __('Used to send system mail. The sender address will be displayed in the user\'s mailbox, don\'t use Non-English Characters. The default system mail address is bibi@your domain','sakurairo_csf'),
- 'default' => 'bibi'
- ),
- array(
- 'id' => 'mail_notify',
- 'type' => 'switcher',
- 'title' => __('User Mail Reply Notification','sakurairo_csf'),
- 'label' => __('By default WordPress will use email notifications to notify users when their comments receive a reply. After turning it on users are allowed to set whether to use email notifications when their comments receive a reply','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'admin_notify',
- 'type' => 'switcher',
- 'title' => __('Admin Email Reply Notification','sakurairo_csf'),
- 'label' => __('Use email notifications when admin comments receive a reply after turning it on','sakurairo_csf'),
- 'default' => false
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'id' => 'others',
- 'title' => __('Other Options','sakurairo_csf'),
- 'icon' => 'fa fa-coffee',
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'others',
- 'title' => __('Login Screen and Dashboard Related Options','sakurairo_csf'),
- 'icon' => 'fa fa-sign-in',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Others/#%E7%99%BB%E5%BD%95%E7%95%8C%E9%9D%A2%E5%92%8C%E4%BB%AA%E8%A1%A8%E7%9B%98%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Login Screen','sakurairo_csf'),
- ),
- array(
- 'id' => 'custom_login_switch',
- 'type' => 'switcher',
- 'title' => __('Custom Login Screen','sakurairo_csf'),
- 'label' => __('Default on, custom login screen will replace the default login screen','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'login_background',
- 'type' => 'upload',
- 'title' => __('Login Screen Background Image','sakurairo_csf'),
- 'desc' => __('Set your login screen background image, leave this option blank to show the default','sakurairo_csf'),
- 'dependency' => array( 'custom_login_switch', '==', 'true', '', 'true' ),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/login_background.webp'
- ),
- array(
- 'id' => 'login_blur',
- 'type' => 'switcher',
- 'title' => __('Login Screen Background Blur','sakurairo_csf'),
- 'label' => __('Login screen background image will be blurred when enabled','sakurairo_csf'),
- 'dependency' => array( 'custom_login_switch', '==', 'true', '', 'true' ),
- 'default' => false
- ),
- array(
- 'id' => 'login_logo_img',
- 'type' => 'upload',
- 'title' => __('Login Screen Logo','sakurairo_csf'),
- 'desc' => __('Set your login screen Logo','sakurairo_csf'),
- 'dependency' => array( 'custom_login_switch', '==', 'true', '', 'true' ),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/login_logo.webp'
- ),
- array(
- 'id' => 'login_urlskip',
- 'type' => 'switcher',
- 'title' => __('Jump after login','sakurairo_csf'),
- 'label' => __('Jump to backend for admins and home for users after turning on.','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'login_language_opt',
- 'type' => 'switcher',
- 'title' => __('Login Screen Language Option','sakurairo_csf'),
- 'label' => __('Login screen language option will be display when enabled','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Dashboard','sakurairo_csf'),
- ),
- array(
- 'id' => 'admin_background',
- 'type' => 'upload',
- 'title' => __('Dashboard Background Image','sakurairo_csf'),
- 'desc' => __('Set your dashboard background image, leave this option blank to show white background','sakurairo_csf'),
- 'library' => 'image',
- 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/admin_background.webp'
- ),
- array(
- 'id' => 'admin_left_style',
- 'type' => 'image_select',
- 'title' => __('Dashboard Options Menu Style','sakurairo_csf'),
- 'options' => array(
- 'v1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/admin_left_style_v1.webp',
- 'v2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/admin_left_style_v2.webp',
- ),
- 'default' => 'v1'
- ),
- array(
- 'id' => 'admin_first_class_color',
- 'type' => 'color',
- 'title' => __('Dashboard Primary Menu Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#272151'
- ),
- array(
- 'id' => 'admin_second_class_color',
- 'type' => 'color',
- 'title' => __('Dashboard Secondary Menu Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#36307f'
- ),
- array(
- 'id' => 'admin_emphasize_color',
- 'type' => 'color',
- 'title' => __('Dashboard Emphasis Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#7b2a52'
- ),
- array(
- 'id' => 'admin_button_color',
- 'type' => 'color',
- 'title' => __('Dashboard Button Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#7a003d'
- ),
- array(
- 'id' => 'admin_text_color',
- 'type' => 'color',
- 'title' => __('Dashboard Text Color','sakurairo_csf'),
- 'desc' => __('Customize the colors','sakurairo_csf'),
- 'default' => '#FFFFFF'
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'others',
- 'title' => __('ChatGPT Options','sakurairo_csf'),
- 'icon' => 'fa fa-lightbulb',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Others/#ChatGPT%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'composer_load',
- 'type' => 'switcher',
- 'title' => __('ChatGPT Function','sakurairo_csf'),
- 'label' => __('After turning on ChatGPT Function will be available','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'chatgpt_base_url',
- 'type' => 'text',
- 'title' => __('ChatGPT Base URL','sakurairo_csf'),
- 'desc' => __('Fill in the ChatGPT Base URL, The default is http://sxy.gay/','sakurairo_csf'),
- 'dependency' => array( 'composer_load', '==', 'true', '', 'true' ),
- 'default' => 'http://sxy.gay/'
- ),
- array(
- 'id' => 'chatgpt_access_token',
- 'type' => 'text',
- 'title' => __('ChatGPT API keys','sakurairo_csf'),
- 'desc' => __('Fill in Your ChatGPT API keys, You can go to <a href="https://platform.openai.com/account/api-keys">OpenAI Website</a> to get your API Keys','sakurairo_csf'),
- 'dependency' => array( 'composer_load', '==', 'true', '', 'true' ),
- ),
- array(
- 'id' => 'chatgpt_article_summarize',
- 'type' => 'switcher',
- 'title' => __('ChatGPT Article Summarize','sakurairo_csf'),
- 'label' => __('After turning on ChatGPT will automatically generate article abstracts','sakurairo_csf'),
- 'dependency' => array( 'composer_load', '==', 'true', '', 'true' ),
- 'default' => false
- ),
- array(
- 'type' => 'content',
- 'content'=> __('Each update of your post will trigger a request to generate a summary. Due to current API limitations, if your article exceeds 4097 Token, the system will only send the unexceeded portion to generate a summary','sakurairo_csf'),
- 'dependency' => array(
- array( 'composer_load', '==', 'true'),
- array( 'chatgpt_article_summarize', '==', 'true', '', 'true' ),
- ),
- ),
- array(
- 'id' => 'chatgpt_exclude_ids',
- 'type' => 'text',
- 'title' => __('Article IDs that do not Require ChatGPT Summarize','sakurairo_csf'),
- 'desc' => __('Enter the article IDs that do not need to generate ChatGPT Summarize, and split multiple article IDs with ","','sakurairo_csf'),
- 'dependency' => array(
- array( 'composer_load', '==', 'true'),
- array( 'chatgpt_article_summarize', '==', 'true', '', 'true' ),
- ),
- 'default' => ''
- ),
- array(
- 'id' => 'chatgpt_init_prompt',
- 'type' => 'textarea',
- 'title' => __('ChatGPT Article Summarize Init Prompt','sakurairo_csf'),
- 'dependency' => array(
- array( 'composer_load', '==', 'true'),
- array( 'chatgpt_article_summarize', '==', 'true', '', 'true' ),
- ),
- 'desc' => __('Fill in the Init Prompt, Please make changes if you know how to configure it correctly. Init Prompt will be passed to ChatGPT as "system" role','sakurairo_csf'),
- 'default' => '
- "You are a excerpt generator. " .
- "You can summarize articles given their title and full text. " .
- "You should use the same language as the article for your excerpt. " .
- "You do not need to write in third person."'
- ),
- array(
- 'id' => 'chatgpt_ask_prompt',
- 'type' => 'text',
- 'title' => __('ChatGPT Article Summarize Ask Prompt','sakurairo_csf'),
- 'dependency' => array(
- array( 'composer_load', '==', 'true'),
- array( 'chatgpt_article_summarize', '==', 'true', '', 'true' ),
- ),
- 'desc' => __('Fill in the Ask Prompt, Use preset value when option is empty, Please make changes if you know how to configure it correctly','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection( $prefix, array(
- 'parent' => 'others',
- 'title' => __('Low Use Options','sakurairo_csf'),
- 'icon' => 'fa fa-low-vision',
- 'fields' => array(
- array(
- 'type' => 'submessage',
- 'style' => 'info',
- 'content' => __('You can click <a href="https://docs.fuukei.org/Sakurairo/Others/#%E4%BD%8E%E4%BD%BF%E7%94%A8%E8%AE%BE%E7%BD%AE">here</a> to learn how to set the options on this page','sakurairo_csf'),
- ),
- array(
- 'id' => 'statistics_api',
- 'type' => 'radio',
- 'title' => __('Statistics API','sakurairo_csf'),
- 'desc' => __('You can choose WP-Statistics plugin statistics or theme built-in statistics to display','sakurairo_csf'),
- 'options' => array(
- 'theme_build_in' => __('Theme Built in Statistics','sakurairo_csf'),
- 'wp_statistics' => __('WP-Statistics Plugin Statistics','sakurairo_csf'),
- ),
- 'default' => 'theme_build_in'
- ),
- array(
- 'id' => 'statistics_format',
- 'type' => 'select',
- 'title' => __('Statistics display format','sakurairo_csf'),
- 'desc' => __('You can choose from four different data display formats','sakurairo_csf'),
- 'options' => array(
- 'type_1' => __('23333 Visits','sakurairo_csf'),
- 'type_2' => __('23,333 Visits','sakurairo_csf'),
- 'type_3' => __('23 333 Visits','sakurairo_csf'),
- 'type_4' => __('23K Visits','sakurairo_csf'),
- ),
- 'default' => 'type_1'
- ),
- array(
- 'id' => 'live_search',
- 'type' => 'switcher',
- 'title' => __('Live Search','sakurairo_csf'),
- 'label' => __('After turning on the live search in the frontend, call Rest API to update the cache once an hour. You can set the cache time manually in api.php','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'live_search_comment',
- 'type' => 'switcher',
- 'title' => __('Live Search Comment Support','sakurairo_csf'),
- 'dependency' => array( 'live_search', '==', 'true', '', 'true' ),
- 'label' => __('Enable to search for comments in live search (not recommended if site has too many comments)','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'google_analytics_id',
- 'type' => 'text',
- 'title' => __('Google Analytics Id','sakurairo_csf'),
- 'label' => __('If you already have a plugin to handle it, please keep here empty.','sakurairo_csf'),
- ),
- array(
- 'id' => 'site_custom_style',
- 'type' => 'textarea',
- 'title' => __('Custom CSS Styles','sakurairo_csf'),
- 'desc' => __('Fill in the CSS code without writing style tag','sakurairo_csf'),
- ),
- array(
- 'id'=>'site_header_insert',
- 'type' => 'code_editor',
- 'sanitize' => false,
- 'title' => __('Code inserted in the header','sakurairo_csf'),
- 'desc' => __('Insert HTML code right before </head>.','sakurairo_csf'),
- ),
- array(
- 'id' => 'time_zone_fix',
- 'type' => 'slider',
- 'title' => __('Timezone Fix','sakurairo_csf'),
- 'desc' => __('Slide to adjust. If the comment has a time difference problem, adjust it here, fill in an integer. Calculation method: actual time = time of display error - the integer you entered (in hours)','sakurairo_csf'),
- 'step' => '1',
- 'max' => '24',
- 'default' => '0'
- ),
- array(
- 'id' => 'gravatar_proxy',
- 'type' => 'select',
- 'title' => __('Gravatar Service Proxy','sakurairo_csf'),
- 'desc' => __('You can select multiple proxy as the Gravatar Service Proxy. By default, Tianli is used as the Gravatar Service Proxy.','sakurairo_csf'),
- 'options' => array(
- 'weavatar.com/avatar' => __('Weavatar Service','sakurairo_csf'),
- 'cravatar.cn/avatar' => __('Cravatar Service','sakurairo_csf'),
- 'sdn.geekzu.org/avatar' => __('Geekzu','sakurairo_csf'),
- 'gravatar.loli.net/avatar' => __('Loli Net','sakurairo_csf'),
- 'gravatar.com/avatar' => __('Official','sakurairo_csf'),
- 'custom_proxy_address_of_gravatar' => __('Custom Proxy Address','sakurairo_csf'),
- ),
- 'default' => 'weavatar.com/avatar'
- ),
- array(
- 'id' => 'custom_proxy_address_of_gravatar',
- 'type' => 'text',
- 'title' => __('Custom Proxy Address','sakurairo_csf'),
- 'desc' => __('Enter your Gravatar proxy address without starting with "http(s)://" and ending with "/". Example: gravatar.com/avatar.','sakurairo_csf'),
- 'dependency' => array( 'gravatar_proxy', '==', 'custom_proxy_address_of_gravatar', '', 'true' ),
- 'default' => 'gravatar.com/avatar'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Lightbox','sakurairo_csf'),
- ),
- array(
- 'id' => 'baguetteBox',
- 'type' => 'switcher',
- 'title' => __('BaguetteBox Lightbox Effect','sakurairo_csf'),
- 'label' => __('BaguetteBox will be used as the image lightbox effect when turned on','sakurairo_csf'),
- 'dependency' => array(
- array( 'fancybox', '==', 'false', '', 'true' ),
- array( 'lightgallery', '==', 'false' ),
- ),
- 'default' => false
- ),
- array(
- 'id' => 'fancybox',
- 'type' => 'switcher',
- 'title' => __('FancyBox Lightbox Effect','sakurairo_csf'),
- 'label' => __('FancyBox will be used as an image lightbox effect after turning on, additional JQ libraries will be loaded','sakurairo_csf'),
- 'dependency' => array(
- array( 'baguetteBox', '==', 'false', '', 'true' ),
- array( 'lightgallery', '==', 'false' ),
- ),
- 'default' => false
- ),
- array(
- 'id' => 'lightgallery',
- 'type' => 'switcher',
- 'title' => __('LightGallery Lightbox Effect','sakurairo_csf'),
- 'label' => __('LightGallery will be used as an image lightbox effect after turning on.','sakurairo_csf'),
- 'dependency' => array(
- array( 'fancybox', '==', 'false', '', 'true' ),
- array( 'baguetteBox', '==', 'false' ),
- ),
- 'default' => false
- ),
- array(
- 'type' => 'content',
- 'content'=>__('<strong>Attension: Please read <a href="https://github.com/sachinchoolur/lightGallery#license">License Instruction</a> before use.</strong>'
- .'<br/><strong><a href="https://www.lightgalleryjs.com/demos/thumbnails/">Demos</a></strong> | <strong><a href="https://www.lightgalleryjs.com/docs/settings/">Reference</a></strong> | <strong><a href="https://fastly.jsdelivr.net/npm/lightgallery@latest/plugins/">Plugin List</a></strong> '
- .'<br/> Please write settings in JavaScript. An example has been provided as default setting.'
- .'<br/> It should be captiable for Most User using WordPress Guttenberg Editor.'
- .'<br/>Submit new discussion on Github for assistance. https://github.com/mirai-mamori/Sakurairo/discussions','sakurairo_csf') ,
- 'dependency' => array( 'lightgallery', '==', 'true', '', 'true' ),
- ),
- array(
- 'type' => 'submessage',
- 'style' => 'warning',
- 'content'=>__('Start from Sakurairo v2.4.0, plugins names in LightGallery option follow the form cite in official document (eg. lgHash instead of "hash")','sakurairo_csf') ,
- 'dependency' => array( 'lightgallery', '==', 'true', '', 'true' ),
- ),
- array(
- 'id' => 'lightgallery_option',
- 'type' => 'code_editor',
- 'sanitize' => false,
- 'title' => __('LightGallery Lightbox Effect Options','sakurairo_csf'),
- 'dependency' => array( 'lightgallery', '==', 'true', '', 'true' ),
- 'default' => '{
- "plugins":["lgHash","lgZoom"],
- "supportLegacyBrowser":false,
- "selector":"figure > img"
- }'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Code Highlighting','sakurairo_csf'),
- ),
-
- array(
- 'type' => 'content',
- 'content' => __('<p><strong>Highlight.js:</strong> Default. Automatic language recognition. </p>'
- .' <p><strong>Prism.js:</strong> Requires a language to be specified, see <a href="https://prismjs.com/#basic-usage">basic usage</a> and <a href="https://prismjs.com/ plugins/file-highlight/">How to code highlight dynamically loaded files</a>. </p>'
- .' <p><strong>Custom:</strong> For cases where another configuration is available. </p>','sakurairo_csf'),
- ),
- array(
- 'id' => 'code_highlight_method',
- 'type' => 'select',
- 'title' => __('Code Highlight Method','sakurairo_csf'),
- 'options' => array(
- 'hljs' => 'highlight.js',
- 'prism' => 'Prism.js',
- 'custom' => __('Custom Program','sakurairo_csf'),
- ),
- "default" => "hljs"
- ),
- array(
- 'id' => 'code_highlight_prism_line_number_all',
- 'type' => 'switcher',
- 'title' => __('Prism.js: Add Line Number Display for All Code Blocks','sakurairo_csf'),
- 'dependency' => array(
- array( 'code_highlight_method', '==', 'prism', '', 'true' ),
- ),
- 'desc' => __('See the <a href="https://prismjs.com/plugins/line-numbers/">plugin description documentation</a>','sakurairo_csf'),
- ),
- array(
- 'id' => 'code_highlight_prism_autoload_path',
- 'type' => 'text',
- 'title' => __('Prism.js: Autoload Address','sakurairo_csf'),
- 'dependency' => array(
- array( 'code_highlight_method', '==', 'prism', '', 'true' ),
- ),
- 'desc' => __('Leave blank to use default values','sakurairo_csf'),
- 'default'=>'https://fastly.jsdelivr.net/npm/prismjs@1.23.0/'
- ),
- array(
- 'id' => 'code_highlight_prism_theme_light',
- 'type' => 'text',
- 'title' => __('Prism.js: Code Highlight Theme','sakurairo_csf'),
- 'desc' => __('Relative to autoload address. Leave blank to use default values','sakurairo_csf'),
- 'dependency' => array(
- array( 'code_highlight_method', '==', 'prism', '', 'true' ),
- ),
- 'default' => 'themes/prism.min.css'
- ),
-
- array(
- 'id' => 'code_highlight_prism_theme_dark',
- 'type' => 'text',
- 'title' => __('Prism.js: Code Highlight Theme (Dark Mode)','sakurairo_csf'),
- 'desc' => __('Relative to autoload address. Leave blank to use default values','sakurairo_csf'),
- 'dependency' => array(
- array( 'code_highlight_method', '==', 'prism', '', 'true' ),
- ),
- 'default' => 'themes/prism-tomorrow.min.css'
- ),
- array(
- 'type' => 'submessage',
- 'style' => 'danger',
- 'content' => __('The following Options are not recommended to be modified blindly, please use them under the guidance of others','sakurairo_csf'),
- ),
- array(
- 'id' => 'image_cdn',
- 'type' => 'text',
- 'title' => __('Image CDN','sakurairo_csf'),
- 'desc' => __('Note: fill in the format https://your CDN domain/. This means that images with original path http://your.domain/wp-content/uploads/2018/05/xx.png will be loaded from http://your CDN domain/2018/05/xx.png','sakurairo_csf'),
- 'default' => ''
- ),
- array(
- 'id' => 'classify_display',
- 'type' => 'text',
- 'title' => __('Articles Categories (Do not display)','sakurairo_csf'),
- 'desc' => __('Fill in category ID, seperate in English" , " when more than one','sakurairo_csf'),
- ),
- array(
- 'id' => 'image_category',
- 'type' => 'text',
- 'title' => __('Image Display Category','sakurairo_csf'),
- 'desc' => __('Fill in category ID, seperate in English" , " when more than one','sakurairo_csf'),
- ),
- array(
- 'id' => 'exlogin_url',
- 'type' => 'text',
- 'title' => __('Specify Login Address','sakurairo_csf'),
- 'desc' => __('Force not to use the WordPress login page address to login, fill in the new login page address, such as: http://www.xxx.com/login. Note that before filling in the new page you can test the normal opening, so as not to cause the inability to enter the background, etc.','sakurairo_csf'),
- ),
- array(
- 'id' => 'exregister_url',
- 'type' => 'text',
- 'title' => __('Specify Registration Address','sakurairo_csf'),
- 'desc' => __('This address is used as the registration entry on the login page, if you specify a login address, it is recommended to fill in','sakurairo_csf'),
- ),
- array(
- 'id' => 'cookie_version',
- 'type' => 'text',
- 'title' => __('Version Control','sakurairo_csf'),
- 'desc' => __('Used to update front-end cookies and browser cache, can use any string','sakurairo_csf'),
- ),
- )
- ) );
- Sakurairo_CSF::createSection($prefix, array(
- 'title' => __('Backup&Recovery','sakurairo_csf'),
- 'icon' => 'fa fa-shield',
- 'description' => __('Backup or Recovery your theme options','sakurairo_csf'),
- 'fields' => array(
- array(
- 'type' => 'backup',
- ),
- )
- ) );
- Sakurairo_CSF::createSection($prefix, array(
- 'title' => __('About Theme','sakurairo_csf'),
- 'icon' => 'fa fa-paperclip',
- 'fields' => array(
- array(
- 'type' => 'subheading',
- 'content' => __('Version Info','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<img src="https://s.nmxc.ltd/sakurairo_vision/@2.6/series/headlogo.webp" alt="Theme Information" />','sakurairo_csf'),
- ),
- array(
- 'type' => 'submessage',
- 'style' => 'normal',
- 'content' => sprintf(__('Theme Sakurairo Version %s | Internal Version %s | <a href="https://github.com/mirai-mamori/Sakurairo">Project Address</a>','sakurairo_csf'), IRO_VERSION, INT_VERSION),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Update Related','sakurairo_csf'),
- ),
- array(
- 'id' => 'iro_update_source',
- 'type' => 'image_select',
- 'title' => __('Theme Update Source','sakurairo_csf'),
- 'options' => array(
- 'github' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_github.webp',
- 'upyun' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_upyun.webp',
- 'official_building' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_iro.webp',
- ),
- 'desc' => __('If you are using a server set up in mainland China, please use the Upyun source or the official theme source as your theme update source','sakurairo_csf'),
- 'default' => 'github'
- ),
- array(
- 'id' => 'channel_validate_value',
- 'type' => 'text',
- 'title' => __('Theme Update Test Channel Disclaimer','sakurairo_csf'),
- 'dependency' => array(
- array( 'core_library_basepath', '==', 'true', '', 'true' ),
- array( 'shared_library_basepath', '==', 'true' ),
- array( 'iro_update_source', '==', 'official_building' ),
- ),
- 'desc' => __('Please copy the text in quotes after <strong>ensure that you have carefully understood the risks associated with participating in the test and are willing to assume all consequences at your own risk</strong> (including but not limited to possible data loss) into the options text box <strong> "I agree and am willing to bear all unexpected consequences"</strong>','sakurairo_csf'),
- ),
- array(
- 'id' => 'iro_update_channel',
- 'type' => 'radio',
- 'title' => __('Theme Update Channel','sakurairo_csf'),
- 'dependency' => array(
- array( 'channel_validate_value', '==', 'I agree and am willing to bear all unexpected consequences' ),
- array( 'core_library_basepath', '==', 'true', '', 'true' ),
- array( 'shared_library_basepath', '==', 'true' ),
- array( 'iro_update_source', '==', 'official_building' ),
- ),
- 'desc' => __('You can toggle the update channel here to participate in the testing of the new version','sakurairo_csf'),
- 'options' => array(
- 'stable' => __('Stable Channel','sakurairo_csf'),
- 'beta' => __('Beta Channel','sakurairo_csf'),
- 'preview' => __('Preview Channel','sakurairo_csf'),
- ),
- 'default' => 'stable'
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Resource Control','sakurairo_csf'),
- ),
- array(
- 'id' => 'core_library_basepath',
- 'type' => 'switcher',
- 'title' => __('Provide Critical Frontend Resource locally','sakurairo_csf'),
- 'label' => __('Enabeld by default. Critical resources are those resources whose loading performance will have a significant impact on the user experience.','sakurairo_csf'),
- 'default' => true
- ),
- array(
- 'id' => 'shared_library_basepath',
- 'type' => 'switcher',
- 'title' => __('Provide Other Frontend Resource locally','sakurairo_csf'),
- 'label' => __('Less important frontend resource in the theme\'s folder.','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'external_vendor_lib',
- 'type' => 'switcher',
- 'title' => __('Provide 3rd-party library from public CDN','sakurairo_csf'),
- 'label' => __('When disabled, 3rd-party dependencies, which have been built to bundles along with themes\'s entry script, will be loaded from the exact same origin with Critical Frontend Resource. ','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'id' => 'lib_cdn_path',
- 'type' => 'image_select',
- 'title' => __('Public CDN Basepath','sakurairo_csf'),
- 'dependency' => array( 'external_vendor_lib', '==', 'true', '', 'true' ),
- 'options' => array(
- 'https://s.nmxc.ltd/sakurairo/@' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_upyun.webp',
- 'https://fastly.jsdelivr.net/gh/mirai-mamori/Sakurairo@' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_jsd.webp',
- ),
- 'default' => 'https://s.nmxc.ltd/sakurairo/@'
- ),
- array(
- 'id' => 'vision_resource_basepath',
- 'type' => 'text',
- 'title' => __('Vision Resource Basepath','sakurairo_csf'),
- 'desc' => __('This link directory structure needs to be consistent with the <a href="https://github.com/Fuukei/Sakurairo_Vision">Sakurairo Vision</a> repositories officially provided by fuukei, otherwise some resources 404 may appear. The image source officially provided by <a href="https://www.upyun.com/">Upyun</a> is adopted by default.','sakurairo_csf'),
- 'default' => "https://s.nmxc.ltd/sakurairo_vision/@2.6/"
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Theme Sponsors','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<img src="https://news.maho.cc/sponsors.php" alt="sponsors" width="65%" height="65%" />','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Theme Contributors','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<img src="https://opencollective.com/fuukei/contributors.svg" alt="Theme Contributors" width="100%" height="100%" />','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Privacy information','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<p>The theme respects your privacy</p>
- <p>However, when you use a service provider pre-populated by the theme to provide relevant services in mainland China, the service provider may collect data about your visitors and compile statistics</p>
- <p>You can reduce the amount of information sent to third parties by localising the theme-related resources, which are pre-configured with options for you to modify</p>','sakurairo_csf'),
- ),
- array(
- 'id' => 'send_theme_version',
- 'type' => 'switcher',
- 'title' => __('Send Theme Version to Fuukei','sakurairo_csf'),
- 'label' => __('The theme will only send time and version information to Fuukei officials and the data will be cleaned regularly and used only to count version updates.','sakurairo_csf'),
- 'default' => false
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Reference Information','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<p>Fluent Design Icon Referenced by Paradox <a href="https://wwi.lanzous.com/ikyq5kgx0wb">Fluent Icon Pack</a></p>
- <p>MUH2 Design Icon Referenced by 缄默 <a href="https://www.coolapk.com/apk/com.muh2.icon">MUH2 Icon Pack</a></p>
- <p>Mashiro Style Logo References the Original Theme Author Mashiro, As Provided and Referenced by Hyacm</p>','sakurairo_csf'),
- ),
- array(
- 'type' => 'subheading',
- 'content' => __('Dependency Information','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<p>Options Framework Relies on the Codestar Open Source <a href="https://github.com/Codestar/codestar-framework">Codestar Framework</a> Project</p>
- <p>Update Function Relies on YahnisElsts Open Source <a href="https://github.com/YahnisElsts/plugin-update-checker">Plugin Update Checker</a> Project</p>
- <p>ChatGPT-related Capabilities Relies on HaoZi-Team Open Source <a href="https://github.com/HaoZi-Team/ChatGPT-PHP">ChatGPT PHP</a> Project</p>','sakurairo_csf'),
- ),
- array(
- 'type' => 'content',
- 'content' => __('<img src="https://img.shields.io/github/v/release/mirai-mamori/Sakurairo.svg?style=flat-square" alt="Theme latest version" style="border-radius: 3px;" /> <img src="https://img.shields.io/github/release-date/mirai-mamori/Sakurairo?style=flat-square" alt="Theme latest version release date" style="border-radius: 3px;" /> <img src="https://data.jsdelivr.com/v1/package/gh/mirai-mamori/Sakurairo/badge" alt="Theme CDN resource access" style="border-radius: 3px;" />','sakurairo_csf'),
- ),
- )
- ) );
- }
|