Custom Field Template - Version 0.7.1

Version Description

Download this release

Release Info

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

Code changes from version 0.7 to 0.7.1

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-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"
@@ -16,153 +16,166 @@ msgstr ""
16
  "X-Poedit-Basepath: ../\n"
17
  "X-Poedit-SearchPath-0: custom-field-template\n"
18
 
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
 
27
- #: custom-field-template/custom-field-template.php:92
28
  msgid "Settings"
29
  msgstr "設定"
30
 
31
- #: custom-field-template/custom-field-template.php:103
32
  msgid "Default Template"
33
  msgstr "デフォルトテンプレート"
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
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-12 15:19+0900\n"
6
+ "PO-Revision-Date: 2008-12-12 15:19+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
16
  "X-Poedit-Basepath: ../\n"
17
  "X-Poedit-SearchPath-0: custom-field-template\n"
18
 
19
+ #: custom-field-template/custom-field-template.php:83
20
+ #: custom-field-template/custom-field-template.php:84
21
+ #: custom-field-template/custom-field-template.php:161
22
+ #: custom-field-template/custom-field-template.php:210
23
+ #: custom-field-template/custom-field-template.php:740
24
  msgid "Custom Field Template"
25
  msgstr "カスタムフィールドテンプレート"
26
 
27
+ #: custom-field-template/custom-field-template.php:95
28
  msgid "Settings"
29
  msgstr "設定"
30
 
31
+ #: custom-field-template/custom-field-template.php:106
32
  msgid "Default Template"
33
  msgstr "デフォルトテンプレート"
34
 
35
+ #: custom-field-template/custom-field-template.php:181
36
+ #: custom-field-template/custom-field-template.php:185
37
+ #: custom-field-template/custom-field-template.php:193
38
  msgid "Options updated."
39
  msgstr "オプションは更新されました。"
40
 
41
+ #: custom-field-template/custom-field-template.php:198
42
  msgid "Options resetted."
43
  msgstr "オプションはリセットされました。"
44
 
45
+ #: custom-field-template/custom-field-template.php:202
46
  msgid "Options deleted."
47
  msgstr "オプションは削除されました。"
48
 
49
+ #: custom-field-template/custom-field-template.php:216
50
  msgid "Custom Field Template Options"
51
  msgstr "カスタムフィールドテンプレートオプション"
52
 
53
+ #: custom-field-template/custom-field-template.php:226
54
  #, php-format
55
  msgid "Template Title %d"
56
  msgstr "テンプレートタイトル %d"
57
 
58
+ #: custom-field-template/custom-field-template.php:228
59
+ #, php-format
60
+ msgid "Template Instruction %d"
61
+ msgstr "テンプレートインストラクション %d"
62
+
63
+ #: custom-field-template/custom-field-template.php:230
64
  #, php-format
65
  msgid "Template Content %d"
66
  msgstr "テンプレートコンテンツ %d"
67
 
68
+ #: custom-field-template/custom-field-template.php:237
69
  msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
70
  msgstr "カスタムフィールへの画像挿入を一度に複数枚実行する場合"
71
 
72
+ #: custom-field-template/custom-field-template.php:238
73
  msgid "Use multiple image inset"
74
  msgstr "複数画像挿入を利用する"
75
 
76
+ #: custom-field-template/custom-field-template.php:238
77
  msgid "Caution:"
78
  msgstr "ご注意:"
79
 
80
+ #: custom-field-template/custom-field-template.php:238
81
+ msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
82
+ msgstr "`wp-admin/includes/media.php`を編集する必要があります。media_send_to_editor関数の中身を削除するかコメントアウトしてください。"
83
 
84
+ #: custom-field-template/custom-field-template.php:242
85
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
86
  msgstr "`label`がセットされていて、カスタムフィールドのキーの代わりにラベルを表示したい場合"
87
 
88
+ #: custom-field-template/custom-field-template.php:243
89
  msgid "Use labels in place of custom keys"
90
  msgstr "カスタムフィールドのキーの代わりにラベルを使用する"
91
 
92
+ #: custom-field-template/custom-field-template.php:246
93
  msgid "In case that you would like to add p and br tags in textareas automatically"
94
  msgstr "テキストエリアでpタグ、brタグを自動的に追加したい場合"
95
 
96
+ #: custom-field-template/custom-field-template.php:247
97
  msgid "Use wpautop function"
