@hashtagcms/themes 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/bin/cli.js +50 -0
  2. package/package.json +1 -1
  3. package/src/themes/basic/views/_layout_/index.blade.php +73 -0
  4. package/src/themes/basic/views/_layout_/lottie.blade.php +50 -0
  5. package/src/themes/basic/views/_services_/index.blade.php +10 -0
  6. package/src/themes/basic/views/auth/login.blade.php +90 -0
  7. package/src/themes/basic/views/auth/passwords/email.blade.php +112 -0
  8. package/src/themes/basic/views/auth/passwords/reset.blade.php +63 -0
  9. package/src/themes/basic/views/auth/register.blade.php +73 -0
  10. package/src/themes/basic/views/auth/verify.blade.php +23 -0
  11. package/src/themes/basic/views/blog.blade.php +28 -0
  12. package/src/themes/basic/views/category-text.blade.php +1 -0
  13. package/src/themes/basic/views/contact.blade.php +64 -0
  14. package/src/themes/basic/views/copyright.blade.php +33 -0
  15. package/src/themes/basic/views/example/custom.blade.php +11 -0
  16. package/src/themes/basic/views/example/query.blade.php +36 -0
  17. package/src/themes/basic/views/example/queryservice.blade.php +38 -0
  18. package/src/themes/basic/views/example/service-later.blade.php +34 -0
  19. package/src/themes/basic/views/example/service.blade.php +24 -0
  20. package/src/themes/basic/views/example/urlservice.blade.php +27 -0
  21. package/src/themes/basic/views/footer.blade.php +31 -0
  22. package/src/themes/basic/views/header.blade.php +63 -0
  23. package/src/themes/basic/views/hero.blade.php +20 -0
  24. package/src/themes/basic/views/info.blade.php +46 -0
  25. package/src/themes/basic/views/our-speciality.blade.php +95 -0
  26. package/src/themes/basic/views/products.blade.php +20 -0
  27. package/src/themes/basic/views/profile.blade.php +88 -0
  28. package/src/themes/basic/views/seo.blade.php +31 -0
  29. package/src/themes/basic/views/social.blade.php +8 -0
  30. package/src/themes/basic/views/stories.blade.php +55 -0
  31. package/src/themes/basic/views/story-comments.blade.php +56 -0
  32. package/src/themes/basic/views/story.blade.php +103 -0
  33. package/src/themes/basic/views/subscribe.blade.php +23 -0
  34. package/src/themes/elegant/views/_layout_/index.blade.php +73 -0
  35. package/src/themes/elegant/views/_layout_/lottie.blade.php +50 -0
  36. package/src/themes/elegant/views/_services_/index.blade.php +10 -0
  37. package/src/themes/elegant/views/auth/login.blade.php +90 -0
  38. package/src/themes/elegant/views/auth/passwords/email.blade.php +112 -0
  39. package/src/themes/elegant/views/auth/passwords/reset.blade.php +63 -0
  40. package/src/themes/elegant/views/auth/register.blade.php +73 -0
  41. package/src/themes/elegant/views/auth/verify.blade.php +23 -0
  42. package/src/themes/elegant/views/blog.blade.php +28 -0
  43. package/src/themes/elegant/views/category-text.blade.php +1 -0
  44. package/src/themes/elegant/views/contact.blade.php +64 -0
  45. package/src/themes/elegant/views/copyright.blade.php +33 -0
  46. package/src/themes/elegant/views/example/custom.blade.php +11 -0
  47. package/src/themes/elegant/views/example/query.blade.php +36 -0
  48. package/src/themes/elegant/views/example/queryservice.blade.php +38 -0
  49. package/src/themes/elegant/views/example/service-later.blade.php +34 -0
  50. package/src/themes/elegant/views/example/service.blade.php +24 -0
  51. package/src/themes/elegant/views/example/urlservice.blade.php +27 -0
  52. package/src/themes/elegant/views/footer.blade.php +31 -0
  53. package/src/themes/elegant/views/header.blade.php +63 -0
  54. package/src/themes/elegant/views/hero.blade.php +20 -0
  55. package/src/themes/elegant/views/info.blade.php +46 -0
  56. package/src/themes/elegant/views/our-speciality.blade.php +95 -0
  57. package/src/themes/elegant/views/products.blade.php +20 -0
  58. package/src/themes/elegant/views/profile.blade.php +88 -0
  59. package/src/themes/elegant/views/seo.blade.php +31 -0
  60. package/src/themes/elegant/views/social.blade.php +8 -0
  61. package/src/themes/elegant/views/stories.blade.php +55 -0
  62. package/src/themes/elegant/views/story-comments.blade.php +56 -0
  63. package/src/themes/elegant/views/story.blade.php +103 -0
  64. package/src/themes/elegant/views/subscribe.blade.php +23 -0
