public function getDefaultTheme($type='public') 
	{
		$theme = OmmuThemes::model()->find(array(
			'select'    => 'folder',
			'condition' => 'group_page = :group AND default_theme = :default',
			'params'    => array(
				':group' => $type,
				':default' => '1',
			),
		));

		if($theme !== null)
			return $theme->folder;
		else
			return null;
	}
public function getDefaultTheme($type='public') 
	{
		$theme = OmmuThemes::model()->find(array(
			'select'    => 'folder',
			'condition' => 'group_page = :group AND default_theme = :default',
			'params'    => array(
				':group' => $type,
				':default' => '1',
			),
		));

		if($theme !== null)
			return $theme->folder;
		else
			return null;
	}
public function getDefaultTheme ( $ type = 'public' ) { $ theme = OmmuThemes :: model ( ) -> find ( array ( 'select' => 'folder' , 'condition' => 'group_page = :group AND default_theme = :default' , 'params' => array ( ':group' => $ type , ':default' => '1' , ) , ) ) ; if ( $ theme !== null ) return $ theme -> folder ; else return null ; }
Get default theme from database

@return string theme name
Get default theme from database