Initial Commit

This commit is contained in:
2019-11-21 12:25:31 +01:00
commit f4aabcb9b1
13959 changed files with 787761 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
<?php
namespace Sitemap\Form;
use Thelia\Form\BaseForm;
/**
* Class SitemapConfigForm
* @package Sitemap\Form
* @author Etienne Perriere <eperriere@openstudio.fr>
*/
class SitemapConfigForm extends BaseForm
{
public function getName()
{
return 'sitemap_config_form';
}
/**
* @return null
*/
protected function buildForm()
{
$this->formBuilder
->add(
'timeout',
'number',
['label' => $this->translator->trans('Script timeout (in seconds) for images generation (default: 30)', [], 'sitemap')]
)
->add(
'width',
'text',
['label' => $this->translator->trans('Image width', [], 'sitemap')]
)
->add(
'height',
'text',
['label' => $this->translator->trans('Image height', [], 'sitemap')]
)
->add(
'quality',
'text',
['label' => $this->translator->trans('Image quality', [], 'sitemap')]
)
->add(
'rotation',
'text',
['label' => $this->translator->trans('Image rotation', [], 'sitemap')]
)
->add(
'resize_mode',
'text',
['label' => $this->translator->trans('Image resize mode ([borders] / crop / none)', [], 'sitemap')]
)
->add(
'background_color',
'text',
['label' => $this->translator->trans('Image background color', [], 'sitemap')]
)
->add(
'allow_zoom',
'text',
['label' => $this->translator->trans('Allow image zoom ([false] / true)', [], 'sitemap')]
)
;
}
}