-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-tutor_search.php
51 lines (40 loc) · 1.7 KB
/
page-tutor_search.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
<?php get_header(); ?>
<!-- Main Content -->
<div class="container-fluid main-content no-padding">
<!-- Main Content -->
<div class="col-sm-9 news-content no-padding">
<!-- Header -->
<div class="page-header">
<h2>Пошук Тьюторів</h2>
</div>
<!-- Page Content -->
<div class="page-article">
<?php if (TTR_db_page::have_tutors()): if (TTR_db_page::get_page_type() == "search"): TTR_db_page::get_pagination(); while (TTR_db_page::have_tutors()): ?>
<!-- Article -->
<div class="panel panel-default news-panel">
<div class="panel-heading">
<h4 class="panel-title">
<a href="<?php TTR_db_page::get_link(); ?>"><?php TTR_db_page::get_name(); ?></a>
</h4>
</div>
<div class="panel-body">
<p><?php TTR_db_page::get_description_short(); ?></p>
</div>
<div class="panel-footer">
<a href="<?php TTR_db_page::get_link(); ?>"><?php _e("Детальніше","ttr-db"); ?></a>
</div>
</div> <!-- /article -->
<?php endwhile; TTR_db_page::get_pagination(); elseif (TTR_db_page::get_page_type() == "view"): ?>
<div class="page-article">
<p><?php echo "<b>".__("Name", "ttr-db").":</b> " ?><?php TTR_db_page::get_name(); ?></p>
<p><?php echo "<b>".__("City", "ttr-db").":</b> " ?><?php TTR_db_page::get_location(); ?></p>
<p><?php echo "<b>".__("Subject", "ttr-db").":</b> "?><?php TTR_db_page::get_subject(); ?></p>
<p><?php echo "<b>".__("Age", "ttr-db").":</b> " ?><?php TTR_db_page::get_age(); ?></p>
<p><?php TTR_db_page::get_description(); ?></p>
</div>
<?php endif; endif; ?>
</div>
</div>
<?php get_sidebar("right"); ?>
</div>
<?php get_footer(); ?>