Extensions/WordPress/Options/OptionsConfig.php
private function set_section_slugs()
    {
        // For more than 1 sections, set section specific slugs
        if( count( $this->sections ) > 1 )
        {
            foreach( $this->sections as $section )
            {
                $section->set_slug( \Amarkal\Common\Tools::strtoslug( $section->title ) );
            }
        }
        
        // For a single section, use the page's title as the slug
        else
        {
            $this->sections[0]->set_slug( \Amarkal\Common\Tools::strtoslug( $this->title ) );
        }
    }
private function set_section_slugs()
    {
        // For more than 1 sections, set section specific slugs
        if( count( $this->sections ) > 1 )
        {
            foreach( $this->sections as $section )
            {
                $section->set_slug( \Amarkal\Common\Tools::strtoslug( $section->title ) );
            }
        }
        
        // For a single section, use the page's title as the slug
        else
        {
            $this->sections[0]->set_slug( \Amarkal\Common\Tools::strtoslug( $this->title ) );
        }
    }
private function set_section_slugs ( ) { // For more than 1 sections, set section specific slugs if ( count ( $ this -> sections ) > 1 ) { foreach ( $ this -> sections as $ section ) { $ section -> set_slug ( \ Amarkal \ Common \ Tools :: strtoslug ( $ section -> title ) ) ; } } // For a single section, use the page's title as the slug else { $ this -> sections [ 0 ] -> set_slug ( \ Amarkal \ Common \ Tools :: strtoslug ( $ this -> title ) ) ; } }
Set slugs to each section, according the number of sections.
Set slugs to each section according the number of sections .