|
28 | 28 | <div class="shapely-action-required-box"> |
29 | 29 | <?php if ( ! $hidden ): ?> |
30 | 30 | <span data-action="dismiss" class="dashicons dashicons-visibility shapely-required-action-button" |
31 | | - id="<?php echo $shapely_required_action_value['id']; ?>"></span> |
| 31 | + id="<?php echo esc_attr( $shapely_required_action_value['id'] ); ?>"></span> |
32 | 32 | <?php else: ?> |
33 | | - <span data-action="add" class="dashicons dashicons-hidden shapely-required-action-button" id="<?php echo $shapely_required_action_value['id']; ?>"></span> |
| 33 | + <span data-action="add" class="dashicons dashicons-hidden shapely-required-action-button" |
| 34 | + id="<?php echo esc_attr( $shapely_required_action_value['id'] ); ?>"></span> |
34 | 35 | <?php endif; ?> |
35 | | - <h3><?php if ( ! empty( $shapely_required_action_value['title'] ) ): echo $shapely_required_action_value['title']; endif; ?></h3> |
| 36 | + <h3><?php if ( ! empty( $shapely_required_action_value['title'] ) ): echo esc_html( $shapely_required_action_value['title'] ); endif; ?></h3> |
36 | 37 | <p> |
37 | | - <?php if ( ! empty( $shapely_required_action_value['description'] ) ): echo $shapely_required_action_value['description']; endif; ?> |
38 | | - <?php if ( ! empty( $shapely_required_action_value['help'] ) ): echo '<br/>' . $shapely_required_action_value['help']; endif; ?> |
| 38 | + <?php if ( ! empty( $shapely_required_action_value['description'] ) ): echo esc_html( $shapely_required_action_value['description'] ); endif; ?> |
| 39 | + <?php if ( ! empty( $shapely_required_action_value['help'] ) ): echo '<br/>' . wp_kses_post( $shapely_required_action_value['help'] ); endif; ?> |
39 | 40 | </p> |
40 | 41 | <?php |
| 42 | + if ( ! empty( $shapely_required_action_value['external'] ) && file_exists( $shapely_required_action_value['external'] ) ) { |
| 43 | + require_once $shapely_required_action_value['external']; |
| 44 | + } |
| 45 | + ?> |
| 46 | + <?php |
41 | 47 | if ( ! empty( $shapely_required_action_value['plugin_slug'] ) ) { |
42 | 48 | $active = $this->check_active( $shapely_required_action_value['plugin_slug'] ); |
43 | 49 | $url = $this->create_action_link( $active['needs'], $shapely_required_action_value['plugin_slug'] ); |
@@ -73,6 +79,7 @@ class="<?php echo $class; ?>" |
73 | 79 | endforeach; |
74 | 80 | endif; |
75 | 81 |
|
| 82 | + |
76 | 83 | if ( $hooray ): |
77 | 84 | echo '<span class="hooray">' . __( 'Hooray! There are no required actions for you right now.', 'shapely' ) . '</span>'; |
78 | 85 | endif; |
|
0 commit comments