Changeset 201 for trunk/wp-content/plugins/xpressme/xpressme_class.php
- Timestamp:
- May 4, 2009, 7:31:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/xpressme_class.php
r155 r201 29 29 var $viewer_type; 30 30 var $is_multi_user; 31 var $meta_keyword_type; 32 var $meta_description_type; 31 33 //constructor 32 34 function XPressME_Class() … … 79 81 $this->viewer_type = 'xoops'; 80 82 $this->is_multi_user = false; 81 83 $this->meta_keyword_type = 'xoops'; 84 $this->meta_description_type = 'xoops'; 82 85 } 83 86 … … 127 130 'more_link_text' => $this->more_link_text, 128 131 'viewer_type' => $this->viewer_type, 129 'is_multi_user' => $this->is_multi_user 132 'is_multi_user' => $this->is_multi_user, 133 'meta_keyword_type' => $this->meta_keyword_type, 134 'meta_description_type' => $this->meta_description_type 130 135 ); 131 136 if ($mode == 'add_new') { … … 239 244 $this->viewer_type = stripslashes(trim($_POST['ch_viewer_type'])); 240 245 $this->is_multi_user = stripslashes(trim($_POST['ch_is_multi_user'])); 246 $this->meta_keyword_type = stripslashes(trim($_POST['ch_meta_keyword_type'])); 247 $this->meta_description_type = stripslashes(trim($_POST['ch_meta_description_type'])); 248 241 249 global $xoops_db; 242 250 $table = get_wp_prefix() . 'group_role'; … … 613 621 return $form; 614 622 } 623 624 function header_meta_option(){ 625 $form = "<tr>\n"; 626 $form .= '<th><label for="header_type">' .__('Header Meta Option', 'xpressme') . '</label></th>'; 627 $form .= "<td>\n"; 628 $form .= "<table>\n"; 629 $form .= "<tr>\n"; 630 631 $form .= "<td>" . __('Select the Header keyword.', 'xpressme') . "</td>\n"; 632 $form .= "<td>\n"; 633 $form .= '<select name="ch_meta_keyword_type">' . "\n"; 634 $form .= '<option value="xoops" '; 635 if ($this->meta_keyword_type == 'xoops') $form .= ' selected="selected"'; 636 $form .= '>'.__('Xoops KeyWord', 'xpressme') ."</option>\n"; 637 $form .= '<option value="wordpress" '; 638 if ($this->meta_keyword_type == 'wordpress') $form .= ' selected="selected"'; 639 $form .= '>'.__('WordPress KeyWord', 'xpressme') ."</option>\n"; 640 $form .= '<option value="wordpress_xoops" '; 641 if ($this->meta_keyword_type == 'wordpress_xoops') $form .= ' selected="selected"'; 642 $form .= '>'.__('WordPress & Xoops KeyWord', 'xpressme') ."</option>\n"; 643 $form .= "</select><br />\n"; 644 $form .= "</td>\n"; 645 $form .= "</tr>\n"; 646 647 $form .= "<tr>\n"; 648 $form .= "<td>" . __('Select the Header Description.', 'xpressme') . "</td>\n"; 649 $form .= "<td>\n"; 650 $form .= '<select name="ch_meta_description_type">' . "\n"; 651 $form .= '<option value="xoops" '; 652 if ($this->meta_description_type == 'xoops') $form .= ' selected="selected"'; 653 $form .= '>'.__('Xoops Description', 'xpressme') ."</option>\n"; 654 $form .= '<option value="wordpress" '; 655 if ($this->meta_description_type == 'wordpress') $form .= ' selected="selected"'; 656 $form .= '>'.__('WordPress Description', 'xpressme') ."</option>\n"; 657 $form .= '<option value="wordpress_xoops" '; 658 if ($this->meta_description_type == 'wordpress_xoops') $form .= ' selected="selected"'; 659 $form .= '>'.__('WordPress & Xoops Description', 'xpressme') ."</option>\n"; 660 $form .= "</select><br />\n"; 661 $form .= "</td>\n"; 662 $form .= "</tr>\n"; 663 $form .= "</table>\n"; 664 665 $form .= "</tr>\n"; 666 return $form; 667 } 668 615 669 616 670 function option_page() … … 671 725 __('NO','xpressme') 672 726 ); 727 echo $this->header_meta_option(); 673 728 echo $this->yes_no_radio_option('is_sql_debug', 674 729 __('Is SQL debugging window displayed?','xpressme'),
Note: See TracChangeset
for help on using the changeset viewer.