GeezerVison is showing github.com — refactor: replace dashicons info with inline svg icon · axeptio/wordpress-plugin@339e252
File tree
Expand file treeCollapse file tree
Open diff view settings
templates/admin/common/fields
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +1Lines changed: 1 addition & 0 deletions - Display the source diff
- Display the rich diff
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/gtm-events.php +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | <?php defined( 'ABSPATH' ) || exit; ?> |
2 | 2 | <div x-data="{ gtmEvents: '<?php echo esc_js( $data->value ); ?>' }"> |
3 | | - <label for="<?php echo esc_attr( $data->id ); ?>" class="block text-sm font-medium leading-6 text-gray-900"> |
| 3 | + <label for="<?php echo esc_attr( $data->id ); ?>" class="flex items-center gap-1 text-sm font-medium leading-6 text-gray-900"> |
4 | 4 | <?php echo esc_html( $data->label ); ?> |
5 | 5 | <?php if ( isset( $data->help_url ) ) : ?> |
6 | 6 | <a href="<?php echo esc_url( $data->help_url ); ?>" target="_blank"> |
7 | | - <span class="dashicons dashicons-info-outline"></span> |
| 7 | + <img src="<?php echo esc_url( XPWP_URL . 'dist/img/icons/info.svg' ); ?>" class="size-4" alt="<?php esc_attr_e( 'More information', 'axeptio-sdk-integration' ); ?>"> |
8 | 8 | </a> |
9 | 9 | <?php endif ?> |
10 | 10 | </label> |
|
13 | 13 | id="<?php echo esc_attr( $data->id ); ?>" |
14 | 14 | name="<?php echo esc_attr( $data->group . '[' . $data->name . ']' ); ?>" |
15 | 15 | x-model="gtmEvents" |
16 | | - class="mt-2 block w-full rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-amber-600 sm:text-sm sm:leading-6" |
| 16 | + class="mt-2 block w-full max-w-none rounded-md border-0 py-1.5 pl-3 pr-10 text-gray-900 ring-1 ring-inset ring-gray-300 focus:ring-2 focus:ring-amber-600 sm:text-sm sm:leading-6" |
17 | 17 | > |
18 | 18 | <option value="true"><?php esc_html_e( 'Send all events to dataLayer', 'axeptio-sdk-integration' ); ?></option> |
19 | 19 | <option value="false"><?php esc_html_e( 'Do not send any events to dataLayer', 'axeptio-sdk-integration' ); ?></option> |
|
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/image-upload.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | fieldName: '<?php echo esc_js( $data->group . '[' . $data->name . ']' ); ?>', |
5 | 5 | fieldId: '<?php echo esc_js( $data->id ); ?>' |
6 | 6 | })"> |
7 | | - <label :for="fieldId" class="block text-sm font-medium leading-6 text-gray-900"> |
| 7 | + <label :for="fieldId" class="flex items-center gap-1 text-sm font-medium leading-6 text-gray-900"> |
8 | 8 | <?php echo esc_html( $data->label ); ?> |
9 | 9 | <?php if ( isset( $data->help_url ) ) : ?> |
10 | 10 | <a href="<?php echo esc_url( $data->help_url ); ?>" target="_blank"> |
11 | | - <span class="dashicons dashicons-info-outline"></span> |
| 11 | + <img src="<?php echo esc_url( XPWP_URL . 'dist/img/icons/info.svg' ); ?>" class="size-4" alt="<?php esc_attr_e( 'More information', 'axeptio-sdk-integration' ); ?>"> |
12 | 12 | </a> |
13 | 13 | <?php endif ?> |
14 | 14 | </label> |
|
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/select-languages.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
5 | 5 | class="relative" |
6 | 6 | x-cloak |
7 | 7 | > |
8 | | - <label :for="state.name" class="block text-sm font-medium leading-6 text-gray-900"> |
| 8 | + <label :for="state.name" class="flex items-center gap-1 text-sm font-medium leading-6 text-gray-900"> |
9 | 9 | <?php echo esc_html( $data->label ?? '' ); ?> |
10 | 10 | <?php if ( isset( $data->help_url ) ) : ?> |
11 | 11 | <a href="<?php echo esc_url( $data->help_url ); ?>" target="_blank"> |
12 | | - <span class="dashicons dashicons-info-outline"></span> |
| 12 | + <img src="<?php echo esc_url( XPWP_URL . 'dist/img/icons/info.svg' ); ?>" class="size-4" alt="<?php esc_attr_e( 'More information', 'axeptio-sdk-integration' ); ?>"> |
13 | 13 | </a> |
14 | 14 | <?php endif ?> |
15 | 15 | </label> |
|
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/text.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | <?php defined( 'ABSPATH' ) || exit; ?> |
2 | 2 | <div class="sm:col-span-4"> |
3 | | - <label for="<?php echo esc_attr( $data->id ); ?>" class="block text-sm font-medium leading-6 text-gray-900"> |
| 3 | + <label for="<?php echo esc_attr( $data->id ); ?>" class="flex items-center gap-1 text-sm font-medium leading-6 text-gray-900"> |
4 | 4 | <?php echo esc_html( $data->label ); ?> |
5 | 5 | <?php if ( isset( $data->help_url ) ) : ?> |
6 | 6 | <a href="<?php echo esc_url( $data->help_url ); ?>" target="_blank"> |
7 | | - <span class="dashicons dashicons-info-outline"></span> |
| 7 | + <img src="<?php echo esc_url( XPWP_URL . 'dist/img/icons/info.svg' ); ?>" class="size-4" alt="<?php esc_attr_e( 'More information', 'axeptio-sdk-integration' ); ?>"> |
8 | 8 | </a> |
9 | 9 | <?php endif ?> |
10 | 10 | </label> |
|
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/textarea.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | <?php defined( 'ABSPATH' ) || exit; ?> |
2 | 2 | <div class="col-span-full"> |
3 | | - <label for="<?php echo esc_html( $data->id ); ?>" class="block text-sm font-medium leading-6 text-gray-900"> |
| 3 | + <label for="<?php echo esc_html( $data->id ); ?>" class="flex items-center gap-1 text-sm font-medium leading-6 text-gray-900"> |
4 | 4 | <?php echo esc_html( $data->label ); ?> |
5 | 5 | <?php if ( isset( $data->help_url ) ) : ?> |
6 | 6 | <a href="<?php echo esc_url( $data->help_url ); ?>" target="_blank"> |
7 | | - <span class="dashicons dashicons-info-outline"></span> |
| 7 | + <img src="<?php echo esc_url( XPWP_URL . 'dist/img/icons/info.svg' ); ?>" class="size-4" alt="<?php esc_attr_e( 'More information', 'axeptio-sdk-integration' ); ?>"> |
8 | 8 | </a> |
9 | 9 | <?php endif ?> |
10 | 10 | </label> |
|
Collapse file
Copy file name to clipboardExpand all lines: templates/admin/common/fields/toggle.php +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
6 | 6 | <span aria-hidden="true" class="translate-x-0 pointer-events-none absolute left-0 inline-block h-5 w-5 transform rounded-full border border-gray-200 bg-white shadow ring-0 transition-transform duration-200 ease-in-out" x-state:on="Enabled" x-state:off="Not Enabled" :class="{ 'translate-x-5': <?php echo esc_attr( $data->alpine_state ); ?>, 'translate-x-0': !(<?php echo esc_attr( $data->alpine_state ); ?>) }"></span> |
7 | 7 | </label> |
8 | 8 | <label for="<?php echo esc_attr( $data->id ); ?>" class="ml-4 flex flex-col min-w-0 flex-1 gap-1"> |
9 | | - <span class="truncate font-medium"> |
| 9 | + <span class="inline-flex items-center gap-1 font-medium"> |
10 | 10 | <?php echo esc_html( $data->label ); ?> |
11 | 11 | <?php if ( isset( $data->help_url ) ) : ?> |
12 | 12 | <a href="<?php echo esc_url( $data->help_url ); ?>" target="_blank"> |
13 | | - <span class="dashicons dashicons-info-outline"></span> |
| 13 | + <img src="<?php echo esc_url( XPWP_URL . 'dist/img/icons/info.svg' ); ?>" class="size-4" alt="<?php esc_attr_e( 'More information', 'axeptio-sdk-integration' ); ?>"> |
14 | 14 | </a> |
15 | 15 | <?php endif ?> |
16 | 16 | </span> |
|