OnBoarding/OnBoarding.php
public function showModuleContent()
    {
        $templates = array();
        foreach ($this->configuration['templates'] as $template) {
            $templates[] = array(
                'name'    => $template,
                'content' => str_replace(array("\n", "\r", "\t"), "", $this->getTemplateContent("templates/$template")),
            );
        }

        echo $this->getTemplateContent('content', array(
            'currentStep' => $this->getCurrentStep(),
            'totalSteps'  => $this->getTotalSteps(),
            'percent_real' => ($this->getCurrentStep() / $this->getTotalSteps()) * 100,
            'percent_rounded' => round(($this->getCurrentStep() / $this->getTotalSteps())*100),
            'isShutDown'  => $this->isShutDown(),
            'steps'       => $this->configuration['steps'],
            'jsonSteps'   => json_encode($this->configuration['steps']),
            'templates'   => $templates,
        ));
    }
public function showModuleContent()
    {
        $templates = array();
        foreach ($this->configuration['templates'] as $template) {
            $templates[] = array(
                'name'    => $template,
                'content' => str_replace(array("\n", "\r", "\t"), "", $this->getTemplateContent("templates/$template")),
            );
        }

        echo $this->getTemplateContent('content', array(
            'currentStep' => $this->getCurrentStep(),
            'totalSteps'  => $this->getTotalSteps(),
            'percent_real' => ($this->getCurrentStep() / $this->getTotalSteps()) * 100,
            'percent_rounded' => round(($this->getCurrentStep() / $this->getTotalSteps())*100),
            'isShutDown'  => $this->isShutDown(),
            'steps'       => $this->configuration['steps'],
            'jsonSteps'   => json_encode($this->configuration['steps']),
            'templates'   => $templates,
        ));
    }
public function showModuleContent ( ) { $ templates = array ( ) ; foreach ( $ this -> configuration [ 'templates' ] as $ template ) { $ templates [ ] = array ( 'name' => $ template , 'content' => str_replace ( array ( "\n" , "\r" , "\t" ) , "" , $ this -> getTemplateContent ( "templates/$template" ) ) , ) ; } echo $ this -> getTemplateContent ( 'content' , array ( 'currentStep' => $ this -> getCurrentStep ( ) , 'totalSteps' => $ this -> getTotalSteps ( ) , 'percent_real' => ( $ this -> getCurrentStep ( ) / $ this -> getTotalSteps ( ) ) * 100 , 'percent_rounded' => round ( ( $ this -> getCurrentStep ( ) / $ this -> getTotalSteps ( ) ) * 100 ) , 'isShutDown' => $ this -> isShutDown ( ) , 'steps' => $ this -> configuration [ 'steps' ] , 'jsonSteps' => json_encode ( $ this -> configuration [ 'steps' ] ) , 'templates' => $ templates , ) ) ; }
Show the OnBoarding module content.
Show the OnBoarding module content .