Created
January 29, 2014 15:18
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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