XPressME Integration Kit

Trac


Ignore:
Timestamp:
Jun 9, 2009, 5:37:04 PM (15 years ago)
Author:
toemon
Message:

#130 カスタムテンプレートタグでwp_parse_argsを利用
get_xpress_excerpt_contents()
xpress_the_content()
を除き修正

Location:
trunk/xpressme_integration_kit/wp-content/themes/xpress_default
Files:
8 edited

Legend:

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

    r237 r272  
    99        $mydirpath = get_xpress_dir_path(); 
    1010 
    11         $block['calender'] = xpress_get_calendar($sun_color,$sat_color); 
     11        $block['calender'] = xpress_get_calendar('sun_color=' . $sun_color . '&sat_color=' .$sat_color); 
    1212        return $block ;  
    1313} 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/popular_posts_block_theme.php

    r262 r272  
    2424        $item_no = 0;    
    2525         
    26         $selected_author_id = xpress_selected_author_id(false);  
     26        $selected_author_id = xpress_selected_author_id('echo=0');       
    2727 
    2828        global $wpdb,$wp_query,$xoops_db; 
     
    158158                        $post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ; 
    159159                        $trackback_url = trackback_url(false); 
    160                         $post_viwes = xpress_post_views_count($post_id,__('views: %d','xpress') ,false); 
     160                        $post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0'); 
     161 
    161162//                      if (empty($tags)) $tags = __('Not Tag'); 
    162163 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_content_block_theme.php

    r262 r272  
    2020        if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 
    2121         
    22         $selected_author_id = xpress_selected_author_id(false);  
     22        $selected_author_id = xpress_selected_author_id('echo=0');       
    2323        if (!empty($selected_author_id)){ 
    2424                $author_where ="author=$selected_author_id&"; 
     
    4545                        ob_end_clean(); 
    4646                         
    47                         $title = xpress_the_title(false); 
     47                        $title = xpress_the_title('echo=0'); 
    4848                         
    4949                        ob_start(); 
     
    132132                                                echo ' - '; 
    133133                                                the_author_posts_link(); 
    134                                                 echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';  
     134                                                echo ' (' . xpress_post_views_count('post_id=' . $post->ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')';  
     135                                                 
    135136                                                echo ' | '; 
    136137                                                // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | '); 
     
    151152                        $post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ; 
    152153                        $trackback_url = trackback_url(false); 
    153                         $post_viwes = xpress_post_views_count($post_id,'views: %d' ,false); 
     154                        $post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0'); 
     155 
    154156//                      if (empty($tags)) $tags = __('Not Tag'); 
    155157 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/blocks/recent_posts_list_block_theme.php

    r262 r272  
    1818        if(empty($tag_select)) $tag_where = ''; else $tag_where = "tag='$tag_select'&"; 
    1919 
    20         $selected_author_id = xpress_selected_author_id(false);  
     20        $selected_author_id = xpress_selected_author_id('echo=0');       
    2121        if (!empty($selected_author_id)){ 
    2222                $author_where ="author=$selected_author_id&"; 
     
    118118                        $post_modified_date_time = $post_modified_date . ' ' . $post_modified_time ; 
    119119                        $trackback_url = trackback_url(false); 
    120                         $post_viwes = xpress_post_views_count($post_id,'views: %d' ,false); 
     120                        $post_viwes = xpress_post_views_count('post_id=' . $post_id . '&format=' . __('Views :%d', 'xpress'). '&echo=0'); 
     121 
    121122//                      if (empty($tags)) $tags = __('Not Tag'); 
    122123 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/footer.php

    r232 r272  
    77                <!-- <?php printf(__('%d queries. %s seconds.', 'xpress'), get_num_queries(), timer_stop(0, 3)); ?> --> 
    88        <!-- If you'd like to support WordPress, having the "powered by" link somewhere on your blog is the best way; it's our only promotion or advertising. --> 
    9                 <div class="xpress_credit"><?php echo xpress_credit(false). ' (' . xpress_convert_time(false) . ')'; ?></div> 
     9                <div class="xpress_credit"><?php echo xpress_credit('echo=0'). ' (' . xpress_convert_time('echo=0&format=' . __('%.3f sec.', 'xpress')) . ')'; ?></div> 
    1010</div> 
    1111</div> 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/header.php

    r237 r272  
    3030        <div id="xpress-header-bar-top"> 
    3131                <div class="xpress-header-title"> 
    32                         <?php  if (xpress_selected_author_id(false)) echo get_avatar(xpress_selected_author_id(false),$size = '32'); ?> 
     32                        <?php  if (xpress_selected_author_id('echo=0')) echo get_avatar(xpress_selected_author_id('echo=0'),$size = '32'); ?> 
    3333                        <a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a> 
    3434                </div> 
     
    4545                <?php endif; ?> 
    4646                <a href="<?php echo get_option('home'); ?>/"><?php _e('Blogs Home','xpress')?></a>  
    47                 <?php if(xpress_is_contributor()) { echo ' | ' ; xpress_post_new_link(__('Post New','xpress')); }?> 
     47                <?php if(xpress_is_contributor()) { echo ' | ' ; xpress_post_new_link('link_title='. __('Post New','xpress'). '&echo=1'); }?> 
    4848        </div> 
    4949</div> 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/index.php

    r252 r272  
    1515                                        <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div> 
    1616                                <?php else : ?> 
    17                                         <div class="alignleft"><?php xpress_left_arrow_posts_link(true); ?></div> 
    18                                         <div class="alignright"><?php xpress_right_arrow_posts_link(true); ?></div> 
     17                                        <div class="alignleft"><?php xpress_left_arrow_posts_link('echo=1'); ?></div> 
     18                                        <div class="alignright"><?php xpress_right_arrow_posts_link('echo=1'); ?></div> 
    1919                                <?php endif; ?> 
    2020                        </div> 
     
    4242                                                echo ' - '; 
    4343                                                the_author_posts_link(); 
    44                                                 echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';  
     44                                                echo ' (' . xpress_post_views_count('post_id=' . $post->ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')';  
    4545                                                echo ' | '; 
    4646                                                // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | '); 
     
    5959                                        <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div> 
    6060                                <?php else : ?> 
    61                                         <div class="alignleft"><?php xpress_left_arrow_posts_link(true); ?></div> 
    62                                         <div class="alignright"><?php xpress_right_arrow_posts_link(true); ?></div> 
     61                                        <div class="alignleft"><?php xpress_left_arrow_posts_link('echo=1'); ?></div> 
     62                                        <div class="alignright"><?php xpress_right_arrow_posts_link('echo=1'); ?></div> 
    6363                                <?php endif; ?> 
    6464                        </div> 
  • trunk/xpressme_integration_kit/wp-content/themes/xpress_default/single.php

    r253 r272  
    1313                        <?php while (have_posts()) : the_post(); ?> 
    1414                                <div class="xpress-navi-bar"> 
    15                                         <div class="alignleft"><?php xpress_left_arrow_post_link(true); ?></div> 
    16                                         <div class="alignright"><?php xpress_right_arrow_post_link(true); ?></div> 
     15                                        <div class="alignleft"><?php xpress_left_arrow_post_link('echo=1'); ?></div> 
     16                                        <div class="alignright"><?php xpress_right_arrow_post_link('echo=1'); ?></div> 
    1717                                </div> 
    1818 
     
    4040                                                        echo ' - '; 
    4141                                                        the_author_posts_link(); 
    42                                                         echo ' (' . xpress_post_views_count($post->ID,__('Views :%d', 'xpress'),false) . ')';  
     42                                                        echo ' (' . xpress_post_views_count('post_id=' . $post->ID . '&format=' . __('Views :%d', 'xpress'). '&echo=0') . ')';  
    4343                                                        echo ' | '; 
    4444                                                        // echo the_tags(__('Tags:', 'xpress') . ' ', ', ', ' | '); 
     
    5151                                                         
    5252                                        <div id ="xpress-pings-block"> 
    53                                                 <h3><?php xpress_pings_number(__('No Trackback/Pingback', 'xpress'),__('One Trackback/Pingback', 'xpress'),__('% TrackBack/Pingback', 'xpress')) ?></h3> 
     53                                                <h3><?php xpress_pings_number('zero=' . __('No Trackback/Pingback', 'xpress'). '&one='. __('One Trackback/Pingback', 'xpress'). '&more=' . __('% TrackBack/Pingback', 'xpress')) ?></h3> 
    5454                                                <p class="xpress_pings_status"><small> 
    5555                                                <?php 
     
    6161                                                ?> 
    6262                                                </small></p> 
    63                                                 <?php xpress_pings_list(true) ?>                                         
     63                                                <?php xpress_pings_list('echo=1') ?>                                     
    6464                                        </div> 
    6565                                                         
     
    7575                                 
    7676                                <div class="xpress-navi-bar"> 
    77                                         <div class="alignleft"><?php xpress_left_arrow_post_link(true) ?></div> 
    78                                         <div class="alignright"><?php xpress_right_arrow_post_link(true) ?></div> 
     77                                        <div class="alignleft"><?php xpress_left_arrow_post_link('echo=1') ?></div> 
     78                                        <div class="alignright"><?php xpress_right_arrow_post_link('echo=1') ?></div> 
    7979                                </div> 
    8080 
     
    8686                                        <div class="xpress_pagenavi"><?php wp_pagenavi(); ?></div> 
    8787                                <?php else : ?> 
    88                                         <div class="alignleft"><?php xpress_left_arrow_posts_link(true); ?></div> 
    89                                         <div class="alignright"><?php xpress_right_arrow_posts_link(true); ?></div> 
     88                                        <div class="alignleft"><?php xpress_left_arrow_posts_link('echo=1'); ?></div> 
     89                                        <div class="alignright"><?php xpress_right_arrow_posts_link('echo=1'); ?></div> 
    9090                                <?php endif; ?> 
    9191                        </div> 
Note: See TracChangeset for help on using the changeset viewer.