public function getBlogUrl($blogId)
    {
        if (isset($this->blogUrl[$blogId])) {

            return $this->blogUrl[$blogId];

        } else {

            $url = appSetting('url', 'blog-' . $blogId);
            $url = $url ? $url : 'blog/';
            $url = site_url($url);

            $this->blogUrl[$blogId] = $url;

            return $this->blogUrl[$blogId];
        }
    }
public function getBlogUrl($blogId)
    {
        if (isset($this->blogUrl[$blogId])) {

            return $this->blogUrl[$blogId];

        } else {

            $url = appSetting('url', 'blog-' . $blogId);
            $url = $url ? $url : 'blog/';
            $url = site_url($url);

            $this->blogUrl[$blogId] = $url;

            return $this->blogUrl[$blogId];
        }
    }
public function getBlogUrl ( $ blogId ) { if ( isset ( $ this -> blogUrl [ $ blogId ] ) ) { return $ this -> blogUrl [ $ blogId ] ; } else { $ url = appSetting ( 'url' , 'blog-' . $ blogId ) ; $ url = $ url ? $ url : 'blog/' ; $ url = site_url ( $ url ) ; $ this -> blogUrl [ $ blogId ] = $ url ; return $ this -> blogUrl [ $ blogId ] ; } }
Get the URL of a blog
@param  int    $blogId The ID of the blog who's URL to get
@return string
Get the URL of a blog