Index: trunk/wp-content/plugins/xpressme/include/custom_functions.php
===================================================================
--- trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 32)
+++ trunk/wp-content/plugins/xpressme/include/custom_functions.php	(revision 32)
@@ -0,0 +1,97 @@
+<?php
+	
+function xpress_credit($show = false)
+{
+	global $xoopsModule,$wp_version;
+	
+	$ret = '<a href="http://www.toemon.com"'. " target='_blank'" . '>XPressME Ver.' . sprintf('%.2f %s',$xoopsModule->getInfo('version'),$xoopsModule->getInfo('codename')) .'</a>';
+	if (strstr($wp_version,'ME')){
+		$ret .= '(included <a href="http://wpme.sourceforge.jp/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)';
+	} else {
+		$ret .= '(included <a href="http://ja.wordpress.org/" title="Powered by WordPress"'." target='_blank'". '>WordPress ' . $wp_version . '</a>)';
+	}
+
+	if (empty($show))
+		return $ret;
+	else
+		echo $ret;
+}
+
+function xpress_convert_time($show = false)
+{
+	$ret =  timer_stop(0) .'sec. ';
+	if (empty($show))
+		return $ret;
+	else
+		echo $ret;
+}
+
+function xpress_is_theme_sidebar_disp(){
+	$config = new XPressME_Class();
+	return $config->is_theme_sidebar_disp;
+}	
+
+function xpress_left_arrow_post_link($show = false)
+{
+	$config = new XPressME_Class();
+	$ret = '';		
+	
+	if($config->is_left_postnavi_old){
+		$link_title = $config->old_post_link_text;
+		ob_start();
+		if ($config->is_postnavi_title_disp)
+			previous_post_link('&laquo; %link');
+		else 
+			previous_post_link('&laquo; %link',$link_title);
+		$ret = ob_get_contents();
+		ob_end_clean();
+	} else {
+		$link_title = $config->newer_post_link_text;
+		ob_start();
+		if ($config->is_postnavi_title_disp)
+			next_post_link('&laquo; %link');
+		else
+			next_post_link('&laquo; %link',$link_title);
+		$ret = ob_get_contents();
+		ob_end_clean();
+	}
+	$ret = str_replace('">','" title="'.$link_title . '">' , $ret);
+
+	if (empty($show))
+		return $ret;
+	else
+		echo $ret;	
+}
+
+function xpress_right_arrow_post_link($show = false)
+{
+	$config = new XPressME_Class();
+	$ret = '';		
+	
+	if($config->is_left_postnavi_old){
+		$link_title = $config->newer_post_link_text;
+		ob_start();
+		if ($config->is_postnavi_title_disp)
+			next_post_link('%link &raquo;');
+		else
+			next_post_link('%link &raquo;',$link_title);
+		$ret = ob_get_contents();
+		ob_end_clean();
+	} else {
+		$link_title = $config->old_post_link_text;
+		ob_start();
+		if ($config->is_postnavi_title_disp)
+			previous_post_link('%link &raquo;');
+		else 
+			previous_post_link('%link &raquo;',$link_title);
+		$ret = ob_get_contents();
+		ob_end_clean();
+	}
+	$ret = str_replace('">','" title="'.$link_title . '">' , $ret);
+
+	if (empty($show))
+		return $ret;
+	else
+		echo $ret;	
+}
+?>
Index: trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
===================================================================
--- trunk/wp-content/plugins/xpressme/language/xpressme-ja.po	(revision 28)
+++ trunk/wp-content/plugins/xpressme/language/xpressme-ja.po	(revision 32)
@@ -3,5 +3,5 @@
 "Project-Id-Version: fckeditor for xpress\n"
 "POT-Creation-Date: \n"
-"PO-Revision-Date: 2008-12-15 17:50+0900\n"
+"PO-Revision-Date: 2008-12-17 09:50+0900\n"
 "Last-Translator: toemon <toychee@toemon.com>\n"
 "Language-Team: \n"
@@ -15,49 +15,91 @@
 "X-Poedit-SearchPath-0: .\n"
 
-#: xpressme_class.php:20
+#: xpressme_class.php:25
 msgid "XPressME Settings"
 msgstr "XPressME設定"
 
-#: xpressme_class.php:73
-#: xpressme_class.php:118
-#: xpressme_class.php:123
+#: xpressme_class.php:42
+#: xpressme_class.php:81
+msgid "to Old Post"
+msgstr "前の投稿へ"
+
+#: xpressme_class.php:43
+#: xpressme_class.php:83
+msgid "to Newer Post"
+msgstr "次の投稿へ"
+
+#: xpressme_class.php:88
+#: xpressme_class.php:148
+#: xpressme_class.php:153
 msgid "YES"
 msgstr "はい"
 
