%frontend_asset_frontend_metadata%
%begin_frontend_asset_parent^eq:157%
%else_begin_frontend_asset_parent^eq:489%
%else_begin_frontend_asset_parent^eq:3553%
%else_asset%
%end_asset%
registerInternalVar('get', array_keys($processed_get_vars));
$old_get[$asset_cache_key] = $_GET;
$_GET = array_merge($_GET, $processed_get_vars);
// $_REQUEST by default is supposed to contain the contnets of $_GET
$old_request[$asset_cache_key] = $_REQUEST;
$_REQUEST = array_merge($_REQUEST, $processed_get_vars);
$GLOBALS['SQ_NEST_CONTENT_PAINTED'][$asset_cache_key] = 1;
$nested_asset = $GLOBALS['SQ_SYSTEM']->am->getAsset($nested_assetid, '', TRUE);
$asset_contents = '';
if ($nested_asset->id && $nested_asset->readAccess()) {
ob_start();
$nested_asset->printAssetBody();
$asset_contents = ob_get_contents();
ob_end_clean();
$keywords = extract_keywords($asset_contents);
$replacements = Array();
foreach ($keywords as $idx => $keyword) {
if (strpos($keyword, 'nested_get_') === 0) {
$modifiers = NULL;
$part_keyword = parse_keyword($keyword, $modifiers);
$get_var = substr($part_keyword, 11);
$value = array_get_index($_GET, $get_var, '');
if ($part_keyword != $keyword) {
apply_keyword_modifiers($value, $modifiers, Array('assetid' => $nested_asset->id));
}
$replacements[$keyword] = $value;
}
}
replace_keywords($asset_contents, $replacements);
}
echo $asset_contents;
unset($GLOBALS['SQ_NEST_CONTENT_PAINTED'][$asset_cache_key]);
$_GET = $old_get[$asset_cache_key];
$_REQUEST = $old_request[$asset_cache_key];
// Un-register the nested get vars
$GLOBALS['SQ_SYSTEM']->unRegisterInternalVar('get', array_keys($processed_get_vars));
} else {
echo '[ ** '.translate('RECURSION WARNING').' ** ]
'.translate('You are nesting the content of this page inside itself').'';
}
?>"/>