src/Potter/PotterCore.php
public function autoload()
    {
        $folders = apply_filters('potter_autoload_folders', $this->autoloadFolders);
        $files = apply_filters('potter_autoload_files', $this->autolaodFiles);

        // Files
        foreach ($files as $file) {
            $file = cleanURI($this->themeDIR . $file);
            $this->loadFile($file);
        }

        // Folders
        foreach ($folders as $folder):
            $pattern = $this->themeDIR . $folder . "/*.php";
            foreach (glob($pattern) as $file):
                $this->loadFile($file);
            endforeach;
        endforeach;

        $this->loadWidgets();
        $this->loadThemeOptions();
    }
public function autoload()
    {
        $folders = apply_filters('potter_autoload_folders', $this->autoloadFolders);
        $files = apply_filters('potter_autoload_files', $this->autolaodFiles);

        // Files
        foreach ($files as $file) {
            $file = cleanURI($this->themeDIR . $file);
            $this->loadFile($file);
        }

        // Folders
        foreach ($folders as $folder):
            $pattern = $this->themeDIR . $folder . "/*.php";
            foreach (glob($pattern) as $file):
                $this->loadFile($file);
            endforeach;
        endforeach;

        $this->loadWidgets();
        $this->loadThemeOptions();
    }
Load files
@return void