+ -
当前位置:首页 → 问答吧 → WordPress 文章标题 当天显示红色

WordPress 文章标题 当天显示红色

时间:2011-07-19

来源:互联网

WordPress  文章标题 当天显示红色
复制内容到剪贴板
代码:
function widget( $args, $instance ) {
        extract($args);
        $title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base);
        $text = apply_filters( 'widget_text', $instance['text'], $instance );        
        //$title="<font color=\"#ff0000\">$title</font>";
        echo $before_widget;
        
        if ( !empty( $title ) ) { echo $before_title . $title . $after_title; } ?>
            <div class="textwidget"><?php  
            
               
                $text=pbc_gen($text);
                echo $text;
                echo $instance['filter'] ? wpautop($text) : $text;
                ?>
                
                
                </div>
        <?php
        echo $after_widget;
    }
知道是这个段代码

作者: yinacn   发布时间: 2011-07-19

但是  
$text=pbc_gen($text);
                echo $text;


输出的是一整行数据!  很郁闷!

作者: yinacn   发布时间: 2011-07-19

热门下载

更多