XPressME Integration Kit

Trac

Changeset 273


Ignore:
Timestamp:
Jun 10, 2009, 5:46:57 PM (15 years ago)
Author:
toemon
Message:

custom_functions コード整理(xpress_is_関数をまとめて配置&コメント追加)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php

    r272 r273  
    11<?php 
     2function xpress_is_contributor() 
     3{ 
     4        global $current_user; 
     5        get_currentuserinfo(); 
     6        if ($current_user->user_level > 3) 
     7                return true; 
     8        else 
     9                return false; 
     10} 
     11 
     12function xpress_is_wpmu() { 
     13        global $xoops_config; 
     14         
     15        return $xoops_config->is_wpmu; 
     16} 
     17 
     18function xpress_is_wp20() { 
     19        global $xoops_config; 
     20         
     21        return $xoops_config->is_wp20; 
     22} 
     23 
     24function xpress_is_theme_sidebar_disp(){ 
     25        global $xpress_config; 
     26        if (is_wordpress_style()) return true; 
     27        return $xpress_config->is_theme_sidebar_disp; 
     28}        
     29 
     30function xpress_is_author_view_count(){ 
     31        global $xpress_config; 
     32        return $xpress_config->is_author_view_count; 
     33} 
     34 
     35function xpress_is_multi_user(){ 
     36        global $xpress_config; 
     37        return $xpress_config->is_multi_user; 
     38} 
     39 
     40 
    241function xpress_the_title($args = '') 
    342{ 
     
    4887} 
    4988 
    50 function xpress_is_wpmu() { 
    51         global $xoops_config; 
    52          
    53         return $xoops_config->is_wpmu; 
    54 } 
    55  
    56 function xpress_is_wp20() { 
    57         global $xoops_config; 
    58          
    59         return $xoops_config->is_wp20; 
    60 } 
    61  
    6289function xpress_selected_author($args ='' ) { 
    6390        $defaults = array( 
     
    116143                return $output; 
    117144} 
    118  
    119  
    120145         
    121146function xpress_credit($args ='') 
     
    167192                return $output; 
    168193} 
    169  
    170 function xpress_is_theme_sidebar_disp(){ 
    171         global $xpress_config; 
    172         if (is_wordpress_style()) return true; 
    173         return $xpress_config->is_theme_sidebar_disp; 
    174 }        
    175194 
    176195function xpress_left_arrow_post_link($args ='') 
     
    374393} 
    375394 
    376  
    377 function xpress_is_author_view_count(){ 
    378         global $xpress_config; 
    379         return $xpress_config->is_author_view_count; 
    380 } 
    381  
    382 function xpress_is_multi_user(){ 
    383         global $xpress_config; 
    384         return $xpress_config->is_multi_user; 
    385 } 
    386  
    387  
    388395function xpress_substr($str, $start, $length, $trimmarker = '...') 
    389396{ 
     
    460467        } 
    461468 
    462  
    463469        $views_db = get_wp_prefix() . 'views'; 
    464470 
     
    532538} 
    533539 
    534 function xpress_is_contributor() 
    535 { 
    536         global $current_user; 
    537         get_currentuserinfo(); 
    538         if ($current_user->user_level > 3) 
    539                 return true; 
    540         else 
    541                 return false; 
    542 } 
    543  
    544540function xpress_post_new_link($args ='') 
    545541{ 
     
    612608} 
    613609 
     610// The content of the trackback/pingback to the post is returned by the list.  
    614611function xpress_pings_list($args =''){ 
    615612        $defaults = array( 
     
    643640} 
    644641 
     642// The amount of the trackback/pingback to the post is returned. 
    645643function xpress_pings_number( $args ='' ) { 
    646644        $defaults = array( 
     
    674672} 
    675673 
    676  
     674// xpress_get_pings() is a subfunction used with xpress_pings_number() and xpress_pings_list().  
    677675function xpress_get_pings() 
    678676{ 
Note: See TracChangeset for help on using the changeset viewer.