98
  msgstr "wpautop関数を使用する"
99
 
100
+ #: custom-field-template/custom-field-template.php:251
101
+ #: custom-field-template/custom-field-template.php:270
102
+ #: custom-field-template/custom-field-template.php:297
103
  msgid "Update Options »"
104
  msgstr "オプションを更新する »"
105
 
106
+ #: custom-field-template/custom-field-template.php:260
107
+ #: custom-field-template/custom-field-template.php:279
108
+ #: custom-field-template/custom-field-template.php:306
109
+ #: custom-field-template/custom-field-template.php:371
110
+ #: custom-field-template/custom-field-template.php:387
111
+ msgid "Click to toggle"
112
+ msgstr "クリックで切替"
113
+
114
+ #: custom-field-template/custom-field-template.php:261
115
  msgid "CSS"
116
  msgstr "CSS"
117
 
118
+ #: custom-field-template/custom-field-template.php:280
119
  msgid "PHP CODE (Experimental Option)"
120
  msgstr "PHP CODE (Experimental Option)"
121
 
122
+ #: custom-field-template/custom-field-template.php:282
123
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
124
  msgstr "PHPコードを保存してよろしいですか?自己責任で実行してください。"
125
 
126
+ #: custom-field-template/custom-field-template.php:283
127
  msgid "This option is available only for `radio` and `select` types. You must set $values as an array."
128
  msgstr "このオプションは`radio`と`select`のtypeで有効です。配列として$valuesをセットしなければいけません。"
129
 
130
+ #: custom-field-template/custom-field-template.php:307
131
  msgid "Option List"
132
  msgstr "オプションリスト"
133
 
134
+ #: custom-field-template/custom-field-template.php:372
135
  msgid "Reset Options"
136
  msgstr "オプションをリセットする"
137
 
138
+ #: custom-field-template/custom-field-template.php:374
139
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
140
  msgstr "本当にオプションをリセットしてもよろしいですか?設定したオプションはデフォルトの状態に戻ります。"
141
 
142
+ #: custom-field-template/custom-field-template.php:378
143
  msgid "Unset Options »"
144
  msgstr "オプションをリセットする »"
145
 
146
+ #: custom-field-template/custom-field-template.php:388
147
  msgid "Delete Options"
148
  msgstr "オプションを削除する"
149
 
150
+ #: custom-field-template/custom-field-template.php:390
151
  msgid "Are you sure to delete options? Options you set will be deleted."
152
  msgstr "本当にオプションを削除してもよろしいですか?設定したオプションは削除されます。"
153
 
154
+ #: custom-field-template/custom-field-template.php:394
155
  msgid "Delete Options »"
156
  msgstr "オプションを削除する »"
157
 
158
+ #: custom-field-template/custom-field-template.php:532
159
  msgid "Clear"
160
  msgstr "解除"
161
 
162
+ #: custom-field-template/custom-field-template.php:633
163
  msgid "Add Media"
164
  msgstr ""
165
 
166
+ #: custom-field-template/custom-field-template.php:635
167
  msgid "Add an Image"
168
  msgstr ""
169
 
170
+ #: custom-field-template/custom-field-template.php:637
171
  msgid "Add Video"
172
  msgstr ""
173
 
174
+ #: custom-field-template/custom-field-template.php:639
175
  msgid "Add Audio"
176
  msgstr ""
177
 
178
+ #: custom-field-template/custom-field-template.php:650
179
  msgid "Toggle"
180
  msgstr "切り替え"
181
 
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.7
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -20,14 +20,15 @@ class custom_field_template {
20
  add_action( 'admin_menu', array(&$this, 'custom_field_template_admin_menu') );
21
  add_action( 'admin_print_scripts', array(&$this, 'custom_field_template_admin_scripts') );
22
 
23
- add_action( 'edit_post', array(&$this, 'edit_meta_value') );
24
- add_action( 'save_post', array(&$this, 'edit_meta_value') );
25
- add_action( 'publish_post', array(&$this, 'edit_meta_value') );
26
 
27
  add_filter( 'media_send_to_editor', array(&$this, 'media_send_to_custom_field'), 15 );
28
  add_filter( 'plugin_action_links', array(&$this, 'wpaq_filter_plugin_actions',), 10, 2);
29
 
30
- add_shortcode( 'cft', array(&$this, 'output_custom_field_values') );
 
31
  }
32
 
