织梦dedecms自定义标签liketags调用tag/keyword相同的相关文章(7)

                     if($row['color']!='') $row['title'] = "<font color='".$row['color']."'>".$row['title']."</font>";

                     if(preg_match('#b#', $row['flag'])) $row['title'] = "<strong>".$row['title']."</strong>";

                     $row['textlink'] = "<a href='".$row['filename']."'>".$row['title']."</a>";

                     $row['plusurl'] = $row['phpurl'] = $GLOBALS['cfg_phpurl'];

                     $row['memberurl'] = $GLOBALS['cfg_memberurl'];

                     $row['templeturl'] = $GLOBALS['cfg_templeturl'];

                      

                     if(is_array($dtp2->CTags))

                     {

                         foreach($dtp2->CTags as $k=>$ctag)

                         {

                             if($ctag->GetName()=='array') {

                                 $dtp2->Assign($k,$row);

                             }

                             else {

                                 if(isset($row[$ctag->GetName()])) $dtp2->Assign($k,$row[$ctag->GetName()]);

                                 else $dtp2->Assign($k,'');

                             }

                         }

                         $GLOBALS['autoindex']++;

                     }

  

                     $artlist .= $dtp2->GetResult()."\r\n";

                 }

                 //if hasRow

                 else

                 {

                     $artlist .= '';

                 }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/6c6fba2fe861ebb8814605b843aea190.html