1 | <?php |
||
2 | /** |
||
3 | * Template Comments plugin for Craft CMS |
||
4 | * |
||
5 | * Adds a HTML comment to demarcate each Twig template that is included or |
||
6 | * extended. |
||
7 | * |
||
8 | * @link https://nystudio107.com/ |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
9 | * @copyright Copyright (c) nystudio107 |
||
0 ignored issues
–
show
|
|||
10 | */ |
||
0 ignored issues
–
show
|
|||
11 | |||
12 | /** |
||
13 | * Template Comments config.php |
||
14 | * |
||
15 | * This file exists only as a template for the Instant Analytics settings. |
||
16 | * It does nothing on its own. |
||
17 | * |
||
18 | * Don't edit this file, instead copy it to 'craft/config' as |
||
19 | * 'templatecomments.php' and make your changes there to override default |
||
20 | * settings. |
||
21 | * |
||
22 | * Once copied to 'craft/config', this file will be multi-environment aware as |
||
23 | * well, so you can have different settings groups for each environment, just |
||
24 | * as |
||
25 | * you do for 'general.php' |
||
26 | */ |
||
27 | |||
28 | return [ |
||
29 | /** |
||
0 ignored issues
–
show
|
|||
30 | * @var bool Whether comments should be generated for site templates |
||
31 | */ |
||
32 | 'siteTemplateComments' => true, |
||
33 | |||
34 | /** |
||
0 ignored issues
–
show
|
|||
35 | * @var bool Whether comments should be generated for Control Panel templates |
||
36 | */ |
||
37 | 'cpTemplateComments' => false, |
||
38 | |||
39 | /** |
||
0 ignored issues
–
show
|
|||
40 | * @var bool Whether to generate comments only when `devMode` is on |
||
41 | */ |
||
42 | 'onlyCommentsInDevMode' => true, |
||
43 | |||
44 | /** |
||
0 ignored issues
–
show
|
|||
45 | * @var array Don't add comments to template blocks that contain these strings (case-insensitive) |
||
46 | */ |
||
47 | 'excludeBlocksThatContain' => [ |
||
48 | 'css', |
||
49 | 'js', |
||
50 | 'javascript', |
||
51 | ], |
||
52 | |||
53 | /** |
||
0 ignored issues
–
show
|
|||
54 | * @var bool Whether or not to show comments for templates that are include'd |
||
55 | */ |
||
56 | 'templateCommentsEnabled' => true, |
||
57 | |||
58 | /** |
||
0 ignored issues
–
show
|
|||
59 | * @var bool Whether or not to show comments for `{% block %}`s |
||
60 | */ |
||
61 | 'blockCommentsEnabled' => true, |
||
62 | |||
63 | /** |
||
0 ignored issues
–
show
|
|||
64 | * @var array Template file suffixes that Template Comments should be enabled for |
||
65 | */ |
||
66 | 'allowedTemplateSuffixes' => [ |
||
67 | '', |
||
68 | 'twig', |
||
69 | 'htm', |
||
70 | 'html', |
||
71 | ], |
||
72 | ]; |
||
73 |