XPressME Integration Kit

Trac


Ignore:
Timestamp:
Dec 22, 2008, 9:55:10 PM (15 years ago)
Author:
toemon
Message:

ブロックのスタイルシートはテンプレート変数<{$xoops_block_header}>にアサインします。
使い方としては、xoopsテーマの<{$xoops_module_header}>の直後に<{$xoops_block_header}>を書き加えます。
上記実装 #44

ブロックのレンダリングを行う部分と、ブロック用CSSの場所をWordPressテーマ内にblocksというフォルダーを作成してその中に置く。 #46

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/blocks/xpress_block_recent_comments.html

    r36 r38  
    11<ul class="xpress_recent_comments"> 
     2        <!-- The template tag of the following list can be used.  
     3                        <{$content.from_auther_to_post}> 
     4                        <{$content.comment_ID}> 
     5                        <{$content.comment_post_ID}> 
     6                        <{$content.comment_date}> 
     7                        <{$content.comment_date_time}> 
     8                        <{$content.comment_content}> 
     9                        <{$content.comment_excerpt}> 
     10                        <{$content.comment_link}> 
     11                        <{$content.comment_title}> 
     12                        <{$content.comment_title_link}> 
     13                        <{$content.post_link}> 
     14                        <{$content.post_title}> 
     15                        <{$content.post_title_link}> 
     16                        <{$content.author_link}> 
     17                        <{$content.author_name}> 
     18                        <{$content.author_name_link}> 
     19                        <{$content.comment_type}> 
     20        --> 
     21 
    222        <{foreach from=$block.contents item=content}> 
    323                <li> 
    4                                 <{$content.from_auther_to_post}><br /> 
    5                                 <{$content.comment_ID}><br /> 
    6                                 <{$content.comment_post_ID}><br /> 
    7                                 <{$content.comment_date}><br /> 
    8                                 <{$content.comment_date_time}><br /> 
    9                                 <{$content.comment_content}><br /> 
    10                                 <{$content.comment_excerpt}><br /> 
    11                                 <{$content.comment_link}><br /> 
    12                                 <{$content.comment_title}><br /> 
    13                                 <{$content.comment_title_link}><br /> 
    14                                 <{$content.post_link}><br /> 
    15                                 <{$content.post_title}><br /> 
    16                                 <{$content.post_title_link}><br /> 
    17                                 <{$content.author_link}><br /> 
    18                                 <{$content.author_name}><br /> 
    19                                 <{$content.author_name_link}><br /> 
    20                                 <{$content.comment_type}><br /><br /> 
     24                        <{$content.from_auther_to_post}><br /> 
     25                        <{$content.comment_excerpt}><br /> 
     26                        <{$content.comment_date_time}><br /> 
    2127                </li> 
    2228        <{/foreach}> 
Note: See TracChangeset for help on using the changeset viewer.