/
page.php
45 lines (32 loc) · 1 KB
/
page.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
<?php get_header(); ?>
<!--<?php get_sidebar(); ?>-->
<div class="col-md-12 omega">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="breadcrumbs_new">
<?php breadcrumbs(); ?>
</div>
<div class="text">
<?php
$full = get_field('zdjecie');
$thumb = site_url().'/resize/290x220x1/r/'. dm_relative($full);
$id = get_the_ID();
$rel = ' rel="lightbox['.$id.']" ';
if (!empty($full))
echo '<a href="'.$full.'" '.$rel.'><img src="'.$thumb.'" style="float:left; margin-right: 12px; margin-bottom: 5px;"/></a>';
print '<h2 class="title">';
the_title();
print '</h2>';
the_content();
?>
</div>
<br />
<?php
/*
$url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
<iframe src="https://www.facebook.com/plugins/like.php?href=<?php echo $url; ?>"
scrolling="no" frameborder="0"
style="border:none; width:450px; height:80px"></iframe>
*/ ?>
<?php endwhile; endif; ?>
</div>
<?php get_footer(); ?>