XPressME Integration Kit

Trac

Changes in / [30:20]


Ignore:
Location:
/trunk
Files:
35 added
5 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • /trunk/include/xpress_render.php

    r30 r20  
    3535} 
    3636 
    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  
    5737// < body > tag is pulled out from the header of html contents.  
    5838function get_body($contents) 
    5939{ 
    60         $xpess_config = new XPressME_Class(); 
    6140        $pattern = "<body[^>]*?>(.*)<\/body>"; 
    6241        preg_match("/".$pattern."/s",  $contents, $body_matches); 
    6342        $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         } 
    6943        return $body; 
    7044} 
  • /trunk/wp-config.php

    r30 r20  
    11<?php 
    22require dirname( __FILE__ ).'/include/include_xoops_define.php' ; 
    3 require dirname( __FILE__ ).'/include/set_cash_cookie_path.php' ; 
    4 require dirname( __FILE__ ).'/include/pluggable-override.php' ; 
    53 
    64mb_language('Japanese'); 
  • /trunk/wp-content/plugins/xpressme/language/xpressme-ja.po

    r30 r20  
    33"Project-Id-Version: fckeditor for xpress\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2008-12-15 17:50+0900\n" 
     5"PO-Revision-Date: 2008-12-08 16:40+0900\n" 
    66"Last-Translator: toemon <toychee@toemon.com>\n" 
    77"Language-Team: \n" 
     
    1212"X-Poedit-Country: JAPAN\n" 
    1313"X-Poedit-KeywordsList: _e;__\n" 
    14 "X-Poedit-Basepath: C:\\xampp\\htdocs\\cube\\modules\\xpress2\\wp-content\\plugins\\xpressme\n" 
    15 "X-Poedit-SearchPath-0: .\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" 
    1616 
    17 #: xpressme_class.php:20 
    1817msgid "XPressME Settings" 
    1918msgstr "XPressME設定" 
    2019 
    21 #: xpressme_class.php:73 
    22 #: xpressme_class.php:118 
    23 #: xpressme_class.php:123 
    24 msgid "YES" 
    25 msgstr "はい" 
    26  
    27 #: xpressme_class.php:74 
    28 #: xpressme_class.php:119 
    29 #: xpressme_class.php:124 
    30 msgid "NO" 
    31 msgstr "いいえ" 
    32  
    33 #: xpressme_class.php:108 
    3420msgid "XPressME Configuration Page" 
    3521msgstr "XPressMEの設定ページ" 
    3622 
    37 #: xpressme_class.php:112 
    3823msgid "Media Upload Base Path" 
    3924msgstr "メディアアップロードのベースパス設定" 
    4025 
    41 #: xpressme_class.php:113 
    4226msgid "Use XOOPS UPLOAD PATH" 
    4327msgstr "XOOPSのアップロードパスを使用する。" 
    4428 
    45 #: xpressme_class.php:114 
    4629msgid "USE WordPress BASE_PATH" 
    4730msgstr "WordPressのベースパスを使用する。" 
    4831 
    49 #: xpressme_class.php:117 
    50 msgid "Thema Sidebar Display" 
    51 msgstr "テーマ表示時にサイドバー表示する。" 
    52  
    53 #: xpressme_class.php:122 
    54 msgid "The change tracking of the post is preserved" 
    55 msgstr "投稿の変更履歴を有効にする。" 
    56  
    57 #: xpressme_class.php:131 
    58 msgid "Update Config" 
    59 msgstr "更新" 
    60  
    61 #: xpressme_class.php:132 
    62 msgid "Preset Config" 
    63 msgstr "プリセット" 
    64  
  • /trunk/wp-content/plugins/xpressme/xpressme.php

    r30 r20  
    1414add_action('admin_head', array(&$xpessme, 'add_admin_head')); 
    1515add_filter("upload_dir",array(&$xpessme, 'xpress_upload_filter'),       1);             // Change wp-include/wp_upload_dir() 
    16 if (!$xpressme->is_save_post_revision){ 
    17         remove_action( 'pre_post_update', 'wp_save_post_revision' );                    // Not Save Post Revision 
    18 } 
    1916 
    2017?> 
  • /trunk/wp-content/plugins/xpressme/xpressme_class.php

    r30 r20  
    66        var $pluginName = 'xpressme';    
    77        var $is_use_xoops_upload_path; 
    8         var $is_theme_sidebar_disp; 
    9         var $is_save_post_revision; 
     8         
    109        //constructor 
    1110        function XPressME_Class() 
     
    3130        { 
    3231                $this->is_use_xoops_upload_path = true; 
    33                 $this->is_theme_sidebar_disp = true; 
    34                 $this->is_save_post_revision = true; 
    3532        } 
    3633         
     
    5249        { 
    5350                $write_options = array ( 
    54                         'is_use_xoops_upload_path' => $this->is_use_xoops_upload_path , 
    55                         'is_theme_sidebar_disp' => $this->is_theme_sidebar_disp  
     51                        'is_use_xoops_upload_path' => $this->is_use_xoops_upload_path  
    5652                ); 
    5753                if ($mode == 'add_new') { 
     
    6561        { 
    6662                $this->is_use_xoops_upload_path = stripslashes(trim($_POST['ch_is_use_xoops_upload_path'])); 
    67                 $this->is_theme_sidebar_disp = stripslashes(trim($_POST['ch_is_theme_sidebar_disp'])); 
    68                 $this->is_save_post_revision = stripslashes(trim($_POST['ch_is_save_post_revision'])); 
    6963        } 
    70          
    71         function yes_no_radio_option($option_name,$option_desc,$yes = '',$no= ''){ 
    72         if (empty( $yes ))  $yes = __('YES','xpressme') ; 
    73         if (empty( $no ))  $no = __('NO','xpressme') ; 
    74         $value = $this->{$option_name}; 
    75         $ans_name = 'ch_' . $option_name; 
    76          
    77         $form  =  "<tr>\n"; 
    78         $form .=  '<th><label for="images_to_link">' . $option_desc . "</label></th>\n"; 
    79         $form .=  "<td>\n"; 
    80         if ($value){ 
    81                 $form .= "<label><input type='radio' name='". $ans_name . "' value='1' checked='checked' />" . $yes ."</label><br />\n"; 
    82                 $form .= "<label><input type='radio' name='". $ans_name . "' value='0' />". $no . "</label>\n"; 
    83         }else{ 
    84                 $form .= "<label><input type='radio' name='". $ans_name . "' value='1' />" . $yes . "</label><br />\n"; 
    85                 $form .= "<label><input type='radio' name='". $ans_name . "' value='0' checked='checked' />". $no ."</label>\n"; 
    86         } 
    87         $form .=  "</td>\n"; 
    88         $form .=  "</tr><tr>\n"; 
    89                  
    90     return $form; 
    91          
    92 } 
    9364                 
    9465        function option_page() 
     
    10374 
    10475                 
    105                 echo    '<div class="wrap">'."\n"; 
    106                 echo            '<div id="icon-options-general" class="icon32"><br /></div>'."\n"; 
    107                 echo            '<h2>' . __('XPressME Configuration Page', 'xpressme') . "</h2>\n"; 
    108                 echo            '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">'."\n" ; 
    109                 echo                    '<table class="form-table">'."\n"; 
    110                 echo                            $this->yes_no_radio_option('is_use_xoops_upload_path', 
    111                                                                                                 __('Media Upload Base Path','xpressme'), 
    112                                                                                                 __('Use XOOPS UPLOAD PATH','xpressme'), 
    113                                                                                                 __('USE WordPress BASE_PATH','xpressme') 
    114                                                                                                 ); 
    115                 echo                            $this->yes_no_radio_option('is_theme_sidebar_disp', 
    116                                                                                                 __('Thema Sidebar Display','xpressme'), 
    117                                                                                                 __('YES','xpressme'), 
    118                                                                                                 __('NO','xpressme') 
    119                                                                                                 ); 
    120                 echo                            $this->yes_no_radio_option('is_save_post_revision', 
    121                                                                                                 __('The change tracking of the post is preserved','xpressme'), 
    122                                                                                                 __('YES','xpressme'), 
    123                                                                                                 __('NO','xpressme') 
    124                                                                                                 ); 
    125                          
    126 //              $this->is_use_xoops_upload_path_html(); 
    127                 echo                    "</table>\n"; 
     76                echo    '<div class="wrap">'; 
     77                echo            '<div id="icon-options-general" class="icon32"><br /></div>'; 
     78                echo            '<h2>' . __('XPressME Configuration Page', 'xpressme') . '</h2> '; 
     79 
     80                echo            '<form method="post" action="' . $_SERVER["REQUEST_URI"] . '">' ; 
     81                echo                    '<table class="form-table">'; 
     82                                                        $this->is_use_xoops_upload_path_html(); 
     83                echo                    '</table>'; 
    12884                 
    129                 echo            '<p class="submit">'."\n"; 
    130                 echo            '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />' ."\n"; 
    131                 echo            '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />' ."\n"; 
    132                 echo            "</p>\n"; 
     85                echo            '<p class="submit">'; 
     86                echo            '<input type="submit" value= "' . __('Update Config', 'xpressme') . '" name="submit_update" />'; 
     87                echo            '<input type="submit" value= "' . __('Preset Config', 'xpressme') . '" name="submit_reset" />'; 
     88                echo            '</p>'; 
    13389 
    134                 echo            "</form>\n" ; 
    135                 echo    "</div>\n"; 
     90                echo            '</form>' ; 
     91                echo    '</div>'; 
    13692        } 
     93 
     94        function is_use_xoops_upload_path_html() 
     95        { 
     96                 
     97                echo '<tr>'; 
     98                echo '<th><label for="images_to_link">' . __('Media Upload Base Path','xpressme') . '</label></th>'; 
     99                echo '<td>'; 
     100 
     101                if ($this->is_use_xoops_upload_path == true){ 
     102                        echo '<label><input type="radio" name="ch_is_use_xoops_upload_path"  value="1" checked="checked" /> ' . __('Use XOOPS UPLOAD PATH','xpressme') .'</label><br />'; 
     103                        echo '<label><input type="radio" name="ch_is_use_xoops_upload_path" value="0" />' . __('USE WordPress BASE_PATH','xpressme') . '</label>'; 
     104                } else { 
     105                        echo '<label><input type="radio" name="ch_is_use_xoops_upload_path"  value="1" /> ' . __('Use XOOPS UPLOAD PATH','xpressme') .'</label><br />'; 
     106                        echo '<label><input type="radio" name="ch_is_use_xoops_upload_path" value="0" checked="checked" />' . __('USE WordPress BASE_PATH','xpressme') . '</label>'; 
     107                } 
     108                echo '</td>'; 
     109                echo '</tr><tr>'; 
     110                 
     111        } 
     112 
    137113         
    138114        function xpress_upload_filter($uploads) 
     
    156132                return $uploads; 
    157133        }        
    158  
    159134} 
    160135?> 
  • /trunk/xoops_version.php

    r30 r20  
    3232$modversion['description'] = constant( '_MI_XPRESS_DESC'); 
    3333$modversion['version'] = "0.01"; 
    34 $modversion['credits'] = "Wordpress DEV (http://wordpress.org/) XPressME DEV Toemon) (http://www.toemon.com) ;"; 
     34$modversion['credits'] = "XPressME DEV Toemon) (http://www.toemon.com) Wordpress DEV (http://wordpress.org/);"; 
    3535$modversion['author'] = "toemon (http://www.toemon.com)"; 
    3636$modversion['license'] = "GPL see LICENSE"; 
    37 $modversion['official'] = 0 ; 
     37$modversion['official'] = r18 ; 
    3838$modversion['image'] =  'module_icon.php' ; 
    3939$modversion['dirname'] = $mydirname; 
     
    7171 
    7272// Search 
    73 $modversion['hasSearch'] = 1 ; 
    74 $modversion['search']['file'] = 'include/search.php' ; 
    75 $modversion['search']['func'] = $mydirname.'_global_search' ; 
     73//$modversion['hasSearch'] = 1 ; 
     74//$modversion['search']['file'] = 'include/search.php' ; 
     75//$modversion['search']['func'] = $mydirname.'_global_search' ; 
    7676//Admin things 
    7777$modversion['hasAdmin'] = 0; 
Note: See TracChangeset for help on using the changeset viewer.