Smart Custom Fields - Version 3.1.0

Version Description

  • Added limit attribute at relation post types and taxonomies field.
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin Smart Custom Fields
Version 3.1.0
Comparing to
See all releases

Code changes from version 3.0.1 to 3.1.0

classes/fields/class.field-relation.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Relation
4
- * Version : 1.3.2
5
  * Author : inc2734
6
  * Created : October 7, 2014
7
- * Modified : June 22, 2016
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -35,6 +35,7 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
35
  protected function options() {
36
  return array(
37
  'post-type' => '',
 
38
  'instruction' => '',
39
  'notes' => '',
40
  );
@@ -114,9 +115,13 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
114
  $name = $this->get_field_name_in_editor( $index );
115
  $disabled = $this->get_disable_attribute( $index );
116
  $post_type = $this->get( 'post-type' );
117
- if ( !$post_type ) {
 
118
  $post_type = array( 'post' );
119
  }
 
 
 
120
  $posts_per_page = get_option( 'posts_per_page' );
121
 
122
  // choicse
@@ -172,7 +177,7 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
172
  }
173
 
174
  return sprintf(
175
- '<div class="%s" data-post-types="%s">
176
  <div class="%s">
177
  <input type="text" class="widefat search-input search-input-post-types" name="search-input" placeholder="%s" />
178
  </div>
@@ -186,6 +191,7 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
186
  <div class="%s"><ul>%s</ul></div>',
187
  SCF_Config::PREFIX . 'relation-left',
188
  implode( ',', $post_type ),
 
189
  SCF_Config::PREFIX . 'search',
190
  esc_attr__( 'Search...', 'smart-custom-fields' ),
191
  SCF_Config::PREFIX . 'relation-children-select',
@@ -229,6 +235,14 @@ class Smart_Custom_Fields_Field_Relation extends Smart_Custom_Fields_Field_Base
229
  <?php endforeach; ?>
230
  </td>
231
  </tr>
 
 
 
 
 
 
 
 
232
  <tr>
233
  <th><?php esc_html_e( 'Instruction', 'smart-custom-fields' ); ?></th>
234
  <td>
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Relation
4
+ * Version : 1.4.0
5
  * Author : inc2734
6
  * Created : October 7, 2014
7
+ * Modified : January 27, 2017
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
35
  protected function options() {
36
  return array(
37
  'post-type' => '',
38
+ 'limit' => 0,
39
  'instruction' => '',
40
  'notes' => '',
41
  );
115
  $name = $this->get_field_name_in_editor( $index );
116
  $disabled = $this->get_disable_attribute( $index );
117
  $post_type = $this->get( 'post-type' );
118
+ $limit = $this->get( 'limit' );
119
+ if ( ! $post_type ) {
120
  $post_type = array( 'post' );
121
  }
122
+ if ( ! is_int( $limit ) ) {
123
+ $limit = '';
124
+ }
125
  $posts_per_page = get_option( 'posts_per_page' );
126
 
127
  // choicse
177
  }
178
 
179
  return sprintf(
180
+ '<div class="%s" data-post-types="%s" data-limit="%d">
181
  <div class="%s">
182
  <input type="text" class="widefat search-input search-input-post-types" name="search-input" placeholder="%s" />
183
  </div>
191
  <div class="%s"><ul>%s</ul></div>',
192
  SCF_Config::PREFIX . 'relation-left',
193
  implode( ',', $post_type ),
194
+ $limit,
195
  SCF_Config::PREFIX . 'search',
196
  esc_attr__( 'Search...', 'smart-custom-fields' ),
197
  SCF_Config::PREFIX . 'relation-children-select',
235
  <?php endforeach; ?>
236
  </td>
237
  </tr>
238
+ <tr>
239
+ <th><?php esc_html_e( 'Selectable number', 'smart-custom-fields' ); ?></th>
240
+ <td>
241
+ <input type="number"
242
+ name="<?php echo esc_attr( $this->get_field_name_in_setting( $group_key, $field_key, 'limit' ) ); ?>"
243
+ value="<?php echo esc_attr( $this->get( 'number' ) ); ?>" min="1" step="1" />
244
+ </td>
245
+ </tr>
246
  <tr>
247
  <th><?php esc_html_e( 'Instruction', 'smart-custom-fields' ); ?></th>
248
  <td>
classes/fields/class.field-taxonomy.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Taxonomy
4
- * Version : 1.4.1
5
  * Author : inc2734
6
  * Created : October 7, 2014
7
- * Modified : June 22, 2016
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -35,6 +35,7 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
35
  protected function options() {
36
  return array(
37
  'taxonomy' => '',
 
38
  'instruction' => '',
39
  'notes' => '',
40
  );
@@ -115,9 +116,13 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
115
  $name = $this->get_field_name_in_editor( $index );
116
  $disabled = $this->get_disable_attribute( $index );
117
  $taxonomies = $this->get( 'taxonomy' );
118
- if ( !$taxonomies ) {
 
119
  $taxonomies = array( 'category' );
120
  }
 
 
 
121
  $number = get_option( 'posts_per_page' );
122
 
123
  // choicse
@@ -175,7 +180,7 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
175
  }
176
 
177
  return sprintf(
178
- '<div class="%s" data-taxonomies="%s">
179
  <div class="%s">
180
  <input type="text" class="widefat search-input search-input-terms" name="search-input" placeholder="%s" />
181
  </div>
@@ -189,6 +194,7 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
189
  <div class="%s"><ul>%s</ul></div>',
190
  SCF_Config::PREFIX . 'relation-left',
191
  implode( ',', $taxonomies ),
 
192
  SCF_Config::PREFIX . 'search',
193
  esc_attr__( 'Search...', 'smart-custom-fields' ),
194
  SCF_Config::PREFIX . 'relation-children-select',
@@ -230,6 +236,14 @@ class Smart_Custom_Fields_Field_Taxonomy extends Smart_Custom_Fields_Field_Base
230
  <?php endforeach; ?>
231
  </td>
232
  </tr>
 
 
 
 
 
 
 
 
233
  <tr>
234
  <th><?php esc_html_e( 'Instruction', 'smart-custom-fields' ); ?></th>
235
  <td>
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Taxonomy
4
+ * Version : 1.5.0
5
  * Author : inc2734
6
  * Created : October 7, 2014
7
+ * Modified : January 27, 2017
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
35
  protected function options() {
36
  return array(
37
  'taxonomy' => '',
38
+ 'limit' => 0,
39
  'instruction' => '',
40
  'notes' => '',
41
  );
116
  $name = $this->get_field_name_in_editor( $index );
117
  $disabled = $this->get_disable_attribute( $index );
118
  $taxonomies = $this->get( 'taxonomy' );
119
+ $limit = $this->get( 'limit' );
120
+ if ( ! $taxonomies ) {
121
  $taxonomies = array( 'category' );
122
  }
123
+ if ( ! is_int( $limit ) ) {
124
+ $limit = '';
125
+ }
126
  $number = get_option( 'posts_per_page' );
127
 
128
  // choicse
180
  }
181
 
182
  return sprintf(
183
+ '<div class="%s" data-taxonomies="%s" data-limit="%d">
184
  <div class="%s">
185
  <input type="text" class="widefat search-input search-input-terms" name="search-input" placeholder="%s" />
186
  </div>
194
  <div class="%s"><ul>%s</ul></div>',
195
  SCF_Config::PREFIX . 'relation-left',
196
  implode( ',', $taxonomies ),
197
+ $limit,
198
  SCF_Config::PREFIX . 'search',
199
  esc_attr__( 'Search...', 'smart-custom-fields' ),
200
  SCF_Config::PREFIX . 'relation-children-select',
236
  <?php endforeach; ?>
237
  </td>
238
  </tr>
239
+ <tr>
240
+ <th><?php esc_html_e( 'Selectable number', 'smart-custom-fields' ); ?></th>
241
+ <td>
242
+ <input type="number"
243
+ name="<?php echo esc_attr( $this->get_field_name_in_setting( $group_key, $field_key, 'limit' ) ); ?>"
244
+ value="<?php echo esc_attr( $this->get( 'number' ) ); ?>" min="1" step="1" />
245
+ </td>
246
+ </tr>
247
  <tr>
248
  <th><?php esc_html_e( 'Instruction', 'smart-custom-fields' ); ?></th>
249
  <td>
js/editor-relation-post-types.js CHANGED
@@ -1,9 +1,9 @@
1
  /**
2
  * editor.js
3
- * Version : 1.1.0
4
  * Author : inc2734
5
  * Created : September 30, 2014
6
- * Modified : November 12, 2015
7
  * License : GPLv2 or later
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
@@ -98,14 +98,26 @@ jQuery( function( $ ) {
98
  $( '.smart-cf-meta-box' ).on( 'click', choices_li, function() {
99
  var id = $( this ).data( 'id' );
100
  var parent = $( this ).closest( table_class );
101
- if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length === 0 ) {
102
- var clone = $( this ).clone();
103
- clone
104
- .prepend( $( '<span class="smart-cf-icon-handle dashicons dashicons-menu"></span>' ) )
105
- .append( $( '<span class="relation-remove">-</span>' ) );
106
- parent.find( '.smart-cf-relation-right ul' ).append( clone );
107
- update_relation_value( $( this ).closest( 'tr' ) );
 
108
  }
 
 
 
 
 
 
 
 
 
 
 
109
  } );
110
 
111
  /**
1
  /**
2
  * editor.js
3
+ * Version : 1.2.0
4
  * Author : inc2734
5
  * Created : September 30, 2014
6
+ * Modified : January 27, 2017
7
  * License : GPLv2 or later
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
98
  $( '.smart-cf-meta-box' ).on( 'click', choices_li, function() {
99
  var id = $( this ).data( 'id' );
100
  var parent = $( this ).closest( table_class );
101
+ var limit = parent.find( '.smart-cf-relation-left' ).data( 'limit' );
102
+
103
+ if ( limit <= 0 ) {
104
+ return true;
105
+ }
106
+
107
+ if ( limit <= parent.find( '.smart-cf-relation-right li' ).length ) {
108
+ return true;
109
  }
110
+
111
+ if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length !== 0 ) {
112
+ return true;
113
+ }
114
+
115
+ var clone = $( this ).clone();
116
+ clone
117
+ .prepend( $( '<span class="smart-cf-icon-handle dashicons dashicons-menu"></span>' ) )
118
+ .append( $( '<span class="relation-remove">-</span>' ) );
119
+ parent.find( '.smart-cf-relation-right ul' ).append( clone );
120
+ update_relation_value( $( this ).closest( 'tr' ) );
121
  } );
122
 
123
  /**
js/editor-relation-taxonomies.js CHANGED
@@ -1,9 +1,9 @@
1
  /**
2
  * editor.js
3
- * Version : 1.0.0
4
  * Author : inc2734
5
  * Created : February 2, 2016
6
- * Modified :
7
  * License : GPLv2 or later
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
@@ -90,63 +90,4 @@ jQuery( function( $ ) {
90
  );
91
  return false;
92
  }
93
-
94
- /**
95
- * 選択肢
96
- */
97
- var choices_li = '.smart-cf-relation-children-select li';
98
- $( '.smart-cf-meta-box' ).on( 'click', choices_li, function() {
99
- var id = $( this ).data( 'id' );
100
- var parent = $( this ).closest( table_class );
101
- if ( parent.find( '.smart-cf-relation-right li[data-id="' + id + '"]' ).length === 0 ) {
102
- var clone = $( this ).clone();
103
- clone
104
- .prepend( $( '<span class="smart-cf-icon-handle dashicons dashicons-menu"></span>' ) )
105
- .append( $( '<span class="relation-remove">-</span>' ) );
106
- parent.find( '.smart-cf-relation-right ul' ).append( clone );
107
- update_relation_value( $( this ).closest( 'tr' ) );
108
- }
109
- } );
110
-
111
- /**
112
- * 選択済み項目の削除
113
- */
114
- var relation_remove = '.smart-cf-relation-right li .relation-remove';
115
- $( '.smart-cf-meta-box' ).on( 'click', relation_remove, function() {
116
- var tr = $( this ).closest( 'tr' );
117
- $( this ).parent().remove();
118
- update_relation_value( tr );
119
- } );
120
-
121
- /**
122
- * update_relation_value
123
- * @param dom tr
124
- */
125
- function update_relation_value( tr ) {
126
- var hidden = tr.find( 'input[type="hidden"]' );
127
- hidden.each( function( i, e ) {
128
- if ( i !== 0 ) {
129
- $( this ).remove();
130
- }
131
- } );
132
- tr.find( '.smart-cf-relation-right li' ).each( function( i, e ) {
133
- var hidden_box = $( this ).closest( table_class ).find( '.smart-cf-relation-children-select' );
134
- var id = $( this ).data( 'id' );
135
- var clone = hidden.first().clone();
136
- var name = clone.attr( 'name' );
137
- clone.attr( 'name', name + '[]' );
138
- clone.val( id );
139
- hidden_box.append( clone );
140
- } );
141
- }
142
-
143
- /**
144
- * sortable
145
- */
146
- $( '.smart-cf-meta-box .smart-cf-relation-right ul' ).sortable( {
147
- handle: '.smart-cf-icon-handle',
148
- update: function() {
149
- update_relation_value( $( this ).closest( 'tr' ) );
150
- }
151
- } );
152
  } );
1
  /**
2
  * editor.js
3
+ * Version : 1.2.0
4
  * Author : inc2734
5
  * Created : February 2, 2016
6
+ * Modified : January 27, 2017
7
  * License : GPLv2 or later
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
90
  );
91
  return false;
92
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
  } );
languages/smart-custom-fields-ja.mo CHANGED
Binary file
languages/smart-custom-fields-ja.po CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Smart Custom Fields 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
- "POT-Creation-Date: 2016-06-06 11:47+0900\n"
8
- "PO-Revision-Date: 2016-06-06 11:49+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
@@ -83,7 +83,7 @@ msgid "Add Field"
83
  msgstr "フィールド追加"
84
 
85
  #: classes/controller/class.settings.php:232
86
- #: classes/fields/class.field-relation.php:214
87
  msgid "Post Types"
88
  msgstr "投稿タイプ"
89
 
@@ -96,7 +96,7 @@ msgid "Roles"
96
  msgstr "権限"
97
 
98
  #: classes/controller/class.settings.php:290
99
- #: classes/fields/class.field-taxonomy.php:217
100
  msgid "Taxonomies"
101
  msgstr "タクソノミー"
102
 
@@ -104,19 +104,19 @@ msgstr "タクソノミー"
104
  msgid "Options pages"
105
  msgstr "オプションページ"
106
 
107
- #: classes/fields/class.field-boolean.php:24
108
  msgid "Boolean"
109
  msgstr "真偽値"
110
 
111
- #: classes/fields/class.field-boolean.php:39
112
  msgid "Yes"
113
  msgstr "はい"
114
 
115
- #: classes/fields/class.field-boolean.php:40
116
  msgid "No"
117
  msgstr "いいえ"
118
 
119
- #: classes/fields/class.field-boolean.php:83 classes/fields/class.field-check.php:117
120
  #: classes/fields/class.field-colorpicker.php:103
121
  #: classes/fields/class.field-datepicker.php:125
122
  #: classes/fields/class.field-radio.php:116 classes/fields/class.field-select.php:91
@@ -125,37 +125,37 @@ msgstr "いいえ"
125
  msgid "Default"
126
  msgstr "デフォルト"
127
 
128
- #: classes/fields/class.field-boolean.php:108
129
  msgid "TRUE Label"
130
  msgstr "TRUE ラベル"
131
 
132
- #: classes/fields/class.field-boolean.php:118
133
  msgid "FALSE Label"
134
  msgstr "FALSE ラベル"
135
 
136
- #: classes/fields/class.field-boolean.php:128
137
  #: classes/fields/class.field-check.php:126
138
  #: classes/fields/class.field-colorpicker.php:112
139
  #: classes/fields/class.field-datepicker.php:189
140
- #: classes/fields/class.field-file.php:93 classes/fields/class.field-image.php:94
141
  #: classes/fields/class.field-radio.php:125
142
- #: classes/fields/class.field-relation.php:235
143
  #: classes/fields/class.field-select.php:100
144
- #: classes/fields/class.field-taxonomy.php:236 classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
147
  msgid "Instruction"
148
  msgstr "説明文"
149
 
150
- #: classes/fields/class.field-boolean.php:135
151
  #: classes/fields/class.field-check.php:133
152
  #: classes/fields/class.field-colorpicker.php:119
153
  #: classes/fields/class.field-datepicker.php:196
154
- #: classes/fields/class.field-file.php:100 classes/fields/class.field-image.php:101
155
  #: classes/fields/class.field-radio.php:132
156
- #: classes/fields/class.field-relation.php:242
157
  #: classes/fields/class.field-select.php:107
158
- #: classes/fields/class.field-taxonomy.php:243 classes/fields/class.field-text.php:82
159
  #: classes/fields/class.field-textarea.php:95
160
  #: classes/fields/class.field-wysiwyg.php:135
161
  msgid "Notes"
@@ -224,7 +224,7 @@ msgstr "ファイル"
224
  msgid "Delete"
225
  msgstr "削除"
226
 
227
- #: classes/fields/class.field-file.php:74
228
  msgid "File Select"
229
  msgstr "ファイル選択"
230
 
@@ -232,11 +232,11 @@ msgstr "ファイル選択"
232
  msgid "Image"
233
  msgstr "画像"
234
 
235
- #: classes/fields/class.field-image.php:74
236
  msgid "Image Select"
237
  msgstr "画像選択"
238
 
239
- #: classes/fields/class.field-image.php:111
240
  msgid "Preview Size"
241
  msgstr "プレビューサイズ"
242
 
@@ -248,17 +248,21 @@ msgstr "ラジオボタン"
248
  msgid "Relation ( Post Types )"
249
  msgstr "関連(投稿タイプ)"
250
 
251
- #: classes/fields/class.field-relation.php:192
252
- #: classes/fields/class.field-taxonomy.php:195
253
- #, fuzzy
254
  msgid "Search..."
255
  msgstr "検索 …"
256
 
257
- #: classes/fields/class.field-relation.php:196
258
- #: classes/fields/class.field-taxonomy.php:199
259
  msgid "Load more"
260
  msgstr "さらに読み込む"
261
 
 
 
 
 
 
262
  #: classes/fields/class.field-select.php:21
263
  msgid "Select"
264
  msgstr "セレクトボックス"
@@ -304,48 +308,47 @@ msgstr "繰り返し"
304
  msgid "Group name"
305
  msgstr "グループ名"
306
 
307
- #: classes/models/class.revisions.php:124 smart-custom-fields.php:159
308
- #: smart-custom-fields.php:160 smart-custom-fields.php:161
309
- msgid "Smart Custom Fields"
310
- msgstr "Smart Custom Fields"
311
-
312
- #: smart-custom-fields.php:162 smart-custom-fields.php:163
313
- #: smart-custom-fields.php:209 smart-custom-fields.php:210
314
  msgid "Add New"
315
  msgstr "新規追加"
316
 
317
- #: smart-custom-fields.php:164
318
  msgid "New Field"
319
  msgstr "新規フィールド"
320
 
321
- #: smart-custom-fields.php:165
322
  msgid "Edit Field"
323
  msgstr "フィールド編集"
324
 
325
- #: smart-custom-fields.php:166
326
  msgid "View Field"
327
  msgstr "フィールドを表示"
328
 
329
- #: smart-custom-fields.php:167
330
  msgid "All Fields"
331
  msgstr "すべてのフィールド"
332
 
333
- #: smart-custom-fields.php:168
334
  msgid "Search Fields"
335
  msgstr "フィールドを検索"
336
 
337
- #: smart-custom-fields.php:169
338
  msgid "Parent Fields:"
339
  msgstr "親フィールド:"
340
 
341
- #: smart-custom-fields.php:170
342
  msgid "No Fields found."
343
  msgstr "フィールドは見つかりませんでした。"
344
 
345
- #: smart-custom-fields.php:171
346
  msgid "No Fields found in Trash."
347
  msgstr "ゴミ箱にフィールドは見つかりませんでした"
348
 
 
 
 
 
349
  #. Plugin URI of the plugin/theme
350
  msgid "https://github.com/inc2734/smart-custom-fields/"
351
  msgstr "https://github.com/inc2734/smart-custom-fields/"
@@ -361,6 +364,3 @@ msgstr "inc2734"
361
  #. Author URI of the plugin/theme
362
  msgid "http://2inc.org"
363
  msgstr "http://2inc.org"
364
-
365
- #~ msgid "Relation"
366
- #~ msgstr "リレーション"
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Smart Custom Fields 3.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2017-01-27 22:26+0900\n"
8
+ "PO-Revision-Date: 2017-01-27 22:26+0900\n"
9
  "Last-Translator: inc2734 <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
83
  msgstr "フィールド追加"
84
 
85
  #: classes/controller/class.settings.php:232
86
+ #: classes/fields/class.field-relation.php:218
87
  msgid "Post Types"
88
  msgstr "投稿タイプ"
89
 
96
  msgstr "権限"
97
 
98
  #: classes/controller/class.settings.php:290
99
+ #: classes/fields/class.field-taxonomy.php:221
100
  msgid "Taxonomies"
101
  msgstr "タクソノミー"
102
 
104
  msgid "Options pages"
105
  msgstr "オプションページ"
106
 
107
+ #: classes/fields/class.field-boolean.php:23
108
  msgid "Boolean"
109
  msgstr "真偽値"
110
 
111
+ #: classes/fields/class.field-boolean.php:38
112
  msgid "Yes"
113
  msgstr "はい"
114
 
115
+ #: classes/fields/class.field-boolean.php:39
116
  msgid "No"
117
  msgstr "いいえ"
118
 
119
+ #: classes/fields/class.field-boolean.php:82 classes/fields/class.field-check.php:117
120
  #: classes/fields/class.field-colorpicker.php:103
121
  #: classes/fields/class.field-datepicker.php:125
122
  #: classes/fields/class.field-radio.php:116 classes/fields/class.field-select.php:91
125
  msgid "Default"
126
  msgstr "デフォルト"
127
 
128
+ #: classes/fields/class.field-boolean.php:107
129
  msgid "TRUE Label"
130
  msgstr "TRUE ラベル"
131
 
132
+ #: classes/fields/class.field-boolean.php:117
133
  msgid "FALSE Label"
134
  msgstr "FALSE ラベル"
135
 
136
+ #: classes/fields/class.field-boolean.php:127
137
  #: classes/fields/class.field-check.php:126
138
  #: classes/fields/class.field-colorpicker.php:112
139
  #: classes/fields/class.field-datepicker.php:189
140
+ #: classes/fields/class.field-file.php:111 classes/fields/class.field-image.php:112
141
  #: classes/fields/class.field-radio.php:125
142
+ #: classes/fields/class.field-relation.php:247
143
  #: classes/fields/class.field-select.php:100
144
+ #: classes/fields/class.field-taxonomy.php:248 classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
147
  msgid "Instruction"
148
  msgstr "説明文"
149
 
150
+ #: classes/fields/class.field-boolean.php:134
151
  #: classes/fields/class.field-check.php:133
152
  #: classes/fields/class.field-colorpicker.php:119
153
  #: classes/fields/class.field-datepicker.php:196
154
+ #: classes/fields/class.field-file.php:118 classes/fields/class.field-image.php:119
155
  #: classes/fields/class.field-radio.php:132
156
+ #: classes/fields/class.field-relation.php:254
157
  #: classes/fields/class.field-select.php:107
158
+ #: classes/fields/class.field-taxonomy.php:255 classes/fields/class.field-text.php:82
159
  #: classes/fields/class.field-textarea.php:95
160
  #: classes/fields/class.field-wysiwyg.php:135
161
  msgid "Notes"
224
  msgid "Delete"
225
  msgstr "削除"
226
 
227
+ #: classes/fields/class.field-file.php:92
228
  msgid "File Select"
229
  msgstr "ファイル選択"
230
 
232
  msgid "Image"
233
  msgstr "画像"
234
 
235
+ #: classes/fields/class.field-image.php:92
236
  msgid "Image Select"
237
  msgstr "画像選択"
238
 
239
+ #: classes/fields/class.field-image.php:129
240
  msgid "Preview Size"
241
  msgstr "プレビューサイズ"
242
 
248
  msgid "Relation ( Post Types )"
249
  msgstr "関連(投稿タイプ)"
250
 
251
+ #: classes/fields/class.field-relation.php:196
252
+ #: classes/fields/class.field-taxonomy.php:199
 
253
  msgid "Search..."
254
  msgstr "検索 …"
255
 
256
+ #: classes/fields/class.field-relation.php:200
257
+ #: classes/fields/class.field-taxonomy.php:203
258
  msgid "Load more"
259
  msgstr "さらに読み込む"
260
 
261
+ #: classes/fields/class.field-relation.php:239
262
+ #: classes/fields/class.field-taxonomy.php:240
263
+ msgid "Selectable number"
264
+ msgstr "選択できる個数"
265
+
266
  #: classes/fields/class.field-select.php:21
267
  msgid "Select"
268
  msgstr "セレクトボックス"
308
  msgid "Group name"
309
  msgstr "グループ名"
310
 
311
+ #: smart-custom-fields.php:170 smart-custom-fields.php:171
312
+ #: smart-custom-fields.php:217 smart-custom-fields.php:218
 
 
 
 
 
313
  msgid "Add New"
314
  msgstr "新規追加"
315
 
316
+ #: smart-custom-fields.php:172
317
  msgid "New Field"
318
  msgstr "新規フィールド"
319
 
320
+ #: smart-custom-fields.php:173
321
  msgid "Edit Field"
322
  msgstr "フィールド編集"
323
 
324
+ #: smart-custom-fields.php:174
325
  msgid "View Field"
326
  msgstr "フィールドを表示"
327
 
328
+ #: smart-custom-fields.php:175
329
  msgid "All Fields"
330
  msgstr "すべてのフィールド"
331
 
332
+ #: smart-custom-fields.php:176
333
  msgid "Search Fields"
334
  msgstr "フィールドを検索"
335
 
336
+ #: smart-custom-fields.php:177
337
  msgid "Parent Fields:"
338
  msgstr "親フィールド:"
339
 
340
+ #: smart-custom-fields.php:178
341
  msgid "No Fields found."
342
  msgstr "フィールドは見つかりませんでした。"
343
 
344
+ #: smart-custom-fields.php:179
345
  msgid "No Fields found in Trash."
346
  msgstr "ゴミ箱にフィールドは見つかりませんでした"
347
 
348
+ #. Plugin Name of the plugin/theme
349
+ msgid "Smart Custom Fields"
350
+ msgstr "Smart Custom Fields"
351
+
352
  #. Plugin URI of the plugin/theme
353
  msgid "https://github.com/inc2734/smart-custom-fields/"
354
  msgstr "https://github.com/inc2734/smart-custom-fields/"
364
  #. Author URI of the plugin/theme
365
  msgid "http://2inc.org"
366
  msgstr "http://2inc.org"
 
 
 
languages/smart-custom-fields.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2016 Smart Custom Fields
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Smart Custom Fields 2.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
- "POT-Creation-Date: 2016-06-06 02:45:51+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
@@ -78,7 +78,7 @@ msgid "Add Field"
78
  msgstr ""
79
 
80
  #: classes/controller/class.settings.php:232
81
- #: classes/fields/class.field-relation.php:214
82
  msgid "Post Types"
83
  msgstr ""
84
 
@@ -91,7 +91,7 @@ msgid "Roles"
91
  msgstr ""
92
 
93
  #: classes/controller/class.settings.php:290
94
- #: classes/fields/class.field-taxonomy.php:217
95
  msgid "Taxonomies"
96
  msgstr ""
97
 
@@ -99,19 +99,19 @@ msgstr ""
99
  msgid "Options pages"
100
  msgstr ""
101
 
102
- #: classes/fields/class.field-boolean.php:24
103
  msgid "Boolean"
104
  msgstr ""
105
 
106
- #: classes/fields/class.field-boolean.php:39
107
  msgid "Yes"
108
  msgstr ""
109
 
110
- #: classes/fields/class.field-boolean.php:40
111
  msgid "No"
112
  msgstr ""
113
 
114
- #: classes/fields/class.field-boolean.php:83
115
  #: classes/fields/class.field-check.php:117
116
  #: classes/fields/class.field-colorpicker.php:103
117
  #: classes/fields/class.field-datepicker.php:125
@@ -123,40 +123,40 @@ msgstr ""
123
  msgid "Default"
124
  msgstr ""
125
 
126
- #: classes/fields/class.field-boolean.php:108
127
  msgid "TRUE Label"
128
  msgstr ""
129
 
130
- #: classes/fields/class.field-boolean.php:118
131
  msgid "FALSE Label"
132
  msgstr ""
133
 
134
- #: classes/fields/class.field-boolean.php:128
135
  #: classes/fields/class.field-check.php:126
136
  #: classes/fields/class.field-colorpicker.php:112
137
  #: classes/fields/class.field-datepicker.php:189
138
- #: classes/fields/class.field-file.php:93
139
- #: classes/fields/class.field-image.php:94
140
  #: classes/fields/class.field-radio.php:125
141
- #: classes/fields/class.field-relation.php:235
142
  #: classes/fields/class.field-select.php:100
143
- #: classes/fields/class.field-taxonomy.php:236
144
  #: classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
147
  msgid "Instruction"
148
  msgstr ""
149
 
150
- #: classes/fields/class.field-boolean.php:135
151
  #: classes/fields/class.field-check.php:133
152
  #: classes/fields/class.field-colorpicker.php:119
153
  #: classes/fields/class.field-datepicker.php:196
154
- #: classes/fields/class.field-file.php:100
155
- #: classes/fields/class.field-image.php:101
156
  #: classes/fields/class.field-radio.php:132
157
- #: classes/fields/class.field-relation.php:242
158
  #: classes/fields/class.field-select.php:107
159
- #: classes/fields/class.field-taxonomy.php:243
160
  #: classes/fields/class.field-text.php:82
161
  #: classes/fields/class.field-textarea.php:95
162
  #: classes/fields/class.field-wysiwyg.php:135
@@ -232,7 +232,7 @@ msgstr ""
232
  msgid "Delete"
233
  msgstr ""
234
 
235
- #: classes/fields/class.field-file.php:74
236
  msgid "File Select"
237
  msgstr ""
238
 
@@ -240,11 +240,11 @@ msgstr ""
240
  msgid "Image"
241
  msgstr ""
242
 
243
- #: classes/fields/class.field-image.php:74
244
  msgid "Image Select"
245
  msgstr ""
246
 
247
- #: classes/fields/class.field-image.php:111
248
  msgid "Preview Size"
249
  msgstr ""
250
 
@@ -256,16 +256,21 @@ msgstr ""
256
  msgid "Relation ( Post Types )"
257
  msgstr ""
258
 
259
- #: classes/fields/class.field-relation.php:192
260
- #: classes/fields/class.field-taxonomy.php:195
261
  msgid "Search..."
262
  msgstr ""
263
 
264
- #: classes/fields/class.field-relation.php:196
265
- #: classes/fields/class.field-taxonomy.php:199
266
  msgid "Load more"
267
  msgstr ""
268
 
 
 
 
 
 
269
  #: classes/fields/class.field-select.php:21
270
  msgid "Select"
271
  msgstr ""
@@ -311,47 +316,45 @@ msgstr ""
311
  msgid "Group name"
312
  msgstr ""
313
 
314
- #: classes/models/class.revisions.php:124 smart-custom-fields.php:159
315
- #: smart-custom-fields.php:160 smart-custom-fields.php:161
316
- msgid "Smart Custom Fields"
317
- msgstr ""
318
-
319
- #: smart-custom-fields.php:162 smart-custom-fields.php:163
320
- #: smart-custom-fields.php:209 smart-custom-fields.php:210
321
  msgid "Add New"
322
  msgstr ""
323
 
324
- #: smart-custom-fields.php:164
325
  msgid "New Field"
326
  msgstr ""
327
 
328
- #: smart-custom-fields.php:165
329
  msgid "Edit Field"
330
  msgstr ""
331
 
332
- #: smart-custom-fields.php:166
333
  msgid "View Field"
334
  msgstr ""
335
 
336
- #: smart-custom-fields.php:167
337
  msgid "All Fields"
338
  msgstr ""
339
 
340
- #: smart-custom-fields.php:168
341
  msgid "Search Fields"
342
  msgstr ""
343
 
344
- #: smart-custom-fields.php:169
345
  msgid "Parent Fields:"
346
  msgstr ""
347
 
348
- #: smart-custom-fields.php:170
349
  msgid "No Fields found."
350
  msgstr ""
351
 
352
- #: smart-custom-fields.php:171
353
  msgid "No Fields found in Trash."
354
  msgstr ""
 
 
 
355
 
356
  #. Plugin URI of the plugin/theme
357
  msgid "https://github.com/inc2734/smart-custom-fields/"
1
+ # Copyright (C) 2017 Smart Custom Fields
2
  # This file is distributed under the same license as the Smart Custom Fields package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Smart Custom Fields 3.1.0\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2017-01-27 13:14:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
78
  msgstr ""
79
 
80
  #: classes/controller/class.settings.php:232
81
+ #: classes/fields/class.field-relation.php:218
82
  msgid "Post Types"
83
  msgstr ""
84
 
91
  msgstr ""
92
 
93
  #: classes/controller/class.settings.php:290
94
+ #: classes/fields/class.field-taxonomy.php:221
95
  msgid "Taxonomies"
96
  msgstr ""
97
 
99
  msgid "Options pages"
100
  msgstr ""
101
 
102
+ #: classes/fields/class.field-boolean.php:23
103
  msgid "Boolean"
104
  msgstr ""
105
 
106
+ #: classes/fields/class.field-boolean.php:38
107
  msgid "Yes"
108
  msgstr ""
109
 
110
+ #: classes/fields/class.field-boolean.php:39
111
  msgid "No"
112
  msgstr ""
113
 
114
+ #: classes/fields/class.field-boolean.php:82
115
  #: classes/fields/class.field-check.php:117
116
  #: classes/fields/class.field-colorpicker.php:103
117
  #: classes/fields/class.field-datepicker.php:125
123
  msgid "Default"
124
  msgstr ""
125
 
126
+ #: classes/fields/class.field-boolean.php:107
127
  msgid "TRUE Label"
128
  msgstr ""
129
 
130
+ #: classes/fields/class.field-boolean.php:117
131
  msgid "FALSE Label"
132
  msgstr ""
133
 
134
+ #: classes/fields/class.field-boolean.php:127
135
  #: classes/fields/class.field-check.php:126
136
  #: classes/fields/class.field-colorpicker.php:112
137
  #: classes/fields/class.field-datepicker.php:189
138
+ #: classes/fields/class.field-file.php:111
139
+ #: classes/fields/class.field-image.php:112
140
  #: classes/fields/class.field-radio.php:125
141
+ #: classes/fields/class.field-relation.php:247
142
  #: classes/fields/class.field-select.php:100
143
+ #: classes/fields/class.field-taxonomy.php:248
144
  #: classes/fields/class.field-text.php:75
145
  #: classes/fields/class.field-textarea.php:88
146
  #: classes/fields/class.field-wysiwyg.php:128
147
  msgid "Instruction"
148
  msgstr ""
149
 
150
+ #: classes/fields/class.field-boolean.php:134
151
  #: classes/fields/class.field-check.php:133
152
  #: classes/fields/class.field-colorpicker.php:119
153
  #: classes/fields/class.field-datepicker.php:196
154
+ #: classes/fields/class.field-file.php:118
155
+ #: classes/fields/class.field-image.php:119
156
  #: classes/fields/class.field-radio.php:132
157
+ #: classes/fields/class.field-relation.php:254
158
  #: classes/fields/class.field-select.php:107
159
+ #: classes/fields/class.field-taxonomy.php:255
160
  #: classes/fields/class.field-text.php:82
161
  #: classes/fields/class.field-textarea.php:95
162
  #: classes/fields/class.field-wysiwyg.php:135
232
  msgid "Delete"
233
  msgstr ""
234
 
235
+ #: classes/fields/class.field-file.php:92
236
  msgid "File Select"
237
  msgstr ""
238
 
240
  msgid "Image"
241
  msgstr ""
242
 
243
+ #: classes/fields/class.field-image.php:92
244
  msgid "Image Select"
245
  msgstr ""
246
 
247
+ #: classes/fields/class.field-image.php:129
248
  msgid "Preview Size"
249
  msgstr ""
250
 
256
  msgid "Relation ( Post Types )"
257
  msgstr ""
258
 
259
+ #: classes/fields/class.field-relation.php:196
260
+ #: classes/fields/class.field-taxonomy.php:199
261
  msgid "Search..."
262
  msgstr ""
263
 
264
+ #: classes/fields/class.field-relation.php:200
265
+ #: classes/fields/class.field-taxonomy.php:203
266
  msgid "Load more"
267
  msgstr ""
268
 
269
+ #: classes/fields/class.field-relation.php:239
270
+ #: classes/fields/class.field-taxonomy.php:240
271
+ msgid "Selectable number"
272
+ msgstr ""
273
+
274
  #: classes/fields/class.field-select.php:21
275
  msgid "Select"
276
  msgstr ""
316
  msgid "Group name"
317
  msgstr ""
318
 
319
+ #: smart-custom-fields.php:170 smart-custom-fields.php:171
320
+ #: smart-custom-fields.php:217 smart-custom-fields.php:218
 
 
 
 
 
321
  msgid "Add New"
322
  msgstr ""
323
 
324
+ #: smart-custom-fields.php:172
325
  msgid "New Field"
326
  msgstr ""
327
 
328
+ #: smart-custom-fields.php:173
329
  msgid "Edit Field"
330
  msgstr ""
331
 
332
+ #: smart-custom-fields.php:174
333
  msgid "View Field"
334
  msgstr ""
335
 
336
+ #: smart-custom-fields.php:175
337
  msgid "All Fields"
338
  msgstr ""
339
 
340
+ #: smart-custom-fields.php:176
341
  msgid "Search Fields"
342
  msgstr ""
343
 
344
+ #: smart-custom-fields.php:177
345
  msgid "Parent Fields:"
346
  msgstr ""
347
 
348
+ #: smart-custom-fields.php:178
349
  msgid "No Fields found."
350
  msgstr ""
351
 
352
+ #: smart-custom-fields.php:179
353
  msgid "No Fields found in Trash."
354
  msgstr ""
355
+ #. Plugin Name of the plugin/theme
356
+ msgid "Smart Custom Fields"
357
+ msgstr ""
358
 
359
  #. Plugin URI of the plugin/theme
360
  msgid "https://github.com/inc2734/smart-custom-fields/"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
5
  Requires at least: 3.9
6
  Tested up to: 4.7.1
7
- Stable tag: 3.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -125,6 +125,9 @@ You can send your own language pack to me.
125
 
126
  == Changelog ==
127
 
 
 
 
128
  = 3.0.1 =
129
  * Fixed a bug that icon and display position of created option page are not reflected #47 (by [@designhehe](https://github.com/designhehe))
130
 
4
  Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
5
  Requires at least: 3.9
6
  Tested up to: 4.7.1
7
+ Stable tag: 3.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
125
 
126
  == Changelog ==
127
 
128
+ = 3.1.0 =
129
+ * Added limit attribute at relation post types and taxonomies field.
130
+
131
  = 3.0.1 =
132
  * Fixed a bug that icon and display position of created option page are not reflected #47 (by [@designhehe](https://github.com/designhehe))
133
 
smart-custom-fields.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin name: Smart Custom Fields
4
  * Plugin URI: https://github.com/inc2734/smart-custom-fields/
5
  * Description: Smart Custom Fields is a simple plugin that management custom fields.
6
- * Version: 3.0.1
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
- * Modified: January 16, 2017
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2 or later
3
  * Plugin name: Smart Custom Fields
4
  * Plugin URI: https://github.com/inc2734/smart-custom-fields/
5
  * Description: Smart Custom Fields is a simple plugin that management custom fields.
6
+ * Version: 3.1.0
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
+ * Modified: January 27, 2017
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2 or later