theme-options.php 140 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750
  1. <?php
  2. if( class_exists( 'Sakurairo_CSF' ) ) {
  3. $prefix = 'iro_options';
  4. if ( ! function_exists( 'iro_validate_optional_url' ) ) {
  5. function iro_validate_optional_url( $value ) {
  6. if ( !empty( $value ) ) {
  7. return csf_validate_url($value);
  8. }
  9. }
  10. }
  11. Sakurairo_CSF::createOptions( $prefix, array(
  12. 'menu_title' => __('iro-Options','sakurairo_csf'),
  13. 'menu_slug' => 'iro_options',
  14. ) );
  15. Sakurairo_CSF::createSection($prefix, array(
  16. 'title' => __('Hello!','sakurairo_csf'),
  17. 'icon' => 'fa fa-podcast',
  18. 'fields' => array(
  19. array(
  20. 'type' => 'heading',
  21. 'content' => __('News+','sakurairo_csf'),
  22. ),
  23. array(
  24. 'type' => 'content',
  25. 'content' => __('<img src="https://news.maho.cc/sakurairo.php" alt="News_Plus" width="100%" height="100%" />','sakurairo_csf'),
  26. ),
  27. )
  28. ) );
  29. Sakurairo_CSF::createSection( $prefix, array(
  30. 'id' => 'preliminary',
  31. 'title' => __('Preliminary Options','sakurairo_csf'),
  32. 'icon' => 'fa fa-sliders',
  33. 'fields' => array(
  34. array(
  35. 'type' => 'submessage',
  36. 'style' => 'info',
  37. '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'),
  38. ),
  39. array(
  40. 'id' => 'site_name',
  41. 'type' => 'text',
  42. 'title' => __('Site Name','sakurairo_csf'),
  43. 'desc' => __('For example: Sakurairo Blog','sakurairo_csf'),
  44. ),
  45. array(
  46. 'id' => 'author_name',
  47. 'type' => 'text',
  48. 'title' => __('Author Name','sakurairo_csf'),
  49. 'desc' => __('For example: Fuukei','sakurairo_csf'),
  50. ),
  51. array(
  52. 'id' => 'personal_avatar',
  53. 'type' => 'upload',
  54. 'title' => __('Personal Avatar','sakurairo_csf'),
  55. 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
  56. 'library' => 'image',
  57. ),
  58. array(
  59. 'id' => 'text_logo_options',
  60. 'type' => 'switcher',
  61. 'title' => __('Mashiro Special Effects Text','sakurairo_csf'),
  62. 'label' => __('After turned on, the personal avatar will be replaced by the text as the home page display content','sakurairo_csf'),
  63. 'default' => false
  64. ),
  65. array(
  66. 'id' => 'text_logo',
  67. 'type' => 'fieldset',
  68. 'title' => __('Mashiro Special Effects Text Options','sakurairo_csf'),
  69. 'dependency' => array( 'text_logo_options', '==', 'true' ),
  70. 'fields' => array(
  71. array(
  72. 'id' => 'text',
  73. 'type' => 'text',
  74. 'title' => __('Text','sakurairo_csf'),
  75. 'desc' => __('The text content should not be too long, and the recommended length is 16 bytes.','sakurairo_csf'),
  76. ),
  77. array(
  78. 'id' => 'font',
  79. 'type' => 'text',
  80. 'title' => __('Font','sakurairo_csf'),
  81. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  82. ),
  83. array(
  84. 'id' => 'size',
  85. 'type' => 'slider',
  86. 'title' => __('Size','sakurairo_csf'),
  87. 'desc' => __('Slide to adjust, the recommended value range is 70-90','sakurairo_csf'),
  88. 'unit' => 'px',
  89. 'min' => '40',
  90. 'max' => '140',
  91. ),
  92. array(
  93. 'id' => 'color',
  94. 'type' => 'color',
  95. 'title' => __('Color','sakurairo_csf'),
  96. 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
  97. ),
  98. ),
  99. 'default' => array(
  100. 'text' => 'ひょうりゅ',
  101. 'size' => '80',
  102. 'color' => '#FFF',
  103. ),
  104. ),
  105. array(
  106. 'id' => 'iro_logo',
  107. 'type' => 'upload',
  108. 'title' => __('Navigation Menu Logo','sakurairo_csf'),
  109. 'desc' => __('The best size is 40px, and the nav menu text logo will not be displayed after filling in','sakurairo_csf'),
  110. 'library' => 'image',
  111. ),
  112. array(
  113. 'id' => 'favicon_link',
  114. 'type' => 'text',
  115. 'title' => __('Site Icon','sakurairo_csf'),
  116. 'desc' => __('Fill in the address, which decides the icon next to the title above the browser','sakurairo_csf'),
  117. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/favicon.ico'
  118. ),
  119. array(
  120. 'id' => 'iro_meta',
  121. 'type' => 'switcher',
  122. 'title' => __('Custom Site Keywords and Descriptions','sakurairo_csf'),
  123. 'label' => __('After turning on, you can customize the site keywords and descriptions','sakurairo_csf'),
  124. 'default' => false
  125. ),
  126. array(
  127. 'id' => 'iro_meta_keywords',
  128. 'type' => 'text',
  129. 'title' => __('Site Keywords','sakurairo_csf'),
  130. 'dependency' => array( 'iro_meta', '==', 'true' ),
  131. 'desc' => __('The keywords should be separated with half width comma "," and it\'s better to set within 5 keywords','sakurairo_csf'),
  132. ),
  133. array(
  134. 'id' => 'iro_meta_description',
  135. 'type' => 'text',
  136. 'title' => __('Site Descriptions','sakurairo_csf'),
  137. 'dependency' => array( 'iro_meta', '==', 'true' ),
  138. 'desc' => __('Use concise words to describe the site, it is recommended to write within 120 words','sakurairo_csf'),
  139. ),
  140. )
  141. ) );
  142. Sakurairo_CSF::createSection( $prefix, array(
  143. 'id' => 'global',
  144. 'title' => __('Global Options','sakurairo_csf'),
  145. 'icon' => 'fa fa-globe',
  146. ) );
  147. Sakurairo_CSF::createSection( $prefix, array(
  148. 'parent' => 'global',
  149. 'title' => __('Appearance Options','sakurairo_csf'),
  150. 'icon' => 'fa fa-tree',
  151. 'fields' => array(
  152. array(
  153. 'type' => 'submessage',
  154. 'style' => 'info',
  155. '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'),
  156. ),
  157. array(
  158. 'type' => 'subheading',
  159. 'content' => __('Color Schemes','sakurairo_csf'),
  160. ),
  161. array(
  162. 'id' => 'theme_skin',
  163. 'type' => 'color',
  164. 'title' => __('Theme Color','sakurairo_csf'),
  165. 'desc' => __('Customize the colors','sakurairo_csf'),
  166. 'default' => '#505050'
  167. ),
  168. array(
  169. 'id' => 'theme_skin_matching',
  170. 'type' => 'color',
  171. 'title' => __('Matching Color','sakurairo_csf'),
  172. 'desc' => __('Customize the colors','sakurairo_csf'),
  173. 'default' => '#F9D938'
  174. ),
  175. array(
  176. 'type' => 'subheading',
  177. 'content' => __('Dark Mode','sakurairo_csf'),
  178. ),
  179. array(
  180. 'id' => 'theme_skin_dark',
  181. 'type' => 'color',
  182. 'title' => __('Dark Mode Theme Color','sakurairo_csf'),
  183. 'desc' => __('Customize the colors','sakurairo_csf'),
  184. 'default' => '#FCCD00'
  185. ),
  186. array(
  187. 'id' => 'theme_darkmode_auto',
  188. 'type' => 'switcher',
  189. 'title' => __('Automatically Switch to Dark Mode','sakurairo_csf'),
  190. 'label' => __('Default on','sakurairo_csf'),
  191. 'default' => true
  192. ),
  193. array(
  194. 'type' => 'content',
  195. 'content' => __(
  196. '<p><strong>Client local time:</strong>Dark mode will switch on automatically from 22:00 to 7:00</p>'
  197. .'<p><strong>Follow client settings:</strong>Follow client browser settings</p>'
  198. .'<p><strong>Always on:</strong>Always on, except being configured by the client</p>','sakurairo_csf'),
  199. 'dependency' => array( 'theme_darkmode_auto', '==', 'true' ),
  200. ),
  201. array(
  202. 'id' => 'theme_darkmode_strategy',
  203. 'type' => 'select',
  204. 'title' => __('Automatic Switch Strategy of Dark Mode','sakurairo_csf'),
  205. 'dependency' => array( 'theme_darkmode_auto', '==', 'true' ),
  206. 'options' => array(
  207. 'time' => __('Client local time','sakurairo_csf'),
  208. 'client' => __('Follow client settings','sakurairo_csf'),
  209. 'eien' => __('Always on','sakurairo_csf'),
  210. ),
  211. "default"=>"time"
  212. ),
  213. array(
  214. 'id' => 'theme_darkmode_img_bright',
  215. 'type' => 'slider',
  216. 'title' => __('Dark Mode Image Brightness','sakurairo_csf'),
  217. 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8','sakurairo_csf'),
  218. 'step' => '0.01',
  219. 'min' => '0.4',
  220. 'max' => '1',
  221. 'default' => '0.8'
  222. ),
  223. array(
  224. 'id' => 'theme_darkmode_widget_transparency',
  225. 'type' => 'slider',
  226. 'title' => __('Dark Mode Component Transparency','sakurairo_csf'),
  227. 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8','sakurairo_csf'),
  228. 'step' => '0.01',
  229. 'min' => '0.2',
  230. 'max' => '1',
  231. 'default' => '0.8'
  232. ),
  233. array(
  234. 'id' => 'theme_darkmode_background_transparency',
  235. 'type' => 'slider',
  236. 'title' => __('Dark mode Background Transparency','sakurairo_csf'),
  237. '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'),
  238. 'step' => '0.01',
  239. 'min' => '0.2',
  240. 'max' => '1',
  241. 'default' => '0.8'
  242. ),
  243. array(
  244. 'type' => 'subheading',
  245. 'content' => __('Other Appearance Related','sakurairo_csf'),
  246. ),
  247. array(
  248. 'id' => 'theme_commemorate_mode',
  249. 'type' => 'switcher',
  250. 'title' => __('Commemorate Mode','sakurairo_csf'),
  251. 'label' => __('After turning on, a black and white filter will be added to the global theme','sakurairo_csf'),
  252. 'default' => false
  253. ),
  254. array(
  255. 'id' => 'load_out_svg',
  256. 'type' => 'text',
  257. 'title' => __('Occupying SVG while Loading Control Units','sakurairo_csf'),
  258. 'desc' => __('Fill in the address, which is the SVG displayed when loading control units','sakurairo_csf'),
  259. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/outload.svg'
  260. ),
  261. )
  262. ) );
  263. Sakurairo_CSF::createSection( $prefix, array(
  264. 'parent' => 'global',
  265. 'title' => __('Font Options','sakurairo_csf'),
  266. 'icon' => 'fa fa-font',
  267. 'fields' => array(
  268. array(
  269. 'type' => 'submessage',
  270. 'style' => 'info',
  271. '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'),
  272. ),
  273. array(
  274. 'type' => 'subheading',
  275. 'content' => __('Global','sakurairo_csf'),
  276. ),
  277. array(
  278. 'id' => 'global_font_weight',
  279. 'type' => 'slider',
  280. 'title' => __('Non-Emphasis Text Weight','sakurairo_csf'),
  281. 'desc' => __('Slide to adjust, the recommended value range is 300-500','sakurairo_csf'),
  282. 'step' => '10',
  283. 'min' => '100',
  284. 'max' => '700',
  285. 'default' => '300'
  286. ),
  287. array(
  288. 'id' => 'global_font_size',
  289. 'type' => 'slider',
  290. 'title' => __('Text Font Size','sakurairo_csf'),
  291. 'desc' => __('Slide to adjust, the recommended value range is 15-18','sakurairo_csf'),
  292. 'step' => '1',
  293. 'unit' => 'px',
  294. 'min' => '10',
  295. 'max' => '20',
  296. 'default' => '15'
  297. ),
  298. array(
  299. 'type' => 'subheading',
  300. 'content' => __('External Fonts','sakurairo_csf'),
  301. ),
  302. array(
  303. 'id' => 'reference_exter_font',
  304. 'type' => 'switcher',
  305. 'title' => __('Reference External Fonts','sakurairo_csf'),
  306. 'label' => __('After turning on, you can use external fonts as the default font or other component fonts, but it may affect performance','sakurairo_csf'),
  307. 'default' => false
  308. ),
  309. array(
  310. 'id' => 'exter_font',
  311. 'type' => 'fieldset',
  312. 'title' => __('External Font Options','sakurairo_csf'),
  313. 'dependency' => array( 'reference_exter_font', '==', 'true' ),
  314. 'fields' => array(
  315. array(
  316. 'id' => 'font1',
  317. 'type' => 'text',
  318. 'title' => __('Font 1 Name','sakurairo_csf'),
  319. ),
  320. array(
  321. 'id' => 'link1',
  322. 'type' => 'text',
  323. 'title' => __('Font 1 Link','sakurairo_csf'),
  324. ),
  325. array(
  326. 'id' => 'font2',
  327. 'type' => 'text',
  328. 'title' => __('Font 2 Name','sakurairo_csf'),
  329. ),
  330. array(
  331. 'id' => 'link2',
  332. 'type' => 'text',
  333. 'title' => __('Font 2 Link','sakurairo_csf'),
  334. ),
  335. ),
  336. 'default' => array(
  337. 'font1' => '',
  338. 'link1' => '',
  339. 'font2' => '',
  340. 'link2' => '',
  341. ),
  342. ),
  343. array(
  344. 'id' => 'gfonts_api',
  345. 'type' => 'text',
  346. 'title' => __('Google Fonts Api Link','sakurairo_csf'),
  347. 'default' => 'fonts.geekzu.org'
  348. ),
  349. array(
  350. 'id' => 'gfonts_add_name',
  351. 'type' => 'text',
  352. 'title' => __('Google Fonts Name','sakurairo_csf'),
  353. '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'),
  354. ),
  355. )
  356. ) );
  357. Sakurairo_CSF::createSection( $prefix, array(
  358. 'parent' => 'global',
  359. 'title' => __('Navigation Menu Options','sakurairo_csf'),
  360. 'icon' => 'fa fa-map-signs',
  361. 'fields' => array(
  362. array(
  363. 'type' => 'submessage',
  364. 'style' => 'info',
  365. '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'),
  366. ),
  367. array(
  368. 'id' => 'nav_menu_style',
  369. 'type' => 'image_select',
  370. 'title' => __('Nav Menu Style','sakurairo_csf'),
  371. 'options' => array(
  372. 'sakurairo' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/nav_menu_style_iro.webp',
  373. 'sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/nav_menu_style_sakura.webp',
  374. ),
  375. 'default' => 'sakurairo'
  376. ),
  377. array(
  378. 'id' => 'nav_menu_radius',
  379. 'type' => 'slider',
  380. 'title' => __('Nav Menu Radius','sakurairo_csf'),
  381. 'dependency' => array( 'nav_menu_style', '==', 'sakurairo' ),
  382. 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
  383. 'unit' => 'px',
  384. 'max' => '50',
  385. 'default' => '15'
  386. ),
  387. array(
  388. 'id' => 'nav_menu_display',
  389. 'type' => 'radio',
  390. 'title' => __('Nav Menu Content Display Method','sakurairo_csf'),
  391. 'desc' => __('You can choose to unfold or fold the nav menu contents','sakurairo_csf'),
  392. 'options' => array(
  393. 'unfold' => __('Unfold','sakurairo_csf'),
  394. 'fold' => __('Fold','sakurairo_csf'),
  395. ),
  396. 'default' => 'unfold'
  397. ),
  398. array(
  399. 'id' => 'nav_menu_animation',
  400. 'type' => 'switcher',
  401. 'title' => __('Nav Menu Animation Effects','sakurairo_csf'),
  402. 'label' => __('It is on by default. If it is off, the nav menu content will be displayed directly without effects','sakurairo_csf'),
  403. 'default' => true
  404. ),
  405. array(
  406. 'id' => 'nav_menu_animation_time',
  407. 'type' => 'slider',
  408. 'title' => __('Nav Menu Animation Time','sakurairo_csf'),
  409. 'dependency' => array( 'nav_menu_animation', '==', 'true' ),
  410. 'desc' => __('Slide to adjust, the recommended value range is 1-2','sakurairo_csf'),
  411. 'step' => '0.01',
  412. 'unit' => 's',
  413. 'max' => '5',
  414. 'default' => '2'
  415. ),
  416. array(
  417. 'id' => 'nav_menu_font',
  418. 'type' => 'text',
  419. 'title' => __('Nav Menu Font','sakurairo_csf'),
  420. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  421. 'default' => 'Noto Serif SC'
  422. ),
  423. array(
  424. 'id' => 'nav_menu_search',
  425. 'type' => 'switcher',
  426. 'title' => __('Nav Menu Search','sakurairo_csf'),
  427. 'label' => __('It is on by default. Click to enter the search area','sakurairo_csf'),
  428. 'default' => true
  429. ),
  430. array(
  431. 'id' => 'search_area_background',
  432. 'type' => 'upload',
  433. 'title' => __('Search Area Background Image','sakurairo_csf'),
  434. 'desc' => __('Set the background image of your search area. Leave this option blank to display a white background','sakurairo_csf'),
  435. 'library' => 'image',
  436. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/iloli.gif'
  437. ),
  438. array(
  439. 'id' => 'nav_menu_user_avatar',
  440. 'type' => 'switcher',
  441. 'title' => __('Nav Menu User Avatar','sakurairo_csf'),
  442. 'label' => __('It is on by default. Click to enter the login interface','sakurairo_csf'),
  443. 'default' => true
  444. ),
  445. array(
  446. 'id' => 'unlisted_avatar',
  447. 'type' => 'upload',
  448. 'title' => __('Nav Menu Unlisted User Avatar','sakurairo_csf'),
  449. 'dependency' => array( 'nav_menu_user_avatar', '==', 'true' ),
  450. 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
  451. 'library' => 'image',
  452. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/basic/topavatar.png'
  453. ),
  454. array(
  455. 'id' => 'nav_menu_secondary_arrow',
  456. 'type' => 'switcher',
  457. 'title' => __('Secondary Menu Prompt Arrow','sakurairo_csf'),
  458. 'label' => __('After turning on, the menu prompt arrow will appear in the secondary menu of the navigation menu','sakurairo_csf'),
  459. 'dependency' => array( 'nav_menu_style', '==', 'sakura' ),
  460. 'default' => false
  461. ),
  462. array(
  463. 'id' => 'nav_menu_secondary_radius',
  464. 'type' => 'slider',
  465. 'title' => __('Secondary Menu Radius','sakurairo_csf'),
  466. 'dependency' => array( 'nav_menu_style', '==', 'sakurairo' ),
  467. 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
  468. 'unit' => 'px',
  469. 'max' => '30',
  470. 'default' => '15'
  471. ),
  472. array(
  473. 'id' => 'mashiro_logo_option',
  474. 'type' => 'switcher',
  475. 'title' => __('Mashiro Logo Style','sakurairo_csf'),
  476. 'label' => __('After turning on, the Mashiro Logo will appear and replace the navigation menu logo position','sakurairo_csf'),
  477. 'default' => false
  478. ),
  479. array(
  480. 'id' => 'mashiro_logo',
  481. 'type' => 'fieldset',
  482. 'title' => __('Nav Menu Text Logo Options','sakurairo_csf'),
  483. 'fields' => array(
  484. array(
  485. 'id' => 'text_a',
  486. 'type' => 'text',
  487. 'title' => __('Text A','sakurairo_csf'),
  488. ),
  489. array(
  490. 'id' => 'text_b',
  491. 'type' => 'text',
  492. 'title' => __('Text B','sakurairo_csf'),
  493. ),
  494. array(
  495. 'id' => 'text_c',
  496. 'type' => 'text',
  497. 'title' => __('Text C','sakurairo_csf'),
  498. ),
  499. array(
  500. 'id' => 'text_secondary',
  501. 'type' => 'text',
  502. 'title' => __('Secondary Text','sakurairo_csf'),
  503. 'dependency' => array( 'text_b', '!=', '' ),
  504. ),
  505. array(
  506. 'id' => 'font_name',
  507. 'type' => 'text',
  508. 'title' => __('Font Name','sakurairo_csf'),
  509. ),
  510. ),
  511. 'default' => array(
  512. 'text_a' => '',
  513. 'text_b' => '',
  514. 'text_c' => '',
  515. 'text_secondary' => '',
  516. 'font_name' => 'Noto Serif SC',
  517. ),
  518. ),
  519. )
  520. ) );
  521. Sakurairo_CSF::createSection( $prefix, array(
  522. 'parent' => 'global',
  523. 'title' => __('Style Menu and Frontend Background Related Options','sakurairo_csf'),
  524. 'icon' => 'fa fa-th-large',
  525. 'fields' => array(
  526. array(
  527. 'type' => 'submessage',
  528. 'style' => 'info',
  529. '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'),
  530. ),
  531. array(
  532. 'type' => 'subheading',
  533. 'content' => __('Style Menu','sakurairo_csf'),
  534. ),
  535. array(
  536. 'id' => 'style_menu_display',
  537. 'type' => 'image_select',
  538. 'title' => __('Style Menu Display','sakurairo_csf'),
  539. 'desc' => __('You can choose to display the style menu simply or in full. The full display will show the font toggle function and text hints','sakurairo_csf'),
  540. 'options' => array(
  541. 'full' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/style_menu_full.webp',
  542. 'mini' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/style_menu_mini.webp',
  543. ),
  544. 'default' => 'full'
  545. ),
  546. array(
  547. 'id' => 'style_menu_radius',
  548. 'type' => 'slider',
  549. 'title' => __('Style Menu Button Radius','sakurairo_csf'),
  550. 'desc' => __('Slide to adjust, the recommended value is 10','sakurairo_csf'),
  551. 'unit' => 'px',
  552. 'max' => '50',
  553. 'default' => '10'
  554. ),
  555. array(
  556. 'id' => 'style_menu_selection_radius',
  557. 'type' => 'slider',
  558. 'title' => __('Style Menu Options Interface Radius','sakurairo_csf'),
  559. 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
  560. 'unit' => 'px',
  561. 'max' => '30',
  562. 'default' => '15'
  563. ),
  564. array(
  565. 'id' => 'style_menu_reception_text',
  566. 'type' => 'text',
  567. 'title' => __('Frontend Background Area Title','sakurairo_csf'),
  568. 'dependency' => array( 'style_menu_display', '==', 'full' ),
  569. 'desc' => __('Default is "Style", you can change it to anything else, but of course it CANNOT be used as an ad! Not allowed!!!' ,'sakurairo_csf'),
  570. 'default' => 'Style'
  571. ),
  572. array(
  573. 'id' => 'style_menu_font_area_text',
  574. 'type' => 'text',
  575. 'title' => __('Font Area Title','sakurairo_csf'),
  576. 'dependency' => array( 'style_menu_display', '==', 'full' ),
  577. 'desc' => __('Default is "Fonts", you can change it to anything else, but of course it CANNOT be used as an ad! Not allowed!!!' ,'sakurairo_csf'),
  578. 'default' => 'Fonts'
  579. ),
  580. array(
  581. 'id' => 'style_menu_font',
  582. 'type' => 'text',
  583. 'title' => __('Style Menu Font','sakurairo_csf'),
  584. 'dependency' => array( 'style_menu_display', '==', 'full' ),
  585. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  586. 'default' => 'Noto Serif SC'
  587. ),
  588. array(
  589. 'type' => 'subheading',
  590. 'content' => __('Frontend Background','sakurairo_csf'),
  591. ),
  592. array(
  593. 'id' => 'reception_background_size',
  594. 'type' => 'select',
  595. 'options' => array(
  596. 'cover' => __('Cover','sakurairo_csf'),
  597. 'contain' => __('Contain','sakurairo_csf'),
  598. 'auto' => __('Auto','sakurairo_csf'),
  599. ),
  600. 'title' => __('Frontend Background Scaling Method','sakurairo_csf'),
  601. 'desc' => __('You can choose two ways to scale the frontend background, the default is auto-scaling','sakurairo_csf'),
  602. 'default' => 'auto'
  603. ),
  604. array(
  605. 'id' => 'reception_background_blur',
  606. 'type' => 'switcher',
  607. 'title' => __('Background Transparency Blur','sakurairo_csf'),
  608. 'label' => __('After opening Background Transparency Blur','sakurairo_csf'),
  609. 'default' => false
  610. ),
  611. array(
  612. 'id' => 'reception_background',
  613. 'type' => 'tabbed',
  614. 'title' => __('Frontend Background Options','sakurairo_csf'),
  615. 'tabs' => array(
  616. array(
  617. 'title' => __('Default','sakurairo_csf'),
  618. 'icon' => 'fa fa-television',
  619. 'fields' => array(
  620. array(
  621. 'id' => 'img1',
  622. 'type' => 'upload',
  623. 'title' => __('Image','sakurairo_csf'),
  624. ),
  625. )
  626. ),
  627. array(
  628. 'title' => __('Heart Shaped','sakurairo_csf'),
  629. 'icon' => 'fa fa-heart-o',
  630. 'fields' => array(
  631. array(
  632. 'id' => 'heart_shaped',
  633. 'type' => 'switcher',
  634. 'title' => __('Switch','sakurairo_csf'),
  635. ),
  636. array(
  637. 'id' => 'img2',
  638. 'type' => 'upload',
  639. 'title' => __('Image','sakurairo_csf'),
  640. ),
  641. )
  642. ),
  643. array(
  644. 'title' => __('Star Shaped','sakurairo_csf'),
  645. 'icon' => 'fa fa-star-o',
  646. 'fields' => array(
  647. array(
  648. 'id' => 'star_shaped',
  649. 'type' => 'switcher',
  650. 'title' => __('Switch','sakurairo_csf'),
  651. ),
  652. array(
  653. 'id' => 'img3',
  654. 'type' => 'upload',
  655. 'title' => __('Image','sakurairo_csf'),
  656. ),
  657. )
  658. ),
  659. array(
  660. 'title' => __('Square Shaped','sakurairo_csf'),
  661. 'icon' => 'fa fa-delicious',
  662. 'fields' => array(
  663. array(
  664. 'id' => 'square_shaped',
  665. 'type' => 'switcher',
  666. 'title' => __('Switch','sakurairo_csf'),
  667. ),
  668. array(
  669. 'id' => 'img4',
  670. 'type' => 'upload',
  671. 'title' => __('Image','sakurairo_csf'),
  672. ),
  673. )
  674. ),
  675. array(
  676. 'title' => __('Lemon Shaped','sakurairo_csf'),
  677. 'icon' => 'fa fa-lemon-o',
  678. 'fields' => array(
  679. array(
  680. 'id' => 'lemon_shaped',
  681. 'type' => 'switcher',
  682. 'title' => __('Switch','sakurairo_csf'),
  683. ),
  684. array(
  685. 'id' => 'img5',
  686. 'type' => 'upload',
  687. 'title' => __('Image','sakurairo_csf'),
  688. ),
  689. )
  690. ),
  691. ),
  692. 'default' => array(
  693. 'heart_shaped' => true,
  694. 'star_shaped' => true,
  695. 'square_shaped' => true,
  696. 'lemon_shaped' => true,
  697. 'img2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg1.png',
  698. 'img3' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg2.png',
  699. 'img4' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg3.png',
  700. 'img5' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/background/bg4.png',
  701. )
  702. ),
  703. array(
  704. 'id' => 'reception_background_transparency',
  705. 'type' => 'slider',
  706. 'title' => __('Background Transparency in the Frontend','sakurairo_csf'),
  707. 'desc' => __('Slide to adjust, the recommended sliding value range is 0.6-0.8','sakurairo_csf'),
  708. 'step' => '0.01',
  709. 'min' => '0.2',
  710. 'max' => '1',
  711. 'default' => '0.8'
  712. ),
  713. array(
  714. 'type' => 'subheading',
  715. 'content' => __('Font Area','sakurairo_csf'),
  716. ),
  717. array(
  718. 'id' => 'global_default_font',
  719. 'type' => 'text',
  720. 'title' => __('Global Default Font/Style Menu Font A','sakurairo_csf'),
  721. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  722. ),
  723. array(
  724. 'id' => 'global_font_2',
  725. 'type' => 'text',
  726. 'title' => __('Style Menu Font B','sakurairo_csf'),
  727. 'dependency' => array( 'style_menu_display', '==', 'full' ),
  728. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  729. ),
  730. )
  731. ) );
  732. Sakurairo_CSF::createSection( $prefix, array(
  733. 'parent' => 'global',
  734. 'title' => __('Footer Options','sakurairo_csf'),
  735. 'icon' => 'fa fa-caret-square-o-down',
  736. 'fields' => array(
  737. array(
  738. 'type' => 'submessage',
  739. 'style' => 'info',
  740. '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'),
  741. ),
  742. array(
  743. 'id' => 'aplayer_server',
  744. 'type' => 'select',
  745. 'title' => __('Footer Online Music Player','sakurairo_csf'),
  746. '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'),
  747. 'options' => array(
  748. 'off' => __('Off','sakurairo_csf'),
  749. 'netease' => __('Netease Cloud Music','sakurairo_csf'),
  750. 'kugou' => __('Kugou Music(may not be available)','sakurairo_csf'),
  751. 'baidu' => __('Baidu Music(not available on servers overseas)','sakurairo_csf'),
  752. 'tencent' => __('QQ Music(may not be available)','sakurairo_csf'),
  753. ),
  754. 'default' => 'off'
  755. ),
  756. array(
  757. 'id' => 'aplayer_server_proxy',
  758. 'type' => 'text',
  759. 'title' => __('Footer Online Music Player Proxy','sakurairo_csf'),
  760. 'dependency' => array( 'aplayer_server', '!=', 'off' ),
  761. 'desc' => __('Ex. http://127.0.0.1:8080. Reference: https://curl.se/libcurl/c/CURLOPT_PROXY.html','sakurairo_csf'),
  762. 'default' => ''
  763. ),
  764. array(
  765. 'id' => 'aplayer_playlistid',
  766. 'type' => 'text',
  767. 'title' => __('Footer Online Music Player Songlist ID','sakurairo_csf'),
  768. 'dependency' => array( 'aplayer_server', '!=', 'off' ),
  769. 'desc' => __('Fill in the song ID, e.g. https://music.163.com/#/playlist?id=5380675133 SongID:5380675133','sakurairo_csf'),
  770. 'default' => '5380675133'
  771. ),
  772. array(
  773. 'id' => 'aplayer_order',
  774. 'type' => 'select',
  775. 'title' => __('Footer Online Music Player Mode','sakurairo_csf'),
  776. 'dependency' => array( 'aplayer_server', '!=', 'off' ),
  777. 'desc' => __('Select music player mode','sakurairo_csf'),
  778. 'options' => array(
  779. 'list' => __('List','sakurairo_csf'),
  780. 'random' => __('Random','sakurairo_csf'),
  781. ),
  782. 'default' => 'list'
  783. ),
  784. array(
  785. 'id' => 'aplayer_preload',
  786. 'type' => 'select',
  787. 'title' => __('Footer Online Music Player Preload','sakurairo_csf'),
  788. 'dependency' => array( 'aplayer_server', '!=', 'off' ),
  789. 'desc' => __('Whether to preload songs','sakurairo_csf'),
  790. 'options' => array(
  791. 'none' => __('Off','sakurairo_csf'),
  792. 'metadata' => __('Preload Metadata','sakurairo_csf'),
  793. 'auto' => __('Auto','sakurairo_csf'),
  794. ),
  795. 'default' => 'auto'
  796. ),
  797. array(
  798. 'id' => 'aplayer_volume',
  799. 'type' => 'slider',
  800. 'title' => __('Default Volume of Footer Online Music Player','sakurairo_csf'),
  801. 'dependency' => array( 'aplayer_server', '!=', 'off' ),
  802. 'desc' => __('Slide to adjust, the recommended sliding value range is 0.4-0.6','sakurairo_csf'),
  803. 'step' => '0.01',
  804. 'max' => '1',
  805. 'default' => '0.5'
  806. ),
  807. array(
  808. 'id' => 'aplayer_cookie',
  809. 'type' => 'textarea',
  810. 'title' => __('Netease Cloud Music Cookies','sakurairo_csf'),
  811. 'dependency' => array( 'aplayer_server', '==', 'netease' ),
  812. 'desc' => __('If you want to play VIP music on Netease Cloud Music Platform, please fill in your account cookies in this option.','sakurairo_csf'),
  813. ),
  814. array(
  815. 'id' => 'sakura_widget',
  816. 'type' => 'switcher',
  817. 'title' => __('Footer Widget Area','sakurairo_csf'),
  818. 'label' => __('After turning it on, a button will appear in the bottom of the left corner of the footer, when you click the button the footer widget area will be displayed, if you have the footer online player turned on it will be displayed together','sakurairo_csf'),
  819. 'default' => false
  820. ),
  821. array(
  822. 'id' => 'sakura_widget_background',
  823. 'type' => 'upload',
  824. 'title' => __('Footer Widget Area Background','sakurairo_csf'),
  825. 'dependency' => array( 'sakura_widget', '==', 'true' ),
  826. 'desc' => __('The best picture size is 400px × 460px','sakurairo_csf'),
  827. 'library' => 'image',
  828. ),
  829. array(
  830. 'id' => 'footer_info',
  831. 'type' => 'textarea',
  832. 'title' => __('Footer Info','sakurairo_csf'),
  833. 'desc' => __('Footer description text, supports HTML code','sakurairo_csf'),
  834. 'default' => 'Copyright &copy; by FUUKEI All Rights Reserved.'
  835. ),
  836. array(
  837. 'id' => 'footer_text_font',
  838. 'type' => 'text',
  839. 'title' => __('Footer Text Font','sakurairo_csf'),
  840. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  841. 'default' => 'Noto Serif SC'
  842. ),
  843. array(
  844. 'id' => 'footer_load_occupancy',
  845. 'type' => 'switcher',
  846. 'title' => __('Footer Load Occupancy Query','sakurairo_csf'),
  847. 'label' => __('Load occupancy information will appear at the end of the page after turning it on. Not recommended in production environment.','sakurairo_csf'),
  848. 'default' => false
  849. ),
  850. array(
  851. 'id' => 'footer_upyun',
  852. 'type' => 'switcher',
  853. 'title' => __('Footer Upyun League Logo','sakurairo_csf'),
  854. 'label' => __('Upyun Logo will appear at the end of the page after turning it on','sakurairo_csf'),
  855. 'default' => false
  856. ),
  857. array(
  858. 'id'=>'footer_addition',
  859. 'type' => 'code_editor',
  860. 'sanitize' => false,
  861. 'title' => __('Footer Addition','sakurairo_csf'),
  862. 'desc' => __('Add HTML code at the end of the page. Useful for adding customize JavaScript.','sakurairo_csf'),
  863. ),
  864. array(
  865. 'type' => 'subheading',
  866. 'content' => __('Hitokoto','sakurairo_csf'),
  867. ),
  868. array(
  869. 'id' => 'footer_yiyan',
  870. 'type' => 'switcher',
  871. 'title' => __('Footer Hitokoto','sakurairo_csf'),
  872. 'label' => __('Hitokoto will appear at the end of the page after turning it on','sakurairo_csf'),
  873. 'default' => false
  874. ),
  875. array(
  876. 'type' => 'content',
  877. 'dependency' => array( 'footer_yiyan', '==', 'true' ),
  878. 'content' => __('<h4>Hitokoto API Setup Instructions</h4>'
  879. .' <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>'
  880. .' <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>'
  881. .' <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'),
  882. ),
  883. array(
  884. 'id' => 'yiyan_api',
  885. 'type' => 'textarea',
  886. 'title' => __('Hitokoto API address','sakurairo_csf'),
  887. 'dependency' => array( 'footer_yiyan', '==', 'true' ),
  888. 'desc' => __('Fill in the address in JavaScript array format','sakurairo_csf'),
  889. 'default' => '["https://v1.hitokoto.cn/","https://api.nmxc.ltd/yiyan/"]'
  890. ),
  891. )
  892. ) );
  893. Sakurairo_CSF::createSection( $prefix, array(
  894. 'parent' => 'global',
  895. 'title' => __('Cursor Options','sakurairo_csf'),
  896. 'icon' => 'fa fa-i-cursor',
  897. 'fields' => array(
  898. array(
  899. 'type' => 'submessage',
  900. 'style' => 'info',
  901. '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'),
  902. ),
  903. array(
  904. 'id' => 'cursor_nor',
  905. 'type' => 'text',
  906. 'title' => __('Standard Cursor Style','sakurairo_csf'),
  907. 'desc' => __('Apply to global, fill in ".cur" mouse file link','sakurairo_csf'),
  908. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/normal.cur'
  909. ),
  910. array(
  911. 'id' => 'cursor_no',
  912. 'type' => 'text',
  913. 'title' => __('Selected Cursor Style','sakurairo_csf'),
  914. 'desc' => __('Apply to multiple styles, fill in ".cur" file link','sakurairo_csf'),
  915. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/No_Disponible.cur'
  916. ),
  917. array(
  918. 'id' => 'cursor_ayu',
  919. 'type' => 'text',
  920. 'title' => __('Selected Control Unit Cursor Style','sakurairo_csf'),
  921. 'desc' => __('Apply to selected control unit, fill in ".cur" file link','sakurairo_csf'),
  922. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/ayuda.cur'
  923. ),
  924. array(
  925. 'id' => 'cursor_text',
  926. 'type' => 'text',
  927. 'title' => __('Selected Text Cursor Style','sakurairo_csf'),
  928. 'desc' => __('Apply to selected text, fill in ".cur" file link','sakurairo_csf'),
  929. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/texto.cur'
  930. ),
  931. array(
  932. 'id' => 'cursor_work',
  933. 'type' => 'text',
  934. 'title' => __('Work Status Cursor Style','sakurairo_csf'),
  935. 'desc' => __('Apply to load control unit, fill in ".cur" file link','sakurairo_csf'),
  936. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/cursor/work.cur'
  937. ),
  938. )
  939. ) );
  940. Sakurairo_CSF::createSection( $prefix, array(
  941. 'parent' => 'global',
  942. 'title' => __('Additional Options','sakurairo_csf'),
  943. 'icon' => 'fa fa-gift',
  944. 'fields' => array(
  945. array(
  946. 'type' => 'submessage',
  947. 'style' => 'info',
  948. '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'),
  949. ),
  950. array(
  951. 'type' => 'subheading',
  952. 'content' => __('Effects&Animations','sakurairo_csf'),
  953. ),
  954. array(
  955. 'id' => 'preload_animation',
  956. 'type' => 'switcher',
  957. 'title' => __('Preload Animation','sakurairo_csf'),
  958. 'label' => __('Preload animation before new pages load; To enable this option, ensure your page resources can load properly.' ,'sakurairo_csf'),
  959. 'default' => false
  960. ),
  961. array(
  962. 'id' => 'preload_animation_color1',
  963. 'type' => 'color',
  964. 'title' => __('Preload Animation Color A','sakurairo_csf'),
  965. 'dependency' => array( 'preload_animation', '==', 'true' ),
  966. 'desc' => __('Customize the colors','sakurairo_csf'),
  967. 'default' => '#ffea99'
  968. ),
  969. array(
  970. 'id' => 'preload_animation_color2',
  971. 'type' => 'color',
  972. 'title' => __('Preload Animation Color B','sakurairo_csf'),
  973. 'dependency' => array( 'preload_animation', '==', 'true' ),
  974. 'desc' => __('Customize the colors','sakurairo_csf'),
  975. 'default' => '#FCCD00'
  976. ),
  977. array(
  978. 'id' => 'preload_blur',
  979. 'title' => __('Preload Animation Blur Transition Effect','sakurairo_csf'),
  980. 'dependency' => array( 'preload_animation', '==', 'true' ),
  981. 'desc' => __('Blur transition duration in milliseconds ms, off when set to 0.' ,'sakurairo_csf'),
  982. 'default' => '0',
  983. 'type' => 'slider',
  984. 'step' => '10',
  985. 'max' => '10000',
  986. ),
  987. array(
  988. 'id' => 'sakura_falling_effects',
  989. 'type' => 'select',
  990. 'title' => __('Sakura Falling Effects','sakurairo_csf'),
  991. 'options' => array(
  992. 'off' => __('Off','sakurairo_csf'),
  993. 'native' => __('Native Quantity','sakurairo_csf'),
  994. 'quarter' => __('Quarter Quantity','sakurairo_csf'),
  995. 'half' => __('Half Quantity','sakurairo_csf'),
  996. 'less' => __('Less Quantity','sakurairo_csf'),
  997. ),
  998. 'default' => 'off'
  999. ),
  1000. array(
  1001. 'id' => 'particles_effects',
  1002. 'type' => 'switcher',
  1003. 'title' => __('Particles Effects','sakurairo_csf'),
  1004. 'dependency' => array( 'sakura_falling_effects', '==', 'off' ),
  1005. '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'),
  1006. 'default' => false
  1007. ),
  1008. array(
  1009. 'id'=> 'particles_json',
  1010. 'type' => 'code_editor',
  1011. 'sanitize' => false,
  1012. 'title' => __('Particles JSON','sakurairo_csf'),
  1013. 'dependency' => array( 'particles_effects', '==', 'true' ),
  1014. 'desc' => __('You can go to the <a href="https://vincentgarreau.com/particles.js/">Project Address</a> to generate your unique Particles Effects','sakurairo_csf'),
  1015. 'default' => '
  1016. {
  1017. "particles": {
  1018. "number": {
  1019. "value": 200,
  1020. "density": {
  1021. "enable": true,
  1022. "value_area": 800
  1023. }
  1024. },
  1025. "color": {
  1026. "value": "#fff"
  1027. },
  1028. "shape": {
  1029. "type": "circle",
  1030. "stroke": {
  1031. "width": 0,
  1032. "color": "#000000"
  1033. },
  1034. "polygon": {
  1035. "nb_sides": 5
  1036. },
  1037. "image": {
  1038. "src": "img/github.svg",
  1039. "width": 100,
  1040. "height": 100
  1041. }
  1042. },
  1043. "opacity": {
  1044. "value": 0.5,
  1045. "random": true,
  1046. "anim": {
  1047. "enable": false,
  1048. "speed": 1,
  1049. "opacity_min": 0.1,
  1050. "sync": false
  1051. }
  1052. },
  1053. "size": {
  1054. "value": 10,
  1055. "random": true,
  1056. "anim": {
  1057. "enable": false,
  1058. "speed": 40,
  1059. "size_min": 0.1,
  1060. "sync": false
  1061. }
  1062. },
  1063. "line_linked": {
  1064. "enable": false,
  1065. "distance": 500,
  1066. "color": "#ffffff",
  1067. "opacity": 0.4,
  1068. "width": 2
  1069. },
  1070. "move": {
  1071. "enable": true,
  1072. "speed": 2,
  1073. "direction": "bottom",
  1074. "random": false,
  1075. "straight": false,
  1076. "out_mode": "out",
  1077. "bounce": false,
  1078. "attract": {
  1079. "enable": false,
  1080. "rotateX": 600,
  1081. "rotateY": 1200
  1082. }
  1083. }
  1084. },
  1085. "interactivity": {
  1086. "detect_on": "canvas",
  1087. "events": {
  1088. "onhover": {
  1089. "enable": true,
  1090. "mode": "bubble"
  1091. },
  1092. "onclick": {
  1093. "enable": true,
  1094. "mode": "repulse"
  1095. },
  1096. "resize": true
  1097. },
  1098. "modes": {
  1099. "grab": {
  1100. "distance": 400,
  1101. "line_linked": {
  1102. "opacity": 0.5
  1103. }
  1104. },
  1105. "bubble": {
  1106. "distance": 400,
  1107. "size": 4,
  1108. "duration": 0.3,
  1109. "opacity": 1,
  1110. "speed": 3
  1111. },
  1112. "repulse": {
  1113. "distance": 200,
  1114. "duration": 0.4
  1115. },
  1116. "push": {
  1117. "particles_nb": 4
  1118. },
  1119. "remove": {
  1120. "particles_nb": 2
  1121. }
  1122. }
  1123. },
  1124. "retina_detect": true
  1125. }'
  1126. ),
  1127. array(
  1128. 'id' => 'note_effects',
  1129. 'type' => 'switcher',
  1130. 'title' => __('Note Touch Effects','sakurairo_csf'),
  1131. 'label' => __('After turning on, there will be a note sound alert when the back to top button and Mashiro style logo touch','sakurairo_csf'),
  1132. 'default' => false
  1133. ),
  1134. array(
  1135. 'type' => 'subheading',
  1136. 'content' => __('Feature','sakurairo_csf'),
  1137. ),
  1138. array(
  1139. 'id' => 'poi_pjax',
  1140. 'type' => 'switcher',
  1141. 'title' => __('PJAX Partial Refresh','sakurairo_csf'),
  1142. 'label' => __('Enabled by default, clicking to a new page will not require reloading','sakurairo_csf'),
  1143. 'default' => true
  1144. ),
  1145. array(
  1146. 'id' => 'nprogress_on',
  1147. 'type' => 'switcher',
  1148. 'title' => __('NProgress Loading Progress Bar','sakurairo_csf'),
  1149. 'label' => __('Enabled by default, when loading page there will be a progress bar alert','sakurairo_csf'),
  1150. 'default' => true
  1151. ),
  1152. array(
  1153. 'id' => 'smoothscroll_option',
  1154. 'type' => 'switcher',
  1155. 'title' => __('Global Smooth Scroll','sakurairo_csf'),
  1156. 'label' => __('Enabled by default, page scrolling will be smoother','sakurairo_csf'),
  1157. 'default' => true
  1158. ),
  1159. array(
  1160. 'id' => 'captcha_select',
  1161. 'type' => 'select',
  1162. 'title' => __('Captcha Selection','sakurairo_csf'),
  1163. 'options' => array(
  1164. 'off' => __('Off','sakurairo_csf'),
  1165. 'iro_captcha' => __('Theme Built in Captcha','sakurairo_csf'),
  1166. 'vaptcha' => __('Vaptcha','sakurairo_csf')
  1167. ),
  1168. 'default' => 'off',
  1169. ),
  1170. array(
  1171. 'id' => 'vaptcha_vid',
  1172. 'type' => 'text',
  1173. 'title' => __('Vaptcha VID','sakurairo_csf'),
  1174. 'dependency' => array( 'captcha_select', '==', 'vaptcha' ),
  1175. 'desc' => __('Fill in your Vaptcha VID','sakurairo_csf'),
  1176. ),
  1177. array(
  1178. 'id' => 'vaptcha_key',
  1179. 'type' => 'text',
  1180. 'title' => __('Vaptcha KEY','sakurairo_csf'),
  1181. 'dependency' => array( 'captcha_select', '==', 'vaptcha' ),
  1182. 'desc' => __('Fill in your Vaptcha KEY','sakurairo_csf'),
  1183. ),
  1184. array(
  1185. 'id' => 'vaptcha_scene',
  1186. 'type' => 'select',
  1187. 'title' => __('Vaptcha Scene','sakurairo_csf'),
  1188. 'dependency' => array( 'captcha_select', '==', 'vaptcha' ),
  1189. 'options' => array(
  1190. '1' => __(1,'sakurairo_csf'),
  1191. '2' => __(2,'sakurairo_csf'),
  1192. '3' => __(3,'sakurairo_csf'),
  1193. '4' => __(4,'sakurairo_csf'),
  1194. '5' => __(5,'sakurairo_csf'),
  1195. '6' => __(6,'sakurairo_csf'),
  1196. ),
  1197. 'default' => 1,
  1198. ),
  1199. array(
  1200. 'id' => 'pagenav_style',
  1201. 'type' => 'radio',
  1202. 'title' => __('Pagination Mode','sakurairo_csf'),
  1203. 'options' => array(
  1204. 'ajax' => __('Ajax Load','sakurairo_csf'),
  1205. 'np' => __('Page Up/Down','sakurairo_csf'),
  1206. ),
  1207. 'default' => 'ajax'
  1208. ),
  1209. array(
  1210. 'id' => 'page_auto_load',
  1211. 'type' => 'select',
  1212. 'title' => __('Next Page Auto Load','sakurairo_csf'),
  1213. 'dependency' => array( 'pagenav_style', '==', 'ajax' ),
  1214. 'options' => array(
  1215. '233' => __('do not autoload','sakurairo_csf'),
  1216. '0' => __('0 Sec','sakurairo_csf'),
  1217. '1' => __('1 Sec','sakurairo_csf'),
  1218. '2' => __('2 Sec','sakurairo_csf'),
  1219. '3' => __('3 Sec','sakurairo_csf'),
  1220. '4' => __('4 Sec','sakurairo_csf'),
  1221. '5' => __('5 Sec','sakurairo_csf'),
  1222. '6' => __('6 Sec','sakurairo_csf'),
  1223. '7' => __('7 Sec','sakurairo_csf'),
  1224. '8' => __('8 Sec','sakurairo_csf'),
  1225. '9' => __('9 Sec','sakurairo_csf'),
  1226. '10' => __('10 Sec','sakurairo_csf'),
  1227. ),
  1228. 'default' => '233'
  1229. ),
  1230. array(
  1231. 'id' => 'load_nextpage_svg',
  1232. 'type' => 'text',
  1233. 'title' => __('Placeholder SVG when loading the next page','sakurairo_csf'),
  1234. 'desc' => __('Fill in the address, this is the SVG that will be displayed as a placeholder when the next page is loading','sakurairo_csf'),
  1235. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/ball.svg'
  1236. ),
  1237. )
  1238. ) );
  1239. Sakurairo_CSF::createSection( $prefix, array(
  1240. 'id' => 'homepage',
  1241. 'title' => __('HomePage Options','sakurairo_csf'),
  1242. 'icon' => 'fa fa-home',
  1243. ) );
  1244. Sakurairo_CSF::createSection( $prefix, array(
  1245. 'parent' => 'homepage',
  1246. 'title' => __('Cover Options','sakurairo_csf'),
  1247. 'icon' => 'fa fa-laptop',
  1248. 'fields' => array(
  1249. array(
  1250. 'type' => 'submessage',
  1251. 'style' => 'info',
  1252. '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'),
  1253. ),
  1254. array(
  1255. 'id' => 'cover_switch',
  1256. 'type' => 'switcher',
  1257. 'title' => __('Cover Switch','sakurairo_csf'),
  1258. 'label' => __('On by default, if off, all options below will be disabled','sakurairo_csf'),
  1259. 'default' => true
  1260. ),
  1261. array(
  1262. 'id' => 'cover_full_screen',
  1263. 'type' => 'switcher',
  1264. 'title' => __('Cover Full Screen','sakurairo_csf'),
  1265. 'label' => __('Default on','sakurairo_csf'),
  1266. 'default' => true
  1267. ),
  1268. array(
  1269. 'id' => 'cover_half_screen_curve',
  1270. 'type' => 'switcher',
  1271. 'dependency' => array( 'cover_full_screen', '==', 'false' ),
  1272. 'title' => __('Cover Arc Occlusion (Below)','sakurairo_csf'),
  1273. 'label' => __('An arc occlusion will appear below the cover when turned on','sakurairo_csf'),
  1274. 'default' => false
  1275. ),
  1276. array(
  1277. 'id' => 'cover_radius',
  1278. 'type' => 'slider',
  1279. 'title' => __('Cover Radius','sakurairo_csf'),
  1280. 'desc' => __('Slide to adjust, the recommended value range is 15-20','sakurairo_csf'),
  1281. 'unit' => 'px',
  1282. 'max' => '60',
  1283. 'default' => '15'
  1284. ),
  1285. array(
  1286. 'id' => 'cover_animation',
  1287. 'type' => 'switcher',
  1288. 'title' => __('Cover Animation','sakurairo_csf'),
  1289. 'label' => __('On by default, if off, the cover will be displayed directly','sakurairo_csf'),
  1290. 'default' => true
  1291. ),
  1292. array(
  1293. 'id' => 'cover_animation_time',
  1294. 'type' => 'slider',
  1295. 'title' => __('Cover Animation Time','sakurairo_csf'),
  1296. 'dependency' => array( 'cover_animation', '==', 'true' ),
  1297. 'desc' => __('Slide to adjust, the recommended value range is 1-2','sakurairo_csf'),
  1298. 'step' => '0.01',
  1299. 'unit' => 's',
  1300. 'max' => '5',
  1301. 'default' => '2'
  1302. ),
  1303. array(
  1304. 'id' => 'infor_bar',
  1305. 'type' => 'switcher',
  1306. 'title' => __('Cover Info Bar','sakurairo_csf'),
  1307. 'label' => __('Enabled by default, show avatar, Mashiro effects text, signature bar, shuoshuo bar, social area','sakurairo_csf'),
  1308. 'default' => true
  1309. ),
  1310. array(
  1311. 'id' => 'infor_bar_style',
  1312. 'type' => 'image_select',
  1313. 'title' => __('Cover Info Bar Style','sakurairo_csf'),
  1314. 'options' => array(
  1315. 'v1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/infor_bar_style_v1.webp',
  1316. 'v2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/infor_bar_style_v2.webp',
  1317. ),
  1318. 'default' => 'v1'
  1319. ),
  1320. array(
  1321. 'id' => 'infor_bar_bgcolor',
  1322. 'type' => 'color',
  1323. 'title' => __('Cover Info Bar Background Color','sakurairo_csf'),
  1324. 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
  1325. 'default' => 'rgba(255,255,255,0.6)'
  1326. ),
  1327. array(
  1328. 'id' => 'avatar_radius',
  1329. 'type' => 'slider',
  1330. 'title' => __('Cover Info Bar Avatar Radius','sakurairo_csf'),
  1331. 'desc' => __('Slide to adjust, the recommended value is 100','sakurairo_csf'),
  1332. 'unit' => 'px',
  1333. 'default' => '100'
  1334. ),
  1335. array(
  1336. 'id' => 'signature_radius',
  1337. 'type' => 'slider',
  1338. 'title' => __('Cover Info Bar Rounded','sakurairo_csf'),
  1339. 'desc' => __('Slide to adjust, the recommended value range 10-20','sakurairo_csf'),
  1340. 'unit' => 'px',
  1341. 'max' => '50',
  1342. 'default' => '15'
  1343. ),
  1344. array(
  1345. 'id' => 'signature_text',
  1346. 'type' => 'text',
  1347. 'title' => __('Cover Signature Field Text','sakurairo_csf'),
  1348. 'desc' => __('A self-descriptive quote','sakurairo_csf'),
  1349. 'default' => '届ける言葉を今は育ててる'
  1350. ),
  1351. array(
  1352. 'id' => 'signature_font',
  1353. 'type' => 'text',
  1354. 'title' => __('Cover Signature Field Text Font','sakurairo_csf'),
  1355. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  1356. 'default' => 'Noto Serif SC'
  1357. ),
  1358. array(
  1359. 'id' => 'signature_font_size',
  1360. 'type' => 'slider',
  1361. 'title' => __('Cover Signature Field Text Font Size','sakurairo_csf'),
  1362. 'desc' => __('Slide to adjust, the recommended value range is 15-18','sakurairo_csf'),
  1363. 'unit' => 'px',
  1364. 'min' => '5',
  1365. 'max' => '20',
  1366. 'default' => '16'
  1367. ),
  1368. array(
  1369. 'id' => 'signature_typing',
  1370. 'type' => 'switcher',
  1371. 'title' => __('Cover Signature Bar Typing Effects','sakurairo_csf'),
  1372. 'label' => __('When turned on, the signature bar text will have an additional paragraph of text and will be rendered with typing effects','sakurairo_csf'),
  1373. 'default' => false
  1374. ),
  1375. array(
  1376. 'id' => 'signature_typing_marks',
  1377. 'type' => 'switcher',
  1378. 'title' => __('Cover Signature Field Typing Effects Double Quotes','sakurairo_csf'),
  1379. 'dependency' => array( 'signature_typing', '==', 'true' ),
  1380. 'label' => __('Typing effects will be appended with double quotes when turned on','sakurairo_csf'),
  1381. 'default' => false
  1382. ),
  1383. array(
  1384. 'id' => 'signature_typing_placeholder',
  1385. 'type' => 'text',
  1386. 'title' => __('Cover Signature Field Typing Effects Placeholder','sakurairo_csf'),
  1387. 'dependency' => array( 'signature_typing', '==', 'true' ),
  1388. 'default' => '疯狂造句中......'
  1389. ),
  1390. array(
  1391. 'id' => 'signature_typing_json',
  1392. 'type' => 'code_editor',
  1393. 'sanitize' => false,
  1394. 'title' => __('Typed.js initial option','sakurairo_csf'),
  1395. 'dependency' => array( 'signature_typing', '==', 'true' ),
  1396. 'default' => '{"strings":["给时光以生命,给岁月以文明"],"typeSpeed":140,"backSpeed":50,"loop":false,"showCursor":true}'
  1397. ),
  1398. array(
  1399. 'id' => 'homepage_shuoshuo',
  1400. 'type' => 'switcher',
  1401. 'title' => __('Cover Shuoshuo Bar','sakurairo_csf'),
  1402. 'label' => __('When turned on, the Latest Shuoshuo text will be Cyclic displayed with info bar ','sakurairo_csf'),
  1403. 'default' => false
  1404. ),
  1405. array(
  1406. 'id' => 'random_graphs_options',
  1407. 'type' => 'select',
  1408. 'title' => __('Cover Random Image Options','sakurairo_csf'),
  1409. 'options' => array(
  1410. 'external_api' => __('External API','sakurairo_csf'),
  1411. 'webp_optimization' => __('Webp optimized','sakurairo_csf'),
  1412. 'local' => __('Local','sakurairo_csf'),
  1413. ),
  1414. 'default' => 'external_api'
  1415. ),
  1416. array(
  1417. 'id' => 'random_graphs_mts',
  1418. 'type' => 'switcher',
  1419. 'title' => __('Cover Random Image Multi-terminal Separation','sakurairo_csf'),
  1420. 'label' => __('Enabled by default, desktop and mobile devices will use separate random image addresses','sakurairo_csf'),
  1421. 'default' => true
  1422. ),
  1423. array(
  1424. 'id' => 'random_graphs_link',
  1425. 'type' => 'text',
  1426. 'title' => __('Webp Optimization/External API Desktop Side Random Graphics Address','sakurairo_csf'),
  1427. 'desc' => __('Fill in an URL','sakurairo_csf'),
  1428. 'default' => 'https://api.maho.cc/random-img/pc.php',
  1429. 'sanitize' => false,
  1430. 'validate' => 'csf_validate_url',
  1431. ),
  1432. array(
  1433. 'id' => 'random_graphs_link_mobile',
  1434. 'type' => 'text',
  1435. 'title' => __('External API Mobile Devices Random Image Address','sakurairo_csf'),
  1436. 'dependency' => array( 'random_graphs_mts', '==', 'true' ),
  1437. 'desc' => __('Fill in an URL','sakurairo_csf'),
  1438. 'default' => 'https://api.maho.cc/random-img/mobile.php',
  1439. 'sanitize' => false,
  1440. 'validate' => 'csf_validate_url',
  1441. ),
  1442. array(
  1443. 'id' => 'cache_cover',
  1444. 'type' => 'switcher',
  1445. 'title' => __('Cover Random Background Image Cache','sakurairo_csf'),
  1446. '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'),
  1447. 'default' => true
  1448. ),
  1449. array(
  1450. 'id' => 'site_bg_as_cover',
  1451. 'type' => 'switcher',
  1452. 'title' => __('Cover and Frontend Background Integration','sakurairo_csf'),
  1453. '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'),
  1454. 'default' => false
  1455. ),
  1456. array(
  1457. 'id' => 'random_graphs_filter',
  1458. 'type' => 'select',
  1459. 'title' => __('Cover Random Images Filter','sakurairo_csf'),
  1460. 'options' => array(
  1461. 'filter-nothing' => __('No filter','sakurairo_csf'),
  1462. 'filter-undertint' => __('Light filter','sakurairo_csf'),
  1463. 'filter-dim' => __('Dimmed filter','sakurairo_csf'),
  1464. 'filter-grid' => __('Grid filter','sakurairo_csf'),
  1465. 'filter-dot' => __('Dot filter','sakurairo_csf'),
  1466. ),
  1467. 'default' => 'filter-nothing'
  1468. ),
  1469. array(
  1470. 'id' => 'wave_effects',
  1471. 'type' => 'switcher',
  1472. 'title' => __('Cover Wave Effects','sakurairo_csf'),
  1473. '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'),
  1474. 'default' => false
  1475. ),
  1476. array(
  1477. 'id' => 'drop_down_arrow',
  1478. 'type' => 'switcher',
  1479. 'title' => __('Cover Dropdown Arrow','sakurairo_csf'),
  1480. 'label' => __('Enabled by default, show a dropdown arrow at bottom of home cover','sakurairo_csf'),
  1481. 'default' => true
  1482. ),
  1483. array(
  1484. 'id' => 'drop_down_arrow_mobile',
  1485. 'type' => 'switcher',
  1486. 'title' => __('Cover Dropdown Arrow Display on Mobile Devices','sakurairo_csf'),
  1487. 'dependency' => array( 'drop_down_arrow', '==', 'true' ),
  1488. 'label' => __('Drop down arrow will appear at the bottom of the mobile devices\' home cover after turning it on','sakurairo_csf'),
  1489. 'default' => false
  1490. ),
  1491. array(
  1492. 'id' => 'drop_down_arrow_color',
  1493. 'type' => 'color',
  1494. 'title' => __('Cover Dropdown Arrow Color','sakurairo_csf'),
  1495. 'dependency' => array( 'drop_down_arrow', '==', 'true' ),
  1496. 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
  1497. 'default' => 'rgba(255,255,255,0.8)'
  1498. ),
  1499. array(
  1500. 'id' => 'drop_down_arrow_dark_color',
  1501. 'type' => 'color',
  1502. 'title' => __('Cover Dropdown Arrow Color (Dark Mode)','sakurairo_csf'),
  1503. 'dependency' => array( 'drop_down_arrow', '==', 'true' ),
  1504. 'desc' => __('Customize the colors, dark colors are recommended','sakurairo_csf'),
  1505. 'default' => 'rgba(51,51,51,0.8)'
  1506. ),
  1507. array(
  1508. 'id' => 'cover_video',
  1509. 'type' => 'switcher',
  1510. 'title' => __('Cover Video','sakurairo_csf'),
  1511. 'label' => __('Use a video instead of the images as the cover','sakurairo_csf'),
  1512. 'default' => false
  1513. ),
  1514. array(
  1515. 'id' => 'cover_video_loop',
  1516. 'type' => 'switcher',
  1517. 'title' => __('Cover Video Loop','sakurairo_csf'),
  1518. 'dependency' => array( 'cover_video', '==', 'true' ),
  1519. 'label' => __('Video will loop automatically when enabled.','sakurairo_csf'),
  1520. 'default' => false
  1521. ),
  1522. array(
  1523. 'id' => 'cover_video_live',
  1524. 'type' => 'switcher',
  1525. 'title' => __('Cover Video Auto Resume','sakurairo_csf'),
  1526. 'dependency' => array( 'cover_video', '==', 'true' ),
  1527. 'label' => __('Cover Video will resume automatically when coming back to homepage while Pjax enabled.','sakurairo_csf'),
  1528. 'default' => false
  1529. ),
  1530. array(
  1531. 'id' => 'cover_video_link',
  1532. 'type' => 'text',
  1533. 'title' => __('Cover Video URL Base Path','sakurairo_csf'),
  1534. 'dependency' => array( 'cover_video', '==', 'true' ),
  1535. 'validate' => 'iro_validate_optional_url',
  1536. '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'),
  1537. ),
  1538. array(
  1539. 'id' => 'cover_video_title',
  1540. 'type' => 'text',
  1541. 'title' => __('Cover Video File Name','sakurairo_csf'),
  1542. 'dependency' => array( 'cover_video', '==', 'true' ),
  1543. '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'),
  1544. ),
  1545. )
  1546. ) );
  1547. Sakurairo_CSF::createSection( $prefix, array(
  1548. 'parent' => 'homepage',
  1549. 'title' => __('Cover Social Area Options','sakurairo_csf'),
  1550. 'icon' => 'fa fa-share-square-o',
  1551. 'fields' => array(
  1552. array(
  1553. 'type' => 'submessage',
  1554. 'style' => 'info',
  1555. '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'),
  1556. ),
  1557. array(
  1558. 'type' => 'subheading',
  1559. 'content' => __('Related Options','sakurairo_csf'),
  1560. ),
  1561. array(
  1562. 'id' => 'social_area',
  1563. 'type' => 'switcher',
  1564. 'title' => __('Cover Social Area','sakurairo_csf'),
  1565. 'label' => __('Enabled by default, show cover random image toggle button and social network icons','sakurairo_csf'),
  1566. 'default' => true
  1567. ),
  1568. array(
  1569. 'id' => 'social_display_icon',
  1570. 'type' => 'image_select',
  1571. 'title' => __('Social Icon','sakurairo_csf'),
  1572. 'desc' => __('Select your favorite icon pack. Icon pack references are detailed in the "About Theme" section','sakurairo_csf'),
  1573. 'options' => array(
  1574. 'display_icon/fluent_design' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_fd.gif',
  1575. 'display_icon/muh2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_h2.gif',
  1576. 'display_icon/flat_colorful' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_fc.gif',
  1577. 'display_icon/sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_sa.gif',
  1578. 'display_icon/macaronblue' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_mb.webp',
  1579. 'display_icon/macarongreen' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_mg.webp',
  1580. 'display_icon/macaronpurple' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_mp.webp',
  1581. 'display_icon/pink' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_sp.webp',
  1582. 'display_icon/orange' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_so.webp',
  1583. 'display_icon/sangosyu' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_sg.webp',
  1584. 'display_icon/sora' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_ts.webp',
  1585. 'display_icon/nae' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/display_icon_nn.webp',
  1586. ),
  1587. 'default' => 'display_icon/fluent_design'
  1588. ),
  1589. array(
  1590. 'id' => 'social_area_radius',
  1591. 'type' => 'slider',
  1592. 'title' => __('Cover Social Area Rounded Corners','sakurairo_csf'),
  1593. 'dependency' => array( 'social_area', '==', 'true' ),
  1594. 'desc' => __('Slide to adjust, the recommended value range is 10-20','sakurairo_csf'),
  1595. 'unit' => 'px',
  1596. 'max' => '30',
  1597. 'default' => '15'
  1598. ),
  1599. array(
  1600. 'id' => 'cover_random_graphs_switch',
  1601. 'type' => 'switcher',
  1602. 'title' => __('Switch Button of Random Images','sakurairo_csf'),
  1603. 'dependency' => array( 'social_area', '==', 'true' ),
  1604. 'label' => __('Enabled by default, show cover random image toggle button','sakurairo_csf'),
  1605. 'default' => true
  1606. ),
  1607. array(
  1608. 'type' => 'subheading',
  1609. 'content' => __('Social Network','sakurairo_csf'),
  1610. ),
  1611. array(
  1612. 'id' => 'wechat',
  1613. 'type' => 'upload',
  1614. 'title' => __('Wechat','sakurairo_csf'),
  1615. 'dependency' => array( 'social_area', '==', 'true' ),
  1616. 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
  1617. 'library' => 'image',
  1618. ),
  1619. array(
  1620. 'id' => 'qq',
  1621. 'type' => 'text',
  1622. 'title' => __('QQ','sakurairo_csf'),
  1623. 'dependency' => array( 'social_area', '==', 'true' ),
  1624. 'desc' => __('Please note the format of filling out the form, e.g. tencent://message/?uin=123456','sakurairo_csf'),
  1625. ),
  1626. array(
  1627. 'id' => 'bili',
  1628. 'type' => 'text',
  1629. 'title' => __('Bilibili','sakurairo_csf'),
  1630. 'dependency' => array( 'social_area', '==', 'true' ),
  1631. 'desc' => __('add URL','sakurairo_csf'),
  1632. ),
  1633. array(
  1634. 'id' => 'wangyiyun',
  1635. 'type' => 'text',
  1636. 'title' => __('NetEase Music','sakurairo_csf'),
  1637. 'dependency' => array( 'social_area', '==', 'true' ),
  1638. 'desc' => __('add URL','sakurairo_csf'),
  1639. ),
  1640. array(
  1641. 'id' => 'sina',
  1642. 'type' => 'text',
  1643. 'title' => __('Weibo','sakurairo_csf'),
  1644. 'dependency' => array( 'social_area', '==', 'true' ),
  1645. 'desc' => __('add URL','sakurairo_csf'),
  1646. ),
  1647. array(
  1648. 'id' => 'github',
  1649. 'type' => 'text',
  1650. 'title' => __('Github','sakurairo_csf'),
  1651. 'dependency' => array( 'social_area', '==', 'true' ),
  1652. 'desc' => __('add URL','sakurairo_csf'),
  1653. ),
  1654. array(
  1655. 'id' => 'telegram',
  1656. 'type' => 'text',
  1657. 'title' => __('Telegram','sakurairo_csf'),
  1658. 'dependency' => array( 'social_area', '==', 'true' ),
  1659. 'desc' => __('add URL','sakurairo_csf'),
  1660. ),
  1661. array(
  1662. 'id' => 'steam',
  1663. 'type' => 'text',
  1664. 'title' => __('Steam','sakurairo_csf'),
  1665. 'dependency' => array( 'social_area', '==', 'true' ),
  1666. 'desc' => __('add URL','sakurairo_csf'),
  1667. ),
  1668. array(
  1669. 'id' => 'zhihu',
  1670. 'type' => 'text',
  1671. 'title' => __('ZhiHu','sakurairo_csf'),
  1672. 'dependency' => array( 'social_area', '==', 'true' ),
  1673. 'desc' => __('add URL','sakurairo_csf'),
  1674. ),
  1675. array(
  1676. 'id' => 'qzone',
  1677. 'type' => 'text',
  1678. 'title' => __('QZone','sakurairo_csf'),
  1679. 'dependency' => array( 'social_area', '==', 'true' ),
  1680. 'desc' => __('add URL','sakurairo_csf'),
  1681. ),
  1682. array(
  1683. 'id' => 'lofter',
  1684. 'type' => 'text',
  1685. 'title' => __('Lofter','sakurairo_csf'),
  1686. 'dependency' => array( 'social_area', '==', 'true' ),
  1687. 'desc' => __('add URL','sakurairo_csf'),
  1688. ),
  1689. array(
  1690. 'id' => 'youku',
  1691. 'type' => 'text',
  1692. 'title' => __('Youku','sakurairo_csf'),
  1693. 'dependency' => array( 'social_area', '==', 'true' ),
  1694. 'desc' => __('add URL','sakurairo_csf'),
  1695. ),
  1696. array(
  1697. 'id' => 'linkedin',
  1698. 'type' => 'text',
  1699. 'title' => __('Linkedin','sakurairo_csf'),
  1700. 'dependency' => array( 'social_area', '==', 'true' ),
  1701. 'desc' => __('add URL','sakurairo_csf'),
  1702. ),
  1703. array(
  1704. 'id' => 'twitter',
  1705. 'type' => 'text',
  1706. 'title' => __('Twitter','sakurairo_csf'),
  1707. 'dependency' => array( 'social_area', '==', 'true' ),
  1708. 'desc' => __('add URL','sakurairo_csf'),
  1709. ),
  1710. array(
  1711. 'id' => 'facebook',
  1712. 'type' => 'text',
  1713. 'title' => __('Facebook','sakurairo_csf'),
  1714. 'dependency' => array( 'social_area', '==', 'true' ),
  1715. 'desc' => __('add URL','sakurairo_csf'),
  1716. ),
  1717. array(
  1718. 'id' => 'csdn',
  1719. 'type' => 'text',
  1720. 'title' => __('CSDN','sakurairo_csf'),
  1721. 'dependency' => array( 'social_area', '==', 'true' ),
  1722. 'desc' => __('add URL','sakurairo_csf'),
  1723. ),
  1724. array(
  1725. 'id' => 'jianshu',
  1726. 'type' => 'text',
  1727. 'title' => __('JianShu','sakurairo_csf'),
  1728. 'dependency' => array( 'social_area', '==', 'true' ),
  1729. 'desc' => __('add URL','sakurairo_csf'),
  1730. ),
  1731. array(
  1732. 'id' => 'socialdiy1',
  1733. 'type' => 'text',
  1734. 'title' => __('Customized Social Network Ⅰ','sakurairo_csf'),
  1735. 'dependency' => array( 'social_area', '==', 'true' ),
  1736. 'desc' => __('add URL','sakurairo_csf'),
  1737. ),
  1738. array(
  1739. 'id' => 'socialdiy1_title',
  1740. 'type' => 'text',
  1741. 'title' => __('Customized Social Network Ⅰ Title','sakurairo_csf'),
  1742. 'dependency' => array( 'social_area', '==', 'true' ),
  1743. "default" => "DIY1"
  1744. ),
  1745. array(
  1746. 'id' => 'socialdiyp1',
  1747. 'type' => 'upload',
  1748. 'title' => __('Customized Social Network Ⅰ icon','sakurairo_csf'),
  1749. 'dependency' => array( 'social_area', '==', 'true' ),
  1750. 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
  1751. 'library' => 'image',
  1752. ),
  1753. array(
  1754. 'id' => 'socialdiy2',
  1755. 'type' => 'text',
  1756. 'title' => __('Customized Social Network Ⅱ','sakurairo_csf'),
  1757. 'dependency' => array( 'social_area', '==', 'true' ),
  1758. 'desc' => __('add URL','sakurairo_csf'),
  1759. ),
  1760. array(
  1761. 'id' => 'socialdiy2_title',
  1762. 'type' => 'text',
  1763. 'title' => __('Customized Social Network Ⅱ Title','sakurairo_csf'),
  1764. 'dependency' => array( 'social_area', '==', 'true' ),
  1765. "default" => "DIY2"
  1766. ),
  1767. array(
  1768. 'id' => 'socialdiyp2',
  1769. 'type' => 'upload',
  1770. 'title' => __('Customized Social Network Ⅱ icon','sakurairo_csf'),
  1771. 'dependency' => array( 'social_area', '==', 'true' ),
  1772. 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'),
  1773. 'library' => 'image',
  1774. ),
  1775. array(
  1776. 'id' => 'email_name',
  1777. 'type' => 'text',
  1778. 'title' => __('Email Username','sakurairo_csf'),
  1779. 'dependency' => array( 'social_area', '==', 'true' ),
  1780. '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'),
  1781. ),
  1782. array(
  1783. 'id' => 'email_domain',
  1784. 'type' => 'text',
  1785. 'title' => __('Email Domain','sakurairo_csf'),
  1786. 'dependency' => array( 'social_area', '==', 'true' ),
  1787. 'desc' => __('name@domain.com fo domain.com','sakurairo_csf'),
  1788. ),
  1789. )
  1790. ) );
  1791. Sakurairo_CSF::createSection( $prefix, array(
  1792. 'parent' => 'homepage',
  1793. 'title' => __('Bulletin Board and Area Title Options','sakurairo_csf'),
  1794. 'icon' => 'fa fa-bullhorn',
  1795. 'fields' => array(
  1796. array(
  1797. 'type' => 'submessage',
  1798. 'style' => 'info',
  1799. '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'),
  1800. ),
  1801. array(
  1802. 'type' => 'subheading',
  1803. 'content' => __('Bulletin Board','sakurairo_csf'),
  1804. ),
  1805. array(
  1806. 'id' => 'bulletin_board',
  1807. 'type' => 'switcher',
  1808. 'title' => __('Bulletin Board','sakurairo_csf'),
  1809. 'label' => __('When enabled the bulletin board will be displayed below the front cover','sakurairo_csf'),
  1810. 'default' => false
  1811. ),
  1812. array(
  1813. 'id' => 'bulletin_board_style',
  1814. 'type' => 'radio',
  1815. 'title' => __('Bulletin Board Style','sakurairo_csf'),
  1816. 'dependency' => array( 'bulletin_board', '==', 'true' ),
  1817. 'options' => array(
  1818. 'picture' => __('Picture Background','sakurairo_csf'),
  1819. 'pure' => __('Color Background','sakurairo_csf'),
  1820. ),
  1821. 'default' => 'picture'
  1822. ),
  1823. array(
  1824. 'id' => 'bulletin_board_icon',
  1825. 'type' => 'switcher',
  1826. 'title' => __('Bulletin Board "Notice" Icon','sakurairo_csf'),
  1827. 'dependency' => array( 'bulletin_board', '==', 'true' ),
  1828. 'label' => __('The "Notice" icon will be displayed on the left side of the announcement bar','sakurairo_csf'),
  1829. 'default' => true
  1830. ),
  1831. array(
  1832. 'id' => 'bulletin_board_bg',
  1833. 'type' => 'upload',
  1834. 'title' => __('Bulletin Board Background','sakurairo_csf'),
  1835. 'dependency' => array(
  1836. array( 'bulletin_board', '==', 'true' ),
  1837. array( 'bulletin_board_style', '==', 'picture' ),
  1838. ),
  1839. 'desc' => __('Best width 820px, best height 67px','sakurairo_csf'),
  1840. 'library' => 'image',
  1841. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/announcement_bg.webp'
  1842. ),
  1843. array(
  1844. 'id' => 'bulletin_board_border_color',
  1845. 'type' => 'color',
  1846. 'title' => __('Bulletin Board Border Color','sakurairo_csf'),
  1847. 'dependency' => array(
  1848. array( 'bulletin_board', '==', 'true' ),
  1849. array( 'bulletin_board_style', '==', 'pure' ),
  1850. ),
  1851. 'desc' => __('Customize the colors, it is recommended to use a light color that corresponds with the theme color','sakurairo_csf'),
  1852. 'default' => '#E6E6E6'
  1853. ),
  1854. array(
  1855. 'id' => 'bulletin_text',
  1856. 'type' => 'text',
  1857. 'title' => __('Bulletin Board Text','sakurairo_csf'),
  1858. 'dependency' => array( 'bulletin_board', '==', 'true' ),
  1859. 'desc' => __('Fill in the announcement text, the text beyond 142 bytes will be hidden','sakurairo_csf'),
  1860. ),
  1861. array(
  1862. 'id' => 'bulletin_board_text_align',
  1863. 'type' => 'image_select',
  1864. 'title' => __('Bulletin Board Alignment','sakurairo_csf'),
  1865. 'dependency' => array( 'bulletin_board', '==', 'true' ),
  1866. 'options' => array(
  1867. 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/announce_text_left.webp',
  1868. 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/announce_text_right.webp',
  1869. 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/announce_text_center.webp',
  1870. ),
  1871. 'default' => 'left'
  1872. ),
  1873. array(
  1874. 'id' => 'bulletin_text_color',
  1875. 'type' => 'color',
  1876. 'title' => __('Bulletin Board Text Color','sakurairo_csf'),
  1877. 'dependency' => array( 'bulletin_board', '==', 'true' ),
  1878. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  1879. 'default' => '#999'
  1880. ),
  1881. array(
  1882. 'type' => 'subheading',
  1883. 'content' => __('Area Title','sakurairo_csf'),
  1884. ),
  1885. array(
  1886. 'id' => 'exhibition_area_icon',
  1887. 'type' => 'text',
  1888. 'title' => __('Display Area Icon','sakurairo_csf'),
  1889. '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'),
  1890. 'default' => 'fa-solid fa-laptop'
  1891. ),
  1892. array(
  1893. 'id' => 'exhibition_area_title',
  1894. 'type' => 'text',
  1895. 'title' => __('Display Area Title','sakurairo_csf'),
  1896. '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'),
  1897. 'default' => 'Display'
  1898. ),
  1899. array(
  1900. 'id' => 'post_area_icon',
  1901. 'type' => 'text',
  1902. 'title' => __('Post Area Icon','sakurairo_csf'),
  1903. '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'),
  1904. 'default' => 'fa-regular fa-bookmark'
  1905. ),
  1906. array(
  1907. 'id' => 'post_area_title',
  1908. 'type' => 'text',
  1909. 'title' => __('Post Area Title','sakurairo_csf'),
  1910. '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'),
  1911. 'default' => 'Article'
  1912. ),
  1913. array(
  1914. 'id' => 'area_title_font',
  1915. 'type' => 'text',
  1916. 'title' => __('Area Title Font','sakurairo_csf'),
  1917. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  1918. 'default' => 'Noto Serif SC'
  1919. ),
  1920. array(
  1921. 'id' => 'area_title_text_align',
  1922. 'type' => 'image_select',
  1923. 'title' => __('Area Title Alignment','sakurairo_csf'),
  1924. 'options' => array(
  1925. 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/area_title_text_left.webp',
  1926. 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/area_title_text_right.webp',
  1927. 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/area_title_text_center.webp',
  1928. ),
  1929. 'default' => 'left'
  1930. ),
  1931. )
  1932. ) );
  1933. Sakurairo_CSF::createSection( $prefix, array(
  1934. 'parent' => 'homepage',
  1935. 'title' => __('Display Area Options','sakurairo_csf'),
  1936. 'icon' => 'fa fa-bookmark',
  1937. 'fields' => array(
  1938. array(
  1939. 'type' => 'submessage',
  1940. 'style' => 'info',
  1941. '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'),
  1942. ),
  1943. array(
  1944. 'id' => 'exhibition_area',
  1945. 'type' => 'switcher',
  1946. 'title' => __('Display Area','sakurairo_csf'),
  1947. 'label' => __('Enabled by default, display area is above article area','sakurairo_csf'),
  1948. 'default' => true
  1949. ),
  1950. array(
  1951. 'id' => 'exhibition_area_matching_color',
  1952. 'type' => 'color',
  1953. 'title' => __('Display Area Matching Color','sakurairo_csf'),
  1954. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  1955. 'default' => '#a0daa9'
  1956. ),
  1957. array(
  1958. 'id' => 'exhibition_area_style',
  1959. 'type' => 'image_select',
  1960. 'title' => __('Display Area Style','sakurairo_csf'),
  1961. 'options' => array(
  1962. 'left_and_right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/exhibition_area_style_lr.webp',
  1963. 'bottom_to_top' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/exhibition_area_style_ud.webp',
  1964. ),
  1965. 'default' => 'left_and_right'
  1966. ),
  1967. array(
  1968. 'id' => 'exhibition_area_compat',
  1969. 'type' => 'switcher',
  1970. 'title' => __('Display Area Compatibility Mode','sakurairo_csf'),
  1971. 'dependency' => array( 'exhibition_area_style', '==', 'left_and_right' ),
  1972. 'label' => __('Enabled by default, this option avoids the problem of misaligned display areas','sakurairo_csf'),
  1973. 'default' => true
  1974. ),
  1975. array(
  1976. 'id' => 'exhibition_background_color',
  1977. 'type' => 'color',
  1978. 'title' => __('Display Area Background Color','sakurairo_csf'),
  1979. 'dependency' => array( 'exhibition_area_style', '==', 'left_and_right' ),
  1980. 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'),
  1981. 'default' => 'rgba(255,255,255,0.4)'
  1982. ),
  1983. array(
  1984. 'id' => 'exhibition_radius',
  1985. 'type' => 'slider',
  1986. 'title' => __('Display Area Rounded Corners','sakurairo_csf'),
  1987. 'dependency' => array(
  1988. array( 'exhibition_area_style', '==', 'left_and_right' ),
  1989. array( 'exhibition_area_compat', '==', 'true' ),
  1990. ),
  1991. 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'),
  1992. 'unit' => 'px',
  1993. 'default' => '15'
  1994. ),
  1995. array(
  1996. 'id' => 'exhibition',
  1997. 'type' => 'tabbed',
  1998. 'title' => __('Display Area Options','sakurairo_csf'),
  1999. 'tabs' => array(
  2000. array(
  2001. 'title' => __('First Display Area','sakurairo_csf'),
  2002. 'fields' => array(
  2003. array(
  2004. 'id' => 'img1',
  2005. 'type' => 'upload',
  2006. 'title' => __('image','sakurairo_csf'),
  2007. 'desc' => __('best width 260px, best height 160px','sakurairo_csf'),
  2008. ),
  2009. array(
  2010. 'id' => 'title1',
  2011. 'type' => 'text',
  2012. 'title' => __('title','sakurairo_csf'),
  2013. ),
  2014. array(
  2015. 'id' => 'description1',
  2016. 'type' => 'text',
  2017. 'title' => __('description','sakurairo_csf'),
  2018. ),
  2019. array(
  2020. 'id' => 'link1',
  2021. 'type' => 'text',
  2022. 'title' => __('add URL','sakurairo_csf'),
  2023. ),
  2024. )
  2025. ),
  2026. array(
  2027. 'title' => __('Second Display Area','sakurairo_csf'),
  2028. 'fields' => array(
  2029. array(
  2030. 'id' => 'img2',
  2031. 'type' => 'upload',
  2032. 'title' => __('image','sakurairo_csf'),
  2033. 'desc' => __('best width 260px, best height 160px','sakurairo_csf'),
  2034. ),
  2035. array(
  2036. 'id' => 'title2',
  2037. 'type' => 'text',
  2038. 'title' => __('title','sakurairo_csf'),
  2039. ),
  2040. array(
  2041. 'id' => 'description2',
  2042. 'type' => 'text',
  2043. 'title' => __('description','sakurairo_csf'),
  2044. ),
  2045. array(
  2046. 'id' => 'link2',
  2047. 'type' => 'text',
  2048. 'title' => __('add URL','sakurairo_csf'),
  2049. ),
  2050. )
  2051. ),
  2052. array(
  2053. 'title' => __('Third Display Area','sakurairo_csf'),
  2054. 'fields' => array(
  2055. array(
  2056. 'id' => 'img3',
  2057. 'type' => 'upload',
  2058. 'title' => __('image','sakurairo_csf'),
  2059. 'desc' => __('best width 260px, best height 160px','sakurairo_csf'),
  2060. ),
  2061. array(
  2062. 'id' => 'title3',
  2063. 'type' => 'text',
  2064. 'title' => __('title','sakurairo_csf'),
  2065. ),
  2066. array(
  2067. 'id' => 'description3',
  2068. 'type' => 'text',
  2069. 'title' => __('description','sakurairo_csf'),
  2070. ),
  2071. array(
  2072. 'id' => 'link3',
  2073. 'type' => 'text',
  2074. 'title' => __('add URL','sakurairo_csf'),
  2075. ),
  2076. )
  2077. ),
  2078. ),
  2079. 'default' => array(
  2080. 'link1' => '',
  2081. 'link2' => '',
  2082. 'link3' => '',
  2083. 'img1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/exhibition1.webp',
  2084. 'img2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/exhibition2.webp',
  2085. 'img3' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/exhibition3.webp',
  2086. 'title1' => 'アンコール',
  2087. 'title2' => 'ハルジオン',
  2088. 'title3' => 'かいぶつ',
  2089. 'description1' => 'ここは夜のない世界',
  2090. 'description2' => '過ぎてゆく時間の中',
  2091. 'description3' => '素晴らしき世界に今日も乾杯',
  2092. )
  2093. ),
  2094. )
  2095. ) );
  2096. Sakurairo_CSF::createSection( $prefix, array(
  2097. 'parent' => 'homepage',
  2098. 'title' => __('Article Area Options','sakurairo_csf'),
  2099. 'icon' => 'fa fa-book',
  2100. 'fields' => array(
  2101. array(
  2102. 'type' => 'submessage',
  2103. 'style' => 'info',
  2104. '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'),
  2105. ),
  2106. array(
  2107. 'id' => 'post_list_style',
  2108. 'type' => 'image_select',
  2109. 'title' => __('Article Area Display Style','sakurairo_csf'),
  2110. 'options' => array(
  2111. 'imageflow' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura_left.webp',
  2112. 'akinastyle' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_akina.webp',
  2113. ),
  2114. 'default' => 'imageflow'
  2115. ),
  2116. array(
  2117. 'id' => 'post_list_matching_color',
  2118. 'type' => 'color',
  2119. 'title' => __('Article Area Matching Color','sakurairo_csf'),
  2120. 'dependency' => array( 'post_list_style', '==', 'imageflow' ),
  2121. 'desc' => __('Customize the colors, This option only supports filling in hexadecimal colors, suggest the same as the matching color','sakurairo_csf'),
  2122. 'default' => '#FCCD00'
  2123. ),
  2124. array(
  2125. 'id' => 'post_border_shadow_color',
  2126. 'type' => 'color',
  2127. 'title' => __('Article Area Border Shadow Color','sakurairo_csf'),
  2128. 'dependency' => array( 'post_list_style', '==', 'imageflow' ),
  2129. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  2130. 'default' => '#e8e8e8'
  2131. ),
  2132. array(
  2133. 'id' => 'post_list_akina_type',
  2134. 'type' => 'image_select',
  2135. 'title' => __('Article Area Featured Image Display Shapes','sakurairo_csf'),
  2136. 'dependency' => array( 'post_list_style', '==', 'akinastyle' ),
  2137. 'desc' => __('You can choose a circular or a rectangular display of the featured image','sakurairo_csf'),
  2138. 'options' => array(
  2139. 'round' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_akina.webp',
  2140. 'square' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_akina2.webp',
  2141. ),
  2142. 'default' => 'round'
  2143. ),
  2144. array(
  2145. 'id' => 'post_list_image_align',
  2146. 'type' => 'image_select',
  2147. 'title' => __('Article Area Featured Image Alignment','sakurairo_csf'),
  2148. 'dependency' => array( 'post_list_style', '==', 'imageflow' ),
  2149. 'desc' => __('You can choose different directions to display the featured images','sakurairo_csf'),
  2150. 'options' => array(
  2151. 'alternate' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura1.webp',
  2152. 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura2.webp',
  2153. 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/post_list_style_sakura3.webp',
  2154. ),
  2155. 'default' => 'alternate'
  2156. ),
  2157. array(
  2158. 'id' => 'post_cover_options',
  2159. 'type' => 'radio',
  2160. 'title' => __('Article Area Featured Image Options','sakurairo_csf'),
  2161. 'options' => array(
  2162. 'type_1' => __('Cover Random Image','sakurairo_csf'),
  2163. 'type_2' => __('External API Random Image','sakurairo_csf'),
  2164. ),
  2165. 'default' => 'type_1'
  2166. ),
  2167. array(
  2168. 'id' => 'post_cover',
  2169. 'type' => 'text',
  2170. 'title' => __('Article Area Featured Image External API Random Image Address','sakurairo_csf'),
  2171. 'dependency' => array( 'post_cover_options', '==', 'type_2' ),
  2172. 'desc' => __('add URL','sakurairo_csf'),
  2173. 'sanitize' => false,
  2174. 'validate' => 'iro_validate_optional_url',
  2175. ),
  2176. array(
  2177. 'id' => 'post_title_font_size',
  2178. 'type' => 'slider',
  2179. 'title' => __('Article Area Title Font Size','sakurairo_csf'),
  2180. 'desc' => __('Slide to adjust, the recommended value range is 16-20','sakurairo_csf'),
  2181. 'dependency' => array( 'post_list_style', '==', 'imageflow' ),
  2182. 'unit' => 'px',
  2183. 'step' => '1',
  2184. 'min' => '10',
  2185. 'max' => '30',
  2186. 'default' => '18'
  2187. ),
  2188. array(
  2189. 'id' => 'post_date_font_size',
  2190. 'type' => 'slider',
  2191. 'title' => __('Article Area Time Display Area Font Size','sakurairo_csf'),
  2192. 'dependency' => array( 'post_list_style', '==', 'imageflow' ),
  2193. 'desc' => __('Slide to adjust, the recommended values range is 10-14','sakurairo_csf'),
  2194. 'unit' => 'px',
  2195. 'step' => '1',
  2196. 'min' => '6',
  2197. 'max' => '20',
  2198. 'default' => '12'
  2199. ),
  2200. array(
  2201. 'id' => 'is_author_meta_show',
  2202. 'type' => 'switcher',
  2203. 'title' => __('Article Area Author Info','sakurairo_csf'),
  2204. 'label' => __('When turned on, author information will be added to the article metadata section.' ,'sakurairo_csf'),
  2205. 'default' => false
  2206. ),
  2207. )
  2208. ) );
  2209. Sakurairo_CSF::createSection( $prefix, array(
  2210. 'id' => 'page',
  2211. 'title' => __('Page Options','sakurairo_csf'),
  2212. 'icon' => 'fa fa-file-text',
  2213. ) );
  2214. Sakurairo_CSF::createSection( $prefix, array(
  2215. 'parent' => 'page',
  2216. 'title' => __('Common Options','sakurairo_csf'),
  2217. 'icon' => 'fa fa-compass',
  2218. 'fields' => array(
  2219. array(
  2220. 'type' => 'submessage',
  2221. 'style' => 'info',
  2222. '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'),
  2223. ),
  2224. array(
  2225. 'id' => 'page_style',
  2226. 'type' => 'image_select',
  2227. 'title' => __('Page Style','sakurairo_csf'),
  2228. 'options' => array(
  2229. 'sakurairo' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/page_style_iro.webp',
  2230. 'sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/page_style_sakura.webp',
  2231. ),
  2232. 'default' => 'sakurairo'
  2233. ),
  2234. array(
  2235. 'id' => 'entry_content_style',
  2236. 'type' => 'radio',
  2237. 'title' => __('Page Layout Style','sakurairo_csf'),
  2238. 'options' => array(
  2239. 'sakurairo' => __('Default Style','sakurairo_csf'),
  2240. 'github' => __('Github Style','sakurairo_csf'),
  2241. ),
  2242. 'default' => 'sakurairo'
  2243. ),
  2244. array(
  2245. 'id' => 'patternimg',
  2246. 'type' => 'switcher',
  2247. 'title' => __('Page Decoration Image','sakurairo_csf'),
  2248. 'label' => __('Enabled by default, show on article pages, standalone pages and category pages','sakurairo_csf'),
  2249. 'default' => true
  2250. ),
  2251. array(
  2252. 'id' => 'page_title_animation',
  2253. 'type' => 'switcher',
  2254. 'title' => __('Page Title Animation','sakurairo_csf'),
  2255. 'label' => __('Page title will have float-in animation when turned on','sakurairo_csf'),
  2256. 'default' => true
  2257. ),
  2258. array(
  2259. 'id' => 'page_title_animation_time',
  2260. 'type' => 'slider',
  2261. 'title' => __('Page Title Animation Time','sakurairo_csf'),
  2262. 'dependency' => array( 'page_title_animation', '==', 'true' ),
  2263. 'desc' => __('Slide to adjust, recommended value range is 1-2','sakurairo_csf'),
  2264. 'step' => '0.01',
  2265. 'unit' => 's',
  2266. 'max' => '5',
  2267. 'default' => '2'
  2268. ),
  2269. array(
  2270. 'id' => 'clipboard_copyright',
  2271. 'type' => 'switcher',
  2272. 'title' => __('Page Clipboard Copyright Notice','sakurairo_csf'),
  2273. 'label' => __('Enabled by default, users will have copyright notice text when copying text content over 30 bytes','sakurairo_csf'),
  2274. 'default' => true
  2275. ),
  2276. array(
  2277. 'id' => 'page_lazyload',
  2278. 'type' => 'switcher',
  2279. 'title' => __('Page LazyLoad','sakurairo_csf'),
  2280. 'label' => __('LazyLoad effect for page images, WordPress block editor already comes with similar effect, not recommended to turn on','sakurairo_csf'),
  2281. 'default' => false
  2282. ),
  2283. array(
  2284. 'id' => 'page_lazyload_spinner',
  2285. 'type' => 'text',
  2286. 'title' => __('Page LazyLoad Placeholder SVG','sakurairo_csf'),
  2287. 'dependency' => array( 'page_lazyload', '==', 'true' ),
  2288. 'desc' => __('Fill in the address, this is the placeholder image that will be displayed when the page LazyLoad is being loaded','sakurairo_csf'),
  2289. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/inload.svg'
  2290. ),
  2291. array(
  2292. 'id' => 'load_in_svg',
  2293. 'type' => 'text',
  2294. 'title' => __('Page Image Placeholder SVG','sakurairo_csf'),
  2295. 'desc' => __('Fill address, this is the SVG that will be displayed as a placeholder when the page image is being loaded','sakurairo_csf'),
  2296. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/load_svg/inload.svg'
  2297. ),
  2298. )
  2299. ) );
  2300. Sakurairo_CSF::createSection( $prefix, array(
  2301. 'parent' => 'page',
  2302. 'title' => __('Article Page Options','sakurairo_csf'),
  2303. 'icon' => 'fa fa-archive',
  2304. 'fields' => array(
  2305. array(
  2306. 'type' => 'submessage',
  2307. 'style' => 'info',
  2308. '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'),
  2309. ),
  2310. array(
  2311. 'id' => 'article_title_font_size',
  2312. 'type' => 'slider',
  2313. 'title' => __('Article Page Title Font Size','sakurairo_csf'),
  2314. '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'),
  2315. 'unit' => 'px',
  2316. 'min' => '16',
  2317. 'max' => '48',
  2318. 'default' => '32'
  2319. ),
  2320. array(
  2321. 'id' => 'article_title_line',
  2322. 'type' => 'switcher',
  2323. 'title' => __('Article Page Title Underline Animation','sakurairo_csf'),
  2324. 'label' => __('Article title will have underline animation when this is enabled and article has a featured image set','sakurairo_csf'),
  2325. 'default' => false
  2326. ),
  2327. array(
  2328. 'id' => 'article_auto_toc',
  2329. 'type' => 'switcher',
  2330. 'title' => __('Article Page Auto Show Menu','sakurairo_csf'),
  2331. 'label' => __('Enabled by default, the article page will automatically show the menu','sakurairo_csf'),
  2332. 'default' => true
  2333. ),
  2334. array(
  2335. 'type' => 'subheading',
  2336. 'content' => __('Article Expansion Area','sakurairo_csf'),
  2337. ),
  2338. array(
  2339. 'id' => 'article_function',
  2340. 'type' => 'switcher',
  2341. 'title' => __('Article Page Function Bar','sakurairo_csf'),
  2342. 'label' => __('Enabled by default, will be displayed on the article page with the features enabled below','sakurairo_csf'),
  2343. 'default' => true
  2344. ),
  2345. array(
  2346. 'id' => 'article_lincenses',
  2347. 'type' => 'switcher',
  2348. 'title' => __('Article Lincenses','sakurairo_csf'),
  2349. 'dependency' => array( 'article_function', '==', 'true' ),
  2350. 'label' => __('Enabled by default, Article lincenses will appear on the function bar','sakurairo_csf'),
  2351. 'default' => true
  2352. ),
  2353. array(
  2354. 'id' => 'alipay_code',
  2355. 'type' => 'upload',
  2356. 'title' => __('Article Page Appreciation Function (Alipay QR Code)','sakurairo_csf'),
  2357. 'dependency' => array( 'article_function', '==', 'true' ),
  2358. 'desc' => __('Upload Alipay Receipt QR Code Image','sakurairo_csf'),
  2359. 'library' => 'image',
  2360. ),
  2361. array(
  2362. 'id' => 'wechat_code',
  2363. 'type' => 'upload',
  2364. 'title' => __('Article Page Appreciation Function (Wechat QR Code)','sakurairo_csf'),
  2365. 'dependency' => array( 'article_function', '==', 'true' ),
  2366. 'desc' => __('Upload WeChat Receipt QR Code Image','sakurairo_csf'),
  2367. 'library' => 'image',
  2368. ),
  2369. array(
  2370. 'id' => 'author_profile_avatar',
  2371. 'type' => 'switcher',
  2372. 'title' => __('Article Page Author Avatar','sakurairo_csf'),
  2373. 'dependency' => array( 'article_function', '==', 'true' ),
  2374. 'label' => __('Enabled by default, Author avatar will appear on the function bar','sakurairo_csf'),
  2375. 'default' => true
  2376. ),
  2377. array(
  2378. 'id' => 'author_profile_name',
  2379. 'type' => 'switcher',
  2380. 'title' => __('Article Page Author Name','sakurairo_csf'),
  2381. 'dependency' => array( 'article_function', '==', 'true' ),
  2382. 'label' => __('Author name will appear on the function bar when enabled','sakurairo_csf'),
  2383. 'default' => false
  2384. ),
  2385. array(
  2386. 'id' => 'author_profile_quote',
  2387. 'type' => 'switcher',
  2388. 'title' => __('Article Page Author Signature','sakurairo_csf'),
  2389. 'dependency' => array( 'article_function', '==', 'true' ),
  2390. 'label' => __('Enabled by default, Author signature will appear on the function bar','sakurairo_csf'),
  2391. 'default' => true
  2392. ),
  2393. array(
  2394. 'id' => 'author_profile_quote_text',
  2395. 'type' => 'text',
  2396. 'title' => __('Article Page Author Info Signature Text','sakurairo_csf'),
  2397. 'dependency' => array(
  2398. array( 'article_function', '==', 'true' ),
  2399. array( 'author_profile_quote', '==', 'true' ),
  2400. ),
  2401. 'desc' => __('A self-descriptive quote','sakurairo_csf'),
  2402. 'default' => '届ける言葉を今は育ててる'
  2403. ),
  2404. array(
  2405. 'id' => 'article_modified_time',
  2406. 'type' => 'switcher',
  2407. 'title' => __('Article Last Update Time','sakurairo_csf'),
  2408. 'dependency' => array( 'article_function', '==', 'true' ),
  2409. 'label' => __('Article last update time will appear on the function bar when enabled','sakurairo_csf'),
  2410. 'default' => false
  2411. ),
  2412. array(
  2413. 'id' => 'article_tag',
  2414. 'type' => 'switcher',
  2415. 'title' => __('Article Tag','sakurairo_csf'),
  2416. 'dependency' => array( 'article_function', '==', 'true' ),
  2417. 'label' => __('Enabled by default, Article tag will appear on the function bar','sakurairo_csf'),
  2418. 'default' => true
  2419. ),
  2420. array(
  2421. 'id' => 'article_nextpre',
  2422. 'type' => 'switcher',
  2423. 'title' => __('Article Page Prev/Next Article Switcher','sakurairo_csf'),
  2424. 'label' => __('Enabled by default, the previous and next article switch will appear on the article pages','sakurairo_csf'),
  2425. 'default' => true
  2426. ),
  2427. )
  2428. ) );
  2429. Sakurairo_CSF::createSection( $prefix, array(
  2430. 'parent' => 'page',
  2431. 'title' => __('Template Page Options','sakurairo_csf'),
  2432. 'icon' => 'fa fa-window-maximize',
  2433. 'fields' => array(
  2434. array(
  2435. 'type' => 'submessage',
  2436. 'style' => 'info',
  2437. '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'),
  2438. ),
  2439. array(
  2440. 'id' => 'page_temp_title_font_size',
  2441. 'type' => 'slider',
  2442. 'title' => __('Template Page Title Font Size','sakurairo_csf'),
  2443. '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'),
  2444. 'unit' => 'px',
  2445. 'min' => '20',
  2446. 'max' => '64',
  2447. 'default' => '40'
  2448. ),
  2449. array(
  2450. 'id' => 'shuoshuo_background_color1',
  2451. 'type' => 'color',
  2452. 'title' => __('Ideas Template Background ColorⅠ','sakurairo_csf'),
  2453. 'desc' => __('Customize the colors','sakurairo_csf'),
  2454. 'default' => '#F9D938'
  2455. ),
  2456. array(
  2457. 'id' => 'shuoshuo_background_color2',
  2458. 'type' => 'color',
  2459. 'title' => __('Ideas Template Background Color II','sakurairo_csf'),
  2460. 'desc' => __('Customize the colors','sakurairo_csf'),
  2461. 'default' => '#FCCD00'
  2462. ),
  2463. array(
  2464. 'id' => 'shuoshuo_arrow',
  2465. 'type' => 'switcher',
  2466. 'title' => __('Ideas Template Tip Arrow','sakurairo_csf'),
  2467. 'label' => __('After turning on the alert arrow will appear on the left side of the comment','sakurairo_csf'),
  2468. 'default' => false
  2469. ),
  2470. array(
  2471. 'id' => 'shuoshuo_font',
  2472. 'type' => 'text',
  2473. 'title' => __('Ideas Template Font','sakurairo_csf'),
  2474. 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'),
  2475. 'default' => 'Noto Serif SC'
  2476. ),
  2477. array(
  2478. 'id' => 'bangumi_source',
  2479. 'type' => 'image_select',
  2480. 'title' => __('Bangumi Template Source', 'sakurairo_csf'),
  2481. 'options' => array(
  2482. 'bilibili' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/bangumi_tep_bili.webp',
  2483. 'myanimelist' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/bangumi_tep_mal.webp',
  2484. ),
  2485. 'default' => 'bilibili'
  2486. ),
  2487. array(
  2488. 'id' => 'my_anime_list_username',
  2489. 'type' => 'text',
  2490. 'title' => __('My Anime List Username','sakurairo_csf'),
  2491. 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ),
  2492. 'desc' => __('Username on https://myanimelist.net/','sakurairo_csf'),
  2493. 'default' => ''
  2494. ),
  2495. array(
  2496. 'id' => 'my_anime_list_sort',
  2497. 'type' => 'radio',
  2498. 'title' => __('My Anime List Sort','sakurairo_csf'),
  2499. 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ),
  2500. 'options' => array(
  2501. '1' => __('Status and Last Updated', 'sakurairo_csf'),
  2502. '2' => __('Last Updated', 'sakurairo_csf'),
  2503. '3' => __('Status', 'sakurairo_csf'),
  2504. ),
  2505. 'default' => '1'
  2506. ),
  2507. array(
  2508. 'id' => 'bilibili_id',
  2509. 'type' => 'text',
  2510. 'title' => __('Bilibili Account UID','sakurairo_csf'),
  2511. 'desc' => __('Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the number part "13972644"','sakurairo_csf'),
  2512. 'default' => '13972644'
  2513. ),
  2514. array(
  2515. 'id' => 'bilibili_cookie',
  2516. 'type' => 'text',
  2517. 'title' => __('Bilibili Account Cookies','sakurairo_csf'),
  2518. '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'),
  2519. 'default' => 'LIVE_BUVID='
  2520. ),
  2521. array(
  2522. 'id' => 'friend_link_align',
  2523. 'type' => 'image_select',
  2524. 'title' => __('Friend Link Template Unit Alignment','sakurairo_csf'),
  2525. 'options' => array(
  2526. 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/friend_link_left.webp',
  2527. 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/friend_link_right.webp',
  2528. 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/friend_link_center.webp',
  2529. ),
  2530. 'default' => 'left'
  2531. ),
  2532. array(
  2533. 'id' => 'friend_link_title_matching_color',
  2534. 'type' => 'color',
  2535. 'title' => __('Friend Link Template Unit Matching Color','sakurairo_csf'),
  2536. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  2537. 'default' => '#ac354b'
  2538. ),
  2539. array(
  2540. 'id' => 'friend_link_shadow_color',
  2541. 'type' => 'color',
  2542. 'title' => __('Friend Link Template Unit Border Shadow Color','sakurairo_csf'),
  2543. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  2544. 'default' => '#e8e8e8'
  2545. ),
  2546. array(
  2547. 'id' => 'ex_register_open',
  2548. 'type' => 'switcher',
  2549. 'title' => __('Login Template Registration Function','sakurairo_csf'),
  2550. 'label' => __('Login template will allow registration when enabled','sakurairo_csf'),
  2551. 'default' => false
  2552. ),
  2553. )
  2554. ) );
  2555. Sakurairo_CSF::createSection( $prefix, array(
  2556. 'parent' => 'page',
  2557. 'title' => __('Comment-related Options','sakurairo_csf'),
  2558. 'icon' => 'fa fa-comments-o',
  2559. 'fields' => array(
  2560. array(
  2561. 'type' => 'submessage',
  2562. 'style' => 'info',
  2563. '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'),
  2564. ),
  2565. array(
  2566. 'id' => 'comment_area',
  2567. 'type' => 'radio',
  2568. 'title' => __('Page Comment Area Display','sakurairo_csf'),
  2569. 'desc' => __('You can choose to expand or shirink the content of the comment area','sakurairo_csf'),
  2570. 'options' => array(
  2571. 'unfold' => __('Expand','sakurairo_csf'),
  2572. 'fold' => __('Shrink','sakurairo_csf'),
  2573. ),
  2574. 'default' => 'unfold'
  2575. ),
  2576. array(
  2577. 'id' => 'comment_area_matching_color',
  2578. 'type' => 'color',
  2579. 'title' => __('Page Comment Area Matching Color','sakurairo_csf'),
  2580. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  2581. 'default' => '#6667ab'
  2582. ),
  2583. array(
  2584. 'id' => 'comment_area_shadow_color',
  2585. 'type' => 'color',
  2586. 'title' => __('Page Comment Area Shadow Color','sakurairo_csf'),
  2587. 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'),
  2588. 'default' => '#e8e8e8'
  2589. ),
  2590. array(
  2591. 'id' => 'comment_smile_bilibili',
  2592. 'type' => 'switcher',
  2593. 'title' => __('Page Comment Area Bilibili Emoji Pack','sakurairo_csf'),
  2594. 'label' => __('Default on, bilibili emotions are displayed below the comment box','sakurairo_csf'),
  2595. 'default' => true
  2596. ),
  2597. array(
  2598. 'id' => 'comment_area_image',
  2599. 'type' => 'upload',
  2600. 'title' => __('Page Comment Area Bottom Right Background Image','sakurairo_csf'),
  2601. 'desc' => __('If this option is blank, there will be no image, no best recommendation here','sakurairo_csf'),
  2602. 'library' => 'image',
  2603. ),
  2604. array(
  2605. 'id' => 'comment_useragent',
  2606. 'type' => 'switcher',
  2607. 'title' => __('Page Comment Area UA Info','sakurairo_csf'),
  2608. 'label' => __('When enabled, the page comment area will display the user’s browser, operating system information','sakurairo_csf'),
  2609. 'default' => false
  2610. ),
  2611. array(
  2612. 'id' => 'comment_location',
  2613. 'type' => 'switcher',
  2614. 'title' => __('Page Comment Area Location Information','sakurairo_csf'),
  2615. 'label' => __('When enabled, the page comment area will show the user’s location information','sakurairo_csf'),
  2616. 'default' => false
  2617. ),
  2618. array(
  2619. 'id' => 'comment_private_message',
  2620. 'type' => 'switcher',
  2621. 'title' => __('Private Comment Function','sakurairo_csf'),
  2622. 'label' => __('When enabled, users are allowed to set their comments to be invisible to others','sakurairo_csf'),
  2623. 'default' => false
  2624. ),
  2625. array(
  2626. 'id' => 'not_robot',
  2627. 'type' => 'switcher',
  2628. 'title' => __('Page Comment Area Bot Verification','sakurairo_csf'),
  2629. 'label' => __('After turning on user comments need to be verified before posting','sakurairo_csf'),
  2630. 'default' => false
  2631. ),
  2632. array(
  2633. 'id' => 'qq_avatar_link',
  2634. 'type' => 'select',
  2635. 'title' => __('QQ Avatar Link Encryption','sakurairo_csf'),
  2636. 'options' => array(
  2637. 'off' => __('Off','sakurairo_csf'),
  2638. 'type_1' => __('Redirect (low security)','sakurairo_csf'),
  2639. 'type_2' => __('Get avatar data in the backend (medium security)','sakurairo_csf'),
  2640. 'type_3' => __('Parse avatar interface in the backend (high security, slow)','sakurairo_csf'),
  2641. ),
  2642. 'default' => 'off'
  2643. ),
  2644. array(
  2645. 'id' => 'img_upload_api',
  2646. 'type' => 'select',
  2647. 'title' => __('Page Comment Area Upload Image Interface','sakurairo_csf'),
  2648. 'options' => array(
  2649. 'off' => __('Off','sakurairo_csf'),
  2650. 'imgur' => 'Imgur (https://imgur.com)',
  2651. 'smms' => 'SM.MS (https://sm.ms)',
  2652. 'chevereto' => 'Chevereto (https://chevereto.com)',
  2653. 'lsky' => 'Lsky Pro (https://www.lsky.pro)',
  2654. ),
  2655. 'default' => 'off'
  2656. ),
  2657. array(
  2658. 'id' => 'imgur_client_id',
  2659. 'type' => 'text',
  2660. 'title' => __('Imgur Client ID','sakurairo_csf'),
  2661. 'dependency' => array( 'img_upload_api', '==', 'imgur' ),
  2662. 'desc' => __('Fill in Client ID here, to register please visit https://api.imgur.com/oauth2/addclient','sakurairo_csf'),
  2663. ),
  2664. array(
  2665. 'id' => 'imgur_upload_image_proxy',
  2666. 'type' => 'text',
  2667. 'title' => __('Imgur Upload Proxy','sakurairo_csf'),
  2668. 'dependency' => array( 'img_upload_api', '==', 'imgur' ),
  2669. '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'),
  2670. 'default' => 'https://api.imgur.com/3/image/'
  2671. ),
  2672. array(
  2673. 'id' => 'smms_client_id',
  2674. 'type' => 'text',
  2675. 'title' => __('SM.MS Secret Token','sakurairo_csf'),
  2676. 'dependency' => array( 'img_upload_api', '==', 'smms' ),
  2677. 'desc' => __('Fill in your Key here, to get it please visit https://sm.ms/home/apitoken','sakurairo_csf'),
  2678. ),
  2679. array(
  2680. 'id' => 'chevereto_api_key',
  2681. 'type' => 'text',
  2682. 'title' => __('Chevereto API v1 Key','sakurairo_csf'),
  2683. 'dependency' => array( 'img_upload_api', '==', 'chevereto' ),
  2684. 'desc' => __('Fill in the Key here, to get please visit your Chevereto home page address/dashboard/settings/api','sakurairo_csf'),
  2685. ),
  2686. array(
  2687. 'id' => 'cheverto_url',
  2688. 'type' => 'text',
  2689. 'title' => __('Chevereto Address','sakurairo_csf'),
  2690. 'dependency' => array( 'img_upload_api', '==', 'chevereto' ),
  2691. 'desc' => __('Your Chevereto home page address. Please note that there is no "/" at the end, e.g. https://your.cherverto.com','sakurairo_csf'),
  2692. ),
  2693. array(
  2694. 'id' => 'lsky_api_key',
  2695. 'type' => 'text',
  2696. 'title' => __('Lsky Pro v1 Token','sakurairo_csf'),
  2697. 'dependency' => array( 'img_upload_api', '==', 'lsky' ),
  2698. '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'),
  2699. ),
  2700. array(
  2701. 'id' => 'lsky_url',
  2702. 'type' => 'text',
  2703. 'title' => __('Lsky Pro Address','sakurairo_csf'),
  2704. 'dependency' => array( 'img_upload_api', '==', 'lsky' ),
  2705. 'desc' => __('Your Lsky Pro home page address. Please note that there is no "/" at the end, e.g. https://your.lskypro.com','sakurairo_csf'),
  2706. ),
  2707. array(
  2708. 'id' => 'comment_image_proxy',
  2709. 'type' => 'text',
  2710. 'title' => __('Comment Image Proxy','sakurairo_csf'),
  2711. 'desc' => __('Proxy for the image displayed on the frontend','sakurairo_csf'),
  2712. 'default' => 'https://images.weserv.nl/?url='
  2713. ),
  2714. array(
  2715. 'id' => 'mail_img',
  2716. 'type' => 'upload',
  2717. 'title' => __('Mail Template Featured Image','sakurairo_csf'),
  2718. 'desc' => __('Set the background image of your reply email','sakurairo_csf'),
  2719. 'library' => 'image',
  2720. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/mail_head.webp'
  2721. ),
  2722. array(
  2723. 'id' => 'mail_user_name',
  2724. 'type' => 'text',
  2725. 'title' => __('Mail Template Sending Address Prefix','sakurairo_csf'),
  2726. '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'),
  2727. 'default' => 'bibi'
  2728. ),
  2729. array(
  2730. 'id' => 'mail_notify',
  2731. 'type' => 'switcher',
  2732. 'title' => __('User Mail Reply Notification','sakurairo_csf'),
  2733. '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'),
  2734. 'default' => false
  2735. ),
  2736. array(
  2737. 'id' => 'admin_notify',
  2738. 'type' => 'switcher',
  2739. 'title' => __('Admin Email Reply Notification','sakurairo_csf'),
  2740. 'label' => __('Use email notifications when admin comments receive a reply after turning it on','sakurairo_csf'),
  2741. 'default' => false
  2742. ),
  2743. )
  2744. ) );
  2745. Sakurairo_CSF::createSection( $prefix, array(
  2746. 'id' => 'others',
  2747. 'title' => __('Other Options','sakurairo_csf'),
  2748. 'icon' => 'fa fa-coffee',
  2749. ) );
  2750. Sakurairo_CSF::createSection( $prefix, array(
  2751. 'parent' => 'others',
  2752. 'title' => __('Login Screen and Dashboard Related Options','sakurairo_csf'),
  2753. 'icon' => 'fa fa-sign-in',
  2754. 'fields' => array(
  2755. array(
  2756. 'type' => 'submessage',
  2757. 'style' => 'info',
  2758. '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'),
  2759. ),
  2760. array(
  2761. 'type' => 'subheading',
  2762. 'content' => __('Login Screen','sakurairo_csf'),
  2763. ),
  2764. array(
  2765. 'id' => 'login_background',
  2766. 'type' => 'upload',
  2767. 'title' => __('Login Screen Background Image','sakurairo_csf'),
  2768. 'desc' => __('Set your login screen background image, leave this option blank to show the default','sakurairo_csf'),
  2769. 'library' => 'image',
  2770. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/login_background.webp'
  2771. ),
  2772. array(
  2773. 'id' => 'login_blur',
  2774. 'type' => 'switcher',
  2775. 'title' => __('Login Screen Background Blur','sakurairo_csf'),
  2776. 'label' => __('Login screen background image will be blurred when enabled','sakurairo_csf'),
  2777. 'default' => false
  2778. ),
  2779. array(
  2780. 'id' => 'login_logo_img',
  2781. 'type' => 'upload',
  2782. 'title' => __('Login Screen Logo','sakurairo_csf'),
  2783. 'desc' => __('Set your login screen Logo','sakurairo_csf'),
  2784. 'library' => 'image',
  2785. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/login_logo.webp'
  2786. ),
  2787. array(
  2788. 'id' => 'login_urlskip',
  2789. 'type' => 'switcher',
  2790. 'title' => __('Jump after login','sakurairo_csf'),
  2791. 'label' => __('Jump to backend for admins and home for users after turning on.','sakurairo_csf'),
  2792. 'default' => false
  2793. ),
  2794. array(
  2795. 'id' => 'login_language_opt',
  2796. 'type' => 'switcher',
  2797. 'title' => __('Login Screen Language Option','sakurairo_csf'),
  2798. 'label' => __('Login screen language option will be display when enabled','sakurairo_csf'),
  2799. 'default' => false
  2800. ),
  2801. array(
  2802. 'type' => 'subheading',
  2803. 'content' => __('Dashboard','sakurairo_csf'),
  2804. ),
  2805. array(
  2806. 'id' => 'admin_background',
  2807. 'type' => 'upload',
  2808. 'title' => __('Dashboard Background Image','sakurairo_csf'),
  2809. 'desc' => __('Set your dashboard background image, leave this option blank to show white background','sakurairo_csf'),
  2810. 'library' => 'image',
  2811. 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/series/admin_background.webp'
  2812. ),
  2813. array(
  2814. 'id' => 'admin_left_style',
  2815. 'type' => 'image_select',
  2816. 'title' => __('Dashboard Options Menu Style','sakurairo_csf'),
  2817. 'options' => array(
  2818. 'v1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/admin_left_style_v1.webp',
  2819. 'v2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/admin_left_style_v2.webp',
  2820. ),
  2821. 'default' => 'v1'
  2822. ),
  2823. array(
  2824. 'id' => 'admin_first_class_color',
  2825. 'type' => 'color',
  2826. 'title' => __('Dashboard Primary Menu Color','sakurairo_csf'),
  2827. 'desc' => __('Customize the colors','sakurairo_csf'),
  2828. 'default' => '#272151'
  2829. ),
  2830. array(
  2831. 'id' => 'admin_second_class_color',
  2832. 'type' => 'color',
  2833. 'title' => __('Dashboard Secondary Menu Color','sakurairo_csf'),
  2834. 'desc' => __('Customize the colors','sakurairo_csf'),
  2835. 'default' => '#36307f'
  2836. ),
  2837. array(
  2838. 'id' => 'admin_emphasize_color',
  2839. 'type' => 'color',
  2840. 'title' => __('Dashboard Emphasis Color','sakurairo_csf'),
  2841. 'desc' => __('Customize the colors','sakurairo_csf'),
  2842. 'default' => '#7b2a52'
  2843. ),
  2844. array(
  2845. 'id' => 'admin_button_color',
  2846. 'type' => 'color',
  2847. 'title' => __('Dashboard Button Color','sakurairo_csf'),
  2848. 'desc' => __('Customize the colors','sakurairo_csf'),
  2849. 'default' => '#7a003d'
  2850. ),
  2851. array(
  2852. 'id' => 'admin_text_color',
  2853. 'type' => 'color',
  2854. 'title' => __('Dashboard Text Color','sakurairo_csf'),
  2855. 'desc' => __('Customize the colors','sakurairo_csf'),
  2856. 'default' => '#FFFFFF'
  2857. ),
  2858. )
  2859. ) );
  2860. Sakurairo_CSF::createSection( $prefix, array(
  2861. 'parent' => 'others',
  2862. 'title' => __('ChatGPT Options','sakurairo_csf'),
  2863. 'icon' => 'fa fa-lightbulb',
  2864. 'fields' => array(
  2865. array(
  2866. 'type' => 'submessage',
  2867. 'style' => 'info',
  2868. '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'),
  2869. ),
  2870. array(
  2871. 'id' => 'chatgpt_base_url',
  2872. 'type' => 'text',
  2873. 'title' => __('ChatGPT Base URL','sakurairo_csf'),
  2874. 'desc' => __('Fill in the ChatGPT Base URL, The default is http://sxy.gay/','sakurairo_csf'),
  2875. 'default' => 'http://sxy.gay/'
  2876. ),
  2877. array(
  2878. 'id' => 'chatgpt_access_token',
  2879. 'type' => 'text',
  2880. 'title' => __('ChatGPT API keys','sakurairo_csf'),
  2881. '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'),
  2882. ),
  2883. array(
  2884. 'id' => 'chatgpt_article_summarize',
  2885. 'type' => 'switcher',
  2886. 'title' => __('ChatGPT Article Summarize','sakurairo_csf'),
  2887. 'label' => __('After turning on ChatGPT will automatically generate article abstracts','sakurairo_csf'),
  2888. 'default' => false
  2889. ),
  2890. array(
  2891. 'type' => 'content',
  2892. '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'),
  2893. 'dependency' => array( 'chatgpt_article_summarize', '==', 'true' ),
  2894. ),
  2895. array(
  2896. 'id' => 'chatgpt_init_prompt',
  2897. 'type' => 'textarea',
  2898. 'title' => __('ChatGPT Article Summarize Init Prompt','sakurairo_csf'),
  2899. 'dependency' => array( 'chatgpt_article_summarize', '==', 'true' ),
  2900. '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'),
  2901. 'default' => '
  2902. "You are a excerpt generator. " .
  2903. "You can summarize articles given their title and full text. " .
  2904. "You should use the same language as the article for your excerpt. " .
  2905. "You do not need to write in third person."'
  2906. ),
  2907. array(
  2908. 'id' => 'chatgpt_ask_prompt',
  2909. 'type' => 'text',
  2910. 'title' => __('ChatGPT Article Summarize Ask Prompt','sakurairo_csf'),
  2911. 'dependency' => array( 'chatgpt_article_summarize', '==', 'true' ),
  2912. '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'),
  2913. ),
  2914. )
  2915. ) );
  2916. Sakurairo_CSF::createSection( $prefix, array(
  2917. 'parent' => 'others',
  2918. 'title' => __('Low Use Options','sakurairo_csf'),
  2919. 'icon' => 'fa fa-low-vision',
  2920. 'fields' => array(
  2921. array(
  2922. 'type' => 'submessage',
  2923. 'style' => 'info',
  2924. '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'),
  2925. ),
  2926. array(
  2927. 'id' => 'statistics_api',
  2928. 'type' => 'radio',
  2929. 'title' => __('Statistics API','sakurairo_csf'),
  2930. 'desc' => __('You can choose WP-Statistics plugin statistics or theme built-in statistics to display','sakurairo_csf'),
  2931. 'options' => array(
  2932. 'theme_build_in' => __('Theme Built in Statistics','sakurairo_csf'),
  2933. 'wp_statistics' => __('WP-Statistics Plugin Statistics','sakurairo_csf'),
  2934. ),
  2935. 'default' => 'theme_build_in'
  2936. ),
  2937. array(
  2938. 'id' => 'statistics_format',
  2939. 'type' => 'select',
  2940. 'title' => __('Statistics display format','sakurairo_csf'),
  2941. 'desc' => __('You can choose from four different data display formats','sakurairo_csf'),
  2942. 'options' => array(
  2943. 'type_1' => __('23333 Visits','sakurairo_csf'),
  2944. 'type_2' => __('23,333 Visits','sakurairo_csf'),
  2945. 'type_3' => __('23 333 Visits','sakurairo_csf'),
  2946. 'type_4' => __('23K Visits','sakurairo_csf'),
  2947. ),
  2948. 'default' => 'type_1'
  2949. ),
  2950. array(
  2951. 'id' => 'live_search',
  2952. 'type' => 'switcher',
  2953. 'title' => __('Live Search','sakurairo_csf'),
  2954. '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'),
  2955. 'default' => false
  2956. ),
  2957. array(
  2958. 'id' => 'live_search_comment',
  2959. 'type' => 'switcher',
  2960. 'title' => __('Live Search Comment Support','sakurairo_csf'),
  2961. 'dependency' => array( 'live_search', '==', 'true' ),
  2962. 'label' => __('Enable to search for comments in live search (not recommended if site has too many comments)','sakurairo_csf'),
  2963. 'default' => false
  2964. ),
  2965. array(
  2966. 'id' => 'google_analytics_id',
  2967. 'type' => 'text',
  2968. 'title' => __('Google Analytics Id','sakurairo_csf'),
  2969. 'label' => __('If you already have a plugin to handle it, please keep here empty.','sakurairo_csf'),
  2970. ),
  2971. array(
  2972. 'id' => 'site_custom_style',
  2973. 'type' => 'textarea',
  2974. 'title' => __('Custom CSS Styles','sakurairo_csf'),
  2975. 'desc' => __('Fill in the CSS code without writing style tag','sakurairo_csf'),
  2976. ),
  2977. array(
  2978. 'id'=>'site_header_insert',
  2979. 'type' => 'code_editor',
  2980. 'sanitize' => false,
  2981. 'title' => __('Code inserted in the header','sakurairo_csf'),
  2982. 'desc' => __('Insert HTML code right before </head>.','sakurairo_csf'),
  2983. ),
  2984. array(
  2985. 'id' => 'time_zone_fix',
  2986. 'type' => 'slider',
  2987. 'title' => __('Timezone Fix','sakurairo_csf'),
  2988. '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'),
  2989. 'step' => '1',
  2990. 'max' => '24',
  2991. 'default' => '0'
  2992. ),
  2993. array(
  2994. 'id' => 'gravatar_proxy',
  2995. 'type' => 'select',
  2996. 'title' => __('Gravatar Service Proxy','sakurairo_csf'),
  2997. 'desc' => __('You can select multiple proxy as the Gravatar Service Proxy. By default, Geekzu is used as the Gravatar Service Proxy.','sakurairo_csf'),
  2998. 'options' => array(
  2999. 'sdn.geekzu.org/avatar' => __('Geekzu','sakurairo_csf'),
  3000. 'cravatar.cn/avatar' => __('Cravatar Service','sakurairo_csf'),
  3001. 'gravatar.loli.net/avatar' => __('Loli Net','sakurairo_csf'),
  3002. 'gravatar.com/avatar' => __('Official','sakurairo_csf'),
  3003. 'cn.gravatar.com/avatar' => __('Official CN','sakurairo_csf'),
  3004. ),
  3005. 'default' => 'sdn.geekzu.org/avatar'
  3006. ),
  3007. array(
  3008. 'type' => 'subheading',
  3009. 'content' => __('Lightbox','sakurairo_csf'),
  3010. ),
  3011. array(
  3012. 'id' => 'baguetteBox',
  3013. 'type' => 'switcher',
  3014. 'title' => __('BaguetteBox Lightbox Effect','sakurairo_csf'),
  3015. 'label' => __('BaguetteBox will be used as the image lightbox effect when turned on','sakurairo_csf'),
  3016. 'default' => false
  3017. ),
  3018. array(
  3019. 'id' => 'fancybox',
  3020. 'type' => 'switcher',
  3021. 'title' => __('FancyBox Lightbox Effect','sakurairo_csf'),
  3022. 'label' => __('FancyBox will be used as an image lightbox effect after turning on, additional JQ libraries will be loaded','sakurairo_csf'),
  3023. 'dependency' => array( 'baguetteBox', '==', 'false' ),
  3024. 'default' => false
  3025. ),
  3026. array(
  3027. 'id' => 'lightgallery',
  3028. 'type' => 'switcher',
  3029. 'title' => __('LightGallery Lightbox Effect','sakurairo_csf'),
  3030. 'label' => __('LightGallery will be used as an image lightbox effect after turning on.','sakurairo_csf'),
  3031. 'dependency' => array(array( 'baguetteBox', '==', 'false' ),array('fancybox','==','false')),
  3032. 'default' => false
  3033. ),
  3034. array(
  3035. 'type' => 'content',
  3036. 'content'=>__('<strong>Attension: Please read <a href="https://github.com/sachinchoolur/lightGallery#license">License Instruction</a> before use.</strong>'
  3037. .'<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> '
  3038. .'<br/> Please write settings in JavaScript. An example has been provided as default setting.'
  3039. .'<br/> It should be captiable for Most User using WordPress Guttenberg Editor.'
  3040. .'<br/>Submit new discussion on Github for assistance. https://github.com/mirai-mamori/Sakurairo/discussions','sakurairo_csf') ,
  3041. 'dependency' => array( 'lightgallery', '==', 'true' ),
  3042. ),
  3043. array(
  3044. 'type' => 'submessage',
  3045. 'style' => 'warning',
  3046. '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') ,
  3047. 'dependency' => array( 'lightgallery', '==', 'true' ),
  3048. ),
  3049. array(
  3050. 'id' => 'lightgallery_option',
  3051. 'type' => 'code_editor',
  3052. 'sanitize' => false,
  3053. 'title' => __('LightGallery Lightbox Effect Options','sakurairo_csf'),
  3054. 'dependency' => array( 'lightgallery', '==', 'true' ),
  3055. 'default' => '{
  3056. "plugins":["lgHash","lgZoom"],
  3057. "supportLegacyBrowser":false,
  3058. "selector":"figure > img"
  3059. }'
  3060. ),
  3061. array(
  3062. 'type' => 'subheading',
  3063. 'content' => __('Code Highlighting','sakurairo_csf'),
  3064. ),
  3065. array(
  3066. 'type' => 'content',
  3067. 'content' => __('<p><strong>Highlight.js:</strong> Default. Automatic language recognition. </p>'
  3068. .' <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>'
  3069. .' <p><strong>Custom:</strong> For cases where another configuration is available. </p>','sakurairo_csf'),
  3070. ),
  3071. array(
  3072. 'id' => 'code_highlight_method',
  3073. 'type' => 'select',
  3074. 'title' => __('Code Highlight Method','sakurairo_csf'),
  3075. 'options' => array(
  3076. 'hljs' => 'highlight.js',
  3077. 'prism' => 'Prism.js',
  3078. 'custom' => __('Custom Program','sakurairo_csf'),
  3079. ),
  3080. "default" => "hljs"
  3081. ),
  3082. array(
  3083. 'id' => 'code_highlight_prism_line_number_all',
  3084. 'type' => 'switcher',
  3085. 'title' => __('Prism.js: Add Line Number Display for All Code Blocks','sakurairo_csf'),
  3086. 'dependency' => array(
  3087. array( 'code_highlight_method', '==', 'prism' ),
  3088. ),
  3089. 'desc' => __('See the <a href="https://prismjs.com/plugins/line-numbers/">plugin description documentation</a>','sakurairo_csf'),
  3090. ),
  3091. array(
  3092. 'id' => 'code_highlight_prism_autoload_path',
  3093. 'type' => 'text',
  3094. 'title' => __('Prism.js: Autoload Address','sakurairo_csf'),
  3095. 'dependency' => array(
  3096. array( 'code_highlight_method', '==', 'prism' ),
  3097. ),
  3098. 'desc' => __('Leave blank to use default values','sakurairo_csf'),
  3099. 'default'=>'https://fastly.jsdelivr.net/npm/prismjs@1.23.0/'
  3100. ),
  3101. array(
  3102. 'id' => 'code_highlight_prism_theme_light',
  3103. 'type' => 'text',
  3104. 'title' => __('Prism.js: Code Highlight Theme','sakurairo_csf'),
  3105. 'desc' => __('Relative to autoload address. Leave blank to use default values','sakurairo_csf'),
  3106. 'dependency' => array(
  3107. array( 'code_highlight_method', '==', 'prism' ),
  3108. ),
  3109. 'default' => 'themes/prism.min.css'
  3110. ),
  3111. array(
  3112. 'id' => 'code_highlight_prism_theme_dark',
  3113. 'type' => 'text',
  3114. 'title' => __('Prism.js: Code Highlight Theme (Dark Mode)','sakurairo_csf'),
  3115. 'desc' => __('Relative to autoload address. Leave blank to use default values','sakurairo_csf'),
  3116. 'dependency' => array(
  3117. array( 'code_highlight_method', '==', 'prism' ),
  3118. ),
  3119. 'default' => 'themes/prism-tomorrow.min.css'
  3120. ),
  3121. array(
  3122. 'type' => 'submessage',
  3123. 'style' => 'danger',
  3124. 'content' => __('The following Options are not recommended to be modified blindly, please use them under the guidance of others','sakurairo_csf'),
  3125. ),
  3126. array(
  3127. 'id' => 'image_cdn',
  3128. 'type' => 'text',
  3129. 'title' => __('Image CDN','sakurairo_csf'),
  3130. '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'),
  3131. 'default' => ''
  3132. ),
  3133. array(
  3134. 'id' => 'classify_display',
  3135. 'type' => 'text',
  3136. 'title' => __('Articles Categories (Do not display)','sakurairo_csf'),
  3137. 'desc' => __('Fill in category ID, seperate in English" , " when more than one','sakurairo_csf'),
  3138. ),
  3139. array(
  3140. 'id' => 'image_category',
  3141. 'type' => 'text',
  3142. 'title' => __('Image Display Category','sakurairo_csf'),
  3143. 'desc' => __('Fill in category ID, seperate in English" , " when more than one','sakurairo_csf'),
  3144. ),
  3145. array(
  3146. 'id' => 'exlogin_url',
  3147. 'type' => 'text',
  3148. 'title' => __('Specify Login Address','sakurairo_csf'),
  3149. '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'),
  3150. ),
  3151. array(
  3152. 'id' => 'exregister_url',
  3153. 'type' => 'text',
  3154. 'title' => __('Specify Registration Address','sakurairo_csf'),
  3155. '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'),
  3156. ),
  3157. array(
  3158. 'id' => 'cookie_version',
  3159. 'type' => 'text',
  3160. 'title' => __('Version Control','sakurairo_csf'),
  3161. 'desc' => __('Used to update front-end cookies and browser cache, can use any string','sakurairo_csf'),
  3162. ),
  3163. )
  3164. ) );
  3165. Sakurairo_CSF::createSection($prefix, array(
  3166. 'title' => __('Backup&Recovery','sakurairo_csf'),
  3167. 'icon' => 'fa fa-shield',
  3168. 'description' => __('Backup or Recovery your theme options','sakurairo_csf'),
  3169. 'fields' => array(
  3170. array(
  3171. 'type' => 'backup',
  3172. ),
  3173. )
  3174. ) );
  3175. Sakurairo_CSF::createSection($prefix, array(
  3176. 'title' => __('About Theme','sakurairo_csf'),
  3177. 'icon' => 'fa fa-paperclip',
  3178. 'fields' => array(
  3179. array(
  3180. 'type' => 'subheading',
  3181. 'content' => __('Version Info','sakurairo_csf'),
  3182. ),
  3183. array(
  3184. 'type' => 'content',
  3185. 'content' => __('<img src="https://s.nmxc.ltd/sakurairo_vision/@2.6/series/headlogo.webp" alt="Theme Information" />','sakurairo_csf'),
  3186. ),
  3187. array(
  3188. 'type' => 'submessage',
  3189. 'style' => 'normal',
  3190. '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),
  3191. ),
  3192. array(
  3193. 'type' => 'subheading',
  3194. 'content' => __('Update Related','sakurairo_csf'),
  3195. ),
  3196. array(
  3197. 'id' => 'iro_update_source',
  3198. 'type' => 'image_select',
  3199. 'title' => __('Theme Update Source','sakurairo_csf'),
  3200. 'options' => array(
  3201. 'github' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_github.webp',
  3202. 'upyun' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_upyun.webp',
  3203. 'official_building' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_iro.webp',
  3204. ),
  3205. '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'),
  3206. 'default' => 'github'
  3207. ),
  3208. array(
  3209. 'id' => 'channel_validate_value',
  3210. 'type' => 'text',
  3211. 'title' => __('Theme Update Test Channel Disclaimer','sakurairo_csf'),
  3212. 'dependency' => array(
  3213. array( 'core_library_basepath', '==', 'true' ),
  3214. array( 'shared_library_basepath', '==', 'true' ),
  3215. array( 'iro_update_source', '==', 'official_building' ),
  3216. ),
  3217. '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'),
  3218. ),
  3219. array(
  3220. 'id' => 'iro_update_channel',
  3221. 'type' => 'radio',
  3222. 'title' => __('Theme Update Channel','sakurairo_csf'),
  3223. 'dependency' => array(
  3224. array( 'channel_validate_value', '==', 'I agree and am willing to bear all unexpected consequences' ),
  3225. array( 'core_library_basepath', '==', 'true' ),
  3226. array( 'shared_library_basepath', '==', 'true' ),
  3227. array( 'iro_update_source', '==', 'official_building' ),
  3228. ),
  3229. 'desc' => __('You can toggle the update channel here to participate in the testing of the new version','sakurairo_csf'),
  3230. 'options' => array(
  3231. 'stable' => __('Stable Channel','sakurairo_csf'),
  3232. 'beta' => __('Beta Channel','sakurairo_csf'),
  3233. 'preview' => __('Preview Channel','sakurairo_csf'),
  3234. ),
  3235. 'default' => 'stable'
  3236. ),
  3237. array(
  3238. 'type' => 'subheading',
  3239. 'content' => __('Resource Control','sakurairo_csf'),
  3240. ),
  3241. array(
  3242. 'id' => 'core_library_basepath',
  3243. 'type' => 'switcher',
  3244. 'title' => __('Provide Critical Frontend Resource locally','sakurairo_csf'),
  3245. 'label' => __('Enabeld by default. Critical resources are those resources whose loading performance will have a significant impact on the user experience.','sakurairo_csf'),
  3246. 'default' => true
  3247. ),
  3248. array(
  3249. 'id' => 'shared_library_basepath',
  3250. 'type' => 'switcher',
  3251. 'title' => __('Provide Other Frontend Resource locally','sakurairo_csf'),
  3252. 'label' => __('Less important frontend resource in the theme\'s folder.','sakurairo_csf'),
  3253. 'default' => false
  3254. ),
  3255. array(
  3256. 'id' => 'external_vendor_lib',
  3257. 'type' => 'switcher',
  3258. 'title' => __('Provide 3rd-party library from public CDN','sakurairo_csf'),
  3259. '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'),
  3260. 'default' => false
  3261. ),
  3262. array(
  3263. 'id' => 'lib_cdn_path',
  3264. 'type' => 'image_select',
  3265. 'title' => __('Public CDN Basepath','sakurairo_csf'),
  3266. 'options' => array(
  3267. 'https://s.nmxc.ltd/sakurairo/@' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_upyun.webp',
  3268. 'https://fastly.jsdelivr.net/gh/mirai-mamori/Sakurairo@' => 'https://s.nmxc.ltd/sakurairo_vision/@2.6/options/update_source_jsd.webp',
  3269. ),
  3270. 'default' => 'https://s.nmxc.ltd/sakurairo/@'
  3271. ),
  3272. array(
  3273. 'id' => 'vision_resource_basepath',
  3274. 'type' => 'text',
  3275. 'title' => __('Vision Resource Basepath','sakurairo_csf'),
  3276. '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'),
  3277. 'default' => "https://s.nmxc.ltd/sakurairo_vision/@2.6/"
  3278. ),
  3279. array(
  3280. 'type' => 'subheading',
  3281. 'content' => __('Theme Sponsors','sakurairo_csf'),
  3282. ),
  3283. array(
  3284. 'type' => 'content',
  3285. 'content' => __('<img src="https://news.maho.cc/sponsors.php" alt="sponsors" width="65%" height="65%" />','sakurairo_csf'),
  3286. ),
  3287. array(
  3288. 'type' => 'subheading',
  3289. 'content' => __('Theme Contributors','sakurairo_csf'),
  3290. ),
  3291. array(
  3292. 'type' => 'content',
  3293. 'content' => __('<img src="https://opencollective.com/fuukei/contributors.svg" alt="Theme Contributors" width="100%" height="100%" />','sakurairo_csf'),
  3294. ),
  3295. array(
  3296. 'type' => 'subheading',
  3297. 'content' => __('Privacy information','sakurairo_csf'),
  3298. ),
  3299. array(
  3300. 'type' => 'content',
  3301. 'content' => __('<p>The theme respects your privacy</p>
  3302. <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>
  3303. <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'),
  3304. ),
  3305. array(
  3306. 'id' => 'send_theme_version',
  3307. 'type' => 'switcher',
  3308. 'title' => __('Send Theme Version to Fuukei','sakurairo_csf'),
  3309. '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'),
  3310. 'default' => false
  3311. ),
  3312. array(
  3313. 'type' => 'subheading',
  3314. 'content' => __('Reference Information','sakurairo_csf'),
  3315. ),
  3316. array(
  3317. 'type' => 'content',
  3318. 'content' => __('<p>Fluent Design Icon Referenced by Paradox <a href="https://wwi.lanzous.com/ikyq5kgx0wb">Fluent Icon Pack</a></p>
  3319. <p>MUH2 Design Icon Referenced by 缄默 <a href="https://www.coolapk.com/apk/com.muh2.icon">MUH2 Icon Pack</a></p>
  3320. <p>Mashiro Style Logo References the Original Theme Author Mashiro, As Provided and Referenced by Hyacm</p>','sakurairo_csf'),
  3321. ),
  3322. array(
  3323. 'type' => 'subheading',
  3324. 'content' => __('Dependency Information','sakurairo_csf'),
  3325. ),
  3326. array(
  3327. 'type' => 'content',
  3328. 'content' => __('<p>Options Framework Relies on the Codestar Open Source <a href="https://github.com/Codestar/codestar-framework">Codestar Framework</a> Project</p>
  3329. <p>Update Function Relies on YahnisElsts Open Source <a href="https://github.com/YahnisElsts/plugin-update-checker">Plugin Update Checker</a> Project</p>
  3330. <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'),
  3331. ),
  3332. array(
  3333. 'type' => 'content',
  3334. '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/Fuukei/Public_Repository/badge" alt="Theme CDN resource access" style="border-radius: 3px;" />','sakurairo_csf'),
  3335. ),
  3336. )
  3337. ) );
  3338. }