| Server IP : 104.21.58.90 / Your IP : 104.23.243.25 Web Server : nginx/1.30.6 System : Linux alexhost1 7.0.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 6 02:38:04 UTC 2026 x86_64 User : xxbet_company_com ( 1133) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /data/pbn/satellite/resources/for-satellite-main/themes/main/layouts/shortcodes/ |
Upload File : |
{{- $head := .Get "head" -}}
{{- $body := .Get "body" -}}
<div class="table_responsive">
<table>
{{- if $head -}}
<thead><tr>
{{- $headPattern := `\[(.*?)\]` -}} <!-- Захватываем все внутри квадратных скобок -->
{{- $headMatches := findRESubmatch $headPattern $head -}}
{{- range $match := $headMatches -}}
{{- $cols := split (index $match 1) "|" -}} <!-- Разделяем по '|' -->
{{- range $col := $cols -}}
<th>{{ $col | safeHTML }}</th>
{{- end -}}
{{- end -}}</tr></thead>
{{- end -}}
{{- if $body -}}<tbody>
{{- $bodyPattern := `\[(.*?)\]` -}} <!-- Используем аналогичную регулярку для body -->
{{- $bodyMatches := findRESubmatch $bodyPattern $body -}}
{{- range $match := $bodyMatches -}}<tr>
{{- $cols := split (index $match 1) "|" -}} <!-- Разделяем по '|' -->
{{- range $col := $cols -}}
<td>{{ $col | safeHTML }}</td>
{{- end -}}</tr>
{{- end -}}</tbody>
{{- end -}}
</table>
</div>