PluginProbe
Packeta / 1.6.1
Packeta v1.6.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / template / dashboard-widget.latte

dashboard-widget.latte in Packeta 1.6.1, at template/dashboard-widget.latte

53 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {if false === $isOptionsFormValid}
2 <p>
3 <span class="dashicons dashicons-warning"></span> {$translations['noGlobalSettings']|noescape}
4 </p>
5 {/if}
6
7 {if $isOptionsFormValid && false === $hasPacketaShipping}
8 <p>
9 <span class="dashicons dashicons-warning"></span> {$translations['noPacketaShipping']|noescape}
10 </p>
11 {/if}
12
13 {if $isOptionsFormValid && false === $hasExternalCarrier}
14 <p>
15 <span class="dashicons dashicons-warning"></span> {$translations['noExternalCarrier']|noescape}
16 </p>
17 {/if}
18
19 {if $isOptionsFormValid && $isCodSettingNeeded}
20 <p>
21 <span class="dashicons dashicons-warning"></span> {$translations['noCodPaymentConfigured']|noescape}
22 </p>
23 {/if}
24
25 {if $isOptionsFormValid}
26 {if $activeCountries}
27 <p>
28 {$translations['activeCountriesNotice']}:
29 {foreach $activeCountries as $activeCountry}
30 <a href="{$activeCountry['url']}">{$activeCountry['name']}</a>{sep}, {/sep}
31 {/foreach}
32 </p>
33 {else}
34 <p>
35 <span class="dashicons dashicons-warning"></span> {$translations['noActiveCountry']|noescape}
36 </p>
37 {/if}
38 {/if}
39
40 {if $survey->active}
41 <hr>
42 <p><strong>{$translations['surveyTitle']}</strong></p>
43 <div class="packetery-survey">
44 <div>{$translations['surveyDescription']}</p>
45 <p><a href="{$survey->url}" target="_blank"
46 class="button button-primary">{$translations['surveyButtonText']}</a></p>
47 </div>
48 <div>
49 <img src="{$survey->image}" alt="{$translations['packeta']}">
50 </div>
51 </div>
52 {/if}
53