33
  function media_send_to_custom_field($html) {
@@ -145,6 +146,7 @@ mediaButton = true';
145
  #cft dt .hideKey { visibility:hidden; }
146
  #cft dd { float:left; margin:0; text-align:left; width:80%; }
147
  #cft dd p.label { font-weight:bold; margin:0; }
 
148
  ';
149
  update_option('custom_field_template_data', $options);
150
  }
@@ -171,6 +173,7 @@ mediaButton = true';
171
  if( $_POST["custom_field_template_content"][$i] ) {
172
  $options['custom_fields'][$j]['title'] = $_POST["custom_field_template_title"][$i];
173
  $options['custom_fields'][$j]['content'] = $_POST["custom_field_template_content"][$i];
 
174
  $j++;
175
  }
176
  }
@@ -203,11 +206,13 @@ mediaButton = true';
203
  <div id="message" class="updated"><p><?php echo $message; ?></p></div>
204
  <?php endif; ?>
205
  <div class="wrap">
 
206
  <h2><?php _e('Custom Field Template', 'custom-field-template'); ?></h2>
 
207
  <br class="clear"/>
208
 
209
- <div id="poststuff" class="ui-sortable">
210
- <div class="postbox">
211
  <h3><?php _e('Custom Field Template Options', 'custom-field-template'); ?></h3>
212
  <div class="inside">
213
  <form method="post">
@@ -218,9 +223,11 @@ mediaButton = true';
218
  ?>
219
  <tr><td>
220
  <p><strong>TEMPLATE #<?= $i ?></strong></p>
221
- <p><label for="custom_field_template_title[<?= $i ?>]"><?php echo sprintf(__('Template Title %d', 'custom-field-template'), $i+1); ?></label>:<br />
222
  <input type="text" name="custom_field_template_title[<?= $i ?>]" id="custom_field_template_title[<?= $i ?>]" value="<?= stripcslashes($options['custom_fields'][$i]['title']) ?>" size="60" /></p>
223
- <p><label for="custom_field_template_content[<?= $i ?>]"><?php echo sprintf(__('Template Content %d', 'custom-field-template'), $i+1); ?></label>:<br />
 
 
224
  <textarea name="custom_field_template_content[<?= $i ?>]" id="custom_field_template_content[<?= $i ?>]" rows="10" cols="60"><?= stripcslashes($options['custom_fields'][$i]['content']) ?></textarea></p>
225
  </td></tr>
226
  <?php
@@ -228,7 +235,7 @@ mediaButton = true';
228
  ?>
229
  <tr><td>
230
  <p><label for="custom_field_template_use_multiple_insert"><?php _e('In case that you would like to insert multiple images at once in use of the custom field media buttons', 'custom-field-template'); ?></label>:<br />
231
- <input type="checkbox" name="custom_field_template_use_multiple_insert" id="custom_field_template_use_multiple_insert" value="1" <?php if ($options['custom_field_template_use_multiple_insert']) { echo 'checked="checked"'; } ?> /> <?php _e('Use multiple image inset', 'custom-field-template'); ?><br /><span style="color:#FF0000; font-weight:bold;"><?php _e('Caution:', 'custom-field-teplate'); ?> <?php _e('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.', 'custom-field-template'); ?></span></p>
232
  </td>
233
  </tr>
234
  <tr><td>
@@ -241,17 +248,16 @@ mediaButton = true';
241
  </td>
242
  </tr>
243
  <tr><td>
244
- <p><input type="submit" name="custom_field_template_set_options_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" /></p>
245
  </td></tr>
246
  </tbody>
247
  </table>
248
  </form>
249
  </div>
250
  </div>
251
- </div>
252
 
253
- <div id="poststuff" class="ui-sortable">
254
  <div class="postbox closed">
 
255
  <h3><?php _e('CSS', 'custom-field-template'); ?></h3>
256
  <div class="inside">
257
  <form method="post">
@@ -261,17 +267,16 @@ mediaButton = true';
261
  <p><textarea name="custom_field_template_css" id="custom_field_template_css" rows="10" cols="60"><?= stripcslashes($options['css']) ?></textarea></p>
262
  </td></tr>
263
  <tr><td>
264
- <p><input type="submit" name="custom_field_template_css_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" /></p>
265
  </td></tr>
266
  </tbody>
267
  </table>
268
  </form>
269
  </div>
270
  </div>
271
- </div>
272
 
