* * @var list $ad_form_rows HTML to render ad form. * @var List_Table $this List table; its all_ads holds the ads that can be chosen from for the group. * @var Group $group Group instance. */ use AdvancedAds\Abstracts\Group; use AdvancedAds\Admin\Groups\List_Table; defined( 'ABSPATH' ) || exit; $max_weight = $group->get_max_weight(); $sorted_ads = $group->get_sorted_ads(); $group_ads = $group->get_ads(); ?> $ad ) : $ad_object = $group_ads[ $ad_id ] ?? null; if ( ! $ad_object ) { continue; } $ad_url = add_query_arg( [ 'post' => $ad_id, 'action' => 'edit', ], admin_url( 'post.php' ) ); /* translators: %s is the title for ad. */ $link_title = sprintf( esc_html__( 'Opens ad %s in a new tab', 'advanced-ads' ), $ad['title'] ); ?> all_ads ) : ?>
get_ad_schedule_html() ); ?>