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} + + + + + + + + + + + + + + + +