$jaar = get_the_date("Y"); $wanneer = '<span class="pub-dag">' . $dag . '</span><span class="pub-maand">' . $maand . '</span><span class="pub-jaar">' . $jaar . '</span>'; $door = '<span>' . get_the_author() . '</span>'; $beeld = ''; if (has_post_thumbnail() && is_wallpaper_pagina($post->ID) == false) { $beeld = get_the_post_thumbnail($id, array($hb, $hb), array('class' => 'beeld post-beeld ' . $class)); } print '<div class="item-pagina ' . $class_container . '">'; if ($tags) { $output_tags = '<div class="container-tags">'; foreach ($tags as $tag) { $tag_naam = $tag->name; $tag_link = get_tag_link($tag->term_id); $output_tags .= '<a title="' . $tag_naam . '" href="' . $tag_link . '">' . $tag_naam . '</a>'; } $meer = meerKleurplatenVanDezeletter($post->ID); $output_tags .= $meer; $output_tags .= '</div>'; } if (is_kleurplaten_pagina($post->ID)) { print '<div class="navigatie alfabet clearfix">'; print lettersAlfabet(); print '</div>'; $aantal = aantal_kleurplaten($post->ID); print $beeld; print '<h1 class="paginatitel">' . $titel . '</h1>'; print $output_tags; the_content(); //get_template_part('inc/inc-social'); comments_template('', false); } elseif (is_wallpaper_pagina($post->ID)) {
print '</div>'; if (is_kleurplaten_pagina($post->ID) == true) { print '<div class="navigatie clearfix">'; if (is_attachment()) { $ouder_naam = str_replace("kleurplaten", "", get_the_title($post->post_parent)); $ouder_url = get_permalink($post->post_parent); $aantal_kleurplaten_in_cat = aantal_kleurplaten_in_categorie($post->post_parent); $class = 'kleurplaat'; $actie_prefix = 'bekijk:'; $actie_postfix = 'kleurplaat'; if (strlen($caption) > 0) { $caption = ' – ' . $caption; } print '<a title="Print deze kleurplaat" class="knop print" href="#">Print deze kleurplaat</a>'; print '<a class="knop meer" title="Bekijk ' . ($aantal_kleurplaten_in_cat - 1) . ' meer ' . $ouder_naam . ' kleurplaten." href="' . $ouder_url . '">Er zijn ' . ($aantal_kleurplaten_in_cat - 1) . ' andere ' . $ouder_naam . ' kleurplaten</a>'; print meerKleurplatenVanDezeletter($post->post_parent); if (function_exists("update_aantal_keer_bekeken")) { print '<meta name="views" content="' . update_aantal_keer_bekeken($post->ID) . '" />'; } } print '</div>'; } elseif (is_wallpaper_pagina($post->ID) == true) { $titel_ouder = ''; $class = 'wallpaper'; $actie_prefix = 'bewaar'; $actie_postfix = 'wallpaper'; $ouder_naam = str_replace("wallpapers", "", get_the_title($post->post_parent)); $ouder_naam = '‘' . $ouder_naam . '’ wallpapers'; $ouder_url = get_permalink($post->post_parent); $downloaden = '<a class="knop" target="_blank" href="' . $url . '">Wallpaper downloaden</a>'; print '<div class="navigatie clearfix">';