| Server IP : 116.153.78.57 / Your IP : 43.159.78.200 Web Server : nginx/1.28.0 System : Linux 1763701629066 6.8.0-53-generic #55-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 17 15:37:52 UTC 2025 x86_64 User : www ( 1001) PHP Version : 8.2.28 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/inc/configs/theme/ |
Upload File : |
<?php
/*
* @Author: iowen
* @Author URI: https://www.iowen.cn/
* @Date: 2024-04-27 00:54:50
* @LastEditors: iowen
* @LastEditTime: 2025-06-03 17:24:25
* @FilePath: /onenav/inc/configs/theme/basic-code.php
* @Description:
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
return array(
'title' => '添加代码',
'icon' => 'fa fa-code',
'fields' => array(
array(
'id' => 'custom_css',
'type' => 'code_editor',
'title' => '自定义样式css代码',
'subtitle' => '显示在网站头部 <head>',
'after' => '<p class="cs-text-muted"> 自定义 CSS,自定义美化...<br>如: body .test{color:#ff0000;}<br><span style="color:#f00"> 注意:</span>不要填写<strong><style> </style></strong></p>',
'settings' => array(
'tabSize' => 2,
'theme' => 'mbo',
'mode' => 'css',
),
'sanitize' => false,
),
array(
'id' => 'code_2_header',
'type' => 'code_editor',
'title' => '顶部(header)自定义 js 代码',
'subtitle' => '显示在网站 </head> 前',
'after' => '<p class="cs-text-muted">出现在网站顶部 </head> 前。<br><span style="color:#f00">注意:</span>必须填写<strong><script> </script></strong></p>',
'settings' => array(
'theme' => 'dracula',
'mode' => 'javascript',
),
'sanitize' => false,
'class' => '',
),
array(
'id' => 'code_2_footer',
'type' => 'code_editor',
'title' => '底部(footer)自定义 js 代码',
'subtitle' => '显示在网站底部',
'after' => '<p class="cs-text-muted">出现在网站底部 body 前。<br><span style="color:#f00">注意:</span>必须填写<strong><script> </script></strong></p>',
'settings' => array(
'theme' => 'dracula',
'mode' => 'javascript',
),
'sanitize' => false,
),
)
);