public function init()
    {
        // Get options
        $filter_slug = $this->currentPage;

        // Check sections
        if (!empty($this->options['sections']) && is_array($this->options['sections'])) {
            foreach ($this->options['sections'] as $sectionSlug => $sectionName) {
                if ($sectionSlug !== $this->currentSection) {
                    continue;
                }

                $filter_slug .= '-'.$this->currentSection;
                break;
            }
        }

        /**
         * Build page contents.
         *
         * @var     string  $currentPage
         * @param   array   $contents
         * @return  array   $contents
         */
        $this->fields = apply_filters('ol_zeus_adminpage_'.$filter_slug.'_contents', []);

        // Display main render
        $this->renderFields();
    }
public function init()
    {
        // Get options
        $filter_slug = $this->currentPage;

        // Check sections
        if (!empty($this->options['sections']) && is_array($this->options['sections'])) {
            foreach ($this->options['sections'] as $sectionSlug => $sectionName) {
                if ($sectionSlug !== $this->currentSection) {
                    continue;
                }

                $filter_slug .= '-'.$this->currentSection;
                break;
            }
        }

        /**
         * Build page contents.
         *
         * @var     string  $currentPage
         * @param   array   $contents
         * @return  array   $contents
         */
        $this->fields = apply_filters('ol_zeus_adminpage_'.$filter_slug.'_contents', []);

        // Display main render
        $this->renderFields();
    }
public function init ( ) { // Get options $ filter_slug = $ this -> currentPage ; // Check sections if ( ! empty ( $ this -> options [ 'sections' ] ) && is_array ( $ this -> options [ 'sections' ] ) ) { foreach ( $ this -> options [ 'sections' ] as $ sectionSlug => $ sectionName ) { if ( $ sectionSlug !== $ this -> currentSection ) { continue ; } $ filter_slug .= '-' . $ this -> currentSection ; break ; } } /**
         * Build page contents.
         *
         * @var     string  $currentPage
         * @param   array   $contents
         * @return  array   $contents
         */ $ this -> fields = apply_filters ( 'ol_zeus_adminpage_' . $ filter_slug . '_contents' , [ ] ) ; // Display main render $ this -> renderFields ( ) ; }
Initialize menu pages.
Initialize menu pages .