This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article class="_module-article article--full" itemscope itemtype='http://schema.org/Article'> | |
<?php setPostViews(get_the_ID()); //track post views ?> | |
<header class="article-header"> | |
<meta itemprop='keywords' content='<?php tag_list(); ?>'/> | |
<meta itemprop='inLanguage' content='<?php language_attributes(); ?>'/> | |
<meta itemprop='interactionCount' content='UserPageVisits:<?php echo getPostViews(get_the_ID()); //log post-views as user-interactions ?>'/> | |
<meta itemprop='description' content='<?php the_excerpt(); ?>'/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function tag_list() { | |
$posttags = get_the_tags(); | |
if ($posttags) { | |
foreach($posttags as $tag) { | |
echo $tag->name . ' '; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getPostViews($postID){ | |
$count_key = 'post_views_count'; | |
$count = get_post_meta($postID, $count_key, true); | |
if($count==''){ | |
delete_post_meta($postID, $count_key); | |
add_post_meta($postID, $count_key, '0'); | |
return "0 View"; | |
} | |
return $count.' Views'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function category_name() { | |
$category = get_the_category(); | |
echo $category[0]->cat_name; | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function the_post_thumbnail_url() { | |
$thumbnailURL = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); | |
echo $thumbnailURL | |
} | |
?> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function the_post_thumbnail_caption() { | |
global $post; | |
$thumb_id = get_post_thumbnail_id($post->id); | |
$args = array( | |
'post_type' => 'attachment', | |
'post_status' => null, | |
'post_parent' => $post->ID, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="_module-businessinfo businessinfo--full" itemscope itemtype="http://schema.org/LocalBusiness"> | |
<div class="businessinfo-name" itemprop="name"><?php the_field('firmenbezeichnung', 'option'); ?></div> | |
<div class="businessinfo-address" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
<span class="businessinfo-streetAddress" itemprop="streetAddress"><?php the_field('strasse_hausnummer', 'option'); ?></span> | |
<span class="businessinfo-postalCode" itemprop="postalCode"><?php the_field('postleitzahl', 'option'); ?></span> | |
<span class="businessinfo-addressLocality" itemprop="addressLocality"><?php the_field('ort', 'option'); ?></span> | |
<span class="businessinfo-addressRegion" itemprop="addressRegion"><?php the_field('bundesland', 'option'); ?></span> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article class="_module-person person--full" itemscope itemtype="http://schema.org/Person"> | |
<div class="person-image"> | |
<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );?> | |
<img src="<?php echo $url; ?>" itemprop="image" alt="Bild von <?php the_title(); ?>" title="<?php the_title(); ?>" /> | |
</div> | |
<h3 class="person-name" itemprop="name"><?php the_title(); ?></h3> | |
<span class="person-jobTitle" itemprop="jobTitle"><?php the_field('person-jobTitle'); ?></span> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<article class="_module-job-offer job-offer--full" itemscope itemtype="http://schema.org/JobPosting"> | |
<header class="_module-job-offer-header"> | |
<h1 class="job-title" itemprop="title"><?php the_title(); ?></h1> | |
<div class="job-hours"> | |
<h3 class="job-subhead"><?php _e('Arbeitszeiten:', 'euw'); ?></h3> | |
<span class="job-hours-type" itemprop="employmentType"><?php the_field('_module-job-offer-overview-type'); ?></span> | |
<span class="job-hours-amount" itemprop="workHours"><?php the_field('_module-job-offer-overview-hours'); ?></span> |
NewerOlder