Custom Field Template - Version 0.6.4

Version Description

Download this release

Release Info

Developer Hiroaki Miyashita
Plugin Icon 128x128 Custom Field Template
Version 0.6.4
Comparing to
See all releases

Code changes from version 0.6.3 to 0.6.4

custom-field-template-ja.mo CHANGED
Binary file
custom-field-template-ja.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-11-18 01:23+0900\n"
6
- "PO-Revision-Date: 2008-11-18 01:27+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -19,8 +19,8 @@ msgstr ""
19
  #: custom-field-template/custom-field-template.php:80
20
  #: custom-field-template/custom-field-template.php:81
21
  #: custom-field-template/custom-field-template.php:157
22
- #: custom-field-template/custom-field-template.php:196
23
- #: custom-field-template/custom-field-template.php:665
24
  msgid "Custom Field Template"
25
  msgstr "カスタムフィールドテンプレート"
26
 
@@ -34,121 +34,135 @@ msgstr "デフォルトテンプレート"
34
 
35
  #: custom-field-template/custom-field-template.php:176
36
  #: custom-field-template/custom-field-template.php:180
 
37
  msgid "Options updated."
38
  msgstr "オプションは更新されました。"
39
 
40
- #: custom-field-template/custom-field-template.php:185
41
  msgid "Options resetted."
42
  msgstr "オプションはリセットされました。"
43
 
44
- #: custom-field-template/custom-field-template.php:189
45
  msgid "Options deleted."
46
  msgstr "オプションは削除されました。"
47
 
48
- #: custom-field-template/custom-field-template.php:201
49
  msgid "Custom Field Template Options"
50
  msgstr "カスタムフィールドテンプレートオプション"
51
 
52
- #: custom-field-template/custom-field-template.php:210
53
  #, php-format
54
  msgid "Template Title %d"
55
  msgstr "テンプレートタイトル %d"
56
 
57
- #: custom-field-template/custom-field-template.php:212
58
  #, php-format
59
  msgid "Template Content %d"
60
  msgstr "テンプレートコンテンツ %d"
61
 
62
- #: custom-field-template/custom-field-template.php:219
63
  msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
64
  msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
65
 
66
- #: custom-field-template/custom-field-template.php:220
67
  msgid "Use multiple image inset"
68
  msgstr "複数画像挿入を利用する"
69
 
70
- #: custom-field-template/custom-field-template.php:220
71
  msgid "Caution:"
72
  msgstr "ご注意:"
73
 
74
- #: custom-field-template/custom-field-template.php:220
75
  msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor at around line 88-96."
76
  msgstr "`wp-admin/includes/media.php`を編集する必要があります。88-96行目の media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
77
 
78
- #: custom-field-template/custom-field-template.php:224
79
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
80
  msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
81
 
82
- #: custom-field-template/custom-field-template.php:225
83
  msgid "Use labels in place of custom keys"
84
  msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
85
 
86
- #: custom-field-template/custom-field-template.php:228
87
  msgid "In case that you would like to add p and br tags in textareas automatically"
88
  msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
89
 
90
- #: custom-field-template/custom-field-template.php:229
91
  msgid "Use wpautop function"
92
  msgstr "wpautop関数を使用する"
93
 
94
- #: custom-field-template/custom-field-template.php:233
95
- #: custom-field-template/custom-field-template.php:253
 
96
  msgid "Update Options »"
97
  msgstr "オプションを更新する »"
98
 
99
- #: custom-field-template/custom-field-template.php:244
100
- msgid "Admin CSS"
101
- msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
102
 
103
- #: custom-field-template/custom-field-template.php:264
104
  msgid "Option List"
105
  msgstr "オプションリスト"
106
 
107
- #: custom-field-template/custom-field-template.php:318
108
  msgid "Reset Options"
109
  msgstr "オプションをリセットする"
110
 
111
- #: custom-field-template/custom-field-template.php:320
112
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
113
  msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
114
 
115
- #: custom-field-template/custom-field-template.php:324
116
  msgid "Unset Options »"
117
  msgstr "オプションをリセットする »"
118
 
119
- #: custom-field-template/custom-field-template.php:335
120
  msgid "Delete Options"
121
  msgstr "オプションを削除する"
122
 
123
- #: custom-field-template/custom-field-template.php:337
124
  msgid "Are you sure to delete options? Options you set will be deleted."
125
  msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
126
 