-#: xpressme_class.php:74
-#: xpressme_class.php:119
-#: xpressme_class.php:124
+#: xpressme_class.php:89
+#: xpressme_class.php:149
+#: xpressme_class.php:154
 msgid "NO"
 msgstr "いいえ"
 
-#: xpressme_class.php:108
+#: xpressme_class.php:138
 msgid "XPressME Configuration Page"
 msgstr "XPressMEの設定ページ"
 
-#: xpressme_class.php:112
+#: xpressme_class.php:142
 msgid "Media Upload Base Path"
 msgstr "メディアアップロードのベースパス設定"
 
-#: xpressme_class.php:113
+#: xpressme_class.php:143
 msgid "Use XOOPS UPLOAD PATH"
 msgstr "XOOPSのアップロードパスを使用する。"
 
-#: xpressme_class.php:114
+#: xpressme_class.php:144
 msgid "USE WordPress BASE_PATH"
 msgstr "WordPressのベースパスを使用する。"
 
-#: xpressme_class.php:117
+#: xpressme_class.php:147
 msgid "Thema Sidebar Display"
 msgstr "テーマ表示時にサイドバー表示する。"
 
-#: xpressme_class.php:122
+#: xpressme_class.php:152
 msgid "The change tracking of the post is preserved"
 msgstr "投稿の変更履歴を有効にする。"
 
-#: xpressme_class.php:131
+#: xpressme_class.php:157
+msgid "Select Display name of PostNavi Link"
+msgstr "投稿記事リンクナビのタイトル設定"
+
+#: xpressme_class.php:158
+msgid "Title of post"
+msgstr "投稿記事のタイトルを表示"
+
+#: xpressme_class.php:159
+msgid "Next and Previous"
+msgstr "[次の投稿へ]、[前の投稿]へを表示"
+
+#: xpressme_class.php:162
+msgid "Adjustment of Navi link display position"
+msgstr "投稿記事ナビリンクの表示位置設定"
+
+#: xpressme_class.php:163
+msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right"
+msgstr "古い記事へのリンクを左に、より新しい記事へのリンクを右に表示"
+
+#: xpressme_class.php:164
+msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right"
+msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示"
+
+#: xpressme_class.php:167
+msgid "Display Title of Old Post Link"
+msgstr "古い記事へのリンクタイトルを設定"
+
+#: xpressme_class.php:170
+msgid "Display Title of Newer Post Link"
+msgstr "より新しい記事へのリンクタイトルを設定"
+
+#: xpressme_class.php:178
 msgid "Update Config"
 msgstr "更新"
 
-#: xpressme_class.php:132
+#: xpressme_class.php:179
 msgid "Preset Config"
 msgstr "プリセット"
Index: trunk/wp-content/plugins/xpressme/xpressme.php
===================================================================
--- trunk/wp-content/plugins/xpressme/xpressme.php	(revision 28)
+++ trunk/wp-content/plugins/xpressme/xpressme.php	(revision 32)
@@ -17,4 +17,5 @@
 	remove_action( 'pre_post_update', 'wp_save_post_revision' );			// Not Save Post Revision
 }
-
+//require_once('../include/custom_functions.php');
+require_once dirname( __FILE__ ).'/include/custom_functions.php' ;
 ?>
Index: trunk/wp-content/plugins/xpressme/xpressme_class.php
===================================================================
--- trunk/wp-content/plugins/xpressme/xpressme_class.php	(revision 28)
+++ trunk/wp-content/plugins/xpressme/xpressme_class.php	(revision 32)
@@ -8,4 +8,9 @@
 	var $is_theme_sidebar_disp;
 	var $is_save_post_revision;
+	var $is_postnavi_title_disp;
+	var $is_left_postnavi_old;
+	var $old_post_link_text;
+	var $newer_post_link_text;
+
 	//constructor
 	function XPressME_Class()
@@ -33,4 +38,8 @@
 		$this->is_theme_sidebar_disp = true;
 		$this->is_save_post_revision = true;
+		$this->is_postnavi_title_disp = true;
+		$this->is_left_postnavi_old = true;
+		$this->old_post_link_text = __('to Old Post');
+		$this->newer_post_link_text = __('to Newer Post');
 	}
 	
