-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate-academy.php
More file actions
74 lines (63 loc) · 2.05 KB
/
template-academy.php
File metadata and controls
74 lines (63 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php
/**
* Template Name: Page Like Academy Post
*/
set_custom_source( 'components/SidebarTOC', 'css' );
set_custom_source( 'pages/post', 'css' );
set_custom_source( 'common/splide', 'css' );
set_custom_source( 'splide', 'js' );
set_custom_source( 'sidebar_toc', 'js' );
?>
<div class="Post" itemscope itemtype="http://schema.org/Article">
<div class="Post__header">
<div class="wrapper__wide"></div>
</div>
<div class="wrapper__wide Post__container">
<div class="Post__sidebar urlslab-skip-keywords">
<?php if ( sidebar_toc() !== false ) { ?>
<div class="SidebarTOC-wrapper">
<div class="SidebarTOC Post__SidebarTOC">
<strong class="SidebarTOC__title"><?php _e( 'Contents', 'ms' ); ?></strong>
<div class="SidebarTOC__slider slider splide">
<div class="splide__track">
<ul class="SidebarTOC__content splide__list">
<?= wp_kses_post( sidebar_toc() ); ?>
</ul>
</div>
</div>
</div>
</div>
<?php } ?>
<div class="Signup__sidebar-wrapper">
<?= do_shortcode( '[signup-sidebar]' ); ?>
</div>
</div>
<div class="Post__content">
<div class="Post__logo">
<?php if ( has_post_thumbnail() ) { ?>
<?php the_post_thumbnail( 'logo_thumbnail' ); ?>
<?php } else { ?>
<img src="<?= esc_url( get_template_directory_uri() ); ?>/assets/images/icon-book.svg" alt="<?php _e( 'Academy', 'ms' ); ?>">
<?php } ?>
</div>
<div class="Post__content__breadcrumbs">
<ul>
<li><a href="<?php _e( '/', 'ms' ); ?>"><?php _e( 'Home', 'ms' ); ?></a></li>
<li><?php the_title(); ?></li>
</ul>
</div>
<h1 itemprop="name"><?php the_title(); ?></h1>
<div class="Content" itemprop="articleBody">
<?php the_content(); ?>
<div class="Post__buttons">
<a href="<?php _e( '/trial/', 'ms' ); ?>" class="Button Button--full">
<span><?php _e( 'Try It Now', 'ms' ); ?></span>
</a>
</div>
<?php if ( ICL_LANGUAGE_CODE === 'en' ) { ?>
<?php urlslab_display_related_resources(); ?>
<?php } ?>
</div>
</div>
</div>
</div>