Smart Custom Fields - Version 1.3.2

Version Description

  • Add preview size setting in the image field.
  • Add display direction setting in the checkbox and radio field.
  • Changed the upload field that displayed uploaded to this post first.
Download this release

Release Info

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

Code changes from version 1.3.1 to 1.3.2

classes/fields/class.field-check.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Check
4
- * Version : 1.1.0
5
  * Author : Takashi Kitajima
6
  * Created : October 7, 2014
7
- * Modified : February 27, 2015
8
  * License : GPLv2
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -31,9 +31,10 @@ class Smart_Custom_Fields_Field_Check extends Smart_Custom_Fields_Field_Base {
31
  */
32
  protected function options() {
33
  return array(
34
- 'choices' => '',
35
- 'default' => '',
36
- 'notes' => '',
 
37
  );
38
  }
39
 
@@ -45,9 +46,10 @@ class Smart_Custom_Fields_Field_Check extends Smart_Custom_Fields_Field_Base {
45
  * @return string html
46
  */
47
  public function get_field( $index, $value ) {
48
- $name = $this->get_field_name_in_editor( $index );
49
- $disabled = $this->get_disable_attribute( $index );
50
- $choices = SCF::choices_eol_to_array( $this->get( 'choices' ) );
 
51
 
52
  $form_field = sprintf(
53
  '<input type="hidden" name="%s" value="" %s />',
@@ -56,12 +58,12 @@ class Smart_Custom_Fields_Field_Check extends Smart_Custom_Fields_Field_Base {
56
  );
57
  foreach ( $choices as $choice ) {
58
  $choice = trim( $choice );
59
- $checked = ( is_array( $value ) && in_array( $choice, $value ) ) ? 'checked="checked"' : '' ;
60
  $form_field .= sprintf(
61
- '<label><input type="checkbox" name="%s" value="%s" %s %s /> %s</label>',
 
62
  esc_attr( $name . '[]' ),
63
  esc_attr( $choice ),
64
- $checked,
65
  disabled( true, $disabled, false ),
66
  esc_html( $choice )
67
  );
@@ -86,6 +88,26 @@ class Smart_Custom_Fields_Field_Check extends Smart_Custom_Fields_Field_Base {
86
  rows="5" /><?php echo esc_textarea( "\n" . $this->get( 'choices' ) ); ?></textarea>
87
  </td>
88
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  <tr>
90
  <th><?php esc_html_e( 'Default', 'smart-custom-fields' ); ?></th>
91
  <td>
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Check
4
+ * Version : 1.2.0
5
  * Author : Takashi Kitajima
6
  * Created : October 7, 2014
7
+ * Modified : April 24, 2015
8
  * License : GPLv2
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
31
  */
32
  protected function options() {
33
  return array(
34
+ 'choices' => '',
35
+ 'check_direction' => 'horizontal', // or vertical
36
+ 'default' => '',
37
+ 'notes' => '',
38
  );
39
  }
40
 
46
  * @return string html
47
  */
48
  public function get_field( $index, $value ) {
49
+ $name = $this->get_field_name_in_editor( $index );
50
+ $disabled = $this->get_disable_attribute( $index );
51
+ $choices = SCF::choices_eol_to_array( $this->get( 'choices' ) );
52
+ $direction = $this->get( 'check_direction' );
53
 
54
  $form_field = sprintf(
55
  '<input type="hidden" name="%s" value="" %s />',
58
  );
59
  foreach ( $choices as $choice ) {
60
  $choice = trim( $choice );
 
61
  $form_field .= sprintf(
62
+ '<span class="%s"><label><input type="checkbox" name="%s" value="%s" %s %s /> %s</label></span>',
63
+ esc_attr( SCF_Config::PREFIX . 'item-' . $direction ),
64
  esc_attr( $name . '[]' ),
65
  esc_attr( $choice ),
66
+ checked( true, ( is_array( $value ) && in_array( $choice, $value ) ), false ),
67
  disabled( true, $disabled, false ),
68
  esc_html( $choice )
69
  );
88
  rows="5" /><?php echo esc_textarea( "\n" . $this->get( 'choices' ) ); ?></textarea>
89
  </td>
90
  </tr>
91
+ <tr>
92
+ <th><?php esc_html_e( 'Display Direction', 'smart-custom-fields' ); ?></th>
93
+ <td>
94
+ <?php
95
+ $directions = array(
96
+ 'horizontal' => __( 'horizontal', 'smart-custom-fields' ),
97
+ 'vertical' => __( 'vertical' , 'smart-custom-fields' ),
98
+ );
99
+ foreach ( $directions as $key => $value ) {
100
+ printf(
101
+ '<label><input type="radio" name="%s" value="%s" %s /> %s</label>&nbsp;&nbsp;&nbsp;',
102
+ esc_attr( $this->get_field_name_in_setting( $group_key, $field_key, 'check_direction' ) ),
103
+ esc_attr( $key ),
104
+ checked( $this->get( 'check_direction' ), $key, false ),
105
+ esc_html( $value )
106
+ );
107
+ }
108
+ ?>
109
+ </td>
110
+ </tr>
111
  <tr>
112
  <th><?php esc_html_e( 'Default', 'smart-custom-fields' ); ?></th>
113
  <td>
classes/fields/class.field-image.php CHANGED
@@ -31,6 +31,7 @@ class Smart_Custom_Fields_Field_Image extends Smart_Custom_Fields_Field_Base {
31
  protected function options() {
32
  return array(
33
  'notes' => '',
 
34
  );
35
  }
36
 
@@ -53,7 +54,7 @@ class Smart_Custom_Fields_Field_Image extends Smart_Custom_Fields_Field_Base {
53
  $hide_class = 'hide';
54
  $image = $btn_remove;
55
  if ( $value ) {
56
- $image_src = wp_get_attachment_image_src( $value, 'full' );
57
  if ( is_array( $image_src ) && isset( $image_src[0] ) ) {
58
  $image_src = $image_src[0];
59
  $image = sprintf(
@@ -67,11 +68,12 @@ class Smart_Custom_Fields_Field_Image extends Smart_Custom_Fields_Field_Base {
67
 
68
  return sprintf(
69
  '<span class="button btn-add-image">%s</span><br />
70
- <span class="%s %s">%s</span>
71
  <input type="hidden" name="%s" value="%s" %s />',
72
  esc_html__( 'Image Select', 'smart-custom-fields' ),
73
  esc_attr( SCF_Config::PREFIX . 'upload-image' ),
74
  esc_attr( $hide_class ),
 
75
  $image,
76
  esc_attr( $name ),
77
  esc_attr( $value ),
@@ -97,6 +99,17 @@ class Smart_Custom_Fields_Field_Image extends Smart_Custom_Fields_Field_Base {
97
  />
98
  </td>
99
  </tr>
 
 
 
 
 
 
 
 
 
 
 
100
  <?php
101
  }
102
  }
31
  protected function options() {
32
  return array(
33
  'notes' => '',
34
+ 'size' => 'full',
35
  );
36
  }
37
 
54
  $hide_class = 'hide';
55
  $image = $btn_remove;
56
  if ( $value ) {
57
+ $image_src = wp_get_attachment_image_src( $value, $this->get( 'size' ) );
58
  if ( is_array( $image_src ) && isset( $image_src[0] ) ) {
59
  $image_src = $image_src[0];
60
  $image = sprintf(
68
 
69
  return sprintf(
70
  '<span class="button btn-add-image">%s</span><br />
71
+ <span class="%s %s" data-size="%s">%s</span>
72
  <input type="hidden" name="%s" value="%s" %s />',
73
  esc_html__( 'Image Select', 'smart-custom-fields' ),
74
  esc_attr( SCF_Config::PREFIX . 'upload-image' ),
75
  esc_attr( $hide_class ),
76
+ esc_attr( $this->get( 'size' ) ),
77
  $image,
78
  esc_attr( $name ),
79
  esc_attr( $value ),
99
  />
100
  </td>
101
  </tr>
102
+ <tr>
103
+ <th><?php esc_html_e( 'Preview Size', 'smart-custom-fields' ); ?></th>
104
+ <td>
105
+ <select name="<?php echo esc_attr( $this->get_field_name_in_setting( $group_key, $field_key, 'size' ) ); ?>">
106
+ <option value="full" <?php selected( $this->get( 'size' ), 'full' );?> >full</option>
107
+ <?php foreach ( get_intermediate_image_sizes() as $size ) : ?>
108
+ <option value="<?php echo esc_attr( $size );?>" <?php selected( $this->get( 'size' ), $size );?>><?php echo esc_html( $size );?></option>
109
+ <?php endforeach;?>
110
+ </select>
111
+ </td>
112
+ </tr>
113
  <?php
114
  }
115
  }
classes/fields/class.field-radio.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Radio
4
- * Version : 1.1.0
5
  * Author : Takashi Kitajima
6
  * Created : October 7, 2014
7
- * Modified : February 27, 2015
8
  * License : GPLv2
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -30,9 +30,10 @@ class Smart_Custom_Fields_Field_Radio extends Smart_Custom_Fields_Field_Base {
30
  */
31
  protected function options() {
32
  return array(
33
- 'choices' => '',
34
- 'default' => '',
35
- 'notes' => '',
 
36
  );
37
  }
38
 
@@ -44,9 +45,10 @@ class Smart_Custom_Fields_Field_Radio extends Smart_Custom_Fields_Field_Base {
44
  * @return string html
45
  */
46
  public function get_field( $index, $value ) {
47
- $name = $this->get_field_name_in_editor( $index );
48
- $disabled = $this->get_disable_attribute( $index );
49
- $choices = SCF::choices_eol_to_array( $this->get( 'choices' ) );
 
50
 
51
  $form_field = sprintf(
52
  '<input type="hidden" name="%s" value="" %s />',
@@ -56,7 +58,8 @@ class Smart_Custom_Fields_Field_Radio extends Smart_Custom_Fields_Field_Base {
56
  foreach ( $choices as $choice ) {
57
  $choice = trim( $choice );
58
  $form_field .= sprintf(
59
- '<label><input type="radio" name="%s" value="%s" %s %s /> %s</label>',
 
60
  esc_attr( $name ),
61
  esc_attr( $choice ),
62
  checked( $value, $choice, false ),
@@ -84,6 +87,26 @@ class Smart_Custom_Fields_Field_Radio extends Smart_Custom_Fields_Field_Base {
84
  rows="5" /><?php echo esc_textarea( "\n" . $this->get( 'choices' ) ); ?></textarea>
85
  </td>
86
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  <tr>
88
  <th><?php esc_html_e( 'Default', 'smart-custom-fields' ); ?></th>
89
  <td>
1
  <?php
2
  /**
3
  * Smart_Custom_Fields_Field_Radio
4
+ * Version : 1.2.0
5
  * Author : Takashi Kitajima
6
  * Created : October 7, 2014
7
+ * Modified : April 24, 2015
8
  * License : GPLv2
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
30
  */
31
  protected function options() {
32
  return array(
33
+ 'choices' => '',
34
+ 'radio_direction' => 'horizontal', // or vertical
35
+ 'default' => '',
36
+ 'notes' => '',
37
  );
38
  }
39
 
45
  * @return string html
46
  */
47
  public function get_field( $index, $value ) {
48
+ $name = $this->get_field_name_in_editor( $index );
49
+ $disabled = $this->get_disable_attribute( $index );
50
+ $choices = SCF::choices_eol_to_array( $this->get( 'choices' ) );
51
+ $direction = $this->get( 'radio_direction' );
52
 
53
  $form_field = sprintf(
54
  '<input type="hidden" name="%s" value="" %s />',
58
  foreach ( $choices as $choice ) {
59
  $choice = trim( $choice );
60
  $form_field .= sprintf(
61
+ '<span class="%s"><label><input type="radio" name="%s" value="%s" %s %s /> %s</label></span>',
62
+ esc_attr( SCF_Config::PREFIX . 'item-' . $direction ),
63
  esc_attr( $name ),
64
  esc_attr( $choice ),
65
  checked( $value, $choice, false ),
87
  rows="5" /><?php echo esc_textarea( "\n" . $this->get( 'choices' ) ); ?></textarea>
88
  </td>
89
  </tr>
90
+ <tr>
91
+ <th><?php esc_html_e( 'Display Direction', 'smart-custom-fields' ); ?></th>
92
+ <td>
93
+ <?php
94
+ $directions = array(
95
+ 'horizontal' => __( 'horizontal', 'smart-custom-fields' ),
96
+ 'vertical' => __( 'vertical' , 'smart-custom-fields' ),
97
+ );
98
+ foreach ( $directions as $key => $value ) {
99
+ printf(
100
+ '<label><input type="radio" name="%s" value="%s" %s /> %s</label>&nbsp;&nbsp;&nbsp;',
101
+ esc_attr( $this->get_field_name_in_setting( $group_key, $field_key, 'radio_direction' ) ),
102
+ esc_attr( $key ),
103
+ checked( $this->get( 'radio_direction' ), $key, false ),
104
+ esc_html( $value )
105
+ );
106
+ }
107
+ ?>
108
+ </td>
109
+ </tr>
110
  <tr>
111
  <th><?php esc_html_e( 'Default', 'smart-custom-fields' ); ?></th>
112
  <td>
css/editor.css CHANGED
@@ -1,9 +1,9 @@
1
  /**
2
  * editor.css
3
- * Version : 1.0.0
4
  * Author : Takashi Kitajima
5
  * Created : September 23, 2014
6
- * Modified :
7
  * License : GPLv2
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
@@ -189,3 +189,8 @@
189
  position: relative;
190
  color: #CCC;
191
  }
 
 
 
 
 
1
  /**
2
  * editor.css
3
+ * Version : 1.1.0
4
  * Author : Takashi Kitajima
5
  * Created : September 23, 2014
6
+ * Modified : April 24, 2015
7
  * License : GPLv2
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
189
  position: relative;
190
  color: #CCC;
191
  }
192
+
193
+ .smart-cf-item-vertical {
194
+ display: block;
195
+ margin: 0 0 3px;
196
+ }
js/editor.js CHANGED
@@ -1,9 +1,9 @@
1
  /**
2
  * editor.js
3
- * Version : 1.1.0
4
  * Author : Takashi Kitajima
5
  * Created : September 23, 2014
6
- * Modified : April 11, 2015
7
  * License : GPLv2
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
@@ -96,24 +96,39 @@ jQuery( function( $ ) {
96
  custom_uploader_image.open();
97
  return;
98
  }
 
 
 
 
 
 
 
 
 
99
  custom_uploader_image = wp.media( {
100
- title : smart_cf_uploader.image_uploader_title,
101
- library: {
102
- type: 'image'
103
- },
104
  button : {
105
  text: smart_cf_uploader.image_uploader_title
106
  },
107
- multiple: false
 
 
 
 
 
 
 
108
  } );
109
 
110
  custom_uploader_image.on( 'select', function() {
111
  var images = custom_uploader_image.state().get( 'selection' );
112
  images.each( function( file ){
 
113
  var image_area = upload_button.parent().find( '.smart-cf-upload-image' );
 
 
114
  image_area.find( 'img' ).remove();
115
  image_area.prepend(
116
- '<img src="' + file.toJSON().url + '" />'
117
  );
118
  image_area.removeClass( 'hide' );
119
  upload_button.parent().find( 'input[type="hidden"]' ).val( file.toJSON().id );
1
  /**
2
  * editor.js
3
+ * Version : 1.1.1
4
  * Author : Takashi Kitajima
5
  * Created : September 23, 2014
6
+ * Modified : April 24, 2015
7
  * License : GPLv2
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  */
96
  custom_uploader_image.open();
97
  return;
98
  }
99
+
100
+ wp.media.view.Modal.prototype.on( 'ready', function(){
101
+ $( 'select.attachment-filters' )
102
+ .find( '[value="uploaded"]' )
103
+ .attr( 'selected', true )
104
+ .parent()
105
+ .trigger( 'change' );
106
+ } );
107
+
108
  custom_uploader_image = wp.media( {
 
 
 
 
109
  button : {
110
  text: smart_cf_uploader.image_uploader_title
111
  },
112
+ states: [
113
+ new wp.media.controller.Library({
114
+ title : smart_cf_uploader.image_uploader_title,
115
+ library : wp.media.query( { type: 'image' } ),
116
+ multiple : false,
117
+ filterable: 'uploaded'
118
+ })
119
+ ]
120
  } );
121
 
122
  custom_uploader_image.on( 'select', function() {
123
  var images = custom_uploader_image.state().get( 'selection' );
124
  images.each( function( file ){
125
+ var sizes = file.get('sizes');
126
  var image_area = upload_button.parent().find( '.smart-cf-upload-image' );
127
+ var sizename = image_area.data('size');
128
+ var img = sizes[ sizename ] || sizes.full;
129
  image_area.find( 'img' ).remove();
130
  image_area.prepend(
131
+ '<img src="' + img.url + '" />'
132
  );
133
  image_area.removeClass( 'hide' );
134
  upload_button.parent().find( 'input[type="hidden"]' ).val( file.toJSON().id );
languages/smart-custom-fields-ja.mo CHANGED
Binary file
languages/smart-custom-fields-ja.po CHANGED
@@ -2,17 +2,17 @@
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 1.3.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/smart-custom-fields\n"
7
- "POT-Creation-Date: 2015-04-11 05:04:11+00:00\n"
8
- "PO-Revision-Date: 2015-04-11 14:09+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.7.5\n"
16
  "Plural-Forms: nplurals=1; plural=0;\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-Basepath: .\n"
@@ -97,10 +97,10 @@ msgid "No"
97
  msgstr "いいえ"
98
 
99
  #: classes/fields/class.field-boolean.php:83
100
- #: classes/fields/class.field-check.php:90
101
  #: classes/fields/class.field-colorpicker.php:102
102
  #: classes/fields/class.field-datepicker.php:124
103
- #: classes/fields/class.field-radio.php:88
104
  #: classes/fields/class.field-select.php:85
105
  #: classes/fields/class.field-text.php:65
106
  #: classes/fields/class.field-textarea.php:65
@@ -117,12 +117,12 @@ msgid "FALSE Label"
117
  msgstr "FALSE ラベル"
118
 
119
  #: classes/fields/class.field-boolean.php:126
120
- #: classes/fields/class.field-check.php:99
121
  #: classes/fields/class.field-colorpicker.php:111
122
  #: classes/fields/class.field-datepicker.php:188
123
  #: classes/fields/class.field-file.php:92
124
- #: classes/fields/class.field-image.php:91
125
- #: classes/fields/class.field-radio.php:97
126
  #: classes/fields/class.field-relation.php:209
127
  #: classes/fields/class.field-select.php:94
128
  #: classes/fields/class.field-text.php:74
@@ -135,12 +135,27 @@ msgstr "注記"
135
  msgid "Check"
136
  msgstr "チェックボックス"
137
 
138
- #: classes/fields/class.field-check.php:81
139
- #: classes/fields/class.field-radio.php:79
140
  #: classes/fields/class.field-select.php:76
141
  msgid "Choices"
142
  msgstr "選択肢"
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  #: classes/fields/class.field-colorpicker.php:29
145
  msgid "Color picker"
146
  msgstr "カラーピッカー"
@@ -175,7 +190,7 @@ msgid "File"
175
  msgstr "ファイル"
176
 
177
  #: classes/fields/class.field-file.php:50
178
- #: classes/fields/class.field-image.php:50
179
  msgid "Delete"
180
  msgstr "削除"
181
 
@@ -187,10 +202,14 @@ msgstr "ファイル選択"
187
  msgid "Image"
188
  msgstr "画像"
189
 
190
- #: classes/fields/class.field-image.php:72
191
  msgid "Image Select"
192
  msgstr "画像選択"
193
 
 
 
 
 
194
  #: classes/fields/class.field-radio.php:21
195
  msgid "Radio"
196
  msgstr "ラジオボタン"
@@ -240,45 +259,46 @@ msgstr "繰り返し"
240
  msgid "Group name"
241
  msgstr "グループ名"
242
 
243
- #: classes/models/class.revisions.php:117 smart-custom-fields.php:123
244
- #: smart-custom-fields.php:124 smart-custom-fields.php:125
 
245
  msgid "Smart Custom Fields"
246
  msgstr "Smart Custom Fields"
247
 
248
- #: smart-custom-fields.php:126 smart-custom-fields.php:127
249
- #: smart-custom-fields.php:166 smart-custom-fields.php:167
250
  msgid "Add New"
251
  msgstr "新規追加"
252
 
253
- #: smart-custom-fields.php:128
254
  msgid "New Field"
255
  msgstr "新規フィールド"
256
 
257
- #: smart-custom-fields.php:129
258
  msgid "Edit Field"
259
  msgstr "フィールド編集"
260
 
261
- #: smart-custom-fields.php:130
262
  msgid "View Field"
263
  msgstr "フィールドを表示"
264
 
265
- #: smart-custom-fields.php:131
266
  msgid "All Fields"
267
  msgstr "すべてのフィールド"
268
 
269
- #: smart-custom-fields.php:132
270
  msgid "Search Fields"
271
  msgstr "フィールドを検索"
272
 
273
- #: smart-custom-fields.php:133
274
  msgid "Parent Fields:"
275
  msgstr "親フィールド:"
276
 
277
- #: smart-custom-fields.php:134
278
  msgid "No Fields found."
279
  msgstr "フィールドは見つかりませんでした。"
280
 
281
- #: smart-custom-fields.php:135
282
  msgid "No Fields found in Trash."
283
  msgstr "ゴミ箱にフィールドは見つかりませんでした"
284
 
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 1.3.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2015-04-24 02:00:47+00:00\n"
8
+ "PO-Revision-Date: 2015-04-24 11:01+0900\n"
9
  "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
10
  "Language-Team: \n"
11
  "Language: ja\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.7.6\n"
16
  "Plural-Forms: nplurals=1; plural=0;\n"
17
  "X-Poedit-KeywordsList: __;_e\n"
18
  "X-Poedit-Basepath: .\n"
97
  msgstr "いいえ"
98
 
99
  #: classes/fields/class.field-boolean.php:83
100
+ #: classes/fields/class.field-check.php:112
101
  #: classes/fields/class.field-colorpicker.php:102
102
  #: classes/fields/class.field-datepicker.php:124
103
+ #: classes/fields/class.field-radio.php:111
104
  #: classes/fields/class.field-select.php:85
105
  #: classes/fields/class.field-text.php:65
106
  #: classes/fields/class.field-textarea.php:65
117
  msgstr "FALSE ラベル"
118
 
119
  #: classes/fields/class.field-boolean.php:126
120
+ #: classes/fields/class.field-check.php:121
121
  #: classes/fields/class.field-colorpicker.php:111
122
  #: classes/fields/class.field-datepicker.php:188
123
  #: classes/fields/class.field-file.php:92
124
+ #: classes/fields/class.field-image.php:93
125
+ #: classes/fields/class.field-radio.php:120
126
  #: classes/fields/class.field-relation.php:209
127
  #: classes/fields/class.field-select.php:94
128
  #: classes/fields/class.field-text.php:74
135
  msgid "Check"
136
  msgstr "チェックボックス"
137
 
138
+ #: classes/fields/class.field-check.php:83
139
+ #: classes/fields/class.field-radio.php:82
140
  #: classes/fields/class.field-select.php:76
141
  msgid "Choices"
142
  msgstr "選択肢"
143
 
144
+ #: classes/fields/class.field-check.php:92
145
+ #: classes/fields/class.field-radio.php:91
146
+ msgid "Display Direction"
147
+ msgstr "表示方向"
148
+
149
+ #: classes/fields/class.field-check.php:96
150
+ #: classes/fields/class.field-radio.php:95
151
+ msgid "horizontal"
152
+ msgstr "水平方向"
153
+
154
+ #: classes/fields/class.field-check.php:97
155
+ #: classes/fields/class.field-radio.php:96
156
+ msgid "vertical"
157
+ msgstr "垂直方向"
158
+
159
  #: classes/fields/class.field-colorpicker.php:29
160
  msgid "Color picker"
161
  msgstr "カラーピッカー"
190
  msgstr "ファイル"
191
 
192
  #: classes/fields/class.field-file.php:50
193
+ #: classes/fields/class.field-image.php:51
194
  msgid "Delete"
195
  msgstr "削除"
196
 
202
  msgid "Image"
203
  msgstr "画像"
204
 
205
+ #: classes/fields/class.field-image.php:73
206
  msgid "Image Select"
207
  msgstr "画像選択"
208
 
209
+ #: classes/fields/class.field-image.php:103
210
+ msgid "Preview Size"
211
+ msgstr "プレビューサイズ"
212
+
213
  #: classes/fields/class.field-radio.php:21
214
  msgid "Radio"
215
  msgstr "ラジオボタン"
259
  msgid "Group name"
260
  msgstr "グループ名"
261
 
262
+ #. Plugin Name of the plugin/theme
263
+ #: classes/models/class.revisions.php:117 smart-custom-fields.php:130
264
+ #: smart-custom-fields.php:131 smart-custom-fields.php:132
265
  msgid "Smart Custom Fields"
266
  msgstr "Smart Custom Fields"
267
 
268
+ #: smart-custom-fields.php:133 smart-custom-fields.php:134
269
+ #: smart-custom-fields.php:173 smart-custom-fields.php:174
270
  msgid "Add New"
271
  msgstr "新規追加"
272
 
273
+ #: smart-custom-fields.php:135
274
  msgid "New Field"
275
  msgstr "新規フィールド"
276
 
277
+ #: smart-custom-fields.php:136
278
  msgid "Edit Field"
279
  msgstr "フィールド編集"
280
 
281
+ #: smart-custom-fields.php:137
282
  msgid "View Field"
283
  msgstr "フィールドを表示"
284
 
285
+ #: smart-custom-fields.php:138
286
  msgid "All Fields"
287
  msgstr "すべてのフィールド"
288
 
289
+ #: smart-custom-fields.php:139
290
  msgid "Search Fields"
291
  msgstr "フィールドを検索"
292
 
293
+ #: smart-custom-fields.php:140
294
  msgid "Parent Fields:"
295
  msgstr "親フィールド:"
296
 
297
+ #: smart-custom-fields.php:141
298
  msgid "No Fields found."
299
  msgstr "フィールドは見つかりませんでした。"
300
 
301
+ #: smart-custom-fields.php:142
302
  msgid "No Fields found in Trash."
303
  msgstr "ゴミ箱にフィールドは見つかりませんでした"
304
 
languages/smart-custom-fields.pot CHANGED
@@ -2,21 +2,15 @@
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 1.3.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/smart-custom-fields\n"
7
- "POT-Creation-Date: 2015-04-11 05:04:11+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: 2015-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: Takashi Kitajima <inc@2inc.org>\n"
13
- "Language-Team: Takashi Kitajima <inc@2inc.org>\n"
14
- "Plural-Forms: nplurals=1; plural=0;\n"
15
- "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Poedit-Basepath: .\n"
17
- "X-Generator: Poedit 1.7.4\n"
18
- "X-Poedit-KeywordsList: __;_e\n"
19
- "X-Poedit-SearchPath-0: ..\n"
20
 
21
  #: classes/controller/class.editor.php:54
22
  msgid "Image setting"
@@ -97,10 +91,10 @@ msgid "No"
97
  msgstr ""
98
 
99
  #: classes/fields/class.field-boolean.php:83
100
- #: classes/fields/class.field-check.php:90
101
  #: classes/fields/class.field-colorpicker.php:102
102
  #: classes/fields/class.field-datepicker.php:124
103
- #: classes/fields/class.field-radio.php:88
104
  #: classes/fields/class.field-select.php:85
105
  #: classes/fields/class.field-text.php:65
106
  #: classes/fields/class.field-textarea.php:65
@@ -117,12 +111,12 @@ msgid "FALSE Label"
117
  msgstr ""
118
 
119
  #: classes/fields/class.field-boolean.php:126
120
- #: classes/fields/class.field-check.php:99
121
  #: classes/fields/class.field-colorpicker.php:111
122
  #: classes/fields/class.field-datepicker.php:188
123
  #: classes/fields/class.field-file.php:92
124
- #: classes/fields/class.field-image.php:91
125
- #: classes/fields/class.field-radio.php:97
126
  #: classes/fields/class.field-relation.php:209
127
  #: classes/fields/class.field-select.php:94
128
  #: classes/fields/class.field-text.php:74
@@ -135,12 +129,27 @@ msgstr ""
135
  msgid "Check"
136
  msgstr ""
137
 
138
- #: classes/fields/class.field-check.php:81
139
- #: classes/fields/class.field-radio.php:79
140
  #: classes/fields/class.field-select.php:76
141
  msgid "Choices"
142
  msgstr ""
143
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  #: classes/fields/class.field-colorpicker.php:29
145
  msgid "Color picker"
146
  msgstr ""
@@ -175,7 +184,7 @@ msgid "File"
175
  msgstr ""
176
 
177
  #: classes/fields/class.field-file.php:50
178
- #: classes/fields/class.field-image.php:50
179
  msgid "Delete"
180
  msgstr ""
181
 
@@ -187,10 +196,14 @@ msgstr ""
187
  msgid "Image"
188
  msgstr ""
189
 
190
- #: classes/fields/class.field-image.php:72
191
  msgid "Image Select"
192
  msgstr ""
193
 
 
 
 
 
194
  #: classes/fields/class.field-radio.php:21
195
  msgid "Radio"
196
  msgstr ""
@@ -240,45 +253,47 @@ msgstr ""
240
  msgid "Group name"
241
  msgstr ""
242
 
243
- #: classes/models/class.revisions.php:117 smart-custom-fields.php:123
244
- #: smart-custom-fields.php:124 smart-custom-fields.php:125
 
 
245
  msgid "Smart Custom Fields"
246
  msgstr ""
247
 
248
- #: smart-custom-fields.php:126 smart-custom-fields.php:127
249
- #: smart-custom-fields.php:166 smart-custom-fields.php:167
250
  msgid "Add New"
251
  msgstr ""
252
 
253
- #: smart-custom-fields.php:128
254
  msgid "New Field"
255
  msgstr ""
256
 
257
- #: smart-custom-fields.php:129
258
  msgid "Edit Field"
259
  msgstr ""
260
 
261
- #: smart-custom-fields.php:130
262
  msgid "View Field"
263
  msgstr ""
264
 
265
- #: smart-custom-fields.php:131
266
  msgid "All Fields"
267
  msgstr ""
268
 
269
- #: smart-custom-fields.php:132
270
  msgid "Search Fields"
271
  msgstr ""
272
 
273
- #: smart-custom-fields.php:133
274
  msgid "Parent Fields:"
275
  msgstr ""
276
 
277
- #: smart-custom-fields.php:134
278
  msgid "No Fields found."
279
  msgstr ""
280
 
281
- #: smart-custom-fields.php:135
282
  msgid "No Fields found in Trash."
283
  msgstr ""
284
 
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 1.3.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/smart-custom-fields\n"
7
+ "POT-Creation-Date: 2015-04-24 02:00:47+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: 2015-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
 
 
 
 
 
 
14
 
15
  #: classes/controller/class.editor.php:54
16
  msgid "Image setting"
91
  msgstr ""
92
 
93
  #: classes/fields/class.field-boolean.php:83
94
+ #: classes/fields/class.field-check.php:112
95
  #: classes/fields/class.field-colorpicker.php:102
96
  #: classes/fields/class.field-datepicker.php:124
97
+ #: classes/fields/class.field-radio.php:111
98
  #: classes/fields/class.field-select.php:85
99
  #: classes/fields/class.field-text.php:65
100
  #: classes/fields/class.field-textarea.php:65
111
  msgstr ""
112
 
113
  #: classes/fields/class.field-boolean.php:126
114
+ #: classes/fields/class.field-check.php:121
115
  #: classes/fields/class.field-colorpicker.php:111
116
  #: classes/fields/class.field-datepicker.php:188
117
  #: classes/fields/class.field-file.php:92
118
+ #: classes/fields/class.field-image.php:93
119
+ #: classes/fields/class.field-radio.php:120
120
  #: classes/fields/class.field-relation.php:209
121
  #: classes/fields/class.field-select.php:94
122
  #: classes/fields/class.field-text.php:74
129
  msgid "Check"
130
  msgstr ""
131
 
132
+ #: classes/fields/class.field-check.php:83
133
+ #: classes/fields/class.field-radio.php:82
134
  #: classes/fields/class.field-select.php:76
135
  msgid "Choices"
136
  msgstr ""
137
 
138
+ #: classes/fields/class.field-check.php:92
139
+ #: classes/fields/class.field-radio.php:91
140
+ msgid "Display Direction"
141
+ msgstr ""
142
+
143
+ #: classes/fields/class.field-check.php:96
144
+ #: classes/fields/class.field-radio.php:95
145
+ msgid "horizontal"
146
+ msgstr ""
147
+
148
+ #: classes/fields/class.field-check.php:97
149
+ #: classes/fields/class.field-radio.php:96
150
+ msgid "vertical"
151
+ msgstr ""
152
+
153
  #: classes/fields/class.field-colorpicker.php:29
154
  msgid "Color picker"
155
  msgstr ""
184
  msgstr ""
185
 
186
  #: classes/fields/class.field-file.php:50
187
+ #: classes/fields/class.field-image.php:51
188
  msgid "Delete"
189
  msgstr ""
190
 
196
  msgid "Image"
197
  msgstr ""
198
 
199
+ #: classes/fields/class.field-image.php:73
200
  msgid "Image Select"
201
  msgstr ""
202
 
203
+ #: classes/fields/class.field-image.php:103
204
+ msgid "Preview Size"
205
+ msgstr ""
206
+
207
  #: classes/fields/class.field-radio.php:21
208
  msgid "Radio"
209
  msgstr ""
253
  msgid "Group name"
254
  msgstr ""
255
 
256
+ #. #-#-#-#-# smart-custom-fields.pot (Smart Custom Fields 1.3.2) #-#-#-#-#
257
+ #. Plugin Name of the plugin/theme
258
+ #: classes/models/class.revisions.php:117 smart-custom-fields.php:130
259
+ #: smart-custom-fields.php:131 smart-custom-fields.php:132
260
  msgid "Smart Custom Fields"
261
  msgstr ""
262
 
263
+ #: smart-custom-fields.php:133 smart-custom-fields.php:134
264
+ #: smart-custom-fields.php:173 smart-custom-fields.php:174
265
  msgid "Add New"
266
  msgstr ""
267
 
268
+ #: smart-custom-fields.php:135
269
  msgid "New Field"
270
  msgstr ""
271
 
272
+ #: smart-custom-fields.php:136
273
  msgid "Edit Field"
274
  msgstr ""
275
 
276
+ #: smart-custom-fields.php:137
277
  msgid "View Field"
278
  msgstr ""
279
 
280
+ #: smart-custom-fields.php:138
281
  msgid "All Fields"
282
  msgstr ""
283
 
284
+ #: smart-custom-fields.php:139
285
  msgid "Search Fields"
286
  msgstr ""
287
 
288
+ #: smart-custom-fields.php:140
289
  msgid "Parent Fields:"
290
  msgstr ""
291
 
292
+ #: smart-custom-fields.php:141
293
  msgid "No Fields found."
294
  msgstr ""
295
 
296
+ #: smart-custom-fields.php:142
297
  msgid "No Fields found in Trash."
298
  msgstr ""
299
 
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.1.1
7
- Stable tag: 1.3.1
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -33,6 +33,7 @@ https://www.youtube.com/watch?v=WxPZurn0yvI
33
  * Relation
34
  * Color picker
35
  * Date picker
 
36
 
37
  = How to get meta data ? =
38
 
@@ -81,6 +82,11 @@ You can send your own language pack to me.
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
84
  = 1.3.1 =
85
  * Fixed a wysiwyg field bug.
86
  * Add boolean field.
4
  Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
5
  Requires at least: 3.9
6
  Tested up to: 4.1.1
7
+ Stable tag: 1.3.2
8
  License: GPLv2
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
33
  * Relation
34
  * Color picker
35
  * Date picker
36
+ * Boolean
37
 
38
  = How to get meta data ? =
39
 
82
 
83
  == Changelog ==
84
 
85
+ = 1.3.2 =
86
+ * Add preview size setting in the image field.
87
+ * Add display direction setting in the checkbox and radio field.
88
+ * Changed the upload field that displayed uploaded to this post first.
89
+
90
  = 1.3.1 =
91
  * Fixed a wysiwyg field bug.
92
  * Add boolean field.
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: 1.3.1
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
- * Modified: April 11, 2015
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2
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: 1.3.2
7
  * Author: Takashi Kitajima
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
+ * Modified: April 24, 2015
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2