-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory-projekt-52.php
executable file
·63 lines (45 loc) · 1.76 KB
/
category-projekt-52.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
<?php get_header(); ?>
<div class="article-wrap">
<div class="left articles">
<?php $query_args = array(
'cat' => 4,
'posts_per_page' => -1,
'post__not_in' => array(19, 676, 744),
);
query_posts($query_args); ?>
<?php if (have_posts()) : ?>
<div id="category-project-52-wrapper" class="left">
<div id="category-project-52-inner" class="left">
<h2><?php single_cat_title(); ?></h2>
<div class="description"><?php echo category_description(); ?></div>
<ul>
<?php while (have_posts()) : the_post(); ?>
<?php $title = get_the_title(); preg_match('/(W.*)/', $title, $title_new); ?>
<li class="left">
<div class="inner-wrapper">
<a href="<?php the_permalink() ?>">
<?php if ( has_post_thumbnail() ) {
$thumb = get_the_post_thumbnail();
$search = array('/src="/', '/.png"/', '/="240"/');
$replace = array('src="http://alpaka.me/wp-content/themes/alpaka/timthumb.php?src=', '.png&w=125&h=125&zc=1"', '="125"');
$thumb = preg_replace($search, $replace, $thumb);
//echo '<div class="' . $thumb . '"></div>';
echo $thumb;
} ?>
</a>
<h3><a href="<?php the_permalink() ?>"><?php echo $title_new[1]; ?></a></h3>
</div>
</li>
<?php endwhile; ?>
</ul>
</div>
</div>
<?php else : ?>
<h2>Nothing found</h2>
<?php endif; ?>
</div>
<div class="right">
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>