private function AddSitemapRelevanceField()
    {
        $name = 'SitemapRelevance';
        $value = $this->page->Exists() ? 10* $this->page->GetSitemapRelevance() : 7;
        $field = new Select($name, $value);
        for ($val = 0; $val <= 10; ++$val)
        {
            $decSep = Trans('Core.DecimalSeparator');
            $thousSep = Trans('Core.ThousandsSeparator');
            $text = number_format($val / 10, 1, $decSep, $thousSep);
            $field->AddOption($val, $text);
        }
        $this->AddField($field);
    }
private function AddSitemapRelevanceField()
    {
        $name = 'SitemapRelevance';
        $value = $this->page->Exists() ? 10* $this->page->GetSitemapRelevance() : 7;
        $field = new Select($name, $value);
        for ($val = 0; $val <= 10; ++$val)
        {
            $decSep = Trans('Core.DecimalSeparator');
            $thousSep = Trans('Core.ThousandsSeparator');
            $text = number_format($val / 10, 1, $decSep, $thousSep);
            $field->AddOption($val, $text);
        }
        $this->AddField($field);
    }
private function AddSitemapRelevanceField ( ) { $ name = 'SitemapRelevance' ; $ value = $ this -> page -> Exists ( ) ? 10 * $ this -> page -> GetSitemapRelevance ( ) : 7 ; $ field = new Select ( $ name , $ value ) ; for ( $ val = 0 ; $ val <= 10 ; ++ $ val ) { $ decSep = Trans ( 'Core.DecimalSeparator' ) ; $ thousSep = Trans ( 'Core.ThousandsSeparator' ) ; $ text = number_format ( $ val / 10 , 1 , $ decSep , $ thousSep ) ; $ field -> AddOption ( $ val , $ text ) ; } $ this -> AddField ( $ field ) ; }
Adds the sitemap relevance field
Adds the sitemap relevance field