@@ -23,7 +23,7 @@ |
||
23 | 23 | <th class="seomatic-property"><?= Html::encode($subName) ?><?= $this->render('render-copy-menu', [ |
24 | 24 | 'value' => $subValue ?? '', |
25 | 25 | 'meta' => $meta, |
26 | - ]) ?></th> |
|
26 | + ]) ?></th> |
|
27 | 27 | <?= $this->render('render-value', [ |
28 | 28 | 'value' => $subValue ?? '', |
29 | 29 | 'meta' => $meta, |
@@ -30,6 +30,9 @@ |
||
30 | 30 | ]) ?> |
31 | 31 | </tr> |
32 | 32 | <?php endforeach; ?></tbody></table></div></details></td> |
33 | -<?php else: ?><td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES | ENT_SUBSTITUTE, |
|
33 | +<?php else { |
|
34 | + : ?><td><?= htmlspecialchars(VarDumper::dumpAsString($value), ENT_QUOTES | ENT_SUBSTITUTE, |
|
34 | 35 | \Yii::$app->charset, true) ?></td> |
35 | -<?php endif; ?> |
|
36 | +<?php endif; |
|
37 | +} |
|
38 | +?> |
@@ -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> |
@@ -55,5 +55,8 @@ |
||
55 | 55 | ]) ?> |
56 | 56 | </tr> |
57 | 57 | <?php endforeach; ?></tbody></table><?php if (!empty($value['__errors'])): ?><?php foreach ($value['__errors'] as $logLevel => $errorCat): ?><?php if (!empty($errorCat)): ?><ul class="callout callout-<?= $logLevel ?> seomatic-error"><?php foreach ($errorCat as $property => $errors): ?><li class="seomatic-error <?= $logLevel ?>"><?= $property ?></li><ul><?php foreach (array_unique($errors) as $error): ?><li><?= $error ?></li><?php endforeach; ?></ul><?php endforeach; ?></ul><?php endif; ?><?php endforeach; ?><?php endif; ?></div></details></td> |
58 | -<?php else: ?><td><div class="callout callout-secondary seomatic-callout">not included</div></td> |
|
59 | -<?php endif; ?> |
|
58 | +<?php else { |
|
59 | + : ?><td><div class="callout callout-secondary seomatic-callout">not included</div></td> |
|
60 | +<?php endif; |
|
61 | +} |
|
62 | +?> |
@@ -109,12 +109,12 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | /** |
112 | - * Get all the sitemap index items by params. |
|
113 | - * |
|
114 | - * @param array $params |
|
115 | - * @return array |
|
116 | - * @throws \yii\web\NotFoundHttpException |
|
117 | - */ |
|
112 | + * Get all the sitemap index items by params. |
|
113 | + * |
|
114 | + * @param array $params |
|
115 | + * @return array |
|
116 | + * @throws \yii\web\NotFoundHttpException |
|
117 | + */ |
|
118 | 118 | public static function getSitemapStyles($source, $arguments, $context, ResolveInfo $resolveInfo): array |
119 | 119 | { |
120 | 120 | return [ |
@@ -502,8 +502,8 @@ |
||
502 | 502 | string $sourceBundleType, |
503 | 503 | string $sourceHandle, |
504 | 504 | string $siteHandle = null, |
505 | - $typeId = null, |
|
506 | - $loadFromSiteHandle = null, |
|
505 | + $typeId = null, |
|
506 | + $loadFromSiteHandle = null, |
|
507 | 507 | ): Response { |
508 | 508 | $variables = []; |
509 | 509 | // @TODO: Let people choose an entry/categorygroup/product as the preview |
@@ -66,8 +66,8 @@ |
||
66 | 66 | string $sort = 'sourceName|asc', |
67 | 67 | int $page = 1, |
68 | 68 | int $per_page = 20, |
69 | - $filter = '', |
|
70 | - $siteId = 0, |
|
69 | + $filter = '', |
|
70 | + $siteId = 0, |
|
71 | 71 | ): Response { |
72 | 72 | $data = []; |
73 | 73 | $sortField = 'sourceName'; |