1 | <div class="uix-field-wrapper"> |
||
2 | <?php |
||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||
3 | $display_settings_page = false; |
||
4 | |||
5 | if ( class_exists( 'LSX_Currencies' ) ) { |
||
0 ignored issues
–
show
|
|||
6 | $display_settings_page = true; |
||
7 | } |
||
8 | ?> |
||
9 | |||
10 | <ul class="ui-tab-nav"> |
||
11 | <?php |
||
12 | if ( false !== $display_settings_page ) { |
||
0 ignored issues
–
show
|
|||
13 | ?> |
||
14 | <li><a href="#ui-settings" class="active"><?php esc_html_e( 'Settings', 'lsx-currencies' ); ?></a></li><?php } ?> |
||
15 | <li><a href="#ui-keys" |
||
16 | <?php |
||
17 | if ( false === $display_settings_page ) { |
||
0 ignored issues
–
show
|
|||
18 | ?> |
||
19 | class="active"<?php } ?>><?php esc_html_e( 'License Keys', 'lsx-currencies' ); ?></a></li> |
||
20 | </ul> |
||
21 | |||
22 | <?php if ( false !== $display_settings_page ) { ?> |
||
0 ignored issues
–
show
|
|||
23 | <div id="ui-settings" class="ui-tab active"> |
||
24 | <p><?php esc_html_e( 'Please enter your user details (email address, API key, username, etc) below as required for the extensions that you have installed.', 'lsx-currencies' ); ?></p> |
||
25 | |||
26 | <table class="form-table" style="margin-top:-13px !important;"> |
||
27 | <tbody> |
||
28 | <?php do_action( 'lsx_framework_api_tab_content', 'settings' ); ?> |
||
29 | </tbody> |
||
30 | </table> |
||
31 | </div> |
||
32 | <?php } ?> |
||
33 | |||
34 | <div id="ui-keys" class="ui-tab |
||
35 | <?php |
||
36 | if ( false === $display_settings_page ) { |
||
0 ignored issues
–
show
|
|||
37 | ?> |
||
38 | active<?php } ?>"> |
||
39 | <table class="form-table" style="margin-top:-13px !important;"> |
||
40 | <tbody> |
||
41 | <?php |
||
42 | $lsx = admin_url( 'themes.php?page=lsx-welcome' ); |
||
0 ignored issues
–
show
Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line. To visualize $a = "a";
$ab = "ab";
$abc = "abc";
will produce issues in the first and second line, while this second example $a = "a";
$ab = "ab";
$abc = "abc";
will produce no issues. ![]() |
|||
43 | $message = sprintf( "Please enter the license and API key's for your add-ons below." ); |
||
0 ignored issues
–
show
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line. To visualize $a = "a";
$ab = "ab";
$abc = "abc";
will produce issues in the first and second line, while this second example $a = "a";
$ab = "ab";
$abc = "abc";
will produce no issues. ![]() |
|||
44 | $message .= sprintf( " Follow this <a href='%s' title='LSX add-ons'>link</a> to see what extensions are available for LSX.", $lsx ); |
||
45 | ?> |
||
46 | |||
47 | <p class="info"><?php echo wp_kses_post( $message ); ?></p> |
||
48 | |||
49 | <?php |
||
50 | $api_keys_content = false; |
||
51 | ob_start(); |
||
52 | do_action( 'lsx_framework_api_tab_content', 'api' ); |
||
53 | $api_keys_content = ob_end_clean(); |
||
54 | ?> |
||
55 | </tbody> |
||
56 | </table> |
||
57 | </div> |
||
58 | |||
59 | <?php do_action( 'lsx_framework_api_tab_bottom', 'api' ); ?> |
||
60 | </div> |
||
61 |