forked from xwolfde/Piratenkleider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
68 lines (56 loc) · 2.06 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php get_header();
global $options;
?>
<div class="section content" id="main-content">
<div class="row">
<div class="content-primary">
<?php
if ( have_posts() ) while ( have_posts() ) : the_post();
$custom_fields = get_post_custom();
?>
<?php
$image_url = '';
if (($options['aktiv-platzhalterbilder-indexseiten']==1) && (isset($options['src-default-symbolbild']))) {
$image_url = $options['src-default-symbolbild'];
}
if (isset($image_url) && (strlen($image_url)>4)) {
if ($options['indexseitenbild-size']==1) {
echo '<div class="content-header-big">';
} else {
echo '<div class="content-header">';
}
?>
<h1 class="post-title"><span><?php the_title(); ?></span></h1>
<div class="symbolbild"><img src="<?php echo $image_url ?>" alt="">
</div>
</div>
<?php } ?>
<div class="skin">
<?php if (!(isset($image_url) && (strlen($image_url)>4))) { ?>
<h1 class="post-title"><span><?php the_title(); ?></span></h1>
<?php }
the_content(); ?>
<?php wp_link_pages( array( 'before' => '' . __( 'Seiten:', 'piratenkleider' ), 'after' => '' ) ); ?>
<?php edit_post_link( __( 'Bearbeiten', 'piratenkleider' ), '', '' ); ?>
<?php endwhile; ?>
</div>
</div>
<div class="content-aside">
<div class="skin">
<h1 class="skip"><?php _e( 'Weitere Informationen', 'piratenkleider' ); ?></h1>
<?php
if ( has_nav_menu( 'primary' ) ) {
wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'walker' => new My_Walker_Nav_Menu()) );
} else {
?>
<ul class="menu">
<?php wp_page_menu( ); ?>
</ul>
<?php } ?>
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_piratenkleider_socialmediaicons(2); ?>
</div>
<?php get_footer(); ?>