Gdn_Theme::mobileLogo PHP Method

    public static function mobileLogo()
    {
        $Logo = c('Garden.MobileLogo', c('Garden.Logo'));
        $Title = c('Garden.MobileTitle', c('Garden.Title', 'Title'));
        if ($Logo) {
            return Img(Gdn_Upload::url($Logo), array('alt' => $Title));
        } else {
            return $Title;
        }
    }

Usage Example

Example #1
0
/**
 * Writes the site logo to the page.
 *
 * @param array $Params The parameters passed into the function. This currently takes no parameters.
 * @param Smarty $Smarty The smarty object rendering the template.
 * @return string The url.
 */
function smarty_function_mobile_logo($Params, &$Smarty)
{
    $Result = Gdn_Theme::mobileLogo('Title');
    return $Result;
}