XPressME Integration Kit

Trac

source: wp-content/themes/toemon/xpress_block.inc.php @ 1

Last change on this file since 1 was 1, checked in by toemon, 15 years ago

取り敢えずインストールと表示が出来るようにした初期バージョン

File size: 2.1 KB
Line 
1<?php
2
3function theme_contents_block(&$block_posts,$except=false,$except_size= 100,$show_comment_link=true,$show_cat_link=true,$show_post_time=true,$show_view_num=true,$show_author=true,$show_the_tags=true)
4{
5        global $id;
6
7        while($block_posts->have_posts()){
8                $block_posts->the_post();
9?>
10            <style type="text/css">
11            <!--
12            .entry p{margin:0;padding:5px 0;}
13            .post p{line-height:1.4;}
14            .dateblock{margin-left:-5px!important;}
15            //-->
16            </style>
17                        <div class="post" id="post-<?php the_ID(); ?>" style="clear:both;margin:0 0 20px;padding:20px 0 0;width:100%;">
18                                <?php if (function_exists('hotDates')) {
19                                        echo '<style type="text/css">@import url('. get_bloginfo('url') . '/wp-content/plugins/hotDates/hotDates.css);</style>';
20                                        hotDates();
21                                }?>
22                                <h2 style="margin:0;font-size:1.5em;"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
23                                <small style="font-family:Arial,Helvetica,Sans-Serif;font-size:0.8em;line-height:1.5em;color:#777777;"><?php the_time(__('F jS, Y', 'kubrick')) ?> <!-- by <?php the_author() ?> --></small>
24
25                                <div class="entry" style="line-height:1.4em;clear:both;padding:10px 0 0;margin:0;">
26                                        <?php
27                                                if ($except)
28                                                        wpj_excerpt($except_size, 2);
29                                                else
30                                                        the_content(__('Read the rest of this entry &raquo;', 'kubrick'));
31                                        ?>
32                                </div>
33                                <p class="postmetadata" style="padding:10px 0 0;color:#777777;font-size:0.9em;">
34                                <?php/* if($show_author) { _e('Posted:', 'kubrick'); the_author_posts_link(); echo '<br />' ; }*/?>
35                                <?php if($show_the_tags) the_tags(__('Tags:', 'kubrick') . ' ', ' &bull; ', '<br />'); ?>
36                                <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(' &bull; ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?>  <?php comments_popup_link(__('No Comments &#187;', 'kubrick'), __('1 Comment &#187;', 'kubrick'), __('% Comments &#187;', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?></p>
37                        </div>
38
39<?php
40   }
41}
42?>
Note: See TracBrowser for help on using the repository browser.