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,69 @@
<?php
/**
* Accordion config.
*
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Accordion', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/accordion.html" target="_blank">https://devs.redux.io/core-extensions/accordion.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'accordion-section-1',
'type' => 'accordion',
'title' => esc_html__( 'Accordion Section One', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Section one with subtitle', 'your-textdomain-here' ),
'position' => 'start',
),
array(
'id' => 'opt-blank-text-1',
'type' => 'text',
'title' => esc_html__( 'Text box for some noble purpose.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Frailty, thy name is woman!', 'your-textdomain-here' ),
),
array(
'id' => 'opt-switch-1',
'type' => 'switch',
'title' => esc_html__( 'Switch, for some other important task!', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Physician, heal thyself!', 'your-textdomain-here' ),
),
array(
'id' => 'accordion-section-end-1',
'type' => 'accordion',
'position' => 'end',
),
array(
'id' => 'accordion-section-2',
'type' => 'accordion',
'title' => esc_html__( 'Accordion Section Two (no subtitle)', 'your-textdomain-here' ),
'position' => 'start',
'open' => true,
),
array(
'id' => 'opt-blank-text-3',
'type' => 'text',
'title' => esc_html__( 'Look, another sample text box.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'The tartness of his face sours ripe grapes.', 'your-textdomain-here' ),
),
array(
'id' => 'opt-switch-2',
'type' => 'switch',
'title' => esc_html__( 'Yes, another switch, but you\'re free to use any field you like.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'I scorn you, scurvy companion!', 'your-textdomain-here' ),
),
array(
'id' => 'accordion-section-end-2',
'type' => 'accordion',
'position' => 'end',
),
),
)
);

View File

@ -0,0 +1,222 @@
<?php
/**
* Redux Color Scheme Sample config.
*
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Color Schemes', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/color-schemes.html" target="_blank">https://devs.redux.io/premium/color-schemes.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-color-scheme',
'type' => 'color_scheme',
'title' => esc_html__( 'Color Schemes', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Save and load color schemes', 'your-textdomain-here' ),
'desc' => esc_html__( 'If you\'re using the theme 2023, you will be able to see many changes on the current site.', 'your-textdomain-here' ),
'output' => true,
'compiler' => true,
'simple' => false,
'options' => array(
'show_input' => true,
'show_initial' => true,
'show_alpha' => true,
'show_palette' => true,
'show_palette_only' => false,
'show_selection_palette' => true,
'max_palette_size' => 10,
'allow_empty' => true,
'clickout_fires_change' => false,
'choose_text' => 'Choose',
'cancel_text' => 'Cancel',
'show_buttons' => true,
'use_extended_classes' => true,
'palette' => null, // show default.
),
'groups' => array(
esc_html__( 'Header', 'your-textdomain-here' ) => array(
'desc' => esc_html__( 'Set header and nav colors here. (Group open by default)', 'your-textdomain-here' ),
'hidden' => false,
'accordion_open' => true,
),
esc_html__( 'Body', 'your-textdomain-here' ) => esc_html__( 'Set body and content colors here.', 'your-textdomain-here' ),
esc_html__( 'Widget', 'your-textdomain-here' ) => '',
'' => esc_html__( 'These colors are not assigned to any group.', 'your-textdomain-here' ),
),
'default' => array(
array(
'id' => 'site-header',
'title' => 'site header',
'color' => '#980000',
'alpha' => 1,
'selector' => array(
'background' => '.site-header-main,header',
'color' => '.tester',
),
'mode' => 'background-color',
'important' => true,
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'site-header-border',
'title' => 'site header border',
'color' => '#ff0000',
'alpha' => 1,
'selector' => '.site-header,header',
'mode' => 'border-color',
'important' => true,
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'home-link', // ID.
'title' => 'home link', // Display text.
'color' => '#fdfdfd', // Default colour.
'alpha' => 1, // Default alpha.
'selector' => '.home-link,.wp-block-site-title a', // CSS selector.
'mode' => 'color', // CSS mode.
'important' => true, // CSS important.
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'site-description',
'title' => 'site description',
'color' => '#ededed',
'alpha' => 1,
'selector' => 'h2.site-description,.wp-block-site-tagline',
'mode' => 'color',
'important' => true,
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'navbar',
'title' => 'navbar',
'color' => '#e06666',
'alpha' => 1,
'selector' => '.navbar,.wp-block-navigation',
'mode' => 'background-color',
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'body-text',
'title' => 'body text',
'color' => '#000000',
'alpha' => 1,
'selector' => 'body p',
'mode' => 'color',
'group' => esc_html__( 'Body', 'your-textdomain-here' ),
),
array(
'id' => 'site-content',
'title' => 'site content',
'color' => '#a4c2f4',
'alpha' => 1,
'selector' => '.site-content',
'mode' => 'background-color',
'group' => esc_html__( 'Body', 'your-textdomain-here' ),
),
array(
'id' => 'entry-content',
'title' => 'entry content',
'color' => '#93c47d',
'alpha' => 1,
'selector' => '.entry-content',
'mode' => 'background-color',
'group' => esc_html__( 'Body', 'your-textdomain-here' ),
),
array(
'id' => 'entry-title',
'title' => 'entry title',
'color' => '#000000',
'alpha' => 1,
'selector' => '.entry-title a',
'mode' => 'color',
'group' => esc_html__( 'Body', 'your-textdomain-here' ),
),
array(
'id' => 'entry-title-hover',
'title' => 'entry title hover',
'color' => '#ffffff',
'alpha' => 1,
'selector' => '.entry-title a:hover',
'mode' => 'color',
'group' => esc_html__( 'Body', 'your-textdomain-here' ),
),
array(
'id' => 'entry-meta',
'title' => 'entry meta',
'color' => '#0b5394',
'alpha' => 1,
'selector' => '.entry-meta a',
'mode' => 'color',
'group' => esc_html__( 'Body', 'your-textdomain-here' ),
),
array(
'id' => 'widget-container',
'title' => 'widget container',
'color' => '#f1c232',
'alpha' => .5,
'selector' => '.widget',
'mode' => 'background-color',
'group' => esc_html__( 'Widget', 'your-textdomain-here' ),
),
array(
'id' => 'widget-title',
'title' => 'widget title',
'color' => '#741b47',
'alpha' => 1,
'selector' => '.widget-title',
'mode' => 'color',
'important' => true,
'group' => esc_html__( 'Widget', 'your-textdomain-here' ),
),
array(
'id' => 'widget-text',
'title' => 'widget text',
'color' => '#fdfdfd',
'alpha' => 1,
'selector' => '.widget a',
'mode' => 'color',
'important' => true,
'group' => esc_html__( 'Widget', 'your-textdomain-here' ),
),
array(
'id' => 'sidebar-container',
'title' => 'sidebar container',
'color' => '#d5a6bd',
'alpha' => 1,
'selector' => '.sidebar-container',
'mode' => 'background-color',
'important' => true,
'group' => '',
),
array(
'id' => 'site-footer',
'title' => 'site footer',
'color' => '#ededed',
'alpha' => 1,
'selector' => '.site-footer,footer',
'mode' => 'background-color',
'group' => '',
),
array(
'id' => 'site-footer-text',
'title' => 'site footer text',
'color' => '#000000',
'alpha' => 1,
'selector' => '.site-footer a, footer a',
'group' => '',
),
),
),
),
)
);

View File

@ -0,0 +1,35 @@
<?php
/**
* Redux Custom Fonts Sample config.
*
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Custom Fonts', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/custom-fonts.html" target="_blank">https://devs.redux.io/premium/custom-fonts.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'custom_fonts',
'type' => 'custom_fonts',
),
array(
'id' => 'custom_fonts_typography',
'type' => 'typography',
'title' => esc_html__( 'Custom Fonts Typography', 'your-textdomain-here' ),
'subtitle' => 'This will modify the font family of the .entry-title classes.',
'output' => '.site-title, .widget-title, .entry-title, .wp-block-site-title',
'font-size' => false,
'line-height' => false,
'text-align' => false,
),
),
)
);

View File

@ -0,0 +1,49 @@
<?php
/**
* Redux Google Maps Sample config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/google-maps.html" target="_blank">https://devs.redux.io/premium/google-maps.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'location_geocode',
'type' => 'google_maps',
'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'This map is set using only address information with a zoom factor of 3. Lat/Long is returned automatically.', 'your-textdomain-here' ),
'show_api_key' => true,
'default' => array(
'zoom' => '17', // Zoom far: 3 zoom close 17.
'street_number' => '1600', // Address.
'route' => 'Pennsylvania Avenue', // STREET.
'locality' => 'Washington', // CITY.
'administrative_area_level_1' => 'DC', // STATE.
'postal_code' => '20500',
'country' => 'United States',
),
),
array(
'id' => 'location_geocode2',
'type' => 'google_maps',
'title' => esc_html__( 'Google Maps', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'This map is set using only latitude and longitude with a zoom factor of 7. When setting a Google map using lat/long, address information will not be returned.', 'your-textdomain-here' ),
'show_api_key' => false,
'full_width' => true,
'default' => array(
'latitude' => 38.8976758,
'longitude' => - 77.03648229999999,
'zoom' => 7,
),
),
),
)
);

View File

@ -0,0 +1,95 @@
<?php
/**
* Redux Icon Select Sample config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
/**
* This file is for backward compatibility. Please do not use.
* FontAwesome 6+ is preinstalled with Redux.
*/
require_once Redux_Core::$dir . 'inc/extensions/icon_select/font-awesome-5-free.php';
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Icon Select', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/icon-select.html" target="_blank">https://devs.redux.io/core-extensions/icon-select.html</a>',
'subsection' => true,
'fields' => array(
/**
* This field was left in the sample config to display that every effort to maintain backward compatibility with older
* versions of Icon Select has been implemented.
* Please do NOT use argument in this field in your projects.
* They are considered deprecated.
*/
array(
'id' => 'icon-select-legacy',
'type' => 'icon_select',
'title' => esc_html__( 'Legacy Icon Select', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Original Icon Select field that maintains backward compatibility with the original extension.', 'your-textdomain-here' ),
'default' => '',
'options' => redux_icon_select_fa_5_free(),
// Disable auto-enqueue of stylesheet if present in the panel.
'enqueue' => true,
// Disable auto-enqueue of stylesheet on the front-end.
'enqueue_frontend' => true,
// Stylesheet URL.
'stylesheet' => 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.9.0/css/all.css',
// (Optional) Specify a class prefix if one is needed to initialize the icon.
'prefix' => 'fa',
),
/**
* When creating fields for Icon Select, use this as a template instead.
* For detailed documentation, see: https://devs.redux.io/core-extensions/icon-select.html
*/
array(
'id' => 'icon-select',
'type' => 'icon_select',
'title' => esc_html__( 'Icon Select', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Select an icon.', 'your-textdomain-here' ),
'default' => 'fas fa-1',
// Disable auto-enqueue of stylesheet if present in the panel.
'enqueue' => true,
// Disable auto-enqueue of stylesheet on the front-end.
'enqueue_frontend' => true,
// Stylesheet data.
'stylesheet' => array(
array(
'url' => 'https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/7.2.96/css/materialdesignicons.css',
'title' => 'Material Icons',
'prefix' => 'mdi-set',
),
array(
'url' => 'https://icons.getbootstrap.com/assets/font/bootstrap-icons.min.css',
'title' => 'Bootstrap',
'prefix' => 'bi',
),
array(
'url' => 'https://cdn.lineicons.com/4.0/lineicons.css',
'title' => 'Line Icons',
'prefix' => 'lni',
),
array(
'url' => 'https://cdn.jsdelivr.net/gh/devicons/devicon@v2.15.1/devicon.min.css',
'title' => 'Dev Icons',
'prefix' => '',
),
),
),
),
)
);

