Changeset 75 for trunk/wp-content/plugins/xpressme/include
- Timestamp:
- Jan 30, 2009, 9:43:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r57 r75 28 28 29 29 function xpress_is_theme_sidebar_disp(){ 30 $config = new XPressME_Class();31 return $ config->is_theme_sidebar_disp;30 global $XPressME; 31 return $XPressME->is_theme_sidebar_disp; 32 32 } 33 33 34 34 function xpress_left_arrow_post_link($show = false) 35 35 { 36 $config = new XPressME_Class();36 global $XPressME; 37 37 $ret = ''; 38 38 39 if($ config->is_left_postnavi_old){40 $link_title = $ config->old_post_link_text;39 if($XPressME->is_left_postnavi_old){ 40 $link_title = $XPressME->old_post_link_text; 41 41 ob_start(); 42 if ($ config->is_postnavi_title_disp)42 if ($XPressME->is_postnavi_title_disp) 43 43 previous_post_link('« %link'); 44 44 else … … 47 47 ob_end_clean(); 48 48 } else { 49 $link_title = $ config->newer_post_link_text;49 $link_title = $XPressME->newer_post_link_text; 50 50 ob_start(); 51 if ($ config->is_postnavi_title_disp)51 if ($XPressME->is_postnavi_title_disp) 52 52 next_post_link('« %link'); 53 53 else … … 57 57 } 58 58 59 if ($ config->is_postnavi_title_disp){59 if ($XPressME->is_postnavi_title_disp){ 60 60 $on_mouse_show = $link_title; 61 61 } else { 62 if($ config->is_left_postnavi_old){62 if($XPressME->is_left_postnavi_old){ 63 63 ob_start(); 64 64 previous_post_link('%link'); … … 85 85 function xpress_right_arrow_post_link($show = false) 86 86 { 87 $config = new XPressME_Class();87 global $XPressME; 88 88 $ret = ''; 89 89 90 if($ config->is_left_postnavi_old){91 $link_title = $ config->newer_post_link_text;90 if($XPressME->is_left_postnavi_old){ 91 $link_title = $XPressME->newer_post_link_text; 92 92 ob_start(); 93 if ($ config->is_postnavi_title_disp)93 if ($XPressME->is_postnavi_title_disp) 94 94 next_post_link('%link »'); 95 95 else … … 98 98 ob_end_clean(); 99 99 } else { 100 $link_title = $ config->old_post_link_text;100 $link_title = $XPressME->old_post_link_text; 101 101 ob_start(); 102 if ($ config->is_postnavi_title_disp)102 if ($XPressME->is_postnavi_title_disp) 103 103 previous_post_link('%link »'); 104 104 else … … 108 108 } 109 109 110 if ($ config->is_postnavi_title_disp){110 if ($XPressME->is_postnavi_title_disp){ 111 111 $on_mouse_show = $link_title; 112 112 } else { 113 if($ config->is_left_postnavi_old){113 if($XPressME->is_left_postnavi_old){ 114 114 ob_start(); 115 115 next_post_link('%link'); … … 135 135 136 136 function xpress_is_author_view_count(){ 137 $config = new XPressME_Class();138 return $ config->is_author_view_count;137 global $XPressME; 138 return $XPressME->is_author_view_count; 139 139 } 140 140
Note: See TracChangeset
for help on using the changeset viewer.