| @@ -8,8 +8,13 @@ | ||
| 8 | 8 | */ |
| 9 | 9 | |
| 10 | 10 | namespace MainWP\Dashboard; |
| 11 | 11 | |
| 12 | +// Exit if accessed directly. | |
| 13 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 14 | + exit; | |
| 15 | +} | |
| 16 | + | |
| 12 | 17 | /** |
| 13 | 18 | * Class MainWP_Client_Overview_Note |
| 14 | 19 | * |
| 15 | 20 | * Displays the Client Note. |
| @@ -56,23 +61,23 @@ | ||
| 56 | 61 | } |
| 57 | 62 | |
| 58 | 63 | ?> |
| 59 | 64 | <div class="mainwp-widget-header"> |
| 60 | - <h3 class="ui header handle-drag"> | |
| 61 | - <?php | |
| 62 | - /** | |
| 63 | - * Filter: mainwp_clients_overview_note_widget_title | |
| 64 | - * | |
| 65 | - * Filters the Site info widget title text. | |
| 66 | - * | |
| 67 | - * @param object $client_info Object containing the child site info. | |
| 68 | - * | |
| 69 | - * @since 4.1 | |
| 70 | - */ | |
| 71 | - echo esc_html( apply_filters( 'mainwp_clients_overview_note_widget_title', esc_html__( 'Notes', 'mainwp' ), $client_info ) ); | |
| 72 | - ?> | |
| 65 | + <h2 class="ui header handle-drag"> | |
| 66 | + <?php | |
| 67 | + /** | |
| 68 | + * Filter: mainwp_clients_overview_note_widget_title | |
| 69 | + * | |
| 70 | + * Filters the Site info widget title text. | |
| 71 | + * | |
| 72 | + * @param object $client_info Object containing the child site info. | |
| 73 | + * | |
| 74 | + * @since 4.1 | |
| 75 | + */ | |
| 76 | + echo esc_html( apply_filters( 'mainwp_clients_overview_note_widget_title', esc_html__( 'Notes', 'mainwp' ), $client_info ) ); | |
| 77 | + ?> | |
| 73 | 78 | <div class="sub header"><?php echo esc_html__( 'Client notes.', 'mainwp' ); ?></div> |
| 74 | - </h3> | |
| 79 | + </h2> | |
| 75 | 80 | </div> |
| 76 | 81 | <div class="mainwp-widget-client-card mainwp-scrolly-overflow"> |
| 77 | 82 | <?php |
| 78 | 83 | /** |
| @@ -111,11 +116,13 @@ | ||
| 111 | 116 | </div> |
| 112 | 117 | <div class="ui two columns grid mainwp-widget-footer"> |
| 113 | 118 | <div class="column"> |
| 114 | 119 | <?php if ( empty( $note ) ) : ?> |
| 115 | - <a href="javascript:void(0)" class="mainwp-edit-client-note ui button mini fluid green" id="mainwp-notes-<?php echo esc_attr( $client_info['client_id'] ); ?>" data-tooltip="<?php esc_attr_e( 'Add notes.', 'mainwp' ); ?>" data-position="right center" data-inverted=""><?php esc_attr_e( 'Add Notes', 'mainwp' ); ?></a> | |
| 116 | - <?php else : ?> | |
| 117 | - <a href="javascript:void(0)" class="mainwp-edit-client-note ui mini fluid button green" id="mainwp-notes-<?php echo esc_attr( $client_info['client_id'] ); ?>" data-tooltip="<?php esc_attr_e( 'Edit notes.', 'mainwp' ); ?>" data-position="right center" data-inverted=""><?php esc_attr_e( 'Edit Notes', 'mainwp' ); ?></a> | |
| 120 | + <a href="javascript:void(0)" class="mainwp-edit-client-note ui button mini" id="mainwp-notes-<?php echo esc_attr( $client_info['client_id'] ); ?>"><?php esc_attr_e( 'Add Notes', 'mainwp' ); ?></a> | |
| 121 | + <?php else : | |
| 122 | + $el_id_cl_id_1 = $client_info['client_id']; | |
| 123 | + ?> | |
| 124 | + <a href="javascript:void(0)" class="mainwp-edit-client-note ui mini button" id="mainwp-notes-<?php echo esc_attr( $el_id_cl_id_1 ); ?>"><?php esc_attr_e( 'Edit Notes', 'mainwp' ); ?></a> | |
| 118 | 125 | <?php endif; ?> |
| 119 | 126 | </div> |
| 120 | 127 | <div class="column"></div> |
| 121 | 128 | </div> |