public function getMonthlyArchiveLink($type = 'day')
    {
        /** @var DBDatetime $date */
        $date = $this->dbObject('PublishDate');

        if ($type !== 'year') {
            if ($type === 'day') {
                return Controller::join_links(
                    $this->Parent()->Link('archive'),
                    $date->format('Y'),
                    $date->format('M'),
                    $date->format('d')
                );
            }

            return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'), $date->format('M'));
        }

        return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'));
    }
public function getMonthlyArchiveLink($type = 'day')
    {
        /** @var DBDatetime $date */
        $date = $this->dbObject('PublishDate');

        if ($type !== 'year') {
            if ($type === 'day') {
                return Controller::join_links(
                    $this->Parent()->Link('archive'),
                    $date->format('Y'),
                    $date->format('M'),
                    $date->format('d')
                );
            }

            return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'), $date->format('M'));
        }

        return Controller::join_links($this->Parent()->Link('archive'), $date->format('Y'));
    }
public function getMonthlyArchiveLink ( $ type = 'day' ) { /** @var DBDatetime $date */ $ date = $ this -> dbObject ( 'PublishDate' ) ; if ( $ type !== 'year' ) { if ( $ type === 'day' ) { return Controller :: join_links ( $ this -> Parent ( ) -> Link ( 'archive' ) , $ date -> format ( 'Y' ) , $ date -> format ( 'M' ) , $ date -> format ( 'd' ) ) ; } return Controller :: join_links ( $ this -> Parent ( ) -> Link ( 'archive' ) , $ date -> format ( 'Y' ) , $ date -> format ( 'M' ) ) ; } return Controller :: join_links ( $ this -> Parent ( ) -> Link ( 'archive' ) , $ date -> format ( 'Y' ) ) ; }
Returns a monthly archive link for the current blog post.

@param string $type
@return string
Returns a monthly archive link for the current blog post .