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();
