Skip to content

Commit 1a73480

Browse files
committed
Request from issue #1132. Now in the core.
1 parent d14e1df commit 1a73480

File tree

8 files changed

+30
-10
lines changed

8 files changed

+30
-10
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ Send me an email at [email protected] so I can add you to our user sp
7474

7575
### Master ###
7676

77+
= 3.2.5.1 =
78+
* Added: `open_expanded` argument to start the panel completely expanded initially.
79+
7780
= 3.2.5 =
7881
* Fixed: Various bad mistakes. Oy.
7982

ReduxCore/assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ReduxCore/assets/css/admin.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,4 +1103,16 @@ pre {
11031103
}
11041104
.redux-main dd, .redux-main li, .redux-sidebar li {
11051105
margin-bottom: 0 !important;
1106+
}
1107+
1108+
.fully-expanded {
1109+
.redux-sidebar {
1110+
margin-left: -500px;
1111+
}
1112+
.redux-main {
1113+
margin-left: 0;
1114+
}
1115+
.redux-group-tab {
1116+
display: block;
1117+
}
11061118
}

ReduxCore/assets/css/redux.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ReduxCore/framework.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* @package Redux_Framework
1818
* @subpackage Core
1919
* @author Redux Framework Team
20-
* @version 3.2.5
20+
* @version 3.2.5.1
2121
*/
2222

2323
// Exit if accessed directly
@@ -64,7 +64,7 @@ class ReduxFramework {
6464
// ATTENTION DEVS
6565
// Please update the build number with each push, no matter how small.
6666
// This will make for easier support when we ask users what version they are using.
67-
public static $_version = '3.2.5';
67+
public static $_version = '3.2.5.1';
6868
public static $_dir;
6969
public static $_url;
7070
public static $wp_content_url;
@@ -126,7 +126,8 @@ static function init() {
126126
'transient_time' => '',
127127
'default_show' => false, // If true, it shows the default value
128128
'default_mark' => '', // What to print by the field's title if the value shown is default
129-
'update_notice' => true,
129+
'update_notice' => true, // Recieve an update notice of new commits when in dev mode
130+
'open_expanded' => false, // Start the panel fully expanded to start with
130131
'hints' => array(
131132
'icon' => 'icon-question-sign',
132133
'icon_position' => 'right',
@@ -2817,7 +2818,8 @@ public function _options_page_html() {
28172818
do_action( "redux/page/{$this->args['opt_name']}/form/before", $this );
28182819

28192820
// Main container
2820-
echo '<div class="redux-container">';
2821+
$expanded = ($this->args['open_expanded']) ? ' fully-expanded' : '';
2822+
echo '<div class="redux-container'.$expanded.'">';
28212823

28222824
echo '<form method="post" action="' . './options.php" enctype="multipart/form-data" id="redux-form-wrapper">';
28232825
echo '<input type="hidden" id="redux-compiler-hook" name="' . $this->args['opt_name'] . '[compiler]" value="" />';
@@ -2859,7 +2861,8 @@ public function _options_page_html() {
28592861
// Stickybar
28602862
echo '<div id="redux-sticky">';
28612863
echo '<div id="info_bar">';
2862-
echo '<a href="javascript:void(0);" class="expand_options">' . __( 'Expand', 'redux-framework' ) . '</a>';
2864+
$expanded = ($this->args['open_expanded']) ? ' expanded' : '';
2865+
echo '<a href="javascript:void(0);" class="expand_options'.$expanded.'">' . __( 'Expand', 'redux-framework' ) . '</a>';
28632866
echo '<div class="redux-action_bar">';
28642867
submit_button( __( 'Save Changes', 'redux-framework'), 'primary', 'redux_save', false );
28652868
echo '&nbsp;';

ReduxCore/inc/fields/import_export/import_export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function render() {
6565
$bDoClose = false;
6666

6767
if (false == $this->is_field) {
68-
$c = 'redux-group-tab-link-li hide';
68+
$c = 'redux-group-tab hide';
6969
} elseif (true == $this->is_field && false == $fullWidth) {
7070
echo '</td></tr></table><table class="form-table no-border redux-group-table redux-raw-table" style="margin-top: -20px;"><tbody><tr><td>';
7171
$bDoClose = true;

redux-framework.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Description: Redux is a simple, truly extensible options framework for WordPress themes and plugins.
1313
* Author: Team Redux
1414
* Author URI: http://reduxframework.com
15-
* Version: 3.2.5
15+
* Version: 3.2.5.1
1616
* Text Domain: redux-framework
1717
* License: GPL3+
1818
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt

sample/sample-config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,9 @@ public function setArguments() {
15061506
'global_variable' => '', // Set a different name for your global variable other than the opt_name
15071507
'dev_mode' => true, // Show the time the page took to load, etc
15081508
'customizer' => true, // Enable basic customizer support
1509-
1509+
//'open_expanded' => true, // Allow you to start the panel in an expanded way initially.
1510+
1511+
15101512
// OPTIONAL -> Give you extra features
15111513
'page_priority' => null, // Order where the menu appears in the admin area. If there is any conflict, something will not show. Warning.
15121514
'page_parent' => 'themes.php', // For a full list of options, visit: http://codex.wordpress.org/Function_Reference/add_submenu_page#Parameters

0 commit comments

Comments
 (0)