/** * Writes a pocket to the page * * @param array The parameters passed into the function. * The parameters that can be passed to this function are as follows. * - <b>name</b>: The name of the pocket. * @param Smarty The smarty object rendering the template. * @return The pocket string. */ function smarty_function_pocket($Params, $Smarty) { if (!class_exists('PocketsPlugin')) { return ''; } $Result = PocketsPlugin::PocketString(GetValue('name', $Params)); return $Result; }