Changeset 26
- Timestamp:
- Dec 15, 2008, 2:09:03 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/xpress_render.php
r1 r26 35 35 } 36 36 37 // get sidebar rendaring 38 function get_sidebar_rander($name = null) 39 { 40 $templates = array(); 41 if ( isset($name) ) 42 $templates[] = "sidebar-{$name}.php"; 43 44 $templates[] = "sidebar.php"; 45 46 $link= locate_template($templates, false); 47 if ('' == $link) 48 $link = get_theme_root() . '/default/sidebar.php'; 49 50 ob_start(); 51 require($link); 52 $sidebar = ob_get_contents(); 53 ob_end_clean(); 54 return $sidebar; 55 } 56 37 57 // < body > tag is pulled out from the header of html contents. 38 58 function get_body($contents) 39 59 { 60 $xpess_config = new XPressME_Class(); 40 61 $pattern = "<body[^>]*?>(.*)<\/body>"; 41 62 preg_match("/".$pattern."/s", $contents, $body_matches); 42 63 $body = $body_matches[1]; 64 65 if (!$xpess_config->is_theme_sidebar_disp){ 66 $side_panel = get_sidebar_rander(); 67 $body = str_replace($side_panel,'',$body); 68 } 43 69 return $body; 44 70 } -
trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
r19 r26 3 3 "Project-Id-Version: fckeditor for xpress\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2008-12- 08 16:40+0900\n"5 "PO-Revision-Date: 2008-12-14 13:55+0900\n" 6 6 "Last-Translator: toemon <toychee@toemon.com>\n" 7 7 "Language-Team: \n" … … 12 12 "X-Poedit-Country: JAPAN\n" 13 13 "X-Poedit-KeywordsList: _e;__\n" 14 "X-Poedit-Basepath: C:\\ Data\\toemon.com\\Xpress\\FCK\\fckeditor_for_xpress_lang\n"15 "X-Poedit-SearchPath-0: fckeditor_for_xpress\n"14 "X-Poedit-Basepath: C:\\XPressME2_SVN\\trunk\\wp-content\\plugins\\xpressme\n" 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: xpressme_class.php:19 17 18 msgid "XPressME Settings" 18 19 msgstr "XPressME設定" 19 20 21 #: xpressme_class.php:66 22 msgid "YES" 23 msgstr "はい" 24 25 #: xpressme_class.php:67 26 msgid "NO" 27 msgstr "いいえ" 28 29 #: xpressme_class.php:101 20 30 msgid "XPressME Configuration Page" 21 31 msgstr "XPressMEの設定ページ" 22 32 33 #: xpressme_class.php:105 23 34 msgid "Media Upload Base Path" 24 35 msgstr "メディアアップロードのベースパス設定" 25 36 37 #: xpressme_class.php:106 26 38 msgid "Use XOOPS UPLOAD PATH" 27 39 msgstr "XOOPSのアップロードパスを使用する。" 28 40 41 #: xpressme_class.php:107 29 42 msgid "USE WordPress BASE_PATH" 30 43 msgstr "WordPressのベースパスを使用する。" 31 44 45 #: xpressme_class.php:114 46 msgid "Update Config" 47 msgstr "更新" 48 49 #: xpressme_class.php:115 50 msgid "Preset Config" 51 msgstr "プリセット" 52 -
trunk/wp-content/plugins/xpressme/xpressme_class.php
r22 r26 6 6 var $pluginName = 'xpressme'; 7 7 var $is_use_xoops_upload_path; 8 var $is_theme_sidebar_disp; 8 9 9 10 //constructor … … 30 31 { 31 32 $this->is_use_xoops_upload_path = true; 33 $this->is_theme_sidebar_disp = true; 32 34 } 33 35 … … 49 51 { 50 52 $write_options = array ( 51 'is_use_xoops_upload_path' => $this->is_use_xoops_upload_path 53 'is_use_xoops_upload_path' => $this->is_use_xoops_upload_path , 54 'is_theme_sidebar_disp' => $this->is_theme_sidebar_disp 52 55 ); 53 56 if ($mode == 'add_new') { … … 61 64 { 62 65 $this->is_use_xoops_upload_path = stripslashes(trim($_POST['ch_is_use_xoops_upload_path'])); 66 $this->is_theme_sidebar_disp = stripslashes(trim($_POST['ch_is_theme_sidebar_disp'])); 63 67 } 64 68 … … 107 111 __('USE WordPress BASE_PATH','xpressme') 108 112 ); 113 echo $this->yes_no_radio_option('is_theme_sidebar_disp', 114 __('Thema Sidebar Display','xpressme'), 115 __('YES','xpressme'), 116 __('NO','xpressme') 117 ); 109 118 110 119 // $this->is_use_xoops_upload_path_html();
Note: See TracChangeset
for help on using the changeset viewer.