273
- <div id="poststuff" class="ui-sortable">
274
  <div class="postbox closed">
 
275
  <h3><?php _e('PHP CODE (Experimental Option)', 'custom-field-template'); ?></h3>
276
  <div class="inside">
277
  <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'); ?>');">
@@ -289,17 +294,16 @@ mediaButton = true';
289
  endfor;
290
  ?>
291
  <tr><td>
292
- <p><input type="submit" name="custom_field_template_php_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" /></p>
293
  </td></tr>
294
  </tbody>
295
  </table>
296
  </form>
297
  </div>
298
  </div>
299
- </div>
300
 
301
- <div id="poststuff" class="ui-sortable">
302
  <div class="postbox closed">
 
303
  <h3><?php _e('Option List', 'custom-field-template'); ?></h3>
304
  <div class="inside">
305
  ex.<br />
@@ -362,34 +366,32 @@ hideKey = true<br />
362
  </table>
363
  </div>
364
  </div>
365
- </div>
366
 
367
- <div id="poststuff" class="ui-sortable">
368
  <div class="postbox closed">
 
369
  <h3><?php _e('Reset Options', 'custom-field-template'); ?></h3>
370
  <div class="inside">
371
  <form method="post" onsubmit="return confirm('<?php _e('Are you sure to reset options? Options you set will be reset to the default settings.', 'custom-field-template'); ?>');">
372
  <table class="form-table" style="margin-bottom:5px;">
373
  <tbody>
374
  <tr><td>
375
- <p><input type="submit" name="custom_field_template_unset_options_submit" value="<?php _e('Unset Options &raquo;', 'custom-field-template'); ?>" /></p>
376
  </td></tr>
377
  </tbody>
378
  </table>
379
  </form>
380
  </div>
381
  </div>
382
- </div>
383
 
384
- <div id="poststuff" class="ui-sortable">
385
  <div class="postbox closed">
 
386
  <h3><?php _e('Delete Options', 'custom-field-template'); ?></h3>
387
  <div class="inside">
388
  <form method="post" onsubmit="return confirm('<?php _e('Are you sure to delete options? Options you set will be deleted.', 'custom-field-template'); ?>');">
389
  <table class="form-table" style="margin-bottom:5px;">
390
  <tbody>
391
  <tr><td>
392
- <p><input type="submit" name="custom_field_template_delete_options_submit" value="<?php _e('Delete Options &raquo;', 'custom-field-template'); ?>" /></p>
393
  </td></tr>
394
  </tbody>
395
  </table>
@@ -403,6 +405,7 @@ hideKey = true<br />
403
  <?php if ( version_compare( substr($wp_version, 0, 3), '2.7', '<' ) ) { ?>
404
  jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
405
  <?php } ?>
 
406
  jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } );
