- Timestamp:
- Oct 7, 2009, 10:36:28 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php
r379 r392 35 35 var $is_dashboard_blog_disp; 36 36 var $is_dashboard_forum_disp; 37 var $theme_select; 37 38 //constructor 38 39 function XPressME_Class() … … 79 80 $this->is_dashboard_blog_disp = true; 80 81 $this->is_dashboard_forum_disp = true; 82 $this->theme_select = 'use_wordpress_select'; 81 83 } 82 84 … … 132 134 'meta_robot_type' => $this->meta_robot_type, 133 135 'is_dashboard_blog_disp' => $this->is_dashboard_blog_disp, 134 'is_dashboard_forum_disp' => $this->is_dashboard_forum_disp 136 'is_dashboard_forum_disp' => $this->is_dashboard_forum_disp, 137 'theme_select' => $this->theme_select 135 138 ); 136 139 if ($mode == 'add_new') { … … 241 244 $set_value = __('Read the rest of this entry »', 'xpressme'); 242 245 break; 246 case 'theme_select': 247 $set_value = 'use_wordpress_select'; 248 break; 243 249 244 250 default: … … 668 674 $form .= "</select><br />\n"; 669 675 676 // Theme Select 677 $form .= __('Select the theme used in the XOOPS Mode.', 'xpressme') ."\n"; 678 $form .= '<select name="ch_theme_select">' . "\n"; 679 680 $form .= '<option value="use_wordpress_select" '; 681 if ($this->theme_select == 'use_wordpress_select') $form .= ' selected="selected"'; 682 $form .= '>'.__('Use WordPress Selected Themes', 'xpressme') ."</option>\n"; 683 684 $themes = get_themes(); 685 $theme_names = array_keys($themes); 686 natcasesort($theme_names); 687 foreach ($theme_names as $theme_name) { 688 if ($theme_name == 'My Themes') continue; 689 $form .= '<option value="' . $theme_name .'" '; 690 if ($this->theme_select == $theme_name) $form .= ' selected="selected"'; 691 $form .= '>'.$theme_name ."</option>\n"; 692 } 693 $form .= "</select><br />\n"; 670 694 $form .= "</td></tr>\n"; 671 695 return $form;
Note: See TracChangeset
for help on using the changeset viewer.