yy日韩无码,富婆的诱惑,国产菊爆视频在线观看,国产精品无码AV高清波波AV,国产成人啪精品视频站午夜,已满十八岁免费观看电视剧十八岁,中文字幕av久久人妻蜜桃臀

LOGO
外貿(mào)網(wǎng)站建設(shè),讓業(yè)務(wù)全球可達
0%
新聞中心 網(wǎng)絡(luò)推廣 網(wǎng)站建設(shè) 服務(wù)器相關(guān) 優(yōu)化推廣 首頁>新聞>網(wǎng)站建設(shè)

城市分站TDK修改。

時間:2024-07-27   訪問量:0

針對程序版本:V1.7.5

第一處:320行左右,首頁TDK修改。

// TDK無話調(diào)用參數(shù)TDK,所以修改如下,2024年7月27修改 
       if($this->cityinfo){
          $siteinfo = unserialize($this->cityinfo->site);

           if(!$siteinfo['title']) {
                $content = str_replace('{pboot:pagetitle}', $this->config('city_index_title'), $content); //siteinfo['title']為空的時候使用分站參數(shù)設(shè)置
                $content = str_replace('{pboot:pagekeywords}', $this->config('city_index_keywords'), $content); //siteinfo['title']為空的時候使用分站參數(shù)設(shè)置
                $content = str_replace('{pboot:pagedescription}', $this->config('city_index_description'), $content); //siteinfo['title']為空的時候使用分站參數(shù)設(shè)置                 
           }else{
                 $content = str_replace('{pboot:pagetitle}', $siteinfo['title'], $content); //siteinfo['title']不為空的時候使用本城市的設(shè)置
                $content = str_replace('{pboot:pagekeywords}', $siteinfo['keywords'], $content); //siteinfo['title']不為空的時候使用自己本城市的設(shè)置
                $content = str_replace('{pboot:pagedescription}', $siteinfo['description'], $content); //siteinfo['title']不為空的時候使用自己本城市的設(shè)置
            }           
        }else{
            $content = str_replace('{pboot:pagetitle}', $this->config('index_title') ?: '{pboot:sitetitle}-{pboot:sitesubtitle}', $content);  //非城市分站的時候使用全局
        };


第二處:360行,列表頁TDK修改。需要注意配置參數(shù)中的設(shè)置是否調(diào)用了固定的

   
                    // TDK無話調(diào)用參數(shù)TDK,所以修改如下,2024年7月27修改 
       if($this->cityinfo){
          $siteinfo = unserialize($this->cityinfo->site);

           if(!$siteinfo['title']) { 
                $content = str_replace('{pboot:pagetitle}', $this->config('list_title') ?: ($pagetitle . '_' . $this->config('city_title')), $content);//非城市分站的時候使用全局
                $content = str_replace('{pboot:pagekeywords}', $this->config('city_keywords'), $content);
                $content = str_replace('{pboot:pagedescription}',$this->config('city_description'), $content);              
           }else{ 
                $content = str_replace('{pboot:pagetitle}', $this->config('list_title') ?: ($pagetitle . '_' . $siteinfo['title']), $content);//非城市分站的時候使用全局
                $content = str_replace('{pboot:pagekeywords}', $siteinfo['keywords'], $content);
                $content = str_replace('{pboot:pagedescription}',  $siteinfo['description'], $content);
            }           
        }else{
            $content = str_replace('{pboot:pagetitle}', $this->config('list_title') ?: ($pagetitle . '_{pboot:sitetitle}-{pboot:sitesubtitle}'), $content);//非城市分站的時候使用全局
            $content = str_replace('{pboot:pagekeywords}', '{sort:keywords}', $content);
            $content = str_replace('{pboot:pagedescription}', '{sort:description}', $content); 
        };


第三處:414行左右。詳情頁的KEYWORDS修改。

 // TDK無話調(diào)用參數(shù)TDK,所以修改如下,2024年7月27修改 
       if($this->cityinfo){
          $siteinfo = unserialize($this->cityinfo->site);
           if(!$siteinfo['title']) {  
                $content = str_replace('{pboot:pagekeywords}', $this->config('city_index_keywords'), $content);              
           }else{ 
                 $content = str_replace('{pboot:pagekeywords}', $siteinfo['keywords'], $content); 
            }           
        }else{
             $content = str_replace('{pboot:pagekeywords}', '{content:keywords}', $content);
        };


第四處:單頁也需要設(shè)置一下keywords修改,和詳情頁一樣。標(biāo)題的顯示需要注意配置參數(shù)中的設(shè)置是否調(diào)用了固定的

// TDK無話調(diào)用參數(shù)TDK,所以修改如下,2024年7月27修改 
       if($this->cityinfo){
          $siteinfo = unserialize($this->cityinfo->site);
           if(!$siteinfo['title']) {  
                $content = str_replace('{pboot:pagekeywords}', $this->config('city_index_keywords'), $content);              
           }else{ 
                 $content = str_replace('{pboot:pagekeywords}', $siteinfo['keywords'], $content); 
            }           
        }else{
             $content = str_replace('{pboot:pagekeywords}', '{content:keywords}', $content);
        };





服務(wù)咨詢
1對1咨詢,專業(yè)客服為您解疑答惑
聯(lián)系銷售
15899750475
在線咨詢
聯(lián)系在線客服,為您解答所有的疑問
ARE YOU INTERESTED IN ?
感興趣嗎?

有關(guān)我們服務(wù)的更多信息,請聯(lián)系項目經(jīng)理

15899750475 楊先生