public static function newDocument($path = '/', $documentType = '')
    {
        if (self::isLoggedIn()) {
            $return = self::getAssetsIfNotIncluded();
            return $return . '<a title="New Document" data-href="' . self::newDocumentLink($path,
                    $documentType) . '" class="ccEditDocumentButton ccNewDocumentButton"></a>';
        } else {
            return '';
        }
    }
public static function newDocument($path = '/', $documentType = '')
    {
        if (self::isLoggedIn()) {
            $return = self::getAssetsIfNotIncluded();
            return $return . '<a title="New Document" data-href="' . self::newDocumentLink($path,
                    $documentType) . '" class="ccEditDocumentButton ccNewDocumentButton"></a>';
        } else {
            return '';
        }
    }
public static function newDocument ( $ path = '/' , $ documentType = '' ) { if ( self :: isLoggedIn ( ) ) { $ return = self :: getAssetsIfNotIncluded ( ) ; return $ return . '<a title="New Document" data-href="' . self :: newDocumentLink ( $ path , $ documentType ) . '" class="ccEditDocumentButton ccNewDocumentButton"></a>' ; } else { return '' ; } }
Returns a button with a link for creating a new document
@param string $path
@param string $documentType
@return string
@throws \Exception
Returns a button with a link for creating a new document