Changeset 75 for trunk/wp-content/plugins/xpressme
- Timestamp:
- Jan 30, 2009, 9:43:35 PM (16 years ago)
- Location:
- trunk/wp-content/plugins/xpressme
- Files:
-
- 2 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 -
trunk/wp-content/plugins/xpressme/xpressme.php
r72 r75 9 9 */ 10 10 require_once('xpressme_class.php'); 11 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 11 12 12 require_once dirname( __FILE__ ).'/include/custom_functions.php' ; 13 14 15 $xpessme = new XPressME_Class();16 17 13 18 14 $xoops_db = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST); … … 20 16 $xoops_db->tables = array('modules', 'newblocks', 'users'); 21 17 22 23 add_action('admin_menu', array(&$xpessme, 'add_option_page')); 24 add_action('admin_head', array(&$xpessme, 'add_admin_head')); 25 add_filter("upload_dir",array(&$xpessme, 'xpress_upload_filter'), 1); // Change wp-include/wp_upload_dir() 26 if (!$xpressme->is_save_post_revision){ 18 $XPressME = new XPressME_Class(); 19 if (!is_admin_page_call()){ 20 require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 21 } 22 add_action('admin_menu', array(&$XPressME, 'add_option_page')); 23 add_action('admin_head', array(&$XPressME, 'add_admin_head')); 24 add_filter("upload_dir",array(&$XPressME, 'xpress_upload_filter'), 1); // Change wp-include/wp_upload_dir() 25 if (!$XPressME->is_save_post_revision){ 27 26 remove_action( 'pre_post_update', 'wp_save_post_revision' ); // Not Save Post Revision 28 27 }
Note: See TracChangeset
for help on using the changeset viewer.