Skip to content

Instantly share code, notes, and snippets.

@typeoneerror
Created October 21, 2010 23:08
Show Gist options
  • Save typeoneerror/639566 to your computer and use it in GitHub Desktop.
Save typeoneerror/639566 to your computer and use it in GitHub Desktop.
<?php
function smarty_block_fbml($params, $content, &$smarty, &$repeat)
{
if (!$repeat && !empty($content))
{
$content = trim($content);
$output = <<<EOT
<fb:serverFbml>
<script type="text/fbml">
<fb:fbml>
{$content}
</fb:fbml>
</script>
</fb:serverFbml>
EOT;
return $output;
}
}
{fbml}
<fb:application-name></fb:application-name>
{/fbml}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment