| Server IP : 38.190.208.107 / Your IP : 216.73.217.51 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.12/wp-content/themes/dt-the7/inc/admin/theme-options/ |
Upload File : |
<?php
/**
* Image Hovers.
*/
// File Security Check
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Heading definition.
*/
$options[] = array(
'name' => _x( 'Images Styling & Hovers', 'theme-options', 'the7mk2' ),
'type' => 'heading',
'id' => 'images-styling-hovers',
);
/**
* Styling.
*/
$options[] = array( 'name' => _x( 'Styling', 'theme-options', 'the7mk2' ), 'type' => 'block' );
$options['image_hover-style'] = array(
'name' => _x( 'Image & hover effects', 'theme-options', 'the7mk2' ),
'desc' => _x( 'May not have effect on some portfolio, photo albums and shortcodes image hovers.', 'theme-options', 'the7mk2' ),
'id' => 'image_hover-style',
'std' => 'none',
'type' => 'images',
'class' => 'small',
'options' => array(
'none' => array(
'title' => _x( 'None', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/image_hover-style-none.gif',
),
'grayscale' => array(
'title' => _x( 'Grayscale', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/image_hover-style-grayscale.gif',
),
'gray_color' => array(
'title' => _x( 'Grayscale with color hovers', 'theme-options', 'the7mk2' ),
'src' => '/inc/admin/assets/images/image_hover-style-grayscale-with-color-hover.gif',
),
),
);
/**
* Hover color.
*/
$options[] = array( 'name' => _x( 'Default image hovers', 'theme-options', 'the7mk2' ), 'type' => 'block' );
$options['image_hover-color_mode'] = array(
'name' => _x( 'Hovers background color', 'theme-options', 'the7mk2' ),
'id' => 'image_hover-color_mode',
'std' => 'accent',
'type' => 'radio',
'class' => 'small',
'options' => array(
'accent' => _x( 'Accent', 'theme-options', 'the7mk2' ),
'color' => _x( 'Custom color', 'theme-options', 'the7mk2' ),
'gradient' => _x( 'Custom gradient', 'theme-options', 'the7mk2' ),
),
);
$options['image_hover-color'] = array(
'name' => ' ',
'id' => 'image_hover-color',
'std' => '#ffffff',
'type' => 'alpha_color',
'dependency' => array(
'field' => 'image_hover-color_mode',
'operator' => '==',
'value' => 'color',
),
);
$options['image_hover-color_gradient'] = array(
'name' => ' ',
'type' => 'gradient_picker',
'id' => 'image_hover-color_gradient',
'std' => '135deg|#ffffff 30%|#000000 100%',
'dependency' => array(
'field' => 'image_hover-color_mode',
'operator' => '==',
'value' => 'gradient',
),
);
$options['image_hover-opacity'] = array(
'name' => _x( 'Hovers background opacity', 'theme-options', 'the7mk2' ),
'id' => 'image_hover-opacity',
'std' => 30,
'type' => 'slider',
'dependency' => array(
'field' => 'image_hover-color_mode',
'operator' => '==',
'value' => 'accent',
),
);
/**
* Hover opacity.
*/
$options[] = array(
'name' => _x( 'Default portfolio & photo albums hovers', 'theme-options', 'the7mk2' ),
'type' => 'block',
);
$options['image_hover-project_rollover_color_mode'] = array(
'name' => _x( 'Hovers background color', 'theme-options', 'the7mk2' ),
'id' => 'image_hover-project_rollover_color_mode',
'std' => 'accent',
'type' => 'radio',
'class' => 'small',
'options' => array(
'accent' => _x( 'Accent', 'theme-options', 'the7mk2' ),
'color' => _x( 'Custom color', 'theme-options', 'the7mk2' ),
'gradient' => _x( 'Custom gradient', 'theme-options', 'the7mk2' ),
),
);
$options['image_hover-project_rollover_color'] = array(
'name' => ' ',
'id' => 'image_hover-project_rollover_color',
'std' => '#ffffff',
'type' => 'alpha_color',
'dependency' => array(
'field' => 'image_hover-project_rollover_color_mode',
'operator' => '==',
'value' => 'color',
),
);
$options['image_hover-project_rollover_color_gradient'] = array(
'name' => ' ',
'type' => 'gradient_picker',
'id' => 'image_hover-project_rollover_color_gradient',
'std' => '135deg|#ffffff 30%|#000000 100%',
'dependency' => array(
'field' => 'image_hover-project_rollover_color_mode',
'operator' => '==',
'value' => 'gradient',
),
);
$options['image_hover-project_rollover_opacity'] = array(
'name' => _x( 'Hovers background opacity', 'theme-options', 'the7mk2' ),
'id' => 'image_hover-project_rollover_opacity',
'std' => 70,
'type' => 'slider',
'dependency' => array(
'field' => 'image_hover-project_rollover_color_mode',
'operator' => '==',
'value' => 'accent',
),
);