PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.3 6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 All 156 releases
← All changes | widgets/widget-mainwp-client-overview-note.php +24 -17 5.1.1 → 6.2.1 View file →
@@ -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>