i create a mod and i like to add a copyrights in to this. i dont like edit the overal_footrer.html for adding copyright i need a way to add copyright in language.
i found this code in phpbb-seo mod
- Code: Select all
function seo_end($return = false) {
global $user, $config;
if (empty($this->seo_opt['copyrights']['title'])) {
$this->seo_opt['copyrights']['title'] = strpos($config['default_lang'], 'fr') !== false ? 'Optimisation du Référencement' : 'Search Engine Optimization';
}
if (empty($this->seo_opt['copyrights']['txt'])) {
$this->seo_opt['copyrights']['txt'] = 'phpBB SEO';
}
if ($this->seo_opt['copyrights']['img']) {
$output = '<br /><a href="http://www.phpbb-seo.com/" title="' . $this->seo_opt['copyrights']['title'] . '"><img src="' . $this->seo_path['phpbb_url'] . 'images/phpbb-seo.png" alt="' . $this->seo_opt['copyrights']['txt'] . '"/></a>';
} else {
$output = '<br /><a href="http://www.phpbb-seo.com/" title="' . $this->seo_opt['copyrights']['title'] . '">' . $this->seo_opt['copyrights']['txt'] . '</a>';
}
if ($return) {
return $output;
} else {
$user->lang['TRANSLATION_INFO'] .= $output;
}
return;
}
i need something like that to my work. so any body can help me how can add this function to my mod?
thank u very much

English |
French

