- Timestamp:
- Mar 31, 2009, 12:43:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r143 r144 30 30 31 31 function xpress_is_theme_sidebar_disp(){ 32 global $ XPressME;33 return $ XPressME->is_theme_sidebar_disp;32 global $xpress_config; 33 return $xpress_config->is_theme_sidebar_disp; 34 34 } 35 35 36 36 function xpress_left_arrow_post_link($show = false) 37 37 { 38 global $ XPressME;38 global $xpress_config; 39 39 $ret = ''; 40 40 41 if($ XPressME->is_left_postnavi_old){42 $link_title = $ XPressME->old_post_link_text;43 ob_start(); 44 if ($ XPressME->is_postnavi_title_disp)41 if($xpress_config->is_left_postnavi_old){ 42 $link_title = $xpress_config->old_post_link_text; 43 ob_start(); 44 if ($xpress_config->is_postnavi_title_disp) 45 45 previous_post_link('« %link'); 46 46 else … … 49 49 ob_end_clean(); 50 50 } else { 51 $link_title = $ XPressME->newer_post_link_text;52 ob_start(); 53 if ($ XPressME->is_postnavi_title_disp)51 $link_title = $xpress_config->newer_post_link_text; 52 ob_start(); 53 if ($xpress_config->is_postnavi_title_disp) 54 54 next_post_link('« %link'); 55 55 else … … 59 59 } 60 60 61 if ($ XPressME->is_postnavi_title_disp){61 if ($xpress_config->is_postnavi_title_disp){ 62 62 $on_mouse_show = $link_title; 63 63 } else { 64 if($ XPressME->is_left_postnavi_old){64 if($xpress_config->is_left_postnavi_old){ 65 65 ob_start(); 66 66 previous_post_link('%link'); … … 87 87 function xpress_right_arrow_post_link($show = false) 88 88 { 89 global $ XPressME;89 global $xpress_config; 90 90 $ret = ''; 91 91 92 if($ XPressME->is_left_postnavi_old){93 $link_title = $ XPressME->newer_post_link_text;94 ob_start(); 95 if ($ XPressME->is_postnavi_title_disp)92 if($xpress_config->is_left_postnavi_old){ 93 $link_title = $xpress_config->newer_post_link_text; 94 ob_start(); 95 if ($xpress_config->is_postnavi_title_disp) 96 96 next_post_link('%link »'); 97 97 else … … 100 100 ob_end_clean(); 101 101 } else { 102 $link_title = $ XPressME->old_post_link_text;103 ob_start(); 104 if ($ XPressME->is_postnavi_title_disp)102 $link_title = $xpress_config->old_post_link_text; 103 ob_start(); 104 if ($xpress_config->is_postnavi_title_disp) 105 105 previous_post_link('%link »'); 106 106 else … … 110 110 } 111 111 112 if ($ XPressME->is_postnavi_title_disp){112 if ($xpress_config->is_postnavi_title_disp){ 113 113 $on_mouse_show = $link_title; 114 114 } else { 115 if($ XPressME->is_left_postnavi_old){115 if($xpress_config->is_left_postnavi_old){ 116 116 ob_start(); 117 117 next_post_link('%link'); … … 138 138 function xpress_left_arrow_posts_link($show = false) 139 139 { 140 global $ XPressME;140 global $xpress_config; 141 141 $ret = ''; 142 142 143 if($ XPressME->is_left_page_navi_old){144 $link_title = $ XPressME->old_page_link_text;143 if($xpress_config->is_left_page_navi_old){ 144 $link_title = $xpress_config->old_page_link_text; 145 145 ob_start(); 146 146 next_posts_link("« $link_title"); … … 148 148 ob_end_clean(); 149 149 } else { 150 $link_title = $ XPressME->newer_page_link_text;150 $link_title = $xpress_config->newer_page_link_text; 151 151 ob_start(); 152 152 previous_posts_link("« $link_title"); … … 163 163 function xpress_right_arrow_posts_link($show = false) 164 164 { 165 global $ XPressME;165 global $xpress_config; 166 166 $ret = ''; 167 167 168 if($ XPressME->is_left_page_navi_old){169 $link_title = $ XPressME->newer_page_link_text;168 if($xpress_config->is_left_page_navi_old){ 169 $link_title = $xpress_config->newer_page_link_text; 170 170 ob_start(); 171 171 previous_posts_link("$link_title »"); … … 173 173 ob_end_clean(); 174 174 } else { 175 $link_title = $ XPressME->old_page_link_text;175 $link_title = $xpress_config->old_page_link_text; 176 176 ob_start(); 177 177 next_posts_link("$link_title »"); … … 188 188 189 189 function xpress_is_author_view_count(){ 190 global $ XPressME;191 return $ XPressME->is_author_view_count;190 global $xpress_config; 191 return $xpress_config->is_author_view_count; 192 192 } 193 193
Note: See TracChangeset
for help on using the changeset viewer.