@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * BetterOptin Settings |
|
| 4 | - * |
|
| 5 | - * @package BetterOptin/General Settings |
|
| 6 | - * @author ThemeAvenue <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://themeavenue.net |
|
| 9 | - * @copyright 2015 ThemeAvenue |
|
| 10 | - */ |
|
| 3 | + * BetterOptin Settings |
|
| 4 | + * |
|
| 5 | + * @package BetterOptin/General Settings |
|
| 6 | + * @author ThemeAvenue <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://themeavenue.net |
|
| 9 | + * @copyright 2015 ThemeAvenue |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | // If this file is called directly, abort. |
| 13 | 13 | if ( ! defined( 'WPINC' ) ) { |
@@ -38,10 +38,10 @@ |
||
| 38 | 38 | ); |
| 39 | 39 | |
| 40 | 40 | if ( wpbo_is_pro() ) { |
| 41 | - $providers_option['desc'] = wp_kses_post( sprintf( __( 'Want to use a different provider than WordPress? Go pro! The pro version of BetterOptin gives you access to MailChimp, Aweber and MailPoet. <a href="%1$s" target="_blank">Click here to purchase the pro version</a>. Starting from %2$s.', 'betteroptin' ), esc_url( 'https://betteropt.in/?utm_source=plugin&utm_medium=providers_nag&utm_campaign=upsell' ), '$29' ) ); |
|
| 41 | + $providers_option[ 'desc' ] = wp_kses_post( sprintf( __( 'Want to use a different provider than WordPress? Go pro! The pro version of BetterOptin gives you access to MailChimp, Aweber and MailPoet. <a href="%1$s" target="_blank">Click here to purchase the pro version</a>. Starting from %2$s.', 'betteroptin' ), esc_url( 'https://betteropt.in/?utm_source=plugin&utm_medium=providers_nag&utm_campaign=upsell' ), '$29' ) ); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - $settings['general'] = array( |
|
| 44 | + $settings[ 'general' ] = array( |
|
| 45 | 45 | 'name' => __( 'General', 'betteroptin' ), |
| 46 | 46 | 'options' => array( |
| 47 | 47 | array( |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | if ( function_exists( 'is_multisite' ) && is_multisite() ) { |
| 33 | 33 | |
| 34 | - if ( $network_wide ) { |
|
| 34 | + if ( $network_wide ) { |
|
| 35 | 35 | |
| 36 | 36 | // Get all blog ids |
| 37 | 37 | $blog_ids = wpbo_get_blog_ids(); |
@@ -109,14 +109,14 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | foreach ( $options as $section_id => $section ) { |
| 111 | 111 | |
| 112 | - foreach ( $section['options'] as $option ) { |
|
| 112 | + foreach ( $section[ 'options' ] as $option ) { |
|
| 113 | 113 | |
| 114 | - if ( ! isset( $option['id'] ) ) { |
|
| 114 | + if ( ! isset( $option[ 'id' ] ) ) { |
|
| 115 | 115 | continue; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - $value = isset( $option['default'] ) ? $option['default'] : ''; |
|
| 119 | - $defaults[ $option['id'] ] = $value; |
|
| 118 | + $value = isset( $option[ 'default' ] ) ? $option[ 'default' ] : ''; |
|
| 119 | + $defaults[ $option[ 'id' ] ] = $value; |
|
| 120 | 120 | |
| 121 | 121 | } |
| 122 | 122 | |