| 1 |
<?php |
| 2 |
/** |
| 3 |
* Row |
| 4 |
* |
| 5 |
* @package Row |
| 6 |
*/ |
| 7 |
|
| 8 |
// phpcs:ignore |
| 9 |
?> |
| 10 |
|
| 11 |
<!-- SINGLE LINK --> |
| 12 |
<div class="p-4 hover-gray"> |
| 13 |
<div class="row align-items-center"> |
| 14 |
<div class="col-4 import-title" title="${ element.post_title_attr || '' }"> |
| 15 |
<strong class="import-title-text">${ element.post_title }</strong> |
| 16 |
</div> |
| 17 |
|
| 18 |
<div class="col import-target"> |
| 19 |
${ element.shortcode != '' ? |
| 20 |
` |
| 21 |
<code class="import-shortcode-lite import-target-clamp" title="${ element.shortcode_attr || '' }">${ element.shortcode }</code> |
| 22 |
` |
| 23 |
: |
| 24 |
` |
| 25 |
<a href="${ element.import_permalink }" title="${ element.import_permalink_attr || element.import_permalink }" target="_blank" class="purple underline import-target-clamp"> |
| 26 |
${ element.import_permalink } |
| 27 |
</a> |
| 28 |
` |
| 29 |
} |
| 30 |
</div> |
| 31 |
|
| 32 |
<div class="col-1"> |
| 33 |
${ element.import_source } |
| 34 |
</div> |
| 35 |
|
| 36 |
<div class="col-1 text-center"> |
| 37 |
${ |
| 38 |
element.check_status == `checked` && element.locations > 0 |
| 39 |
? `<button class="btn btn-sm black white-bg black-border show-locations" |
| 40 |
data-import-id="${ element.id }" |
| 41 |
data-locations="${ element.locations }"> |
| 42 |
See It |
| 43 |
</button>` |
| 44 |
:`` |
| 45 |
} |
| 46 |
</div> |
| 47 |
|
| 48 |
<div class="col-1 text-center"> |
| 49 |
${ element.check_status == `checked` ? |
| 50 |
`<button class="btn btn-sm red-bg js-toggle-revert" |
| 51 |
data-import-id="${ element.id }" |
| 52 |
data-post-title="${ element.post_title }" |
| 53 |
data-import-permalink="${ element.import_permalink }" |
| 54 |
data-post-type="${ element.post_type }" |
| 55 |
data-import-source="${ element.import_source }"> |
| 56 |
Revert |
| 57 |
</button> |
| 58 |
<i class="far fa-check-circle fa-2x gray d-none"></i> |
| 59 |
` |
| 60 |
: |
| 61 |
`<button class="btn btn-sm js-toggle-import" |
| 62 |
data-import-id="${ element.id }" |
| 63 |
data-post-title="${ element.post_title }" |
| 64 |
data-import-permalink="${ element.import_permalink }" |
| 65 |
data-post-type="${ element.post_type }" |
| 66 |
data-import-source="${ element.import_source }"> |
| 67 |
Import |
| 68 |
</button> |
| 69 |
<i class="far fa-check-circle fa-2x green d-none"></i> |
| 70 |
` |
| 71 |
} |
| 72 |
</div> |
| 73 |
</div> |
| 74 |
</div> |
| 75 |
|