@@ -53,5 +62,10 @@
 		$write_options = array (
 			'is_use_xoops_upload_path' => $this->is_use_xoops_upload_path ,
-			'is_theme_sidebar_disp' => $this->is_theme_sidebar_disp 
+			'is_theme_sidebar_disp' => $this->is_theme_sidebar_disp ,
+			'is_save_post_revision' => $this->is_save_post_revision ,
+			'is_postnavi_title_disp' => $this->is_postnavi_title_disp ,
+			'is_left_postnavi_old' => $this->is_left_postnavi_old ,
+			'old_post_link_text' => $this->old_post_link_text ,
+			'newer_post_link_text' => $this->newer_post_link_text 
 		);
 		if ($mode == 'add_new') {
@@ -67,28 +81,50 @@
 		$this->is_theme_sidebar_disp = stripslashes(trim($_POST['ch_is_theme_sidebar_disp']));
 		$this->is_save_post_revision = stripslashes(trim($_POST['ch_is_save_post_revision']));
+		$this->is_postnavi_title_disp = stripslashes(trim($_POST['ch_is_postnavi_title_disp']));
+		$this->is_left_postnavi_old = stripslashes(trim($_POST['ch_is_left_postnavi_old']));
+		$this->old_post_link_text = stripslashes($_POST['ch_old_post_link_text']);
+		if(empty($this->old_post_link_text)) $this->old_post_link_text = __('to Old Post');
+		$this->newer_post_link_text = stripslashes($_POST['ch_newer_post_link_text']);
+		if(empty($this->newer_post_link_text)) $this->newer_post_link_text = __('to Newer Post');
+		
 	}
 	
 	function yes_no_radio_option($option_name,$option_desc,$yes = '',$no= ''){
-	if (empty( $yes ))  $yes = __('YES','xpressme') ;
-	if (empty( $no ))  $no = __('NO','xpressme') ;
-	$value = $this->{$option_name};
-	$ans_name = 'ch_' . $option_name;
-	
-	$form  =  "<tr>\n";
-	$form .=  '<th><label for="images_to_link">' . $option_desc . "</label></th>\n";
-	$form .=  "<td>\n";
-	if ($value){
-		$form .= "<label><input type='radio' name='". $ans_name . "' value='1' checked='checked' />" . $yes ."</label><br />\n";
-		$form .= "<label><input type='radio' name='". $ans_name . "' value='0' />". $no . "</label>\n";
-	}else{
-		$form .= "<label><input type='radio' name='". $ans_name . "' value='1' />" . $yes . "</label><br />\n";
-		$form .= "<label><input type='radio' name='". $ans_name . "' value='0' checked='checked' />". $no ."</label>\n";
-	}
-	$form .=  "</td>\n";
-	$form .=  "</tr><tr>\n";
-		
-    return $form;
-	
-}
+		if (empty( $yes ))  $yes = __('YES','xpressme') ;
+		if (empty( $no ))  $no = __('NO','xpressme') ;
+		$value = $this->{$option_name};
+		$ans_name = 'ch_' . $option_name;
+		
+		$form  =  "<tr>\n";
+		$form .=  '<th><label for="images_to_link">' . $option_desc . "</label></th>\n";
+		$form .=  "<td>\n";
+		if ($value){
+			$form .= "<label><input type='radio' name='". $ans_name . "' value='1' checked='checked' />" . $yes ."</label><br />\n";
+			$form .= "<label><input type='radio' name='". $ans_name . "' value='0' />". $no . "</label>\n";
+		}else{
+			$form .= "<label><input type='radio' name='". $ans_name . "' value='1' />" . $yes . "</label><br />\n";
+			$form .= "<label><input type='radio' name='". $ans_name . "' value='0' checked='checked' />". $no ."</label>\n";
+		}
+		$form .=  "</td>\n";
+		$form .=  "</tr><tr>\n";
+			
+	    return $form;
+	
+	}
+
+	function text_option($option_name,$option_desc){
+		$value = $this->{$option_name};
+		$ans_name = 'ch_' . $option_name;
+		
+		$form  =  "<tr>\n";
+		$form .=  '<th><label for="images_to_link">' . $option_desc . "</label></th>\n";
+		$form .=  "<td>\n";
+		$form .= '<label> <input name="'. $ans_name . '" type="text" size="25" maxlength="50" value="'  . $value . '" /></label>'."\n";
+		$form .=  "</td>\n";
+		$form .=  "</tr><tr>\n";
+			
+	    return $form;
+	
+	}
 		
 	function option_page()
@@ -123,4 +159,21 @@
 												__('NO','xpressme')
 												);
+		echo				$this->yes_no_radio_option('is_postnavi_title_disp',
+												__('Select Display name of PostNavi Link','xpressme'),
+												__('Title of post','xpressme'),
+												__('Next and Previous','xpressme')
+												);
+		echo				$this->yes_no_radio_option('is_left_postnavi_old',
+												__('Adjustment of Navi link display position','xpressme'),
+												__("'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right",'xpressme'),
+												__("'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right",'xpressme')
+												);
+		echo				$this->text_option('old_post_link_text',
+												__('Display Title of Old Post Link','xpressme')
+												);
+		echo				$this->text_option('newer_post_link_text',
+												__('Display Title of Newer Post Link','xpressme')
+												);
+		
 			
 //		$this->is_use_xoops_upload_path_html();
