public function getSiteURL($locale = null)
    {
        $node = $this;
        $uri = '';

        do
        {
            $uri = '/' . $node->getTranslationAttribute('node_name', $locale) . $uri;
            $node = is_null($node->parent_id) ? null : node_bag($node->parent_id, false);
        } while ( ! is_null($node) && $node->home != '1');

        return url($uri);
    }
public function getSiteURL($locale = null)
    {
        $node = $this;
        $uri = '';

        do
        {
            $uri = '/' . $node->getTranslationAttribute('node_name', $locale) . $uri;
            $node = is_null($node->parent_id) ? null : node_bag($node->parent_id, false);
        } while ( ! is_null($node) && $node->home != '1');

        return url($uri);
    }
public function getSiteURL ( $ locale = null ) { $ node = $ this ; $ uri = '' ; do { $ uri = '/' . $ node -> getTranslationAttribute ( 'node_name' , $ locale ) . $ uri ; $ node = is_null ( $ node -> parent_id ) ? null : node_bag ( $ node -> parent_id , false ) ; } while ( ! is_null ( $ node ) && $ node -> home != '1' ) ; return url ( $ uri ) ; }
Gets the full url for node

@param string $locale
@return string
Gets the full url for node