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,65 @@
<?php
/**
* Redux Framework checkbox 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__( 'Checkbox', 'your-textdomain-here' ),
'id' => 'basic-checkbox',
'subsection' => true,
'customizer_width' => '450px',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/checkbox.html" target="_blank">https://devs.redux.io/core-fields/checkbox.html</a>',
'fields' => array(
array(
'id' => 'opt-checkbox',
'type' => 'checkbox',
'title' => esc_html__( 'Checkbox 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' ),
'default' => '1', // 1 = on | 0 = off.
),
array(
'id' => 'opt-multi-check',
'type' => 'checkbox',
'title' => esc_html__( 'Multi Checkbox 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 multi checkbox options.
'options' => array(
'1' => 'Opt 1',
'2' => 'Opt 2',
'3' => 'Opt 3',
),
'default' => array(
'1' => '1',
'2' => '0',
'3' => '0',
),
),
array(
'id' => 'opt-checkbox-data',
'type' => 'checkbox',
'title' => esc_html__( 'Multi Checkbox Option (with menu data)', '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' ),
'data' => 'menu',
),
array(
'id' => 'opt-checkbox-sidebar',
'type' => 'checkbox',
'title' => esc_html__( 'Multi Checkbox Option (with sidebar data)', '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' ),
'data' => 'sidebars',
),
),
)
);

View File

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

View File

@@ -0,0 +1,28 @@
<?php
/**
* Redux Framework multi text 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__( 'Multi Text', 'your-textdomain-here' ),
'id' => 'basic-multi-text',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/multi-text.html" target="_blank">https://devs.redux.io/core-fields/multi-text.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-multitext',
'type' => 'multi_text',
'title' => esc_html__( 'Multi Text Option', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Field subtitle', 'your-textdomain-here' ),
'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ),
),
),
)
);

View File

@@ -0,0 +1,27 @@
<?php
/**
* Redux Framework password 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__( 'Password', 'your-textdomain-here' ),
'id' => 'basic-password',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/password.html" target="_blank">https://devs.redux.io/core-fields/password.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'password',
'type' => 'password',
'username' => true,
'title' => 'Password Field',
),
),
)
);

View File

@@ -0,0 +1,45 @@
<?php
/**
* Redux Framework radio box 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__( 'Radio', 'your-textdomain-here' ),
'id' => 'basic-radio',
'subsection' => true,
'customizer_width' => '500px',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/radio.html" target="_blank">https://devs.redux.io/core-fields/radio.html</a>',
'fields' => array(
array(
'id' => 'opt-radio',
'type' => 'radio',
'title' => esc_html__( 'Radio 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-radio-data',
'type' => 'radio',
'title' => esc_html__( 'Radio Option w/ Menu Data', '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' ),
'data' => 'menu',
),
),
)
);

View File

@@ -0,0 +1,52 @@
<?php
/**
* Redux Framework sortable 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__( 'Sortable', 'your-textdomain-here' ),
'id' => 'basic-sortable',
'subsection' => true,
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/sortable.html" target="_blank">https://devs.redux.io/core-fields/sortable.html</a>',
'fields' => array(
array(
'id' => 'opt-sortable',
'type' => 'sortable',
'title' => esc_html__( 'Sortable Text Option', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Define and reorder these however you want.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'label' => true,
'options' => array(
'Text One' => 'Item 1',
'Text Two' => 'Item 2',
'Text Three' => 'Item 3',
),
),
array(
'id' => 'opt-check-sortable',
'type' => 'sortable',
'mode' => 'toggle', // toggle or text.
'title' => esc_html__( 'Sortable Toggle Option', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Define and reorder these however you want.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'options' => array(
'cb1' => 'Option One',
'cb2' => 'Option Two',
'cb3' => 'Option Three',
),
'default' => array(
'cb1' => false,
'cb2' => true,
'cb3' => false,
),
),
),
)
);

View File

@@ -0,0 +1,57 @@
<?php
/**
* Redux Framework text 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__( 'Text', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/text.html" target="_blank">https://devs.redux.io/core-fields/text.html</a>',
'id' => 'basic-text',
'subsection' => true,
'customizer_width' => '700px',
'fields' => array(
array(
'id' => 'text-example',
'type' => 'text',
'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ),
'default' => 'Default Text',
),
array(
'id' => 'text-example-hint',
'type' => 'text',
'title' => esc_html__( 'Text Field w/ Hint', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ),
'default' => 'Default Text',
'hint' => array(
'title' => 'Hint Title',
'content' => 'Hint content about this field!',
),
),
array(
'id' => 'text-placeholder',
'type' => 'text',
'title' => esc_html__( 'Text Field w/ placeholder using custom data object.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ),
'placeholder' => array(
'box1' => 'Box One Placeholder',
'box2' => 'Box Two Placeholder',
),
'data' => array(
'box1' => 'Box One Title',
'box2' => 'Box Two Title',
),
),
),
)
);

View File

@@ -0,0 +1,29 @@
<?php
/**
* Redux Framework textarea 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__( 'Textarea', 'your-textdomain-here' ),
'id' => 'basic-textarea',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/textarea.html" target="_blank">https://devs.redux.io/core-fields/textarea.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-textarea',
'type' => 'textarea',
'title' => esc_html__( 'Textarea Option - HTML Validated Custom', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'default' => 'Default Text',
),
),
)
);