Skip to content

Commit

Permalink
Minor Bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
quasel committed May 9, 2017
1 parent 304dc1d commit b880e4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 7 additions & 3 deletions classes/class-pods-page-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,13 @@ static public function pods_settings_form() {
'toggle' => self::pods_get_option_fields(),
'help' => __( 'Some Help Text', 'fl-theme-builder' ),
'description' => __( 'Some Description', 'fl-theme-builder' ),
'placeholder' => __( 'Some Placeholder', 'fl-theme-builder' )

)
'placeholder' => __( 'Some Placeholder', 'fl-theme-builder' ),
),
'image_size' => array( // add only if selected field is an image field ?
'type' => 'photo-sizes',
'label' => __( 'Image Size', 'fl-theme-builder' ),
'default' => 'thumbnail',
),
);

$pods = self::pods_get_pods();
Expand Down
10 changes: 4 additions & 6 deletions includes/pods-page-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'label' => __( 'Field Name (CPT):', 'fl-theme-builder' ),
'options' => 'PodsPageData::pods_get_fields',
'help' => __( 'If two CPT have a field with the same name - the field is only listed once - this way you could use the same Template for diffrent CPT if they use the same field names.)', 'fl-theme-builder' ),
'description' => __( 'Select one', 'fl-theme-builder' ),
'description' => __( 'Select one!', 'fl-theme-builder' ),
'placeholder' => __( 'Field Name (CPT)', 'fl-theme-builder' )

)
Expand Down Expand Up @@ -48,7 +48,6 @@
'help' => __( 'If two CPT have a field with the same name - the field is only listed once - this way you could use the same Template for diffrent CPT if they use the same field names.)', 'fl-theme-builder' ),
'description' => __( 'Select one', 'fl-theme-builder' ),
'placeholder' => __( 'Field Name (CPT)', 'fl-theme-builder' )

)
);

Expand Down Expand Up @@ -100,9 +99,9 @@

'help' => __( 'If two CPT have a field with the same name - the field is only listed once - this way you could use the same Template for diffrent CPT if they use the same field names.)', 'fl-theme-builder' ),
'description' => __( 'Select one', 'fl-theme-builder' ),
'placeholder' => __( 'Field Name (CPT)', 'fl-theme-builder' )
'placeholder' => __( 'Field Name (CPT)', 'fl-theme-builder' ),
),

)
);

FLPageData::add_post_property( 'pods_photos', $data );
Expand All @@ -121,14 +120,13 @@
);

$form = array(
'field' => array(
'template' => array(
'type' => 'select',
'label' => __( 'Field Name (CPT):', 'fl-theme-builder' ),
'options' => 'PodsPageData::pods_get_templates',
'help' => __( 'If two CPT have a field with the same name - the field is only listed once - this way you could use the same Template for diffrent CPT if they use the same field names.)', 'fl-theme-builder' ),
'description' => __( 'Select one', 'fl-theme-builder' ),
'placeholder' => __( 'Field Name (CPT)', 'fl-theme-builder' )

)
);

Expand Down

0 comments on commit b880e4c

Please sign in to comment.