. * * @file * @ingroup Skins */ declare( strict_types=1 ); namespace Citizen\Partials; /** * Tagline partial of Skin Citizen */ final class Tagline extends Partial { /** * Get tagline message * * @return string */ public function getTagline( $out ) { $title = $out->getTitle(); $shortdesc = $out->getProperty( 'shortdesc' ); // Use short description if there is any // from Extension:ShortDescription if ( $shortdesc ) { $tagline = $shortdesc; } else { $tagline = $this->skin->msg( 'tagline' )->text(); } return $tagline; } }