我使用 Wordpress Tesseract 主题建立了一个网站,我想更改版权。我使用 Find And Replace 插件制作了它,但我想通过更改代码来正确完成它。我搜索了它,发现我必须在 functions.php 文件中更改的代码。但我不理解代码,我不确定我是否只是更改“版权”,如果它真的有效,所以我需要一些帮助。
功能 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 行,如果我将“Theme by %s”、“tesseracttheme.com”、“Tesseract”更改为“Copyright 2017 myname”之类的内容会好吗?
我不明白数组的含义以及这些行到底发生了什么。