directive de réduction d'affichage, sur paramètre de thème
This commit is contained in:
parent
00c15bdb1b
commit
4071cfcdb8
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@ class AppServiceProvider extends ServiceProvider
|
|||
return "<?php if(!empty($expression)) { echo sprintf('/ %s', $expression); } ?>";
|
||||
});
|
||||
|
||||
Blade::directive('excerpt_product_title', function($expression) {
|
||||
$limit = config('theme.max_product_title_length');
|
||||
return "<?php echo Illuminate\Support\Str::limit($expression,$limit) ?>";
|
||||
});
|
||||
|
||||
//default paginator template for back Office
|
||||
Paginator::useBootstrap();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue