XPressME Integration Kit

Trac


Ignore:
Timestamp:
Oct 7, 2009, 10:36:28 AM (15 years ago)
Author:
toemon
Message:

XOOPSモード、WordPressモードにて、それぞれ別のテーマを選択できるようにした。 fixes #218

Location:
trunk/xpressme_integration_kit/wp-content/plugins/xpressme
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/language/xpressme-ja.po

    r380 r392  
    88"Project-Id-Version: XPressME Plugin\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2009-09-09 14:10+0900\n" 
    11 "PO-Revision-Date: 2009-09-09 14:11+0900\n" 
     10"POT-Creation-Date: 2009-10-06 21:59+0900\n" 
     11"PO-Revision-Date: 2009-10-06 22:00+0900\n" 
    1212"Last-Translator: toemon <info@toemon.com>\n" 
    1313"Language-Team: toemon <info@toemon.com>\n" 
     
    5656#: xpressme.php:246 
    5757#: xpressme.php:252 
    58 #: xpressme_class.php:277 
    59 #: xpressme_class.php:293 
    60 #: xpressme_class.php:425 
    61 #: xpressme_class.php:436 
     58#: xpressme_class.php:283 
     59#: xpressme_class.php:299 
     60#: xpressme_class.php:431 
     61#: xpressme_class.php:442 
    6262msgid "YES" 
    6363msgstr "はい" 
     
    6868#: xpressme.php:247 
    6969#: xpressme.php:253 
    70 #: xpressme_class.php:278 
    71 #: xpressme_class.php:294 
    72 #: xpressme_class.php:426 
    73 #: xpressme_class.php:437 
     70#: xpressme_class.php:284 
     71#: xpressme_class.php:300 
     72#: xpressme_class.php:432 
     73#: xpressme_class.php:443 
    7474msgid "NO" 
    7575msgstr "いいえ" 
     
    165165msgstr "XPressME Integration Kit Version %1$s が利用可能です ! サイト管理者に連絡してください。" 
    166166 
    167 #: xpressme_class.php:54 
    168 #: xpressme_class.php:229 
     167#: xpressme_class.php:55 
     168#: xpressme_class.php:232 
    169169msgid "Older Post" 
    170170msgstr "前の投稿へ" 
    171171 
    172 #: xpressme_class.php:55 
    173 #: xpressme_class.php:232 
     172#: xpressme_class.php:56 
     173#: xpressme_class.php:235 
    174174msgid "Newer Post" 
    175175msgstr "次の投稿へ" 
    176176 
    177 #: xpressme_class.php:57 
    178 #: xpressme_class.php:235 
     177#: xpressme_class.php:58 
     178#: xpressme_class.php:238 
    179179msgid "Older Entries" 
    180180msgstr "前ページへ" 
    181181 
    182 #: xpressme_class.php:58 
    183 #: xpressme_class.php:238 
     182#: xpressme_class.php:59 
     183#: xpressme_class.php:241 
    184184msgid "Newer Entries" 
    185185msgstr "次ページへ" 
    186186 
    187 #: xpressme_class.php:72 
    188187#: xpressme_class.php:73 
    189 #: xpressme_class.php:241 
     188#: xpressme_class.php:74 
     189#: xpressme_class.php:244 
    190190msgid "Read the rest of this entry &raquo;" 
    191191msgstr "この投稿の続きを読む &raquo;" 
    192192 
    193 #: xpressme_class.php:336 
     193#: xpressme_class.php:342 
    194194msgid "Single Post Navi Setting" 
    195195msgstr "シングルポストナビの設定" 
    196196 
    197 #: xpressme_class.php:341 
    198 #: xpressme_class.php:386 
     197#: xpressme_class.php:347 
     198#: xpressme_class.php:392 
    199199msgid "Adjustment of Navi link display position" 
    200200msgstr "リンクの表示位置設定" 
    201201 
    202 #: xpressme_class.php:344 
     202#: xpressme_class.php:350 
    203203msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 
    204204msgstr "以前の記事へのリンクを左に、より新しい記事へのリンクを右に表示" 
    205205 
    206 #: xpressme_class.php:345 
     206#: xpressme_class.php:351 
    207207msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 
    208208msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 
    209209 
    210 #: xpressme_class.php:351 
     210#: xpressme_class.php:357 
    211211msgid "Select Display name of PostNavi Link" 
    212212msgstr "表示するリンクテキストを選択" 
    213213 
    214 #: xpressme_class.php:354 
     214#: xpressme_class.php:360 
    215215msgid "Title of post" 
    216216msgstr "投稿記事のタイトルを表示" 
    217217 
    218 #: xpressme_class.php:355 
     218#: xpressme_class.php:361 
    219219msgid "Title of Navi" 
    220220msgstr "ナビタイトルを表示" 
    221221 
    222 #: xpressme_class.php:361 
     222#: xpressme_class.php:367 
    223223msgid "Display Navi Title of Old Post Link" 
    224224msgstr "古い記事へのナビタイトルを設定" 
    225225 
    226 #: xpressme_class.php:368 
     226#: xpressme_class.php:374 
    227227msgid "Display Navi Title of Newer Post Link" 
    228228msgstr "より新しい記事へのナビタイトルを設定" 
    229229 
    230 #: xpressme_class.php:381 
     230#: xpressme_class.php:387 
    231231msgid "Posts List Page Navi Setting" 
    232232msgstr "ポストリストページナビの設定" 
    233233 
    234 #: xpressme_class.php:389 
     234#: xpressme_class.php:395 
    235235msgid "'Old Page Link' is displayed in the left, and 'Newer Page Link' is displayed in the right" 
    236236msgstr "古いページへのリンクを左に、より新しいページへのリンクを右に表示" 
    237237 
    238 #: xpressme_class.php:390 
     238#: xpressme_class.php:396 
    239239msgid "'Newer Page Link' is displayed in the left, and 'Old Page Link' is displayed in the right" 
    240240msgstr "より新しいページへのリンクを左に、古いページへのリンクを右に表示" 
    241241 
    242 #: xpressme_class.php:396 
     242#: xpressme_class.php:402 
    243243msgid "Display Navi Title of Old Page Link" 
    244244msgstr "古いページへのナビタイトルを設定" 
    245245 
    246 #: xpressme_class.php:403 
     246#: xpressme_class.php:409 
    247247msgid "Display Navi Title of Newer Page Link" 
    248248msgstr "より新しいページへのナビタイトルを設定" 
    249249 
    250 #: xpressme_class.php:416 
     250#: xpressme_class.php:422 
    251251msgid "Dashboard feed Display Setting" 
    252252msgstr "ダッシュボード フィード表示設定" 
    253253 
    254 #: xpressme_class.php:422 
     254#: xpressme_class.php:428 
    255255msgid "Display XPressMe Integration Kit Blog" 
    256256msgstr "XPressME Integration Kit ブログを表示する。" 
    257257 
    258 #: xpressme_class.php:433 
     258#: xpressme_class.php:439 
    259259msgid "Display XPressMe Integration Kit Forum" 
    260260msgstr "XPressME Integration Kit フォーラムを表示する。" 
    261261 
    262 #: xpressme_class.php:450 
     262#: xpressme_class.php:456 
    263263msgid "Role Setting at Login" 
    264264msgstr "ログイン時の権限設定" 
    265265 
    266 #: xpressme_class.php:453 
     266#: xpressme_class.php:459 
    267267msgid "XOOPS Groupe" 
    268268msgstr "XOOPSグループ名" 
    269269 
    270 #: xpressme_class.php:453 
     270#: xpressme_class.php:459 
    271271msgid "WordPress Role" 
    272272msgstr "WordPressでの権限" 
    273273 
    274 #: xpressme_class.php:453 
     274#: xpressme_class.php:459 
    275275msgid "Role is set at each login" 
    276276msgstr "ログイン時、常に権限を更新する" 
    277277 
    278 #: xpressme_class.php:479 
    279 #: xpressme_class.php:483 
    280 #: xpressme_class.php:486 
     278#: xpressme_class.php:485 
     279#: xpressme_class.php:489 
     280#: xpressme_class.php:492 
    281281msgid "Default Role of WordPress" 
    282282msgstr "WordPressのデフォルト権限" 
    283283 
    284 #: xpressme_class.php:480 
    285 #: xpressme_class.php:484 
    286 #: xpressme_class.php:487 
     284#: xpressme_class.php:486 
     285#: xpressme_class.php:490 
     286#: xpressme_class.php:493 
    287287msgid "Group User Doesn't Register" 
    288288msgstr "ユーザ登録しない" 
    289289 
    290 #: xpressme_class.php:518 
     290#: xpressme_class.php:524 
    291291msgid "WordPress MU cannot integrate the comments." 
    292292msgstr "WordPress MUはコメント統合できません。" 
    293293 
    294 #: xpressme_class.php:520 
     294#: xpressme_class.php:526 
    295295msgid "Do Not Comment Integration." 
    296296msgstr "コメント統合しません。" 
    297297 
    298 #: xpressme_class.php:555 
     298#: xpressme_class.php:561 
    299299msgid "Comment integration with D3Forum" 
    300300msgstr "D3Forumとのコメント統合" 
    301301 
    302 #: xpressme_class.php:557 
     302#: xpressme_class.php:563 
    303303msgid "Select the forum of D3Forum that does the comment integration from the following lists." 
    304304msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 
    305305 
    306 #: xpressme_class.php:562 
     306#: xpressme_class.php:568 
    307307msgid "Select the Type of display of D3Forum comment." 
    308308msgstr "D3Forumの表示タイプを選択" 
    309309 
    310 #: xpressme_class.php:564 
    311 #: xpressme_class.php:567 
     310#: xpressme_class.php:570 
     311#: xpressme_class.php:573 
    312312msgid "Flat" 
    313313msgstr "フラット" 
    314314 
    315 #: xpressme_class.php:565 
    316 #: xpressme_class.php:568 
     315#: xpressme_class.php:571 
     316#: xpressme_class.php:574 
    317317msgid "Threaded" 
    318318msgstr "スレッド" 
    319319 
    320 #: xpressme_class.php:571 
     320#: xpressme_class.php:577 
    321321msgid "Select the order of display of D3Forum comment." 
    322322msgstr "D3Forumコメントの表示順を選択" 
    323323 
    324 #: xpressme_class.php:573 
    325 #: xpressme_class.php:576 
     324#: xpressme_class.php:579 
     325#: xpressme_class.php:582 
    326326msgid "DESC" 
    327327msgstr "降順" 
    328328 
    329 #: xpressme_class.php:574 
    330 #: xpressme_class.php:577 
     329#: xpressme_class.php:580 
     330#: xpressme_class.php:583 
    331331msgid "ASC" 
    332332msgstr "昇順" 
    333333 
    334 #: xpressme_class.php:580 
     334#: xpressme_class.php:586 
    335335msgid "Number of displays of D3Forum comments." 
    336336msgstr "D3Forumのコメント表示数" 
    337337 
    338 #: xpressme_class.php:583 
     338#: xpressme_class.php:589 
    339339msgid "The import and the export between Wordpress Comments and the D3Forum Posts can be done. " 
    340340msgstr "WordPressコメントとD3Forumポスト間の一括転送(エクスポート・インポート)" 
    341341 
    342 #: xpressme_class.php:584 
     342#: xpressme_class.php:590 
    343343msgid "Export to D3Forum" 
    344344msgstr "D3Forumへ一括エクスポート" 
    345345 
    346 #: xpressme_class.php:585 
     346#: xpressme_class.php:591 
    347347msgid "Import from D3Forum" 
    348348msgstr "D3Forumから一括インポート" 
    349349 
    350 #: xpressme_class.php:598 
     350#: xpressme_class.php:604 
    351351msgid "Contents Excerpt Setting" 
    352352msgstr "記事抜粋の設定" 
    353353 
    354 #: xpressme_class.php:603 
     354#: xpressme_class.php:609 
    355355msgid "Is the excerpt display done with the archive of contents?" 
    356356msgstr "記事のアーカイブで抜粋表示を行いますか?" 
    357357 
    358 #: xpressme_class.php:610 
     358#: xpressme_class.php:616 
    359359msgid "When ASCII character more than the set ratio is included, it is judged ASCII contents. " 
    360360msgstr "ASCII文字が含まれる比率が設定された値より大きい場合、ASCII文字コンテンツと判断します。" 
    361361 
    362 #: xpressme_class.php:617 
     362#: xpressme_class.php:623 
    363363msgid "Excerpt length of word for ASCII contents" 
    364364msgstr "ASCIIコンテンツの抜粋単語数" 
    365365 
    366 #: xpressme_class.php:624 
     366#: xpressme_class.php:630 
    367367msgid "Excerpt length of character for multibyte contents" 
    368368msgstr "マルチバイトコンテンツの抜粋文字数" 
    369369 
    370 #: xpressme_class.php:631 
     370#: xpressme_class.php:637 
    371371msgid "This text is displayed in the link that reads contents not excerpted.(Is not displayed for the blank.)" 
    372372msgstr "抜粋されていないコンテンツを読むためのリンクに表示されるテキスト(空白の場合リンクを表示しません)" 
    373373 
    374 #: xpressme_class.php:638 
     374#: xpressme_class.php:644 
    375375msgid "This text is displayed in the link that more tag (&lt;!--more--&gt;). " 
    376376msgstr "more タグ (&lt;!--more--&gt;)のリンクに表示されるテキスト" 
    377377 
    378 #: xpressme_class.php:650 
     378#: xpressme_class.php:656 
    379379msgid "Display Mode Setting" 
    380380msgstr "表示モード設定" 
    381381 
    382 #: xpressme_class.php:653 
     382#: xpressme_class.php:659 
    383383msgid "Select the XPressME Display Mode." 
    384384msgstr "XPressMEの表示モードの選択" 
    385385 
    386 #: xpressme_class.php:658 
     386#: xpressme_class.php:664 
    387387msgid "Xoops Mode" 
    388388msgstr "XOOPSモード" 
    389389 
    390 #: xpressme_class.php:662 
     390#: xpressme_class.php:668 
    391391msgid "WordPress Mode" 
    392392msgstr "WordPressモード" 
    393393 
    394 #: xpressme_class.php:666 
     394#: xpressme_class.php:672 
    395395msgid "User select" 
    396396msgstr "ユーザによる選択" 
    397397 
    398 #: xpressme_class.php:676 
     398#: xpressme_class.php:677 
     399msgid "Select the theme used in the XOOPS Mode." 
     400msgstr "XOOPSモードで使用するテーマを選択" 
     401 
     402#: xpressme_class.php:682 
     403msgid "Use WordPress Selected Themes" 
     404msgstr "WordPressで選択したテーマを使う" 
     405 
     406#: xpressme_class.php:700 
    399407msgid "Header Meta Option" 
    400408msgstr "ヘッダメタ オプション" 
    401409 
    402 #: xpressme_class.php:681 
     410#: xpressme_class.php:705 
    403411msgid "Select the Header keyword." 
    404412msgstr "ヘッダで使用するキーワードの選択" 
    405413 
    406 #: xpressme_class.php:686 
     414#: xpressme_class.php:710 
    407415msgid "Xoops KeyWord" 
    408416msgstr "XOOPSのキーワード" 
    409417 
    410 #: xpressme_class.php:689 
     418#: xpressme_class.php:713 
    411419msgid "WordPress KeyWord" 
    412420msgstr "WordPressのキーワード" 
    413421 
    414 #: xpressme_class.php:692 
     422#: xpressme_class.php:716 
    415423msgid "WordPress & Xoops KeyWord" 
    416424msgstr "WordPressjとXOOPSのキーワード" 
    417425 
    418 #: xpressme_class.php:698 
     426#: xpressme_class.php:722 
    419427msgid "Select the Header Description." 
    420428msgstr "ヘッダで使用するディスクリプション(説明)の選択" 
    421429 
    422 #: xpressme_class.php:703 
     430#: xpressme_class.php:727 
    423431msgid "Xoops Description" 
    424432msgstr "XOOPSのディスクリプション" 
    425433 
    426 #: xpressme_class.php:706 
     434#: xpressme_class.php:730 
    427435msgid "WordPress Description" 
    428436msgstr "WordPressのディスクリプション" 
    429437 
    430 #: xpressme_class.php:709 
     438#: xpressme_class.php:733 
    431439msgid "WordPress & Xoops Description" 
    432440msgstr "WordPressとXOOPSのディスクリプション" 
    433441 
    434 #: xpressme_class.php:715 
     442#: xpressme_class.php:739 
    435443msgid "Select the Header Robots Index." 
    436444msgstr "ヘッダで使用するロボットインデックスの選択" 
    437445 
    438 #: xpressme_class.php:720 
     446#: xpressme_class.php:744 
    439447msgid "Xoops Robots Index" 
    440448msgstr "XOOPSのロボットインデックス" 
    441449 
    442 #: xpressme_class.php:723 
     450#: xpressme_class.php:747 
    443451msgid "WordPress Robots Index" 
    444452msgstr "WordPressのロボットインデックス" 
    445453 
    446 #: xpressme_class.php:752 
     454#: xpressme_class.php:776 
    447455#, php-format 
    448456msgid "Unable to create directory %s. Is its parent directory writable by the server?" 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme.php

    r380 r392  
    2121require_once dirname( __FILE__ ).'/include/pluggable-override.php' ; 
    2222require_once dirname( __FILE__ ).'/include/functions_for_wp_old.php' ; 
     23 
     24if (!is_wordpress_style() && ( !empty($xpress_config->theme_select) || $xpress_config->theme_select != 'use_wordpress_select') ){ 
     25        add_filter('stylesheet', 'xpress_Stylesheet'); 
     26        add_filter('template', 'xpress_ThemeTemplate'); 
     27} 
     28function xpress_Stylesheet($stylesheet) { 
     29        global $xpress_config; 
     30        $theme = $xpress_config->theme_select; 
     31    $theme = get_theme($theme); 
     32 
     33    if (empty($theme)) { 
     34        return $stylesheet; 
     35    } 
     36    return $theme['Stylesheet']; 
     37} 
     38 
     39function xpress_ThemeTemplate($template) { 
     40        global $xpress_config; 
     41        $theme = $xpress_config->theme_select; 
     42    $theme = get_theme($theme); 
     43 
     44    if (empty($theme)) { 
     45        return $template; 
     46    } 
     47    return $theme['Template']; 
     48} 
    2349 
    2450function my_plugin_menu() 
  • trunk/xpressme_integration_kit/wp-content/plugins/xpressme/xpressme_class.php

    r379 r392  
    3535        var $is_dashboard_blog_disp; 
    3636        var $is_dashboard_forum_disp; 
     37        var $theme_select; 
    3738        //constructor 
    3839        function XPressME_Class() 
     
    7980                $this->is_dashboard_blog_disp = true; 
    8081                $this->is_dashboard_forum_disp = true; 
     82                $this->theme_select = 'use_wordpress_select'; 
    8183        } 
    8284         
     
    132134                        'meta_robot_type' => $this->meta_robot_type, 
    133135                        '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 
    135138                ); 
    136139                if ($mode == 'add_new') { 
     
    241244                                                                $set_value = __('Read the rest of this entry &raquo;', 'xpressme'); 
    242245                                                                break; 
     246                                                        case 'theme_select': 
     247                                                                $set_value = 'use_wordpress_select'; 
     248                                                                break; 
    243249                                                                 
    244250                                                        default: 
     
    668674                $form .= "</select><br />\n"; 
    669675                 
     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"; 
    670694                $form .= "</td></tr>\n"; 
    671695            return $form; 
Note: See TracChangeset for help on using the changeset viewer.