progress in mainpage
This commit is contained in:
parent
474a9a27a9
commit
f83ec9ba45
BIN
public/img/hemayatMali.jpg
Normal file
BIN
public/img/hemayatMali.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
BIN
public/img/idea.png
Normal file
BIN
public/img/idea.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 79 KiB |
BIN
public/img/mobileUiHesabix.png
Normal file
BIN
public/img/mobileUiHesabix.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
public/img/viewMobile.png
Normal file
BIN
public/img/viewMobile.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
public/img/viewWindows.png
Normal file
BIN
public/img/viewWindows.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
public/uploaded/1735143659-contact-us-min.jpg
Normal file
BIN
public/uploaded/1735143659-contact-us-min.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 247 KiB |
|
@ -11,10 +11,33 @@ use Symfony\Component\Routing\Attribute\Route;
|
|||
class PageController extends AbstractController
|
||||
{
|
||||
#[Route('/page/{url}', name: 'app_page')]
|
||||
public function app_page(EntityManagerInterface $entityManagerInterface,string $url): Response
|
||||
public function app_page(EntityManagerInterface $entityManagerInterface, string $url): Response
|
||||
{
|
||||
$item = $entityManagerInterface->getRepository(Post::class)->findPageByUrl(['url'=> $url]);
|
||||
if(!$item) throw $this->createNotFoundException();
|
||||
$item = $entityManagerInterface->getRepository(Post::class)->findByUrlFilterCat($url, 'plain');
|
||||
if (!$item)
|
||||
throw $this->createNotFoundException();
|
||||
return $this->render('post/page.html.twig', [
|
||||
'item' => $item,
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/blog/{page}', name: 'app_blog_home')]
|
||||
public function app_blog_home($page = 1, EntityManagerInterface $entityManagerInterface, string $url): Response
|
||||
{
|
||||
$item = $entityManagerInterface->getRepository(Post::class)->findByUrlFilterCat($url, 'blog');
|
||||
if (!$item)
|
||||
throw $this->createNotFoundException();
|
||||
return $this->render('post/blog_home.html.twig', [
|
||||
'item' => $item,
|
||||
]);
|
||||
}
|
||||
|
||||
#[Route('/blog/post/{url}', name: 'app_blog_post')]
|
||||
public function app_blog_post(EntityManagerInterface $entityManagerInterface, string $url): Response
|
||||
{
|
||||
$item = $entityManagerInterface->getRepository(Post::class)->findByUrlFilterCat($url, 'blog');
|
||||
if (!$item)
|
||||
throw $this->createNotFoundException();
|
||||
return $this->render('post/page.html.twig', [
|
||||
'item' => $item,
|
||||
]);
|
||||
|
|
|
@ -33,14 +33,14 @@ class PostRepository extends ServiceEntityRepository
|
|||
// ;
|
||||
// }
|
||||
|
||||
public function findPageByUrl($value): ?Post
|
||||
public function findByUrlFilterCat($value,$cat='plain'): ?Post
|
||||
{
|
||||
return $this->createQueryBuilder('p')
|
||||
->innerJoin('p.cat', 'c')
|
||||
->where('c.code = :cat')
|
||||
->andWhere('p.url = :url')
|
||||
->setParameter('url', $value)
|
||||
->setParameter('cat', 'plain')
|
||||
->setParameter('cat', $cat)
|
||||
->getQuery()
|
||||
->getOneOrNullResult()
|
||||
;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-lg bg-body-tertiary">
|
||||
<nav class="navbar navbar-expand-lg border-bottom bg-body-tertiary">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" href="{{path('app_home')}}">
|
||||
<img src="{{asset('/favicon/favicon.svg')}}" alt="نرم افزار حسابداری آنلاین حسابیکس" width="30" height="30">
|
||||
|
|
|
@ -1,7 +1,68 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
{% block title %}نرم افزار حسابداری آنلاین،متنباز و کاملا رایگان{% endblock %}
|
||||
{% block title %}نرم افزار حسابداری آنلاین،متنباز و کاملا رایگان
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>وب سایت حسابیکس در حال به روز رسانی است . همچنان میتوانید از طریق لینک زیر وارد نرم افزار شوید.</h1>
|
||||
<a target="_blank" href="https://app.hesabix.ir">ورود به حسابیکس</a>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-12 my-3">
|
||||
<div class="p-1 mb-4 bg-body-primary rounded-3">
|
||||
<div class="container-fluid py-5">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-sm-12 col-md-7 mb-3 text-center">
|
||||
<h1 class="fs-2 fw-bold text-primary">شروعی ساده و آسان
|
||||
<br>
|
||||
برای مدیریت کسبوکار شما
|
||||
</h1>
|
||||
<p class="fs-6">حسابیکس پلتفرم حسابداری ابری،متنباز و واقعا رایگان</p>
|
||||
<a class="btn rounded-4 btn-primary" href="https://app.hesabix.ir" target="_blank">هماکنون عضو شوید</a>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-5 mb-3">
|
||||
<img src="{{asset('img/viewWindows.png')}}" class="img-fluid" alt="نرم افزار حسابداری حسابیکس"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="card text-bg-light mb-3">
|
||||
<div class="card-body text-center">
|
||||
<p class="card-text">
|
||||
حسابیکس یک پلتفرم مدیریت کسبوکار که پاسخگوی تمام اهداف تجاری شما از یک فروشگاه کوچک تا یک مجتمع بازگانی بزرگ است
|
||||
<br>
|
||||
کافی است گام اول را بردارید،جهت پیشبرد اهدافتان ما در کنار شما هستیم.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<div class="p-1 mb-4">
|
||||
<div class="container-fluid py-5">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-sm-12 col-md-3 mb-3 text-center">
|
||||
<img src="{{asset('img/viewMobile.png')}}" class="img-fluid" alt="نرم افزار حسابداری حسابیکس"/>
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-9 mb-3">
|
||||
<h2 class="text-primary">شروعی سریع و ساده با حسابیکس</h2>
|
||||
<ul class="">
|
||||
<li class="my-3">
|
||||
ابتدا در حسابیکس عضو شوید و پنل کسب و کار خود را به سادگی بسازید، توجه داشته باشید هر تعداد کسبوکار که داشته باشید می توانید از طریق یک داشبورد واحد آنها مدیریت کنید
|
||||
</li>
|
||||
<li class="my-3">
|
||||
اطلاعات کسب و کار خود را وارد کنید و تنظیمات اولیه را انجام دهید،حسابیکس آماده و در اختیار شماست . در صورتی که سوالی درباره حسابیکس داشتید میتوانید تیکت پشتیبانی ارسال کنید
|
||||
</li>
|
||||
<li class="my-3">
|
||||
از حسابیکس بر روی موبایل، تبلت و کامپیوتر لذت ببرید تنها کافی است که یک اتصال اینترنت داشته باشید،حسابیکس در هر نقطهای از جهان در دسترس شما خواهد بود
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
|
@ -15,6 +15,12 @@
|
|||
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
|
||||
<priority>1.00</priority>
|
||||
</url>
|
||||
{% elseif post.cat.code == 'blog' %}
|
||||
<url>
|
||||
<loc>{{ absolute_url(path('app_blog_post',{'url':post.url})) }}</loc>
|
||||
<lastmod>{{ twigFunctions.getctime(post.dateSubmit) }}</lastmod>
|
||||
<priority>1.00</priority>
|
||||
</url>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</urlset>
|
||||
|
|
Loading…
Reference in a new issue