- Timestamp:
- Jun 10, 2009, 5:46:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/custom_functions.php
r272 r273 1 1 <?php 2 function 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 12 function xpress_is_wpmu() { 13 global $xoops_config; 14 15 return $xoops_config->is_wpmu; 16 } 17 18 function xpress_is_wp20() { 19 global $xoops_config; 20 21 return $xoops_config->is_wp20; 22 } 23 24 function 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 30 function xpress_is_author_view_count(){ 31 global $xpress_config; 32 return $xpress_config->is_author_view_count; 33 } 34 35 function xpress_is_multi_user(){ 36 global $xpress_config; 37 return $xpress_config->is_multi_user; 38 } 39 40 2 41 function xpress_the_title($args = '') 3 42 { … … 48 87 } 49 88 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 62 89 function xpress_selected_author($args ='' ) { 63 90 $defaults = array( … … 116 143 return $output; 117 144 } 118 119 120 145 121 146 function xpress_credit($args ='') … … 167 192 return $output; 168 193 } 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 }175 194 176 195 function xpress_left_arrow_post_link($args ='') … … 374 393 } 375 394 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 388 395 function xpress_substr($str, $start, $length, $trimmarker = '...') 389 396 { … … 460 467 } 461 468 462 463 469 $views_db = get_wp_prefix() . 'views'; 464 470 … … 532 538 } 533 539 534 function xpress_is_contributor()535 {536 global $current_user;537 get_currentuserinfo();538 if ($current_user->user_level > 3)539 return true;540 else541 return false;542 }543 544 540 function xpress_post_new_link($args ='') 545 541 { … … 612 608 } 613 609 610 // The content of the trackback/pingback to the post is returned by the list. 614 611 function xpress_pings_list($args =''){ 615 612 $defaults = array( … … 643 640 } 644 641 642 // The amount of the trackback/pingback to the post is returned. 645 643 function xpress_pings_number( $args ='' ) { 646 644 $defaults = array( … … 674 672 } 675 673 676 674 // xpress_get_pings() is a subfunction used with xpress_pings_number() and xpress_pings_list(). 677 675 function xpress_get_pings() 678 676 {
Note: See TracChangeset
for help on using the changeset viewer.