echo '</a>'; } } ?> </div> <div class="row"> <h2>Przyjaciele</h2> <?php $args = array( 'post_type' => 'przyjaciele' ); $myposts = get_posts($args); foreach( $myposts as $post ){ $title = get_the_title(); $imgpath = dm_relative(get_field('logo')); $thumb = site_url().'/resize/'.$tw.'x'.$tw.'x3/r/'. $imgpath; $url = get_field('url'); if(!$imgpath){ echo '<a href="'.$url.'" target="_blank" class="dm_no-logos">'; echo $title; echo '</a>'; }else{ echo '<a href="'.$url.'" target="_blank">'; echo '<img src="'.$thumb.'" alt="'.$title.'" title="'.$title.'"/>'; echo '</a>'; }
//slider z aktualnosciami foreach( $myposts as $post ) { setup_postdata($post); /*echo get_the_title(); $meta_values = get_post_meta($post->ID, 'pokaz_w_aktualnosciach' ); print_r($meta_values); echo '<div style="display: block; height: 48px; clear:both;"></br></div>'; continue;*/ $opis= short_opis(200); $title = get_the_title(); //$img = 'timthumb.php?src='.get_field("zdjecie").'&w=210&h=210'; $full = get_thumb(); $thumb = site_url().'/resize/138x144x1/r/'. dm_relative($full); $postType = get_post_type(); $postTypeObj = get_post_type_object($postType); $cat = $postTypeObj->labels->name; $catUrl = get_post_type_archive_link($postType); $data = get_the_date("d.m.Y"); $link = get_permalink(); // the_4col_item($thumb, $tytul, $data, $catUrl, $cat, $opis, $link); ?> <li class="dm_przedmioty"> <div class="row"> <div class="col-md-3 alpha thumb ">
</div> <ul class="dm_gallery"> <?php $counter = 0; $id = get_the_ID(); $rel = ' rel="lightbox['.$id.']" '; while(the_repeater_field('zdjecia')){ $counter++; $thumb = get_sub_field('zdjecie_galerii'); $link = $thumb; $thumb = site_url().'/resize/138x140x1/r/'. dm_relative($thumb); $opis = get_sub_field('opis-zdjecia'); ?> <li><a class="gallery-item" href="<?= $link; ?>" <?= $rel; echo ' title="'.$opis.'"';?> > <img src="<?= $thumb; ?>" alt="<?= $opis; ?>" /> </a></li> <?php }?> </ul> <div style="display: block; height: 48px;"></div>
<?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 get_sidebar(); ?>--> <div class="col-md-12 omega"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="breadcrumbs_new"> <?php breadcrumbs(); ?> </div> <?php $title= get_the_title(); $link = get_permalink(); $full = get_field('zdjecie'); $thumb = site_url().'/resize/138x145x1/r/'. dm_relative($full); if (empty($full)){ $thumb = site_url().'/resize/138x145x1/r/'. dm_relative(get_bloginfo('template_directory')."/images/null.gif"); $full = ''; } $opis= get_field('opis'); $mail = get_field("e-mail"); $url = get_field("www"); $url = str_ireplace('http://', '' , $url); $fb = get_field("profil_facebook"); $li = get_field("profil_linked_in"); $tw = get_field("profil_twitter"); $hasSocial = (!empty($fb)) || (!empty($tw)) || (!empty($li)); ?> <div class="row"> <div class="col-md-3 alpha thumb">