127
- #: custom-field-template/custom-field-template.php:341
128
  msgid "Delete Options »"
129
  msgstr "オプションを削除する »"
130
 
131
- #: custom-field-template/custom-field-template.php:475
132
  msgid "Clear"
133
  msgstr "解除"
134
 
135
- #: custom-field-template/custom-field-template.php:568
136
  msgid "Add Media"
137
  msgstr ""
138
 
139
- #: custom-field-template/custom-field-template.php:570
140
  msgid "Add an Image"
141
  msgstr ""
142
 
143
- #: custom-field-template/custom-field-template.php:572
144
  msgid "Add Video"
145
  msgstr ""
146
 
147
- #: custom-field-template/custom-field-template.php:574
148
  msgid "Add Audio"
149
  msgstr ""
150
 
151
- #: custom-field-template/custom-field-template.php:585
152
  msgid "Toggle"
153
  msgstr "切り替え"
154
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-06 04:36+0900\n"
6
+ "PO-Revision-Date: 2008-12-06 04:38+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
19
  #: custom-field-template/custom-field-template.php:80
20
  #: custom-field-template/custom-field-template.php:81
21
  #: custom-field-template/custom-field-template.php:157
22
+ #: custom-field-template/custom-field-template.php:204
23
+ #: custom-field-template/custom-field-template.php:716
24
  msgid "Custom Field Template"
25
  msgstr "カスタムフィールドテンプレート"
26
 
34
 
35
  #: custom-field-template/custom-field-template.php:176
36
  #: custom-field-template/custom-field-template.php:180
37
+ #: custom-field-template/custom-field-template.php:188
38
  msgid "Options updated."
39
  msgstr "オプションは更新されました。"
40
 
41
+ #: custom-field-template/custom-field-template.php:193
42
  msgid "Options resetted."
43
  msgstr "オプションはリセットされました。"
44
 
45
+ #: custom-field-template/custom-field-template.php:197
46
  msgid "Options deleted."
47
  msgstr "オプションは削除されました。"
48
 
49
+ #: custom-field-template/custom-field-template.php:209
50
  msgid "Custom Field Template Options"
51
  msgstr "カスタムフィールドテンプレートオプション"
52
 
53
+ #: custom-field-template/custom-field-template.php:218
54
  #, php-format
55
  msgid "Template Title %d"
56
  msgstr "テンプレートタイトル %d"
57
 
58
+ #: custom-field-template/custom-field-template.php:220
59
  #, php-format
60
  msgid "Template Content %d"
61
  msgstr "テンプレートコンテンツ %d"
62
 
63
+ #: custom-field-template/custom-field-template.php:227
64
  msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
65
  msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
66
 
67
+ #: custom-field-template/custom-field-template.php:228
68
  msgid "Use multiple image inset"
69
  msgstr "複数画像挿入を利用する"
70
 
71
+ #: custom-field-template/custom-field-template.php:228
72
  msgid "Caution:"
73
  msgstr "ご注意:"
74
 
75
+ #: custom-field-template/custom-field-template.php:228
76
  msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor at around line 88-96."
77
  msgstr "`wp-admin/includes/media.php`を編集する必要があります。88-96行目の media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
78
 
79
+ #: custom-field-template/custom-field-template.php:232
80
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
81
  msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
82
 
83
+ #: custom-field-template/custom-field-template.php:233
84
  msgid "Use labels in place of custom keys"
85
  msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
86
 
87
+ #: custom-field-template/custom-field-template.php:236
88
  msgid "In case that you would like to add p and br tags in textareas automatically"
89
  msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
90
 
91
+ #: custom-field-template/custom-field-template.php:237
92
  msgid "Use wpautop function"
93
  msgstr "wpautop関数を使用する"
94
 
95
+ #: custom-field-template/custom-field-template.php:241
96
+ #: custom-field-template/custom-field-template.php:261
97
+ #: custom-field-template/custom-field-template.php:289
98
  msgid "Update Options »"
99
  msgstr "オプションを更新する »"
100
 
101
+ #: custom-field-template/custom-field-template.php:252
102
+ msgid "CSS"
103
+ msgstr "CSS"
104
+
105
+ #: custom-field-template/custom-field-template.php:272
106
+ msgid "PHP CODE (Experimental Option)"
107
+ msgstr "PHP CODE (Experimental Option)"
108
+
109
+ #: custom-field-template/custom-field-template.php:274
110
+ msgid "Are you sure to save PHP codes? Please do it at your own risk."
111
+ msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
112
+
113
+ #: custom-field-template/custom-field-template.php:275
114
+ msgid "This option is available only for `radio` and `select` types. You must set $values as an array."
115
+ msgstr "このオプションは`radio`と`select`のtypeで有効です。配列として$valuesをセットしなければいけません。"
116
 
