Index: trunk/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 113)
+++ 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;
+}
+
 ?>