@@ -0,0 +1,63 @@
1
+ <!--[if lte IE 9]>
2
+ <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
3
+ <![endif]-->
4
+ <header>
5
+ <span style="float:right; position: relative; top:0; padding: 10px">
6
+ <?php
7
+ if(htcms_get_language_id() === 1) {
8
+ echo '<a href="/hi/web/">हिंदीं</a>';
9
+ } else {
10
+ echo '<a href="/en/web/">English</a>';
11
+ }
12
+ ?>
13
+ </span>
14
+ <!-- header-start -->
15
+ <nav class="navbar navbar-expand-lg bg-light">
16
+ <div class="container-fluid">
17
+ <a class="navbar-brand" href="{{htcms_get_path('/')}}"> {{htcms_get_site_info("name")}} </a>
18
+ <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
19
+ <span class="navbar-toggler-icon"></span>
20
+ </button>
21
+ <div class="collapse navbar-collapse" id="navbarScroll">
22
+ <ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll" style="--bs-scroll-height: 100px; overflow: auto">
23
+ @php
24
+ echo htcms_get_header_menu_html($data, null, null);
25
+ //echo is_array($data) ? "haan array hai" : "kya baar kar raha hai?";
26
+ @endphp
27
+ </ul>
28
+ <div class="d-flex">
29
+ <ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll ms-1" style="--bs-scroll-height: 100px; overflow: auto">
30
+ @auth
31
+ @if(strtolower(auth()->user()->user_type) == 'staff')
32
+ <li class="nav-item">
33
+ <a href="{{htcms_admin_path('dashboard')}}" class="nav-link" title="Admin"><i aria-hidden="true" class="fa fa-dashboard"></i> <span class="text">
34
+ {{__('hashtagcms::links.dashboard')}}
35
+ </span></a>
36
+ @endif
37
+ </li>
38
+ <li class="nav-item">
39
+ <a href="{{htcms_get_path('profile')}}" class="nav-link" title="Profile"><i aria-hidden="true" class="fa fa-user"></i> <span class="text">
40
+ {{__('hashtagcms::links.profile')}}
41
+ </span></a>
42
+ </li>
43
+ <li class="nav-item">
44
+ <a href="{{htcms_get_path('logout')}}" class="nav-link" title="Logout"><i aria-hidden="true" class="fa fa-sign-out"></i> <span class="text">
45
+ {{__('hashtagcms::links.logout')}}
46
+ </span></a>
47
+ </li>
48
+ @endauth
49
+ @guest
50
+ <li class="nav-item">
51
+ <a href="{{htcms_get_path('login')}}" class="nav-link"><span>{{__('hashtagcms::links.login')}}</span></a>
52
+ </li>
53
+ <li class="nav-item">
54
+ <a href="{{htcms_get_path('register')}}" class="nav-link"><span>{{__('hashtagcms::links.register')}}</span></a>
55
+ </li>
56
+ @endguest
57
+ </ul>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </nav>
62
+ </header> <!-- end navigation -->
63
+
@@ -0,0 +1,20 @@
1
+ <!-- slider_area_start -->
2
+ @php
3
+ $rnm = rand ( 1 , 2);
4
+ @endphp
5
+ <section class="hero" id="hero">
6
+ <div class="hero-inner hero-bg-{{$rnm}}">
7
+ <div class="container-fluid">
8
+ <div class="row">
9
+ <div class="col-lg-4 hero-text">
10
+ {!! ____("hashtagcms::modules.hero_text_1") !!}
11
+ </div>
12
+ </div>
13
+ <div class="row">
14
+ <div class="col-lg-4 hero-text">
15
+ {!! ____("hashtagcms::modules.hero_text_2") !!}
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </section>
@@ -0,0 +1,46 @@
1
+ <div class="about_area">
2
+ <div class="container">
3
+ <div class="row">
4
+ <div class="col-xl-5 col-lg-6">
5
+ <div class="single_about_info">
6
+ <h3>Customization<br>
7
+ beyond your imagination</h3>
8
+ <p>You can customized each and every page according to your needs. This CMS is actually designed for coroporates.
9
+ You can manage multiple sites from one CMS. This is a headless CMS as well as you can use our frontend too.
10
+ </p>
11
+ <a href="#" class="boxed_btn">Enroll a Course</a>
12
+ </div>
13
+ </div>
14
+ <div class="col-xl-6 offset-xl-1 col-lg-6">
15
+ <div class="about_tutorials">
16
+ <div class="courses">
17
+ <div class="inner_courses">
18
+ <div class="text_info">
19
+ <span>API</span>
20
+ <p> Ready</p>
21
+ </div>
22
+ </div>
23
+ </div>
24
+ <div class="courses-blue">
25
+ <div class="inner_courses">
26
+ <div class="text_info">
27
+ <span>Headless+</span>
28
+ <p>CMS</p>
29
+ </div>
30
+
31
+ </div>
32
+ </div>
33
+ <div class="courses-sky">
34
+ <div class="inner_courses">
35
+ <div class="text_info">
36
+ <span>Unlimited</span>
37
+ <p> Sites and Modules</p>
38
+ </div>
39
+
40
+ </div>
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
@@ -0,0 +1,95 @@
1
+ <section class="mt-5 section-our-specaility">
2
+ <div class="container">
3
+ <div class="row">
4
+ <div class="col-lg-4">
5
+ <div class="card p-0 featured-card box-shadow">
6
+ <div class="card-header text-center design-card">
7
+ <span class="__icon"><i class="fa fa-star-o"></i></span>
8
+ </div>
9
+ <div class="card-body">
10
+ <h3>{{____("hashtagcms::modules.Modern Design")}}</h3>
11
+ <p class="">
12
+ {{____("hashtagcms::modules.Create as many themes as you want. Endless possibilities with the blade template. Acess every laravel feature inside. Each URL can have different theme.")}}
13
+ </p>
14
+ </div>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="col-lg-4">
19
+ <div class="card p-0 featured-card box-shadow">
20
+ <div class="card-header text-center design-mobile">
21
+ <span class="__icon"><i class="fa fa-mobile"></i></span>
22
+ </div>
23
+ <div class="card-body">
24
+ <h3>{{____("hashtagcms::modules.Mobile App (Api Ready)")}}</h3>
25
+ <p class="">
26
+ {{____("hashtagcms::modules.This CMS is bundled with basic mobile app api. We have splash screen api, login, register, load data by category, load module, load module by hooks etc. We will work on a basic mobile app in future. So you get Android and iOS Apps too :)")}}
27
+ </p>
28
+ </div>
29
+ </div>
30
+ </div>
31
+
32
+ <div class="col-lg-4">
33
+ <div class="card p-0 featured-card box-shadow">
34
+ <div class="card-header text-center design-fast-loading">
35
+ <span class="__icon"><i class="fa fa-bolt"></i></span>
36
+ </div>
37
+ <div class="card-body">
38
+ <h3>{{____("hashtagcms::modules.Super Fast Loading")}}</h3>
39
+ <p class="">
40
+ {{____("hashtagcms::modules.Create theme with Webpack to optimize your JS/CSS. And render time is awesome.")}}
41
+ </p>
42
+ </div>
43
+ </div>
44
+ </div>
45
+
46
+
47
+ <div class="col-lg-4">
48
+ <div class="card p-0 featured-card box-shadow">
49
+ <div class="card-header text-center design-user-friendly">
50
+ <span class="__icon"><i class="fa fa-user"></i></span>
51
+ </div>
52
+ <div class="card-body">
53
+ <h3>{{____("hashtagcms::modules.User Friendly")}}</h3>
54
+ <p>
55
+ {{____("hashtagcms::modules.No new learning. If you know Laravel you can easily pick up this #CMS. No folder changes. All files are open and at the place where it should be.")}}
56
+ </p>
57
+ </div>
58
+ </div>
59
+ </div>
60
+
61
+ <div class="col-lg-4">
62
+ <div class="card p-0 featured-card box-shadow">
63
+ <div class="card-header text-center design-admin-panel">
64
+ <span class="__icon"><i class="fa fa-cogs"></i></span>
65
+ </div>
66
+ <div class="card-body">
67
+ <h3>{{____("hashtagcms::modules.Admin Panel")}}</h3>
68
+ <p>
69
+ {{____("hashtagcms::modules.User friendly admin panel. Manage all your modules. User, roles, and oAuth are there. You can manage frontend module position from there too.")}}
70
+ </p>
71
+ </div>
72
+ </div>
73
+ </div>
74
+
75
+ <div class="col-lg-4">
76
+ <div class="card p-0 featured-card box-shadow">
77
+ <div class="card-header text-center design-well-documented">
78
+ <span class="__icon"><i class="fa fa-file-text-o"></i></span>
79
+ </div>
80
+ <div class="card-body">
81
+ <h3>{{____("hashtagcms::modules.Well Documented")}}</h3>
82
+ <p>
83
+ {{____("hashtagcms::modules.Simple and easy. Few steps to build your website. Just follow Laravel guidelines. For lazy people ;) You need Node, Composer and LAMP.")}}
84
+ </p>
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+
90
+ </div>
91
+ <div class="row mt-5 mb-5">
92
+
93
+ </div>
94
+ </div>
95
+ </section>
@@ -0,0 +1,20 @@
1
+ <section class="section-intuitive">
2
+ <div class="container">
3
+ <div class="row align-items-center">
4
+ <div class="col-lg-6 mb-md-40">
5
+ <div class="promo-section__img">
6
+ <iframe width="100%" height="315" src="https://www.youtube.com/embed/1bH2GTzdWQs" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
7
+ </div>
8
+
9
+ </div>
10
+ <div class="col-lg-5 offset-lg-1">
11
+ <div class="promo-section__description">
12
+ <h2 class="promo-section__title">{{____("hashtagcms::modules.products_1")}}</h2>
13
+ <p class="lead">
14
+ {{____("hashtagcms::modules.products_2")}}
15
+ </p>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </section> <!-- end promo section -->
@@ -0,0 +1,88 @@
1
+ <div class="container" style="margin-top: 100px;margin-bottom: 100px">
2
+ <div class="row justify-content-center">
3
+ <div class="col-md-8">
4
+ @if (session('success'))
5
+ <div class="alert alert-success" role="alert" id="success_msg" style="margin-bottom: 10;">
6
+ {{session('success')}} <span title="Close" style="float:right; cursor: pointer" onclick="document.getElementById('success_msg').style.display = 'none'">
7
+ <i class="fa fa-times"></i>
8
+ </span>
9
+ </div>
10
+ @endif
11
+ @php
12
+ $name = $user['name'];
13
+ @endphp
14
+ <div class="card">
15
+ <div class="card-header">Profile</div>
16
+ <div class="card-body">
17
+ @if($user != null)
18
+ <form method="POST" action="/profile/store">
19
+ @csrf
20
+ <div class="row">
21
+ <div class="col-4">
22
+ <div class="form-group">
23
+ <label for="name">Name</label>
24
+ <input type="text" required class="form-control" id="name" name="name" aria-describedby="name" placeholder="Please enter your name" value="{{$name}}">
25
+ </div>
26
+ </div>
27
+ <div class="col-4">
28
+ <div class="form-group">
29
+ <label for="father_name">Father's Name</label>
30
+ <input type="text" required class="form-control" id="father_name" name="father_name" aria-describedby="father_name" placeholder="Please enter your father's name" value="{{$profile['father_name']}}">
31
+ </div>
32
+ </div>
33
+ <div class="col-4">
34
+ <div class="form-group">
35
+ <label for="mother_name">Mother's Name</label>
36
+ <input type="text" required class="form-control" id="mother_name" name="mother_name" aria-describedby="mother_name" placeholder="Please enter your mother's name" value="{{$profile['mother_name']}}">
37
+ </div>
38
+ </div>
39
+ </div>
40
+
41
+ <div class="row">
42
+ <div class="col-6">
43
+ <div class="form-group">
44
+ <label for="email">Email address</label>
45
+ <input type="email" disabled class="form-control" id="email" name="email" aria-describedby="email" placeholder="Please enter your email" value="{{$user['email']}}">
46
+ </div>
47
+ </div>
48
+ <div class="col-6">
49
+ <div class="form-group">
50
+ <label for="mobile">Mobile</label>
51
+ <input type="text" required class="form-control" id="mobile" name="mobile" aria-describedby="name" placeholder="Please enter your mobile number" value="{{$profile['mobile']}}">
52
+ </div>
53
+ </div>
54
+ </div>
55
+
56
+ <div class="row">
57
+ <div class="col-6">
58
+ <div class="form-group">
59
+ <label for="date_of_birth">Date of Birth</label>
60
+ <input type="date" required class="form-control" id="date_of_birth" name="date_of_birth" aria-describedby="date_of_birth" placeholder="Please enter your date of birth" value="{{$profile['date_of_birth']}}">
61
+ </div>
62
+ </div>
63
+ <div class="col-6">
64
+ <div class="form-group">
65
+ <label for="gender">Gender</label>
66
+ {!! FormHelper::select('gender', $genders, array('class'=>'form-control', 'required'=>'required'), $profile['gender'], 'plain_array') !!}
67
+ </div>
68
+ </div>
69
+
70
+ </div>
71
+ <div class="form-group row mb-0">
72
+ <div class="col-md-8 offset-md-4">
73
+ <button type="submit" class="btn btn-primary btn-lg">
74
+ {{ __('Submit') }}
75
+ </button>
76
+
77
+ </div>
78
+ </div>
79
+ </form>
80
+ @else
81
+ <p>You need to <a href="/login?redirect=/profile">login</a> to view your profile.</p>
82
+ @endif
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+
@@ -0,0 +1,31 @@
1
+ <section class="section-faq">
2
+ <div class="container">
3
+ <div class="text-center mb-5">
4
+ <h2 class="heading">{{____("hashtagcms::modules.Frequently asked questions")}}</h2>
5
+ </div>
6
+ <div class="row">
7
+ <div class="col-auto border-bottom mb-5">
8
+ <h4 class="faq-title">{{____("hashtagcms::modules.Is it Free?")}}</h4>
9
+ <p class="faq-text">
10
+ {{____("hashtagcms::modules.Yes, It's MIT license. You can ask for other license.")}}
11
+ </p>
12
+ </div>
13
+
14
+ <div class="col-auto border-bottom mb-5">
15
+ <h4 class="faq-title">{{____("hashtagcms::modules.If there is any bug?")}}</h4>
16
+ <p class="faq-text">
17
+ {!! ____("hashtagcms::modules.bug_post") !!}
18
+
19
+ </p>
20
+ </div>
21
+
22
+ <div class="col-auto border-bottom mb-5">
23
+ <h4 class="faq-title">{{____("hashtagcms::modules.Professional Help?")}}</h4>
24
+ <p class="faq-text">
25
+ {{____("hashtagcms::modules.Of course, we provide professional consultants.")}}
26
+ <a href='{{htcms_get_path('contact')}}'>{{____("hashtagcms::modules.Ask for price")}}</a>.
27
+ </p>
28
+ </div>
29
+ </div>
30
+ </div>
31
+ </section> <!-- end faq -->
@@ -0,0 +1,8 @@
1
+ @foreach($data as $social)
2
+ @php
3
+ $sLabel = ucfirst($social['name']);
4
+ $sCss = strtolower($social['name']);
5
+ $sHref = trim($social['value']);
6
+ @endphp
7
+ <a class="social social-{{$sCss}}" href="{{$sHref}}" title="{{$sLabel}}" target="_blank" rel="noopener nofollow"><i class="fa fa-{{$sCss}}"></i></a>
8
+ @endforeach
@@ -0,0 +1,55 @@
1
+ @php
2
+ $results = $data['results'];
3
+ $hasData = count($results) > 0;
4
+ @endphp
5
+
6
+ <section class="section-blogs">
7
+ <div class="container">
8
+ <div class="row">
9
+ <div class="col-lg-9 col-6">
10
+ @if($hasData)
11
+ @foreach($results as $index=>$story)
12
+ <div class="card shadow blog">
13
+ <div class="card-body">
14
+ <div>
15
+ <div class="pull-right">
16
+ <span class="blog-date shadow-common">
17
+ <span class="fa fa-calendar-o icon"></span>
18
+ <span class="text">{{getFormattedDate($story['createdAt'])}}
19
+ </span>
20
+ </span>
21
+ </div>
22
+ <h2><a href="{{htcms_get_path($story['categoryLinkRewrite'].'/'.$story['linkRewrite'])}}">{{$story['title']}}</a></h2>
23
+ </div>
24
+ {!! $story['description'] !!}
25
+
26
+ <p class="more">
27
+ <a href="{{htcms_get_path($story['categoryLinkRewrite'].'/'.$story['linkRewrite'])}}">Read More</a>
28
+ </p>
29
+ </div>
30
+ <div class="card-footer">
31
+ <div class="pull-left author">
32
+ @if(!empty($story['author'])) Author: {{$story['author']}} @endif &nbsp;
33
+ </div>
34
+ <div class="pull-right">
35
+ <span class="fa fa-comment-o"></span> {{$story['commentsCount'] ?? 0}} Comments
36
+ </div>
37
+ </div>
38
+ </div>
39
+ @endforeach
40
+ @else
41
+ <div class="card shadow blog">
42
+ <div class="card-body">
43
+ There is no post for now.
44
+ </div>
45
+ </div>
46
+ @endif
47
+ </div>
48
+ <div class="col-lg-3 col-6">
49
+ <div style="border: 1px solid #c3c3c3; background: #f3f3f3; width: 350px; height: 250px; padding:5px">
50
+ Ad Content
51
+ </div>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </section>
@@ -0,0 +1,56 @@
1
+ @if(isset($isBlogHome) && $isBlogHome == 1)
2
+
3
+ @else
4
+ @php
5
+ $commentsCount = isset($data) ? sizeof($data) : 0;
6
+ $hasComments = $commentsCount > 0;
7
+ @endphp
8
+ <section class="section-comments">
9
+ <div class="container">
10
+ @if($hasComments)
11
+ <hr/>
12
+ <fieldset>
13
+ <legend>
14
+ <h3>Comments <span class="badge badge-dark">{{$commentsCount}}</span></h3>
15
+ </legend>
16
+ <div class="row mb-3 mt-3">
17
+ <div class="col-lg-12 text-right mt-1">
18
+
19
+ </div>
20
+ </div>
21
+ @foreach($data as $comment)
22
+ <div class="row">
23
+ <div class="col-lg-2 mb-5 text-center image-column">
24
+ <div class="rounded-circle image" style="width:75px;height:75px">
25
+ @php
26
+ $email = md5($comment['email']);
27
+ @endphp
28
+ <img src="https://www.gravatar.com/avatar/{{$email}}?d=&s=75}}" />
29
+ </div>
30
+ <span class="author">
31
+ {{$comment['name']}}
32
+ </span>
33
+ <span class="said">said on</span>
34
+ <span class="date"><span class="fa fa-calendar-o"></span> {{getFormattedDate($comment['created_at'])}}</span>
35
+ </div>
36
+ <div class="col-lg-6">
37
+ <div style="" class="" role="tooltip" x-placement="right">
38
+ <div class="arrow" style="top: 16px;"></div>
39
+ <h3 class="popover-header"></h3>
40
+ <div class="popover-body">{{$comment['comment']}}
41
+ </div>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ @endforeach
46
+ </fieldset>
47
+ @else
48
+ <legend style="margin-bottom: 100px; display: none">
49
+ <span class="first-text">
50
+ Be the first to write a comment.
51
+ </span>
52
+ </legend>
53
+ @endif
54
+ </div>
55
+ </section>
56
+ @endif
@@ -0,0 +1,103 @@
1
+
2
+ <section class="section-blogs">
3
+ <div class="container">
4
+ @if(isset($data) && count($data) > 0)
5
+ @php
6
+ $data = $data[0];
7
+ $hasContent = true;
8
+ $categoryId = $data['category_id'];
9
+ $contentId = $data['id'];
10
+
11
+ $storyObj = htcms_get_shared_data('MODULE_STORY');
12
+ $title = isset($storyObj) ? $storyObj[0]['name'] : htcms_get_category_info('name');
13
+ @endphp
14
+ <h1>{{$title}}</h1>
15
+ {!! $data['page_content'] !!}
16
+ @else
17
+ @php
18
+ $hasContent = false;
19
+ @endphp
20
+
21
+ @endif
22
+ </div>
23
+ </section>
24
+
25
+ @php
26
+ $user = auth()->user();
27
+ if($user != null) {
28
+ $name = $user->name. " ".$user->last_name;
29
+ $email = $user->email;
30
+ } else {
31
+ $name = "";
32
+ $email = "";
33
+ }
34
+ $name = old("name", $name);
35
+ $email = old("email", $email);
36
+ $comment = old("comment");
37
+ $sessionResults = session('results');
38
+ $successMessage = $sessionResults['message'] ?? "";
39
+ @endphp
40
+
41
+
42
+ @if($hasContent)
43
+ @if($data['enable_comments'] == 1)
44
+ <section class="section-comments">
45
+ <div class="container">
46
+ <h2>Post Comments</h2>
47
+ <form class="comment-form relative" action="/comment/saveComment" method="post">
48
+ @csrf
49
+ <input type="hidden" name="category_id" value="{{$categoryId}}" />
50
+ <input type="hidden" name="page_id" value="{{$contentId}}" />
51
+ <div class="row mb-3">
52
+ <div class="col-sm-2">
53
+ <label for="_htcms_form_comment_name_">Name</label>
54
+ </div>
55
+ <div class="col-sm-10">
56
+ <input id="_htcms_form_comment_name_" name="name" type="text" class="form-control" required placeholder="Please enter your name" value="{{$name}}" />
57
+ </div>
58
+ <div class="text text-danger"></div>
59
+ </div>
60
+ <div class="row mb-3">
61
+ <div class="col-sm-2">
62
+ <label for="_htcms_form_comment_email_">Email</label>
63
+ </div>
64
+ <div class="col-sm-10">
65
+ <input id="_htcms_form_comment_email_" type="email" name="email" class="form-control" required placeholder="Please enter your email " value="{{$email}}" />
66
+ </div>
67
+ <div class="text text-danger"></div>
68
+ </div>
69
+ <div class="row mb-3">
70
+ <div class="col-sm-2">
71
+ <label for="_htcms_form_comment_comment_">Comment</label>
72
+ </div>
73
+ <div class="col-sm-10">
74
+ <textarea id="_htcms_form_comment_comment_" name="comment" class="form-control" rows="7">{{$comment}}</textarea>
75
+ <div class="text text-danger"></div>
76
+ </div>
77
+ </div>
78
+ <div class="row mb-3">
79
+ <div class="col-sm-2">
80
+
81
+ </div>
82
+ <div class="col-sm-10 text-center">
83
+ <button class="btn btn-lg btn-outline-secondary mb-1" type="submit">Submit</button>
84
+ <div class="alert text-success">
85
+ {{$successMessage}}
86
+ </div>
87
+
88
+ @if ($errors->any())
89
+ <div class="alert alert-danger">
90
+ <ul>
91
+ @foreach ($errors->all() as $error)
92
+ <li>{{ $error }}</li>
93
+ @endforeach
94
+ </ul>
95
+ </div>
96
+ @endif
97
+ </div>
98
+ </div>
99
+ </form>
100
+ </div>
101
+ </section>
102
+ @endif
103
+ @endif
@@ -0,0 +1,23 @@
1
+ <section class="section-subscribe">
2
+ <div class="container">
3
+ <div class="row justify-content-center">
4
+ <div class="col-lg-6 text-center">
5
+ <h2 class="newsletter-title">{{____("hashtagcms::modules.Subscribe to our newsletter")}}</h2>
6
+ <p class="newsletter-subtitle">{{____("hashtagcms::modules.Please leave us your email address. We will update you.")}}</p>
7
+ <form data-form="subscribe-form" class="newsletter-form relative subscribe-form" action="/common/subscribe" method="post" onsubmit="return HashtagCms.Subscribe.subscribeNow(this)">
8
+ <div class="row">
9
+ <div class="col-8" style="padding: 0; margin: 0">
10
+ <input type="email" name="email" class="form-control input " placeholder="{{____("hashtagcms::auth.E-Mail Address")}}" required>
11
+ </div>
12
+ <div class="col-4">
13
+ <button class="btn btn-lg btn-primary btn-block subscribe" type="submit">{{____("hashtagcms::auth.Submit")}}</button>
14
+ </div>
15
+ <div class="alert col-12 mt-2" data-message-holder="subscribe-message-holder" style="display: none; background-color: lightyellow; color:#000">
16
+ <span class="message" data-class="subscribe-message"></span> <span data-class="subscribe-close" title="Close" class="pull-right pointer hand" style="background-color: #5f5f5f; color:#fff;padding:1px 5px">x</span>
17
+ </div>
18
+ </div>
19
+ </form>
20
+ </div>
21
+ </div>
22
+ </div>
23
+ </section> <!-- end Newsletter -->