407
  jQuery('.postbox.close-me').each(function(){
408
  jQuery(this).addClass("closed");
@@ -410,7 +413,6 @@ jQuery(this).addClass("closed");
410
  //-->
411
  </script>
412
 
413
-
414
  </div>
415
  <?php
416
  }
@@ -680,6 +682,9 @@ EOF;
680
  if( $fields == null)
681
  return;
682
 
 
 
 
683
  $out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
684
  foreach( $fields as $title => $data ) {
685
  for($i = 0; $i<count($data); $i++) {
@@ -885,8 +890,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
885
  delete_post_meta($id, $title);
886
  }
887
 
888
- $tags_input = explode(",", $_POST['tags_input']);
889
-
 
890
  foreach( $fields as $title => $data) {
891
  for($i = 0; $i<count($data); $i++) {
892
  $name = $this->sanitize_name( $title );
@@ -909,6 +915,12 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
909
  }
910
 
911
  if ( is_array($tags_input) ) :
 
 
 
 
 
 
912
  $tags_input = array_unique($tags_input);
913
  wp_set_post_tags( $id, $tags_input );
914
  endif;
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.7.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
20
  add_action( 'admin_menu', array(&$this, 'custom_field_template_admin_menu') );
21
  add_action( 'admin_print_scripts', array(&$this, 'custom_field_template_admin_scripts') );
22
 
23
+ add_action( 'edit_post', array(&$this, 'edit_meta_value'), 100 );
24
+ add_action( 'save_post', array(&$this, 'edit_meta_value'), 100 );
25
+ add_action( 'publish_post', array(&$this, 'edit_meta_value'), 100 );
26
 
27
  add_filter( 'media_send_to_editor', array(&$this, 'media_send_to_custom_field'), 15 );
28
  add_filter( 'plugin_action_links', array(&$this, 'wpaq_filter_plugin_actions',), 10, 2);
29
 
30
+ if ( function_exists('add_shortcode') )
31
+ add_shortcode( 'cft', array(&$this, 'output_custom_field_values') );
32
  }
33
 
34
  function media_send_to_custom_field($html) {
146
  #cft dt .hideKey { visibility:hidden; }
147
  #cft dd { float:left; margin:0; text-align:left; width:80%; }
148
  #cft dd p.label { font-weight:bold; margin:0; }
149
+ #cft_instruction { margin:10px; }
150
  ';
151
  update_option('custom_field_template_data', $options);
152
  }
173
  if( $_POST["custom_field_template_content"][$i] ) {
174
  $options['custom_fields'][$j]['title'] = $_POST["custom_field_template_title"][$i];
175
  $options['custom_fields'][$j]['content'] = $_POST["custom_field_template_content"][$i];
176
+ $options['custom_fields'][$j]['instruction'] = $_POST["custom_field_template_instruction"][$i];
177
  $j++;
178
  }
179
  }
206
  <div id="message" class="updated"><p><?php echo $message; ?></p></div>
207
  <?php endif; ?>
208
  <div class="wrap">
209
+ <div id="icon-plugins" class="icon32"><br/></div>
210
  <h2><?php _e('Custom Field Template', 'custom-field-template'); ?></h2>
211
+
212
  <br class="clear"/>
213
 
214
+ <div id="poststuff" class="meta-box-sortables" style="position: relative; margin-top:10px;">
215
+ <div class="stuffbox">
216
  <h3><?php _e('Custom Field Template Options', 'custom-field-template'); ?></h3>
217
  <div class="inside">
218
  <form method="post">
223
  ?>
224
  <tr><td>
225
  <p><strong>TEMPLATE #<?= $i ?></strong></p>
226
+ <p><label for="custom_field_template_title[<?= $i ?>]"><?php echo sprintf(__('Template Title %d', 'custom-field-template'), $i); ?></label>:<br />
227
  <input type="text" name="custom_field_template_title[<?= $i ?>]" id="custom_field_template_title[<?= $i ?>]" value="<?= stripcslashes($options['custom_fields'][$i]['title']) ?>" size="60" /></p>
228
+ <p><label for="custom_field_template_instruction[<?= $i ?>]"><a href="javascript:void(0);" onclick="jQuery(this).parent().next().next().toggle();"><?php echo sprintf(__('Template Instruction %d', 'custom-field-template'), $i); ?></a></label>:<br />
229
+ <textarea name="custom_field_template_instruction[<?= $i ?>]" id="custom_field_template_instruction[<?= $i ?>]" rows="5" cols="60"<?php if ( empty($options['custom_fields'][$i]['instruction']) ) : echo ' style="display:none;"'; endif; ?>><?= stripcslashes($options['custom_fields'][$i]['instruction']) ?></textarea></p>
230
+ <p><label for="custom_field_template_content[<?= $i ?>]"><?php echo sprintf(__('Template Content %d', 'custom-field-template'), $i); ?></label>:<br />
231
  <textarea name="custom_field_template_content[<?= $i ?>]" id="custom_field_template_content[<?= $i ?>]" rows="10" cols="60"><?= stripcslashes($options['custom_fields'][$i]['content']) ?></textarea></p>
232
  </td></tr>
233
  <?php
235
  ?>
236
  <tr><td>
237
  <p><label for="custom_field_template_use_multiple_insert"><?php _e('In case that you would like to insert multiple images at once in use of the custom field media buttons', 'custom-field-template'); ?></label>:<br />
238
+ <input type="checkbox" name="custom_field_template_use_multiple_insert" id="custom_field_template_use_multiple_insert" value="1" <?php if ($options['custom_field_template_use_multiple_insert']) { echo 'checked="checked"'; } ?> /> <?php _e('Use multiple image inset', 'custom-field-template'); ?><br /><span style="color:#FF0000; font-weight:bold;"><?php _e('Caution:', 'custom-field-teplate'); ?> <?php _e('You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor.', 'custom-field-template'); ?></span></p>
239
  </td>
240
  </tr>
241
  <tr><td>
248
  </td>
249
  </tr>
250
  <tr><td>
251
+ <p><input type="submit" name="custom_field_template_set_options_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" class="button-primary" /></p>
252
  </td></tr>
253
  </tbody>
254
  </table>
255
  </form>
256
  </div>
257
  </div>
 
258
 
 
259
  <div class="postbox closed">
260
+ <div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
261
  <h3><?php _e('CSS', 'custom-field-template'); ?></h3>
262
  <div class="inside">
263
  <form method="post">
267
  <p><textarea name="custom_field_template_css" id="custom_field_template_css" rows="10" cols="60"><?= stripcslashes($options['css']) ?></textarea></p>
268
  </td></tr>
269
  <tr><td>
270
+ <p><input type="submit" name="custom_field_template_css_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" class="button-primary" /></p>
271
  </td></tr>
272
  </tbody>
273
  </table>
274
  </form>
275
  </div>
276
  </div>
 
277
 
 
278
  <div class="postbox closed">
279
+ <div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
280
  <h3><?php _e('PHP CODE (Experimental Option)', 'custom-field-template'); ?></h3>
281
  <div class="inside">
282
  <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'); ?>');">
