Add store_description field for SEO

This commit is contained in:
Michaël Espeche
2014-06-26 14:25:04 +02:00
parent 6661341eb4
commit 202969fde9
8 changed files with 30 additions and 6 deletions

View File

@@ -271,6 +271,7 @@ return array(
'Store logs into text file' => 'Store logs into text file',
'Store logs into text file, up to a certian size, then a new file is created' => 'Store logs into text file, up to a certian size, then a new file is created',
'Store name' => 'Store name',
'Store description' => 'Store description',
'Street Address' => 'Street Address',
'Street Address ' => 'Street Address ',
'Strictly use the requested language' => 'Strictly use the requested language',

View File

@@ -271,6 +271,7 @@ return array(
'Store logs into text file' => 'Conserver les logs dans des fichiers texte',
'Store logs into text file, up to a certian size, then a new file is created' => 'Sauvegarder les logs dans un fichier texte. A partir d\'une certaine taille un nouveau fichier est créé',
'Store name' => 'Nom du magasin',
'Store description' => 'Description du magasin',
'Street Address' => 'Adresse',
'Street Address ' => 'Rue',
'Strictly use the requested language' => 'Utiliser strictement la langue demandée',

View File

@@ -160,6 +160,7 @@ return array(
'Store logs into text file' => 'Archiviare i log in un file di testo',
'Store logs into text file, up to a certian size, then a new file is created' => 'Archiviare i log in un file di testo, fino ad una certa dimensione, dopo viene creato un nuovo file',
'Store name' => 'Nome del negozio',
'Store description' => 'Descrizione del negozio',
'Street Address' => 'Indirizzo',
'Street Address ' => 'Indirizzo ',
'Strictly use the requested language' => 'Utilizzare rigorosamente la lingua richiesta',

View File

@@ -36,6 +36,7 @@ class ConfigStoreController extends BaseAdminController
// Hydrate the store configuration form
$configStoreForm = new ConfigStoreForm($this->getRequest(), 'form', array(
'store_name' => ConfigQuery::read("store_name"),
'store_description' => ConfigQuery::read("store_description"),
'store_email' => ConfigQuery::read("store_email"),
'store_business_id' => ConfigQuery::read("store_business_id"),
'store_phone' => ConfigQuery::read("store_phone"),

View File

@@ -29,6 +29,13 @@ class ConfigStoreForm extends BaseForm
"for" => "store_name"
)
))
->add("store_description", "text", array(
"label" => Translator::getInstance()->trans('Store description'),
"label_attr" => array(
"for" => "store_description"
),
"required" => false
))
->add("store_email", "text", array(
"constraints" => array(
new Constraints\NotBlank(),