diff --git a/classes/class-pods-page-data.php b/classes/class-pods-page-data.php index 87e9acc..77ad21e 100644 --- a/classes/class-pods-page-data.php +++ b/classes/class-pods-page-data.php @@ -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(); diff --git a/includes/pods-page-data.php b/includes/pods-page-data.php index 4cf7b81..eb7adfb 100644 --- a/includes/pods-page-data.php +++ b/includes/pods-page-data.php @@ -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' ) ) @@ -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' ) - ) ); @@ -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 ); @@ -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' ) - ) );