-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-about.php
153 lines (136 loc) · 5.55 KB
/
page-about.php
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?php get_header(); ?>
<main role="main">
<header class="bg-black header-intro gioi-thieu">
<div class="container">
<div class="row align-items-center">
<div id="page-intro" class="col-md-10 offset-md-1 col-lg-8 offset-lg-2 col-12 intro">
<div class="img-avatar">
Math<i class="icon-math2it"></i>IT
<h1>Math2IT</h1>
</div>
<h2 data-toc-skip class="subtitle"><?php echo get_bloginfo( 'description' ); ?></h2>
<p class="description">
<?php echo get_option('site_short_description') ?>
</p>
<div class="idx-social">
<a class="mr-s" href="<?php echo get_bloginfo( 'wpurl' ) ?>"><i class="icon-home"></i><span class="hide-on-xs"> Trang chủ</span></a>
<a class="mr-s" target="_blank" href="<?php echo get_option('facebook-group'); ?>"><i class="icon-group"></i><span class="hide-on-xs"> Nhóm Math2IT</span></a>
<a class="mr-s" target="_blank" href="<?php echo get_option('facebook'); ?>"><i class="icon-facebook-squared"></i><span class="hide-on-xs"> FB Math2IT</span></a>
</div>
</div>
</div>
</div>
</header>
<!-- main topics -->
<!-- ====================================== -->
<?php
$cat_slugs = array(
'math', // toan hoc
'technology', // cong nghe
'translated-articles', // bai dich
'tool', // latex
'education' // giao-duc
);
$cat_slugs_lenght = count($cat_slugs);
?>
<section class="style-2-3 section">
<div class="container">
<div class="row list-of-post justify-content-center">
<div class="col-12 col-xl-10">
<div class="container">
<div class="row row-eq-height justify-content-md-center">
<?php
for($x = 0; $x < $cat_slugs_lenght; $x++):
$cat_slug_text = $cat_slugs[$x];
$cat_slug = get_category_by_slug( $cat_slug_text );
$cat_id = $cat_slug->term_id;
if (($cat_slug_text == 'math') or ($cat_slug_text == 'technology')):
$col = 'col-12 col-md-6'; // 2 cards
else:
$col = 'col-12 col-md-4'; // 3 cards
endif;
?>
<div class="<?php echo $col ?>">
<div class="item">
<a class="no-a-effect" href="<?php echo esc_url( get_category_link($cat_id) ) ?>">
<div class="post-image">
<i style="color: <?php echo get_field('dark_color','category_'.$cat_id) ?>;" class="<?php echo get_field('cat-icon','category_'.$cat_id) ?>"></i>
</div>
<div class="post-cat">
<?php echo get_cat_name($cat_id) ?>
</div>
<div class="post-intro">
<?php echo category_description($cat_id); ?>
</div>
</a>
</div> <!-- /item -->
</div> <!-- /col-12 col-sm-6 -->
<?php endfor; ?>
</div> <!-- /row small-->
</div>
</div>
</div>
</div> <!-- /div.container big -->
</section>
<section class="community section">
<div class="container">
<div class="row align-items-center justify-content-md-center">
<div class="col-12 col-sm-6 col-md-6 des">
<h2>Cộng đồng Math2IT</h2>
<p><a href="https://www.facebook.com/math2it" target="_blank">Fanpage Math2IT</a> luôn cập nhật và chia sẻ những thông tin hữu ích về học thuật. <a href="https://www.facebook.com/groups/math2it/" target="_blank">Nhóm Math2IT</a> tập hợp những thành viên nhiệt tình, sẵn sàng giúp đỡ và chia sẻ với bạn.</p>
</div>
<div class="col-12 col-sm-6 col-md-4">
<div class="photo">
<img src="<?php echo get_template_directory_uri() ?>/img/community.png">
</div>
</div>
</div>
</div>
</section>
<section class="section" id="newsletter">
<div class="container">
<div class="row list-of-post justify-content-center">
<div class="col-12 col-xl-10">
<div class="container">
<div class="row align-items-center justify-content-md-center">
<div class="col-12">
<div class="newsletter">
<div class="photo">
<img src="<?php echo get_template_directory_uri() ?>/img/send.png">
</div>
<div class="form">
<div class="newsletter-text">
Cập nhật bài đăng mới qua email?
</div>
<form method="post" class="newsletter-form" action="<?php echo get_bloginfo( 'wpurl' ) ?>/?na=s" onsubmit="if (!window.__cfRLUnblockHandlers) return false; return newsletter_check(this)">
<input type="hidden" name="nlang" value="">
<input type="hidden" name="nr" value="page">
<input class="name" type="text" name="nn" placeholder="Tên bạn">
<input type="email" name="ne" placeholder="Email của bạn" class="email">
<input type="submit" value="OK" class="submit">
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="section" id="contact">
<div class="container">
<div class="row align-items-center justify-content-center">
<div class="col-sm-8 col-12">
<h3 class="title">Liên hệ với chúng tôi?</h3>
<div class="email">
<a href="mailto:[email protected]?subject=Trò chuyện với Math2IT&[email protected];[email protected]">[email protected]</a>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- footer -->
<!-- ====================================== -->
<?php get_footer(); ?>