| 1 |
<?php |
| 2 |
|
| 3 |
namespace Give\FormMigration\Steps; |
| 4 |
|
| 5 |
use Give\FormMigration\Contracts\FormMigrationStep; |
| 6 |
|
| 7 |
/** |
| 8 |
* @since 3.5.0 |
| 9 |
*/ |
| 10 |
class FormFeaturedImage extends FormMigrationStep |
| 11 |
{ |
| 12 |
/** |
| 13 |
* @since 3.5.0 |
| 14 |
*/ |
| 15 |
public function process() |
| 16 |
{ |
| 17 |
if ($formV2FeaturedImage = $this->formV2->getFormFeaturedImage()) { |
| 18 |
$this->formV3->settings->designSettingsImageUrl = $formV2FeaturedImage; |
| 19 |
if ('sequoia' === $this->formV2->getFormTemplate()) { |
| 20 |
$this->formV3->settings->designSettingsImageStyle = 'center'; |
| 21 |
} |
| 22 |
} |
| 23 |
} |
| 24 |
} |
| 25 |
|