XPressME Integration Kit

Trac

Changeset 28


Ignore:
Timestamp:
Dec 15, 2008, 5:47:59 PM (15 years ago)
Author:
toemon
Message:

投稿記事の履歴機能の有効・無効を設定できるようにする機能の実装 #39

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

Legend:

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

    r26 r28  
    33"Project-Id-Version: fckeditor for xpress\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2008-12-14 13:55+0900\n" 
     5"PO-Revision-Date: 2008-12-15 17:50+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:\\XPressME2_SVN\\trunk\\wp-content\\plugins\\xpressme\n" 
     14"X-Poedit-Basepath: C:\\xampp\\htdocs\\cube\\modules\\xpress2\\wp-content\\plugins\\xpressme\n" 
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
    17 #: xpressme_class.php:19 
     17#: xpressme_class.php:20 
    1818msgid "XPressME Settings" 
    1919msgstr "XPressME設定" 
    2020 
    21 #: xpressme_class.php:66 
     21#: xpressme_class.php:73 
     22#: xpressme_class.php:118 
     23#: xpressme_class.php:123 
    2224msgid "YES" 
    2325msgstr "はい" 
    2426 
    25 #: xpressme_class.php:67 
     27#: xpressme_class.php:74 
     28#: xpressme_class.php:119 
     29#: xpressme_class.php:124 
    2630msgid "NO" 
    2731msgstr "いいえ" 
    2832 
    29 #: xpressme_class.php:101 
     33#: xpressme_class.php:108 
    3034msgid "XPressME Configuration Page" 
    3135msgstr "XPressMEの設定ページ" 
    3236 
    33 #: xpressme_class.php:105 
     37#: xpressme_class.php:112 
    3438msgid "Media Upload Base Path" 
    3539msgstr "メディアアップロードのベースパス設定" 
    3640 
    37 #: xpressme_class.php:106 
     41#: xpressme_class.php:113 
    3842msgid "Use XOOPS UPLOAD PATH" 
    3943msgstr "XOOPSのアップロードパスを使用する。" 
    4044 
    41 #: xpressme_class.php:107 
     45#: xpressme_class.php:114 
    4246msgid "USE WordPress BASE_PATH" 
    4347msgstr "WordPressのベースパスを使用する。" 
    4448 
    45 #: xpressme_class.php:114 
     49#: xpressme_class.php:117 
     50msgid "Thema Sidebar Display" 
     51msgstr "テーマ表示時にサイドバー表示する。" 
     52 
     53#: xpressme_class.php:122 
     54msgid "The change tracking of the post is preserved" 
     55msgstr "投稿の変更履歴を有効にする。" 
     56 
     57#: xpressme_class.php:131 
    4658msgid "Update Config" 
    4759msgstr "更新" 
    4860 
    49 #: xpressme_class.php:115 
     61#: xpressme_class.php:132 
    5062msgid "Preset Config" 
    5163msgstr "プリセット" 
  • trunk/wp-content/plugins/xpressme/xpressme.php

    r19 r28  
    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() 
     16if (!$xpressme->is_save_post_revision){ 
     17        remove_action( 'pre_post_update', 'wp_save_post_revision' );                    // Not Save Post Revision 
     18} 
    1619 
    1720?> 
  • trunk/wp-content/plugins/xpressme/xpressme_class.php

    r26 r28  
    77        var $is_use_xoops_upload_path; 
    88        var $is_theme_sidebar_disp; 
    9          
     9        var $is_save_post_revision; 
    1010        //constructor 
    1111        function XPressME_Class() 
     
    3232                $this->is_use_xoops_upload_path = true; 
    3333                $this->is_theme_sidebar_disp = true; 
     34                $this->is_save_post_revision = true; 
    3435        } 
    3536         
     
    6566                $this->is_use_xoops_upload_path = stripslashes(trim($_POST['ch_is_use_xoops_upload_path'])); 
    6667                $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'])); 
    6769        } 
    6870         
     
    116118                                                                                                __('NO','xpressme') 
    117119                                                                                                ); 
     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                                                                                                ); 
    118125                         
    119126//              $this->is_use_xoops_upload_path_html(); 
     
    149156                return $uploads; 
    150157        }        
     158 
    151159} 
    152160?> 
Note: See TracChangeset for help on using the changeset viewer.