__('iro-Options','sakurairo_csf'), 'menu_slug' => 'iro_options', ) ); Sakurairo_CSF::createSection($prefix, array( 'title' => __('Hello!','sakurairo_csf'), 'icon' => 'fa fa-podcast', 'fields' => array( array( 'type' => 'heading', 'content' => __('News+','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('News_Plus','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'id' => 'preliminary', 'title' => __('Preliminary Options','sakurairo_csf'), 'icon' => 'fa fa-sliders', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'site_name', 'type' => 'text', 'title' => __('Site Name','sakurairo_csf'), 'desc' => __('For example: Sakurairo Blog','sakurairo_csf'), ), array( 'id' => 'author_name', 'type' => 'text', 'title' => __('Author Name','sakurairo_csf'), 'desc' => __('For example: Fuukei','sakurairo_csf'), ), array( 'id' => 'personal_avatar', 'type' => 'upload', 'title' => __('Personal Avatar','sakurairo_csf'), 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'text_logo_options', 'type' => 'switcher', 'title' => __('Mashiro Special Effects Text','sakurairo_csf'), 'label' => __('After turned on, the personal avatar will be replaced by the text as the home page display content','sakurairo_csf'), 'default' => false ), array( 'id' => 'text_logo', 'type' => 'fieldset', 'title' => __('Mashiro Special Effects Text Options','sakurairo_csf'), 'dependency' => array( 'text_logo_options', '==', 'true' ), 'fields' => array( array( 'id' => 'text', 'type' => 'text', 'title' => __('Text','sakurairo_csf'), 'desc' => __('The text content should not be too long, and the recommended length is 16 bytes.','sakurairo_csf'), ), array( 'id' => 'font', 'type' => 'text', 'title' => __('Font','sakurairo_csf'), 'desc' => __('Fill in the font name. For example: Ma Shan Zheng','sakurairo_csf'), ), array( 'id' => 'size', 'type' => 'slider', 'title' => __('Size','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 70-90','sakurairo_csf'), 'unit' => 'px', 'min' => '40', 'max' => '140', ), array( 'id' => 'color', 'type' => 'color', 'title' => __('Color','sakurairo_csf'), 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'), ), ), 'default' => array( 'text' => 'ひょうりゅ', 'size' => '80', 'color' => '#FFF', ), ), array( 'id' => 'iro_logo', 'type' => 'upload', 'title' => __('Navigation Menu Logo','sakurairo_csf'), 'desc' => __('The best size is 40px, and the nav menu text logo will not be displayed after filling in','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'favicon_link', 'type' => 'text', 'title' => __('Site Icon','sakurairo_csf'), 'desc' => __('Fill in the address, which decides the icon next to the title above the browser','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/basic/favicon.ico' ), array( 'id' => 'iro_meta', 'type' => 'switcher', 'title' => __('Custom Site Keywords and Descriptions','sakurairo_csf'), 'label' => __('After turning on, you can customize the site keywords and descriptions','sakurairo_csf'), 'default' => false ), array( 'id' => 'iro_meta_keywords', 'type' => 'text', 'title' => __('Site Keywords','sakurairo_csf'), 'dependency' => array( 'iro_meta', '==', 'true' ), 'desc' => __('The keywords should be separated with half width comma "," and it\'s better to set within 5 keywords','sakurairo_csf'), ), array( 'id' => 'iro_meta_description', 'type' => 'text', 'title' => __('Site Descriptions','sakurairo_csf'), 'dependency' => array( 'iro_meta', '==', 'true' ), 'desc' => __('Use concise words to describe the site, it is recommended to write within 120 words','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'id' => 'global', 'title' => __('Global Options','sakurairo_csf'), 'icon' => 'fa fa-globe', ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Appearance Options','sakurairo_csf'), 'icon' => 'fa fa-tree', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Color Schemes','sakurairo_csf'), ), array( 'id' => 'theme_skin', 'type' => 'color', 'title' => __('Theme Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#505050' ), array( 'id' => 'theme_skin_matching', 'type' => 'color', 'title' => __('Matching Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#ffe066' ), array( 'type' => 'subheading', 'content' => __('Dark Mode','sakurairo_csf'), ), array( 'id' => 'theme_skin_dark', 'type' => 'color', 'title' => __('Dark Mode Theme Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#ffcc00' ), array( 'id' => 'theme_darkmode_auto', 'type' => 'switcher', 'title' => __('Automatically Switch to Dark Mode','sakurairo_csf'), 'label' => __('Default on','sakurairo_csf'), 'default' => true ), array( 'type' => 'content', 'content' => __( '

Client local time:Dark mode will switch on automatically from 22:00 to 7:00

' .'

Follow client settings:Follow client browser settings

' .'

Always on:Always on, except being configured by the client

','sakurairo_csf'), 'dependency' => array( 'theme_darkmode_auto', '==', 'true' ), ), array( 'id' => 'theme_darkmode_strategy', 'type' => 'select', 'title' => __('Automatic Switch Strategy of Dark Mode','sakurairo_csf'), 'dependency' => array( 'theme_darkmode_auto', '==', 'true' ), 'options' => array( 'time' => __('Client local time','sakurairo_csf'), 'client' => __('Follow client settings','sakurairo_csf'), 'eien' => __('Always on','sakurairo_csf'), ), "default"=>"time" ), array( 'id' => 'theme_darkmode_img_bright', 'type' => 'slider', 'title' => __('Dark Mode Image Brightness','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8','sakurairo_csf'), 'step' => '0.01', 'min' => '0.4', 'max' => '1', 'default' => '0.8' ), array( 'id' => 'theme_darkmode_widget_transparency', 'type' => 'slider', 'title' => __('Dark Mode Component Transparency','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8','sakurairo_csf'), 'step' => '0.01', 'min' => '0.2', 'max' => '1', 'default' => '0.8' ), array( 'id' => 'theme_darkmode_background_transparency', 'type' => 'slider', 'title' => __('Dark mode Background Transparency','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 0.6-0.8. In order to ensure the best appearance, please keep the display of the frontend background image','sakurairo_csf'), 'step' => '0.01', 'min' => '0.2', 'max' => '1', 'default' => '0.8' ), array( 'type' => 'subheading', 'content' => __('Other Appearance Related','sakurairo_csf'), ), array( 'id' => 'theme_commemorate_mode', 'type' => 'switcher', 'title' => __('Commemorate Mode','sakurairo_csf'), 'label' => __('After turning on, a black and white filter will be added to the global theme','sakurairo_csf'), 'default' => false ), array( 'id' => 'load_out_svg', 'type' => 'text', 'title' => __('Occupying SVG while Loading Control Units','sakurairo_csf'), 'desc' => __('Fill in the address, which is the SVG displayed when loading control units','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/load_svg/outload.svg' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Font Options','sakurairo_csf'), 'icon' => 'fa fa-font', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Global','sakurairo_csf'), ), array( 'id' => 'global_font_weight', 'type' => 'slider', 'title' => __('Non-Emphasis Text Weight','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 300-500','sakurairo_csf'), 'step' => '10', 'min' => '100', 'max' => '700', 'default' => '300' ), array( 'id' => 'global_font_size', 'type' => 'slider', 'title' => __('Text Font Size','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 15-18','sakurairo_csf'), 'step' => '1', 'unit' => 'px', 'min' => '10', 'max' => '20', 'default' => '15' ), array( 'type' => 'subheading', 'content' => __('External Fonts','sakurairo_csf'), ), array( 'id' => 'reference_exter_font', 'type' => 'switcher', 'title' => __('Reference External Fonts','sakurairo_csf'), 'label' => __('After turning on, you can use external fonts as the default font or other component fonts, but it may affect performance','sakurairo_csf'), 'default' => false ), array( 'id' => 'exter_font_link', 'type' => 'text', 'title' => __('External Font Link','sakurairo_csf'), 'dependency' => array( 'reference_exter_font', '==', 'true' ), ), array( 'id' => 'exter_font_name', 'type' => 'text', 'title' => __('External Font Name','sakurairo_csf'), 'dependency' => array( 'reference_exter_font', '==', 'true' ), ), array( 'id' => 'gfonts_api', 'type' => 'text', 'title' => __('Google Fonts Api Link','sakurairo_csf'), 'default' => 'fonts.loli.net' ), array( 'id' => 'gfonts_add_name', 'type' => 'text', 'title' => __('Google Fonts Name','sakurairo_csf'), 'desc' => __('Please make sure that the added fonts can be referenced in Google Fonts library. Fill in the font names. The added fonts must be preceded by "|". If multiple fonts are referenced, use "|" as the separator. If the font name has spaces, use a plus sign instead. For example: | zcool + xiaowei| Ma + Shan + Zheng','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Navigation Menu Options','sakurairo_csf'), 'icon' => 'fa fa-map-signs', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'nav_menu_style', 'type' => 'image_select', 'title' => __('Nav Menu Style','sakurairo_csf'), 'options' => array( 'sakurairo' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/nav_menu_style_iro.webp', 'sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/nav_menu_style_sakura.webp', ), 'default' => 'sakurairo' ), array( 'id' => 'nav_menu_radius', 'type' => 'slider', 'title' => __('Nav Menu Radius','sakurairo_csf'), 'dependency' => array( 'nav_menu_style', '==', 'sakurairo' ), 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'), 'unit' => 'px', 'max' => '50', 'default' => '15' ), array( 'id' => 'nav_menu_shrink_animation', 'type' => 'slider', 'title' => __('Nav Menu Shrinkage Ratio','sakurairo_csf'), 'dependency' => array( 'nav_menu_style', '==', 'sakurairo' ), 'desc' => __('Slide to set the appropriate ratio according to the content length of the nav menu. When the ratio is set to 95,there will be no shrinkage. This function is off by default','sakurairo_csf'), 'step' => '0.5', 'unit' => '%', 'max' => '95', 'min' => '30', 'default' => '95' ), array( 'id' => 'nav_menu_display', 'type' => 'radio', 'title' => __('Nav Menu Content Display Method','sakurairo_csf'), 'desc' => __('You can choose to unfold or fold the nav menu contents','sakurairo_csf'), 'options' => array( 'unfold' => __('Unfold','sakurairo_csf'), 'fold' => __('Fold','sakurairo_csf'), ), 'default' => 'unfold' ), array( 'id' => 'nav_menu_animation', 'type' => 'switcher', 'title' => __('Nav Menu Animation Effects','sakurairo_csf'), 'label' => __('It is on by default. If it is off, the nav menu content will be displayed directly without effects','sakurairo_csf'), 'default' => true ), array( 'id' => 'nav_menu_animation_time', 'type' => 'slider', 'title' => __('Nav Menu Animation Time','sakurairo_csf'), 'dependency' => array( 'nav_menu_animation', '==', 'true' ), 'desc' => __('Slide to adjust, the recommended value range is 1-2','sakurairo_csf'), 'step' => '0.01', 'unit' => 's', 'max' => '5', 'default' => '2' ), array( 'id' => 'nav_menu_icon_size', 'type' => 'radio', 'title' => __('Nav Menu Icon Size','sakurairo_csf'), 'options' => array( 'standard' => __('Standard','sakurairo_csf'), 'large' => __('Large','sakurairo_csf'), ), 'default' => 'standard' ), array( 'id' => 'nav_menu_search', 'type' => 'switcher', 'title' => __('Nav Menu Search','sakurairo_csf'), 'label' => __('It is on by default. Click to enter the search area','sakurairo_csf'), 'default' => true ), array( 'id' => 'nav_menu_blur', 'type' => 'slider', 'title' => __('Nav Menu Blur','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value is 5px, and this function will be off when set to 0px','sakurairo_csf'), 'unit' => 'px', 'max' => '20', 'default' => '0' ), array( 'id' => 'search_area_background', 'type' => 'upload', 'title' => __('Search Area Background Image','sakurairo_csf'), 'desc' => __('Set the background image of your search area. Leave this option blank to display a white background','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/basic/iloli.gif' ), array( 'id' => 'nav_menu_user_avatar', 'type' => 'switcher', 'title' => __('Nav Menu User Avatar','sakurairo_csf'), 'label' => __('It is on by default. Click to enter the login interface','sakurairo_csf'), 'default' => true ), array( 'id' => 'unlisted_avatar', 'type' => 'upload', 'title' => __('Nav Menu Unlisted User Avatar','sakurairo_csf'), 'dependency' => array( 'nav_menu_user_avatar', '==', 'true' ), 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/basic/topavatar.png' ), array( 'id' => 'nav_menu_secondary_arrow', 'type' => 'switcher', 'title' => __('Secondary Menu Prompt Arrow','sakurairo_csf'), 'label' => __('After turning on, the menu prompt arrow will appear in the secondary menu of the navigation menu','sakurairo_csf'), 'dependency' => array( 'nav_menu_style', '==', 'sakura' ), 'default' => false ), array( 'id' => 'nav_menu_secondary_radius', 'type' => 'slider', 'title' => __('Secondary Menu Radius','sakurairo_csf'), 'dependency' => array( 'nav_menu_style', '==', 'sakurairo' ), 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'), 'unit' => 'px', 'max' => '30', 'default' => '15' ), array( 'id' => 'logo_text', 'type' => 'text', 'title' => __('Nav Menu Logo Text','sakurairo_csf'), 'desc' => __('Fill in the text. If the Mashiro logo is turned on, this option will be invalid','sakurairo_csf'), 'dependency' => array( 'mashiro_logo_option', '==', 'false' ), ), array( 'id' => 'mashiro_logo_option', 'type' => 'switcher', 'title' => __('Mashiro Logo','sakurairo_csf'), 'label' => __('After turning on, the Mashiro Logo will appear and replace the navigation menu logo position','sakurairo_csf'), 'default' => false ), array( 'id' => 'mashiro_logo', 'type' => 'fieldset', 'title' => __('Mashiro Logo Options','sakurairo_csf'), 'dependency' => array( 'mashiro_logo_option', '==', 'true' ), 'fields' => array( array( 'id' => 'text_a', 'type' => 'text', 'title' => __('Text A','sakurairo_csf'), ), array( 'id' => 'text_b', 'type' => 'text', 'title' => __('Text B','sakurairo_csf'), ), array( 'id' => 'text_c', 'type' => 'text', 'title' => __('Text C','sakurairo_csf'), ), array( 'id' => 'text_secondary', 'type' => 'text', 'title' => __('Secondary Text','sakurairo_csf'), ), array( 'id' => 'font_link', 'type' => 'text', 'title' => __('Font Link','sakurairo_csf'), ), array( 'id' => 'font_name', 'type' => 'text', 'title' => __('Font Name','sakurairo_csf'), ), ), 'default' => array( 'text_a' => '', 'text_b' => '', 'text_c' => '', 'text_secondary' => '', 'font_link' => 'https://fonts.loli.net/css?family=ZCOOL+QingKe+HuangYou&display=swap', 'font_name' => 'ZCOOL QingKe HuangYou', ), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Style Menu and Frontend Background Related Options','sakurairo_csf'), 'icon' => 'fa fa-th-large', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Style Menu','sakurairo_csf'), ), array( 'id' => 'style_menu_display', 'type' => 'image_select', 'title' => __('Style Menu Display','sakurairo_csf'), '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'), 'options' => array( 'full' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/style_menu_full.webp', 'mini' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/style_menu_mini.webp', ), 'default' => 'full' ), array( 'id' => 'style_menu_radius', 'type' => 'slider', 'title' => __('Style Menu Button Radius','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value is 10','sakurairo_csf'), 'unit' => 'px', 'max' => '50', 'default' => '10' ), array( 'id' => 'style_menu_background_color', 'type' => 'color', 'title' => __('Style Menu Background Color','sakurairo_csf'), 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'), 'default' => 'rgba(255,255,255,0.8)' ), array( 'id' => 'style_menu_selection_color', 'type' => 'color', 'title' => __('Style Menu Option Background Color','sakurairo_csf'), 'desc' => __('Customize the colors, it is recommended to use a light color that corresponds with the theme color','sakurairo_csf'), 'default' => '#e8e8e8' ), array( 'id' => 'style_menu_selection_radius', 'type' => 'slider', 'title' => __('Style Menu Options Interface Radius','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'), 'unit' => 'px', 'max' => '30', 'default' => '15' ), array( 'type' => 'subheading', 'content' => __('Frontend Background','sakurairo_csf'), ), array( 'id' => 'reception_background_size', 'type' => 'select', 'options' => array( 'cover' => __('Cover','sakurairo_csf'), 'contain' => __('Contain','sakurairo_csf'), 'auto' => __('Auto','sakurairo_csf'), ), 'title' => __('Frontend Background Scaling Method','sakurairo_csf'), 'desc' => __('You can choose two ways to scale the frontend background, the default is auto-scaling','sakurairo_csf'), 'default' => 'auto' ), array( 'id' => 'reception_background_blur', 'type' => 'switcher', 'title' => __('Background Transparency Blur','sakurairo_csf'), 'label' => __('After opening Background Transparency Blur','sakurairo_csf'), 'default' => false ), array( 'id' => 'reception_background', 'type' => 'tabbed', 'title' => __('Frontend Background Options','sakurairo_csf'), 'tabs' => array( array( 'title' => __('Default','sakurairo_csf'), 'icon' => 'fa fa-television', 'fields' => array( array( 'id' => 'img1', 'type' => 'upload', 'title' => __('Image','sakurairo_csf'), ), ) ), array( 'title' => __('Heart Shaped','sakurairo_csf'), 'icon' => 'fa fa-heart-o', 'fields' => array( array( 'id' => 'heart_shaped', 'type' => 'switcher', 'title' => __('Switch','sakurairo_csf'), ), array( 'id' => 'img2', 'type' => 'upload', 'title' => __('Image','sakurairo_csf'), ), ) ), array( 'title' => __('Star Shaped','sakurairo_csf'), 'icon' => 'fa fa-star-o', 'fields' => array( array( 'id' => 'star_shaped', 'type' => 'switcher', 'title' => __('Switch','sakurairo_csf'), ), array( 'id' => 'img3', 'type' => 'upload', 'title' => __('Image','sakurairo_csf'), ), ) ), array( 'title' => __('Square Shaped','sakurairo_csf'), 'icon' => 'fa fa-delicious', 'fields' => array( array( 'id' => 'square_shaped', 'type' => 'switcher', 'title' => __('Switch','sakurairo_csf'), ), array( 'id' => 'img4', 'type' => 'upload', 'title' => __('Image','sakurairo_csf'), ), ) ), array( 'title' => __('Lemon Shaped','sakurairo_csf'), 'icon' => 'fa fa-lemon-o', 'fields' => array( array( 'id' => 'lemon_shaped', 'type' => 'switcher', 'title' => __('Switch','sakurairo_csf'), ), array( 'id' => 'img5', 'type' => 'upload', 'title' => __('Image','sakurairo_csf'), ), ) ), ), 'default' => array( 'heart_shaped' => true, 'star_shaped' => true, 'square_shaped' => true, 'lemon_shaped' => true, 'img2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/background/bg1.png', 'img3' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/background/bg2.png', 'img4' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/background/bg3.png', 'img5' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/background/bg4.png', ) ), array( 'id' => 'reception_background_transparency', 'type' => 'slider', 'title' => __('Background Transparency in the Frontend','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended sliding value range is 0.6-0.8','sakurairo_csf'), 'step' => '0.01', 'min' => '0.2', 'max' => '1', 'default' => '0.8' ), array( 'type' => 'subheading', 'content' => __('Font Area','sakurairo_csf'), ), array( 'id' => 'global_default_font', 'type' => 'text', 'title' => __('Global Default Font/Style Menu Font A','sakurairo_csf'), 'desc' => __('Fill in the font name. For example: Ma Shan Zheng','sakurairo_csf'), ), array( 'id' => 'global_font_2', 'type' => 'text', 'title' => __('Style Menu Font B','sakurairo_csf'), 'dependency' => array( 'style_menu_display', '==', 'full' ), 'desc' => __('Fill in the font name. For example: Ma Shan Zheng','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Footer Options','sakurairo_csf'), 'icon' => 'fa fa-caret-square-o-down', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'aplayer_server', 'type' => 'select', 'title' => __('Footer Online Music Player','sakurairo_csf'), 'desc' => __('A button will appear at the bottom left corner of the footer after turning on, click it and the footer online player will be displayed','sakurairo_csf'), 'options' => array( 'off' => __('Off','sakurairo_csf'), 'netease' => __('Netease Cloud Music','sakurairo_csf'), 'kugou' => __('Kugou Music(may not be available)','sakurairo_csf'), 'baidu' => __('Baidu Music(not available on servers overseas)','sakurairo_csf'), 'tencent' => __('QQ Music(may not be available)','sakurairo_csf'), ), 'default' => 'off' ), array( 'id' => 'aplayer_server_proxy', 'type' => 'text', 'title' => __('Footer Online Music Player Proxy','sakurairo_csf'), 'dependency' => array( 'aplayer_server', '!=', 'off' ), 'desc' => __('Ex. http://127.0.0.1:8080. Reference: https://curl.se/libcurl/c/CURLOPT_PROXY.html','sakurairo_csf'), 'default' => '' ), array( 'id' => 'aplayer_playlistid', 'type' => 'text', 'title' => __('Footer Online Music Player Songlist ID','sakurairo_csf'), 'dependency' => array( 'aplayer_server', '!=', 'off' ), 'desc' => __('Fill in the song ID, e.g. https://music.163.com/#/playlist?id=5380675133 SongID:5380675133','sakurairo_csf'), 'default' => '5380675133' ), array( 'id' => 'aplayer_order', 'type' => 'select', 'title' => __('Footer Online Music Player Mode','sakurairo_csf'), 'dependency' => array( 'aplayer_server', '!=', 'off' ), 'desc' => __('Select music player mode','sakurairo_csf'), 'options' => array( 'list' => __('List','sakurairo_csf'), 'random' => __('Random','sakurairo_csf'), ), 'default' => 'list' ), array( 'id' => 'aplayer_preload', 'type' => 'select', 'title' => __('Footer Online Music Player Preload','sakurairo_csf'), 'dependency' => array( 'aplayer_server', '!=', 'off' ), 'desc' => __('Whether to preload songs','sakurairo_csf'), 'options' => array( 'none' => __('Off','sakurairo_csf'), 'metadata' => __('Preload Metadata','sakurairo_csf'), 'auto' => __('Auto','sakurairo_csf'), ), 'default' => 'auto' ), array( 'id' => 'aplayer_volume', 'type' => 'slider', 'title' => __('Default Volume of Footer Online Music Player','sakurairo_csf'), 'dependency' => array( 'aplayer_server', '!=', 'off' ), 'desc' => __('Slide to adjust, the recommended sliding value range is 0.4-0.6','sakurairo_csf'), 'step' => '0.01', 'max' => '1', 'default' => '0.5' ), array( 'id' => 'aplayer_cookie', 'type' => 'textarea', 'title' => __('Netease Cloud Music Cookies','sakurairo_csf'), 'dependency' => array( 'aplayer_server', '==', 'netease' ), 'desc' => __('If you want to play VIP music on Netease Cloud Music Platform, please fill in your account cookies in this option.','sakurairo_csf'), ), array( 'id' => 'sakura_widget', 'type' => 'switcher', 'title' => __('Footer Widget Area','sakurairo_csf'), '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'), 'default' => false ), array( 'id' => 'sakura_widget_background', 'type' => 'upload', 'title' => __('Footer Widget Area Background','sakurairo_csf'), 'dependency' => array( 'sakura_widget', '==', 'true' ), 'desc' => __('The best picture size is 400px × 460px','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'footer_sakura_icon', 'type' => 'switcher', 'title' => __('Footer Dynamic Sakura Icon','sakurairo_csf'), 'label' => __('Dynamic Sakura icon will appear at the end of the page after turning on','sakurairo_csf'), 'default' => false ), array( 'id' => 'footer_load_occupancy', 'type' => 'switcher', 'title' => __('Footer Load Occupancy Query','sakurairo_csf'), 'label' => __('Load occupancy information will appear at the end of the page after turning it on. Not recommended in production environment.','sakurairo_csf'), 'default' => false ), array( 'id' => 'footer_upyun', 'type' => 'switcher', 'title' => __('Footer Upyun League Logo','sakurairo_csf'), 'label' => __('Upyun Logo will appear at the end of the page after turning it on','sakurairo_csf'), 'default' => false ), array( 'id' => 'footer_info', 'type' => 'textarea', 'title' => __('Footer Info','sakurairo_csf'), 'desc' => __('Footer description text, supports HTML code','sakurairo_csf'), 'default' => 'Copyright © by FUUKEI All Rights Reserved.' ), array( 'id'=>'footer_addition', 'type' => 'code_editor', 'sanitize' => false, 'title' => __('Footer Addition','sakurairo_csf'), 'desc' => __('Add HTML code at the end of the page. Useful for adding customize JavaScript.','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Hitokoto','sakurairo_csf'), ), array( 'id' => 'footer_yiyan', 'type' => 'switcher', 'title' => __('Footer Hitokoto','sakurairo_csf'), 'label' => __('Hitokoto will appear at the end of the page after turning it on','sakurairo_csf'), 'default' => false ), array( 'type' => 'content', 'dependency' => array( 'footer_yiyan', '==', 'true' ), 'content' => __('

Hitokoto API Setup Instructions

' .'

Fill in as the example: ["https://api.maho.cc/yiyan/", "https://v1.hitokoto.cn/"], where the first API will be used first and the next ones will be the backup.

' .'

Official API: See the documentation for how to use it, and the parameter "return code" should not be anything except JSON. https://v1.hitokoto.cn/

' .'

Maho API: An reverse proxy mirror of the official API. https://api.maho.cc/yiyan/

','sakurairo_csf'), ), array( 'id' => 'yiyan_api', 'type' => 'textarea', 'title' => __('Hitokoto API address','sakurairo_csf'), 'dependency' => array( 'footer_yiyan', '==', 'true' ), 'desc' => __('Fill in the address in JavaScript array format','sakurairo_csf'), 'default' => '["https://v1.hitokoto.cn/","https://api.maho.cc/yiyan/"]' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Cursor Options','sakurairo_csf'), 'icon' => 'fa fa-i-cursor', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'cursor_nor', 'type' => 'text', 'title' => __('Standard Cursor Style','sakurairo_csf'), 'desc' => __('Apply to global, fill in ".cur" mouse file link','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/cursor/normal.cur' ), array( 'id' => 'cursor_no', 'type' => 'text', 'title' => __('Selected Cursor Style','sakurairo_csf'), 'desc' => __('Apply to multiple styles, fill in ".cur" file link','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/cursor/No_Disponible.cur' ), array( 'id' => 'cursor_ayu', 'type' => 'text', 'title' => __('Selected Control Unit Cursor Style','sakurairo_csf'), 'desc' => __('Apply to selected control unit, fill in ".cur" file link','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/cursor/ayuda.cur' ), array( 'id' => 'cursor_text', 'type' => 'text', 'title' => __('Selected Text Cursor Style','sakurairo_csf'), 'desc' => __('Apply to selected text, fill in ".cur" file link','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/cursor/texto.cur' ), array( 'id' => 'cursor_work', 'type' => 'text', 'title' => __('Work Status Cursor Style','sakurairo_csf'), 'desc' => __('Apply to load control unit, fill in ".cur" file link','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/cursor/work.cur' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'global', 'title' => __('Additional Options','sakurairo_csf'), 'icon' => 'fa fa-gift', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Effects&Animations','sakurairo_csf'), ), array( 'id' => 'preload_animation', 'type' => 'switcher', 'title' => __('Preload Animation','sakurairo_csf'), 'label' => __('Preload animation before new pages load; To enable this option, ensure your page resources can load properly.' ,'sakurairo_csf'), 'default' => false ), array( 'id' => 'preload_animation_color1', 'type' => 'color', 'title' => __('Preload Animation Color A','sakurairo_csf'), 'dependency' => array( 'preload_animation', '==', 'true' ), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#ffea99' ), array( 'id' => 'preload_animation_color2', 'type' => 'color', 'title' => __('Preload Animation Color B','sakurairo_csf'), 'dependency' => array( 'preload_animation', '==', 'true' ), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#ffcc00' ), array( 'id' => 'preload_blur', 'title' => __('Preload Animation Blur Transition Effect','sakurairo_csf'), 'dependency' => array( 'preload_animation', '==', 'true' ), 'desc' => __('Blur transition duration in milliseconds ms, off when set to 0.' ,'sakurairo_csf'), 'default' => '0', 'type' => 'slider', 'step' => '10', 'max' => '10000', ), array( 'id' => 'sakura_falling_effects', 'type' => 'select', 'title' => __('Sakura Falling Effects','sakurairo_csf'), 'options' => array( 'off' => __('Off','sakurairo_csf'), 'native' => __('Native Quantity','sakurairo_csf'), 'quarter' => __('Quarter Quantity','sakurairo_csf'), 'half' => __('Half Quantity','sakurairo_csf'), 'less' => __('Less Quantity','sakurairo_csf'), ), 'default' => 'off' ), array( 'id' => 'particles_effects', 'type' => 'switcher', 'title' => __('Particles Effects','sakurairo_csf'), 'dependency' => array( 'sakura_falling_effects', '==', 'off' ), 'label' => __('Particles effects will appear in the global background. Please open the Cover-and-Frontend-Background-Integration Options to get the best experience','sakurairo_csf'), 'default' => false ), array( 'id'=> 'particles_json', 'type' => 'code_editor', 'sanitize' => false, 'title' => __('Particles JSON','sakurairo_csf'), 'dependency' => array( 'particles_effects', '==', 'true' ), 'desc' => __('You can go to the Project Address to generate your unique Particles Effects','sakurairo_csf'), 'default' => ' { "particles": { "number": { "value": 200, "density": { "enable": true, "value_area": 800 } }, "color": { "value": "#fff" }, "shape": { "type": "circle", "stroke": { "width": 0, "color": "#000000" }, "polygon": { "nb_sides": 5 }, "image": { "src": "img/github.svg", "width": 100, "height": 100 } }, "opacity": { "value": 0.5, "random": true, "anim": { "enable": false, "speed": 1, "opacity_min": 0.1, "sync": false } }, "size": { "value": 10, "random": true, "anim": { "enable": false, "speed": 40, "size_min": 0.1, "sync": false } }, "line_linked": { "enable": false, "distance": 500, "color": "#ffffff", "opacity": 0.4, "width": 2 }, "move": { "enable": true, "speed": 2, "direction": "bottom", "random": false, "straight": false, "out_mode": "out", "bounce": false, "attract": { "enable": false, "rotateX": 600, "rotateY": 1200 } } }, "interactivity": { "detect_on": "canvas", "events": { "onhover": { "enable": true, "mode": "bubble" }, "onclick": { "enable": true, "mode": "repulse" }, "resize": true }, "modes": { "grab": { "distance": 400, "line_linked": { "opacity": 0.5 } }, "bubble": { "distance": 400, "size": 4, "duration": 0.3, "opacity": 1, "speed": 3 }, "repulse": { "distance": 200, "duration": 0.4 }, "push": { "particles_nb": 4 }, "remove": { "particles_nb": 2 } } }, "retina_detect": true }' ), array( 'id' => 'note_effects', 'type' => 'switcher', 'title' => __('Note Touch Effects','sakurairo_csf'), 'label' => __('After turning on, there will be a note sound alert when the back to top button and Mashiro style logo touch','sakurairo_csf'), 'default' => false ), array( 'type' => 'subheading', 'content' => __('Feature','sakurairo_csf'), ), array( 'id' => 'poi_pjax', 'type' => 'switcher', 'title' => __('PJAX Partial Refresh','sakurairo_csf'), 'label' => __('Enabled by default, clicking to a new page will not require reloading','sakurairo_csf'), 'default' => true ), array( 'id' => 'nprogress_on', 'type' => 'switcher', 'title' => __('NProgress Loading Progress Bar','sakurairo_csf'), 'label' => __('Enabled by default, when loading page there will be a progress bar alert','sakurairo_csf'), 'default' => true ), array( 'id' => 'smoothscroll_option', 'type' => 'switcher', 'title' => __('Global Smooth Scroll','sakurairo_csf'), 'label' => __('Enabled by default, page scrolling will be smoother','sakurairo_csf'), 'default' => true ), array( 'id' => 'captcha_select', 'type' => 'select', 'title' => __('Captcha Selection','sakurairo_csf'), 'options' => array( 'off' => __('Off','sakurairo_csf'), 'iro_captcha' => __('Theme Built in Captcha','sakurairo_csf'), 'vaptcha' => __('Vaptcha','sakurairo_csf') ), 'default' => 'off', ), array( 'id' => 'vaptcha_vid', 'type' => 'text', 'title' => __('Vaptcha VID','sakurairo_csf'), 'dependency' => array( 'captcha_select', '==', 'vaptcha' ), 'desc' => __('Fill in your Vaptcha VID','sakurairo_csf'), ), array( 'id' => 'vaptcha_key', 'type' => 'text', 'title' => __('Vaptcha KEY','sakurairo_csf'), 'dependency' => array( 'captcha_select', '==', 'vaptcha' ), 'desc' => __('Fill in your Vaptcha KEY','sakurairo_csf'), ), array( 'id' => 'vaptcha_scene', 'type' => 'select', 'title' => __('Vaptcha Scene','sakurairo_csf'), 'dependency' => array( 'captcha_select', '==', 'vaptcha' ), 'options' => array( '1' => __(1,'sakurairo_csf'), '2' => __(2,'sakurairo_csf'), '3' => __(3,'sakurairo_csf'), '4' => __(4,'sakurairo_csf'), '5' => __(5,'sakurairo_csf'), '6' => __(6,'sakurairo_csf'), ), 'default' => 1, ), array( 'id' => 'pagenav_style', 'type' => 'radio', 'title' => __('Pagination Mode','sakurairo_csf'), 'options' => array( 'ajax' => __('Ajax Load','sakurairo_csf'), 'np' => __('Page Up/Down','sakurairo_csf'), ), 'default' => 'ajax' ), array( 'id' => 'page_auto_load', 'type' => 'select', 'title' => __('Next Page Auto Load','sakurairo_csf'), 'dependency' => array( 'pagenav_style', '==', 'ajax' ), 'options' => array( '233' => __('do not autoload','sakurairo_csf'), '0' => __('0 Sec','sakurairo_csf'), '1' => __('1 Sec','sakurairo_csf'), '2' => __('2 Sec','sakurairo_csf'), '3' => __('3 Sec','sakurairo_csf'), '4' => __('4 Sec','sakurairo_csf'), '5' => __('5 Sec','sakurairo_csf'), '6' => __('6 Sec','sakurairo_csf'), '7' => __('7 Sec','sakurairo_csf'), '8' => __('8 Sec','sakurairo_csf'), '9' => __('9 Sec','sakurairo_csf'), '10' => __('10 Sec','sakurairo_csf'), ), 'default' => '233' ), array( 'id' => 'load_nextpage_svg', 'type' => 'text', 'title' => __('Placeholder SVG when loading the next page','sakurairo_csf'), 'desc' => __('Fill in the address, this is the SVG that will be displayed as a placeholder when the next page is loading','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/load_svg/ball.svg' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'id' => 'homepage', 'title' => __('HomePage Options','sakurairo_csf'), 'icon' => 'fa fa-home', ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'homepage', 'title' => __('Cover Options','sakurairo_csf'), 'icon' => 'fa fa-laptop', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'cover_switch', 'type' => 'switcher', 'title' => __('Cover Switch','sakurairo_csf'), 'label' => __('On by default, if off, all options below will be disabled','sakurairo_csf'), 'default' => true ), array( 'id' => 'cover_full_screen', 'type' => 'switcher', 'title' => __('Cover Full Screen','sakurairo_csf'), 'label' => __('Default on','sakurairo_csf'), 'default' => true ), array( 'id' => 'cover_half_screen_curve', 'type' => 'switcher', 'dependency' => array( 'cover_full_screen', '==', 'false' ), 'title' => __('Cover Arc Occlusion (Below)','sakurairo_csf'), 'label' => __('An arc occlusion will appear below the cover when turned on','sakurairo_csf'), 'default' => false ), array( 'id' => 'cover_radius', 'type' => 'slider', 'title' => __('Cover Radius','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 15-20','sakurairo_csf'), 'unit' => 'px', 'max' => '60', 'default' => '15' ), array( 'id' => 'cover_animation', 'type' => 'switcher', 'title' => __('Cover Animation','sakurairo_csf'), 'label' => __('On by default, if off, the cover will be displayed directly','sakurairo_csf'), 'default' => true ), array( 'id' => 'cover_animation_time', 'type' => 'slider', 'title' => __('Cover Animation Time','sakurairo_csf'), 'dependency' => array( 'cover_animation', '==', 'true' ), 'desc' => __('Slide to adjust, the recommended value range is 1-2','sakurairo_csf'), 'step' => '0.01', 'unit' => 's', 'max' => '5', 'default' => '2' ), array( 'id' => 'infor_bar', 'type' => 'switcher', 'title' => __('Cover Info Bar','sakurairo_csf'), 'label' => __('Enabled by default, show avatar, Mashiro effects text, signature bar, social area','sakurairo_csf'), 'default' => true ), array( 'id' => 'infor_bar_style', 'type' => 'image_select', 'title' => __('Cover Info Bar Style','sakurairo_csf'), 'options' => array( 'v1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/infor_bar_style_v1.webp', 'v2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/infor_bar_style_v2.webp', ), 'default' => 'v1' ), array( 'id' => 'infor_bar_bgcolor', 'type' => 'color', 'title' => __('Cover Info Bar Background Color','sakurairo_csf'), 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'), 'default' => 'rgba(255,255,255,0.8)' ), array( 'id' => 'avatar_radius', 'type' => 'slider', 'title' => __('Cover Info Bar Avatar Radius','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value is 100','sakurairo_csf'), 'unit' => 'px', 'default' => '100' ), array( 'id' => 'signature_radius', 'type' => 'slider', 'title' => __('Cover Signature Bar Rounded','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range 10-20','sakurairo_csf'), 'unit' => 'px', 'max' => '50', 'default' => '15' ), array( 'id' => 'signature_text', 'type' => 'text', 'title' => __('Cover Signature Field Text','sakurairo_csf'), 'desc' => __('A self-descriptive quote','sakurairo_csf'), 'default' => '本当の声を響かせてよ' ), array( 'id' => 'signature_font', 'type' => 'text', 'title' => __('Cover Signature Field Text Font','sakurairo_csf'), 'desc' => __('Fill in the font name. For example: Ma Shan Zheng','sakurairo_csf'), 'default' => 'Noto Serif SC' ), array( 'id' => 'signature_font_size', 'type' => 'slider', 'title' => __('Cover Signature Field Text Font Size','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 15-18','sakurairo_csf'), 'unit' => 'px', 'min' => '5', 'max' => '20', 'default' => '16' ), array( 'id' => 'signature_typing', 'type' => 'switcher', 'title' => __('Cover Signature Bar Typing Effects','sakurairo_csf'), 'label' => __('When turned on, the signature bar text will have an additional paragraph of text and will be rendered with typing effects','sakurairo_csf'), 'default' => false ), array( 'id' => 'signature_typing_marks', 'type' => 'switcher', 'title' => __('Cover Signature Field Typing Effects Double Quotes','sakurairo_csf'), 'dependency' => array( 'signature_typing', '==', 'true' ), 'label' => __('Typing effects will be appended with double quotes when turned on','sakurairo_csf'), 'default' => false ), array( 'id' => 'signature_typing_placeholder', 'type' => 'text', 'title' => __('Cover Signature Field Typing Effects Placeholder','sakurairo_csf'), 'dependency' => array( 'signature_typing', '==', 'true' ), 'default' => '疯狂造句中......' ), array( 'id' => 'signature_typing_json', 'type' => 'code_editor', 'sanitize' => false, 'title' => __('Typed.js initial option','sakurairo_csf'), 'dependency' => array( 'signature_typing', '==', 'true' ), 'default' => '{"strings":["给时光以生命,给岁月以文明"],"typeSpeed":140,"backSpeed":50,"loop":false,"showCursor":true}' ), array( 'id' => 'random_graphs_options', 'type' => 'select', 'title' => __('Cover Random Image Options','sakurairo_csf'), 'options' => array( 'external_api' => __('External API','sakurairo_csf'), 'webp_optimization' => __('Webp optimized','sakurairo_csf'), 'local' => __('Local','sakurairo_csf'), ), 'default' => 'external_api' ), array( 'id' => 'random_graphs_mts', 'type' => 'switcher', 'title' => __('Cover Random Image Multi-terminal Separation','sakurairo_csf'), 'label' => __('Enabled by default, desktop and mobile devices will use separate random image addresses','sakurairo_csf'), 'default' => true ), array( 'id' => 'random_graphs_link', 'type' => 'text', 'title' => __('Webp Optimization/External API Desktop Side Random Graphics Address','sakurairo_csf'), 'desc' => __('Fill in an URL','sakurairo_csf'), 'default' => 'https://api.maho.cc/random-img/pc.php', 'sanitize' => false, 'validate' => 'csf_validate_url', ), array( 'id' => 'random_graphs_link_mobile', 'type' => 'text', 'title' => __('External API Mobile Devices Random Image Address','sakurairo_csf'), 'dependency' => array( 'random_graphs_mts', '==', 'true' ), 'desc' => __('Fill in an URL','sakurairo_csf'), 'default' => 'https://api.maho.cc/random-img/mobile.php', 'sanitize' => false, 'validate' => 'csf_validate_url', ), array( 'id' => 'cache_cover', 'type' => 'switcher', 'title' => __('Cover Random Background Image Cache','sakurairo_csf'), 'label' => __('Enabled by default, this feature will cache a cover image locally, which can improve the loading speed of the first cover after entering the homepage. Note: This feature needs the cover APIs that accept cross-domain requests.' ,'sakurairo_csf'), 'default' => true ), array( 'id' => 'site_bg_as_cover', 'type' => 'switcher', 'title' => __('Cover and Frontend Background Integration','sakurairo_csf'), 'label' => __('When enabled, the background of the cover will be set to transparent, while the frontend background will use the cover\'s random image API','sakurairo_csf'), 'default' => false ), array( 'id' => 'random_graphs_filter', 'type' => 'select', 'title' => __('Cover Random Images Filter','sakurairo_csf'), 'options' => array( 'filter-nothing' => __('No filter','sakurairo_csf'), 'filter-undertint' => __('Light filter','sakurairo_csf'), 'filter-dim' => __('Dimmed filter','sakurairo_csf'), 'filter-grid' => __('Grid filter','sakurairo_csf'), 'filter-dot' => __('Dot filter','sakurairo_csf'), ), 'default' => 'filter-nothing' ), array( 'id' => 'wave_effects', 'type' => 'switcher', 'title' => __('Cover Wave Effects','sakurairo_csf'), 'label' => __('Wave effect will appear at the bottom of the cover of the home page after turning on, and it will be forced off in the dark mode','sakurairo_csf'), 'default' => false ), array( 'id' => 'drop_down_arrow', 'type' => 'switcher', 'title' => __('Cover Dropdown Arrow','sakurairo_csf'), 'label' => __('Enabled by default, show a dropdown arrow at bottom of home cover','sakurairo_csf'), 'default' => true ), array( 'id' => 'drop_down_arrow_mobile', 'type' => 'switcher', 'title' => __('Cover Dropdown Arrow Display on Mobile Devices','sakurairo_csf'), 'dependency' => array( 'drop_down_arrow', '==', 'true' ), 'label' => __('Drop down arrow will appear at the bottom of the mobile devices\' home cover after turning it on','sakurairo_csf'), 'default' => false ), array( 'id' => 'drop_down_arrow_color', 'type' => 'color', 'title' => __('Cover Dropdown Arrow Color','sakurairo_csf'), 'dependency' => array( 'drop_down_arrow', '==', 'true' ), 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'), 'default' => 'rgba(255,255,255,0.8)' ), array( 'id' => 'drop_down_arrow_dark_color', 'type' => 'color', 'title' => __('Cover Dropdown Arrow Color (Dark Mode)','sakurairo_csf'), 'dependency' => array( 'drop_down_arrow', '==', 'true' ), 'desc' => __('Customize the colors, dark colors are recommended','sakurairo_csf'), 'default' => 'rgba(51,51,51,0.8)' ), array( 'id' => 'cover_video', 'type' => 'switcher', 'title' => __('Cover Video','sakurairo_csf'), 'label' => __('Use a video instead of the images as the cover','sakurairo_csf'), 'default' => false ), array( 'id' => 'cover_video_loop', 'type' => 'switcher', 'title' => __('Cover Video Loop','sakurairo_csf'), 'dependency' => array( 'cover_video', '==', 'true' ), 'label' => __('Video will loop automatically when enabled.','sakurairo_csf'), 'default' => false ), array( 'id' => 'cover_video_live', 'type' => 'switcher', 'title' => __('Cover Video Auto Resume','sakurairo_csf'), 'dependency' => array( 'cover_video', '==', 'true' ), 'label' => __('Cover Video will resume automatically when coming back to homepage while Pjax enabled.','sakurairo_csf'), 'default' => false ), array( 'id' => 'cover_video_link', 'type' => 'text', 'title' => __('Cover Video URL Base Path','sakurairo_csf'), 'dependency' => array( 'cover_video', '==', 'true' ), 'validate' => 'iro_validate_optional_url', 'desc' => __("Fill in the base path your video located at. For example: https://localhost. Your site's URL is used as default. Please pay attention to the protocol name of the URL.",'sakurairo_csf'), ), array( 'id' => 'cover_video_title', 'type' => 'text', 'title' => __('Cover Video File Name','sakurairo_csf'), 'dependency' => array( 'cover_video', '==', 'true' ), 'desc' => __('For example: abc.mp4. Multiple videos should be separated by English commas like "abc.mp4,efg.mp4," Random play is on by default.','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'homepage', 'title' => __('Cover Social Area Options','sakurairo_csf'), 'icon' => 'fa fa-share-square-o', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Related Options','sakurairo_csf'), ), array( 'id' => 'social_area', 'type' => 'switcher', 'title' => __('Cover Social Area','sakurairo_csf'), 'label' => __('Enabled by default, show cover random image toggle button and social network icons','sakurairo_csf'), 'default' => true ), array( 'id' => 'social_display_icon', 'type' => 'image_select', 'title' => __('Social Icon','sakurairo_csf'), 'desc' => __('Select your favorite icon pack. Icon pack references are detailed in the "About Theme" section','sakurairo_csf'), 'options' => array( 'display_icon/fluent_design' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_fd.gif', 'display_icon/muh2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_h2.gif', 'display_icon/flat_colorful' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_fc.gif', 'display_icon/sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_sa.gif', 'display_icon/macaronblue' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_mb.webp', 'display_icon/macarongreen' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_mg.webp', 'display_icon/macaronpurple' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_mp.webp', 'display_icon/pink' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_sp.webp', 'display_icon/orange' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_so.webp', 'display_icon/sangosyu' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_sg.webp', 'display_icon/sora' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_ts.webp', 'display_icon/nae' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/display_icon_nn.webp', ), 'default' => 'display_icon/fluent_design' ), array( 'id' => 'social_area_radius', 'type' => 'slider', 'title' => __('Cover Social Area Rounded Corners','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('Slide to adjust, the recommended value range is 10-20','sakurairo_csf'), 'unit' => 'px', 'max' => '30', 'default' => '15' ), array( 'id' => 'cover_random_graphs_switch', 'type' => 'switcher', 'title' => __('Switch Button of Random Images','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'label' => __('Enabled by default, show cover random image toggle button','sakurairo_csf'), 'default' => true ), array( 'type' => 'subheading', 'content' => __('Social Network','sakurairo_csf'), ), array( 'id' => 'wechat', 'type' => 'upload', 'title' => __('Wechat','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'qq', 'type' => 'text', 'title' => __('QQ','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('Please note the format of filling out the form, e.g. tencent://message/?uin=123456','sakurairo_csf'), ), array( 'id' => 'bili', 'type' => 'text', 'title' => __('Bilibili','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'wangyiyun', 'type' => 'text', 'title' => __('NetEase Music','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'sina', 'type' => 'text', 'title' => __('Weibo','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'github', 'type' => 'text', 'title' => __('Github','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'telegram', 'type' => 'text', 'title' => __('Telegram','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'steam', 'type' => 'text', 'title' => __('Steam','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'zhihu', 'type' => 'text', 'title' => __('ZhiHu','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'qzone', 'type' => 'text', 'title' => __('QZone','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'lofter', 'type' => 'text', 'title' => __('Lofter','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'youku', 'type' => 'text', 'title' => __('Youku','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'linkedin', 'type' => 'text', 'title' => __('Linkedin','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'twitter', 'type' => 'text', 'title' => __('Twitter','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'facebook', 'type' => 'text', 'title' => __('Facebook','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'csdn', 'type' => 'text', 'title' => __('CSDN','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'jianshu', 'type' => 'text', 'title' => __('JianShu','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'socialdiy1', 'type' => 'text', 'title' => __('Customized Social Network Ⅰ','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'socialdiy1_title', 'type' => 'text', 'title' => __('Customized Social Network Ⅰ Title','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), "default" => "DIY1" ), array( 'id' => 'socialdiyp1', 'type' => 'upload', 'title' => __('Customized Social Network Ⅰ icon','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'socialdiy2', 'type' => 'text', 'title' => __('Customized Social Network Ⅱ','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('add URL','sakurairo_csf'), ), array( 'id' => 'socialdiy2_title', 'type' => 'text', 'title' => __('Customized Social Network Ⅱ Title','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), "default" => "DIY2" ), array( 'id' => 'socialdiyp2', 'type' => 'upload', 'title' => __('Customized Social Network Ⅱ icon','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('The best length-width ratio of is 1:1','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'email_name', 'type' => 'text', 'title' => __('Email Username','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('name@domain.com fo name, the full address can be known only when there is a js runtime in the frontend, you can fill in with confidence','sakurairo_csf'), ), array( 'id' => 'email_domain', 'type' => 'text', 'title' => __('Email Domain','sakurairo_csf'), 'dependency' => array( 'social_area', '==', 'true' ), 'desc' => __('name@domain.com fo domain.com','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'homepage', 'title' => __('Bulletin Board and Area Title Options','sakurairo_csf'), 'icon' => 'fa fa-bullhorn', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Bulletin Board','sakurairo_csf'), ), array( 'id' => 'bulletin_board', 'type' => 'switcher', 'title' => __('Bulletin Board','sakurairo_csf'), 'label' => __('When enabled the bulletin board will be displayed below the front cover','sakurairo_csf'), 'default' => false ), array( 'id' => 'bulletin_board_style', 'type' => 'radio', 'title' => __('Bulletin Board Style','sakurairo_csf'), 'dependency' => array( 'bulletin_board', '==', 'true' ), 'options' => array( 'picture' => __('Picture Background','sakurairo_csf'), 'pure' => __('Color Background','sakurairo_csf'), ), 'default' => 'picture' ), array( 'id' => 'bulletin_board_icon', 'type' => 'switcher', 'title' => __('Bulletin Board "Broadcast" Icon','sakurairo_csf'), 'dependency' => array( 'bulletin_board', '==', 'true' ), 'label' => __('The "Broadcast" icon will be displayed on the left side of the announcement bar','sakurairo_csf'), 'default' => true ), array( 'id' => 'bulletin_board_bg', 'type' => 'upload', 'title' => __('Bulletin Board Background','sakurairo_csf'), 'dependency' => array( array( 'bulletin_board', '==', 'true' ), array( 'bulletin_board_style', '==', 'picture' ), ), 'desc' => __('Best width 820px, best height 67px','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/announcement_bg.webp' ), array( 'id' => 'bulletin_board_border_color', 'type' => 'color', 'title' => __('Bulletin Board Border Color','sakurairo_csf'), 'dependency' => array( array( 'bulletin_board', '==', 'true' ), array( 'bulletin_board_style', '==', 'pure' ), ), 'desc' => __('Customize the colors, it is recommended to use a light color that corresponds with the theme color','sakurairo_csf'), 'default' => '#E6E6E6' ), array( 'id' => 'bulletin_text', 'type' => 'text', 'title' => __('Bulletin Board Text','sakurairo_csf'), 'dependency' => array( 'bulletin_board', '==', 'true' ), 'desc' => __('Fill in the announcement text, the text beyond 142 bytes will be hidden','sakurairo_csf'), ), array( 'id' => 'bulletin_board_text_align', 'type' => 'image_select', 'title' => __('Bulletin Board Alignment','sakurairo_csf'), 'dependency' => array( 'bulletin_board', '==', 'true' ), 'options' => array( 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/announce_text_left.webp', 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/announce_text_right.webp', 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/announce_text_center.webp', ), 'default' => 'left' ), array( 'id' => 'bulletin_text_color', 'type' => 'color', 'title' => __('Bulletin Board Text Color','sakurairo_csf'), 'dependency' => array( 'bulletin_board', '==', 'true' ), 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'), 'default' => '#999' ), array( 'type' => 'subheading', 'content' => __('Area Title','sakurairo_csf'), ), array( 'id' => 'exhibition_area_title', 'type' => 'text', 'title' => __('Display Area Title','sakurairo_csf'), 'desc' => __('Default is "Display", you can change it to anything else, but of course it CANNOT be used as an ad! Not allowed!!!' ,'sakurairo_csf'), 'default' => 'Display' ), array( 'id' => 'post_area_title', 'type' => 'text', 'title' => __('Post Area Title','sakurairo_csf'), 'desc' => __('Default is "Article", you can change it to anything else, but of course it CANNOT be used as an ad! Not allowed!!!' ,'sakurairo_csf'), 'default' => 'Article' ), array( 'id' => 'area_title_font', 'type' => 'text', 'title' => __('Area Title Font','sakurairo_csf'), 'desc' => __('Fill in the font name. For example: Noto Serif SC','sakurairo_csf'), 'default' => 'Noto Serif SC' ), array( 'id' => 'area_title_text_align', 'type' => 'image_select', 'title' => __('Area Title Alignment','sakurairo_csf'), 'options' => array( 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/area_title_text_left.webp', 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/area_title_text_right.webp', 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/area_title_text_center.webp', ), 'default' => 'left' ), array( 'id' => 'area_title_bottom_color', 'type' => 'color', 'title' => __('Area Title Bottom Color','sakurairo_csf'), 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'), 'default' => 'rgba(99,99,99,0.2)' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'homepage', 'title' => __('Display Area Options','sakurairo_csf'), 'icon' => 'fa fa-bookmark', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'exhibition_area', 'type' => 'switcher', 'title' => __('Display Area','sakurairo_csf'), 'label' => __('Enabled by default, display area is above article area','sakurairo_csf'), 'default' => true ), array( 'id' => 'exhibition_area_style', 'type' => 'image_select', 'title' => __('Display Area Style','sakurairo_csf'), 'options' => array( 'left_and_right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/exhibition_area_style_lr.webp', 'bottom_to_top' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/exhibition_area_style_ud.webp', ), 'default' => 'left_and_right' ), array( 'id' => 'exhibition_area_compat', 'type' => 'switcher', 'title' => __('Display Area Compatibility Mode','sakurairo_csf'), 'dependency' => array( 'exhibition_area_style', '==', 'left_and_right' ), 'label' => __('Enabled by default, this option avoids the problem of misaligned display areas','sakurairo_csf'), 'default' => true ), array( 'id' => 'exhibition_background_color', 'type' => 'color', 'title' => __('Display Area Background Color','sakurairo_csf'), 'dependency' => array( 'exhibition_area_style', '==', 'left_and_right' ), 'desc' => __('Customize the colors, light colors are recommended','sakurairo_csf'), 'default' => 'rgba(255,255,255,0.4)' ), array( 'id' => 'exhibition_radius', 'type' => 'slider', 'title' => __('Display Area Rounded Corners','sakurairo_csf'), 'dependency' => array( array( 'exhibition_area_style', '==', 'left_and_right' ), array( 'exhibition_area_compat', '==', 'true' ), ), 'desc' => __('Slide to adjust, the recommended value is 15','sakurairo_csf'), 'unit' => 'px', 'default' => '15' ), array( 'id' => 'exhibition', 'type' => 'tabbed', 'title' => __('Display Area Options','sakurairo_csf'), 'tabs' => array( array( 'title' => __('First Display Area','sakurairo_csf'), 'fields' => array( array( 'id' => 'img1', 'type' => 'upload', 'title' => __('image','sakurairo_csf'), 'desc' => __('best width 260px, best height 160px','sakurairo_csf'), ), array( 'id' => 'title1', 'type' => 'text', 'title' => __('title','sakurairo_csf'), ), array( 'id' => 'description1', 'type' => 'text', 'title' => __('description','sakurairo_csf'), ), array( 'id' => 'link1', 'type' => 'text', 'title' => __('add URL','sakurairo_csf'), ), ) ), array( 'title' => __('Second Display Area','sakurairo_csf'), 'fields' => array( array( 'id' => 'img2', 'type' => 'upload', 'title' => __('image','sakurairo_csf'), 'desc' => __('best width 260px, best height 160px','sakurairo_csf'), ), array( 'id' => 'title2', 'type' => 'text', 'title' => __('title','sakurairo_csf'), ), array( 'id' => 'description2', 'type' => 'text', 'title' => __('description','sakurairo_csf'), ), array( 'id' => 'link2', 'type' => 'text', 'title' => __('add URL','sakurairo_csf'), ), ) ), array( 'title' => __('Third Display Area','sakurairo_csf'), 'fields' => array( array( 'id' => 'img3', 'type' => 'upload', 'title' => __('image','sakurairo_csf'), 'desc' => __('best width 260px, best height 160px','sakurairo_csf'), ), array( 'id' => 'title3', 'type' => 'text', 'title' => __('title','sakurairo_csf'), ), array( 'id' => 'description3', 'type' => 'text', 'title' => __('description','sakurairo_csf'), ), array( 'id' => 'link3', 'type' => 'text', 'title' => __('add URL','sakurairo_csf'), ), ) ), ), 'default' => array( 'link1' => '', 'link2' => '', 'link3' => '', 'img1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/exhibition1.webp', 'img2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/exhibition2.webp', 'img3' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/exhibition3.webp', 'title1' => 'アンコール', 'title2' => 'ハルジオン', 'title3' => 'かいぶつ', 'description1' => 'ここは夜のない世界', 'description2' => '過ぎてゆく時間の中', 'description3' => '素晴らしき世界に今日も乾杯', ) ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'homepage', 'title' => __('Article Area Options','sakurairo_csf'), 'icon' => 'fa fa-book', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'post_list_style', 'type' => 'image_select', 'title' => __('Article Area Display Style','sakurairo_csf'), 'options' => array( 'imageflow' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_sakura_left.webp', 'akinastyle' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_akina.webp', ), 'default' => 'imageflow' ), array( 'id' => 'post_list_akina_type', 'type' => 'image_select', 'title' => __('Article Area Featured Image Display Shapes','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'akinastyle' ), 'desc' => __('You can choose a circular or a rectangular display of the featured image','sakurairo_csf'), 'options' => array( 'round' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_akina.webp', 'square' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_akina2.webp', ), 'default' => 'round' ), array( 'id' => 'post_list_image_align', 'type' => 'image_select', 'title' => __('Article Area Featured Image Alignment','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'desc' => __('You can choose different directions to display the featured images','sakurairo_csf'), 'options' => array( 'alternate' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_sakura1.webp', 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_sakura2.webp', 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/post_list_style_sakura3.webp', ), 'default' => 'alternate' ), array( 'id' => 'post_cover_options', 'type' => 'radio', 'title' => __('Article Area Featured Image Options','sakurairo_csf'), 'options' => array( 'type_1' => __('Cover Random Image','sakurairo_csf'), 'type_2' => __('External API Random Image','sakurairo_csf'), ), 'default' => 'type_1' ), array( 'id' => 'post_cover', 'type' => 'text', 'title' => __('Article Area Featured Image External API Random Image Address','sakurairo_csf'), 'dependency' => array( 'post_cover_options', '==', 'type_2' ), 'desc' => __('add URL','sakurairo_csf'), 'sanitize' => false, 'validate' => 'iro_validate_optional_url', ), array( 'id' => 'post_title_font_size', 'type' => 'slider', 'title' => __('Article Area Title Font Size','sakurairo_csf'), 'desc' => __('Slide to adjust, the recommended value range is 16-20','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'unit' => 'px', 'step' => '1', 'min' => '10', 'max' => '30', 'default' => '18' ), array( 'id' => 'post_date_background_color', 'type' => 'color', 'title' => __('Article Area Time Display Area Background Color','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'desc' => __('Customize the colors, it is recommended to use a light color corresponding with the main color','sakurairo_csf'), 'default' => '#fff5e0' ), array( 'id' => 'post_date_text_color', 'type' => 'color', 'title' => __('Article Area Time Display Area Text Color','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'desc' => __('Customize the colors, suggest the same as the matching color','sakurairo_csf'), 'default' => '#ffcc00' ), array( 'id' => 'post_date_font_size', 'type' => 'slider', 'title' => __('Article Area Time Display Area Font Size','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'desc' => __('Slide to adjust, the recommended values range is 10-14','sakurairo_csf'), 'unit' => 'px', 'step' => '1', 'min' => '6', 'max' => '20', 'default' => '12' ), array( 'id' => 'post_icon_more', 'type' => 'switcher', 'title' => __('Article Area "Detail" Icon','sakurairo_csf'), 'label' => __('When enabled the "Detail" icon will be displayed below the article area','sakurairo_csf'), 'default' => false ),array( 'id' => 'is_author_meta_show', 'type' => 'switcher', 'title' => __('Article Area Author Info','sakurairo_csf'), 'label' => __('When turned on, author information will be added to the article metadata section.' ,'sakurairo_csf'), 'default' => false ), array( 'id' => 'post_icon_color', 'type' => 'color', 'title' => __('Article Area Icon Color','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'desc' => __('Customize the colors, suggest the same as the matching color','sakurairo_csf'), 'default' => '#ffcc00' ), array( 'id' => 'post_border_shadow_color', 'type' => 'color', 'title' => __('Article Area Border Shadow Color','sakurairo_csf'), 'dependency' => array( 'post_list_style', '==', 'imageflow' ), 'desc' => __('Customize the colors, suggest using a corresponding color with the background color','sakurairo_csf'), 'default' => '#e8e8e8' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'id' => 'page', 'title' => __('Page Options','sakurairo_csf'), 'icon' => 'fa fa-file-text', ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'page', 'title' => __('Common Options','sakurairo_csf'), 'icon' => 'fa fa-compass', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'page_style', 'type' => 'image_select', 'title' => __('Page Style','sakurairo_csf'), 'options' => array( 'sakurairo' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/page_style_iro.webp', 'sakura' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/page_style_sakura.webp', ), 'default' => 'sakurairo' ), array( 'id' => 'entry_content_style', 'type' => 'radio', 'title' => __('Page Layout Style','sakurairo_csf'), 'options' => array( 'sakurairo' => __('Default Style','sakurairo_csf'), 'github' => __('Github Style','sakurairo_csf'), ), 'default' => 'sakurairo' ), array( 'id' => 'patternimg', 'type' => 'switcher', 'title' => __('Page Decoration Image','sakurairo_csf'), 'label' => __('Enabled by default, show on article pages, standalone pages and category pages','sakurairo_csf'), 'default' => true ), array( 'id' => 'page_title_animation', 'type' => 'switcher', 'title' => __('Page Title Animation','sakurairo_csf'), 'label' => __('Page title will have float-in animation when turned on','sakurairo_csf'), 'default' => true ), array( 'id' => 'page_title_animation_time', 'type' => 'slider', 'title' => __('Page Title Animation Time','sakurairo_csf'), 'dependency' => array( 'page_title_animation', '==', 'true' ), 'desc' => __('Slide to adjust, recommended value range is 1-2','sakurairo_csf'), 'step' => '0.01', 'unit' => 's', 'max' => '5', 'default' => '2' ), array( 'id' => 'clipboard_copyright', 'type' => 'switcher', 'title' => __('Page Clipboard Copyright Notice','sakurairo_csf'), 'label' => __('Enabled by default, users will have copyright notice text when copying text content over 30 bytes','sakurairo_csf'), 'default' => true ), array( 'id' => 'page_lazyload', 'type' => 'switcher', 'title' => __('Page LazyLoad','sakurairo_csf'), 'label' => __('LazyLoad effect for page images, WordPress block editor already comes with similar effect, not recommended to turn on','sakurairo_csf'), 'default' => false ), array( 'id' => 'page_lazyload_spinner', 'type' => 'text', 'title' => __('Page LazyLoad Placeholder SVG','sakurairo_csf'), 'dependency' => array( 'page_lazyload', '==', 'true' ), 'desc' => __('Fill in the address, this is the placeholder image that will be displayed when the page LazyLoad is being loaded','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/load_svg/inload.svg' ), array( 'id' => 'load_in_svg', 'type' => 'text', 'title' => __('Page Image Placeholder SVG','sakurairo_csf'), 'desc' => __('Fill address, this is the SVG that will be displayed as a placeholder when the page image is being loaded','sakurairo_csf'), 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/load_svg/inload.svg' ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'page', 'title' => __('Article Page Options','sakurairo_csf'), 'icon' => 'fa fa-archive', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'article_title_font_size', 'type' => 'slider', 'title' => __('Article Page Title Font Size','sakurairo_csf'), 'desc' => __('Slide to adjust, recommended value range is 28-36. This option is only available for article pages that have a featured image set','sakurairo_csf'), 'unit' => 'px', 'min' => '16', 'max' => '48', 'default' => '32' ), array( 'id' => 'article_title_line', 'type' => 'switcher', 'title' => __('Article Page Title Underline Animation','sakurairo_csf'), 'label' => __('Article title will have underline animation when this is enabled and article has a featured image set','sakurairo_csf'), 'default' => false ), array( 'id' => 'article_auto_toc', 'type' => 'switcher', 'title' => __('Article Page Auto Show Menu','sakurairo_csf'), 'label' => __('Enabled by default, the article page will automatically show the menu','sakurairo_csf'), 'default' => true ), array( 'id' => 'article_nextpre', 'type' => 'switcher', 'title' => __('Article Page Prev/Next Article Switcher','sakurairo_csf'), 'label' => __('After turning on, the previous and next article switch will appear on the article pages','sakurairo_csf'), 'default' => false ), array( 'id' => 'article_lincenses', 'type' => 'switcher', 'title' => __('Article Page Copyright Tips and Labels','sakurairo_csf'), 'label' => __('Copyright hint and label will appear on article pages when enabled','sakurairo_csf'), 'default' => false ), array( 'id' => 'author_profile', 'type' => 'switcher', 'title' => __('Article Page Author Info','sakurairo_csf'), 'label' => __('Author information will appear on the article page when enabled','sakurairo_csf'), 'default' => false ), array( 'id' => 'author_profile_text', 'type' => 'text', 'title' => __('Article Page Author Info Signature Field Text','sakurairo_csf'), 'dependency' => array( 'author_profile', '==', 'true' ), 'desc' => __('A self-descriptive quote','sakurairo_csf'), 'default' => '本当の声を響かせてよ' ), array( 'id' => 'alipay_code', 'type' => 'upload', 'title' => __('Article Page Appreciation Button (Alipay QR Code)','sakurairo_csf'), 'desc' => __('Upload Alipay Receipt QR Code Image','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'wechat_code', 'type' => 'upload', 'title' => __('Article Page Appreciation Button (Wechat QR Code)','sakurairo_csf'), 'desc' => __('Upload WeChat Receipt QR Code Image','sakurairo_csf'), 'library' => 'image', ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'page', 'title' => __('Template Page Options','sakurairo_csf'), 'icon' => 'fa fa-window-maximize', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'page_temp_title_font_size', 'type' => 'slider', 'title' => __('Template Page Title Font Size','sakurairo_csf'), 'desc' => __('Slide to adjust, recommended value range is 36-48. This option is only available for template pages with featured images already set','sakurairo_csf'), 'unit' => 'px', 'min' => '20', 'max' => '64', 'default' => '40' ), array( 'id' => 'shuoshuo_background_color1', 'type' => 'color', 'title' => __('Ideas Template Background ColorⅠ','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#ffe066' ), array( 'id' => 'shuoshuo_background_color2', 'type' => 'color', 'title' => __('Ideas Template Background Color II','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#ffcc00' ), array( 'id' => 'shuoshuo_arrow', 'type' => 'switcher', 'title' => __('Ideas Template Tip Arrow','sakurairo_csf'), 'label' => __('After turning on the alert arrow will appear on the left side of the comment','sakurairo_csf'), 'default' => false ), array( 'id' => 'shuoshuo_font', 'type' => 'text', 'title' => __('Ideas Template Font','sakurairo_csf'), 'desc' => __('Fill in the font name. For example: Ma Shan Zheng','sakurairo_csf'), 'default' => 'Noto Serif SC' ), //TODO: change image source array( 'id' => 'bangumi_source', 'type' => 'image_select', 'title' => __('Bangumi Template Source', 'sakurairo_csf'), 'options' => array( 'bilibili' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/bangumi_tep_bili.webp', 'myanimelist' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/bangumi_tep_mal.webp', ), 'default' => 'bilibili' ), array( 'id' => 'my_anime_list_username', 'type' => 'text', 'title' => __('My Anime List Username','sakurairo_csf'), 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ), 'desc' => __('Username on https://myanimelist.net/','sakurairo_csf'), 'default' => '' ), array( 'id' => 'my_anime_list_sort', 'type' => 'radio', 'title' => __('My Anime List Sort','sakurairo_csf'), 'dependency' => array( 'bangumi_source', '==', 'myanimelist' ), 'options' => array( '1' => __('Status and Last Updated', 'sakurairo_csf'), '2' => __('Last Updated', 'sakurairo_csf'), '3' => __('Status', 'sakurairo_csf'), ), 'default' => '1' ), array( 'id' => 'bilibili_id', 'type' => 'text', 'title' => __('Bilibili Account UID','sakurairo_csf'), 'desc' => __('Fill in your account ID, e.g. https://space.bilibili.com/13972644/, just the number part "13972644"','sakurairo_csf'), 'default' => '13972644' ), array( 'id' => 'bilibili_cookie', 'type' => 'text', 'title' => __('Bilibili Account Cookies','sakurairo_csf'), 'desc' => __('Fill in your account cookies, F12 to open your browser web panel, go to your bilibili homepage to get cookies. If left empty, it will not show the progress of catching up bangumis','sakurairo_csf'), 'default' => 'LIVE_BUVID=' ), array( 'id' => 'friend_link_align', 'type' => 'image_select', 'title' => __('Friend Link Template Unit Alignment','sakurairo_csf'), 'options' => array( 'left' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/friend_link_left.webp', 'right' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/friend_link_right.webp', 'center' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/friend_link_center.webp', ), 'default' => 'left' ), array( 'id' => 'ex_register_open', 'type' => 'switcher', 'title' => __('Login Template Registration Function','sakurairo_csf'), 'label' => __('Login template will allow registration when enabled','sakurairo_csf'), 'default' => false ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'page', 'title' => __('Comment-related Options','sakurairo_csf'), 'icon' => 'fa fa-comments-o', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'comment_area', 'type' => 'radio', 'title' => __('Page Comment Area Display','sakurairo_csf'), 'desc' => __('You can choose to expand or shirink the content of the comment area','sakurairo_csf'), 'options' => array( 'unfold' => __('Expand','sakurairo_csf'), 'fold' => __('Shrink','sakurairo_csf'), ), 'default' => 'unfold' ), array( 'id' => 'comment_smile_bilibili', 'type' => 'switcher', 'title' => __('Page Comment Area Bilibili Emoji Pack','sakurairo_csf'), 'label' => __('Default on, bilibili emotions are displayed below the comment box','sakurairo_csf'), 'default' => true ), array( 'id' => 'comment_area_image', 'type' => 'upload', 'title' => __('Page Comment Area Bottom Right Background Image','sakurairo_csf'), 'desc' => __('If this option is blank, there will be no image, no best recommendation here','sakurairo_csf'), 'library' => 'image', ), array( 'id' => 'comment_useragent', 'type' => 'switcher', 'title' => __('Page Comment Area UA Info','sakurairo_csf'), 'label' => __('When enabled, the page comment area will display the user’s browser, operating system information','sakurairo_csf'), 'default' => false ), array( 'id' => 'comment_location', 'type' => 'switcher', 'title' => __('Page Comment Area Location Information','sakurairo_csf'), 'label' => __('When enabled, the page comment area will show the user’s location information','sakurairo_csf'), 'default' => false ), array( 'id' => 'ipsource', 'type' => 'select', 'title' => __('Page Comment Area IP Source','sakurairo_csf'), 'desc' => __('You can choose the theme self built IP library or Taobao IP library as the comment location information source','sakurairo_csf'), 'options' => array( 'type_1' => __('Theme Self Built IP Lib','sakurairo_csf'), 'type_2' => __('Taobao IP Lib','sakurairo_csf'), ), 'default' => 'type_1' ), array( 'id' => 'comment_private_message', 'type' => 'switcher', 'title' => __('Private Comment Function','sakurairo_csf'), 'label' => __('When enabled, users are allowed to set their comments to be invisible to others','sakurairo_csf'), 'default' => false ), array( 'id' => 'not_robot', 'type' => 'switcher', 'title' => __('Page Comment Area Bot Verification','sakurairo_csf'), 'label' => __('After turning on user comments need to be verified before posting','sakurairo_csf'), 'default' => false ), array( 'id' => 'qq_avatar_link', 'type' => 'select', 'title' => __('QQ Avatar Link Encryption','sakurairo_csf'), 'options' => array( 'off' => __('Off','sakurairo_csf'), 'type_1' => __('Redirect (low security)','sakurairo_csf'), 'type_2' => __('Get avatar data in the backend (medium security)','sakurairo_csf'), 'type_3' => __('Parse avatar interface in the backend (high security, slow)','sakurairo_csf'), ), 'default' => 'off' ), array( 'id' => 'img_upload_api', 'type' => 'select', 'title' => __('Page Comment Area Upload Image Interface','sakurairo_csf'), 'options' => array( 'off' => __('Off','sakurairo_csf'), 'imgur' => 'Imgur (https://imgur.com)', 'smms' => 'SM.MS (https://sm.ms)', 'chevereto' => 'Chevereto (https://chevereto.com)', 'lsky' => 'Lsky Pro (https://www.lsky.pro)', ), 'default' => 'off' ), array( 'id' => 'imgur_client_id', 'type' => 'text', 'title' => __('Imgur Client ID','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'imgur' ), 'desc' => __('Fill in Client ID here, to register please visit https://api.imgur.com/oauth2/addclient','sakurairo_csf'), ), array( 'id' => 'imgur_upload_image_proxy', 'type' => 'text', 'title' => __('Imgur Upload Proxy','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'imgur' ), 'desc' => __('The proxy used by the backend when uploading images to Imgur. You can refer to the tutorial: https://2heng.xin/2018/06/06/javascript-upload-images-with-imgur-api/','sakurairo_csf'), 'default' => 'https://api.imgur.com/3/image/' ), array( 'id' => 'smms_client_id', 'type' => 'text', 'title' => __('SM.MS Secret Token','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'smms' ), 'desc' => __('Fill in your Key here, to get it please visit https://sm.ms/home/apitoken','sakurairo_csf'), ), array( 'id' => 'chevereto_api_key', 'type' => 'text', 'title' => __('Chevereto API v1 Key','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'chevereto' ), 'desc' => __('Fill in the Key here, to get please visit your Chevereto home page address/dashboard/settings/api','sakurairo_csf'), ), array( 'id' => 'cheverto_url', 'type' => 'text', 'title' => __('Chevereto Address','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'chevereto' ), 'desc' => __('Your Chevereto home page address. Please note that there is no "/" at the end, e.g. https://your.cherverto.com','sakurairo_csf'), ), array( 'id' => 'lsky_api_key', 'type' => 'text', 'title' => __('Lsky Pro v1 Token','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'lsky' ), 'desc' => __('Fill in the Token here, Please note that there is no "Bearer " at first, to get please visit your Lsky Pro home page address/api','sakurairo_csf'), ), array( 'id' => 'lsky_url', 'type' => 'text', 'title' => __('Lsky Pro Address','sakurairo_csf'), 'dependency' => array( 'img_upload_api', '==', 'lsky' ), 'desc' => __('Your Lsky Pro home page address. Please note that there is no "/" at the end, e.g. https://your.lskypro.com','sakurairo_csf'), ), array( 'id' => 'comment_image_proxy', 'type' => 'text', 'title' => __('Comment Image Proxy','sakurairo_csf'), 'desc' => __('Proxy for the image displayed on the frontend','sakurairo_csf'), 'default' => 'https://images.weserv.nl/?url=' ), array( 'id' => 'mail_img', 'type' => 'upload', 'title' => __('Mail Template Featured Image','sakurairo_csf'), 'desc' => __('Set the background image of your reply email','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/mail_head.webp' ), array( 'id' => 'mail_user_name', 'type' => 'text', 'title' => __('Mail Template Sending Address Prefix','sakurairo_csf'), 'desc' => __('Used to send system mail. The sender address will be displayed in the user\'s mailbox, don\'t use Non-English Characters. The default system mail address is bibi@your domain','sakurairo_csf'), 'default' => 'bibi' ), array( 'id' => 'mail_notify', 'type' => 'switcher', 'title' => __('User Mail Reply Notification','sakurairo_csf'), 'label' => __('By default WordPress will use email notifications to notify users when their comments receive a reply. After turning it on users are allowed to set whether to use email notifications when their comments receive a reply','sakurairo_csf'), 'default' => false ), array( 'id' => 'admin_notify', 'type' => 'switcher', 'title' => __('Admin Email Reply Notification','sakurairo_csf'), 'label' => __('Use email notifications when admin comments receive a reply after turning it on','sakurairo_csf'), 'default' => false ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'id' => 'others', 'title' => __('Other Options','sakurairo_csf'), 'icon' => 'fa fa-coffee', ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'others', 'title' => __('Login Screen and Dashboard Related Options','sakurairo_csf'), 'icon' => 'fa fa-sign-in', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Login Screen','sakurairo_csf'), ), array( 'id' => 'login_background', 'type' => 'upload', 'title' => __('Login Screen Background Image','sakurairo_csf'), 'desc' => __('Set your login screen background image, leave this option blank to show the default','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/login_background.webp' ), array( 'id' => 'login_blur', 'type' => 'switcher', 'title' => __('Login Screen Background Blur','sakurairo_csf'), 'label' => __('Login screen background image will be blurred when enabled','sakurairo_csf'), 'default' => false ), array( 'id' => 'login_logo_img', 'type' => 'upload', 'title' => __('Login Screen Logo','sakurairo_csf'), 'desc' => __('Set your login screen Logo','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/login_logo.webp' ), array( 'id' => 'login_urlskip', 'type' => 'switcher', 'title' => __('Jump after login','sakurairo_csf'), 'label' => __('Jump to backend for admins and home for users after turning on. Attention: Only takes effect when logging in from a page with Loggin Template. ','sakurairo_csf'), 'default' => false ), array( 'id' => 'login_language_opt', 'type' => 'switcher', 'title' => __('Login Screen Language Option','sakurairo_csf'), 'label' => __('Login screen language option will be display when enabled','sakurairo_csf'), 'default' => false ), array( 'type' => 'subheading', 'content' => __('Dashboard','sakurairo_csf'), ), array( 'id' => 'admin_background', 'type' => 'upload', 'title' => __('Dashboard Background Image','sakurairo_csf'), 'desc' => __('Set your dashboard background image, leave this option blank to show white background','sakurairo_csf'), 'library' => 'image', 'default' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/series/admin_background.webp' ), array( 'id' => 'admin_left_style', 'type' => 'image_select', 'title' => __('Dashboard Options Menu Style','sakurairo_csf'), 'options' => array( 'v1' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/admin_left_style_v1.webp', 'v2' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/admin_left_style_v2.webp', ), 'default' => 'v1' ), array( 'id' => 'admin_first_class_color', 'type' => 'color', 'title' => __('Dashboard Primary Menu Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#779caf' ), array( 'id' => 'admin_second_class_color', 'type' => 'color', 'title' => __('Dashboard Secondary Menu Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#d4af8d' ), array( 'id' => 'admin_emphasize_color', 'type' => 'color', 'title' => __('Dashboard Emphasis Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#d3a172' ), array( 'id' => 'admin_button_color', 'type' => 'color', 'title' => __('Dashboard Button Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), 'default' => '#514e3b' ), array( 'id' => 'admin_text_color', 'type' => 'color', 'title' => __('Dashboard Text Color','sakurairo_csf'), 'desc' => __('Customize the colors','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection( $prefix, array( 'parent' => 'others', 'title' => __('Low Use Options','sakurairo_csf'), 'icon' => 'fa fa-low-vision', 'fields' => array( array( 'type' => 'submessage', 'style' => 'info', 'content' => __('You can click here to learn how to set the options on this page','sakurairo_csf'), ), array( 'id' => 'statistics_api', 'type' => 'radio', 'title' => __('Statistics API','sakurairo_csf'), 'desc' => __('You can choose WP-Statistics plugin statistics or theme built-in statistics to display','sakurairo_csf'), 'options' => array( 'theme_build_in' => __('Theme Built in Statistics','sakurairo_csf'), 'wp_statistics' => __('WP-Statistics Plugin Statistics','sakurairo_csf'), ), 'default' => 'theme_build_in' ), array( 'id' => 'statistics_format', 'type' => 'select', 'title' => __('Statistics display format','sakurairo_csf'), 'desc' => __('You can choose from four different data display formats','sakurairo_csf'), 'options' => array( 'type_1' => __('23333 Visits','sakurairo_csf'), 'type_2' => __('23,333 Visits','sakurairo_csf'), 'type_3' => __('23 333 Visits','sakurairo_csf'), 'type_4' => __('23K Visits','sakurairo_csf'), ), 'default' => 'type_1' ), array( 'id' => 'live_search', 'type' => 'switcher', 'title' => __('Live Search','sakurairo_csf'), 'label' => __('After turning on the live search in the frontend, call Rest API to update the cache once an hour. You can set the cache time manually in api.php','sakurairo_csf'), 'default' => false ), array( 'id' => 'live_search_comment', 'type' => 'switcher', 'title' => __('Live Search Comment Support','sakurairo_csf'), 'dependency' => array( 'live_search', '==', 'true' ), 'label' => __('Enable to search for comments in live search (not recommended if site has too many comments)','sakurairo_csf'), 'default' => false ), array( 'id' => 'google_analytics_id', 'type' => 'text', 'title' => __('Google Analytics Id','sakurairo_csf'), 'label' => __('If you already have a plugin to handle it, please keep here empty.','sakurairo_csf'), ), array( 'id' => 'site_custom_style', 'type' => 'textarea', 'title' => __('Custom CSS Styles','sakurairo_csf'), 'desc' => __('Fill in the CSS code without writing style tag','sakurairo_csf'), ), array( 'id'=>'site_header_insert', 'type' => 'code_editor', 'sanitize' => false, 'title' => __('Code inserted in the header','sakurairo_csf'), 'desc' => __('Insert HTML code right before .','sakurairo_csf'), ), array( 'id' => 'time_zone_fix', 'type' => 'slider', 'title' => __('Timezone Fix','sakurairo_csf'), 'desc' => __('Slide to adjust. If the comment has a time difference problem, adjust it here, fill in an integer. Calculation method: actual time = time of display error - the integer you entered (in hours)','sakurairo_csf'), 'step' => '1', 'max' => '24', 'default' => '0' ), array( 'type' => 'subheading', 'content' => __('Gravatar Service','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('

Cravatar Service: Cravatar Service is an alternative to Gravatar Service in China. You can upload and share avatars freely. Go to official website for details

','sakurairo_csf'), ), array( 'id' => 'gravatar_proxy', 'type' => 'select', 'title' => __('Gravatar Service Proxy','sakurairo_csf'), 'desc' => __('You can select multiple proxy as the Gravatar Service Proxy. By default, Cravatar Service is used as the Gravatar Service Proxy.','sakurairo_csf'), 'options' => array( 'cravatar.cn/avatar' => __('Cravatar Service','sakurairo_csf'), 'sdn.geekzu.org/avatar' => __('Geekzu','sakurairo_csf'), 'gravatar.loli.net/avatar' => __('Loli Net','sakurairo_csf'), 'gravatar.com/avatar' => __('Official','sakurairo_csf'), 'cn.gravatar.com/avatar' => __('Official CN','sakurairo_csf'), ), 'default' => 'cravatar.cn/avatar' ), array( 'type' => 'subheading', 'content' => __('Lightbox','sakurairo_csf'), ), array( 'id' => 'baguetteBox', 'type' => 'switcher', 'title' => __('BaguetteBox Lightbox Effect','sakurairo_csf'), 'label' => __('BaguetteBox will be used as the image lightbox effect when turned on','sakurairo_csf'), 'default' => false ), array( 'id' => 'fancybox', 'type' => 'switcher', 'title' => __('FancyBox Lightbox Effect','sakurairo_csf'), 'label' => __('FancyBox will be used as an image lightbox effect after turning on, additional JQ libraries will be loaded','sakurairo_csf'), 'dependency' => array( 'baguetteBox', '==', 'false' ), 'default' => false ), array( 'id' => 'lightgallery', 'type' => 'switcher', 'title' => __('LightGallery Lightbox Effect','sakurairo_csf'), 'label' => __('LightGallery will be used as an image lightbox effect after turning on.','sakurairo_csf'), 'dependency' => array(array( 'baguetteBox', '==', 'false' ),array('fancybox','==','false')), 'default' => false ), array( 'type' => 'content', 'content'=>__('Attension: Please read License Instruction before use.' .'
Demos | Reference | Plugin List ' .'
Please write settings in JavaScript. An example has been provided as default setting.' .'
It should be captiable for Most User using WordPress Guttenberg Editor.' .'
Submit new discussion on Github for assistance. https://github.com/mirai-mamori/Sakurairo/discussions','sakurairo_csf') , 'dependency' => array( 'lightgallery', '==', 'true' ), ), array( 'type' => 'submessage', 'style' => 'warning', 'content'=>__('Start from Sakurairo v2.4.0, plugins names in LightGallery option follow the form cite in official document (eg. lgHash instead of "hash")','sakurairo_csf') , 'dependency' => array( 'lightgallery', '==', 'true' ), ), array( 'id' => 'lightgallery_option', 'type' => 'code_editor', 'sanitize' => false, 'title' => __('LightGallery Lightbox Effect Options','sakurairo_csf'), 'dependency' => array( 'lightgallery', '==', 'true' ), 'default' => '{ "plugins":["lgHash","lgZoom"], "supportLegacyBrowser":false, "selector":"figure > img" }' ), array( 'type' => 'subheading', 'content' => __('Code Highlighting','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('

Highlight.js: Default. Automatic language recognition.

' .'

Prism.js: Requires a language to be specified, see basic usage and How to code highlight dynamically loaded files.

' .'

Custom: For cases where another configuration is available.

','sakurairo_csf'), ), array( 'id' => 'code_highlight_method', 'type' => 'select', 'title' => __('Code Highlight Method','sakurairo_csf'), 'options' => array( 'hljs' => 'highlight.js', 'prism' => 'Prism.js', 'custom' => __('Custom Program','sakurairo_csf'), ), "default" => "hljs" ), array( 'id' => 'code_highlight_prism_line_number_all', 'type' => 'switcher', 'title' => __('Prism.js: Add Line Number Display for All Code Blocks','sakurairo_csf'), 'dependency' => array( array( 'code_highlight_method', '==', 'prism' ), ), 'desc' => __('See the plugin description documentation','sakurairo_csf'), ), array( 'id' => 'code_highlight_prism_autoload_path', 'type' => 'text', 'title' => __('Prism.js: Autoload Address','sakurairo_csf'), 'dependency' => array( array( 'code_highlight_method', '==', 'prism' ), ), 'desc' => __('Leave blank to use default values','sakurairo_csf'), 'default'=>'https://fastly.jsdelivr.net/npm/prismjs@1.23.0/' ), array( 'id' => 'code_highlight_prism_theme_light', 'type' => 'text', 'title' => __('Prism.js: Code Highlight Theme','sakurairo_csf'), 'desc' => __('Relative to autoload address. Leave blank to use default values','sakurairo_csf'), 'dependency' => array( array( 'code_highlight_method', '==', 'prism' ), ), 'default' => 'themes/prism.min.css' ), array( 'id' => 'code_highlight_prism_theme_dark', 'type' => 'text', 'title' => __('Prism.js: Code Highlight Theme (Dark Mode)','sakurairo_csf'), 'desc' => __('Relative to autoload address. Leave blank to use default values','sakurairo_csf'), 'dependency' => array( array( 'code_highlight_method', '==', 'prism' ), ), 'default' => 'themes/prism-tomorrow.min.css' ), array( 'type' => 'submessage', 'style' => 'danger', 'content' => __('The following Options are not recommended to be modified blindly, please use them under the guidance of others','sakurairo_csf'), ), array( 'id' => 'image_cdn', 'type' => 'text', 'title' => __('Image CDN','sakurairo_csf'), 'desc' => __('Note: fill in the format https://your CDN domain/. This means that images with original path http://your.domain/wp-content/uploads/2018/05/xx.png will be loaded from http://your CDN domain/2018/05/xx.png','sakurairo_csf'), 'default' => '' ), array( 'id' => 'classify_display', 'type' => 'text', 'title' => __('Articles Categories (Do not display)','sakurairo_csf'), 'desc' => __('Fill in category ID, seperate in English" , " when more than one','sakurairo_csf'), ), array( 'id' => 'image_category', 'type' => 'text', 'title' => __('Image Display Category','sakurairo_csf'), 'desc' => __('Fill in category ID, seperate in English" , " when more than one','sakurairo_csf'), ), array( 'id' => 'exlogin_url', 'type' => 'text', 'title' => __('Specify Login Address','sakurairo_csf'), 'desc' => __('Force not to use the WordPress login page address to login, fill in the new login page address, such as: http://www.xxx.com/login. Note that before filling in the new page you can test the normal opening, so as not to cause the inability to enter the background, etc.','sakurairo_csf'), ), array( 'id' => 'exregister_url', 'type' => 'text', 'title' => __('Specify Registration Address','sakurairo_csf'), 'desc' => __('This address is used as the registration entry on the login page, if you specify a login address, it is recommended to fill in','sakurairo_csf'), ), array( 'id' => 'cookie_version', 'type' => 'text', 'title' => __('Version Control','sakurairo_csf'), 'desc' => __('Used to update front-end cookies and browser cache, can use any string','sakurairo_csf'), ), ) ) ); Sakurairo_CSF::createSection($prefix, array( 'title' => __('Backup&Recovery','sakurairo_csf'), 'icon' => 'fa fa-shield', 'description' => __('Backup or Recovery your theme options','sakurairo_csf'), 'fields' => array( array( 'type' => 'backup', ), ) ) ); Sakurairo_CSF::createSection($prefix, array( 'title' => __('About Theme','sakurairo_csf'), 'icon' => 'fa fa-paperclip', 'fields' => array( array( 'type' => 'subheading', 'content' => __('Version Info','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('Theme Information','sakurairo_csf'), ), array( 'type' => 'submessage', 'style' => 'success', 'content' => sprintf(__('Sakurairo 主题版本 / Theme Version %s | 内部版本 / Internal Version %s | 项目地址 / Project Address', 'sakurairo', 'sakurairo_csf'), IRO_VERSION, INT_VERSION), ), array( 'type' => 'subheading', 'content' => __('Update Related','sakurairo_csf'), ), array( 'id' => 'iro_update_source', 'type' => 'image_select', 'title' => __('Theme Update Source','sakurairo_csf'), 'options' => array( 'github' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/update_source_github.webp', 'upyun' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/update_source_upyun.webp', 'official_building' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/update_source_iro.webp', ), 'desc' => __('If you are using a server set up in mainland China, please use the Upyun source or the official theme source as your theme update source','sakurairo_csf'), 'default' => 'github' ), array( 'id' => 'channel_validate_value', 'type' => 'text', 'title' => __('Theme Update Test Channel Disclaimer','sakurairo_csf'), 'dependency' => array( array( 'core_library_basepath', '==', 'true' ), array( 'shared_library_basepath', '==', 'true' ), array( 'iro_update_source', '==', 'official_building' ), ), 'desc' => __('Please copy the text in quotes after 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 (including but not limited to possible data loss) into the options text box "I agree and am willing to bear all unexpected consequences"','sakurairo_csf'), ), array( 'id' => 'iro_update_channel', 'type' => 'radio', 'title' => __('Theme Update Channel','sakurairo_csf'), 'dependency' => array( array( 'channel_validate_value', '==', 'I agree and am willing to bear all unexpected consequences' ), array( 'core_library_basepath', '==', 'true' ), array( 'shared_library_basepath', '==', 'true' ), array( 'iro_update_source', '==', 'official_building' ), ), 'desc' => __('You can toggle the update channel here to participate in the testing of the new version','sakurairo_csf'), 'options' => array( 'stable' => __('Stable Channel','sakurairo_csf'), 'beta' => __('Beta Channel','sakurairo_csf'), 'preview' => __('Preview Channel','sakurairo_csf'), ), 'default' => 'stable' ), array( 'type' => 'subheading', 'content' => __('Resource Control','sakurairo_csf'), ), array( 'id' => 'core_library_basepath', 'type' => 'switcher', 'title' => __('Provide Critical Frontend Resource locally','sakurairo_csf'), 'label' => __('Enabeld by default. Critical resources are those resources whose loading performance will have a significant impact on the user experience.','sakurairo_csf'), 'default' => true ), array( 'id' => 'shared_library_basepath', 'type' => 'switcher', 'title' => __('Provide Other Frontend Resource locally','sakurairo_csf'), 'label' => __('Less important frontend resource in the theme\'s folder.','sakurairo_csf'), 'default' => false ), array( 'id' => 'external_vendor_lib', 'type' => 'switcher', 'title' => __('Provide 3rd-party library from public CDN','sakurairo_csf'), 'label' => __('When disabled, 3rd-party dependencies, which have been built to bundles along with themes\'s entry script, will be loaded from the exact same origin with Critical Frontend Resource. ','sakurairo_csf'), 'default' => false ), array( 'id' => 'lib_cdn_path', 'type' => 'image_select', 'title' => __('Public CDN Basepath','sakurairo_csf'), 'options' => array( 'https://s.nmxc.ltd/sakurairo/@' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/update_source_upyun.webp', 'https://fastly.jsdelivr.net/gh/mirai-mamori/Sakurairo@' => 'https://s.nmxc.ltd/sakurairo_vision/@2.5/options/update_source_jsd.webp', ), 'default' => 'https://s.nmxc.ltd/sakurairo/@' ), array( 'id' => 'vision_resource_basepath', 'type' => 'text', 'title' => __('Vision Resource Basepath','sakurairo_csf'), 'desc' => __('This link directory structure needs to be consistent with the Sakurairo Vision repositories officially provided by fuukei, otherwise some resources 404 may appear. The image source officially provided by Upyun is adopted by default.','sakurairo_csf'), 'default' => "https://s.nmxc.ltd/sakurairo_vision/@2.5/" ), array( 'type' => 'subheading', 'content' => __('Theme Sponsors','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('Theme Sponsors','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Theme Contributors','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('Theme Contributors','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Reference Information','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('

Fluent Design Icon Referenced by Paradox Fluent Icon Pack

MUH2 Design Icon Referenced by 缄默 MUH2 Icon Pack

Mashiro Style Logo References the Original Theme Author Mashiro, As Provided and Referenced by Hyacm

','sakurairo_csf'), ), array( 'type' => 'subheading', 'content' => __('Dependency Information','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('

Options Framework Relies on the Codestar Open Source Codestar Framework Project

Update Function Relies on YahnisElsts Open Source Plugin Update Checker Project

','sakurairo_csf'), ), array( 'type' => 'content', 'content' => __('Theme latest version Theme latest version release date Theme CDN resource access','sakurairo_csf'), ), ) ) ); }