diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -386,4 +386,25 @@ class page { return $this->school; } + + /** + * \brief + * Format a chunk of javascript suitable for adding to headcode. + * + * Takes into account whether or not the code should be wrapped in + * CDATA or not. + * + * \param $js + * The javascript to wrap up. + * \param $type + * The type="" attribute of the '; + } }