XPressME Integration Kit

Trac


Ignore:
Timestamp:
Mar 15, 2009, 10:29:28 PM (15 years ago)
Author:
toemon
Message:

D3Forum コメント統合実装 (インポート・エクスポート)
D3Forumコメント統合時のオプション追加(表示順・表示タイプ・表示数)
これで #5 のチケットは完了

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/class/xpressD3commentContent.class.php

    r104 r108  
    125125                        if( ! empty( $params['view'] ) ) { 
    126126                                return $params['view'] ; 
    127                         } else if( ! empty( $this->mod_config['comment_view'] ) ) { 
    128                                 return $this->mod_config['comment_view'] ; 
    129127                        } else { 
    130128                                return 'listposts' ; 
     
    137135                function getOrder( $params ) 
    138136                { 
     137                        global $XPressME; 
    139138                        if( ! empty( $params['order'] ) ) { 
    140139                                return strtolower( $params['order'] ) ; 
    141                         } else if( ! empty( $this->mod_config['comment_order'] ) ) { 
    142                                 return $this->mod_config['comment_order'] ; 
    143140                        } else { 
    144141                                return 'desc' ; 
     
    154151                        if( ! empty( $params['posts_num'] ) ) { 
    155152                                return $params['posts_num'] ; 
    156                         } else if( ! empty( $this->mod_config['comment_posts_num'] ) ) { 
    157                                 return $this->mod_config['comment_posts_num'] ; 
    158153                        } else { 
    159154                                return 10 ; 
Note: See TracChangeset for help on using the changeset viewer.