<commit_before><?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header();
?>
<div class="col-8 wpmain ptl"><!-- main col -->
<?php	$wp_query = $tmp_query;
$args = array(
'post_type' => array( 'post', 'externalpost'),
'post_per_page' => 5
);
query_posts($args);
	                if (have_posts()) :
	                while (have_posts()) : the_post();
	?>
									<!-- Linkziel der Überschrift extrahieren -->
								<?php
								if ( 'externalpost' == get_post_type() )
									{
									$mykey_values = get_post_custom_values('externallink');
									  foreach ( $mykey_values as $key => $value ) {
									    $headlink = $value; 
									  }
									}	
								?>
								<!-- Darstellung je nach Typ -->
								<?php
								if ( 'externalpost' == get_post_type() )
									{
									?>	
									<div class="mod mod-skin2"><!-- ein post -->
										<div class="hd">
											<div class="col-1">
												<div class="sprite big-arrow-up"></div>
											</div><!-- col 2 -->
											<div class="col-7">
												<h2 class="h3">
													<a id="post-<?php the_ID(); ?>" href="<?php echo $headlink ?>"rel="bookmark" title="<?php the_title_attribute(); ?>" class="wplnk"><?php the_title(); ?></a>
												</h2>
											</div><!-- col 6 -->
											<div class="col-4 last">
												<div class="media">
													<div class="img-ext">
														<?php echo get_avatar(get_the_author_id(), 38 ); ?>
													</div>
													<div class="bd font-small tar">
														<?php the_time('F jS, Y') ?><br />
														<?php printf('<a class="wplnk-bold" href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","uxebu"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>'); ?>
													</div>
												</div><!-- end media -->
											</div><!-- end col 4 -->
										</div>	<!-- hd -->
										<div class="bd">
											<div class="col-1">
												&nbsp;
											</div>
										<div class="col-11">
												<?php the_content('read more...'); ?>
												<!--<?php trackback_rdf(); ?>-->
										</div>
										</div><!-- bd -->
									</div><!-- end mod -->
									<?php
								}
								else
								{
									?>
									<div class="mod mod-skin2"><!-- ein post -->
										<div class="hd line default mhx">
											<div class="col-7">
													<h2 class="h3 mhn"><a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>"rel="bookmark" title="<?php the_title_attribute(); ?>" class="wplnk"><?php the_title(); ?></a></h2>
											</div>
											<div class="col-5 last">
												<div class="media mhn mtl ptm">
													<div class="img-ext mlm">
														<?php echo get_avatar(get_the_author_id(), 38 ); ?>
													</div>
													<div class="bd font-small tar" style="display: block;">
														<?php the_time('F jS, Y') ?><br />
														<?php printf('<a class="wplnk-bold" href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","uxebu"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>'); ?>
													</div>
												</div><!-- end media -->
											</div><!-- end col -->
										</div><!-- end hd -->
										<div class="bd">
										<?php the_content('read more...'); ?>
										<!--<?php trackback_rdf(); ?>-->

										</div><!-- end bd -->
									</div><!-- end mod -->
									<?php
								}
								?>
		<?php endwhile; ?>
		<div class="tar mal">
			<a class="font-small footerlink" href="<?php echo get_option('home'); ?>/archive/">View all posts...</a>
		</div>

		<?php else : ?>

			<p>Sorry, nothing found</p>

		<?php endif; ?>

</div><!-- End col-8 main col -->
<div class="col-4 last"><!-- sidebar col -->
		<div class="sidebar-right">
			<ul class="man">
				<?php if ( function_exists ( dynamic_sidebar('Sidebar2') ) ) : dynamic_sidebar ('Sidebar2'); endif; ?>
			</ul>
			<div class="mal">
				<a href="##" class="viewall tar">View past events...</a>
			</div>
		</div>
</div><!-- end col-4 sidebar -->



<?php get_footer(); ?><commit_msg>Added link to past events<commit_after><?php
/**
 * @package WordPress
 * @subpackage Default_Theme
 */