117
+ #: custom-field-template/custom-field-template.php:300
118
  msgid "Option List"
119
  msgstr "オプションリスト"
120
 
121
+ #: custom-field-template/custom-field-template.php:357
122
  msgid "Reset Options"
123
  msgstr "オプションをリセットする"
124
 
125
+ #: custom-field-template/custom-field-template.php:359
126
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
127
  msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
128
 
129
+ #: custom-field-template/custom-field-template.php:363
130
  msgid "Unset Options »"
131
  msgstr "オプションをリセットする »"
132
 
133
+ #: custom-field-template/custom-field-template.php:374
134
  msgid "Delete Options"
135
  msgstr "オプションを削除する"
136
 
137
+ #: custom-field-template/custom-field-template.php:376
138
  msgid "Are you sure to delete options? Options you set will be deleted."
139
  msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
140
 
141
+ #: custom-field-template/custom-field-template.php:380
142
  msgid "Delete Options »"
143
  msgstr "オプションを削除する »"
144
 
145
+ #: custom-field-template/custom-field-template.php:518
146
  msgid "Clear"
147
  msgstr "解除"
148
 
149
+ #: custom-field-template/custom-field-template.php:619
150
  msgid "Add Media"
151
  msgstr ""
152
 
153
+ #: custom-field-template/custom-field-template.php:621
154
  msgid "Add an Image"
155
  msgstr ""
156
 
157
+ #: custom-field-template/custom-field-template.php:623
158
  msgid "Add Video"
159
  msgstr ""
160
 
161
+ #: custom-field-template/custom-field-template.php:625
162
  msgid "Add Audio"
163
  msgstr ""
164
 
165
+ #: custom-field-template/custom-field-template.php:636
166
  msgid "Toggle"
167
  msgstr "切り替え"
168
 
custom-field-template.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
4
  Plugin URI: http://wordpressgogo.com/development/custom-field-template.html
5
  Description: This plugin adds the default custom fields on the Write Post/Page.
6
  Author: Hiroaki Miyashita
7
- Version: 0.6.3
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -178,6 +178,14 @@ mediaButton = true';
178
  $options['css'] = $_POST['custom_field_template_css'];
179
  update_option('custom_field_template_data', $options);
180
  $message = __('Options updated.', 'custom-field-template');
 
 
 
 
 
 
 
 
181
  elseif ($_POST['custom_field_template_unset_options_submit']) :
182
  $this->install_custom_field_template_data();
183
  $this->install_custom_field_template_css();
@@ -241,7 +249,7 @@ mediaButton = true';
241
 
242
  <div id="poststuff" class="ui-sortable">
243
  <div class="postbox closed">
244
- <h3><?php _e('Admin CSS', 'custom-field-template'); ?></h3>
245
  <div class="inside">
246
  <form method="post">
247
  <table class="form-table" style="margin-bottom:5px;">
@@ -259,6 +267,34 @@ mediaButton = true';
259
  </div>
260
  </div>
261
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  <div id="poststuff" class="ui-sortable">
263
  <div class="postbox closed">
264
  <h3><?php _e('Option List', 'custom-field-template'); ?></h3>
@@ -307,6 +343,9 @@ hideKey = true<br />
307
  <tr>
308
  <th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
309
  </tr>
 
 
 
310
  </tbody>
311
  </table>
312
  </div>
@@ -447,11 +486,15 @@ jQuery(this).addClass("closed");
447
  return $out;
448
  }
449
 
450
- function make_radio( $name, $sid, $values, $clearButton, $default, $hideKey, $label ) {
451
  $options = $this->get_custom_field_template_data();
452
 
453
  $title = $name;
454
  $name = $this->sanitize_name( $name );
 
 
 
 
455
 
456
  if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 ) {
457
  $selected = get_post_meta( $_REQUEST[ 'post' ], $title );
@@ -495,12 +538,16 @@ jQuery(this).addClass("closed");
495
  return $out;
496
  }
497
 
