File tree Expand file tree Collapse file tree 3 files changed +55
-9
lines changed Expand file tree Collapse file tree 3 files changed +55
-9
lines changed Original file line number Diff line number Diff line change @@ -372,4 +372,18 @@ table.ccgn-profile tr td.title {
372
372
.voucher_profile_link {
373
373
margin-left : 1rem ;
374
374
font-size : .9rem ;
375
+ }
376
+
377
+ .cc-content-area .block-area {
378
+ padding-top : 3rem ;
379
+ }
380
+ .cc-content-area .block-area .entry-content {
381
+ min-height : 60vh !important ;
382
+ }
383
+ .cc-content-area .block-area .entry-content .not-login {
384
+ margin-top : 10rem ;
385
+ }
386
+ .entry-content p {
387
+ margin : 1.2rem 0 ;
388
+ line-height : 1.8rem ;
375
389
}
Original file line number Diff line number Diff line change 6
6
7
7
get_header ();
8
8
?>
9
+ <div class="cc-content-area">
10
+ <div class="inner-section-title">
11
+ <h1><?php the_title (); ?> </h1>
12
+ </div>
13
+ <div class="block-area">
9
14
10
- <div class="inner-section-title">
11
- <h1><?php the_title (); ?> </h1>
12
- </div>
13
- <div class="block-area">
14
-
15
- <div class="inner-section-list entry-content">
15
+ <div class="inner-section-list entry-content">
16
16
17
- <?php get_template_part ('template-parts/loop/frontpage-loop ' ); ?>
17
+ <?php get_template_part ('template-parts/loop/frontpage-loop ' ); ?>
18
18
19
- </div>
19
+ </div>
20
20
21
- </div><!--/.block-area-->
21
+ </div><!--/.block-area-->
22
+ </div>
22
23
23
24
<?php get_footer (); ?>
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ Template Name: Logged in content Page
5
+ */
6
+
7
+ get_header ();
8
+ ?>
9
+ <div class="cc-content-area">
10
+ <?php if (is_user_logged_in ()): ?>
11
+ <div class="inner-section-title">
12
+ <h1><?php the_title (); ?> </h1>
13
+ </div>
14
+ <?php endif ; ?>
15
+ <div class="block-area">
16
+ <?php $ logged_class = (is_user_logged_in ()) ? 'login ' : 'not-login ' ; ?>
17
+ <div class="inner-section-list entry-content <?php echo $ logged_class ?> ">
18
+ <?php if (is_user_logged_in ()) : ?>
19
+ <?php get_template_part ('template-parts/loop/frontpage-loop ' ); ?>
20
+ <?php else : ?>
21
+ <div class="callout warning">
22
+ <h5>Sorry</h5>
23
+ <p>You have to be logged in to see this content</p>
24
+ </div>
25
+ <?php endif ; ?>
26
+ </div>
27
+
28
+ </div><!--/.block-area-->
29
+ </div>
30
+
31
+ <?php get_footer (); ?>
You can’t perform that action at this time.
0 commit comments