| Server IP : 38.190.208.107 / Your IP : 216.73.216.207 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/blocksy/inc/options/woocommerce/general/ |
Upload File : |
<?php
/**
* Quantity input options
*
* @copyright 2019-present Creative Themes
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
* @package Blocksy
*/
$options = [
blocksy_rand_md5() => [
'label' => __('Quantity Input', 'blocksy'),
'type' => 'ct-panel',
'setting' => ['transport' => 'postMessage'],
'inner-options' => [
blocksy_rand_md5() => [
'title' => __( 'General', 'blocksy' ),
'type' => 'tab',
'options' => [
'has_custom_quantity' => [
'label' => __( 'Custom Quantity Input', 'blocksy' ),
'type' => 'ct-switch',
'value' => 'yes',
'sync' => blocksy_sync_whole_page([
'prefix' => 'product',
'loader_selector' => '.quantity'
]),
],
blocksy_rand_md5() => [
'type' => 'ct-condition',
'condition' => [ 'has_custom_quantity' => 'yes' ],
'options' => [
'quantity_type' => [
// 'label' => __( 'Quantity Input Type', 'blocksy' ),
'label' => false,
'type' => 'ct-radio',
'value' => 'type-2',
'view' => 'text',
'design' => 'block',
// 'divider' => 'top',
'disableRevertButton' => true,
'setting' => [ 'transport' => 'postMessage' ],
'choices' => [
'type-1' => __( 'Type 1', 'blocksy' ),
'type-2' => __( 'Type 2', 'blocksy' ),
],
],
],
],
],
],
blocksy_rand_md5() => [
'title' => __( 'Design', 'blocksy' ),
'type' => 'tab',
'options' => [
'global_quantity_color' => [
'label' => __( 'Quantity Main Color', 'blocksy' ),
'type' => 'ct-color-picker',
'design' => 'inline',
'sync' => 'live',
'value' => [
'default' => [
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
],
'hover' => [
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
],
],
'pickers' => [
[
'title' => __( 'Initial', 'blocksy' ),
'id' => 'default',
'inherit' => 'var(--theme-button-background-initial-color)',
],
[
'title' => __( 'Hover', 'blocksy' ),
'id' => 'hover',
'inherit' => 'var(--theme-button-background-hover-color)'
],
],
],
'global_quantity_arrows' => [
'label' => __( 'Quantity Arrows Color', 'blocksy' ),
'type' => 'ct-color-picker',
'design' => 'inline',
'sync' => 'live',
'value' => [
'default' => [
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
],
'default_type_2' => [
'color' => 'var(--theme-text-color)',
],
'hover' => [
'color' => Blocksy_Css_Injector::get_skip_rule_keyword('DEFAULT'),
],
],
'pickers' => [
[
'title' => __( 'Initial', 'blocksy' ),
'id' => 'default',
'inherit' => '#ffffff',
'condition' => [ 'quantity_type' => 'type-1' ]
],
[
'title' => __( 'Initial', 'blocksy' ),
'id' => 'default_type_2',
'condition' => [ 'quantity_type' => 'type-2' ]
],
[
'title' => __( 'Hover', 'blocksy' ),
'id' => 'hover',
'inherit' => '#ffffff'
],
],
],
],
],
],
],
];