diff options
| -rwxr-xr-x | smartyplugins/function.biticon.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/smartyplugins/function.biticon.php b/smartyplugins/function.biticon.php index a5ce139..e219036 100755 --- a/smartyplugins/function.biticon.php +++ b/smartyplugins/function.biticon.php @@ -132,22 +132,18 @@ function smarty_function_biticon( $pParams, $pSmall = false ) { // if we don't have an ipath yet, we will set it here if( $pParams['ipath'] == '/' ) { - // iforce is generally only set in menus - we might need a parameter to identify menus more accurately + $configSize = !empty( $pParams['isize'] ) ? $pParams['isize'] : $gBitSystem->getConfig( 'site_icon_size', 'small' ); if( !empty( $pParams['ilocation'] )) { if( $pParams['ilocation'] == 'menu' ) { - $pParams['ipath'] .= 'small/'; + $pParams['ipath'] .= $configSize.'/'; $pParams['iforce'] = 'icon_text'; } elseif( $pParams['ilocation'] == 'quicktag' ) { - $pParams['ipath'] .= 'small/'; + $pParams['ipath'] .= $configSize.'/'; $pParams['iforce'] = 'icon'; $pParams['iclass'] = 'quicktag icon'; } } else { - if( !empty( $pParams['isize'] )) { - $pParams['ipath'] .= $pParams['isize'].'/'; - } else { - $pParams['ipath'] .= $gBitSystem->getConfig( 'site_icon_size', 'small' ).'/'; - } + $pParams['ipath'] .= $configSize.'/'; } } |