498
- function make_select( $name, $sid, $values, $default, $hideKey, $label ) {
499
  $options = $this->get_custom_field_template_data();
500
 
501
  $title = $name;
502
  $name = $this->sanitize_name( $name );
503
-
 
 
 
 
504
  if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 ) {
505
  $selected = get_post_meta( $_REQUEST[ 'post' ], $title );
506
  if ( $selected ) {
@@ -525,7 +572,7 @@ jQuery(this).addClass("closed");
525
  $out .= '<p class="label">' . stripcslashes($label) . '</p>';
526
  $out .= '<select name="' . $name . '[]">' .
527
  '<option value="" >Select</option>';
528
-
529
  foreach( $values as $val ) {
530
  $checked = ( trim( $val ) == trim( $selected ) ) ? 'selected="selected"' : '';
531
 
@@ -630,12 +677,12 @@ EOF;
630
  else if( $data[$i]['type'] == 'radio' ) {
631
  $out .=
632
  $this->make_radio(
633
- $title, $i, explode( '#', $data[$i]['value'] ), $data[$i]['clearButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'] );
634
  }
635
  else if( $data[$i]['type'] == 'select' ) {
636
  $out .=
637
  $this->make_select(
638
- $title, $i, explode( '#', $data[$i]['value'] ), $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'] );
639
  }
640
  else if( $data[$i]['type'] == 'textarea' ) {
641
  if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data[$i]['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
4
  Plugin URI: http://wordpressgogo.com/development/custom-field-template.html
5
  Description: This plugin adds the default custom fields on the Write Post/Page.
6
  Author: Hiroaki Miyashita
7
+ Version: 0.6.4
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
178
  $options['css'] = $_POST['custom_field_template_css'];
179
  update_option('custom_field_template_data', $options);
180
  $message = __('Options updated.', 'custom-field-template');
181
+ elseif ($_POST['custom_field_template_php_submit']) :
182
+ unset($options['php']);
183
+ for($i=0;$i<count($_POST["custom_field_template_php"]);$i++) {
184
+ if( $_POST["custom_field_template_php"][$i] )
185
+ $options['php'][] = $_POST["custom_field_template_php"][$i];
186
+ }
187
+ update_option('custom_field_template_data', $options);
188
+ $message = __('Options updated.', 'custom-field-template');
189
  elseif ($_POST['custom_field_template_unset_options_submit']) :
190
  $this->install_custom_field_template_data();
191
  $this->install_custom_field_template_css();
249
 
250
  <div id="poststuff" class="ui-sortable">
251
  <div class="postbox closed">
252
+ <h3><?php _e('CSS', 'custom-field-template'); ?></h3>
253
  <div class="inside">
254
  <form method="post">
255
  <table class="form-table" style="margin-bottom:5px;">
267
  </div>
268
  </div>
269
 
270
+ <div id="poststuff" class="ui-sortable">
271
+ <div class="postbox closed">
272
+ <h3><?php _e('PHP CODE (Experimental Option)', 'custom-field-template'); ?></h3>
273
+ <div class="inside">
274
+ <form method="post" onsubmit="return confirm('<?php _e('Are you sure to save PHP codes? Please do it at your own risk.', 'custom-field-template'); ?>');">
275
+ <p><?php _e('This option is available only for `radio` and `select` types. You must set $values as an array.', 'custom-field-template'); ?><br />ex. $values = array('dog', 'cat', 'monkey'); $default = 'cat';</p>
276
+ <table class="form-table" style="margin-bottom:5px;">
277
+ <tbody>
278
+ <?php
279
+ for ($i=0;$i<count($options['php'])+1;$i++) :
280
+ ?>
281
+ <tr><th>CODE# <?= $i ?></th></tr>
282
+ <tr><td>
283
+ <p><textarea name="custom_field_template_php[]" rows="10" cols="60"><?= stripcslashes($options['php'][$i]) ?></textarea></p>
284
+ </td></tr>
285
+ <?php
286
+ endfor;
287
+ ?>
288
+ <tr><td>
289
+ <p><input type="submit" name="custom_field_template_php_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" /></p>
290
+ </td></tr>
291
+ </tbody>
292
+ </table>
293
+ </form>
294
+ </div>
295
+ </div>
296
+ </div>
297
+
298
  <div id="poststuff" class="ui-sortable">
299
  <div class="postbox closed">
300
  <h3><?php _e('Option List', 'custom-field-template'); ?></h3>
343
  <tr>
344
  <th>mediaButton</th><td></td><td></td><td></td><td></td><td>mediaButton = true</td>
345
  </tr>
346
+ <tr>
347
+ <th>code</th>><td></td><td></td><td>code = 0</td><td>code = 0</td><td></td>
348
+ </tr>
349
  </tbody>
350
  </table>
351
  </div>
486
  return $out;
487
  }
488
 
489
+ function make_radio( $name, $sid, $values, $clearButton, $default, $hideKey, $label, $code ) {
490
  $options = $this->get_custom_field_template_data();
491
 
492
  $title = $name;
493
  $name = $this->sanitize_name( $name );
494
+
495
+ if ( is_numeric($code) ) :
496
+ eval(stripcslashes($options['php'][$code]));
497
+ endif;
498
 
499
  if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 ) {
500
  $selected = get_post_meta( $_REQUEST[ 'post' ], $title );
538
  return $out;
539
  }
540
 
541
+ function make_select( $name, $sid, $values, $default, $hideKey, $label, $code ) {
542
  $options = $this->get_custom_field_template_data();
543
 
544
  $title = $name;
545
  $name = $this->sanitize_name( $name );
546
+
547
+ if ( is_numeric($code) ) :
548
+ eval(stripcslashes($options['php'][$code]));
549
+ endif;
550
+
551
  if( isset( $_REQUEST[ 'post' ] ) && $_REQUEST[ 'post' ] > 0 ) {
552
  $selected = get_post_meta( $_REQUEST[ 'post' ], $title );
553
  if ( $selected ) {
572
  $out .= '<p class="label">' . stripcslashes($label) . '</p>';
573
  $out .= '<select name="' . $name . '[]">' .
574
  '<option value="" >Select</option>';
575
+
576
  foreach( $values as $val ) {
577
  $checked = ( trim( $val ) == trim( $selected ) ) ? 'selected="selected"' : '';
578
 
677
  else if( $data[$i]['type'] == 'radio' ) {
678
  $out .=
679
  $this->make_radio(
680
+ $title, $i, explode( '#', $data[$i]['value'] ), $data[$i]['clearButton'], $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'] );
681
  }
682
  else if( $data[$i]['type'] == 'select' ) {
683
  $out .=
684
  $this->make_select(
685
+ $title, $i, explode( '#', $data[$i]['value'] ), $data[$i]['default'], $data[$i]['hideKey'], $data[$i]['label'], $data[$i]['code'] );
686
  }
687
  else if( $data[$i]['type'] == 'textarea' ) {
688
  if ( $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i] ) $data[$i]['rows'] = $options['tinyMCE'][$_REQUEST['post']][$this->sanitize_name($title)][$i];
custom-field-template.pot CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-11-18 01:25+0900\n"
6
- "PO-Revision-Date: 2008-11-18 01:25+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
@@ -16,8 +16,8 @@ msgstr ""
16
  #: custom-field-template/custom-field-template.php:80
17
  #: custom-field-template/custom-field-template.php:81
18
  #: custom-field-template/custom-field-template.php:157
19
- #: custom-field-template/custom-field-template.php:196
20
- #: custom-field-template/custom-field-template.php:665
21
  msgid "Custom Field Template"
22
  msgstr ""
23
 
@@ -31,121 +31,135 @@ msgstr ""
31
 
32
  #: custom-field-template/custom-field-template.php:176
33
  #: custom-field-template/custom-field-template.php:180
 
34
  msgid "Options updated."
35
  msgstr ""
36
 
37
- #: custom-field-template/custom-field-template.php:185
38
  msgid "Options resetted."
39
  msgstr ""
40
 
41
- #: custom-field-template/custom-field-template.php:189
42
  msgid "Options deleted."
43
  msgstr ""
44
 
45
- #: custom-field-template/custom-field-template.php:201
46
  msgid "Custom Field Template Options"
47
  msgstr ""
48
 
49
- #: custom-field-template/custom-field-template.php:210
50
  #, php-format
51
  msgid "Template Title %d"
52
  msgstr ""
53
 
54
- #: custom-field-template/custom-field-template.php:212
55
  #, php-format
56
  msgid "Template Content %d"
57
  msgstr ""
58
 
59
- #: custom-field-template/custom-field-template.php:219
60
  msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
61
  msgstr ""
62
 
63
- #: custom-field-template/custom-field-template.php:220
64
  msgid "Use multiple image inset"
65
  msgstr ""
66
 
67
- #: custom-field-template/custom-field-template.php:220
68
  msgid "Caution:"
69
  msgstr ""
70
 
71
- #: custom-field-template/custom-field-template.php:220
72
  msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor at around line 88-96."
73
  msgstr ""
74
 
75
- #: custom-field-template/custom-field-template.php:224
76
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
77
  msgstr ""
78
 
79
- #: custom-field-template/custom-field-template.php:225
80
  msgid "Use labels in place of custom keys"
81
  msgstr ""
82
 
83
- #: custom-field-template/custom-field-template.php:228
84
  msgid "In case that you would like to add p and br tags in textareas automatically"
85
  msgstr ""
86
 
87
- #: custom-field-template/custom-field-template.php:229
88
  msgid "Use wpautop function"
89
  msgstr ""
90
 
91
- #: custom-field-template/custom-field-template.php:233
92
- #: custom-field-template/custom-field-template.php:253
 
93
  msgid "Update Options &raquo;"
94
  msgstr ""
95
 
96
- #: custom-field-template/custom-field-template.php:244
97
- msgid "Admin CSS"
 
 
 
 
 
 
 
 
 
 
 
 
98
  msgstr ""
99
 
100
- #: custom-field-template/custom-field-template.php:264
101
  msgid "Option List"
102
  msgstr ""
103
 
104
- #: custom-field-template/custom-field-template.php:318
105
  msgid "Reset Options"
106
  msgstr ""
107
 
108
- #: custom-field-template/custom-field-template.php:320
109
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
110
  msgstr ""
111
 
112
- #: custom-field-template/custom-field-template.php:324
113
  msgid "Unset Options &raquo;"
114
  msgstr ""
115
 
116
- #: custom-field-template/custom-field-template.php:335
117
  msgid "Delete Options"
118
  msgstr ""
119
 
120
- #: custom-field-template/custom-field-template.php:337
121
  msgid "Are you sure to delete options? Options you set will be deleted."
122
  msgstr ""
123
 
124
- #: custom-field-template/custom-field-template.php:341
125
  msgid "Delete Options &raquo;"
126
  msgstr ""
127
 
128
- #: custom-field-template/custom-field-template.php:475
129
  msgid "Clear"
130
  msgstr ""
131
 
132
- #: custom-field-template/custom-field-template.php:568
133
  msgid "Add Media"
134
  msgstr ""
135
 
136
- #: custom-field-template/custom-field-template.php:570
137
  msgid "Add an Image"
138
  msgstr ""
139
 
140
- #: custom-field-template/custom-field-template.php:572
141
  msgid "Add Video"
142
  msgstr ""
143
 
144
- #: custom-field-template/custom-field-template.php:574
145
  msgid "Add Audio"
146
  msgstr ""
147
 
148
- #: custom-field-template/custom-field-template.php:585
149
  msgid "Toggle"
150
  msgstr ""
151
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-06 04:50+0900\n"
6
+ "PO-Revision-Date: 2008-12-06 04:50+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
16
  #: custom-field-template/custom-field-template.php:80
17
  #: custom-field-template/custom-field-template.php:81
18
  #: custom-field-template/custom-field-template.php:157
19
+ #: custom-field-template/custom-field-template.php:204
20
+ #: custom-field-template/custom-field-template.php:716
21
  msgid "Custom Field Template"
22
  msgstr ""
23
 
31
 
32
  #: custom-field-template/custom-field-template.php:176
33
  #: custom-field-template/custom-field-template.php:180
34
+ #: custom-field-template/custom-field-template.php:188
35
  msgid "Options updated."
36
  msgstr ""
37
 
38
+ #: custom-field-template/custom-field-template.php:193
39
  msgid "Options resetted."
40
  msgstr ""
41
 
42
+ #: custom-field-template/custom-field-template.php:197
43
  msgid "Options deleted."
44
  msgstr ""
45
 
46
+ #: custom-field-template/custom-field-template.php:209
47
  msgid "Custom Field Template Options"
48
  msgstr ""
49
 
50
+ #: custom-field-template/custom-field-template.php:218
51
  #, php-format
52
  msgid "Template Title %d"
53
  msgstr ""
54
 
55
+ #: custom-field-template/custom-field-template.php:220
56
  #, php-format
57
  msgid "Template Content %d"
58
  msgstr ""
59
 
60
+ #: custom-field-template/custom-field-template.php:227
61
  msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
62
  msgstr ""
63
 
64
+ #: custom-field-template/custom-field-template.php:228
65
  msgid "Use multiple image inset"
66
  msgstr ""
67
 
68
+ #: custom-field-template/custom-field-template.php:228
69
  msgid "Caution:"
70
  msgstr ""
71
 
72
+ #: custom-field-template/custom-field-template.php:228
73
  msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor at around line 88-96."
74
  msgstr ""
75
 
76
+ #: custom-field-template/custom-field-template.php:232
77
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
78
  msgstr ""
79
 
80
+ #: custom-field-template/custom-field-template.php:233
81
  msgid "Use labels in place of custom keys"
82
  msgstr ""
83
 
84
+ #: custom-field-template/custom-field-template.php:236
85
  msgid "In case that you would like to add p and br tags in textareas automatically"
86
  msgstr ""
87
 
88
+ #: custom-field-template/custom-field-template.php:237
89
  msgid "Use wpautop function"
90
  msgstr ""
91
 
92
+ #: custom-field-template/custom-field-template.php:241
93
+ #: custom-field-template/custom-field-template.php:261
94
+ #: custom-field-template/custom-field-template.php:289
95
  msgid "Update Options &raquo;"
96
  msgstr ""
97
 
98
+ #: custom-field-template/custom-field-template.php:252
99
+ msgid "CSS"
100
+ msgstr ""
101
+
102
+ #: custom-field-template/custom-field-template.php:272
103
+ msgid "PHP CODE (Experimental Option)"
104
+ msgstr ""
105
+
106
+ #: custom-field-template/custom-field-template.php:274
107
+ msgid "Are you sure to save PHP codes? Please do it at your own risk."
108
+ msgstr ""
109
+
110
+ #: custom-field-template/custom-field-template.php:275
111
+ msgid "This option is available only for `radio` and `select` types. You must set $values as an array."
112
  msgstr ""
113
 
114
+ #: custom-field-template/custom-field-template.php:300
115
  msgid "Option List"
116
  msgstr ""
117
 
118
+ #: custom-field-template/custom-field-template.php:357
119
  msgid "Reset Options"
120
  msgstr ""
121
 
122
+ #: custom-field-template/custom-field-template.php:359
123
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
124
  msgstr ""
125
 
126
+ #: custom-field-template/custom-field-template.php:363
127
  msgid "Unset Options &raquo;"
128
  msgstr ""
129
 
130
+ #: custom-field-template/custom-field-template.php:374
131
  msgid "Delete Options"
132
  msgstr ""
133
 
134
+ #: custom-field-template/custom-field-template.php:376
135
  msgid "Are you sure to delete options? Options you set will be deleted."
136
  msgstr ""
137
 
138
+ #: custom-field-template/custom-field-template.php:380
139
  msgid "Delete Options &raquo;"
140
  msgstr ""
141
 
142
+ #: custom-field-template/custom-field-template.php:518
143
  msgid "Clear"
144
  msgstr ""
145
 
146
+ #: custom-field-template/custom-field-template.php:619
147
  msgid "Add Media"
148
  msgstr ""
149
 
150
+ #: custom-field-template/custom-field-template.php:621
151
  msgid "Add an Image"
152
  msgstr ""
153
 
154
+ #: custom-field-template/custom-field-template.php:623
155
  msgid "Add Video"
156
  msgstr ""
157
 
158
+ #: custom-field-template/custom-field-template.php:625
159
  msgid "Add Audio"
160
  msgstr ""
161
 
162
+ #: custom-field-template/custom-field-template.php:636
163
  msgid "Toggle"
164
  msgstr ""
165
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Hiroaki Miyashita
3
  Donate link: http://wordpressgogo.com/development/custom-field-template.html
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
- Tested up to: 2.7 beta 3
7
- Stable tag: 0.6.3
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -22,6 +22,7 @@ The Custom Field Template plugin adds the default custom fields on the Write Pos
22
  * You can customize the design of custom field template with css.
23
  * You can replace custom keys by labels.
24
  * You can use wpautop function.
 
25
 
26
  == Installation ==
27
 
3
  Donate link: http://wordpressgogo.com/development/custom-field-template.html
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
+ Tested up to: 2.7
7
+ Stable tag: 0.6.4
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
22
  * You can customize the design of custom field template with css.
23
  * You can replace custom keys by labels.
24
  * You can use wpautop function.
25
+ * You can use PHP codes in order to set values. (experimental)
26
 
27
  == Installation ==
28