diff --git a/src/Controller/GeneralController.php b/src/Controller/GeneralController.php index 8fd296b..9b1ae84 100644 --- a/src/Controller/GeneralController.php +++ b/src/Controller/GeneralController.php @@ -29,4 +29,12 @@ class GeneralController extends AbstractController 'posts' => $posts ], $response); } + + #[Route('/reviews', name: 'app_reviews')] + public function app_reviews(EntityManagerInterface $em): Response + { + return $this->render('reviews/reviews.html.twig', [ + 'posts' => $em->getRepository(Post::class)->findBycat('blog', 3) + ]); + } } diff --git a/src/Controller/PageController.php b/src/Controller/PageController.php index 8567c96..0b245fc 100644 --- a/src/Controller/PageController.php +++ b/src/Controller/PageController.php @@ -26,7 +26,7 @@ class PageController extends AbstractController #[Route('/blog/{page}', name: 'app_blog_home')] public function app_blog_home(EntityManagerInterface $entityManagerInterface, $page = 1): Response { - $perpage = 6; + $perpage = 9; $posts = $entityManagerInterface->getRepository(Post::class)->findByCat('blog',$perpage,$page); $cat = $entityManagerInterface->getRepository(Cat::class)->findOneBy(['code'=>'blog']); $count = $entityManagerInterface->getRepository(Post::class)->count(['cat'=>$cat]); diff --git a/templates/base.html.twig b/templates/base.html.twig index dd2e6c9..a3ebfcd 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -67,6 +67,11 @@ + + {# #} + diff --git a/templates/post/api_docs.html.twig b/templates/post/api_docs.html.twig index af0d79e..0ee0a6d 100644 --- a/templates/post/api_docs.html.twig +++ b/templates/post/api_docs.html.twig @@ -1,5 +1,7 @@ {% extends 'base.html.twig' %} -{% block keywords %}{{item.keywords}}{% endblock %} +{% block keywords %} + {{item.keywords}} +{% endblock %} {% block title %} {{ item.title }} {% endblock %} @@ -11,7 +13,7 @@ {% block body %}
-

مستندات استفاده از API حسابیکس

+

مستندات استفاده از API حسابیکس

@@ -41,7 +43,7 @@

{{item.title}}

{{item.body | raw}}

-

{{item.plain | raw}}

+

{{item.plain | raw}}

