Skip to content

Commit 3d3a78e

Browse files
committed
Reorganized Extensions in sample config.
Signed-off-by: Kev Provance <[email protected]>
1 parent f72cb12 commit 3d3a78e

16 files changed

+42
-37
lines changed

sample/sample-config.php

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -509,33 +509,34 @@
509509
require_once Redux_Core::$dir . '../sample/sections/disabling/disable-field.php';
510510
require_once Redux_Core::$dir . '../sample/sections/disabling/disable-section.php';
511511

512-
require_once Redux_Core::$dir . '../sample/sections/accordion/accordion.php';
513-
require_once Redux_Core::$dir . '../sample/sections/js-button/js-button.php';
514-
require_once Redux_Core::$dir . '../sample/sections/repeater/repeater.php';
515-
require_once Redux_Core::$dir . '../sample/sections/search/search.php';
516-
require_once Redux_Core::$dir . '../sample/sections/shortcodes/shortcodes.php';
517-
require_once Redux_Core::$dir . '../sample/sections/social-profiles/social-profiles.php';
518-
519512
// -> START Pro Fields.
520-
if ( class_exists( 'Redux_Pro' ) ) {
521-
Redux::set_section(
522-
$opt_name,
523-
array(
524-
'title' => esc_html__( 'Redux Pro Fields', 'your-textdomain-here' ),
525-
'id' => 'redux-pro-fields',
526-
'icon' => 'el el-redux',
527-
'class' => 'pro_highlight',
528-
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/" target="_blank">https://devs.redux.io/premium/</a>',
529-
)
530-
);
531513

532-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/color-scheme.php';
533-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/custom-fonts.php';
534-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/google-maps.php';
535-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/icon-select.php';
536-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/taxonomy.php';
537-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/users.php';
538-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/widget-areas.php';
514+
Redux::set_section(
515+
$opt_name,
516+
array(
517+
'title' => esc_html__( 'Redux Extensions', 'your-textdomain-here' ),
518+
'id' => 'redux-extensions',
519+
'icon' => 'el el-redux',
520+
'class' => 'pro_highlight',
521+
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-extensions/" target="_blank">https://devs.redux.io/core-extensions/</a>',
522+
)
523+
);
524+
525+
require_once Redux_Core::$dir . '../sample/sections/extensions/accordion.php';
526+
require_once Redux_Core::$dir . '../sample/sections/extensions/js-button.php';
527+
require_once Redux_Core::$dir . '../sample/sections/extensions/repeater.php';
528+
require_once Redux_Core::$dir . '../sample/sections/extensions/search.php';
529+
require_once Redux_Core::$dir . '../sample/sections/extensions/shortcodes.php';
530+
require_once Redux_Core::$dir . '../sample/sections/extensions/social-profiles.php';
531+
require_once Redux_Core::$dir . '../sample/sections/extensions/widget-areas.php';
532+
533+
if ( class_exists( 'Redux_Pro' ) ) {
534+
require_once Redux_Core::$dir . '../sample/sections/extensions/color-scheme.php';
535+
require_once Redux_Core::$dir . '../sample/sections/extensions/custom-fonts.php';
536+
require_once Redux_Core::$dir . '../sample/sections/extensions/google-maps.php';
537+
require_once Redux_Core::$dir . '../sample/sections/extensions/icon-select.php';
538+
require_once Redux_Core::$dir . '../sample/sections/extensions/taxonomy.php';
539+
require_once Redux_Core::$dir . '../sample/sections/extensions/users.php';
539540
}
540541

541542
/**

sample/sections/accordion/accordion.php renamed to sample/sections/extensions/accordion.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
array(
1515
'title' => esc_html__( 'Accordion', 'your-textdomain-here' ),
1616
'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>',
17+
'subsection' => true,
1718
'fields' => array(
1819
array(
1920
'id' => 'accordion-section-1',

sample/sections/js-button/js-button.php renamed to sample/sections/extensions/js-button.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
/**
33
* Redux Pro JS Button Sample config.
4-
*
54
* For full documentation, please visit: http:https://devs.redux.io/
65
*
76
* @package Redux Pro
@@ -13,7 +12,8 @@
1312
$opt_name,
1413
array(
1514
'title' => esc_html__( 'JS Button', 'your-textdomain-here' ),
16-
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/js-button.html" target="_blank">https://devs.redux.io/premium/js-button.html</a>',
15+
'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>',
16+
'subsection' => true,
1717
'fields' => array(
1818
array(
1919
'id' => 'opt-js-button',
@@ -22,7 +22,7 @@
2222
'subtitle' => esc_html__( 'Run javascript in the options panel from button clicks.', 'your-textdomain-here' ),
2323
'desc' => esc_html__( 'Click the Add Date button to add the current date into the text field below.', 'your-textdomain-here' ),
2424
'script' => array(
25-
'url' => plugins_url( 'sample/sections/js-button/js-button.js', REDUX_PLUGIN_FILE ),
25+
'url' => plugins_url( 'sample/sections/extensions/js-button.js', REDUX_PLUGIN_FILE ),
2626
'dir' => dirname( __FILE__ ) . '/js-button.js',
2727
'dep' => array( 'jquery' ),
2828
'ver' => time(),

sample/sections/repeater/repeater.php renamed to sample/sections/extensions/repeater.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
/**
33
* Redux Repeater Sample config.
4-
*
54
* For full documentation, please visit: http:https://devs.redux.io/
65
*
76
* @package Redux Pro
@@ -12,9 +11,10 @@
1211
Redux::set_section(
1312
$opt_name,
1413
array(
15-
'title' => __( 'Repeater', 'your-textdomain-here' ),
16-
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/repeater.html" target="_blank">https://devs.redux.io/premium/repeater.html</a>',
17-
'fields' => array(
14+
'title' => __( 'Repeater', 'your-textdomain-here' ),
15+
'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>',
16+
'subsection' => true,
17+
'fields' => array(
1818
array(
1919
'id' => 'repeater-field-id',
2020
'type' => 'repeater',

sample/sections/search/search.php renamed to sample/sections/extensions/search.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
'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>',
1818
'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' ),
1919
'customizer' => false,
20+
'subsection' => true,
2021
)
2122
);

sample/sections/shortcodes/shortcodes.php renamed to sample/sections/extensions/shortcodes.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
'customizer' => false,
1919
'title' => esc_html__( 'Shortcodes', 'your-textdomain-here' ),
2020
'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>',
21+
'subsection' => true,
2122
'fields' => array(
2223
array(
2324
'id' => 'sc-bloginfo',

sample/sections/social-profiles/social-profiles.php renamed to sample/sections/extensions/social-profiles.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
Redux::set_section(
1212
$opt_name,
1313
array(
14-
'title' => esc_html__( 'Social Profiles', 'your-textdomain-here' ),
15-
'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/social-profiles.html" target="_blank">https://devs.redux.io/premium/social-profiles.html</a>',
16-
'subtitle' => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
17-
'fields' => array(
14+
'title' => esc_html__( 'Social Profiles', 'your-textdomain-here' ),
15+
'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>',
16+
'subtitle' => esc_html__( 'Click an icon to activate it, drag and drop to change the icon order.', 'your-textdomain-here' ),
17+
'subsection' => true,
18+
'fields' => array(
1819
array(
1920
'id' => 'opt-social-profiles',
2021
'type' => 'social_profiles',

sample/sections/pro-fields/widget-areas.php renamed to sample/sections/extensions/widget-areas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'title' => esc_html__( 'Widget Areas is Already Running!', 'your-textdomain-here' ),
2727

2828
// translators: %1$s: Widget Admin URL.
29-
'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>.' ),
29+
'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).' ),
3030
),
3131
),
3232
)

0 commit comments

Comments
 (0)