get_header();
?>
<div class="col-8 wpmain ptl"><!-- main col -->
<?php	$wp_query = $tmp_query;
$args = array(
'post_type' => array( 'post', 'externalpost'),
'post_per_page' => 5
);
query_posts($args);
	                if (have_posts()) :
	                while (have_posts()) : the_post();
	?>
									<!-- Linkziel der Überschrift extrahieren -->
								<?php
								if ( 'externalpost' == get_post_type() )
									{
									$mykey_values = get_post_custom_values('externallink');
									  foreach ( $mykey_values as $key => $value ) {
									    $headlink = $value; 
									  }
									}	
								?>
								<!-- Darstellung je nach Typ -->
								<?php
								if ( 'externalpost' == get_post_type() )
									{
									?>	
									<div class="mod mod-skin2"><!-- ein post -->
										<div class="hd">
											<div class="col-1">
												<div class="sprite big-arrow-up"></div>
											</div><!-- col 2 -->
											<div class="col-7">
												<h2 class="h3">
													<a id="post-<?php the_ID(); ?>" href="<?php echo $headlink ?>"rel="bookmark" title="<?php the_title_attribute(); ?>" class="wplnk"><?php the_title(); ?></a>
												</h2>
											</div><!-- col 6 -->
											<div class="col-4 last">
												<div class="media">
													<div class="img-ext">
														<?php echo get_avatar(get_the_author_id(), 38 ); ?>
													</div>
													<div class="bd font-small tar">
														<?php the_time('F jS, Y') ?><br />
														<?php printf('<a class="wplnk-bold" href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","uxebu"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>'); ?>
													</div>
												</div><!-- end media -->
											</div><!-- end col 4 -->
										</div>	<!-- hd -->
										<div class="bd">
											<div class="col-1">
												&nbsp;
											</div>
										<div class="col-11">
												<?php the_content('read more...'); ?>
												<!--<?php trackback_rdf(); ?>-->
										</div>
										</div><!-- bd -->
									</div><!-- end mod -->
									<?php
								}
								else
								{
									?>
									<div class="mod mod-skin2"><!-- ein post -->
										<div class="hd line default mhx">
											<div class="col-7">
													<h2 class="h3 mhn"><a id="post-<?php the_ID(); ?>" href="<?php the_permalink(); ?>"rel="bookmark" title="<?php the_title_attribute(); ?>" class="wplnk"><?php the_title(); ?></a></h2>
											</div>
											<div class="col-5 last">
												<div class="media mhn mtl ptm">
													<div class="img-ext mlm">
														<?php echo get_avatar(get_the_author_id(), 38 ); ?>
													</div>
													<div class="bd font-small tar" style="display: block;">
														<?php the_time('F jS, Y') ?><br />
														<?php printf('<a class="wplnk-bold" href="'. get_author_posts_url(get_the_author_ID()) .'" title="'. sprintf(__("Posts by %s","uxebu"), attribute_escape(get_the_author())).' ">'. get_the_author() .'</a>'); ?>
													</div>
												</div><!-- end media -->
											</div><!-- end col -->
										</div><!-- end hd -->
										<div class="bd">
										<?php the_content('read more...'); ?>
										<!--<?php trackback_rdf(); ?>-->

										</div><!-- end bd -->
									</div><!-- end mod -->
									<?php
								}
								?>
		<?php endwhile; ?>
		<div class="tar mal">
			<a class="font-small footerlink" href="<?php echo get_option('home'); ?>/archive/">View all posts...</a>
		</div>

		<?php else : ?>

			<p>Sorry, nothing found</p>

		<?php endif; ?>

</div><!-- End col-8 main col -->
<div class="col-4 last"><!-- sidebar col -->
		<div class="sidebar-right">
			<ul class="man">
				<?php if ( function_exists ( dynamic_sidebar('Sidebar2') ) ) : dynamic_sidebar ('Sidebar2'); endif; ?>
			</ul>
			<div class="mal">
				<a href="/past-evets" class="viewall tar">View past events...</a>
			</div>
		</div>
</div><!-- end col-4 sidebar -->



<?php get_footer(); ?>
{'fraction_non_alphanumeric': 0.21769847922404503, 'fraction_numerical': 0.007184768291222608, 'mean_word_length': 1.8055089015787706, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 257, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4800027', 'n_tokens_mistral': 4253, 'n_tokens_neox': 2753, 'n_words': 608}