ad-group.php
3 months ago
conditions.php
3 months ago
header-note.php
3 months ago
item-select.php
3 months ago
name.php
3 months ago
type.php
3 months ago
usage.php
3 months ago
name.php
34 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Render the placement name column content in the placement table. |
| 4 | * |
| 5 | * @package AdvancedAds |
| 6 | * @author Advanced Ads <info@wpadvancedads.com> |
| 7 | * @since 1.48.0 |
| 8 | * |
| 9 | * @var Placement $placement Placement instance. |
| 10 | */ |
| 11 | |
| 12 | $type_object = $placement->get_type_object(); |
| 13 | ?> |
| 14 | <div class="advads-table-name"> |
| 15 | <a class="row-title" href="#modal-placement-edit-<?php echo esc_attr( $placement->get_id() ); ?>"><?php echo esc_html( $placement->get_title() ); ?></a> |
| 16 | <?php if ( 'draft' === $placement->get_status() ) : ?> |
| 17 | <strong>— <span class="post-state"><?php esc_html_e( 'Draft', 'advanced-ads' ); ?></span></strong> |
| 18 | <?php endif; ?> |
| 19 | </div> |
| 20 | <?php if ( $type_object->is_premium() ) : ?> |
| 21 | <p class="advads-notice-inline advads-error"> |
| 22 | <?php |
| 23 | echo esc_html( |
| 24 | sprintf( |
| 25 | /* translators: %s is the placement type string */ |
| 26 | __( 'The originally selected placement type “%s” is not enabled.', 'advanced-ads' ), |
| 27 | $type_object->get_title() |
| 28 | ) |
| 29 | ); |
| 30 | ?> |
| 31 | </p> |
| 32 | <?php |
| 33 | endif; |
| 34 |