Form.php
public function getJs()
    {
        $html = '<script type="text/javascript">';
        $js = file_get_contents(__DIR__.'/Js/formidable.js');
        $html .= str_replace("\n", '', str_replace('{remove}', $this->factory->getLanguage()->translate('remove'), $js));
        $html .= '</script>';

        return $html;
    }
public function getJs()
    {
        $html = '<script type="text/javascript">';
        $js = file_get_contents(__DIR__.'/Js/formidable.js');
        $html .= str_replace("\n", '', str_replace('{remove}', $this->factory->getLanguage()->translate('remove'), $js));
        $html .= '</script>';

        return $html;
    }
public function getJs ( ) { $ html = '<script type="text/javascript">' ; $ js = file_get_contents ( __DIR__ . '/Js/formidable.js' ) ; $ html .= str_replace ( "\n" , '' , str_replace ( '{remove}' , $ this -> factory -> getLanguage ( ) -> translate ( 'remove' ) , $ js ) ) ; $ html .= '</script>' ; return $ html ; }
Get the JavaScript code to embed
Get the JavaScript code to embed