public function initAssets()
    {
        // Get current page
        $currentPage = Request::get('page');
        $currentSection = Request::get('section');
        $identifier = $this->getModel()->getIdentifier();
        $page_id = str_replace($identifier.'-', '', $currentPage);

        // Check current page
        if (!$this->getModel()->hasPage($page_id)) {
            return;
        }

        // Build page details
        $optionPage = $this->getModel()->getPages($page_id);
        $currentSection = !empty($optionPage['sections']) && empty($currentSection) ? key($optionPage['sections']) : $currentSection;
        $filter_slug = empty($currentSection) ? $currentPage : $currentPage.'-'.$currentSection;

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

        // Render assets
        Render::assets(['admin.php'], $fields);
    }
public function initAssets()
    {
        // Get current page
        $currentPage = Request::get('page');
        $currentSection = Request::get('section');
        $identifier = $this->getModel()->getIdentifier();
        $page_id = str_replace($identifier.'-', '', $currentPage);

        // Check current page
        if (!$this->getModel()->hasPage($page_id)) {
            return;
        }

        // Build page details
        $optionPage = $this->getModel()->getPages($page_id);
        $currentSection = !empty($optionPage['sections']) && empty($currentSection) ? key($optionPage['sections']) : $currentSection;
        $filter_slug = empty($currentSection) ? $currentPage : $currentPage.'-'.$currentSection;

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

        // Render assets
        Render::assets(['admin.php'], $fields);
    }
public function initAssets ( ) { // Get current page $ currentPage = Request :: get ( 'page' ) ; $ currentSection = Request :: get ( 'section' ) ; $ identifier = $ this -> getModel ( ) -> getIdentifier ( ) ; $ page_id = str_replace ( $ identifier . '-' , '' , $ currentPage ) ; // Check current page if ( ! $ this -> getModel ( ) -> hasPage ( $ page_id ) ) { return ; } // Build page details $ optionPage = $ this -> getModel ( ) -> getPages ( $ page_id ) ; $ currentSection = ! empty ( $ optionPage [ 'sections' ] ) && empty ( $ currentSection ) ? key ( $ optionPage [ 'sections' ] ) : $ currentSection ; $ filter_slug = empty ( $ currentSection ) ? $ currentPage : $ currentPage . '-' . $ currentSection ; /**
         * Build page contents.
         *
         * @var     string  $currentPage
         * @param   array   $contents
         * @return  array   $contents
         */ $ fields = apply_filters ( 'ol_zeus_adminpage_' . $ filter_slug . '_contents' , [ ] ) ; // Render assets Render :: assets ( [ 'admin.php' ] , $ fields ) ; }
Initialize assets in admin pages.
Initialize assets in admin pages .