Skip to content

Commit 2988d70

Browse files
committed
Add JS Button extension
Signed-off-by: Kev Provance <[email protected]>
1 parent 4c6442f commit 2988d70

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

sample/sample-config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,8 +509,9 @@
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/repeater/repeater.php';
513512
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';
514515
require_once Redux_Core::$dir . '../sample/sections/search/search.php';
515516
require_once Redux_Core::$dir . '../sample/sections/shortcodes/shortcodes.php';
516517

@@ -531,7 +532,6 @@
531532
require_once Redux_Core::$dir . '../sample/sections/pro-fields/custom-fonts.php';
532533
require_once Redux_Core::$dir . '../sample/sections/pro-fields/google-maps.php';
533534
require_once Redux_Core::$dir . '../sample/sections/pro-fields/icon-select.php';
534-
require_once Redux_Core::$dir . '../sample/sections/pro-fields/js-button.php';
535535
require_once Redux_Core::$dir . '../sample/sections/pro-fields/social-profiles.php';
536536
require_once Redux_Core::$dir . '../sample/sections/pro-fields/taxonomy.php';
537537
require_once Redux_Core::$dir . '../sample/sections/pro-fields/users.php';

sample/sections/pro-fields/js-button.php renamed to sample/sections/js-button/js-button.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
array(
1515
'title' => esc_html__( 'JS Button', 'your-textdomain-here' ),
1616
'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>',
17-
'subsection' => true,
1817
'fields' => array(
1918
array(
2019
'id' => 'opt-js-button',
@@ -23,7 +22,7 @@
2322
'subtitle' => esc_html__( 'Run javascript in the options panel from button clicks.', 'your-textdomain-here' ),
2423
'desc' => esc_html__( 'Click the Add Date button to add the current date into the text field below.', 'your-textdomain-here' ),
2524
'script' => array(
26-
'url' => plugins_url( 'sample/sections/pro-fields/js-button.js', REDUX_PLUGIN_FILE ),
25+
'url' => plugins_url( 'sample/sections/js-button/js-button.js', REDUX_PLUGIN_FILE ),
2726
'dir' => dirname( __FILE__ ) . '/js-button.js',
2827
'dep' => array( 'jquery' ),
2928
'ver' => time(),

0 commit comments

Comments
 (0)