/
Page3-Education.php
94 lines (81 loc) · 2.67 KB
/
Page3-Education.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
<?php
/**
* Template Name: Culture Exchange, Education Page
*
* A custom page template without sidebar.
*
* @package WordPress
* @subpackage Hananuri
* @author NFM (jwj0831@gmail.com)
* @since Hananuri 1.0
*/
get_header(); ?>
<div class="subpage_stretched">
<div class="breadcrumb_stretched">
<div class="breadcrumb_fixed">
<p>
<img src='<?php bloginfo('template_url'); ?>/images/subpage/sub_home.gif'> 홈 > 국내사업 > 문화교류∙교육 사업
</p>
</div>
</div>
<div class="subpage_fixed">
<?php include (TEMPLATEPATH . '/sidebar.php'); ?>
<div id="content">
<img src='<?php bloginfo('template_url'); ?>/images/subpage/sub3/sub3_local.gif'>
<div class="biz_update_banner">
<img src='<?php bloginfo('template_url'); ?>/images/subpage/sub_update.gif'>
</div>
<div class="new_contents">
<?php
if ( get_query_var('paged') ) {
$paged = get_query_var('paged');
} elseif ( get_query_var('page') ) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
query_posts(array(
'cat' => getEducationCategoryNum(),
'posts_per_page' => 3,
'paged' => $paged
)
);
$posts = new WP_Query($args);
while( have_posts()) :
the_post();
$id = get_the_ID();
?>
<div class="news_row">
<h3>
<a href="<?php echo get_permalink($id) ?>" title="<?php the_title(); ?>" >
<?php the_title(); ?>
</a>
</h3>
<div class="news_img">
<a href="<?php echo get_permalink($id) ?>" title="<?php the_title(); ?>" >
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($id), 'excerpt-thumbnail');
$url = $thumb['0'];
?>
<img width=160 height=110 src=<?= $url ?>>
</a>
</div>
<div class="news_author">
<b><?php the_author()?></b> | <?php the_time('F j, Y') ?>
</div>
<div class="news_text">
<a href="<?php echo get_permalink($id) ?>" title="<?php the_title(); ?>" >
<?php echo mb_substr(get_the_excerpt(), 0, 200, 'UTF-8'); ?> ...
</a>
</div>
</div>
<?php endwhile; ?>
<div class="news_nav">
<?php wp_pagenavi(); ?>
</div>
<?php wp_reset_query(); ?>
</div><!--close new_content-->
</div><!--close content-->
</div><!--close subpage_fixed-->
</div><!--close subpage_stretched-->
<div class="clear"></div>
<?php get_footer(); ?>