initial commit

This commit is contained in:
2024-04-29 13:12:44 +05:45
commit 34887303c5
19300 changed files with 5268802 additions and 0 deletions

View File

@ -0,0 +1,52 @@
<?php
/**
* Redux Framework button set config.
* For full documentation, please visit: http://devs.redux.io/
*
* @package Redux Framework
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Button Set', 'your-textdomain-here' ),
'id' => 'switch_buttonset-set',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/button-set.html" target="_blank">https://devs.redux.io/core-fields/button-set.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-button-set',
'type' => 'button_set',
'title' => esc_html__( 'Button Set Option', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
// Must provide key => value pairs for radio options.
'options' => array(
'1' => 'Opt 1',
'2' => 'Opt 2',
'3' => 'Opt 3',
),
'default' => '2',
),
array(
'id' => 'opt-button-set-multi',
'type' => 'button_set',
'title' => esc_html__( 'Button Set, Multi Select', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'No validation can be done on this field type', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'multi' => true,
// Must provide key => value pairs for radio options.
'options' => array(
'1' => 'Opt 1',
'2' => 'Opt 2',
'3' => 'Opt 3',
),
'default' => array( '2', '3' ),
),
),
)
);

View File

@ -0,0 +1,8 @@
<?php
/**
* Silence is golden.
*
* @package Redux Framework
*/
echo null;

View File

@ -0,0 +1,62 @@
<?php
/**
* Redux Framework switch config.
* For full documentation, please visit: http://devs.redux.io/
*
* @package Redux Framework
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Switch', 'your-textdomain-here' ),
'id' => 'switch_buttonset-switch',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/switch.html" target="_blank">https://devs.redux.io/core-fields/switch.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'switch-on',
'type' => 'switch',
'title' => esc_html__( 'Switch On', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
'default' => true,
),
array(
'id' => 'switch-off',
'type' => 'switch',
'title' => esc_html__( 'Switch Off', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
'default' => false,
),
array(
'id' => 'switch-parent',
'type' => 'switch',
'title' => esc_html__( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
'default' => false,
'on' => 'Enabled',
'off' => 'Disabled',
),
array(
'id' => 'switch-child1',
'type' => 'switch',
'required' => array( 'switch-parent', '=', true ),
'title' => esc_html__( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
'desc' => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
'default' => false,
),
array(
'id' => 'switch-child2',
'type' => 'switch',
'required' => array( 'switch-parent', '=', true ),
'title' => esc_html__( 'Switch2 - Enable the above switch and this one for patterns to show', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Also called a "fold" parent.', 'your-textdomain-here' ),
'desc' => esc_html__( 'Items set with a fold to this ID will hide unless this is set to the appropriate value.', 'your-textdomain-here' ),
'default' => false,
),
),
)
);