library/core/class.theme.php
public static function Logo() {
      $Logo = C('Garden.Logo');
      if ($Logo) {
         $Logo = ltrim($Logo, '/');
         // Fix the logo path.
         if (StringBeginsWith($Logo, 'uploads/'))
            $Logo = substr($Logo, strlen('uploads/'));
      }
      $Title = C('Garden.Title', 'Title');
      echo $Logo ? Img(Gdn_Upload::Url($Logo), array('alt' => $Title)) : $Title;
   }
public static function Logo() {
      $Logo = C('Garden.Logo');
      if ($Logo) {
         $Logo = ltrim($Logo, '/');
         // Fix the logo path.
         if (StringBeginsWith($Logo, 'uploads/'))
            $Logo = substr($Logo, strlen('uploads/'));
      }
      $Title = C('Garden.Title', 'Title');
      echo $Logo ? Img(Gdn_Upload::Url($Logo), array('alt' => $Title)) : $Title;
   }
public static function Logo ( ) { $ Logo = C ( 'Garden.Logo' ) ; if ( $ Logo ) { $ Logo = ltrim ( $ Logo , '/' ) ; // Fix the logo path. if ( StringBeginsWith ( $ Logo , 'uploads/' ) ) $ Logo = substr ( $ Logo , strlen ( 'uploads/' ) ) ; } $ Title = C ( 'Garden.Title' , 'Title' ) ; echo $ Logo ? Img ( Gdn_Upload :: Url ( $ Logo ) , array ( 'alt' => $ Title ) ) : $ Title ; }
Renders the banner logo, or just the banner title if the logo is not defined.
Renders the banner logo or just the banner title if the logo is not defined .