View File

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

View File

@ -0,0 +1,15 @@
/* jshint unused:false */
function redux_add_date() {
(function( $ ) {
var date = new Date();
var text = $( '#opt-blank-text' );
text.val( date.toString() );
})( jQuery );
}
function redux_show_alert() {
alert( 'You clicked the Alert button!' );
}

View File

@ -0,0 +1,53 @@
<?php
/**
* Redux JS Button Sample config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'JS Button', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/js-button.html" target="_blank">https://devs.redux.io/core-extensions/js-button.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-js-button',
'type' => 'js_button',
'title' => esc_html__( 'JS Button', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Run javascript in the options panel from button clicks.', 'your-textdomain-here' ),
'desc' => esc_html__( 'Click the Add Date button to add the current date into the text field below.', 'your-textdomain-here' ),
'script' => array(
'url' => plugins_url( '/extensions/js-button.js', __DIR__ ),
'dir' => __DIR__ . '/js-button.js',
'dep' => array( 'jquery' ),
'ver' => time(),
'in_footer' => true,
),
'buttons' => array(
array(
'text' => esc_html__( 'Add Date', 'your-textdomain-here' ),
'class' => 'button-primary',
'function' => 'redux_add_date',
),
array(
'text' => esc_html__( 'Alert', 'your-textdomain-here' ),
'class' => 'button-secondary',
'function' => 'redux_show_alert',
),
),
),
array(
'id' => 'opt-blank-text',
'type' => 'text',
'title' => esc_html__( 'Date', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Click the Add Date button above to fill out this field.', 'your-textdomain-here' ),
),
),
)
);

View File

@ -0,0 +1,71 @@
<?php
/**
* Redux Repeater Sample config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => __( 'Repeater', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/repeater.html" target="_blank">https://devs.redux.io/core-extensions/repeater.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'repeater-field-id',
'type' => 'repeater',
'title' => esc_html__( 'Repeater Demo', 'your-textdomain-here' ),
'full_width' => true,
'subtitle' => esc_html__( 'Repeater', 'your-textdomain-here' ),
'item_name' => '',
'sortable' => true,
'active' => false,
'collapsible' => false,
'fields' => array(
array(
'id' => 'title_field',
'type' => 'text',
'placeholder' => esc_html__( 'Title', 'your-textdomain-here' ),
),
array(
'id' => 'textarea_field',
'type' => 'textarea',
'placeholder' => esc_html__( 'Text Field', 'your-textdomain-here' ),
'default' => 'Text Field here',
'title' => esc_html__( 'Title', 'your-domain-here' ),
),
array(
'id' => 'select_field',
'type' => 'select',
'multi' => true,
'title' => esc_html__( 'Select Field', 'your-textdomain-here' ),
'options' => array(
'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
),
'placeholder' => esc_html__( 'Listing Field', 'your-textdomain-here' ),
),
array(
'id' => 'switch_field',
'type' => 'switch',
'placeholder' => esc_html__( 'Switch Field', 'your-textdomain-here' ),
'default' => true,
),
array(
'id' => 'text_field',
'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
'type' => 'text',
'placeholder' => esc_html__( 'Text Field', 'your-textdomain-here' ),
'required' => array( 'switch_field', '=', false ),
'default' => 'Text Field here',
),
),
),
),
)
);

View File

@ -0,0 +1,22 @@
<?php
/**
* Redux Search Sample config.
*
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
// --> Below this line not needed. This is just for demonstration purposes.
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Live Search', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/live-search.html" target="_blank">https://devs.redux.io/extensions/live-search.html</a>',
'heading' => esc_html__( 'Try the search box at the top right of every panel or metabox section. It will dynamically filter out the visible fields to match your search.', 'your-textdomain-here' ),
'customizer' => false,
'subsection' => true,
)
);

View File

@ -0,0 +1,414 @@
<?php
/**
* Redux Search Sample config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
// --> Below this line not needed. This is just for demonstration purposes.
$function = '<strong>' . esc_html__( 'Function', 'your-textdomain-here' ) . ': </strong>';
$example = esc_html__( 'Example output:', 'your-textdomain-here' ) . ' ';
Redux::set_section(
$opt_name,
array(
'customizer' => false,
'title' => esc_html__( 'Shortcodes', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/shortcodes.html" target="_blank">https://devs.redux.io/extensions/shortcodes.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'sc-bloginfo',
'title' => esc_html__( '[bloginfo data="name"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("name")</code>',
'desc' => esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="name"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-description',
'title' => esc_html__( '[bloginfo data="description"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("description")</code>',
'desc' => esc_html__( 'Displays the "Tagline" set in Settings > General. This data is retrieved from the "blogdescription" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="description"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-wpurl',
'title' => esc_html__( '[bloginfo data="wpurl"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("wpurl")</code>',
'desc' => esc_html__( 'Displays the "WordPress address (URL)" set in Settings > General. This data is retrieved from the "siteurl" record in the wp_options table. Consider using *root_url* instead, especially for multi-site configurations using paths instead of subdomains (it will return the root site not the current sub-site).', 'your-textdomain-here' ),
'type' => 'raw',
'markdown' => true,
'content' => $example . do_shortcode( '<strong>[bloginfo data="wpurl"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-rooturl',
'title' => esc_html__( '[bloginfo data="root_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>site_url()</code>',
'desc' => esc_html__( 'Return the root site, not the current sub-site.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="root_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-url',
'title' => esc_html__( '[bloginfo data="url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>home_url()</code>',
'desc' => esc_html__( 'Displays the "Site address (URL)" set in Settings > General. This data is retrieved from the "home" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-adminemail',
'title' => esc_html__( '[bloginfo data="admin_email"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("admin_email")</code>',
'desc' => esc_html__( 'Displays the "E-mail address" set in Settings > General. This data is retrieved from the "admin_email" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="admin_email"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-charset',
'title' => esc_html__( '[bloginfo data="charset"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("charset")</code>',
'desc' => esc_html__( 'Displays the "Encoding for pages and feeds" set in Settings > Reading. This data is retrieved from the "blog_charset" record in the wp_options.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="charset"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-version',
'title' => esc_html__( '[bloginfo data="version"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("version")</code>',
'desc' => esc_html__( 'Displays the WordPress Version you use. This data is retrieved from the $wp_version variable set in wp-includes/version.php.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="version"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-htmltype',
'title' => esc_html__( '[bloginfo data="html_type"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("html_type")</code>',
'desc' => esc_html__( 'Displays the Content-Type of WordPress HTML pages (default: "text/html"). This data is retrieved from the "html_type" record in the wp_options table. Themes and plugins can override the default value using the pre_option_html_type filter.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="html_type"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-multi',
'title' => esc_html__( '[bloginfo data="is_multisite"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>is_multisite()</code>',
'desc' => esc_html__( 'Displays true/false check if WordPress is running in multisite mode.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . ( do_shortcode( '<strong>[bloginfo data="is_multisite"]</strong>' ) ),
'full_width' => false,
),
array(
'id' => 'sc-rtl',
'title' => esc_html__( '[bloginfo data="text_direction"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>is_rtl()</code>',
'desc' => esc_html__( 'Displays true/false check if the Text Direction of WordPress HTML pages is left instead of right.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . ( do_shortcode( '<strong>[bloginfo data="text_direction"]</strong>' ) ),
'full_width' => false,
),
array(
'id' => 'sc-lang',
'title' => esc_html__( '[bloginfo data="language"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("language")</code>',
'desc' => esc_html__( 'Displays the language of WordPress.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="language"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-stylesheet-url',
'title' => esc_html__( '[bloginfo data="stylesheet_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_stylesheet_uri()</code>',
'desc' => esc_html__( 'Displays the primary CSS (usually style.css) file URL of the active theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="stylesheet_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-stylesheet-dir',
'title' => esc_html__( '[bloginfo data="stylesheet_directory"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_stylesheet_directory()</code>',
'desc' => esc_html__( 'Displays the stylesheet directory of the active theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="stylesheet_directory"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-template-url',
'title' => esc_html__( '[bloginfo data="template_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_template_directory_uri()</code>',
'desc' => esc_html__( 'Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="template_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-child-template-url',
'title' => esc_html__( '[bloginfo data="child_template_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_stylesheet_directory_uri()</code>',
'desc' => esc_html__( 'Child template URI.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="child_template_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-template-dir',
'title' => esc_html__( '[bloginfo data="template_directory"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_template_directory()</code>',
'desc' => esc_html__( 'Template directory.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="template_directory"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-child-template-dir',
'title' => esc_html__( '[bloginfo data="child_template_directory"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_stylesheet_directory()</code>',
'desc' => esc_html__( 'Child template Directory.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="child_template_directory"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-pingback-url',
'title' => esc_html__( '[bloginfo data="pingback_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("pingback_url")</code>',
'desc' => esc_html__( 'Displays the Pingback XML-RPC file URL (xmlrpc.php).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="pingback_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-atom-url',
'title' => esc_html__( '[bloginfo data="atom_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("atom_url")</code>',
'desc' => esc_html__( 'Displays the Atom feed URL (/feed/atom).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="atom_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-rdf-url',
'title' => esc_html__( '[bloginfo data="rdf_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("rdf_url")</code>',
'desc' => esc_html__( 'Displays the RDF/RSS 1.0 feed URL (/feed/rfd).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="rdf_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-rss-url',
'title' => esc_html__( '[bloginfo data="rss_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("rss_url")</code>',
'desc' => esc_html__( 'Displays the RSS 0.92 feed URL (/feed/rss).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="rss_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-rss2-url',
'title' => esc_html__( '[bloginfo data="rss2_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("rss2_url")</code>',
'desc' => esc_html__( 'Displays the RSS 2.0 feed URL (/feed).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="rss2_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-comments-atom-url',
'title' => esc_html__( '[bloginfo data="comments_atom_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("comments_atom_url")</code>',
'desc' => esc_html__( 'Displays the comments Atom feed URL (/comments/feed).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="comments_atom_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-comments-rss2-url',
'title' => esc_html__( '[bloginfo data="comments_rss2_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>get_bloginfo("comments_rss2_url")</code>',
'desc' => esc_html__( 'Displays the comments RSS 2.0 feed URL (/comments/feed).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="comments_rss2_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-login-url',
'title' => esc_html__( '[bloginfo data="login_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>wp_login_url()</code>',
'desc' => esc_html__( 'Returns the WordPress login URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="login_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-logout-url',
'title' => esc_html__( '[bloginfo data="logout_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>wp_logout_url()</code>',
'desc' => esc_html__( 'Returns the WordPress logout URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="logout_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-register-url',
'title' => esc_html__( '[bloginfo data="register_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>wp_registration_url()</code>',
'desc' => esc_html__( 'Returns the WordPress register URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="register_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-lost-pw-url',
'title' => esc_html__( '[bloginfo data="lost_password_url"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>wp_lostpassword_url()</code>',
'desc' => esc_html__( 'Returns the WordPress lost password URL.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[bloginfo data="lost_password_url"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'opt-divide-1',
'type' => 'divide',
),
array(
'id' => 'sc-date',
'title' => esc_html__( '[date data="Y"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>date("Y")</code>',
// translators: %1$s: PHP Date Format URL.
'desc' => sprintf( esc_html__( 'Returns the current year. Any date format characters as specified by the %1$s may be used.', 'your-textdomain-here' ), '<a href="http://php.net/manual/en/function.date.php" target="_blank">' . esc_html__( 'PHP Date Format Table', 'your-textdomain-here' ) . '</a>' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[date data="Y"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'opt-divide-2',
'type' => 'divide',
),
array(
'id' => 'sc-theme-name',
'title' => esc_html__( '[themeinfo data="name"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Name")</code>',
'desc' => esc_html__( 'Theme name as given in theme\'s style.css.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="name"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-uri',
'title' => esc_html__( '[themeinfo data="theme_uri"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("ThemeURI")</code>',
'desc' => esc_html__( 'The URL to the theme\'s directory.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="theme_uri"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-desc',
'title' => esc_html__( '[themeinfo data="description"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Description")</code>',
'desc' => esc_html__( 'The description of the theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="description"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-author',
'title' => esc_html__( '[themeinfo data="author"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Author")</code>',
'desc' => esc_html__( 'The theme\'s author.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="author"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-author-uri',
'title' => esc_html__( '[themeinfo data="author_uri"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("AuthorURI")</code>',
'desc' => esc_html__( 'The website of the theme author.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="author_uri"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-version',
'title' => esc_html__( '[themeinfo data="version"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Version")</code>',
'desc' => esc_html__( 'The version of the theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="version"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-template',
'title' => esc_html__( '[themeinfo data="template"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Template")</code>',
'desc' => esc_html__( 'The folder name of the current theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="template"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-status',
'title' => esc_html__( '[themeinfo data="status"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Status")</code>',
'desc' => esc_html__( 'If the theme is published.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="status"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-tags',
'title' => esc_html__( '[themeinfo data="tags"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("Tags")</code>',
'desc' => esc_html__( 'Tags used to describe the theme.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="tags"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-text-domain',
'title' => esc_html__( '[themeinfo data="text_domain"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("TextDomain")</code>',
'desc' => esc_html__( 'The text domain used in the theme for translation purposes.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="text_domain"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-domain-path',
'title' => esc_html__( '[themeinfo data="domain_path"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>$theme_info->get("DomainPath")</code>',
'desc' => esc_html__( 'Path to the theme translation files.', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="domain_path"]</strong>' ),
'full_width' => false,
),
array(
'id' => 'sc-theme-is-child',
'title' => esc_html__( '[themeinfo data="is_child"]', 'your-textdomain-here' ),
'subtitle' => $function . '<code>is_child_theme()</code>',
'desc' => esc_html__( 'True/False return for child theme active check (Blank indicates False).', 'your-textdomain-here' ),
'type' => 'raw',
'content' => $example . do_shortcode( '<strong>[themeinfo data="is_child"]</strong>' ),
'full_width' => false,
),
),
)
);

View File

@ -0,0 +1,28 @@
<?php
/**
* Redux Social Profiles Sample config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Social Profiles', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/social-profiles.html" target="_blank">https://devs.redux.io/core-extensions/social-profiles.html</a>',
'subtitle' => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-social-profiles',
'type' => 'social_profiles',
'title' => esc_html__( 'Social Profiles', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
'hide_widget_msg' => true,
),
),
)
);

View File

@ -0,0 +1,185 @@
<?php
/**
* Redux Framework tabbed config.
* For full documentation, please visit: http://devs.redux.io/
*
* @package Redux Framework\Sample\Tabbed
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Tabbed', 'your-textdomain-here' ),
'id' => 'additional-tabbed',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/tabbed.html" target="_blank">https://devs.redux.io/core-fields/tabbed.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-tabbed-1',
'type' => 'tabbed',
'title' => 'Tabbed Layout 1',
'tabs' => array(
array(
'title' => 'Basic Fields',
'icon' => 'fas fa-gear',
'fields' => array(
array(
'id' => 'opt-tab-checkbox-1',
'type' => 'checkbox',
'title' => esc_html__( 'Checkbox', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Basic Checkbox field.', 'your-textdomain-here' ),
'default' => true,
),
array(
'id' => 'opt-tab-radio',
'type' => 'radio',
'title' => esc_html__( 'Radio Button', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Basic Radio Button field.', 'your-textdomain-here' ),
'options' => array(
'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
),
'default' => '2',
),
array(
'id' => 'opt-tab-media',
'type' => 'media',
'url' => true,
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
'compiler' => 'true',
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id' => 'opt-tab-gallery',
'type' => 'gallery',
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
),
array(
'id' => 'opt-tab-slider',
'type' => 'slider',
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
'default' => '0',
'min' => '0',
'step' => '5',
'max' => '300',
),
array(
'id' => 'opt-tab-spinner',
'type' => 'spinner',
'title' => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
'default' => '40',
'min' => '20',
'step' => '20',
'max' => '100',
),
array(
'id' => 'opt-tab-switch-on',
'type' => 'switch',
'title' => esc_html__( 'Switch On', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Look, it\'s on!', 'your-textdomain-here' ),
'default' => 1,
),
),
),
array(
'title' => 'Text Fields',
'icon' => 'fas fa-font',
'fields' => array(
array(
'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
'id' => 'opt-tab-text',
'type' => 'text',
),
array(
'title' => esc_html__( 'Textarea Field', 'your-textdomain-here' ),
'id' => 'opt-tab-textarea',
'type' => 'textarea',
),
),
),
array(
'title' => esc_html__( 'Color Fields', 'your-textdomain-here' ),
'icon' => 'fas fa-palette',
'fields' => array(
array(
'id' => 'opt-tab-color-1',
'type' => 'color',
'title' => esc_html__( 'Color 1', 'your-textdomain-here' ),
),
array(
'id' => 'opt-tab-color-2',
'type' => 'color',
'title' => esc_html__( 'Color 2', 'your-textdomain-here' ),
),
),
),
),
),
array(
'id' => 'opt-tabbed-2',
'type' => 'tabbed',
'title' => 'Tabbed Layout 2',
'tabs' => array(
array(
'title' => 'Layout',
'fields' => array(
array(
'id' => 'opt-tab-homepage_blocks',
'type' => 'sorter',
'title' => 'Homepage Layout Manager',
'desc' => 'Organize how you want the layout to appear on the homepage',
'compiler' => 'true',
'options' => array(
'enabled' => array(
'placebo' => 'placebo',
'highlights' => 'Highlights',
'slider' => 'Slider',
'staticpage' => 'Static Page',
'services' => 'Services',
),
'disabled' => array(
'placebo' => 'placebo',
),
),
),
array(
'id' => 'opt-tab-slides',
'type' => 'slides',
'title' => esc_html__( 'Slides Options', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Unlimited slides with drag and drop sorting.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This field will store all slides values into a multidimensional array to use into a foreach loop.', 'your-textdomain-here' ),
),
),
),
array(
'title' => 'Advanced Text',
'fields' => array(
array(
'title' => esc_html__( 'WP Editor', 'your-textdomain-here' ),
'id' => 'opt-tab-editor',
'type' => 'editor',
),
array(
'title' => esc_html__( 'ACE Editor', 'your-textdomain-here' ),
'id' => 'opt-tab-ace',
'type' => 'ace_editor',
),
),
),
),
),
),
)
);

View File

@ -0,0 +1,226 @@
<?php
/**
* Redux Taxonomy Meta config.
* For full documentation, please visit: http://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Redux_Taxonomy' ) ) {
return;
}
// Change the priority the Redux_Taxonomy boxes appear.
Redux_Taxonomy::set_args(
$opt_name,
array(
'taxonomy_priority' => 55,
)
);
Redux_Taxonomy::set_term(
$opt_name,
array(
'id' => 'demo-taxonomy',
'title' => esc_html__( 'Cool Options', 'your-textdomain-here' ),
// Slug for every taxonomy you want.
'taxonomy_types' => array( 'category', 'post_tag' ),
'add_visibility' => true,
// Can be set on term, section, or field level. Denote what fields to be displayed on the added {TERM} pages.
'sections' => array(
array(
'title' => esc_html__( 'Home Settings', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => 'tax-text',
'type' => 'text',
'add_visibility' => true,
'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
),
array(
'id' => 'tax-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' ),
'add_visibility' => true,
'options' => array(
'1' => 'Opt 1',
'2' => 'Opt 2',
'3' => 'Opt 3',
),
'default' => '2',
),
array(
'id' => 'tax-text-2',
'type' => 'text',
'add_visibility' => true,
'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
),
array(
'id' => 'tax-web-fonts',
'type' => 'media',
'title' => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
'compiler' => 'true',
'mode' => false,
// Can be set to false to allow any media type, or can also be set to any mime type.
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'tax-section-media-start',
'type' => 'section',
'title' => esc_html__( 'Media Options', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
'indent' => true,
),
array(
'id' => 'tax-media-url',
'type' => 'media',
'url' => true,
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
'compiler' => 'true',
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id' => 'tax-section-media-end',
'type' => 'section',
'indent' => false,
),
array(
'id' => 'tax-media-no-url',
'type' => 'media',
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'tax-media-no-preview',
'type' => 'media',
'preview' => false,
'title' => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'tax-gallery',
'type' => 'gallery',
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
),
array(
'id' => 'tax-slider',
'type' => 'slider',
'title' => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
'default' => '46',
'min' => '1',
'step' => '3',
'max' => '500',
),
array(
'id' => 'tax-slider-2',
'type' => 'slider',
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
'default' => '0',
'min' => '0',
'step' => '5',
'max' => '300',
),
array(
'id' => 'tax-spinner',
'type' => 'spinner',
'title' => esc_html__( 'Spinner Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'Spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
'default' => '40',
'min' => '20',
'step' => '20',
'max' => '100',
),
array(
'id' => 'tax-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' => 0,
'on' => 'Enabled',
'off' => 'Disabled',
),
array(
'id' => 'tax-switch-child',
'type' => 'switch',
'required' => array( 'tax-switch-parent', '=', '1' ),
'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(
'title' => esc_html__( 'Home Layout', 'your-textdomain-here' ),
// translators: %s = Redux GitHub URL.
'desc' => sprintf( esc_html__( 'Redux Framework was created with the developer in mind. It allows for any theme developer to have an advanced theme panel with most of the features a developer would need. For more information check out the GitHub repo at: %s', 'your-textdomain-here' ), '<a href="https://github.com/reduxframework/redux-framework">https://github.com/reduxframework/redux-framework</a>' ),
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => 'tax-homepage_blocks',
'type' => 'sorter',
'title' => 'Homepage Layout Manager',
'desc' => 'Organize how you want the layout to appear on the homepage',
'compiler' => 'true',
'add_visibility' => true,
'options' => array(
'enabled' => array(
'highlights' => 'Highlights',
'slider' => 'Slider',
'staticpage' => 'Static Page',
),
'disabled' => array(
'services' => 'Services',
),
),
),
array(
'id' => 'tax-presets',
'type' => 'image_select',
'presets' => true,
'title' => esc_html__( 'Preset', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'default' => 0,
'desc' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'options' => array(
'1' => array(
'alt' => 'Preset 1',
'img' => ReduxFramework::$_url . '../sample/presets/preset1.png',
'presets' => array(
'switch-on' => 1,
'switch-off' => 1,
'switch-custom' => 1,
),
),
'2' => array(
'alt' => 'Preset 2',
'img' => ReduxFramework::$_url . '../sample/presets/preset2.png',
'presets' => '{"slider1":"1", "slider2":"0", "switch-on":"0"}',
),
),
),
),
),
),
)
);

View File

@ -0,0 +1,214 @@
<?php
/**
* Redux User Meta config.
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Redux_Users' ) ) {
return;
}
// Change the priority the Redux_Users boxes appear.
Redux_Users::set_Args(
$opt_name,
array(
'user_priority' => 50,
)
);
Redux_Users::set_profile(
$opt_name,
array(
'id' => 'demo-users',
'title' => esc_html__( 'Cool Options', 'your-textdomain-here' ),
'style' => 'wp',
'sections' => array(
array(
'title' => esc_html__( 'User Settings', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => 'user-text',
'type' => 'text',
'title' => esc_html__( 'Input 1', 'your-textdomain-here' ),
),
array(
'id' => 'user-text-2',
'type' => 'text',
'required' => array( 'user-text', '=', 'two' ),
'title' => esc_html__( 'Input 2', 'your-textdomain-here' ),
),
array(
'id' => 'user-text-3',
'type' => 'text',
'title' => esc_html__( 'Input 3', 'your-textdomain-here' ),
),
array(
'id' => 'user-web-fonts',
'type' => 'media',
'title' => esc_html__( 'Web Fonts', 'your-textdomain-here' ),
'compiler' => 'true',
'mode' => false,
// Can be set to false allowing for any media type, or can also be set to any mime type.
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'user-section-media-start',
'type' => 'section',
'title' => esc_html__( 'Media Options', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
'indent' => true,
),
array(
'id' => 'user-mediaurl',
'type' => 'media',
'url' => true,
'title' => esc_html__( 'Media w/ URL', 'your-textdomain-here' ),
'compiler' => 'true',
'desc' => esc_html__( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'default' => array( 'url' => 'https://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id' => 'user-section-media-end',
'type' => 'section',
'indent' => false,
),
array(
'id' => 'user-media-nourl',
'type' => 'media',
'title' => esc_html__( 'Media w/o URL', 'your-textdomain-here' ),
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'user-media-nopreview',
'type' => 'media',
'preview' => false,
'title' => esc_html__( 'Media No Preview', 'your-textdomain-here' ),
'desc' => esc_html__( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'user-gallery',
'type' => 'gallery',
'title' => esc_html__( 'Add/Edit Gallery', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
),
array(
'id' => 'user-slider-one',
'type' => 'slider',
'title' => esc_html__( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 1, max: 500, step: 3, default value: 45', 'your-textdomain-here' ),
'default' => '46',
'min' => '1',
'step' => '3',
'max' => '500',
),
array(
'id' => 'user-slider-two',
'type' => 'slider',
'title' => esc_html__( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI slider description. Min: 0, max: 300, step: 5, default value: 75', 'your-textdomain-here' ),
'default' => '0',
'min' => '0',
'step' => '5',
'max' => '300',
),
array(
'id' => 'user-spinner',
'type' => 'spinner',
'title' => esc_html__( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
'desc' => esc_html__( 'JQuery UI spinner description. Min:20, max: 100, step:20, default value: 40', 'your-textdomain-here' ),
'default' => '40',
'min' => '20',
'step' => '20',
'max' => '100',
),
array(
'id' => 'user-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' => 0,
'on' => 'Enabled',
'off' => 'Disabled',
),
array(
'id' => 'user-switch-child',
'type' => 'switch',
'required' => array( 'switch-parent', '=', '1' ),
'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(
'title' => esc_html__( 'Home Layout', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => 'user-homepage_blocks',
'type' => 'sorter',
'title' => 'Homepage Layout Manager',
'desc' => 'Organize how you want the layout to appear on the homepage',
'compiler' => 'true',
'required' => array( 'layout', '=', '1' ),
'options' => array(
'enabled' => array(
'highlights' => 'Highlights',
'slider' => 'Slider',
'staticpage' => 'Static Page',
'services' => 'Services',
),
'disabled' => array(),
),
),
array(
'id' => 'user-presets',
'type' => 'image_select',
'presets' => true,
'title' => esc_html__( 'Preset', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'default' => 0,
'desc' => esc_html__( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'options' => array(
'1' => array(
'alt' => 'Preset 1',
'img' => Redux_Core::$url . '../sample/presets/preset1.png',
'presets' => array(
'switch-on' => 1,
'switch-off' => 1,
'switch-custom' => 1,
),
),
'2' => array(
'alt' => 'Preset 2',
'img' => Redux_Core::$url . '../sample/presets/preset2.png',
'presets' => "{'slider1':'1', 'slider2':'0', 'switch-on':'0'}",
),
),
),
),
),
),
)
);
// Recovering user data.
$data = Redux_Users::get_user_meta(
array(
'key' => 'user-text', /* If you're only looking for a key within the meta, otherwise all values will be returned. */
'opt_name' => $opt_name, // Optional, but needed to recover default values for unset values.
'user' => '', // User id, else current user ID is returned.
)
);

View File

@ -0,0 +1,33 @@
<?php
/**
* Redux Widget Areas Sample config.
*
* For full documentation, please visit: http:https://devs.redux.io/
*
* @package Redux
*/
defined( 'ABSPATH' ) || exit;
// --> Below this line not needed. This is just for demonstration purposes.
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Widget Areas', 'your-textdomain-here' ),
// phpcs:ignore
// 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/extensions/widget-areas.html" target="_blank">https://devs.redux.io/extensions/widget-areas.html</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'widget_areas',
'type' => 'info',
'style' => 'info',
'notice' => true,
'title' => esc_html__( 'Widget Areas is Already Running!', 'your-textdomain-here' ),
// translators: %1$s: Widget Admin URL.
'subtitle' => sprintf( esc_html__( 'To see it in action, head over to your %1$s', 'your-textdomain-here' ), '<a href="' . admin_url( 'widgets.php' ) . '">' . esc_html__( 'Widgets page', 'your-textdomain-here' ) . '</a> (Applicable for Classic Widgets only).' ),
),
),
)
);