XPressME Integration Kit

Trac

Changeset 201


Ignore:
Timestamp:
May 4, 2009, 7:31:25 PM (15 years ago)
Author:
toemon
Message:

#119 キーワードやディスクリプションをXOOPS,WordPressいずれを使用すか選択するオプションを設ける。

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/xpress_render.php

    r164 r201  
    44function get_mod_header($contents) 
    55{ 
     6        global $xpress_config; 
    67        $pattern = "<head[^>]*?>(.*)<\/head>"; 
    78        preg_match("/".$pattern."/s",  $contents, $head_matches); 
    89        $head_str = $head_matches[1]; 
    910         
    10         $pattern = "<style[^>]*?>(.*)<\/style>"; 
    11         preg_match("/".$pattern."/s",  $head_str, $style_matches); 
    12         if (empty($style_matches[0])) 
    13                 $style = ''; 
    14         else 
    15                 $style = $style_matches[0]; 
    16   
    17         $pattern = "<link(.*)>"; 
    18         preg_match_all("/".$pattern."/",  $head_str, $link_match,PREG_PATTERN_ORDER); 
    19         $links = $link_match[0]; 
    20         $link_str =''; 
    21         foreach ( $links as $link){ 
    22                 ob_start(); 
    23                         echo $link . "\n"; 
    24                          
    25                         $link_str .= ob_get_contents(); 
    26                 ob_end_clean(); 
    27         } 
    28          
    29         $pattern = "<script[^>]*?>(.*)<\/script>"; 
    30         preg_match_all("/".$pattern."/s",  $head_str, $script_match,PREG_PATTERN_ORDER); 
    31         $scripts = $script_match[0]; 
    32         $script_str =''; 
    33         foreach ( $scripts as $script){          
    34                 if (($GLOBALS["xoopsModuleConfig"]['use_d3forum'] != 1) || (strpos($script,'function wpopen') ===false)) 
    35                         $script_str .= $script; 
    36         } 
    37         return $link_str."\n".$style . "\n" . $script_str ."\n"; 
     11        $pattern = '<head[^>]*?>'; 
     12        $head_str = preg_replace("/".$pattern."/s" , '' , $head_str); 
     13        $pattern = '<\/head>'; 
     14        $head_str = preg_replace("/".$pattern."/s" , '' , $head_str); 
     15        $pattern = '<\s*html\s+xmlns[^>]*?>'; 
     16        $head_str = preg_replace("/".$pattern."/s" , '' , $head_str); 
     17        $pattern = '<\s*head\s+profile[^>]*?>'; 
     18        $head_str = preg_replace("/".$pattern."/s" , '' , $head_str); 
     19        $pattern = '<\s*meta\s+http-equiv[^>]*?>'; 
     20        $head_str = preg_replace("/".$pattern."/s" , '' , $head_str); 
     21        $pattern = '<title[^>]*?>(.*)<\s*\/\s*title\s*>'; 
     22        $head_str = preg_replace("/".$pattern."/s" , '' , $head_str); 
     23 
     24        $head_str = meta_name_cut('robots',$head_str); 
     25        $head_str = meta_name_cut('keywords',$head_str); 
     26        $head_str = meta_name_cut('description',$head_str); 
     27        $head_str = meta_name_cut('rating',$head_str); 
     28        $head_str = meta_name_cut('author',$head_str); 
     29        $head_str = meta_name_cut('copyright',$head_str); 
     30        $head_str = meta_name_cut('generator',$head_str); 
     31 
     32        $head_str = preg_replace("/^(\s)*(\r|\n|\r\n)/m", "", $head_str);        
     33        return $head_str; 
     34} 
     35 
     36function meta_name_cut($name = '', $head_str) 
     37{ 
     38        $pattern = '<\s*meta\s+name\s*=\s*["\']' . $name . '["\'][^>]*?>'; 
     39        $head_str = preg_replace("/".$pattern."/i" , '' , $head_str); 
     40        return $head_str; 
     41} 
     42 
     43// for title reprace plugin (all in one seo pack) 
     44function get_xpress_title($contents) 
     45{ 
     46        $pattern = '<title[^>]*?>(.*)<\s*\/\s*title\s*>'; 
     47        preg_match("/".$pattern."/i",  $contents, $head_matches); 
     48        $title_str = $head_matches[1]; 
     49        return $title_str; 
     50} 
     51 
     52function get_xpress_meta_name($name = '',$contents) 
     53{ 
     54        $pattern = '<\s*meta\s+name\s*=\s*["\']' . $name . '["\']\s*content\s*=\s*[\'"](.*)[\'"]\s*\/\s*>'; 
     55        preg_match("/".$pattern."/i",  $contents, $head_matches); 
     56        $meta = $head_matches[1]; 
     57        return $meta; 
    3858} 
    3959 
     
    98118//rendering for the module header and the body 
    99119function xpress_render($contents){ 
    100         global $xoops_config , $xoopsTpl; 
     120        global $xoops_config , $xoopsTpl,$xpress_config; 
    101121        $mydirname = basename(dirname(dirname(__FILE__))); 
    102122        include $xoops_config->xoops_root_path ."/header.php"; 
    103         $page_title = $GLOBALS["xoopsModule"]->getVar("name")." ".wp_title('&raquo;', false); 
    104123        $xoopsTpl->assign('xoops_module_header', get_xpress_module_header($contents)); 
     124        $page_title = $GLOBALS["xoopsModule"]->getVar("name"). ' &raquo;'. get_xpress_title($contents); 
    105125        $xoopsTpl->assign('xoops_pagetitle', $page_title); 
     126         
     127        $xoops_keywords = $xoopsTpl->get_template_vars('xoops_meta_keywords'); 
     128        $wp_keyword = get_xpress_meta_name('keywords',$contents); 
     129        switch ($xpress_config->meta_keyword_type){ 
     130                case 'xoops': 
     131                        break; 
     132                case 'wordpress': 
     133                        if (!empty($wp_keyword)) 
     134                                $xoopsTpl->assign('xoops_meta_keywords', $wp_keyword); 
     135                        break; 
     136                case 'wordpress_xoops': 
     137                        if (!empty($wp_keyword)){ 
     138                                if (!empty($xoops_keywords)){ 
     139                                        $keywords = $wp_keyword . ', ' . $xoops_keywords; 
     140                                } else { 
     141                                        $keywords = $wp_keyword; 
     142                                } 
     143                                $xoopsTpl->assign('xoops_meta_keywords', $keywords); 
     144                        }  
     145                        break; 
     146                default : 
     147        } 
     148 
     149        $xoops_description = $xoopsTpl->get_template_vars('xoops_meta_description'); 
     150        $wp_description = get_xpress_meta_name('description',$contents); 
     151        switch ($xpress_config->meta_description_type){ 
     152                case 'xoops': 
     153                        break; 
     154                case 'wordpress': 
     155                        if (!empty($wp_description)) 
     156                                $xoopsTpl->assign('xoops_meta_description', $wp_description); 
     157                        break; 
     158                case 'wordpress_xoops': 
     159                        if (!empty($wp_description)){ 
     160                                if (!empty($xoops_description)){ 
     161                                        $description = $wp_description . ' ' . $xoops_description; 
     162                                } else { 
     163                                        $description = $wp_description; 
     164                                } 
     165                                $xoopsTpl->assign('xoops_meta_description', $description); 
     166                        }  
     167                        break; 
     168                default : 
     169        } 
     170                 
     171         
    106172        $xpress_data['body_contents'] = get_body($contents); 
    107173        // used $GLOBALS. becose xpress_left_arrow_post_link() and xpress_right_arrow_post_link() is other loop in this position 
  • trunk/wp-content/plugins/xpressme/language/xpressme-ja.po

    r155 r201  
    33"Project-Id-Version: XPressME Plugin\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2009-04-04 18:30+0900\n" 
     5"PO-Revision-Date: 2009-05-04 19:31+0900\n" 
    66"Last-Translator: toemon <toychee@toemon.com>\n" 
    77"Language-Team: \n" 
     
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
    17 #: xpressme_class.php:43 
     17#: xpressme_class.php:45 
    1818msgid "XPressME Settings" 
    1919msgstr "XPressME設定" 
    2020 
    21 #: xpressme_class.php:60 
    22 #: xpressme_class.php:206 
     21#: xpressme_class.php:62 
     22#: xpressme_class.php:211 
    2323msgid "Older Post" 
    2424msgstr "前の投稿へ" 
    2525 
    26 #: xpressme_class.php:61 
    27 #: xpressme_class.php:208 
     26#: xpressme_class.php:63 
     27#: xpressme_class.php:213 
    2828msgid "Newer Post" 
    2929msgstr "次の投稿へ" 
    3030 
    31 #: xpressme_class.php:63 
    32 #: xpressme_class.php:211 
     31#: xpressme_class.php:65 
     32#: xpressme_class.php:216 
    3333msgid "Older Entries" 
    3434msgstr "前ページへ" 
    3535 
    36 #: xpressme_class.php:64 
    37 #: xpressme_class.php:213 
     36#: xpressme_class.php:66 
     37#: xpressme_class.php:218 
    3838msgid "Newer Entries" 
    3939msgstr "次ページへ" 
    4040 
    41 #: xpressme_class.php:78 
     41#: xpressme_class.php:80 
    4242msgid "more" 
    4343msgstr "続きを読む" 
    4444 
    45 #: xpressme_class.php:264 
    46 #: xpressme_class.php:280 
    47 #: xpressme_class.php:648 
    48 #: xpressme_class.php:653 
    49 #: xpressme_class.php:659 
    50 #: xpressme_class.php:670 
    51 #: xpressme_class.php:675 
     45#: xpressme_class.php:272 
     46#: xpressme_class.php:288 
     47#: xpressme_class.php:702 
     48#: xpressme_class.php:707 
     49#: xpressme_class.php:713 
     50#: xpressme_class.php:724 
     51#: xpressme_class.php:730 
    5252msgid "YES" 
    5353msgstr "はい" 
    5454 
    55 #: xpressme_class.php:265 
    56 #: xpressme_class.php:281 
    57 #: xpressme_class.php:649 
    58 #: xpressme_class.php:654 
    59 #: xpressme_class.php:660 
    60 #: xpressme_class.php:671 
    61 #: xpressme_class.php:676 
     55#: xpressme_class.php:273 
     56#: xpressme_class.php:289 
     57#: xpressme_class.php:703 
     58#: xpressme_class.php:708 
     59#: xpressme_class.php:714 
     60#: xpressme_class.php:725 
     61#: xpressme_class.php:731 
    6262msgid "NO" 
    6363msgstr "いいえ" 
    6464 
    65 #: xpressme_class.php:323 
     65#: xpressme_class.php:331 
    6666msgid "Single Post Navi Setting" 
    6767msgstr "シングルポストナビの設定" 
    6868 
    69 #: xpressme_class.php:328 
    70 #: xpressme_class.php:373 
     69#: xpressme_class.php:336 
     70#: xpressme_class.php:381 
    7171msgid "Adjustment of Navi link display position" 
    7272msgstr "リンクの表示位置設定" 
    7373 
    74 #: xpressme_class.php:331 
     74#: xpressme_class.php:339 
    7575msgid "'Old Post Link' is displayed in the left, and 'Newer Post Link' is displayed in the right" 
    7676msgstr "以前の記事へのリンクを左に、より新しい記事へのリンクを右に表示" 
    7777 
    78 #: xpressme_class.php:332 
     78#: xpressme_class.php:340 
    7979msgid "'Newer Post Link' is displayed in the left, and 'Old Post Link' is displayed in the right" 
    8080msgstr "より新しい記事へのリンクを左に、古い記事へのリンクを右に表示" 
    8181 
    82 #: xpressme_class.php:338 
     82#: xpressme_class.php:346 
    8383msgid "Select Display name of PostNavi Link" 
    8484msgstr "表示するリンクテキストを選択" 
    8585 
    86 #: xpressme_class.php:341 
     86#: xpressme_class.php:349 
    8787msgid "Title of post" 
    8888msgstr "投稿記事のタイトルを表示" 
    8989 
    90 #: xpressme_class.php:342 
     90#: xpressme_class.php:350 
    9191msgid "Title of Navi" 
    9292msgstr "ナビタイトルを表示" 
    9393 
    94 #: xpressme_class.php:348 
     94#: xpressme_class.php:356 
    9595msgid "Display Navi Title of Old Post Link" 
    9696msgstr "古い記事へのナビタイトルを設定" 
    9797 
    98 #: xpressme_class.php:355 
     98#: xpressme_class.php:363 
    9999msgid "Display Navi Title of Newer Post Link" 
    100100msgstr "より新しい記事へのナビタイトルを設定" 
    101101 
    102 #: xpressme_class.php:368 
     102#: xpressme_class.php:376 
    103103msgid "Posts List Page Navi Setting" 
    104104msgstr "ポストリストページナビの設定" 
    105105 
    106 #: xpressme_class.php:376 
     106#: xpressme_class.php:384 
    107107msgid "'Old Page Link' is displayed in the left, and 'Newer Page Link' is displayed in the right" 
    108108msgstr "古いページへのリンクを左に、より新しいページへのリンクを右に表示" 
    109109 
    110 #: xpressme_class.php:377 
     110#: xpressme_class.php:385 
    111111msgid "'Newer Page Link' is displayed in the left, and 'Old Page Link' is displayed in the right" 
    112112msgstr "より新しいページへのリンクを左に、古いページへのリンクを右に表示" 
    113113 
    114 #: xpressme_class.php:383 
     114#: xpressme_class.php:391 
    115115msgid "Display Navi Title of Old Page Link" 
    116116msgstr "古いページへのナビタイトルを設定" 
    117117 
    118 #: xpressme_class.php:390 
     118#: xpressme_class.php:398 
    119119msgid "Display Navi Title of Newer Page Link" 
    120120msgstr "より新しいページへのナビタイトルを設定" 
    121121 
    122 #: xpressme_class.php:405 
     122#: xpressme_class.php:413 
    123123msgid "Role Setting at Login" 
    124124msgstr "ログイン時の権限設定" 
    125125 
    126 #: xpressme_class.php:408 
     126#: xpressme_class.php:416 
    127127msgid "XOOPS Groupe" 
    128128msgstr "XOOPSグループ名" 
    129129 
    130 #: xpressme_class.php:408 
     130#: xpressme_class.php:416 
    131131msgid "WordPress Role" 
    132132msgstr "WordPressでの権限" 
    133133 
    134 #: xpressme_class.php:408 
     134#: xpressme_class.php:416 
    135135msgid "Role is set at each login" 
    136136msgstr "ログイン時、常に権限を更新する" 
    137137 
    138 #: xpressme_class.php:434 
    139 #: xpressme_class.php:438 
    140 #: xpressme_class.php:441 
     138#: xpressme_class.php:442 
     139#: xpressme_class.php:446 
     140#: xpressme_class.php:449 
    141141msgid "Default Role of WordPress" 
    142142msgstr "WordPressのデフォルト権限" 
    143143 
    144 #: xpressme_class.php:435 
    145 #: xpressme_class.php:439 
    146 #: xpressme_class.php:442 
     144#: xpressme_class.php:443 
     145#: xpressme_class.php:447 
     146#: xpressme_class.php:450 
    147147msgid "Group User Doesn't Register" 
    148148msgstr "ユーザ登録しない" 
    149149 
    150 #: xpressme_class.php:471 
     150#: xpressme_class.php:479 
    151151msgid "Do Not Comment Integration." 
    152152msgstr "コメント統合しません。" 
    153153 
    154 #: xpressme_class.php:505 
     154#: xpressme_class.php:513 
    155155msgid "Comment integration with D3Forum" 
    156156msgstr "D3Forumとのコメント統合" 
    157157 
    158 #: xpressme_class.php:507 
     158#: xpressme_class.php:515 
    159159msgid "Select the forum of D3Forum that does the comment integration from the following lists." 
    160160msgstr "以下のリストからコメント統合をするD3Forumのフォーラムを選択してください。" 
    161161 
    162 #: xpressme_class.php:511 
     162#: xpressme_class.php:519 
    163163msgid "Select the Type of display of D3Forum comment." 
    164164msgstr "D3Forumの表示タイプを選択" 
    165165 
    166 #: xpressme_class.php:513 
    167 #: xpressme_class.php:516 
     166#: xpressme_class.php:521 
     167#: xpressme_class.php:524 
    168168msgid "Flat" 
    169169msgstr "フラット" 
    170170 
    171 #: xpressme_class.php:514 
    172 #: xpressme_class.php:517 
     171#: xpressme_class.php:522 
     172#: xpressme_class.php:525 
    173173msgid "Threaded" 
    174174msgstr "スレッド" 
    175175 
    176 #: xpressme_class.php:520 
     176#: xpressme_class.php:528 
    177177msgid "Select the order of display of D3Forum comment." 
    178178msgstr "D3Forumコメントの表示順を選択" 
    179179 
    180 #: xpressme_class.php:522 
    181 #: xpressme_class.php:525 
     180#: xpressme_class.php:530 
     181#: xpressme_class.php:533 
    182182msgid "DESC" 
    183183msgstr "降順" 
    184184 
    185 #: xpressme_class.php:523 
    186 #: xpressme_class.php:526 
     185#: xpressme_class.php:531 
     186#: xpressme_class.php:534 
    187187msgid "ASC" 
    188188msgstr "昇順" 
    189189 
    190 #: xpressme_class.php:529 
     190#: xpressme_class.php:537 
    191191msgid "Number of displays of D3Forum comments." 
    192192msgstr "D3Forumのコメント表示数" 
    193193 
    194 #: xpressme_class.php:533 
     194#: xpressme_class.php:541 
    195195msgid "The import and the export between Wordpress Comments and the D3Forum Posts can be done. " 
    196196msgstr "WordPressコメントとD3Forumポスト間の一括転送(エクスポート・インポート)" 
    197197 
    198 #: xpressme_class.php:534 
     198#: xpressme_class.php:542 
    199199msgid "Export to D3Forum" 
    200200msgstr "D3Forumへ一括エクスポート" 
    201201 
    202 #: xpressme_class.php:535 
     202#: xpressme_class.php:543 
    203203msgid "Import from D3Forum" 
    204204msgstr "D3Forumから一括インポート" 
    205205 
    206 #: xpressme_class.php:547 
     206#: xpressme_class.php:555 
    207207msgid "Contents Excerpt Setting" 
    208208msgstr "記事抜粋の設定" 
    209209 
    210 #: xpressme_class.php:552 
     210#: xpressme_class.php:560 
    211211msgid "Is the excerpt display done with the archive of contents?" 
    212212msgstr "記事のアーカイブで抜粋表示を行いますか?" 
    213213 
    214 #: xpressme_class.php:559 
     214#: xpressme_class.php:567 
    215215msgid "When ASCII character more than the set ratio is included, it is judged ASCII contents. " 
    216216msgstr "ASCII文字が含まれる比率が設定された値より大きい場合、ASCII文字コンテンツと判断します。" 
    217217 
    218 #: xpressme_class.php:566 
     218#: xpressme_class.php:574 
    219219msgid "Excerpt length of word for ASCII contents" 
    220220msgstr "ASCIIコンテンツの抜粋単語数" 
    221221 
    222 #: xpressme_class.php:573 
     222#: xpressme_class.php:581 
    223223msgid "Excerpt length of character for multibyte contents" 
    224224msgstr "マルチバイトコンテンツの抜粋文字数" 
    225225 
    226 #: xpressme_class.php:580 
     226#: xpressme_class.php:588 
    227227msgid "More Link Text (Is not displayed for the blank.)" 
    228228msgstr "Moreリンクテキスト(ブランクの場合リンクを表示しません。)" 
    229229 
    230 #: xpressme_class.php:592 
     230#: xpressme_class.php:600 
    231231msgid "Display Mode Setting" 
    232232msgstr "表示モード設定" 
    233233 
    234 #: xpressme_class.php:595 
     234#: xpressme_class.php:603 
    235235msgid "Select the XPressME Display Mode." 
    236236msgstr "XPressMEの表示モードの選択" 
    237237 
    238 #: xpressme_class.php:600 
     238#: xpressme_class.php:608 
    239239msgid "Xoops Mode" 
    240240msgstr "XOOPSモード" 
    241241 
    242 #: xpressme_class.php:604 
     242#: xpressme_class.php:612 
    243243msgid "WordPress Mode" 
    244244msgstr "WordPressモード" 
    245245 
    246 #: xpressme_class.php:608 
     246#: xpressme_class.php:616 
    247247msgid "User select" 
    248248msgstr "ユーザによる選択" 
    249249 
    250 #: xpressme_class.php:637 
     250#: xpressme_class.php:626 
     251msgid "Header Meta Option" 
     252msgstr "ヘッダメタ オプション" 
     253 
     254#: xpressme_class.php:631 
     255msgid "Select the Header keyword." 
     256msgstr "ヘッダで使用するキーワードの選択" 
     257 
     258#: xpressme_class.php:636 
     259msgid "Xoops KeyWord" 
     260msgstr "XOOPSのキーワード" 
     261 
     262#: xpressme_class.php:639 
     263msgid "WordPress KeyWord" 
     264msgstr "WordPressのキーワード" 
     265 
     266#: xpressme_class.php:642 
     267msgid "WordPress & Xoops KeyWord" 
     268msgstr "WordPressjとXOOPSのキーワード" 
     269 
     270#: xpressme_class.php:648 
     271msgid "Select the Header Description." 
     272msgstr "ヘッダで使用するディスクリプション(説明)の選択" 
     273 
     274#: xpressme_class.php:653 
     275msgid "Xoops Description" 
     276msgstr "XOOPSのディスクリプション" 
     277 
     278#: xpressme_class.php:656 
     279msgid "WordPress Description" 
     280msgstr "WordPressのディスクリプション" 
     281 
     282#: xpressme_class.php:659 
     283msgid "WordPress & Xoops Description" 
     284msgstr "WordPressとXOOPSのディスクリプション" 
     285 
     286#: xpressme_class.php:691 
    251287msgid "XPressME Configuration Page" 
    252288msgstr "XPressMEの設定ページ" 
    253289 
    254 #: xpressme_class.php:642 
     290#: xpressme_class.php:696 
    255291msgid "Media Upload Base Path" 
    256292msgstr "メディアアップロードのベースパス設定" 
    257293 
    258 #: xpressme_class.php:643 
     294#: xpressme_class.php:697 
    259295msgid "Use XOOPS UPLOAD PATH" 
    260296msgstr "XOOPSのアップロードパスを使用する。" 
    261297 
    262 #: xpressme_class.php:644 
     298#: xpressme_class.php:698 
    263299msgid "USE WordPress BASE_PATH" 
    264300msgstr "WordPressのベースパスを使用する。" 
    265301 
    266 #: xpressme_class.php:647 
     302#: xpressme_class.php:701 
    267303msgid "Thema Sidebar Display" 
    268304msgstr "テーマ表示時にサイドバー表示する。" 
    269305 
    270 #: xpressme_class.php:652 
     306#: xpressme_class.php:706 
    271307msgid "The change tracking of the post is preserved" 
    272308msgstr "投稿の変更履歴を有効にする。" 
    273309 
    274 #: xpressme_class.php:658 
     310#: xpressme_class.php:712 
    275311msgid "Select Multi user mode" 
    276312msgstr "マルチユーザーモードを選択" 
    277313 
    278 #: xpressme_class.php:669 
     314#: xpressme_class.php:723 
    279315msgid "Is the posts author views counted?" 
    280316msgstr "投稿者の閲覧をカウントしますか?" 
    281317 
    282 #: xpressme_class.php:674 
     318#: xpressme_class.php:729 
    283319msgid "Is SQL debugging window displayed?" 
    284320msgstr "SQLデバッグウィンドを表示しますか?" 
    285321 
    286 #: xpressme_class.php:686 
     322#: xpressme_class.php:741 
    287323msgid "Update Config" 
    288324msgstr "更新" 
    289325 
    290 #: xpressme_class.php:687 
     326#: xpressme_class.php:742 
    291327msgid "Preset Config" 
    292328msgstr "プリセット" 
    293329 
    294 #: include/custom_functions.php:258 
     330#: include/custom_functions.php:20 
     331#, php-format 
     332msgid "Permanent Link to %s" 
     333msgstr "%sのパーマリンク" 
     334 
     335#: include/custom_functions.php:337 
    295336#, php-format 
    296337msgid "views :%d" 
    297338msgstr "閲覧数 :%d" 
    298339 
    299 #: include/custom_functions.php:376 
     340#: include/custom_functions.php:455 
    300341msgid "Main" 
    301342msgstr "メイン" 
    302343 
    303 #: include/custom_functions.php:378 
     344#: include/custom_functions.php:458 
    304345#, php-format 
    305346msgid "Archive for the &#8216;%s&#8217; Category" 
    306347msgstr "カテゴリー &#8216;%s&#8217; のアーカイブ" 
    307348 
    308 #: include/custom_functions.php:380 
     349#: include/custom_functions.php:460 
    309350#, php-format 
    310351msgid "Posts Tagged &#8216;%s&#8217;" 
    311352msgstr "&#8216;%s&#8217; タグのついている投稿" 
    312353 
    313 #: include/custom_functions.php:382 
     354#: include/custom_functions.php:462 
    314355#, php-format 
    315356msgid "Archive for %s|Daily archive page" 
    316357msgstr "%sの日別アーカイブ" 
    317358 
    318 #: include/custom_functions.php:382 
     359#: include/custom_functions.php:462 
    319360msgid "F jS, Y" 
    320361msgstr "Y年n月j日" 
    321362 
    322 #: include/custom_functions.php:384 
     363#: include/custom_functions.php:464 
    323364#, php-format 
    324365msgid "Archive for %s|Monthly archive page" 
    325366msgstr "%sの月別アーカイブ" 
    326367 
    327 #: include/custom_functions.php:384 
     368#: include/custom_functions.php:464 
    328369msgid "F, Y" 
    329370msgstr "Y年n月" 
    330371 
    331 #: include/custom_functions.php:386 
     372#: include/custom_functions.php:466 
    332373#, php-format 
    333374msgid "Archive for %s|Yearly archive page" 
    334375msgstr "%sの年別アーカイブ " 
    335376 
    336 #: include/custom_functions.php:386 
     377#: include/custom_functions.php:466 
    337378msgid "Y" 
    338379msgstr "Y年" 
    339380 
    340 #: include/custom_functions.php:389 
     381#: include/custom_functions.php:469 
    341382#, php-format 
    342383msgid "Archive for the &#8216;%s&#8217; Author" 
    343384msgstr "投稿者 &#8216;%s&#8217; のアーカイブ" 
    344385 
    345 #: include/custom_functions.php:392 
     386#: include/custom_functions.php:472 
    346387#, php-format 
    347388msgid "Search Results of word &#8216;%s&#8217;" 
    348389msgstr "&#8216;%s&#8217; の検索結果" 
    349390 
    350 #: include/custom_functions.php:395 
     391#: include/custom_functions.php:478 
     392#: include/custom_functions.php:480 
    351393#, php-format 
    352394msgid "Article of %s" 
    353395msgstr "%sの記事" 
    354396 
    355 #: include/custom_functions.php:410 
     397#: include/custom_functions.php:495 
    356398#, php-format 
    357399msgid "From %1$s on site %2$s" 
    358400msgstr "サイト %2$s の %1$s より" 
    359401 
    360 #: include/custom_functions.php:433 
     402#: include/custom_functions.php:518 
    361403#, fuzzy 
    362404msgid "% TrackBack/Pingback" 
    363405msgstr "トラックバック・ピンバック % 件" 
    364406 
    365 #: include/custom_functions.php:435 
     407#: include/custom_functions.php:520 
    366408msgid "No Trackback/Pingback" 
    367409msgstr "トラックバック・ピンバックはありません" 
    368410 
    369 #: include/custom_functions.php:437 
     411#: include/custom_functions.php:522 
    370412msgid "One Trackback/Pingback" 
    371413msgstr "トラックバック・ピンバック 1 件" 
     414 
     415#: include/custom_functions.php:632 
     416msgid "Calendar" 
     417msgstr "カレンダー" 
     418 
     419#: include/custom_functions.php:665 
     420#: include/custom_functions.php:675 
     421#, php-format 
     422msgid "View posts for %1$s %2$s" 
     423msgstr "" 
    372424 
    373425#: include/xpress_common_functions.php:202 
  • trunk/wp-content/plugins/xpressme/xpressme_class.php

    r155 r201  
    2929        var $viewer_type; 
    3030        var $is_multi_user; 
     31        var $meta_keyword_type; 
     32        var $meta_description_type; 
    3133        //constructor 
    3234        function XPressME_Class() 
     
    7981                $this->viewer_type = 'xoops'; 
    8082                $this->is_multi_user = false; 
    81  
     83                $this->meta_keyword_type = 'xoops'; 
     84                $this->meta_description_type = 'xoops'; 
    8285        } 
    8386         
     
    127130                        'more_link_text' => $this->more_link_text, 
    128131                        '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 
    130135                ); 
    131136                if ($mode == 'add_new') { 
     
    239244                $this->viewer_type = stripslashes(trim($_POST['ch_viewer_type'])); 
    240245                $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 
    241249                global $xoops_db; 
    242250                $table = get_wp_prefix() . 'group_role';         
     
    613621            return $form; 
    614622        } 
     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 
    615669 
    616670        function option_page() 
     
    671725                                                                                                __('NO','xpressme')              
    672726                                                                                                ); 
     727                echo                            $this->header_meta_option(); 
    673728                echo                            $this->yes_no_radio_option('is_sql_debug', 
    674729                                                                                                __('Is SQL debugging window displayed?','xpressme'), 
  • trunk/xoops_version.php

    r200 r201  
    4040 
    4141// status 
    42 $modversion['codename'] = "RC1(r200)"; 
     42$modversion['codename'] = "RC1(r201)"; 
    4343 
    4444// onInstall, onUpdate, onUninstall 
Note: See TracChangeset for help on using the changeset viewer.