|
44 | 44 | 'menu_title' => esc_html__( 'Sample Options', 'your-textdomain-here' ),
|
45 | 45 | 'page_title' => esc_html__( 'Sample Options', 'your-textdomain-here' ),
|
46 | 46 |
|
47 |
| - // Disable this in case you want to create your own google fonts loader. |
| 47 | + // Disable this in case you want to create your own Google fonts loader. |
48 | 48 | 'disable_google_fonts_link' => false,
|
49 | 49 |
|
50 | 50 | // Show the panel pages on the admin bar.
|
|
53 | 53 | // Choose an icon for the admin bar menu.
|
54 | 54 | 'admin_bar_icon' => 'dashicons-portfolio',
|
55 | 55 |
|
56 |
| - // Choose an priority for the admin bar menu. |
| 56 | + // Choose a priority for the admin bar menu. |
57 | 57 | 'admin_bar_priority' => 50,
|
58 | 58 |
|
59 | 59 | // Set a different name for your global variable other than the opt_name.
|
|
108 | 108 | 'output_tag' => true,
|
109 | 109 |
|
110 | 110 | // FUTURE -> Not in use yet, but reserved or partially implemented. Use at your own risk.
|
111 |
| - // possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! |
| 111 | + // Possible: options, theme_mods, theme_mods_expanded, transient. Not fully functional, warning! |
112 | 112 | 'database' => '',
|
113 | 113 |
|
114 | 114 | // If you prefer not to use the CDN for Select2, Ace Editor, and others, you may download the Redux Vendor Support plugin yourself and run locally or embed it in your code.
|
|
119 | 119 | 'flyout_submenus' => true,
|
120 | 120 |
|
121 | 121 | // Mode to display fonts (auto|block|swap|fallback|optional)
|
122 |
| - // See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display |
| 122 | + // See: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display . |
123 | 123 | 'font_display' => 'swap',
|
124 | 124 |
|
125 | 125 | // HINTS.
|
|
190 | 190 | );
|
191 | 191 | $args['share_icons'][] = array(
|
192 | 192 | 'url' => '//www.linkedin.com/company/redux-framework',
|
193 |
| - 'title' => esc_html__( 'FInd us on LinkedIn', 'your-textdomain-here' ), |
| 193 | + 'title' => esc_html__( 'Find us on LinkedIn', 'your-textdomain-here' ), |
194 | 194 | 'icon' => 'el el-linkedin',
|
195 | 195 | );
|
196 | 196 |
|
197 | 197 | // Panel Intro text -> before the form.
|
198 |
| -if ( ! isset( $args['global_variable'] ) || false !== $args['global_variable'] ) { |
| 198 | +if ( false !== $args['global_variable'] ) { |
199 | 199 | if ( ! empty( $args['global_variable'] ) ) {
|
200 | 200 | $v = $args['global_variable'];
|
201 | 201 | } else {
|
202 | 202 | $v = str_replace( '-', '_', $args['opt_name'] );
|
203 | 203 | }
|
| 204 | + |
204 | 205 | $args['intro_text'] = '<p>' . sprintf( __( 'Did you know that Redux sets a global variable for you? To access any of your saved options from within your code you can use your global variable: $s', 'your-textdomain-here' ) . '</p>', '<strong>' . $v . '</strong>' );
|
205 | 206 | } else {
|
206 | 207 | $args['intro_text'] = '<p>' . esc_html__( 'This text is displayed above the options panel. It isn\'t required, but more info is always better! The intro_text field accepts all HTML.', 'your-textdomain-here' ) . '</p>';
|
|
274 | 275 | 'desc' => esc_html__( 'Example description.', 'your-textdomain-here' ),
|
275 | 276 | 'subtitle' => esc_html__( 'Example subtitle.', 'your-textdomain-here' ),
|
276 | 277 | 'hint' => array(
|
277 |
| - 'content' => wp_kses( __( 'This is a <strong>hint</strong> tool-tip for the text field.<br/><br/>Add any HTML based text you like here.', 'your-textdomain-here' ), $kses_exceptions ), |
| 278 | + 'content' => wp_kses( __( 'This is a <strong>hint</strong> tool-tip for the text field.<br/><br/>Add any HTML-based text you like here.', 'your-textdomain-here' ), $kses_exceptions ), |
278 | 279 | ),
|
279 | 280 | ),
|
280 | 281 | ),
|
|
0 commit comments