diff --git a/templates/post/blog_home.html.twig b/templates/post/blog_home.html.twig index fee6fdb..21e828d 100644 --- a/templates/post/blog_home.html.twig +++ b/templates/post/blog_home.html.twig @@ -36,19 +36,19 @@ {{page}} {% if (page + 1) <= maxpages %} -
  • - {{page +1}} -
  • +
  • + {{page +1}} +
  • {% endif %} {% if (page + 2) <= maxpages %} -
  • - {{page + 2}} -
  • +
  • + {{page + 2}} +
  • {% endif %} {% if (page + 3) <= maxpages %} -
  • - {{page + 3}} -
  • +
  • + {{page + 3}} +
  • {% endif %}
  • صفحه بعدی diff --git a/templates/post/blog_post.html.twig b/templates/post/blog_post.html.twig index cdb1e08..9f1a449 100644 --- a/templates/post/blog_post.html.twig +++ b/templates/post/blog_post.html.twig @@ -1,5 +1,6 @@ {% extends 'base.html.twig' %} -{% block keywords %}item.keywords +{% block keywords %} + {{ item.keywords }} {% endblock %} {% block title %} {{ item.title }} @@ -22,17 +23,17 @@
    - {{item.intro}} + {{item.intro}}
    -
    -
    +
    diff --git a/templates/post/guide.html.twig b/templates/post/guide.html.twig index 42e395d..08acd0e 100644 --- a/templates/post/guide.html.twig +++ b/templates/post/guide.html.twig @@ -1,6 +1,10 @@ {% extends 'base.html.twig' %} -{% block keywords %}{{item.keywords}}{% endblock %} -{% block title %}{{ item.title }}{% endblock %} +{% block keywords %} + {{item.keywords}} +{% endblock %} +{% block title %} + {{ item.title }} +{% endblock %} {% block des %} {{ item.intro }} @@ -9,7 +13,7 @@ {% block body %}
    -

    راهنمای استفاده از حسابیکس

    +

    راهنمای استفاده از حسابیکس

    @@ -39,7 +43,7 @@

    {{item.title}}

    {{item.body | raw}}

    -

    {{item.plain | raw}}

    +

    {{item.plain | raw}}

    diff --git a/templates/post/page.html.twig b/templates/post/page.html.twig index 645f28d..55a067e 100644 --- a/templates/post/page.html.twig +++ b/templates/post/page.html.twig @@ -1,5 +1,7 @@ {% extends 'base.html.twig' %} -{% block keywords %}item.keywords{% endblock %} +{% block keywords %} + {{item.keywords}} +{% endblock %} {% block title %} {{ item.title }} {% endblock %} diff --git a/templates/post/versions.html.twig b/templates/post/versions.html.twig index ad107da..67554de 100644 --- a/templates/post/versions.html.twig +++ b/templates/post/versions.html.twig @@ -1,5 +1,6 @@ {% extends 'base.html.twig' %} -{% block keywords %}item.keywords +{% block keywords %} + {{item.keywords}} {% endblock %} {% block title %} تاریخچه تغییرات حسابیکس @@ -13,7 +14,7 @@
    - +
    {% for item in items %}
    diff --git a/templates/reviews/reviews.html.twig b/templates/reviews/reviews.html.twig new file mode 100644 index 0000000..7c2fd3b --- /dev/null +++ b/templates/reviews/reviews.html.twig @@ -0,0 +1,338 @@ +{% extends 'base.html.twig' %} +{% block title %} + دیدگاه‌های کاربران +{% endblock %} + +{% block des %} + دیدگاه سایر کاربران استفاده کننده از حسابیکس دید بهترین برای انتخاب محصولی عالی را برای شما مهیا می کند. +{% endblock %} + +{% block body %} + +
    +
    +

    How students rated this courses

    +
    +
    +

    4.5

    + + + + + + + + + + + + + + + + + +

    (Based on 27 reviews)

    +
    + +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + +
    + + + + + + + + + + + + + + + + + + 53% + +
    +
    + + + + + + + + + + + + + + + + + + 36% +
    +
    + + + + + + + + + + + + + + + + + + 9% +
    +
    + + + + + + + + + + + + + + + + + + 3% +
    +
    + + + + + + + + + + + + + + + + + + 2% +
    +
    +
    +
    +
    +
    +
    + +
    +

    Reviews

    +
    +
    +
    +
    + + + + +
    +
    +
    +
    + +
    + +
    +

    + Max Hawkins + 2 Days + ago +

    +
    + + + + + + + + + + + + + + + + + +
    +

    Lectures were at a really good pace and I never felt + lost. The instructor was well informed and allowed me to + learn and navigate Figma easily.

    +
    +

    Was this review helpful?

    + Yes + No +
    +
    +
    + +
    + +
    +

    Arthur Williamson + 3 Days + ago +

    +
    + + + + + + + + + + + + + + + + + +
    +

    Its pretty good.Just a reminder that there are also + students with Windows, meaning Figma its a bit different + of yours. Thank you!

    +
    +

    Was this review helpful?

    + Yes + No +
    +
    +
    + +
    + +
    +

    Claire Jones + 4 Days + ago +

    +
    + + + + + + + + + + + + + + + + + +
    +

    + Great course for learning Figma, the only bad detail + would be that some icons are not included in the assets. + But 90% of the icons needed are included, and the voice + of the instructor was very clear and easy to understood. +

    +
    +

    Was this review helpful?

    + Yes + No +
    +
    +
    + +
    + +
    +

    + Bessie Pena + 5 Days + ago +

    +
    + + + + + + + + + + + + + + + + + +
    +

    + I have really enjoyed this class and learned a lot, + found it very inspiring and helpful, thank you! + +

    +
    +

    Was this review helpful?

    + Yes + No +
    +
    +
    +
    +
    +{% endblock %}