0
我使用Wordpress Tesseract主题构建网站,我想更改版权。我使用查找和替换插件,但我想通过更改代码正确地做到这一点。 我搜索了它,发现我必须在functions.php文件中更改代码。 但我不明白的代码,我不知道如果我只是改变“版权”,如果它会实际工作,所以我需要一些帮助。Wordpress Tesseract主题页脚版权
功能tesseract_footer_branding_output(){
//$str_foobclass = str_rot13(implode('',array('q','r','f','v','t','a','r','e')));
$str_foobclass = 'designer';
//$str_foobid = str_rot13(implode('',array('s','b','b','g','r','e','-','o','n','a','a','r','e','-','e','v','t','u','g')));
$str_foobid = 'footer-banner-right';
//$str_foobtby = str_rot13(implode('',array('G','u','r','z','r',' ','o','l',' ','%','f')));
$str_foobtby = 'Theme by %s';
//$str_foobturl = str_rot13(implode('',array('g','r','f','f','r','e','n','p','g','g','u','r','z','r','.','p','b','z')));
$str_foobturl = 'tesseracttheme.com';
//$str_foobtdis = str_rot13(implode('',array('G','r','f','f','r','e','n','p','g')));
$str_foobtdis = 'Tesseract';
echo '<div id="'.$str_foobid.'" class="'.$str_foobclass.'"><div class="table"><div class="table'.'-cell"><strong>';
/*if(stristr(__($str_foobtby, 'tesseract'),'%s') === false){
echo '<a href="http://'.$str_foobturl.'">'.sprintf(__($str_foobtby, 'tesseract'),$str_foobtdis).'</a>';
}else{
// if changes in language file
echo '<a href="http://'.$str_foobturl.'">'.sprintf($str_foobtby,$str_foobtdis).'</a>';
}*/
if(stristr(__('Theme by %s', 'tesseract'),'%s') === false){
echo '<a href="https://'.$str_foobturl.'">'.sprintf(__('Theme by %s', 'tesseract'),$str_foobtdis).'</a>';
}else{
// if changes in language file
echo '<a href="https://'.$str_foobturl.'">'.sprintf('Theme by %s',$str_foobtdis).'</a>';
}
正如你看到的,在截图中也一样,线796,799和802如果我改变 “%s所主题”,“tesseracttheme。 com','Tesseract',就像“版权所有2017 myname”一样可以吗?
我不明白数组的含义以及这些行究竟发生了什么。