Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter nobiyou

    (@nobiyou)

    //加入栏目没有设置关键词直接取首页的关键词和描述
    if ( isset( $meta[0] ) && $meta[0] ) {
    $title = self::parse_tpl($meta[0],$data,’t’);
    }
    if ( isset( $meta[1] ) && $meta[1] ) {
    //$kw = $meta[1];
    $kw = self::parse_tpl($meta[1],$data,’k’);
    }else{
    $meta = self::cnf( ‘tdk.index’, array( ”, ”, ” ) );
    $kw = $meta[1];
    }
    if ( isset( $meta[2] ) && $meta[2] ) {
    //$desc = $meta[2];
    $desc = self::parse_tpl($meta[2],$data,’d’);
    }else{
    $meta = self::cnf( ‘tdk.index’, array( ”, ”, ” ) );
    $desc = $meta[2];
    }

Viewing 1 replies (of 1 total)