Skip to content

Instantly share code, notes, and snippets.

@sonicpunk
Created January 29, 2014 15:18
Show Gist options
  • Save sonicpunk/8690123 to your computer and use it in GitHub Desktop.
Save sonicpunk/8690123 to your computer and use it in GitHub Desktop.
htmlToBottom: for use with MODX to place any HTML to the bottom of the page from any chunk in your project
<?php
$content = $modx->getOption('content',$scriptProperties,'');
// For debugging:
$modx->log(modX::LOG_LEVEL_DEBUG
, '[htmlToBottom] called on page '. $modx->resource->id . ' with the following properties: '
.print_r($scriptProperties, true));
// Verify Inputs
if(isset($scriptProperties['content'])){
$modx->regClientHTMLBlock($content);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment