navasena/wp-content/themes/thinkai/includes/resource/options/general_setting.php

39 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-07-31 13:12:38 +07:00
<?php
$styles = [];
foreach(range(1, 28) as $val) {
$styles[$val] = sprintf(esc_html__('Style %s', 'thinkai'), $val);
}
return array(
'title' => esc_html__( 'General Setting', 'thinkai' ),
'id' => 'general_setting',
'desc' => '',
'icon' => 'el el-wrench',
'fields' => array(
array(
'id' => 'theme_preloader',
'type' => 'switch',
'title' => esc_html__('Enable Preloader', 'thinkai'),
'default' => false,
),
array(
'id' => 'mouse_cursor',
'type' => 'switch',
'title' => esc_html__('Enable Mouse Cursor ', 'thinkai'),
'default' => false,
),
array(
'id' => 'show_scroltop',
'type' => 'switch',
'title' => esc_html__('Enable Scroll To Top Button ', 'thinkai'),
'default' => false,
),
array(
'id' => 'scroltop_text',
'type' => 'text',
'title' => esc_html__( 'Button Text', 'thinkai' ),
'required' => array( 'show_scroltop', '=', true ),
),
),
);