XPressME Integration Kit

Trac


Ignore:
Timestamp:
Apr 8, 2009, 12:45:03 AM (15 years ago)
Author:
toemon
Message:

Bump Ver0.28 #53 最近の記事内容ブロックのデザイン調整

モジュール外にブロックを配置したとき、ブロックCSSとして、テーマ内のstyle.cssとhotdateプラグインのCSSを取り込むようにした。 include/xpress_block_render.php xpress_get_plugin_css()
xpress_defaultのコンテンツ出力と同じ表示を行う all_in_oneタグを追加

File:
1 edited

Legend:

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

    r157 r165  
    4545                        ob_end_clean(); 
    4646                         
    47                         ob_start(); 
    48                                 the_title(); 
    49                                 $title = ob_get_contents(); 
    50                         ob_end_clean(); 
     47                        $title = xpress_the_title(false); 
    5148                         
    5249                        ob_start(); 
     
    104101                                $comments_popup_link = ob_get_contents(); 
    105102                        ob_end_clean(); 
     103 
     104// all_in_one                    
     105                        ob_start(); 
     106?> 
     107                                <div class="xpress-post" id="post-<?php the_ID(); ?>"> 
     108                                        <div class ="xpress-post-header"> 
     109                                                <?php if (function_exists('hotDates')) { hotDates(); }?> 
     110                                                <div class ="xpress-post-title"> 
     111                                                        <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> 
     112                                                </div> 
     113                                        </div> 
     114                                        <div class="xpress-post-entry"> 
     115<?php 
     116                        if ($excerpt){ 
     117                                $excerpt_length_word = $excerpt_size; 
     118                                $excerpt_length_character = $excerpt_size; 
     119                                $more_link_text = ''; 
     120                                $post_content = get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$more_link_text); 
     121                        } else { 
     122                                $post_content = xpress_the_content(__('more'),0,'',false);       
     123                        } 
     124                        echo $post_content; 
     125?>                                                       
     126                                        </div> 
     127                                        <div class="xpress-link-pages"><?php wp_link_pages() ?></div> 
     128                                        <div class ="xpress-post-footer"> 
     129<?php 
     130                                                the_time('Y/m/d l'); 
     131                                                echo ' - '; 
     132                                                the_author_posts_link(); 
     133                                                echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';  
     134                                                echo ' | '; 
     135                                                // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | '); 
     136                                                printf(__('Posted in %s', 'xpress'), get_the_category_list(', ')); 
     137                                                echo ' | '; 
     138                                                edit_post_link(__('Edit', 'xpress'), '', ' | '); 
     139                                                comments_popup_link(__('No Comments &#187;', 'xpress'), __('1 Comment &#187;', 'xpress'), __('% Comments &#187;', 'xpress'), '', __('Comments Closed', 'xpress') ); 
     140?> 
     141                                        </div> 
     142                                </div> 
     143<?php 
     144                        $all_in_one = ob_get_contents(); 
     145                        ob_end_clean(); 
     146                                                 
    106147                         
    107148                        $post_title = '<a href="' . $permalink . '">' . $title . '</a>'; 
     
    127168                                'post_views'            => $post_viwes, 
    128169                                'comment_link'  => $comments_popup_link , 
    129                                 'trackback_url' => $trackback_url 
     170                                'trackback_url' => $trackback_url , 
     171                                'all_in_one' => $all_in_one 
    130172                        ); 
    131173                         
     
    137179        return $block ; 
    138180} 
     181 
    139182?> 
Note: See TracChangeset for help on using the changeset viewer.