first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
<?php
/**
* Redux Pro Box Accordion config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::setSection(
$opt_name,
array(
'title' => esc_html__( 'Accordion Field', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/premium-extensions/accordion" target="_blank">docs.reduxframework.com/premium-extensions/accordion</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__( 'Textbox for some noble purpose.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Frailty, thy name is woman!', 'your-textdomain-here' ),
),
array(
'id' => 'opt-blank-text-2',
'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 textbox.', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'The tartness of his face sours ripe grapes.', 'your-textdomain-here' ),
),
array(
'id' => 'opt-blank-text-4',
'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,46 @@
<?php
/**
* Redux Pro Box Shadow Sample config.
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Box Shadow', 'your-textdomain-here' ),
'id' => 'design-box-shadow',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/core/fields/box-shadow/" target="_blank">docs.reduxframework.com/core/fields/box_shadow/</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-box_shadow',
'type' => 'box_shadow',
'output' => array( '.entry-content' ),
'color_alpha' => array(
'inset-shadow' => true,
),
'media_query' => array(
'output' => true,
'compiler' => true,
'queries' => array(
array(
'rule' => 'screen and (max-width: 360px)',
'selectors' => array( '.box-shadow' ),
),
array(
'rule' => 'screen and (max-width: 1120px)',
'selectors' => array( '.box-shadow-wide' ),
),
),
),
'title' => esc_html__( 'Box Shadow', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Box Shadow with inset and drop shadows.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
),
),
)
);

View File

@@ -0,0 +1,42 @@
<?php
/**
* Redux Pro Color Gradient Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Color Gradient', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/core/fields/color-gradient/" target="_blank">docs.reduxframework.com/core/fields/color-gradient/</a>',
'id' => 'pro-color-gradient',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-pro-color-header',
'type' => 'color_gradient',
'title' => esc_html__( 'Header Gradient Color Option', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Only color 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' ),
'output' => '.site-header',
'gradient-type' => true,
'gradient-reach' => true,
'gradient-angle' => true,
'preview' => true,
'default' => array(
'from' => '#1e73be',
'to' => '#00897e',
'gradient-reach' => array(
'to' => 50,
'from' => 0,
),
),
),
),
)
);

View File

@@ -0,0 +1,98 @@
<?php
/**
* Redux Pro Color Palette Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Color Palette', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/core/fields/color-palette/" target="_blank">docs.reduxframework.com/core/fields/color-palette/</a>',
'id' => 'color-palette',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-color-palette-grey',
'type' => 'color_palette',
'title' => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'User defined colors with round selectors.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'default' => '#888888',
'options' => array(
'colors' => array(
'#000000',
'#222222',
'#444444',
'#666666',
'#888888',
'#aaaaaa',
'#cccccc',
'#eeeeee',
'#ffffff',
),
'style' => 'round',
),
'output' => array(
'background-color' => 'body',
),
),
array(
'id' => 'opt-color-palette-mui-all',
'type' => 'color_palette',
'title' => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'All Material Dedign Colors.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'default' => '#F44336',
'options' => array(
'colors' => Redux_Pro_Helpers::get_material_design_colors( 'all' ),
'size' => 17,
),
),
array(
'id' => 'opt-color-palette-mui-primary',
'type' => 'color_palette',
'title' => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Primary Material Dedign Colors.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'default' => '#000000',
'options' => array(
'colors' => Redux_Pro_Helpers::get_material_design_colors( 'primary' ),
'size' => 25,
'box-shadow' => true,
'margin' => true,
),
),
array(
'id' => 'opt-color-palette-mui-red',
'type' => 'color_palette',
'title' => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Red Material Dedign Colors.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'default' => '#FF1744',
'options' => array(
'colors' => Redux_Pro_Helpers::get_material_design_colors( 'red' ),
'size' => 25,
),
),
array(
'id' => 'opt-color-palette-mui-a100',
'type' => 'color_palette',
'title' => esc_html__( 'Color Palette Control', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'A100 Material Dedign Colors.', 'your-textdomain-here' ),
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
'default' => '#FF80AB',
'options' => array(
'colors' => Redux_Pro_Helpers::get_material_design_colors( 'A100' ),
'size' => 60,
'style' => 'round',
),
),
),
)
);

View File

@@ -0,0 +1,222 @@
<?php
/**
* Redux Pro Color Scheme Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/color-schemes" target="_blank">docs.reduxframework.com/extensions/color-schemes</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 2014, 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 asigned to any group.', 'your-textdomain-here' ),
),
'default' => array(
array(
'id' => 'site-header',
'title' => 'site header',
'color' => '#980000',
'alpha' => 1,
'selector' => array(
'background-color' => '.site-header-main',
'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',
'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', // 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',
'mode' => 'color',
'important' => true,
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'navbar',
'title' => 'navbar',
'color' => '#e06666',
'alpha' => 1,
'selector' => '.navbar',
'mode' => 'background-color',
'group' => esc_html__( 'Header', 'your-textdomain-here' ),
),
array(
'id' => 'body-text',
'title' => 'body text',
'color' => '#000000',
'alpha' => 1,
'selector' => esc_html__( 'Body', 'your-textdomain-here' ),
'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',
'mode' => 'background-color',
'group' => '',
),
array(
'id' => 'site-footer-text',
'title' => 'site footer text',
'color' => '#000000',
'alpha' => 1,
'selector' => '.site-footer a',
'group' => '',
),
),
),
),
)
);

View File

@@ -0,0 +1,35 @@
<?php
/**
* Redux Pro Custom Fonts Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/custom-fonts" target="_blank">docs.reduxframework.com/extensions/custom-fonts</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',
'font-size' => false,
'line-height' => false,
'text-align' => false,
),
),
)
);

View File

@@ -0,0 +1,92 @@
<?php
/**
* Redux Pro Date/Time Picker Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Date / Time Picker', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/extension/date-time" target="_blank">docs.reduxframework.com/extension/date-time/</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-date-time-single',
'type' => 'datetime',
'title' => esc_html__( 'Single Date / Time input', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Display when the split argument is set to false', 'your-textdomain-here' ),
'desc' => 'The separator argument is set to the @ symbol. Control-type is set to \'slider\'',
'split' => false,
'control-type' => 'slider',
'separator' => ' @ ',
),
array(
'id' => 'opt-date-time-split',
'type' => 'datetime',
'title' => esc_html__( 'Split Date / Time input', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Display when the split argument is set to true.', 'your-textdomain-here' ),
'desc' => 'The \'timezone-list\' argument is set to display labels instead of time offsets.',
'split' => true,
'control-type' => 'slider',
'timezone-list' => array(
array(
'value' => 'EST',
'label' => 'Eastern',
),
array(
'value' => 'CST',
'label' => 'Central',
),
array(
'value' => 'GMT',
'label' => 'Moutain',
),
array(
'value' => 'PST',
'label' => 'Pacific',
),
),
),
array(
'id' => 'opt-date-time-date-only',
'type' => 'datetime',
'title' => esc_html__( 'Date only input', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Popup shows only the date picker.', 'your-textdomain-here' ),
'desc' => 'The \'time-picker\' argument is set to false.',
'time-picker' => false,
'placeholder' => 'Date only',
),
array(
'id' => 'opt-date-time-time-only',
'type' => 'datetime',
'title' => esc_html__( 'Time only input', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Popup shows only the time picker.', 'your-textdomain-here' ),
'desc' => 'The \'date-picker\' argument is set to false.',
'date-picker' => false,
'placeholder' => 'Time only',
),
array(
'id' => 'opt-date-time-minmax',
'type' => 'datetime',
'title' => esc_html__( 'Min Max demo', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Both time and date have min and max values.', 'your-textdomain-here' ),
'desc' => 'The selectable date range is 30 days from the current day. The selectable time range is between 8:20 AM and 4:40 PM',
'split' => true,
'time-format' => 'hh:mm TT',
'hour-min' => 8,
'hour-max' => 16,
'minute-min' => 20,
'minute-max' => 40,
'num-of-months' => 2,
'date-min' => 0,
'date-max' => 30,
),
),
)
);

View File

@@ -0,0 +1,49 @@
<?php
/**
* Redux Pro Google Maps Sample config.
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/google-maps" target="_blank">docs.reduxframework.com/extensions/google-maps</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,46 @@
<?php
/**
* Redux Pro Icon Select Sample config.
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
require_once Redux_Pro::$dir . 'core/inc/extensions/icon_select/font-awesome-5-free.php';
Redux::setSection(
$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="//docs.reduxframework.com/extensions/icon-select/" target="_blank">docs.reduxframework.com/extensions/icon-select/</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'icon_select_field',
'type' => 'icon_select',
'title' => esc_html__( 'Icon Select', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Select an icon.', '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' => false,
'stylesheet' => 'https://use.fontawesome.com/releases/v5.6.3/css/all.css',
// If needed to initialize the icon.
'prefix' => 'fa',
// How each icons begins for this given font.
'selector' => 'fa-',
// Change the height of the container. defaults to 300px; .
'height' => 300,
),
),
)
);

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,54 @@
<?php
/**
* Redux Pro JS Button Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/js-button" target="_blank">docs.reduxframework.com/extensions/js-button</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( 'sample/sections/pro-fields/js-button.js', REDUX_PLUGIN_FILE ),
'dir' => dirname( __FILE__ ) . '/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,88 @@
<?php
/**
* Redux Pro Media Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::set_section(
$opt_name,
array(
'title' => esc_html__( 'Media', 'your-textdomain-here' ),
'id' => 'pro-media-media',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/core/fields/media/" target="_blank">docs.reduxframework.com/core/fields/media/</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'pro-opt-media',
'type' => 'pro-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',
'filter' => array(
'grayscale' => array(
'checked' => true,
'value' => 50,
),
),
),
'preview_size' => 'full',
'filter' => array(
'grayscale' => true,
'blur' => true,
'sepia' => true,
'saturate' => true,
'opacity' => true,
'brightness' => true,
'contrast' => true,
'hue-rotate' => true,
'invert' => true,
),
'output' => array( '.header-image img' ),
),
array(
'id' => 'pro-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' ),
'url' => false,
'filter' => array(
'grayscale' => true,
'blur' => true,
),
'preview' => true,
),
array(
'id' => 'pro-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' ),
'hint' => array(
'title' => esc_html__( 'Test', 'your-textdomain-here' ),
'content' => 'This is a <b>hint</b> tool-tip for the webFonts field.<br/><br/>Add any HTML based text you like here.',
),
),
array(
'id' => 'pro-opt-random-upload',
'type' => 'media',
'title' => esc_html__( 'Upload Anything - Disabled Mode', 'your-textdomain-here' ),
'full_width' => 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' ),
),
),
)
);

View File

@@ -0,0 +1,228 @@
<?php
/**
* Redux Framework Sample Metabox Config File
* For full documentation, please visit: http://docs.reduxframework.com/
* Metabox Lite support the following fields only: checkbox, radio, text, textarea, media, & color
* Post Format and Post Template options are not avaialble in Metabox Lite.
* These advanced options are available in Redux Pro.
*
* @package Redux Framework
*/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Redux_Metaboxes' ) ) {
return;
}
Redux_Metaboxes::set_box(
$opt_name,
array(
'id' => 'opt-metaboxes',
'title' => esc_html__( 'Metabox Options', 'your-textdomain-here' ),
'post_types' => array( 'page', 'post' ),
'position' => 'normal', // normal, advanced, side.
'priority' => 'high', // high, core, default, low.
'sections' => array(
array(
'title' => esc_html__( 'Basic Fields', 'your-textdomain-here' ),
'id' => 'opt-basic-fields',
'desc' => 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:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
'icon' => 'el-icon-cogs',
'fields' => array(
array(
'id' => 'opt-checkbox',
'type' => 'checkbox',
'title' => esc_html__( 'Checkbox', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Basic Checkbox field.', 'your-textdomain-here' ),
'default' => true,
),
array(
'id' => 'opt-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-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' => '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-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-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' => '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' => esc_html__( 'Text Fields', 'your-textdomain-here' ),
'desc' => 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:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
'icon' => 'el-icon-cog',
'id' => 'opt-text-fields',
'subsection' => true,
'fields' => array(
array(
'title' => esc_html__( 'Text Field', 'your-textdomain-here' ),
'id' => 'opt-text',
'type' => 'text',
),
array(
'title' => esc_html__( 'Textarea Field', 'your-textdomain-here' ),
'id' => 'opt-textarea',
'type' => 'textarea',
),
),
),
array(
'title' => esc_html__( 'Color Field', 'your-textdomain-here' ),
'desc' => 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:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
'icon' => 'el-icon-pencil',
'id' => 'color-section',
'fields' => array(
array(
'id' => 'opt-color',
'type' => 'color',
'title' => __( 'Color Field', 'your-textdomain-here' ),
'default' => '#333333',
'required' => array( 'opt-layout', '=', 'on' ),
),
),
),
array(
'title' => esc_html__( 'Layout', 'your-textdomain-here' ),
'desc' => 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:', 'your-textdomain-here' ) . ' <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>',
'icon' => 'el-icon-pencil',
'id' => 'home-layout',
'fields' => array(
array(
'id' => '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(
'placebo' => 'placebo',
'highlights' => 'Highlights',
'slider' => 'Slider',
'staticpage' => 'Static Page',
'services' => 'Services',
),
'disabled' => array(
'placebo' => 'placebo',
),
),
),
array(
'id' => 'slides',
'type' => 'slides',
'title' => esc_html__( 'Slides Options', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Unlimited slides with drag and drop sortings.', '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' ),
),
),
),
),
)
);
Redux_Metaboxes::set_box(
$opt_name,
array(
'id' => 'opt-metaboxes-2',
'post_types' => array( 'page', 'post' ),
'position' => 'side', // normal, advanced, side.
'priority' => 'high', // high, core, default, low.
'sections' => array(
array(
'icon_class' => 'icon-large',
'icon' => 'el-icon-home',
'fields' => array(
array(
'title' => esc_html__( 'Cross Box Required', 'your-textdomain-here' ),
'desc' => esc_html__( 'Required arguments work across metaboxes! Click on Color Field under Metabox Options then adjust this field to see the fields within show or hide.', 'your-textdomain-here' ),
'id' => 'opt-layout',
'type' => 'radio',
'options' => array(
'on' => esc_html__( 'On', 'your-textdomain-here' ),
'off' => esc_html__( 'Off', 'your-textdomain-here' ),
),
'default' => 'on',
),
),
),
),
)
);
Redux_Metaboxes::set_box(
$opt_name,
array(
'id' => 'opt-metaboxes-3',
'post_types' => array( 'page', 'post' ),
'position' => 'side', // normal, advanced, side.
'priority' => 'high', // high, core, default, low.
'sections' => array(
array(
'icon_class' => 'icon-large',
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => 'sidebar',
'title' => esc_html__( 'Sidebar', 'your-textdomain-here' ),
'desc' => esc_html__( 'Please select the sidebar you would like to display on this page. Note: You must first create the sidebar under Appearance > Widgets.', 'your-textdomain-here' ),
'type' => 'select',
'data' => 'sidebars',
'default' => 'None',
),
),
),
),
)
);

