XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 17, 2010, 3:47:52 PM (14 years ago)
Author:
toemon
Message:

人気記事リスト(全ブログ)のsmartyテンプレートタグにブログ情報を付加 Fixes#318

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/global_popular_posts_block_theme.php

    r554 r555  
    3232                        switch_to_blog($blog['blog_id']); 
    3333                        $wp_rewrite->init(); 
     34                         
     35                        $blog_title = get_bloginfo('name'); 
     36                        $blog_link = get_bloginfo('url'); 
     37                        $blog_title_link = '<a href="' . $blog_link . '">' . $blog_title . '</a>' ; 
    3438 
    3539                        $db_prefix = get_wp_prefix(); 
     
    149153                                        $post_views_num = (int) xpress_post_views_count("post_id={$post_id}&format=%d&echo=0"); 
    150154                                        $row_data = array( 
     155                                                'blog_title' => $blog_title , 
     156                                                'blog_link' => $blog_link , 
     157                                                'blog_title_link' => $blog_title_link , 
    151158                                                'post_id'               => $post_id , 
    152159                                                'post_title'    => $post_title , 
Note: See TracChangeset for help on using the changeset viewer.