@@ -58,9 +58,9 @@ |
||
| 58 | 58 | <tr> |
| 59 | 59 | <th>Included AddOns</th> |
| 60 | 60 | <td>None</td> |
| 61 | - <td><a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url('https://formidablepro.com/pricing/#addon-lists') ) ?>" target="_blank">Premium Addons</a></td> |
|
| 62 | - <td><a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url('https://formidablepro.com/pricing/#addon-lists') ) ?>" target="_blank">Advanced Addons</a></td> |
|
| 63 | - <td><a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url('https://formidablepro.com/pricing/#addon-lists') ) ?>" target="_blank">Enterprise Addons</a></td> |
|
| 61 | + <td><a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url( 'https://formidablepro.com/pricing/#addon-lists' ) ) ?>" target="_blank">Premium Addons</a></td> |
|
| 62 | + <td><a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url( 'https://formidablepro.com/pricing/#addon-lists' ) ) ?>" target="_blank">Advanced Addons</a></td> |
|
| 63 | + <td><a href="<?php echo esc_url( FrmAppHelper::make_affiliate_url( 'https://formidablepro.com/pricing/#addon-lists' ) ) ?>" target="_blank">Enterprise Addons</a></td> |
|
| 64 | 64 | </tr> |
| 65 | 65 | </tbody> |
| 66 | 66 | </table> |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | $keyed_addons = array(); |
| 44 | 44 | foreach ( $addons as $addon ) { |
| 45 | - $keyed_addons[ $addon['info']['slug'] ] = $addon; |
|
| 45 | + $keyed_addons[$addon['info']['slug']] = $addon; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | $plugin_order = array( |
@@ -53,9 +53,9 @@ discard block |
||
| 53 | 53 | ); |
| 54 | 54 | $ordered_addons = array(); |
| 55 | 55 | foreach ( $plugin_order as $plugin ) { |
| 56 | - if ( isset( $keyed_addons[ $plugin ] ) ) { |
|
| 57 | - $ordered_addons[] = $keyed_addons[ $plugin ]; |
|
| 58 | - unset( $keyed_addons[ $plugin ] ); |
|
| 56 | + if ( isset( $keyed_addons[$plugin] ) ) { |
|
| 57 | + $ordered_addons[] = $keyed_addons[$plugin]; |
|
| 58 | + unset( $keyed_addons[$plugin] ); |
|
| 59 | 59 | } |
| 60 | 60 | } |
| 61 | 61 | $addons = $ordered_addons + $keyed_addons; |
@@ -90,10 +90,10 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | public static function get_licenses() { |
| 93 | - FrmAppHelper::permission_check('frm_change_settings'); |
|
| 93 | + FrmAppHelper::permission_check( 'frm_change_settings' ); |
|
| 94 | 94 | check_ajax_referer( 'frm_ajax', 'nonce' ); |
| 95 | 95 | |
| 96 | - $license = get_option('frmpro-credentials'); |
|
| 96 | + $license = get_option( 'frmpro-credentials' ); |
|
| 97 | 97 | if ( $license && is_array( $license ) && isset( $license['license'] ) ) { |
| 98 | 98 | $url = 'http://formidablepro.com/frm-edd-api/licenses?l=' . urlencode( base64_encode( $license['license'] ) ); |
| 99 | 99 | $licenses = self::send_api_request( $url, array( 'name' => 'frm_api_licence', 'expires' => 60 * 60 * 5 ) ); |
@@ -142,12 +142,12 @@ discard block |
||
| 142 | 142 | 'personal' => array( 'id' => 5, 'price' => '49.00', 'name' => 'Personal' ), |
| 143 | 143 | 'professional' => array( 'id' => 6, 'price' => '99.00', 'name' => 'Professional' ), |
| 144 | 144 | 'smallbusiness' => array( 'id' => 3, 'price' => '199.00', 'name' => 'Small Business' ), |
| 145 | - 'enterprise' => array ( 'id' => 4, 'price' => '399.00', 'name' => 'Enterprise' ), |
|
| 145 | + 'enterprise' => array( 'id' => 4, 'price' => '399.00', 'name' => 'Enterprise' ), |
|
| 146 | 146 | ); |
| 147 | 147 | |
| 148 | 148 | foreach ( $pro['pricing'] as $name => $price ) { |
| 149 | - if ( isset( $pro_pricing[ $name ] ) ) { |
|
| 150 | - $pro_pricing[ $name ]['price'] = $price; |
|
| 149 | + if ( isset( $pro_pricing[$name] ) ) { |
|
| 150 | + $pro_pricing[$name]['price'] = $price; |
|
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | } |