| Server IP : 38.190.208.107 / Your IP : 216.73.217.46 Web Server : nginx/1.28.1 System : Linux ht2026040333114 6.1.0-10-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.37-1 (2023-07-03) x86_64 User : root ( 0) 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,eval,assert,passthru,system,exec,shell_exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/wp.9/wp-content/themes/dt-the7/inc/admin/theme-options/ |
Upload File : |
<?php
/**
* Stripes.
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Page definition.
*/
$options[] = array(
'page_title' => _x( 'Stripes', 'theme-options', 'the7mk2' ),
'menu_title' => _x( 'Stripes', 'theme-options', 'the7mk2' ),
'menu_slug' => 'of-stripes-menu',
'type' => 'page',
);
foreach ( presscore_themeoptions_get_stripes_list() as $suffix => $stripe ) {
/**
* Heading definition.
*/
$options[] = array( 'name' => $stripe['title'], 'type' => 'heading', 'id' => "stripe{$suffix}" );
/**
* Stripe.
*/
$options[] = array( 'name' => $stripe['title'], 'type' => 'block' );
$options[] = array( 'type' => 'title', 'name' => _x( 'Background', 'theme-options', 'the7mk2' ) );
$options["stripes-stripe_{$suffix}_color"] = array(
'name' => _x( 'Color', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_color",
'std' => $stripe['bg_color'],
'type' => 'color',
);
$options["stripes-stripe_{$suffix}_bg_image"] = array(
'name' => _x( 'Add background image', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_bg_image",
'std' => $stripe['bg_img'],
'type' => 'background_img',
'fields' => array(),
);
$options[] = array( 'type' => 'divider' );
$options["stripes-stripe_{$suffix}_outline"] = array(
'name' => _x( 'Outlines', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_outline",
'std' => 'hide',
'type' => 'images',
'class' => 'small',
'show_hide' => array( 'show' => true ),
'options' => array(
'show' => array(
'title' => _x( 'Show', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/stripes-stripe-outline-enabled.gif',
),
'hide' => array(
'title' => _x( 'Hide', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/stripes-stripe-outline-disabled.gif',
),
),
);
$options[] = array( 'type' => 'js_hide_begin' );
$options["stripes-stripe_{$suffix}_outline_color"] = array(
'name' => _x( 'Outlines color', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_outline_color",
'std' => '#FFFFFF',
'type' => 'color',
);
$options["stripes-stripe_{$suffix}_outline_opacity"] = array(
'name' => _x( 'Outlines opacity', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_outline_opacity",
'std' => 100,
'type' => 'slider',
);
$options[] = array( 'type' => 'js_hide_end' );
$options[] = array( 'type' => 'divider' );
$options[] = array( 'type' => 'title', 'name' => _x( 'Content boxes background', 'theme-options', 'the7mk2' ) );
$options["stripes-stripe_{$suffix}_content_boxes_bg_color"] = array(
'name' => _x( 'Background color', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_content_boxes_bg_color",
'std' => '#FFFFFF',
'type' => 'color',
);
$options["stripes-stripe_{$suffix}_content_boxes_bg_opacity"] = array(
'name' => _x( 'Background opacity', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_content_boxes_bg_opacity",
'std' => 100,
'type' => 'slider',
);
$options["stripes-stripe_{$suffix}_content_boxes_decoration"] = array(
'name' => _x( 'Decoration', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_content_boxes_decoration",
'std' => 'none',
'type' => 'images',
'class' => 'small',
'show_hide' => array( 'outline' => true ),
'options' => array(
'none' => array(
'title' => _x( 'None', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/general-content_boxes_decoration-none.gif',
),
'shadow' => array(
'title' => _x( 'Shadow', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/general-content_boxes_decoration-shadow.gif',
),
'outline' => array(
'title' => _x( 'Outline', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/general-content_boxes_decoration-outline.gif',
),
),
);
$options[] = array( 'type' => 'js_hide_begin' );
$options["stripes-stripe_{$suffix}_content_boxes_decoration_outline_color"] = array(
'name' => _x( 'Decoration outline color', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_content_boxes_decoration_outline_color",
'std' => '#FFFFFF',
'type' => 'color',
);
$options["stripes-stripe_{$suffix}_content_boxes_decoration_outline_opacity"] = array(
'name' => _x( 'Decoration outline opacity', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_content_boxes_decoration_outline_opacity",
'std' => 100,
'type' => 'slider',
);
$options[] = array( 'type' => 'js_hide_end' );
$options[] = array( 'type' => 'divider' );
$options[] = array( 'type' => 'title', 'name' => _x( 'Text', 'theme-options', 'the7mk2' ) );
$options["stripes-stripe_{$suffix}_headers_color"] = array(
'name' => _x( 'Headings color', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_headers_color",
'std' => $stripe['text_header_color'],
'type' => 'color',
);
$options["stripes-stripe_{$suffix}_text_color"] = array(
'name' => _x( 'Text color', 'theme-options', 'the7mk2' ),
'id' => "stripes-stripe_{$suffix}_text_color",
'std' => $stripe['text_color'],
'type' => 'color',
);
}