Changeset 145 for trunk/wp-content/plugins/xpressme
- Timestamp:
- Mar 31, 2009, 7:00:25 PM (16 years ago)
- Location:
- trunk/wp-content/plugins/xpressme
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/plugins/xpressme/include/custom_functions.php
r144 r145 31 31 function xpress_is_theme_sidebar_disp(){ 32 32 global $xpress_config; 33 if (is_wordpress_style()) return true; 33 34 return $xpress_config->is_theme_sidebar_disp; 34 35 } … … 276 277 } 277 278 278 function xpress_the_content($more_link_text = '',$excerpt_size = 0,$show = true) 279 { 280 $content = get_the_content(); 281 if($excerpt_size > 0) { 282 283 $content = apply_filters('the_excerpt_rss', $content); 284 $content = strip_tags($content); 285 286 if (mb_strlen($content) > $excerpt_size){ 287 $content = mb_substr($content, 0, $excerpt_size); 288 $content .= '... '; 289 if (!empty($more_link_text)) $content .= '<p align="center"><a href="'. get_permalink() . "\">".$more_link_text .'</a></p>'; 279 function get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$more_link_text = '') { 280 global $post,$xpress_config; 281 282 $blog_encoding = get_option('blog_charset'); 283 $text = get_the_content(''); 284 $text = strip_shortcodes( $text ); 285 $text = apply_filters('the_content', $text); 286 $text = str_replace(']]>', ']]>', $text); 287 $text = strip_tags($text); 288 $is_almost_ascii = ($xpress_config->ascii_judged_rate < round(@(mb_strlen($text, $blog_encoding) / strlen($text)) * 100)) ? true : false; 289 if($is_almost_ascii) { 290 $words = explode(' ', $text, $excerpt_length_word + 1); 291 292 if(count($words) > $excerpt_length_word) { 293 array_pop($words); 294 array_push($words, ' ... '); 295 $text = implode(' ', $words); 296 if (!empty($more_link_text)) $text .= '<p align="center"><a href="'. get_permalink() . "\">".$more_link_text .'</a></p>'; 297 290 298 } 291 299 } 300 elseif(mb_strlen($text, $blog_encoding) > $excerpt_length_character) { 301 $text = mb_substr($text, 0, $xpress_config->excerpt_length_character, $blog_encoding) . ' ... '; 302 if (!empty($more_link_text)) $text .= '<p align="center"><a href="'. get_permalink() . "\">".$more_link_text .'</a></p>'; 303 } 304 305 return $text; 306 } 307 308 function xpress_the_content($more_link_text = null, $stripteaser = 0, $more_file = '',$show = true) 309 { 310 global $post,$xpress_config; 311 312 313 if ($xpress_config->is_content_excerpt){ 314 $excerpt_length_word = $xpress_config->excerpt_length_word; 315 $excerpt_length_character = $xpress_config->excerpt_length_character; 316 $more_link_text = $xpress_config->more_link_text; 317 $content = get_xpress_excerpt_contents($excerpt_length_word,$excerpt_length_character,$more_link_text); 318 } else { 319 $content = get_the_content($more_link_text,$stripteaser,$more_file); 320 $content = apply_filters('the_content', $content); 321 $content = str_replace(']]>', ']]>', $content); 322 } 292 323 if(empty($show)) return $content; 293 324 echo $content; -
trunk/wp-content/plugins/xpressme/include/xpress_common_functions.php
r141 r145 154 154 } 155 155 } 156 function is_wordpress_style() 157 { 158 global $xpress_config; 159 160 if ($xpress_config->viewer_type == 'wordpress') return true; 161 if ($xpress_config->viewer_type == 'xoops') return false; 162 163 // user select 164 $get_style = isset($_GET["style"]) ? $_GET["style"] : ''; 165 $cookie_style = isset($_COOKIE["xpress_style"]) ? $_COOKIE["xpress_style"] : ''; 166 167 // set style 168 if (!empty($get_style)){ 169 $style = $get_style; 170 } else { 171 if (!empty($cookie_style)){ 172 $style = $cookie_style; 173 } else { 174 $style = 'x'; 175 } 176 } 177 178 // set cookie 179 if (empty($cookie_style)){ 180 setcookie("xpress_style", $style); 181 $_COOKIE["xpress_style"] = $style; 182 } else { 183 if ($style != $cookie_style) { 184 setcookie("xpress_style", $style); 185 $_COOKIE["xpress_style"] = $style; 186 } 187 } 188 if ($style == 'w') { 189 return true; 190 } else { 191 return false; 192 } 193 } 194 195 function wp_meta_add_xpress_menu() 196 { 197 global $xpress_config; 198 if ($xpress_config->viewer_type == 'user_select'){ 199 echo disp_mode_set(); 200 } 201 if (function_exists('wp_theme_switcher') ) { 202 echo '<li>' . __('Themes') . ':'; 203 wp_theme_switcher('dropdown'); 204 echo '</li>'; 205 } 206 } 207 208 function disp_mode_set(){ 209 global $xpress_config; 210 211 $select =""; 212 if ($xpress_config->viewer_type == 'user_select'){ 213 $style = isset($_GET["style"]) ? $_GET["style"] : (isset($_COOKIE["xpress_style"]) ? $_COOKIE["xpress_style"] : ""); 214 215 switch($style) { 216 case 'w': 217 $select ='<li><a href="'.get_settings('siteurl').'/?style=x" title="'. __('Switch to XOOPS mode','xpressme').'">'.__('Switch to XOOPS mode','xpressme').'</a></li>'; 218 // $select.='<img src="'. get_settings('siteurl').'/images/external.png" alt="'.__('Switch to XOOPS mode','xpressme') . '"></a></li>'; 219 break; 220 case 'x': 221 $select='<li><a href="'.get_settings('siteurl').'/?style=w" title="'.__('Switch to WordPress mode','xpressme').'">'.__('Switch to WordPress mode','xpressme').'</a></li>'; 222 break; 223 default: 224 $select='<li><a href="'.get_settings('siteurl').'/?style=w" title="'.__('Switch to WordPress mode','xpressme').'">'.__('Switch to WordPress mode','xpressme').'</a></li>'; 225 break; 226 } 227 } 228 return $select; 229 } 230 231 156 232 ?> -
trunk/wp-content/plugins/xpressme/language/xpressme-ja.po
r143 r145 3 3 "Project-Id-Version: XPressME Plugin\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2009-03-3 0 17:58+0900\n"5 "PO-Revision-Date: 2009-03-31 17:36+0900\n" 6 6 "Last-Translator: toemon <toychee@toemon.com>\n" 7 7 "Language-Team: \n" … … 15 15 "X-Poedit-SearchPath-0: .\n" 16 16 17 #: xpressme_class.php: 3617 #: xpressme_class.php:42 18 18 msgid "XPressME Settings" 19 19 msgstr "XPressME設定" 20 20 21 #: xpressme_class.php:5 322 #: xpressme_class.php:1 6721 #: xpressme_class.php:59 22 #: xpressme_class.php:186 23 23 msgid "Older Post" 24 24 msgstr "前の投稿へ" 25 25 26 #: xpressme_class.php:54 27 #: xpressme_class.php:169 28 #, fuzzy 26 #: xpressme_class.php:60 27 #: xpressme_class.php:188 29 28 msgid "Newer Post" 30 29 msgstr "次の投稿へ" 31 30 32 #: xpressme_class.php: 5633 #: xpressme_class.php:1 7231 #: xpressme_class.php:62 32 #: xpressme_class.php:191 34 33 msgid "Older Entries" 35 34 msgstr "前ページへ" 36 35 37 #: xpressme_class.php: 5738 #: xpressme_class.php:1 7436 #: xpressme_class.php:63 37 #: xpressme_class.php:193 39 38 msgid "Newer Entries" 40 39 msgstr "次ページへ" 41 40 42 #: xpressme_class.php:218 43 #: xpressme_class.php:234 44 #: xpressme_class.php:530 45 #: xpressme_class.php:535 46 #: xpressme_class.php:545 47 #: xpressme_class.php:550 41 #: xpressme_class.php:77 42 msgid "more" 43 msgstr "続きを読む" 44 45 #: xpressme_class.php:244 46 #: xpressme_class.php:260 47 #: xpressme_class.php:628 48 #: xpressme_class.php:633 49 #: xpressme_class.php:643 50 #: xpressme_class.php:648 48 51 msgid "YES" 49 52 msgstr "はい" 50 53 51 #: xpressme_class.php:2 1952 #: xpressme_class.php:2 3553 #: xpressme_class.php: 53154 #: xpressme_class.php: 53655 #: xpressme_class.php: 54656 #: xpressme_class.php: 55154 #: xpressme_class.php:245 55 #: xpressme_class.php:261 56 #: xpressme_class.php:629 57 #: xpressme_class.php:634 58 #: xpressme_class.php:644 59 #: xpressme_class.php:649 57 60 msgid "NO" 58 61 msgstr "いいえ" 59 62 60 #: xpressme_class.php: 27763 #: xpressme_class.php:303 61 64 msgid "Single Post Navi Setting" 62 65 msgstr "シングルポストナビの設定" 63 66 64 #: xpressme_class.php: 28265 #: xpressme_class.php:3 2767 #: xpressme_class.php:308 68 #: xpressme_class.php:353 66 69 msgid "Adjustment of Navi link display position" 67 70 msgstr "リンクの表示位置設定" 68 71 69 #: xpressme_class.php: 28572 #: xpressme_class.php:311 70 73 msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 71 74 msgstr "以前の記事へのリンクを左に、より新しい記事へのリンクを右に表示" 72 75 73 #: xpressme_class.php: 28676 #: xpressme_class.php:312 74 77 msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 75 78 msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 76 79 77 #: xpressme_class.php: 29280 #: xpressme_class.php:318 78 81 msgid "Select Display name of PostNavi Link" 79 82 msgstr "表示するリンクテキストを選択" 80 83 81 #: xpressme_class.php: 29584 #: xpressme_class.php:321 82 85 msgid "Title of post" 83 86 msgstr "投稿記事のタイトルを表示" 84 87 85 #: xpressme_class.php: 29688 #: xpressme_class.php:322 86 89 msgid "Title of Navi" 87 90 msgstr "ナビタイトルを表示" 88 91 89 #: xpressme_class.php:3 0292 #: xpressme_class.php:328 90 93 msgid "Display Navi Title of Old Post Link" 91 94 msgstr "古い記事へのナビタイトルを設定" 92 95 93 #: xpressme_class.php:3 0996 #: xpressme_class.php:335 94 97 msgid "Display Navi Title of Newer Post Link" 95 98 msgstr "より新しい記事へのナビタイトルを設定" 96 99 97 #: xpressme_class.php:3 22100 #: xpressme_class.php:348 98 101 msgid "Posts List Page Navi Setting" 99 102 msgstr "ポストリストページナビの設定" 100 103 101 #: xpressme_class.php:3 30104 #: xpressme_class.php:356 102 105 msgid "'Old Page Link' is displayed in the left, and 'Newer Page Link' is displayed in the right" 103 106 msgstr "古いページへのリンクを左に、より新しいページへのリンクを右に表示" 104 107 105 #: xpressme_class.php:3 31108 #: xpressme_class.php:357 106 109 msgid "'Newer Page Link' is displayed in the left, and 'Old Page Link' is displayed in the right" 107 110 msgstr "より新しいページへのリンクを左に、古いページへのリンクを右に表示" 108 111 109 #: xpressme_class.php:3 37112 #: xpressme_class.php:363 110 113 msgid "Display Navi Title of Old Page Link" 111 114 msgstr "古いページへのナビタイトルを設定" 112 115 113 #: xpressme_class.php:3 44116 #: xpressme_class.php:370 114 117 msgid "Display Navi Title of Newer Page Link" 115 118 msgstr "より新しいページへのナビタイトルを設定" 116 119 117 #: xpressme_class.php:3 59120 #: xpressme_class.php:385 118 121 msgid "Role Setting at Login" 119 122 msgstr "ログイン時の権限設定" 120 123 121 #: xpressme_class.php:3 62124 #: xpressme_class.php:388 122 125 msgid "XOOPS Groupe" 123 126 msgstr "XOOPSグループ名" 124 127 125 #: xpressme_class.php:3 62128 #: xpressme_class.php:388 126 129 msgid "WordPress Role" 127 130 msgstr "WordPressでの権限" 128 131 129 #: xpressme_class.php:3 62132 #: xpressme_class.php:388 130 133 msgid "Role is set at each login" 131 134 msgstr "ログイン時、常に権限を更新する" 132 135 133 #: xpressme_class.php: 388134 #: xpressme_class.php: 392135 #: xpressme_class.php: 395136 #: xpressme_class.php:414 137 #: xpressme_class.php:418 138 #: xpressme_class.php:421 136 139 msgid "Default Role of WordPress" 137 140 msgstr "WordPressのデフォルト権限" 138 141 139 #: xpressme_class.php: 389140 #: xpressme_class.php: 393141 #: xpressme_class.php: 396142 #: xpressme_class.php:415 143 #: xpressme_class.php:419 144 #: xpressme_class.php:422 142 145 msgid "Group User Doesn't Register" 143 146 msgstr "ユーザ登録しない" 144 147 145 #: xpressme_class.php:4 25148 #: xpressme_class.php:451 146 149 msgid "Do Not Comment Integration." 147 150 msgstr "コメント統合しません。" 148 151 149 #: xpressme_class.php:4 59152 #: xpressme_class.php:485 150 153 msgid "Comment integration with D3Forum" 151 154 msgstr "D3Forumとのコメント統合" 152 155 153 #: xpressme_class.php:4 61156 #: xpressme_class.php:487 154 157 msgid "Select the forum of D3Forum that does the comment integration from the following lists." 155 158 msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 156 159 157 #: xpressme_class.php:4 65160 #: xpressme_class.php:491 158 161 msgid "Select the Type of display of D3Forum comment." 159 162 msgstr "D3Forumの表示タイプを選択" 160 163 161 #: xpressme_class.php:4 67162 #: xpressme_class.php:4 70164 #: xpressme_class.php:493 165 #: xpressme_class.php:496 163 166 msgid "Flat" 164 167 msgstr "フラット" 165 168 166 #: xpressme_class.php:4 68167 #: xpressme_class.php:4 71169 #: xpressme_class.php:494 170 #: xpressme_class.php:497 168 171 msgid "Threaded" 169 172 msgstr "スレッド" 170 173 171 #: xpressme_class.php: 474174 #: xpressme_class.php:500 172 175 msgid "Select the order of display of D3Forum comment." 173 176 msgstr "D3Forumコメントの表示順を選択" 174 177 175 #: xpressme_class.php: 476176 #: xpressme_class.php: 479178 #: xpressme_class.php:502 179 #: xpressme_class.php:505 177 180 msgid "DESC" 178 181 msgstr "降順" 179 182 180 #: xpressme_class.php: 477181 #: xpressme_class.php: 480183 #: xpressme_class.php:503 184 #: xpressme_class.php:506 182 185 msgid "ASC" 183 186 msgstr "昇順" 184 187 185 #: xpressme_class.php: 483188 #: xpressme_class.php:509 186 189 msgid "Number of displays of D3Forum comments." 187 190 msgstr "D3Forumのコメント表示数" 188 191 189 #: xpressme_class.php: 487192 #: xpressme_class.php:513 190 193 msgid "The import and the export between Wordpress Comments and the D3Forum Posts can be done. " 191 194 msgstr "WordPressコメントとD3Forumポスト間の一括転送(エクスポート・インポート)" 192 195 193 #: xpressme_class.php: 488196 #: xpressme_class.php:514 194 197 msgid "Export to D3Forum" 195 198 msgstr "D3Forumへ一括エクスポート" 196 199 197 #: xpressme_class.php: 489200 #: xpressme_class.php:515 198 201 msgid "Import from D3Forum" 199 202 msgstr "D3Forumから一括インポート" 200 203 201 #: xpressme_class.php:520 204 #: xpressme_class.php:527 205 msgid "Contents Excerpt Setting" 206 msgstr "記事抜粋の設定" 207 208 #: xpressme_class.php:532 209 msgid "Is the excerpt display done with the archive of contents?" 210 msgstr "記事のアーカイブで抜粋表示を行いますか?" 211 212 #: xpressme_class.php:539 213 msgid "When ASCII character more than the set ratio is included, it is judged ASCII contents. " 214 msgstr "ASCII文字が含まれる比率が設定された値より大きい場合、ASCII文字コンテンツと判断します。" 215 216 #: xpressme_class.php:546 217 msgid "Excerpt length of word for ASCII contents" 218 msgstr "ASCIIコンテンツの抜粋単語数" 219 220 #: xpressme_class.php:553 221 msgid "Excerpt length of character for multibyte contents" 222 msgstr "マルチバイトコンテンツの抜粋文字数" 223 224 #: xpressme_class.php:560 225 msgid "More Link Text (Is not displayed for the blank.)" 226 msgstr "Moreリンクテキスト(ブランクの場合リンクを表示しません。)" 227 228 #: xpressme_class.php:572 229 msgid "Display Mode Setting" 230 msgstr "表示モード設定" 231 232 #: xpressme_class.php:575 233 msgid "Select the XPressME Display Mode." 234 msgstr "XPressMEの表示モードの選択" 235 236 #: xpressme_class.php:580 237 msgid "Xoops Mode" 238 msgstr "XOOPSモード" 239 240 #: xpressme_class.php:584 241 msgid "WordPress Mode" 242 msgstr "WordPressモード" 243 244 #: xpressme_class.php:588 245 msgid "User select" 246 msgstr "ユーザによる選択" 247 248 #: xpressme_class.php:617 202 249 msgid "XPressME Configuration Page" 203 250 msgstr "XPressMEの設定ページ" 204 251 205 #: xpressme_class.php: 524252 #: xpressme_class.php:622 206 253 msgid "Media Upload Base Path" 207 254 msgstr "メディアアップロードのベースパス設定" 208 255 209 #: xpressme_class.php: 525256 #: xpressme_class.php:623 210 257 msgid "Use XOOPS UPLOAD PATH" 211 258 msgstr "XOOPSのアップロードパスを使用する。" 212 259 213 #: xpressme_class.php: 526260 #: xpressme_class.php:624 214 261 msgid "USE WordPress BASE_PATH" 215 262 msgstr "WordPressのベースパスを使用する。" 216 263 217 #: xpressme_class.php: 529264 #: xpressme_class.php:627 218 265 msgid "Thema Sidebar Display" 219 266 msgstr "テーマ表示時にサイドバー表示する。" 220 267 221 #: xpressme_class.php: 534268 #: xpressme_class.php:632 222 269 msgid "The change tracking of the post is preserved" 223 270 msgstr "投稿の変更履歴を有効にする。" 224 271 225 #: xpressme_class.php: 544272 #: xpressme_class.php:642 226 273 msgid "Is the posts author views counted?" 227 274 msgstr "投稿者の閲覧をカウントしますか?" 228 275 229 #: xpressme_class.php: 549276 #: xpressme_class.php:647 230 277 msgid "Is SQL debugging window displayed?" 231 278 msgstr "SQLデバッグウィンドを表示しますか?" 232 279 233 #: xpressme_class.php: 561280 #: xpressme_class.php:659 234 281 msgid "Update Config" 235 282 msgstr "更新" 236 283 237 #: xpressme_class.php: 562284 #: xpressme_class.php:660 238 285 msgid "Preset Config" 239 286 msgstr "プリセット" 240 287 241 #: include/custom_functions.php:23 1288 #: include/custom_functions.php:232 242 289 #, php-format 243 290 msgid "views :%d" 244 291 msgstr "閲覧数 :%d" 245 292 246 #: include/custom_functions.php:3 17293 #: include/custom_functions.php:348 247 294 msgid "Main" 248 295 msgstr "メイン" 249 296 250 #: include/custom_functions.php:3 19297 #: include/custom_functions.php:350 251 298 #, php-format 252 299 msgid "Archive for the ‘%s’ Category" 253 300 msgstr "カテゴリー ‘%s’ のアーカイブ" 254 301 255 #: include/custom_functions.php:3 21302 #: include/custom_functions.php:352 256 303 #, php-format 257 304 msgid "Posts Tagged ‘%s’" 258 305 msgstr "‘%s’ タグのついている投稿" 259 306 260 #: include/custom_functions.php:3 23307 #: include/custom_functions.php:354 261 308 #, php-format 262 309 msgid "Archive for %s|Daily archive page" 263 310 msgstr "%sの日別アーカイブ" 264 311 265 #: include/custom_functions.php:3 23312 #: include/custom_functions.php:354 266 313 msgid "F jS, Y" 267 314 msgstr "Y年n月j日" 268 315 269 #: include/custom_functions.php:3 25316 #: include/custom_functions.php:356 270 317 #, php-format 271 318 msgid "Archive for %s|Monthly archive page" 272 319 msgstr "%sの月別アーカイブ" 273 320 274 #: include/custom_functions.php:3 25321 #: include/custom_functions.php:356 275 322 msgid "F, Y" 276 323 msgstr "Y年n月" 277 324 278 #: include/custom_functions.php:3 27325 #: include/custom_functions.php:358 279 326 #, php-format 280 327 msgid "Archive for %s|Yearly archive page" 281 328 msgstr "%sの年別アーカイブ " 282 329 283 #: include/custom_functions.php:3 27330 #: include/custom_functions.php:358 284 331 msgid "Y" 285 332 msgstr "Y年" 286 333 287 #: include/custom_functions.php:3 29334 #: include/custom_functions.php:360 288 335 #, php-format 289 336 msgid "Archive for the ‘%s’ Author" 290 337 msgstr "投稿者 ‘%s’ のアーカイブ" 291 338 292 #: include/custom_functions.php:3 31339 #: include/custom_functions.php:362 293 340 #, php-format 294 341 msgid "Search Results of word ‘%s’" -
trunk/wp-content/plugins/xpressme/xpressme.php
r144 r145 27 27 remove_action( 'pre_post_update', 'wp_save_post_revision' ); // Not Save Post Revision 28 28 } 29 add_action("wp_meta" , "wp_meta_add_xpress_menu"); // add xpress menu in wp_meta 29 30 30 31 //XOOPS Bloack Cache Refresh -
trunk/wp-content/plugins/xpressme/xpressme_class.php
r143 r145 22 22 var $d3forum_forum_id; 23 23 var $d3forum_external_link_format; 24 var $is_content_excerpt; 25 var $ascii_judged_rate; 26 var $excerpt_length_word; 27 var $excerpt_length_character; 28 var $more_link_text; 29 var $viewer_type; 24 30 //constructor 25 31 function XPressME_Class() … … 47 53 { 48 54 $this->is_use_xoops_upload_path = true; 49 $this->is_theme_sidebar_disp = true;55 $this->is_theme_sidebar_disp = false; 50 56 $this->is_save_post_revision = true; 51 57 $this->is_postnavi_title_disp = true; … … 65 71 $this->is_d3forum_desc = true; 66 72 $this->d3forum_views_num = 10; 73 $this->is_content_excerpt = true; 74 $this->ascii_judged_rate = 90; 75 $this->excerpt_length_word = 40; 76 $this->excerpt_length_character = 120; 77 $this->more_link_text = __('more', 'xpressme'); 78 $this->viewer_type = 'xoops'; 79 67 80 } 68 81 … … 105 118 'is_d3forum_flat' => $this->is_d3forum_flat, 106 119 'is_d3forum_desc' => $this->is_d3forum_desc, 107 'd3forum_views_num' =>$this->d3forum_views_num 120 'd3forum_views_num' =>$this->d3forum_views_num, 121 'is_content_excerpt' => $this->is_content_excerpt, 122 'ascii_judged_rate' => $this->ascii_judged_rate, 123 'excerpt_length_word' => $this->excerpt_length_word, 124 'excerpt_length_character' => $this->excerpt_length_character, 125 'more_link_text' => $this->more_link_text, 126 'viewer_type' => $this->viewer_type 108 127 ); 109 128 if ($mode == 'add_new') { … … 193 212 $this->d3forum_views_num = stripslashes(trim($_POST['ch_d3forum_view_num'])); 194 213 214 $this->is_content_excerpt = stripslashes(trim($_POST['ch_is_content_excerpt'])); 215 $this->ascii_judged_rate = stripslashes(trim($_POST['ch_ascii_judged_rate'])); 216 $this->excerpt_length_word = stripslashes(trim($_POST['ch_excerpt_length_word'])); 217 $this->excerpt_length_character = stripslashes(trim($_POST['ch_excerpt_length_character'])); 218 $this->more_link_text = stripslashes(trim($_POST['ch_more_link_text'])); 219 $this->viewer_type = stripslashes(trim($_POST['ch_viewer_type'])); 220 195 221 global $xoops_db; 196 222 $table = get_wp_prefix() . 'group_role'; … … 226 252 $form .= $this->yes_no_radio_option_sub($option_name,$yes,$no); 227 253 $form .= "</td>\n"; 228 $form .= "</tr> <tr>\n";254 $form .= "</tr>\n"; 229 255 230 256 return $form; … … 257 283 $form .= $this->text_option_sub($option_name); 258 284 $form .= "</td>\n"; 259 $form .= "</tr> <tr>\n";285 $form .= "</tr>\n"; 260 286 261 287 return $form; … … 496 522 return $form; 497 523 } 524 525 function excerpt_option(){ 526 $form = ''; 527 $form .= '<tr><th><label for="excerpt">' .__('Contents Excerpt Setting', 'xpressme') . '</label></th>'; 528 $form .= "<td>\n"; 529 $form .= "<table>\n"; 530 $form .= "<tr>\n"; 531 532 $form .= "<td>" . __('Is the excerpt display done with the archive of contents?','xpressme') . "</td>\n"; 533 $form .= "<td>\n"; 534 $form .= $this->yes_no_radio_option_sub('is_content_excerpt'); 535 $form .= "</td>\n"; 536 $form .= "</tr>\n"; 537 538 $form .= "<tr>\n"; 539 $form .= "<td>" . __('When ASCII character more than the set ratio is included, it is judged ASCII contents. ','xpressme') . "</td>\n"; 540 $form .= "<td>\n"; 541 $form .= $this->text_option_sub('ascii_judged_rate'); 542 $form .= "</td>\n"; 543 $form .= "</tr>\n"; 544 545 $form .= "<tr>\n"; 546 $form .= "<td>" . __('Excerpt length of word for ASCII contents','xpressme') . "</td>\n"; 547 $form .= "<td>\n"; 548 $form .= $this->text_option_sub('excerpt_length_word'); 549 $form .= "</td>\n"; 550 $form .= "</tr>\n"; 551 552 $form .= "<tr>\n"; 553 $form .= "<td>" . __('Excerpt length of character for multibyte contents','xpressme') . "</td>\n"; 554 $form .= "<td>\n"; 555 $form .= $this->text_option_sub('excerpt_length_character'); 556 $form .= "</td>\n"; 557 $form .= "</tr>\n"; 558 559 $form .= "<tr>\n"; 560 $form .= "<td>" . __('More Link Text (Is not displayed for the blank.)','xpressme') . "</td>\n"; 561 $form .= "<td>\n"; 562 $form .= $this->text_option_sub('more_link_text'); 563 $form .= "</td>\n"; 564 $form .= "</tr>\n"; 565 566 $form .= "</table></td></tr>\n"; 567 return $form; 568 } 569 570 function viewer_type_option(){ 571 $form = "<tr>\n"; 572 $form .= '<th><label for="viewer_type">' .__('Display Mode Setting', 'xpressme') . '</label></th>'; 573 $form .= "<td>\n"; 574 575 $form .= __('Select the XPressME Display Mode.', 'xpressme') ."\n"; 576 $form .= '<select name="ch_viewer_type">' . "\n"; 577 578 $form .= '<option value="xoops" '; 579 if ($this->viewer_type == 'xoops') $form .= ' selected="selected"'; 580 $form .= '>'.__('Xoops Mode', 'xpressme') ."</option>\n"; 581 582 $form .= '<option value="wordpress" '; 583 if ($this->viewer_type == 'wordpress') $form .= ' selected="selected"'; 584 $form .= '>'.__('WordPress Mode', 'xpressme') ."</option>\n"; 585 586 $form .= '<option value="user_select" '; 587 if ($this->viewer_type == 'user_select') $form .= ' selected="selected"'; 588 $form .= '>'.__('User select', 'xpressme') ."</option>\n"; 589 590 $form .= "</select><br />\n"; 591 592 $form .= "</td></tr>\n"; 593 return $form; 594 } 498 595 499 596 function option_page() … … 504 601 $this->SettingValueWrite('update'); 505 602 } else if (isset($_POST['submit_reset'])) { 506 $this-> fck_setDefault();603 $this->setDefault(); 507 604 $this->SettingValueWrite('update'); 508 605 } else if (isset($_POST['export_d3f'])) { … … 521 618 echo '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 522 619 echo '<table class="form-table">'."\n"; 620 echo $this->viewer_type_option(); 523 621 echo $this->yes_no_radio_option('is_use_xoops_upload_path', 524 622 __('Media Upload Base Path','xpressme'), … … 539 637 echo $this->single_post_navi_option(); 540 638 echo $this->posts_page_navi_option(); 541 639 echo $this->excerpt_option(); 542 640 543 641 echo $this->yes_no_radio_option('is_author_view_count',
Note: See TracChangeset
for help on using the changeset viewer.