@@ -10,7 +10,8 @@ discard block |
||
10 | 10 | <h3><?= $caption ?></h3> |
11 | 11 | <?php if (empty($values['unparsed'])): ?> |
12 | 12 | <div class="callout callout-secondary seomatic-callout">no tags present</div> |
13 | -<?php else: ?> |
|
13 | +<?php else { |
|
14 | + : ?> |
|
14 | 15 | <div class="table-responsive"> |
15 | 16 | <table class="table table-condensed table-bordered table-striped table-hover seomatic-vars-table" |
16 | 17 | style="table-layout: fixed;"> |
@@ -23,7 +24,9 @@ discard block |
||
23 | 24 | </thead> |
24 | 25 | <tbody> |
25 | 26 | <?php foreach ($values['unparsed'] as $name => $value): ?> |
26 | - <?php $meta['TAG_NAME'] = $name; ?> |
|
27 | + <?php $meta['TAG_NAME'] = $name; |
|
28 | +} |
|
29 | +?> |
|
27 | 30 | <?php $meta['PROPERTY_NAME'] = []; ?> |
28 | 31 | <tr> |
29 | 32 | <th class="seomatic-property"><?= Html::encode($name) ?><?= $this->render('render-copy-menu', [ |
@@ -11,7 +11,8 @@ discard block |
||
11 | 11 | <h3><?= $caption ?></h3> |
12 | 12 | <?php if (empty($values['unparsed'])): ?> |
13 | 13 | <div class="callout callout-secondary seomatic-callout">no variables present</div> |
14 | -<?php else: ?> |
|
14 | +<?php else { |
|
15 | + : ?> |
|
15 | 16 | <div class="table-responsive"> |
16 | 17 | <table class="table table-condensed table-bordered table-striped table-hover seomatic-vars-table" |
17 | 18 | style="table-layout: fixed;"> |
@@ -39,7 +40,9 @@ discard block |
||
39 | 40 | 'meta' => $meta, |
40 | 41 | ]) ?> |
41 | 42 | </tr> |
42 | - <?php endforeach; ?> |
|
43 | + <?php endforeach; |
|
44 | +} |
|
45 | +?> |
|
43 | 46 | </tbody> |
44 | 47 | </table> |
45 | 48 | </div> |
@@ -75,8 +75,11 @@ |
||
75 | 75 | </ul><?php endif; ?><?php endforeach; ?><?php endif; ?></div> |
76 | 76 | </details> |
77 | 77 | </td> |
78 | -<?php else: ?> |
|
78 | +<?php else { |
|
79 | + : ?> |
|
79 | 80 | <td> |
80 | 81 | <div class="callout callout-secondary seomatic-callout">not included</div> |
81 | 82 | </td> |
82 | -<?php endif; ?> |
|
83 | +<?php endif; |
|
84 | +} |
|
85 | +?> |
@@ -45,7 +45,10 @@ |
||
45 | 45 | </div> |
46 | 46 | </details> |
47 | 47 | </td> |
48 | -<?php else: ?> |
|
48 | +<?php else { |
|
49 | + : ?> |
|
49 | 50 | <td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES | ENT_SUBSTITUTE, |
50 | 51 | Yii::$app->charset, true) ?></td> |
51 | -<?php endif; ?> |
|
52 | +<?php endif; |
|
53 | +} |
|
54 | +?> |