* @var array
*/
protected $middleware = [
+ \Cubist\Backpack\app\Middleware\LocaleSelector::class,
\App\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
}
}
if (isset($values['-'])) {
- $options['-'] = ['label' => __('Non défini'), 'value' => '-', 'nb_products' => $values['-']];
+ $options['-'] = ['label' => 'Non défini', 'value' => '-', 'nb_products' => $values['-']];
}
$f['options'] = $options;
} else if ($data->type == 'numeric' || $data->type == 'range' || $data->type == 'numeric_list') {
'name' => 'intro',
'type' => 'BunchOfFields',
'bunch' => 'App\SubForms\Intro',
- 'label' => __('Introduction'),
+ 'label' => 'Introduction',
'tab' => 'Introduction',
]);
$this->addField(['name' => 'email',
'type' => 'Email',
- 'label' => __('E-mail'),
+ 'label' => 'E-mail',
'tab' => 'Informations de contact']);
$this->addField(['name' => 'phone',
'type' => 'Text',
- 'label' => __('Téléphone'),
+ 'label' => 'Téléphone',
'translatable' => false,
'tab' => 'Informations de contact']);
$this->addField(['name' => 'address',
'type' => 'Textarea',
- 'label' => __('Adresse'),
+ 'label' => 'Adresse',
'translatable' => false,
'tab' => 'Informations de contact']);
'name' => 'social',
'type' => 'BunchOfFields',
'bunch' => 'App\SubForms\SocialNetworks',
- 'label' => __('Réseaux Sociaux'),
- 'tab' => __('Réseaux Sociaux'),
+ 'label' => 'Réseaux Sociaux',
+ 'tab' => 'Réseaux Sociaux',
]);
//=== Forms
$this->addField([
'name' => 'footer_text',
'type' => 'Textarea',
- 'label' => __('Texte de footer'),
+ 'label' => 'Texte de footer',
'attributes' => [
'rows' => 4,
],
$this->addField([
'name' => 'footer_heading_contact',
'type' => 'Text',
- 'label' => __('Titre de colonne « Nous contacter »'),
+ 'label' => 'Titre de colonne « Nous contacter »',
'tab' => 'Footer',
]);
$this->addField([
'name' => 'footer_heading_strengths',
'type' => 'Text',
- 'label' => __('Titre de colonne « PMI à votre service »'),
+ 'label' => 'Titre de colonne « PMI à votre service »',
'tab' => 'Footer'
]);
'name' => 'strengths',
'type' => 'BunchOfFieldsMultiple',
'bunch' => 'App\SubForms\Strength',
- 'label' => __('Points Forts'),
+ 'label' => 'Points Forts',
'tab' => 'Footer',
]);
}
{
parent::init();
$this->addField(['name' => 'name',
- 'label' => __('Nom'),
+ 'label' => 'Nom',
'type' => 'Text']);
$this->addField(['name' => 'role',
- 'label' => __('Role'),
+ 'label' => 'Role',
'type' => 'Text']);
$this->addField(['name' => 'photo',
- 'label' => __('Photo'),
+ 'label' => 'Photo',
'type' => 'Images',
'maxFiles' => 1]);
}
$this->addField(['name' => 'twitter',
'type' => 'Text',
- 'label' => __('Twitter'),
+ 'label' => 'Twitter',
'translatable' => false]);
$this->addField(['name' => 'linkedin',
'type' => 'Text',
- 'label' => __('LinkedIn'),
+ 'label' => 'LinkedIn',
'translatable' => false]);
}
}
parent::init();
$this->addField([
'name' => 'title',
- 'label' => __('Titre'),
+ 'label' => 'Titre',
'type' => 'Text',
]);
$this->addField([
'name' => 'description',
- 'label' => __('Description'),
+ 'label' => 'Description',
'type' => 'Text',
]);
$this->addField([
'name' => 'icon',
- 'label' => __('Picto'),
+ 'label' => 'Picto',
'type' => 'Images',
'translatable' => false,
]);
{
parent::init();
$this->addField(['name' => 'title',
- 'label' => __('Titre de valeur'),
+ 'label' => 'Titre de valeur',
'type' => 'Text']);
$this->addField(['name' => 'text',
- 'label' => __('Texte de valeur'),
+ 'label' => 'Texte de valeur',
'type' => 'Textarea']);
$this->addField(['name' => 'image',
- 'label' => __('Image de valeur'),
+ 'label' => 'Image de valeur',
'type' => 'Images',
'maxFiles' => 1]);
}
'name' => 'intro',
'type' => 'BunchOfFields',
'bunch' => 'App\SubForms\Intro',
- 'label' => __('Introduction'),
+ 'label' => 'Introduction',
'tab' => 'Intro',
]);
}
Debugbar::startMeasure('nav_catalog', 'Make Products sub navigation');
parent::setMenuChildren($menu);
- $families = ['captor' => __('Capteurs'), 'system' => __('Systèmes de mesure')];
+ $families = ['captor' =>'Capteurs', 'system' => 'Systèmes de mesure'];
Debugbar::startMeasure('nav_catalog_models', 'Request catalog models');
Debugbar::startMeasure('nav_catalog_models_types', 'Request catalog models (types)');
'name' => 'slideshow',
'type' => 'BunchOfFieldsMultiple',
'bunch' => 'App\SubForms\Slide',
- 'label' => __('Slideshow'),
+ 'label' => 'Slideshow',
'tab' => 'Slideshow',
]);
'name' => 'services_support',
'type' => 'BunchOfFields',
'bunch' => 'App\SubForms\Intro',
- 'label' => __('Bloc « Services & Support »'),
+ 'label' => 'Bloc « Services & Support »',
'tab' => 'Services & Support',
]);
'internal_search_index' => env('CUBIST_INTERNAL_SEARCH_INDEX', strtolower(env('APP_NAME', 'App_name') . '_' . env('APP_ENV', 'dev'))),
'page_model' => '\App\Models\Page',
'settings_model' => '\App\Models\Settings',
+ 'locale_model' => '\App\Models\Locale',
'seo_robots' => env('SEO_ROBOTS', true),
];
<div class="contact-shortcut-tab">
<a href="/contact" class="bg-blue p-3 bg-blue flex items-center pr-10">
<img class="contact-shortcut-icon" src="{{ asset('images/icon-email.svg') }}" alt="{{ __('Contact') }}">
- {!! __('Formulaire de contact</a>') !!}
+ {!! __('Formulaire de contact') !!}
</a>
{{--
<div class="contact-shortcut-detail bg-blue">