//Wydarzenia $args = array( 'numberposts' => 4, 'post_type' => 'any', 'meta_key' => 'pokaz_w_wiadomosciach', 'meta_value' => 1, 'post_status' => array('future', 'publish'), 'orderby'=> 'title', 'order' => 'DESC' ); $myposts = get_posts( $args ); foreach( $myposts as $post ) { setup_postdata($post); $opis= short_opis(200); //425 $tytul = get_the_title(); $data = get_the_date("d.m.Y"); $link = get_permalink(); ?> <li> <a href="<?= $link; ?>"><?= $tytul; ?></a> </li> <? // the_4col_item($thumb, $tytul, $data, $catUrl, $cat, $opis, $link); }
'order' => 'DESC' ); $myposts = get_posts( $args ); $counter =0; //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);
foreach ($rules as $link => $player) $string = preg_replace($link, $player, $string); return $string; } ?> <?php if (have_posts()) : the_post();?> <div class="breadcrumbs_new"><?php breadcrumbs(); ?></div> <div class="text"> <p><?php echo short_opis(); ?></p> <?php while(the_repeater_field('linki_do_filmow')){ $link = get_sub_field('link'); echo convert_videos($link); echo '<div style="display: block; height: 30px;"></div>'; } ?> </div> <?php else : ?>
breadcrumbs('', true); $cat = get_field("kategoria_galerii"); $catUrl = "?post_type=galeria-zdjec&gal=$cat"; $title = get_the_title(); echo "<a href='$catUrl' class='breadcrumbs'> $cat</a>"; print '<span class="breadcrumbs sep"> > </span>'; echo "<a class='breadcrumbsBold'>". dm_more($title, 60, '') ."</a>"; ?> </div> <div class="text"> <?php echo short_opis(); ?> </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;
?> </div> <ul> <?php while (have_posts()) { the_post(); $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/' . get_bloginfo('template_directory') . '/images/null.gif'; $full = ''; } $opis = short_opis(); ?> <li class="dm_pedagog_item"> <a href="<?php echo $link; ?> " class="title"><img src="<?php echo $thumb; ?> " alt="<?php echo $title; ?> "/> <?php echo $title;
if ( in_array($post_type,$zakazane) ){ continue; } if ( !in_array($post_status, array('publish', 'future') )){ continue; } $count++; $title= get_the_title(); $link = get_permalink(); $full = get_thumb(); $thumb = "timthumb.php?src=".$full."&w=130&h=130"; $opis= short_opis(500); ?> <li class="dm_przedmioty"> <div class="pedagogOpis"> <div class="col-md-2 alpha thumb "> <a href="<?php echo $link; ?>"><img style="display:inline;" src="<?php echo $thumb ?>" /></a> </div> <div class="col-md-6 omega dm_news"> <div>