View File

@@ -0,0 +1,29 @@
<?php
/**
* Redux Pro Multi-Media Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::setSection(
$opt_name,
array(
'title' => esc_html__( 'Multi Media Selector', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/extensions/multi-media" target="_blank">docs.reduxframework.com/extensions/multi-media</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-multi-media',
'type' => 'multi_media',
'title' => esc_html__( 'Multi Media Selector', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Alternative media field which allows for multi selections', 'your-textdomain-here' ),
'desc' => esc_html__( 'max_file_limit has been set to 5.', 'your-textdomain-here' ),
'max_file_upload' => 5,
),
),
)
);

View File

@@ -0,0 +1,69 @@
<?php
/**
* Redux Repeater Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/repeater" target="_blank">docs.reduxframework.com/extensions/repeater</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'repeater-field-id2',
'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',
),
array(
'id' => 'select_field',
'type' => 'select',
'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',
'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 Pro Search Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/live-search" target="_blank">docs.reduxframework.com/extensions/live-search</a>',
'heading' => esc_html__( 'This extension is a drop-in utility. Try the search box to the top right of every panel or metabox section. It will dynamically filter out the visible fields to match your search.', 'your-textdomain-here' ),
'subsection' => true,
'customizer' => false,
)
);

View File

@@ -0,0 +1,414 @@
<?php
/**
* Redux Pro Search Sample config.
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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,
'subsection' => true,
'title' => esc_html__( 'Shortcodes', 'your-textdomain-here' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/extensions/shortcodes" target="_blank">docs.reduxframework.com/extensions/shortcodes</a>',
'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 Pro Social Profiles Sample config.
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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="//docs.reduxframework.com/extensions/social-profiles" target="_blank">docs.reduxframework.com/extensions/social-profiles</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,235 @@
<?php
/**
* Redux Pro Taxonomy Meta config.
* For full documentation, please visit: http://docs.redux.io/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( 'Redux_Taxonomny' ) ) {
return;
}
// Change the priority the Redux_Taxonomy boxes appear.
Redux_Taxonomy::set_args(
$opt_name,
array(
'taxonomy_priority' => 50,
)
);
Redux_Taxonomy::set_term(
$opt_name,
array(
'id' => 'demo-taxonomy',
'title' => __( 'Cool Options', 'your-textdomain-here' ),
// Slug for every taxonomy you want.
'taxonomy_types' => array( 'category', 'post_tag' ),
'add_visibility' => true,
// Can bet set on term, section, or field level. Denotes what fields to be displayed on the add {TERM} pages.
'sections' => array(
array(
'title' => __( 'Home Settings', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => 'tax-text',
'type' => 'text',
'add_visibility' => true,
'title' => __( 'Input 1', 'your-textdomain-here' ),
),
array(
'id' => 'tax-text-2',
'type' => 'text',
'add_visibility' => true,
'required' => array( 'dovy1', '=', '222' ),
'title' => __( 'Input 2', 'your-textdomain-here' ),
),
array(
'id' => 'opt-button-set',
'type' => 'button_set',
'title' => __( 'Button Set Option', 'your-textdomain-here' ),
'subtitle' => __( 'No validation can be done on this field type', 'your-textdomain-here' ),
'desc' => __( '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' => 'dovy3',
'type' => 'text',
'add_visibility' => true,
'title' => __( 'Dovy Input3', 'your-textdomain-here' ),
),
array(
'id' => 'webFonts',
'type' => 'media',
'title' => __( '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' => __( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'section-media-start',
'type' => 'section',
'title' => __( 'Media Options', 'your-textdomain-here' ),
'subtitle' => __( 'With the "section" field you can create indent option sections.', 'your-textdomain-here' ),
'indent' => true,
),
array(
'id' => 'mediaurl',
'type' => 'media',
'url' => true,
'title' => __( 'Media w/ URL', 'your-textdomain-here' ),
'compiler' => 'true',
'desc' => __( 'Basic media uploader with disabled URL input field.', 'your-textdomain-here' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id' => 'section-media-end',
'type' => 'section',
'indent' => false,
),
array(
'id' => 'media-nourl',
'type' => 'media',
'title' => __( 'Media w/o URL', 'your-textdomain-here' ),
'desc' => __( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'media-nopreview',
'type' => 'media',
'preview' => false,
'title' => __( 'Media No Preview', 'your-textdomain-here' ),
'desc' => __( 'This represents the minimalistic view. It does not have the preview box or the display URL in an input box. ', 'your-textdomain-here' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'your-textdomain-here' ),
),
array(
'id' => 'gallery',
'type' => 'gallery',
'title' => __( 'Add/Edit Gallery', 'your-textdomain-here' ),
'subtitle' => __( 'Create a new Gallery by selecting existing or uploading new images using the WordPress native uploader', 'your-textdomain-here' ),
'desc' => __( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
),
array(
'id' => 'slider1bDOVY23',
'type' => 'slider',
'title' => __( 'JQuery UI Slider Example 1', 'your-textdomain-here' ),
'desc' => __( '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' => 'slider2bc',
'type' => 'slider',
'title' => __( 'JQuery UI Slider Example 2 w/ Steps (5)', 'your-textdomain-here' ),
'desc' => __( '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' => 'spinner1bcd',
'type' => 'spinner',
'title' => __( 'JQuery UI Spinner Example 1', 'your-textdomain-here' ),
'desc' => __( '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' => 'switch-parent',
'type' => 'switch',
'title' => __( 'Switch - Nested Children, Enable to show', 'your-textdomain-here' ),
'subtitle' => __( 'Look, it\'s on! Also hidden child elements!', 'your-textdomain-here' ),
'default' => 0,
'on' => 'Enabled',
'off' => 'Disabled',
),
array(
'id' => 'switch-child1',
'type' => 'switch',
'required' => array( 'switch-parent', '=', '1' ),
'title' => __( 'Switch - This and the next switch required for patterns to show', 'your-textdomain-here' ),
'subtitle' => __( 'Also called a "fold" parent.', 'your-textdomain-here' ),
'desc' => __( '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' => __( 'Home Layout', 'your-textdomain-here' ),
'desc' => __( '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: <a href="https://github.com/ReduxFramework/Redux-Framework">https://github.com/ReduxFramework/Redux-Framework</a>', 'your-textdomain-here' ),
'icon' => 'el-icon-home',
'fields' => array(
array(
'id' => '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(
'placebo' => 'placebo', // REQUIRED!
'highlights' => 'Highlights',
'slider' => 'Slider',
'staticpage' => 'Static Page',
'services' => 'Services',
),
'disabled' => array(
'placebo' => 'placebo', // REQUIRED!
),
),
),
array(
'id' => 'presets',
'type' => 'image_select',
'presets' => true,
'title' => __( 'Preset', 'your-textdomain-here' ),
'subtitle' => __( 'This allows you to set a json string or array to override multiple preferences in your theme.', 'your-textdomain-here' ),
'default' => 0,
'desc' => __( '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,43 @@
<?php
/**
* Redux Pro Typography Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
defined( 'ABSPATH' ) || exit;
Redux::setSection(
$opt_name,
array(
'title' => esc_html__( 'Sidebar Typography', 'your-textdomain-here' ),
'id' => 'pro-typography',
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/core/fields/typography/" target="_blank">docs.reduxframework.com/core/fields/typography/</a>',
'subsection' => true,
'fields' => array(
array(
'id' => 'opt-pro-typography-body',
'type' => 'typography',
'title' => esc_html__( 'Body Font', 'your-textdomain-here' ),
'subtitle' => esc_html__( 'Specify the body font properties.', 'your-textdomain-here' ),
'google' => true,
'font_family_clear' => false,
'text-shadow' => true,
'color_alpha' => true,
'margin-top' => true,
'margin-bottom' => true,
'default' => array(
'color' => '#dd9933',
'font-size' => '30px',
'font-family' => 'Arial, Helvetica, sans-serif',
'font-weight' => 'Normal',
'margin-top' => '2px',
'margin-bottom' => '2px',
),
'output' => array( '.content-sidebar' ),
),
),
)
);

View File

@@ -0,0 +1,214 @@
<?php
/**
* Redux Pro User Meta config.
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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__( 'Home 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' => 'webFonts',
'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' => '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' => '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' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id' => 'section-media-end',
'type' => 'section',
'indent' => false,
),
array(
'id' => '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' => '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' => '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' => 'slider1bDOVY23',
'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' => 'slider2bc',
'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' => 'spinner1bcd',
'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' => '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' => 'switch-child1',
'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' => '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' => '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,32 @@
<?php
/**
* Redux Pro Widget Areas Sample config.
*
* For full documentation, please visit: http://docs.reduxframework.com/
*
* @package Redux Pro
*/
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' ),
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="//docs.reduxframework.com/extensions/widget-areas" target="_blank">docs.reduxframework.com/extensions/widget-areas</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>.' ),
),
),
)
);