Source for file function.attachhelp.php
Documentation is available at function.attachhelp.php
* smarty_function_attachmenthelp
// print legend if desired
if( !empty( $pParams['legend'] )) {
$gBitSmarty->assign( 'legend', TRUE );
// get all the info into the right place
if( !empty( $pParams['hash'] ) && is_array( $pParams['hash'] )) {
unset ( $pParams['hash'] );
if( empty( $pParams['attachment_id'] )) {
} elseif( !empty( $pParams['wiki_plugin_link'] )) {
$attachhelp = trim( $pParams['wiki_plugin_link'] );
$attachhelp = "{attachment id={$pParams['attachment_id']}}";
// if we're viewing this page at a particular size, we want to include that in the output
if( !empty( $_REQUEST['size'] )) {
$attachhelp = str_replace( "}", " size={$_REQUEST['size']}}", $attachhelp );
$gBitSmarty->assign( 'attachhelp', $attachhelp );
return $gBitSmarty->fetch( 'bitpackage:liberty/attachhelp.tpl' );
|