XPressME Integration Kit

Trac

Changeset 555


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

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

Location:
trunk/xpressme_integration_kit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/templates/source/global_popular_posts_block.html

    r552 r555  
    2020                <{$content.comment_link}>                               // Displays a link to the comments popup window if comments_popup_script() is used, otherwise it displays a normal link to comments.  
    2121                <{$content.trackback_url}>                              // Displays the trackback URL for the current post. 
     22                <{$content.blog_link}>                                  // Displays a permalink to the blog a comment belongs to. 
     23                <{$content.blog_title}>                                 // Displays a title to the blog a comment belongs to. 
     24                <{$content.blog_title_link}>                    // Displays the blog's permalink, where the link text value is the posts title name. 
    2225                <{/foreach}>                                                    // End of Loop 
    2326************************* End of usage ************************ *}> 
  • 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.