Revert changes as Urlaub is a category and not a post-type
This commit is contained in:
parent
456f2ccfef
commit
48cd36e98b
3 changed files with 55 additions and 190 deletions
31
.idea/workspace.xml
generated
31
.idea/workspace.xml
generated
|
|
@ -2,6 +2,7 @@
|
|||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="f4814905-d0bb-4804-a501-969ee4335bd0" name="Default" comment="">
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
||||
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/single.php" afterPath="$PROJECT_DIR$/single.php" />
|
||||
</list>
|
||||
<ignored path="atravelblog.iws" />
|
||||
|
|
@ -26,19 +27,11 @@
|
|||
<file leaf-file-name="single.php" pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/single.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="90">
|
||||
<caret line="48" column="45" selection-start-line="48" selection-start-column="45" selection-end-line="48" selection-end-column="45" />
|
||||
<folding />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file leaf-file-name="single-Urlaub.php" pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/single-Urlaub.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="735">
|
||||
<caret line="88" column="26" selection-start-line="88" selection-start-column="26" selection-end-line="88" selection-end-column="26" />
|
||||
<folding />
|
||||
<state relative-caret-position="630">
|
||||
<caret line="84" column="57" selection-start-line="84" selection-start-column="57" selection-end-line="84" selection-end-column="57" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#div#0;n#div#3;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
|
|
@ -184,12 +177,12 @@
|
|||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1473509435154</updated>
|
||||
<workItem from="1473509436732" duration="3576000" />
|
||||
<workItem from="1473509436732" duration="3850000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="3576000" />
|
||||
<option name="totallyTimeSpent" value="3850000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="0" y="0" width="1920" height="1061" extended-state="0" />
|
||||
|
|
@ -243,9 +236,11 @@
|
|||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/single.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="90">
|
||||
<caret line="48" column="45" selection-start-line="48" selection-start-column="45" selection-end-line="48" selection-end-column="45" />
|
||||
<folding />
|
||||
<state relative-caret-position="630">
|
||||
<caret line="84" column="57" selection-start-line="84" selection-start-column="57" selection-end-line="84" selection-end-column="57" />
|
||||
<folding>
|
||||
<element signature="n#style#0;n#div#0;n#div#3;n#div#3;n#div#0;n#div#0;n#div#0;n#!!top" expanded="true" />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
|
|
|
|||
|
|
@ -1,172 +0,0 @@
|
|||
<?php get_header(); ?>
|
||||
|
||||
<div class="content section-inner">
|
||||
|
||||
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
|
||||
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class('single single-post'); ?>>
|
||||
|
||||
<div class="post-container">
|
||||
|
||||
<?php $post_format = get_post_format(); ?>
|
||||
|
||||
<?php if ( $post_format == 'gallery' ) : ?>
|
||||
|
||||
<div class="featured-media">
|
||||
|
||||
<?php hitchcock_flexslider('post-image'); ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div> <!-- /featured-media -->
|
||||
|
||||
<?php elseif ( has_post_thumbnail() ) : ?>
|
||||
|
||||
<div class="featured-media">
|
||||
|
||||
<?php the_post_thumbnail('post-image'); ?>
|
||||
|
||||
</div> <!-- /featured-media -->
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="post-header">
|
||||
|
||||
<p class="post-date"><?php the_time(get_option('date_format')); ?></p>
|
||||
|
||||
<h1 class="post-title"><?php the_title(); ?></h1>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="post-inner">
|
||||
|
||||
<div class="post-content">
|
||||
|
||||
<?php the_content(); ?>
|
||||
|
||||
</div> <!-- /post-content -->
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<div class="post-meta">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Land</th>
|
||||
<td><?php the_field( 'land' ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mitreisende</th>
|
||||
<td><?php the_field( 'mitreisende' ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Anreise</th>
|
||||
<td><?php $an = get_field( 'anreise' ); echo(substr($an,6,2).'.'.substr($an,4,2).'.'.substr($an,0,4)) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Abreise</th>
|
||||
<td><?php $ab = get_field( 'abreise' ); echo(substr($ab,6,2).'.'.substr($ab,4,2).'.'.substr($ab,0,4)) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="post-meta">
|
||||
<?php $location = get_field( 'ort' ); ?>
|
||||
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>'></div>
|
||||
<script type='text/javascript'>
|
||||
var map;
|
||||
var map_center = {lat: <?php echo $location['lat'] ?>, lng: <?php echo $location['lng'] ?> };
|
||||
function initMap() {
|
||||
map = new google.maps.Map(document.getElementById('map-<?php echo $id ?>'), {
|
||||
center: map_center,
|
||||
zoom: 15
|
||||
});
|
||||
var marker = new google.maps.Marker({
|
||||
position: map_center,
|
||||
map: map
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
$args = array(
|
||||
'before' => '<div class="page-links"><span class="title">' . __( 'Pages:','hitchcock' ) . '</span>',
|
||||
'after' => '<div class="clear"></div></div>',
|
||||
'link_before' => '<span>',
|
||||
'link_after' => '</span>',
|
||||
'separator' => '',
|
||||
'pagelink' => '%',
|
||||
'echo' => 1
|
||||
);
|
||||
|
||||
wp_link_pages($args);
|
||||
?>
|
||||
|
||||
<div class="post-meta">
|
||||
|
||||
<?php if (has_category()) : ?>
|
||||
<p class="categories">
|
||||
<?php _e('In','hitchcock'); ?> <?php the_category(', '); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if (has_tag()) : ?>
|
||||
<p class="tags">
|
||||
<?php the_tags('', ' '); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php edit_post_link('Edit Post', '<p class="post-edit">', '</p>'); ?>
|
||||
|
||||
</div> <!-- /post-meta -->
|
||||
|
||||
<?php
|
||||
$prev_post = get_previous_post();
|
||||
$next_post = get_next_post();
|
||||
?>
|
||||
|
||||
<div class="post-navigation">
|
||||
|
||||
<?php
|
||||
if (!empty( $prev_post )): ?>
|
||||
|
||||
<a class="post-nav-prev" title="<?php echo esc_attr( get_the_title($prev_post) ); ?>" href="<?php echo get_permalink( $prev_post->ID ); ?>">
|
||||
<p><?php _e('Next','hitchcock'); ?><span class="hide"> <?php _e('Post','hitchcock'); ?></span></p>
|
||||
<span class="fa fw fa-angle-right"></span>
|
||||
</a>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
if (!empty( $next_post )): ?>
|
||||
|
||||
<a class="post-nav-next" title="<?php echo esc_attr( get_the_title($next_post) ); ?>" href="<?php echo get_permalink( $next_post->ID ); ?>">
|
||||
<span class="fa fw fa-angle-left"></span>
|
||||
<p><?php _e('Previous','hitchcock'); ?><span class="hide"> <?php _e('Post','hitchcock'); ?></span></p>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
</div> <!-- /post-navigation -->
|
||||
|
||||
</div> <!-- /post-inner -->
|
||||
|
||||
<?php comments_template( '', true ); ?>
|
||||
|
||||
</div> <!-- /post-container -->
|
||||
|
||||
</div> <!-- /post -->
|
||||
|
||||
</div> <!-- /content -->
|
||||
|
||||
<?php hitchcock_related_posts(); ?>
|
||||
|
||||
<?php endwhile; else: ?>
|
||||
|
||||
<p><?php _e("We couldn't find any posts that matched your query. Please try again.", "hitchcock"); ?></p>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div> <!-- /content -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
42
single.php
42
single.php
|
|
@ -48,6 +48,48 @@
|
|||
|
||||
<div class="clear"></div>
|
||||
|
||||
<?php if ( get_the_category()[0]->name == 'Urlaub' ) : ?>
|
||||
<div class="post-meta">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Land</th>
|
||||
<td><?php the_field( 'land' ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mitreisende</th>
|
||||
<td><?php the_field( 'mitreisende' ) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Anreise</th>
|
||||
<td><?php $an = get_field( 'anreise' ); echo(substr($an,6,2).'.'.substr($an,4,2).'.'.substr($an,0,4)) ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Abreise</th>
|
||||
<td><?php $ab = get_field( 'abreise' ); echo(substr($ab,6,2).'.'.substr($ab,4,2).'.'.substr($ab,0,4)) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="post-meta">
|
||||
<?php $location = get_field( 'ort' ); ?>
|
||||
<div class='map' style='height:300px; margin-bottom: 1.6842em' id='map-<?php echo $id ?>'></div>
|
||||
<script type='text/javascript'>
|
||||
var map;
|
||||
var map_center = {lat: <?php echo $location['lat'] ?>, lng: <?php echo $location['lng'] ?> };
|
||||
function initMap() {
|
||||
map = new google.maps.Map(document.getElementById('map-<?php echo $id ?>'), {
|
||||
center: map_center,
|
||||
zoom: 15
|
||||
});
|
||||
var marker = new google.maps.Marker({
|
||||
position: map_center,
|
||||
map: map
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$args = array(
|
||||
'before' => '<div class="page-links"><span class="title">' . __( 'Pages:','hitchcock' ) . '</span>',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue