Changeset 140 for trunk/wp-content/plugins/xpressme
- Timestamp:
- Mar 29, 2009, 1:21:24 AM (16 years ago)
- Location:
- trunk/wp-content/plugins/xpressme
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r113 r140 243 243 } 244 244 245 function is_xpress_contributor() 246 { 247 global $current_user; 248 get_currentuserinfo(); 249 if ($current_user->user_level > 3) 250 return true; 251 else 252 return false; 253 } 254 255 function xpress_post_new_link($link_title,$display = true) 256 { 257 $output = '<a href="'. get_xpress_url() . '/wp-admin/post-new.php' . '">' . $link_title . '</a>'; 258 if ($display) 259 echo $output; 260 else 261 return $output; 262 } 263 264 function xpress_conditional_title($display = true) 265 { 266 $output = __('Main', 'xpress'); 267 if (is_category()) 268 $output = sprintf(__('Archive for the ‘%s’ Category', 'xpress'), single_cat_title('', false)); 269 if (is_tag()) 270 $output = sprintf(__('Posts Tagged ‘%s’', 'xpress'), single_tag_title('', false) ); 271 if (is_day()) 272 $output = sprintf(_c('Archive for %s|Daily archive page', 'xpress'), get_the_time(__('F jS, Y', 'xpress'))); 273 if (is_month()) 274 $output = sprintf(_c('Archive for %s|Monthly archive page', 'xpress'), get_the_time(__('F, Y', 'xpress'))); 275 if (is_year()) 276 $output = sprintf(_c('Archive for %s|Yearly archive page', 'xpress'), get_the_time(__('Y', 'xpress'))); 277 if (is_author()) 278 $output = get_author_name( get_query_var('author')); __('Author Archive', 'xpress'); 279 if (is_search()) 280 $output = __('Search Results', 'xpress'); 281 282 if ($display) 283 echo $output; 284 else 285 return $output; 286 } 287 245 288 ?> -
trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
r135 r140 66 66 return $prefix; 67 67 } 68 function get_xoops_url() 69 { 70 global $xoops_config; 71 $ret =$xoops_config->xoops_url ; 72 return $ret; 73 } 74 75 function get_xpress_url() 76 { 77 global $xoops_config; 78 $ret =$xoops_config->module_url ; 79 return $ret; 80 } 68 81 69 82 function get_xpress_modid() -
trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
r110 r140 3 3 "Project-Id-Version: XPressME Plugin\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2009-03- 17 10:45+0900\n"5 "PO-Revision-Date: 2009-03-25 00:47+0900\n" 6 6 "Last-Translator: toemon <toychee@toemon.com>\n" 7 7 "Language-Team: \n"
Note: See TracChangeset
for help on using the changeset viewer.