Source of file SEOToolboxAnalyzerField.php
Size: 0,725 Bytes - Last Modified: 2021-12-24T06:45:30+00:00
/var/www/docs.ssmods.com/process/src/code/forms/SEOToolboxAnalyzerField.php
12345678910111213141516171819202122232425 | <?php class SEOToolboxAnalyzerField extends LiteralField { public function __construct($name, $url) { $content = $this->createBaseHTML($name, $url); parent::__construct($name, $content); } /** * Create the html needed to represent this form field * * @param $name * @param $url * @return string */ private function createBaseHTML($name, $url) { $div = "<div id='seotoolbox_con_{$name}'><div class='clearfix result_cont'></div></div>"; $script = "<script type='text/javascript'> new PageAnalyzer(jQuery('#seotoolbox_con_{$name} .result_cont'),'{$url}'); </script>"; return $div.$script; } } |