← All changes
|
WPDataAccess/Data_Publisher/WPDA_Publisher_Form.php
+2
-2
5.5.79
→
5.5.85
View file →
| @@ -192,9 +192,9 @@ | ||
| 192 | 192 | // Prepare selection for column pub_column_names. |
| 193 | 193 | if ( $form_item->get_item_name() === 'pub_column_names' ) { |
| 194 | 194 | $title = __( 'Select columns shown in data table', 'wp-data-access' ); |
| 195 | 195 | $form_item->set_item_hide_icon( true ); |
| 196 | - $form_item->set_item_js( 'jQuery("#pub_column_names").parent().parent().find("td.icon").append("<a id=\'select_columns\' class=\'button wpda_tooltip\' href=\'javascript:void(0)\' title=\'' . $title . '\' onclick=\'select_columns()\'>' . '<i class=\'fas fa-list wpda_icon_on_button\'></i> ' . __( 'Select', 'wp-data-access' ) . '</a>");' ); | |
| 196 | + $form_item->set_item_js( 'jQuery("#pub_column_names").parent().parent().find("td.icon").append("<a id=\'select_columns\' class=\'button wpda_tooltip\' href=\'javascript:void(0)\' title=\'' . esc_attr( $title ) . '\' onclick=\'select_columns()\'>' . '<i class=\'fas fa-list wpda_icon_on_button\'></i> ' . __( 'Select', 'wp-data-access' ) . '</a>");' ); | |
| 197 | 197 | } |
| 198 | 198 | // Prepare column label settings. |
| 199 | 199 | if ( $form_item->get_item_name() === 'pub_format' ) { |
| 200 | 200 | $title = __( 'Define columns for data table (not necessary if already defined in Data Explorer table settings)', 'wp-data-access' ); |
| @@ -199,9 +199,9 @@ | ||
| 199 | 199 | if ( $form_item->get_item_name() === 'pub_format' ) { |
| 200 | 200 | $title = __( 'Define columns for data table (not necessary if already defined in Data Explorer table settings)', 'wp-data-access' ); |
| 201 | 201 | $form_item->set_item_hide_icon( true ); |
| 202 | 202 | $form_item->set_item_class( 'hide_item' ); |
| 203 | - $form_item->set_item_js( 'jQuery("#pub_format").parent().parent().find("td.data").append("<a id=\'format_columns\' class=\'button wpda_tooltip\' href=\'javascript:void(0)\' title=\'' . $title . '\' onclick=\'format_columns()\'>' . '<i class=\'fas fa-tag wpda_icon_on_button\'></i> ' . __( 'Click to define column labels', 'wp-data-access' ) . '</a>");' ); | |
| 203 | + $form_item->set_item_js( 'jQuery("#pub_format").parent().parent().find("td.data").append("<a id=\'format_columns\' class=\'button wpda_tooltip\' href=\'javascript:void(0)\' title=\'' . esc_attr( $title ) . '\' onclick=\'format_columns()\'>' . '<i class=\'fas fa-tag wpda_icon_on_button\'></i> ' . __( 'Click to define column labels', 'wp-data-access' ) . '</a>");' ); | |
| 204 | 204 | } |
| 205 | 205 | if ( 'pub_responsive_popup_title' === $form_item->get_item_name() || 'pub_responsive_cols' === $form_item->get_item_name() || 'pub_responsive_type' === $form_item->get_item_name() || 'pub_responsive_modal_hyperlinks' === $form_item->get_item_name() || 'pub_responsive_icon' === $form_item->get_item_name() || 'pub_flat_scrollx' === $form_item->get_item_name() ) { |
| 206 | 206 | $form_item->set_hide_item_init( true ); |
| 207 | 207 | } |