294
  endfor;
295
  ?>
296
  <tr><td>
297
+ <p><input type="submit" name="custom_field_template_php_submit" value="<?php _e('Update Options &raquo;', 'custom-field-template'); ?>" class="button-primary" /></p>
298
  </td></tr>
299
  </tbody>
300
  </table>
301
  </form>
302
  </div>
303
  </div>
 
304
 
 
305
  <div class="postbox closed">
306
+ <div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
307
  <h3><?php _e('Option List', 'custom-field-template'); ?></h3>
308
  <div class="inside">
309
  ex.<br />
366
  </table>
367
  </div>
368
  </div>
 
369
 
 
370
  <div class="postbox closed">
371
+ <div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
372
  <h3><?php _e('Reset Options', 'custom-field-template'); ?></h3>
373
  <div class="inside">
374
  <form method="post" onsubmit="return confirm('<?php _e('Are you sure to reset options? Options you set will be reset to the default settings.', 'custom-field-template'); ?>');">
375
  <table class="form-table" style="margin-bottom:5px;">
376
  <tbody>
377
  <tr><td>
378
+ <p><input type="submit" name="custom_field_template_unset_options_submit" value="<?php _e('Unset Options &raquo;', 'custom-field-template'); ?>" class="button-primary" /></p>
379
  </td></tr>
380
  </tbody>
381
  </table>
382
  </form>
383
  </div>
384
  </div>
 
385
 
 
386
  <div class="postbox closed">
387
+ <div class="handlediv" title="<?php _e('Click to toggle', 'meta-ext'); ?>"><br /></div>
388
  <h3><?php _e('Delete Options', 'custom-field-template'); ?></h3>
389
  <div class="inside">
390
  <form method="post" onsubmit="return confirm('<?php _e('Are you sure to delete options? Options you set will be deleted.', 'custom-field-template'); ?>');">
391
  <table class="form-table" style="margin-bottom:5px;">
392
  <tbody>
393
  <tr><td>
394
+ <p><input type="submit" name="custom_field_template_delete_options_submit" value="<?php _e('Delete Options &raquo;', 'custom-field-template'); ?>" class="button-primary" /></p>
395
  </td></tr>
396
  </tbody>
397
  </table>
405
  <?php if ( version_compare( substr($wp_version, 0, 3), '2.7', '<' ) ) { ?>
406
  jQuery('.postbox h3').prepend('<a class="togbox">+</a> ');
407
  <?php } ?>
408
+ jQuery('.postbox div.handlediv').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } );
409
  jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } );
