Remove Urlaub specific code from single.php

This commit is contained in:
Markus Ankenbrand 2016-09-10 20:23:00 +02:00
parent 0cfdd8797e
commit 456f2ccfef
2 changed files with 16 additions and 59 deletions

33
.idea/workspace.xml generated
View file

@ -2,8 +2,7 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="f4814905-d0bb-4804-a501-969ee4335bd0" name="Default" comment="">
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vagrant.xml" />
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/single-Urlaub.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/single.php" afterPath="$PROJECT_DIR$/single.php" />
</list>
<ignored path="atravelblog.iws" />
<ignored path=".idea/workspace.xml" />
@ -24,17 +23,17 @@
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="single.php" pinned="false" current-in-tab="false">
<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="360">
<caret line="24" column="48" selection-start-line="24" selection-start-column="48" selection-end-line="24" selection-end-column="48" />
<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="true">
<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">
@ -52,8 +51,8 @@
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/single.php" />
<option value="$PROJECT_DIR$/single-Urlaub.php" />
<option value="$PROJECT_DIR$/single.php" />
</list>
</option>
</component>
@ -185,12 +184,12 @@
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1473509435154</updated>
<workItem from="1473509436732" duration="3495000" />
<workItem from="1473509436732" duration="3576000" />
</task>
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="3495000" />
<option name="totallyTimeSpent" value="3576000" />
</component>
<component name="ToolWindowManager">
<frame x="0" y="0" width="1920" height="1061" extended-state="0" />
@ -234,14 +233,6 @@
<watches-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/single.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="360">
<caret line="24" column="48" selection-start-line="24" selection-start-column="48" selection-end-line="24" selection-end-column="48" />
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/single-Urlaub.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="735">
@ -250,5 +241,13 @@
</state>
</provider>
</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>
</provider>
</entry>
</component>
</project>

View file

@ -48,48 +48,6 @@
<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>',