localize($localvars); $entry = $ctx->stash("entry"); if (!$entry) { return $ctx->error("Cannot get entry"); } $repeat = false; if ($entry['entry_keywords'] != "") { $keywords = preg_split("/\s+/", $entry['entry_keywords']); $ctx->stash("keywordlist", $keywords); $repeat = true; } } else { $keywords = $ctx->stash('keywordlist'); #pop keyword array_shift($keywords); $ctx->stash("keywordlist", $keywords); #if more keywords then set $repeat=true; if (count($keywords) > 0) { $repeat = true; } } if (!$repeat) { $ctx->restore($localvars); } return $content; } ?>