code/DesignModule.php
public function getMainTemplateFile()
    {
    	$main = $this->getPath() . '/main.ss';

    	if(file_exists($main)) {
    		return $main;
    	}

    	$main = (string) $this->getConfiguration()->main_template;
    	if($main) {
    		return SSViewer::getTemplateFileByType($main, 'main');
    	}

    	return false;
    }
public function getMainTemplateFile()
    {
    	$main = $this->getPath() . '/main.ss';

    	if(file_exists($main)) {
    		return $main;
    	}

    	$main = (string) $this->getConfiguration()->main_template;
    	if($main) {
    		return SSViewer::getTemplateFileByType($main, 'main');
    	}

    	return false;
    }
public function getMainTemplateFile ( ) { $ main = $ this -> getPath ( ) . '/main.ss' ; if ( file_exists ( $ main ) ) { return $ main ; } $ main = ( string ) $ this -> getConfiguration ( ) -> main_template ; if ( $ main ) { return SSViewer :: getTemplateFileByType ( $ main , 'main' ) ; } return false ; }
Gets the absolute path to the main template file
@return string
Gets the absolute path to the main template file