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/plugins/xpressme/include/custom_functions.php

    r164 r165  
    11<?php 
     2function xpress_the_title($show = false) 
     3{ 
     4        $output = '<div class ="xpress-post-header">' . "\n"; 
     5         
     6        if (function_exists('hotDates')) { 
     7                ob_start(); 
     8                        hotDates(); 
     9                        $output .= ob_get_contents(); 
     10                ob_end_clean(); 
     11        } 
     12        $output .= '<div class ="xpress-post-title">' . "\n"; 
     13        $output .= '<h2><a href="'; 
     14        ob_start(); 
     15                the_permalink(); 
     16                $output .= ob_get_contents(); 
     17        ob_end_clean(); 
     18                                                 
     19        $output .= '" rel="bookmark" title="'; 
     20        $output .= sprintf(__('Permanent Link to %s', 'xpress'), the_title_attribute('echo=0')); 
     21        $output .= '">'; 
     22        ob_start(); 
     23                the_title(); 
     24                $output .= ob_get_contents(); 
     25        ob_end_clean(); 
     26        $output .= '</a></h2>' . "\n"; 
     27        $output .= '</div>' . "\n"; 
     28        $output .= '</div>' . "\n"; 
     29         
     30        if (empty($show)) 
     31                return $output; 
     32        else 
     33                echo $output; 
     34 
     35} 
     36 
    237function xpress_selected_author($show=true ) { 
    338        $output = ''; 
Note: See TracChangeset for help on using the changeset viewer.