';
}
/**
* Render an unordered list of plain URLs (no link tags) for all items in an action.
*
* Used when show="url" is set without an item index.
*
* @param array $items Array of item arrays from action settings (each with 'id' and 'type' keys).
* @param string $raw_token Raw access token.
*
* @return string HTML
element of plain-text URLs, or empty string when no items produce a URL.
*/
public static function render_item_url_list( $items, $raw_token ) {
if ( ! $items ) {
return '';
}
$list_items = '';
foreach ( $items as $item ) {
if ( ! is_array( $item ) || empty( $item['id'] ) || empty( $item['type'] ) ) {
continue;
}
$gated_item = FrmGatedItem::make( $item );
$url = $gated_item->get_url( $raw_token );
if ( ! $url ) {
continue;
}
$list_items .= '