410
  jQuery('.postbox.close-me').each(function(){
411
  jQuery(this).addClass("closed");
413
  //-->
414
  </script>
415
 
 
416
  </div>
417
  <?php
418
  }
682
  if( $fields == null)
683
  return;
684
 
685
+ if ( $options['custom_fields'][$id]['instruction'] )
686
+ $out .= '<div id="cft_instruction">' . stripcslashes($options['custom_fields'][$id]['instruction']) . '</div>';
687
+
688
  $out .= '<input type="hidden" name="custom-field-template-id" id="custom-field-template-id" value="' . $id . '" />';
689
  foreach( $fields as $title => $data ) {
690
  for($i = 0; $i<count($data); $i++) {
890
  delete_post_meta($id, $title);
891
  }
892
 
893
+ if ( !class_exists('SimpleTags') )
894
+ $tags_input = explode(",", $_POST['tags_input']);
895
+
896
  foreach( $fields as $title => $data) {
897
  for($i = 0; $i<count($data); $i++) {
898
  $name = $this->sanitize_name( $title );
915
  }
916
 
917
  if ( is_array($tags_input) ) :
918
+ if ( class_exists('SimpleTags') ) :
919
+ wp_cache_flush();
920
+ $taxonomy = wp_get_object_terms($id, 'post_tag', array());
921
+ if ( $taxonomy ) foreach($taxonomy as $val) $tags[] = $val->name;
922
+ if ( is_array($tags) ) $tags_input = array_merge($tags, $tags_input);
923
+ endif;
924
  $tags_input = array_unique($tags_input);
925
  wp_set_post_tags( $id, $tags_input );
926
  endif;
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-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"
@@ -13,153 +13,166 @@ msgstr ""
13
  "X-Poedit-Basepath: ../\n"
14
  "X-Poedit-SearchPath-0: custom-field-template\n"
15
 
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
 
24
- #: custom-field-template/custom-field-template.php:92
25
  msgid "Settings"
26
  msgstr ""
27
 
28
- #: custom-field-template/custom-field-template.php:103
29
  msgid "Default Template"
30
  msgstr ""
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
 
2
  msgstr ""
3
  "Project-Id-Version: Custom Field Template\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-12-12 15:19+0900\n"
6
+ "PO-Revision-Date: 2008-12-12 15:20+0900\n"
7
  "Last-Translator: \n"
8
  "Language-Team: \n"
9
  "MIME-Version: 1.0\n"
13
  "X-Poedit-Basepath: ../\n"
14
  "X-Poedit-SearchPath-0: custom-field-template\n"
15
 
16
+ #: custom-field-template/custom-field-template.php:83
17
+ #: custom-field-template/custom-field-template.php:84
18
+ #: custom-field-template/custom-field-template.php:161
19
+ #: custom-field-template/custom-field-template.php:210
20
+ #: custom-field-template/custom-field-template.php:740
21
  msgid "Custom Field Template"
22
  msgstr ""
23
 
24
+ #: custom-field-template/custom-field-template.php:95
25
  msgid "Settings"
26
  msgstr ""
27
 
28
+ #: custom-field-template/custom-field-template.php:106
29
  msgid "Default Template"
30
  msgstr ""
31
 
32
+ #: custom-field-template/custom-field-template.php:181
33
+ #: custom-field-template/custom-field-template.php:185
34
+ #: custom-field-template/custom-field-template.php:193
35
  msgid "Options updated."
36
  msgstr ""
37
 
38
+ #: custom-field-template/custom-field-template.php:198
39
  msgid "Options resetted."
40
  msgstr ""
41
 
42
+ #: custom-field-template/custom-field-template.php:202
43
  msgid "Options deleted."
44
  msgstr ""
45
 
46
+ #: custom-field-template/custom-field-template.php:216
47
  msgid "Custom Field Template Options"
48
  msgstr ""
49
 
50
+ #: custom-field-template/custom-field-template.php:226
51
  #, php-format
52
  msgid "Template Title %d"
53
  msgstr ""
54
 
55
+ #: custom-field-template/custom-field-template.php:228
56
+ #, php-format
57
+ msgid "Template Instruction %d"
58
+ msgstr ""
59
+
60
+ #: custom-field-template/custom-field-template.php:230
61
  #, php-format
62
  msgid "Template Content %d"
63
  msgstr ""
64
 
65
+ #: custom-field-template/custom-field-template.php:237
66
  msgid "In case that you would like to insert multiple images at once in use of the custom field media buttons"
67
  msgstr ""
68
 
69
+ #: custom-field-template/custom-field-template.php:238
70
  msgid "Use multiple image inset"
71
  msgstr ""
72
 
73
+ #: custom-field-template/custom-field-template.php:238
74
  msgid "Caution:"
75
  msgstr ""
76
 
77
+ #: custom-field-template/custom-field-template.php:238
78
+ msgid "You need to edit `wp-admin/includes/media.php`. Delete or comment out the code in the function media_send_to_editor."
79
  msgstr ""
80
 
81
+ #: custom-field-template/custom-field-template.php:242
82
  msgid "In case that you would like to replace custom keys by labels if `label` is set"
83
  msgstr ""
84
 
85
+ #: custom-field-template/custom-field-template.php:243
86
  msgid "Use labels in place of custom keys"
87
  msgstr ""
88
 
89
+ #: custom-field-template/custom-field-template.php:246
90
  msgid "In case that you would like to add p and br tags in textareas automatically"
91
  msgstr ""
92
 
93
+ #: custom-field-template/custom-field-template.php:247
94
  msgid "Use wpautop function"
95
  msgstr ""
96
 
97
+ #: custom-field-template/custom-field-template.php:251
98
+ #: custom-field-template/custom-field-template.php:270
99
+ #: custom-field-template/custom-field-template.php:297
100
  msgid "Update Options &raquo;"
101
  msgstr ""
102
 
103
+ #: custom-field-template/custom-field-template.php:260
104
+ #: custom-field-template/custom-field-template.php:279
105
+ #: custom-field-template/custom-field-template.php:306
106
+ #: custom-field-template/custom-field-template.php:371
107
+ #: custom-field-template/custom-field-template.php:387
108
+ msgid "Click to toggle"
109
+ msgstr ""
110
+
111
+ #: custom-field-template/custom-field-template.php:261
112
  msgid "CSS"
113
  msgstr ""
114
 
115
+ #: custom-field-template/custom-field-template.php:280
116
  msgid "PHP CODE (Experimental Option)"
117
  msgstr ""
118
 
119
+ #: custom-field-template/custom-field-template.php:282
120
  msgid "Are you sure to save PHP codes? Please do it at your own risk."
121
  msgstr ""
122
 
123
+ #: custom-field-template/custom-field-template.php:283
124
  msgid "This option is available only for `radio` and `select` types. You must set $values as an array."
125
  msgstr ""
126
 
127
+ #: custom-field-template/custom-field-template.php:307
128
  msgid "Option List"
129
  msgstr ""
130
 
131
+ #: custom-field-template/custom-field-template.php:372
132
  msgid "Reset Options"
133
  msgstr ""
134
 
135
+ #: custom-field-template/custom-field-template.php:374
136
  msgid "Are you sure to reset options? Options you set will be reset to the default settings."
137
  msgstr ""
138
 
139
+ #: custom-field-template/custom-field-template.php:378
140
  msgid "Unset Options &raquo;"
141
  msgstr ""
142
 
143
+ #: custom-field-template/custom-field-template.php:388
144
  msgid "Delete Options"
145
  msgstr ""
146
 
147
+ #: custom-field-template/custom-field-template.php:390
148
  msgid "Are you sure to delete options? Options you set will be deleted."
149
  msgstr ""
150
 
151
+ #: custom-field-template/custom-field-template.php:394
152
  msgid "Delete Options &raquo;"
153
  msgstr ""
154
 
155
+ #: custom-field-template/custom-field-template.php:532
156
  msgid "Clear"
157
  msgstr ""
158
 
159
+ #: custom-field-template/custom-field-template.php:633
160
  msgid "Add Media"
161
  msgstr ""
162
 
163
+ #: custom-field-template/custom-field-template.php:635
164
  msgid "Add an Image"
165
  msgstr ""
166
 
167
+ #: custom-field-template/custom-field-template.php:637
168
  msgid "Add Video"
169
  msgstr ""
170
 
171
+ #: custom-field-template/custom-field-template.php:639
172
  msgid "Add Audio"
173
  msgstr ""
174
 
175
+ #: custom-field-template/custom-field-template.php:650
176
  msgid "Toggle"
177
  msgstr ""
178
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.7
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -26,6 +26,7 @@ The Custom Field Template plugin adds the default custom fields on the Write Pos
26
  * You can set an access user level in each field. (`level = 1`)
27
  * Supprt for inserting custom field values into tags automatically. (`insertTag = true`)
28
  * Adds [cft] Shortcode to display the custom field template. (only shows the attributes which have `output = true`)
 
29
 
30
  == Installation ==
31
 
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.7.1
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
26
  * You can set an access user level in each field. (`level = 1`)
27
  * Supprt for inserting custom field values into tags automatically. (`insertTag = true`)
28
  * Adds [cft] Shortcode to display the custom field template. (only shows the attributes which have `output = true`)
29
+ * Adds template instruction sections.
30
 
31
  == Installation ==
32