localize($localvars); $entry = $ctx->stash('entry'); $ping_list = $entry['entry_pinged_urls']; $pings = preg_split('/\r?\n/', $ping_list); $ctx->stash('_pinged_urls', $pings); $counter = 0; } else { $pings = $ctx->stash('_pinged_urls'); $counter = $ctx->stash('_ping_urls_counter'); } if ($counter < count($pings)) { $ping = $pings[$counter]; $ctx->stash('ping_sent_url', $ping); $ctx->stash('_ping_urls_counter', $counter + 1); $repeat = true; } else { $ctx->restore($localvars); $repeat = false; } return $content; } ?>