-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-novosti.php
178 lines (78 loc) · 3.64 KB
/
template-novosti.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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<?php
/**
* @package WordPress
* @subpackage Chicago Desavanja
* Template Name: Novosti Template
*/
?>
<?php get_header(); ?>
<div class="home-wrap clearfix">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('otbleft') ) : endif; ?>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('otbright') ) : endif; ?>
<!-- //** REKLAMNI PROSTOR HOME 940x65 **// -->
<div id="reklama_940">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('940x65') ) : endif; ?></div>
</div>
<!-- //** REKLAMNI PROSTOR HOME 940x65 **// -->
<div class="clear"></div>
<div id="cd_vesti_title">Vesti</div>
<div id="vesti_levo">
<div id="vesti_levo_unutar">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="cela_vest">
<div id="vest_img">
<a href="<?php the_permalink(); ?>"><?php if ( has_post_thumbnail()) : the_post_thumbnail('vest_img'); endif; ?></a></div>
<div class="vest_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
<i class="icon-time"></i> <?php the_time('M j, Y'); ?></br>
<?php echo excerpt(28); ?> <span class="label label-info"><div class="opsirnije"><a href="<?php the_permalink() ?>">opsirnije</a></div></span>
</div>
<div style="clear:both"></div>
<?php endwhile; ?>
<?php endif; ?>
</div>
</div>
<div id="desno_vesti">
<div id="desno_vesti_white">
<div class="cat_vesti">Vesti kategorije</div><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=11);?>"> Muzika</a><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=10);?>"> Film </a><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=16);?>"> Komunikacije </a><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=15);?>"> Ljubav i seks </a><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=14);?>"> Porodica </a><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=12);?>"> Tracevi </a><br/>
<span class="icon12 typ-icon-arrow-right blue"></span><a href="<?php echo get_category_link($cat=15);?>"> Ludi svet </a><br/><br/>
</div>
</div>
<div id="desno_vesti_desno">
<div class="prevod_wdg">
<!-- <div class="prevod_txt">Translate</div> -->
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('prevod') ) : endif; ?>
</div>
<div>
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('310x100') ) : endif; ?>
</div>
<div id="predstojeca_desno_vesti">
<div class="predstojeca_vesti_txt">Predstojeca desavanja</div>
<div class="predstijeca_vest_kalendar_txt"><a href="<?php echo get_page_link($cat=17);?>">KALENDAR</a></div>
<div style="clear:both"></div>
<div id="ppaa">
<div class="scroll" style="height:315px; width:302px; overflow:auto; margin-top:10px;">
<?php query_posts(array(
'post_type' => 'tribe_events',
'eventDispla' => 'upcoming',
'showposts' => 30,
'order' => 'ASC'
)); ?>
<?php while (have_posts()) : the_post(); ?>
<div id="poslednja_bg">
<div id="mesec_gall">
<div class="mesec_gal"><?php echo tribe_get_start_date(null, false, 'M'); ?></div><br>
<div class="mesec_gal"><?php echo tribe_get_start_date(null, false, 'j'); ?></div></div>
<div class="gal_tit_pos"><a href="<?php the_permalink() ?>" class="tip" title="<?php echo excerpt(30); ?>"><?php the_title(); ?></a></div>
</div>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>