From 8966b75e3030a1af648e666f9c92b97b1984ed04 Mon Sep 17 00:00:00 2001 From: Alan <@> Date: Mon, 16 Feb 2026 21:36:34 +0300 Subject: [PATCH] add repairs design files --- .htaccess | 4 + design/atomic/html/repairs.tpl | 50 +++++++ design/atomic/html/repairs_post.tpl | 148 +++++++++++++++++++ view/RepairsView.php | 218 ++++++++++++++++++++++++++++ 4 files changed, 420 insertions(+) create mode 100644 design/atomic/html/repairs.tpl create mode 100644 design/atomic/html/repairs_post.tpl create mode 100644 view/RepairsView.php diff --git a/.htaccess b/.htaccess index 019e626..dadf503 100644 --- a/.htaccess +++ b/.htaccess @@ -651,6 +651,10 @@ RewriteRule ^nashi-raboty/([^/]+)/([^/]+)/filter-([^/]+)/?$ index.php?module= # Услуги RewriteRule ^tuning-centr/(.+)?$ index.php?module=ServiceView&page_url=$1 [L,QSA] +# Автосервис +RewriteRule ^repairs/([^/]+)/?$ index.php?module=RepairsView&url=$1 [L,QSA] +RewriteRule ^repairs/?$ index.php?module=RepairsView [L,QSA] + # Страницы RewriteRule ^pages/.+/([^/]+)/?$ index.php?module=PageView&page_url=$1 [L,QSA] RewriteRule ^pages/([^/]+)/?$ index.php?module=PageView&page_url=$1 [L,QSA] diff --git a/design/atomic/html/repairs.tpl b/design/atomic/html/repairs.tpl new file mode 100644 index 0000000..1a2d88e --- /dev/null +++ b/design/atomic/html/repairs.tpl @@ -0,0 +1,50 @@ +{* Список записей блога *} + +
+ + +
+ {/if}
+
+
+ {$post->name|escape}{$post->date|date|date_format:"%e %m %Y":"":"rus"}
+ + +{*if $post->image} + +{/if*} + +{$post->text} + + + + + + +
Комментарии
+ + {if $comments} + ++ {foreach $comments as $comment} + +-
+
+
+ {$comment->name|escape} {$comment->date|date}, {$comment->date|time}
+ {if !$comment->approved}ожидает модерации{/if}
+
+
+
+
+ {$comment->text|escape|nl2br}
+
+
+ {/foreach}
+
+ + {else} ++ Пока нет комментариев +
+ {/if} + + + + + + + + + + + + + + + +