Index: trunk/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 139)
+++ trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 140)
@@ -243,3 +243,46 @@
 }
 
+function is_xpress_contributor()
+{
+	global $current_user;
+	get_currentuserinfo();
+	if ($current_user->user_level > 3)
+		return true;
+	else
+		return false;
+}
+
+function xpress_post_new_link($link_title,$display = true)
+{
+	$output = '<a href="'. get_xpress_url() . '/wp-admin/post-new.php' . '">' . $link_title . '</a>';
+	if ($display) 
+		echo $output;
+	else
+		return $output;
+}
+
+function xpress_conditional_title($display = true)
+{
+	$output = __('Main', 'xpress');
+	if (is_category())
+		$output = sprintf(__('Archive for the &#8216;%s&#8217; Category', 'xpress'), single_cat_title('', false));
+	if (is_tag())
+		$output = sprintf(__('Posts Tagged &#8216;%s&#8217;', 'xpress'), single_tag_title('', false) );
+	if (is_day())
+		$output = sprintf(_c('Archive for %s|Daily archive page', 'xpress'), get_the_time(__('F jS, Y', 'xpress')));
+	if (is_month())
+		$output = sprintf(_c('Archive for %s|Monthly archive page', 'xpress'), get_the_time(__('F, Y', 'xpress')));
+	if (is_year())
+		$output = sprintf(_c('Archive for %s|Yearly archive page', 'xpress'), get_the_time(__('Y', 'xpress')));
+	if (is_author())
+		$output = get_author_name( get_query_var('author')); __('Author Archive', 'xpress');
+	if (is_search())
+		$output = __('Search Results', 'xpress');
+		
+	if ($display) 
+		echo $output;
+	else
+		return $output;
+}
+
 ?>
Index: trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php	(revision 139)
+++ trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php	(revision 140)
@@ -66,4 +66,17 @@
 	return $prefix;
 }
+function get_xoops_url()
+{
+	global $xoops_config;
+	$ret =$xoops_config->xoops_url ;
+	return $ret;
+}
+
+function get_xpress_url()
+{
+	global $xoops_config;
+	$ret =$xoops_config->module_url ;
+	return $ret;
+}
 
 function get_xpress_modid()
Index: trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
===================================================================
--- trunk/wp-content/plugins/xpressme/language/xpressme-ja.po	(revision 139)
+++ trunk/wp-content/plugins/xpressme/language/xpressme-ja.po	(revision 140)
@@ -3,5 +3,5 @@
 "Project-Id-Version: XPressME Plugin\n"
 "POT-Creation-Date: \n"
-"PO-Revision-Date: 2009-03-17 10:45+0900\n"
+"PO-Revision-Date: 2009-03-25 00:47+0900\n"
 "Last-Translator: toemon <toychee@toemon.com>\n"
 "Language-Team: \n"
