Library/Documentation/Theme.php
public function buildStaticDirectory()
    {
        $outputStt = $this->getOutputPath('asset');

        if (!file_exists($outputStt)) {
            mkdir($outputStt, 0777, true);
        }

        if ($this->extendedTheme) {
            $this->extendedTheme->buildStaticDirectory();
        }

        $themeStt = $this->getThemePath('static');

        if ($themeStt) {
            $files = [];

            $this->__copyDir($themeStt, $outputStt.'/static', $files);

            foreach ($files as $f) {
                foreach ($this->options as $optName => $opt) {
                    $fcontent = file_get_contents($f);
                    $fcontent = str_replace('%_'.$optName.'_%', $opt, $fcontent);

                    file_put_contents($f, $fcontent);
                }
            }
        }
    }
public function buildStaticDirectory()
    {
        $outputStt = $this->getOutputPath('asset');

        if (!file_exists($outputStt)) {
            mkdir($outputStt, 0777, true);
        }

        if ($this->extendedTheme) {
            $this->extendedTheme->buildStaticDirectory();
        }

        $themeStt = $this->getThemePath('static');

        if ($themeStt) {
            $files = [];

            $this->__copyDir($themeStt, $outputStt.'/static', $files);

            foreach ($files as $f) {
                foreach ($this->options as $optName => $opt) {
                    $fcontent = file_get_contents($f);
                    $fcontent = str_replace('%_'.$optName.'_%', $opt, $fcontent);

                    file_put_contents($f, $fcontent);
                }
            }
        }
    }
public function buildStaticDirectory ( ) { $ outputStt = $ this -> getOutputPath ( 'asset' ) ; if ( ! file_exists ( $ outputStt ) ) { mkdir ( $ outputStt , 0777 , true ) ; } if ( $ this -> extendedTheme ) { $ this -> extendedTheme -> buildStaticDirectory ( ) ; } $ themeStt = $ this -> getThemePath ( 'static' ) ; if ( $ themeStt ) { $ files = [ ] ; $ this -> __copyDir ( $ themeStt , $ outputStt . '/static' , $ files ) ; foreach ( $ files as $ f ) { foreach ( $ this -> options as $ optName => $ opt ) { $ fcontent = file_get_contents ( $ f ) ; $ fcontent = str_replace ( '%_' . $ optName . '_%' , $ opt , $ fcontent ) ; file_put_contents ( $ f , $ fcontent ) ; } } } }
copy the static directory of the theme into the output directory.
copy the static directory of the theme into the output directory .