Add store_description field for SEO
This commit is contained in:
@@ -271,6 +271,7 @@ return array(
|
|||||||
'Store logs into text file' => 'Store logs into text file',
|
'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 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 name' => 'Store name',
|
||||||
|
'Store description' => 'Store description',
|
||||||
'Street Address' => 'Street Address',
|
'Street Address' => 'Street Address',
|
||||||
'Street Address ' => 'Street Address ',
|
'Street Address ' => 'Street Address ',
|
||||||
'Strictly use the requested language' => 'Strictly use the requested language',
|
'Strictly use the requested language' => 'Strictly use the requested language',
|
||||||
|
|||||||
@@ -271,6 +271,7 @@ return array(
|
|||||||
'Store logs into text file' => 'Conserver les logs dans des fichiers texte',
|
'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 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 name' => 'Nom du magasin',
|
||||||
|
'Store description' => 'Description du magasin',
|
||||||
'Street Address' => 'Adresse',
|
'Street Address' => 'Adresse',
|
||||||
'Street Address ' => 'Rue',
|
'Street Address ' => 'Rue',
|
||||||
'Strictly use the requested language' => 'Utiliser strictement la langue demandée',
|
'Strictly use the requested language' => 'Utiliser strictement la langue demandée',
|
||||||
|
|||||||
@@ -160,6 +160,7 @@ return array(
|
|||||||
'Store logs into text file' => 'Archiviare i log in un file di testo',
|
'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 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 name' => 'Nome del negozio',
|
||||||
|
'Store description' => 'Descrizione del negozio',
|
||||||
'Street Address' => 'Indirizzo',
|
'Street Address' => 'Indirizzo',
|
||||||
'Street Address ' => 'Indirizzo ',
|
'Street Address ' => 'Indirizzo ',
|
||||||
'Strictly use the requested language' => 'Utilizzare rigorosamente la lingua richiesta',
|
'Strictly use the requested language' => 'Utilizzare rigorosamente la lingua richiesta',
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ class ConfigStoreController extends BaseAdminController
|
|||||||
// Hydrate the store configuration form
|
// Hydrate the store configuration form
|
||||||
$configStoreForm = new ConfigStoreForm($this->getRequest(), 'form', array(
|
$configStoreForm = new ConfigStoreForm($this->getRequest(), 'form', array(
|
||||||
'store_name' => ConfigQuery::read("store_name"),
|
'store_name' => ConfigQuery::read("store_name"),
|
||||||
|
'store_description' => ConfigQuery::read("store_description"),
|
||||||
'store_email' => ConfigQuery::read("store_email"),
|
'store_email' => ConfigQuery::read("store_email"),
|
||||||
'store_business_id' => ConfigQuery::read("store_business_id"),
|
'store_business_id' => ConfigQuery::read("store_business_id"),
|
||||||
'store_phone' => ConfigQuery::read("store_phone"),
|
'store_phone' => ConfigQuery::read("store_phone"),
|
||||||
|
|||||||
@@ -29,6 +29,13 @@ class ConfigStoreForm extends BaseForm
|
|||||||
"for" => "store_name"
|
"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(
|
->add("store_email", "text", array(
|
||||||
"constraints" => array(
|
"constraints" => array(
|
||||||
new Constraints\NotBlank(),
|
new Constraints\NotBlank(),
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ INSERT INTO `config` (`name`, `value`, `secured`, `hidden`, `created_at`, `updat
|
|||||||
('session_config.default', '1', 1, 1, NOW(), NOW()),
|
('session_config.default', '1', 1, 1, NOW(), NOW()),
|
||||||
('default_lang_without_translation', '1', 1, 1, NOW(), NOW()),
|
('default_lang_without_translation', '1', 1, 1, NOW(), NOW()),
|
||||||
('store_name','', 0, 1, NOW(), NOW()),
|
('store_name','', 0, 1, NOW(), NOW()),
|
||||||
|
('store_description','', 0, 1, NOW(), NOW()),
|
||||||
('store_email','', 0, 1, NOW(), NOW()),
|
('store_email','', 0, 1, NOW(), NOW()),
|
||||||
('one_domain_foreach_lang','0', 1, 1, NOW(), NOW()),
|
('one_domain_foreach_lang','0', 1, 1, NOW(), NOW()),
|
||||||
('thelia_version','2.0.2', 1, 1, NOW(), NOW()),
|
('thelia_version','2.0.2', 1, 1, NOW(), NOW()),
|
||||||
|
|||||||
@@ -56,13 +56,23 @@
|
|||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
{form_field form=$form field='store_name'}
|
{form_field form=$form field='store_name'}
|
||||||
<div class="form-group {if $error}has-error{/if}">
|
<div class="form-group {if $error}has-error{/if}">
|
||||||
<label for="{$label_attr.for}" class="control-label">{$label}:{if $required} <span class="required">*</span>{/if}</label>
|
<label for="{$label_attr.for}" class="control-label">{$label}:{if $required} <span class="required">*</span>{/if}</label>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}"{if $required} aria-required="true" required{/if} title="{$label}" placeholder="{intl l='Used in your store front'}">
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}"{if $required} aria-required="true" required{/if} title="{$label}" placeholder="{intl l='Used in your store front'}">
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
{/form_field}
|
||||||
|
|
||||||
|
{form_field form=$form field='store_description'}
|
||||||
|
<div class="form-group {if $error}has-error{/if}">
|
||||||
|
<label for="{$label_attr.for}" class="control-label">{$label}:{if $required} <span class="required">*</span>{/if}</label>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<textarea name="{$name}" id="{$label_attr.for}" title="{$label}" class="form-control" placeholder="{intl l='Used in your store front'}" rows="3"{if $required} aria-required="true" required{/if}>{$value}</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
{/form_field}
|
{/form_field}
|
||||||
|
|
||||||
{form_field form=$form field='store_business_id'}
|
{form_field form=$form field='store_business_id'}
|
||||||
|
|||||||
@@ -27,7 +27,9 @@ GNU General Public License : http://www.gnu.org/licenses/
|
|||||||
|
|
||||||
{block name="no-return-functions"}{/block}
|
{block name="no-return-functions"}{/block}
|
||||||
{assign var="store_name" value="{config key="store_name"}"}
|
{assign var="store_name" value="{config key="store_name"}"}
|
||||||
|
{assign var="store_description" value="{config key="store_description"}"}
|
||||||
{if not $store_name}{assign var="store_name" value="{intl l='Thelia V2'}"}{/if}
|
{if not $store_name}{assign var="store_name" value="{intl l='Thelia V2'}"}{/if}
|
||||||
|
{if not $store_description}{assign var="store_description" value="$store_name"}{/if}
|
||||||
|
|
||||||
{* paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither *}
|
{* paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither *}
|
||||||
<!--[if lt IE 7 ]><html class="no-js oldie ie6" lang="{lang attr="code"}"> <![endif]-->
|
<!--[if lt IE 7 ]><html class="no-js oldie ie6" lang="{lang attr="code"}"> <![endif]-->
|
||||||
@@ -49,7 +51,7 @@ GNU General Public License : http://www.gnu.org/licenses/
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
{block name="meta"}
|
{block name="meta"}
|
||||||
<meta name="description" content="{if $page_description}{$page_description}{else}{$store_name}{/if}">
|
<meta name="description" content="{if $page_description}{$page_description}{else}{$store_description}{/if}">
|
||||||
<meta name="robots" content="noindex,nofollow">
|
<meta name="robots" content="noindex,nofollow">
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user