| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/clients/client2/web20/web/wp-content/themes/old_backup/ |
Upload File : |
<div class="list-margin"><?php
$args = array( 'post_type' => 'post', 'posts_per_page' => 10, 'order' => 'ASC' );
$myposts = get_posts( $args );
$i=0;
foreach( $myposts as $post ) : setup_postdata($post);
$i++;
global $post;
?>
<div class="row list-content list-news">
<div class="col-md-4">
<?php if($post->post_type != "post") { ?><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php } ?>
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail('thumbnail', array('class' => 'img-responsive'));
} else { ?>
<img src="/images/ostseebad-nienhagen-default.jpg" class="img-responsive" alt="<?php the_title(); ?>" />
<?php } ?>
<?php if($post->post_type != "post") { ?></a><?php } ?>
</div>
<div class="col-md-8">
<?php if($post->post_type != "post") { ?><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php } ?><h2><?php the_title(); ?></h2><?php if($post->post_type != "post") { ?></a><?php } ?>
<?php the_content(); ?>
</div><?php if(count($myposts) > $i) { ?>
<div class="col-md-12">
<hr />
</div><?php } ?>
</div>
<?php endforeach; ?>
</div>