403Webshell
Server IP : 119.36.225.67  /  Your IP : 43.159.78.123
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/wwwroot/www.lengcat.cn/wp-content/themes/onenav/inc/configs/theme/ad-popup.php
<?php
/*
 * @Author: iowen
 * @Author URI: https://www.iowen.cn/
 * @Date: 2024-04-27 00:33:33
 * @LastEditors: iowen
 * @LastEditTime: 2025-06-03 17:22:14
 * @FilePath: /onenav/inc/configs/theme/ad-popup.php
 * @Description: 
 */
if ( ! defined( 'ABSPATH' ) ) { exit; }

return array(
    'title'  => '弹窗轮播',
    'icon'   => 'fas fa-solar-panel',
    'fields' => array(
        array(
            'id'    => 'enable_popup',
            'type'  => 'switcher',
            'title' => '启用全局弹窗',
        ),
        array(
            'id'         => 'popup_set',
            'type'       => 'fieldset',
            'title'      => '弹窗设置',
            'fields'     => array(
                array(
                    'id'    => 'delay',
                    'type'  => 'spinner',
                    'title' => '延时',
                    'after' => '延时多少秒后显示弹窗',
                    'unit'  => '秒',
                    'step'  => 1,
                ),
                array(
                    'id'    => 'only_home',
                    'type'  => 'switcher',
                    'title' => '仅首页显示',
                    'class' => 'compact min',
                ),
                array(
                    'id'      => 'show_policy',
                    'type'    => 'radio',
                    'title'   => '显示策略',
                    'options' => array(
                        'all'   => '一直显示',
                        'one'   => '显示一次',
                        'login' => '登陆后不显示',
                    ),
                    'inline'  => true,
                    'class'   => 'compact min',
                ),
                array(
                    'id'         => 'cycle',
                    'type'       => 'spinner',
                    'title'      => '周期',
                    'after'      => '为0则每次刷新页面都会弹出',
                    'unit'       => '小时',
                    'step'       => 1,
                    'class'      => 'compact min',
                    'dependency' => array('show_policy', '==', 'all'),
                ),
                array(
                    'id'    => 'width',
                    'type'  => 'slider',
                    'title' => '宽度',
                    'min'   => 340,
                    'max'   => 1024,
                    'step'  => 10,
                    'unit'  => 'px',
                    'class' => 'compact min',
                ),
                array(
                    'id'       => 'title',
                    'type'     => 'text',
                    'title'    => '标题',
                    'subtitle' => '留空不显示',
                    'class'    => 'compact min',
                ),
                array(
                    'id'       => 'content',
                    'type'     => 'wp_editor',
                    'title'    => '弹窗内容',
                    'height'   => '200px',
                    'sanitize' => false,
                    'class'    => 'compact min',
                ),
                array(
                    'id'     => 'buts',
                    'type'   => 'group',
                    'title'  => '按钮',
                    'fields' => array(
                        array(
                            'id'    => 'url',
                            'type'  => 'link',
                            'title' => '链接',
                        ),
                        array(
                            'id'      => 'class',
                            'type'    => 'radio',
                            'title'   => '按钮样式',
                            'options' => array(
                                '深背景' => array(
                                    'vc-white'  => '白色',
                                    'vc-gray'   => '灰黑色',
                                    'vc-black'  => '黑色',
                                    'vc-red'    => '红色',
                                    'vc-green'  => '绿色',
                                    'vc-blue'   => '蓝色',
                                    'vc-yellow' => '黄色',
                                    'vc-cyan'   => '青色',
                                    'vc-violet' => '紫色',
                                    'vc-purple' => '紫红色',
                                ),
                                '浅背景' => array(
                                    'vc-l-white'  => '白色',
                                    'vc-l-gray'   => '灰黑色',
                                    'vc-l-black'  => '黑色',
                                    'vc-l-red'    => '红色',
                                    'vc-l-green'  => '绿色',
                                    'vc-l-blue'   => '蓝色',
                                    'vc-l-yellow' => '黄色',
                                    'vc-l-cyan'   => '青色',
                                    'vc-l-violet' => '紫色',
                                    'vc-l-purple' => '紫红色',
                                )
                            ),
                            'default' => 'vc-blue',
                            'inline'  => true,
                            'class'   => 'compact min',
                        ),
                    ),
                    'class'  => 'compact min',
                ),
                array(
                    'id'    => 'valid',
                    'type'  => 'switcher',
                    'title' => '有效期',
                    'label' => '设置弹窗有效期',
                    'class' => 'compact min',
                ),
                array(
                    'id'         => 'time_frame',
                    'type'       => 'date',
                    'title'      => '时间范围',
                    'from_to'    => true,
                    'settings'   => array(
                        'dateFormat'      => 'yy-mm-dd',
                        'changeMonth'     => true,
                        'changeYear'      => true,
                        'showButtonPanel' => true,
                    ),
                    'dependency' => array('valid', '==', 'true'),
                    'class'      => 'compact min',
                ),
            ),
            'default'    => array(
                'delay'       => 5,
                'only_home'   => true,
                'show_policy' => 'all',
                'cycle'       => 24,
                'width'       => 600,
                'title'       => '弹窗标题',
                'content'     => '弹窗内容',
                'buts'        => array(
                    array(
                        'url'   => array(
                            'url'    => 'https://www.iotheme.cn/',
                            'text'   => '一为主题官网',
                            'target' => '_blank',
                        ),
                        'class' => 'vc-blue',
                    ),
                ),
                'valid'       => false,
                'time_frame'  => array(
                    'from' => date('Y-m-d'),
                    'to'   => date('Y-m-d', strtotime('+1 month')),
                ),
            ),
            'class'      => 'compact min',
            'dependency' => array('enable_popup', '==', 'true', '', 'visible'),
        ),
    )
);

Youez - 2016 - github.com/yon3zu
LinuXploit