Move into wp-content path

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-08-31 00:48:20 +02:00
parent f523d8ccc0
commit 3724cc6edd
342 changed files with 108652 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
<?php
/**
* The template for displaying Author bios
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<div class="authorbox cf">
<div class="author-pic">
<?php
$author_bio_avatar_size = apply_filters( 'pirate_rogue_author_bio_avatar_size', 180 );
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
?>
</div><!-- .author-pic -->
<div class="author-heading">
<h3 class="author-title"><span><?php esc_html_e( 'About', 'pirate-rogue'); ?></span><?php printf( "<a href='" . esc_url(get_author_posts_url( get_the_author_meta( 'ID' ) )) . "' rel='author'>" . get_the_author() . "</a>" ); ?></h3>
</div><!-- end .author-heading -->
<p class="author-bio"><?php the_author_meta( 'description' ); ?></p>
<div class="author-links">
<?php if(get_the_author_meta('user_url') ): ?>
<?php
$author_url = get_the_author_meta('user_url');
$to_remove = array( 'http://', 'https://' );
foreach ( $to_remove as $item ) {
$author_url = str_replace($item, '', $author_url);
}
echo '<a class="author-website" href=' . get_the_author_meta('user_url') .'><span class="fa fa-link"></span> ' . $author_url . ' </a>';
?>
<?php endif; ?>
<?php if(get_the_author_meta('twitter') ): ?>
<a class="author-twitter" href="https://www.twitter.com/<?php echo get_the_author_meta('twitter'); ?>"><span class="fa fa-twitter"></span><?php echo get_the_author_meta('twitter'); ?></a>
<?php endif; ?>
</div><!-- end .author-links -->
</div><!-- end .authorbox -->

View File

@@ -0,0 +1,45 @@
<?php
/**
* The template for displaying 404 error in marque
*/
?>
<?php
$font_sizes = array(22, 20, 18, 16);
$text_fields = array(
__('File not found', 'pirate-rogue'),
__('404', 'pirate-rogue'),
__('Lost', 'pirate-rogue'),
__('These are not the droids you are looking for', 'pirate-rogue'),
__('Not here anymore', 'pirate-rogue'),
__('Arrrgh!', 'pirate-rogue'),
__('Arr!', 'pirate-rogue'),
__('404', 'pirate-rogue'),
__('Versenk mich doch!', 'pirate-rogue'),
__('Beim Klabautermann! ', 'pirate-rogue'),
__('404', 'pirate-rogue'),
__('Yo-ho-ho', 'pirate-rogue'),
);
$scrollamount_range = array(1, 2, 3, 4, 5, 6, 7, 8);
$colors = array('#ff8000', '#2b2b2b', '#672082', '#698bc1');
$leftmax = 315;
$topmax = 110;
$number = 20;
$output = '';
for ($i = 1; $i <= $number; $i++) {
$usecolor = $colors[array_rand($colors, 1)];
$usescroll = $scrollamount_range[array_rand($scrollamount_range,1)];
$usetext = $text_fields[array_rand($text_fields,1)];
$useleft = rand(1,$leftmax);
$usetop = rand(1,$topmax);
$useheight = rand(70,460);
$usesize = $font_sizes[array_rand($font_sizes,1)];
$output .= '<marquee style="z-index:2;position:absolute;left:'.$useleft.'px;top:'.$usetop.'px;font-size:'.$usesize.'px;';
$output .= 'color:'.$usecolor.';height:'.$useheight.'px;" scrollamount="'.$usescroll.'" direction="down">'.$usetext.'</marquee>';
}
$output .= '<span style="position:absolute;top:400px"></span>';
echo $output;
?>

View File

@@ -0,0 +1,81 @@
<?php
/**
* The template for displaying 404 error with fun videos
*/
?>
<?php
$videolist = array(
1 => array(
'title' => '<span lang="de">Was ist denn bitte die Piratenpartei?</span>',
'link' => 'https://www.youtube-nocookie.com/embed/Zzs_9suYC28?list=RDZzs_9suYC28',
'desc' => '<p lang="de"><br>Mix: Wofür steht dieser Haufen, der sich Piratenpartei nennt?</p>',
),
2 => array(
'title' => '<span lang="de">Alle, die mit uns den Bundestag entern</span>',
'link' => 'https://www.youtube-nocookie.com/embed/Zzs_9suYC28',
'desc' => '',
),
3 => array(
'title' => '<span lang="en">What shall we do with a drunken sailor?</span>',
'link' => 'https://www.youtube-nocookie.com/embed/qGyPuey-1Jw',
'desc' => '<div lang="en"><p><br>
What shall we do with a drunken sailor,<br>
What shall we do with a drunken sailor,<br>
What shall we do with a drunken sailor,<br>
Early in the morning?<br></p>
<p><em>Refrain:</em>
<em>
Way hay and up she rises,<br>
Way hay and up she rises,<br>
Way hay and up she rises,<br>
Early in the morning
</em></p><p>
<em>Put him in the long boat till he\'s sober,</em><br>
<em>Put him in the scuppers with a hose-pipe on him.</em><br>
<em>Shave his belly with a rusty razor.</em><br>
<em>Put him in bed with the captain\'s daughter.</em><br>
<em>Take him and shake him and try to awake him.</em><br>
<em>Have you seen the captain\'s daughter?</em><br>
<em>Put him in the bilge and make him drink it</em><br>
<em>Truss him up with a runnin\' bowline.</em><br>
<em>Give \'im a dose of salty water.</em><br>
<em>Stick on \'is back a mustard plaster.</em><br>
<em>Send him up the crow\'s nest till he falls down,</em><br>
<em>Tie him to the taffrail when she\'s yardarm under,</em><br>
<em>Soak \'im in oil \'til he sprouts a flipper.</em><br>
<em>Put him in the guard room \'til he\'s sober.</em><br>
<em>That\'s what we\'ll do with the drunken sailor.</em><br>
<em>Keel haul \'im \'til he\'s sober.</em><br>
<em>Put him in a hole with an angry weasel.</em><br>
<em>Scratch his back with a cat o\' nine tails.</em><br>
</p></div>',
),
4 => array(
'title' => '<span lang="en">The drunken Scotsman</span>',
'link' => 'https://www.youtube-nocookie.com/embed/MZ35SOU9HTM',
'desc' => '',
),
5 => array(
'title' => '<span lang="en">About pirates...</span>',
'link' => 'https://www.youtube-nocookie.com/embed/ZnJ7uOK4nYg',
'desc' => '',
),
);
$useentry = $videolist[array_rand($videolist, 1)];
?>
<p>
<?php esc_html_e( 'We are sorry, that we could not serve what you are looking for. But how about this:', 'pirate-rogue'); ?>
</p>
<h3><?php echo $useentry['title']; ?></h3>
<iframe width="560" height="315" src="<?php echo $useentry['link']; ?>" frameborder="0" allowfullscreen></iframe>
<?php if (!empty($useentry['desc'])) {
echo $useentry['desc'];
}

View File

@@ -0,0 +1,68 @@
<?php
/**
* The default template for displaying content
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_blogroll_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-small' )[0];
}
?>
<article <?php post_class('cf'); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' !== get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-small'); ?></span></a>
</div>
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein fallback" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a>
</div>
<?php endif; ?>
<div class="meta-main-wrap">
<div class="entry-meta">
<?php pirate_rogue_posted_by(); ?>
<span class="entry-date" aria-hidden="true">
<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
</span><!-- end .entry-date -->
<?php if ( comments_open() ) : ?>
<span class="entry-comments">
<?php comments_popup_link(
'<span class="leave-reply"><span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '0', 'pirate-rogue') . '</span>',
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '1', 'pirate-rogue'),
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '%', 'pirate-rogue') )
; ?>
</span>
<?php endif; // comments_open() ?>
<?php edit_post_link( esc_html__( 'Edit Post', 'pirate-rogue'), '<span class="entry-edit">', '</span>' ); ?>
</div>
<div class="entry-main">
<header class="entry-header">
<?php if ( has_category() ) : ?>
<div class="entry-cats" itemprop="articleSection"><?php the_category(' '); ?></div>
<?php endif; // has_category()
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header>
<div class="entry-summary" itemprop="description">
<?php the_excerpt(); ?>
</div>
</div>
</div>
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article>

View File

@@ -0,0 +1,83 @@
<?php
/**
* The template for displaying featured posts in a slider on the front page
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_slider' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
}
?>
<article <?php post_class('cf'); ?>>
<div class="meta-main-wrap">
<div class="slider-text">
<header class="entry-header">
<?php if ( has_category() ) : ?>
<div class="entry-cats">
<?php the_category(' '); ?>
</div><!-- end .entry-cats -->
<?php endif; // has_category() ?>
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
</header>
<div class="entry-meta">
<?php pirate_rogue_posted_by(); ?>
<span class="entry-date">
<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
</span><!-- end .entry-date -->
<?php if ( comments_open() ) : ?>
<span class="entry-comments">
<?php comments_popup_link(
'<span class="leave-reply"><span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '0', 'pirate-rogue') . '</span>',
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '1', 'pirate-rogue'),
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '%', 'pirate-rogue') )
; ?>
</span>
<?php
endif; // comments_open()
edit_post_link( esc_html__( 'Edit Post', 'pirate-rogue'), '<span class="entry-edit">', '</span>' ); ?>
</div>
<?php
if ( '' != get_the_post_thumbnail()) {
$post_thumbnail_id = get_post_thumbnail_id();
} else {
$post_thumbnail_id = $thumbfallbackid;
}
$imagedata = pirate_rogue_get_image_attributs($post_thumbnail_id);
if (isset($imagedata) && isset($imagedata['credits'])) {
echo '<div class="credits">'.$imagedata['credits'].'</div>';
}
?>
</div>
</div>
<?php if ( 'slider-fullscreen' == get_theme_mod( 'pirate_rogue_sliderstyle' )
|| 'slider-boxed' == get_theme_mod( 'pirate_rogue_sliderstyle' )
&& '' != get_the_post_thumbnail()
&& ! post_password_required() ) : ?>
<div class="entry-thumbnail" role="presentation">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('pirate-rogue-featured-big'); ?></a>
</div>
<?php elseif ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail" role="presentation">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('pirate-rogue-featured'); ?></a>
</div>
<?php elseif (! post_password_required()) :
if ($thumbfallbackid > 0 ) {
if ( 'slider-fullscreen' == get_theme_mod( 'pirate_rogue_sliderstyle' )
|| 'slider-boxed' == get_theme_mod( 'pirate_rogue_sliderstyle' )) {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-featured-big' )[0];
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-featured' )[0];
} ?>
<div class="entry-thumbnail fallback" role="presentation">
<a href="<?php the_permalink(); ?>"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></a>
</div>
<?php } ?>
<?php endif; ?>
</article>

View File

@@ -0,0 +1,74 @@
<?php
/**
* The template for displaying Big Featured Posts in the Front Page Sections
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-big' )[0];
}
?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-big'); ?></span></a>
<?php if ( has_post_format('video') ) : ?>
<span class="video-icon"><?php esc_html_e('Video', 'pirate-rogue') ?></span>
<?php endif; ?>
</div>
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a>
<?php if ( has_post_format('video') ) : ?>
<span class="video-icon"><?php esc_html_e('Video', 'pirate-rogue') ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="entry-text-wrap">
<div class="entry-text">
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div>
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header>
<div class="entry-meta">
<?php pirate_rogue_posted_by(); ?>
<span class="entry-date" aria-hidden="true">
<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
</span>
<?php if ( comments_open() ) : ?>
<span class="entry-comments">
<?php comments_popup_link(
'<span class="leave-reply"><span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '0', 'pirate-rogue') . '</span>',
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '1', 'pirate-rogue'),
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '%', 'pirate-rogue') )
; ?>
</span>
<?php endif; // comments_open() ?>
<?php edit_post_link( esc_html__( 'Edit Post', 'pirate-rogue'), '<span class="entry-edit">', '</span>' ); ?>
</div>
<div class="entry-summary" itemprop="description">
<?php echo pirate_rogue_custom_excerpt(600); ?>
</div>
</div>
</div>
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article>

View File

@@ -0,0 +1,42 @@
<?php
/**
* The template for displaying the Featured Bottom Post on the Front Page Sections
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-big' )[0];
}
?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('pirate-rogue-featured-bottom'); ?></a></div><!-- end .entry-thumbnail -->
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></a></div><!-- end .entry-thumbnail -->
<?php endif; ?>
<div class="entry-text-wrap">
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div>
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header>
<meta itemprop="description" content="<?php echo get_the_excerpt(); ?>">
</div>
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article>

View File

@@ -0,0 +1,39 @@
<?php
/**
* The template for displaying Small Posts in the Front Page Sections
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*
*/
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-small' )[0];
}
?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) { ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-small'); ?></span></a></div><!-- end .entry-thumbnail -->
<?php } elseif ( ! post_password_required() && $imagesrc != '') { ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a></div><!-- end .entry-thumbnail -->
<?php } ?>
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection"><?php the_category(' '); ?></div>
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header>
<meta itemprop="description" content="<?php echo get_the_excerpt(); ?>">
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article>

View File

@@ -0,0 +1,143 @@
<?php
/**
* The template used for displaying single post content.
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$introtext = get_post_meta($post->ID, 'intro', true);
$custom_class = get_post_meta($post->ID, 'post_class', true);
?>
<article id="post-<?php the_ID(); ?>" <?php post_class($custom_class); ?>>
<header class="entry-header cf">
<div class="title-wrap">
<?php
the_title( '<h1 class="entry-title">', '</h1>' );
if ( get_post_meta($post->ID, 'intro', true) ) { ?>
<p class="intro"><?php echo $introtext; ?></p>
<?php } ?>
</div><!-- end .title-wrap -->
<div class="entry-meta cf">
<div class="meta-columnone">
<div class="entry-date">
<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
</div><!-- end .entry-date -->
</div><!-- end .meta-columnone -->
<div class="meta-columntwo">
</div><!-- end .meta-columntwo -->
<div class="meta-columnthree">
<?php edit_post_link( esc_html__( 'Edit Post', 'pirate-rogue'), '<span class="entry-edit">', '</span>' ); ?>
</div><!-- end .meta-columnthree -->
</div><!-- end .entry-meta -->
</header><!-- end .entry-header -->
<div class="contentwrap">
<div id="socialicons-sticky">
<div id="entry-content" class="entry-content">
<?php
$output = '';
echo wp_get_attachment_image( $post->ID, 'full' );
echo '<p class="auszug">';
the_excerpt();
echo "</p>\n";
the_content();
$imgdata = pirate_rogue_get_image_attributs($post->ID);
if ( is_user_logged_in() ) {
echo '<p class="box maincolor-box">'.__('Only visible to website members:','pirate-rogue').'</p>';
echo "<h3>".__('Image Attributs','pirate-rogue')."</h3>";
echo pirate_rogue_array2table($imgdata);
echo "<h3>".__('Meta','pirate-rogue')."</h3>";
$meta = get_post_meta( $post->ID );
if (isset($meta) && isset($meta['_wp_attachment_metadata'])
&& is_array($meta['_wp_attachment_metadata'])) {
$data = unserialize($meta['_wp_attachment_metadata'][0]);
echo pirate_rogue_array2table($data['image_meta']);
echo "<h3>".__('Image Sizes','pirate-rogue')."</h3>\n";
echo pirate_rogue_array2table($data['sizes']);
} else {
echo '<p class="box red-box">'.__('No meta data found','pirate-rogue').'</p>';
}
echo '<p class="hinweis">'.__('Public information:','pirate-rogue').'</p>';
}
?>
<h3><?php _e('Image Informations','pirate-rogue'); ?></h3>
<table>
<tr>
<th><?php _e('Title','pirate-rogue');?></th>
<td><?php echo $imgdata['title']; ?></td>
</tr>
<?php if(!empty($imgdata['caption'])) { ?>
<tr>
<th><?php _e('Caption','pirate-rogue');?></th>
<td><?php echo $imgdata['caption']; ?></td>
</tr>
<?php } ?>
<?php if(!empty($imgdata['excerpt'])) { ?>
<tr>
<th><?php _e('Excerpt','pirate-rogue');?></th>
<td><?php echo $imgdata['excerpt']; ?></td>
</tr>
<?php } ?>
<?php if(!empty($imgdata['description'])) { ?>
<tr>
<th><?php _e('Description','pirate-rogue');?></th>
<td><?php echo $imgdata['description']; ?></td>
</tr>
<?php } ?>
<?php if(!empty($imgdata['copyright'])) { ?>
<tr>
<th><?php _e('Copyright','pirate-rogue');?></th>
<td><?php echo $imgdata['copyright']; ?></td>
</tr>
<?php }
?>
<tr>
<th><?php _e('Download','pirate-rogue');?></th>
<td><a href="<?php echo $imgdata['src']; ?>"><?php echo $imgdata['title']; ?> (<?php _e('Size','pirate-rogue');?> <?php echo $imgdata['width']; ?> x <?php echo $imgdata['height']; ?>)</a></td>
</tr>
</table>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'pirate-rogue'),
'after' => '</div>',
) );
?>
</div><!-- end .entry-content -->
<footer class="entry-footer cf">
<?php $tags_list = get_the_tag_list();
if ( $tags_list ): ?>
<div class="entry-tags"><span><?php esc_html_e('Tags', 'pirate-rogue') ?></span><?php the_tags('',' &bull; ', ''); ?></div>
<?php endif; ?>
</footer><!-- end .entry-footer -->
<?php the_post_navigation( array (
'next_text' => '<span class="meta-nav">' . esc_html__( 'Next Post', 'pirate-rogue') . '</span> ' .
'<span class="screen-reader-text">' . esc_html__( 'Next Post', 'pirate-rogue') . '</span> ',
'prev_text' => '<span class="meta-nav">' . esc_html__( 'Previous Post', 'pirate-rogue') . '</span> ' .
'<span class="screen-reader-text">' . esc_html__( 'Previous Post', 'pirate-rogue') . '</span> ',
) ); ?>
</div><!-- end #socialicons-sticky -->
</div><!-- end .content-wrap -->
</article><!-- end post -<?php the_ID(); ?> -->

View File

@@ -0,0 +1,29 @@
<?php
/**
* The template part for displaying a message that posts cannot be found
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<section class="no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php esc_html_e( 'Nothing Found', 'pirate-rogue'); ?></h1>
</header><!-- end .entry-header -->
<div class="entry-content">
<?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
<p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'pirate-rogue'), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
<?php elseif ( is_search() ) : ?>
<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'pirate-rogue'); ?></p>
<?php get_search_form(); ?>
<?php else : ?>
<p><?php esc_html_e( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'pirate-rogue'); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div><!-- .page-content -->
</section><!-- .no-results -->

View File

@@ -0,0 +1,21 @@
<?php
/**
* The template used for displaying page content.
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
global $pagebreakargs;
?>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
</header>
<div class="entry-content">
<?php
the_content();
echo wp_link_pages($pagebreakargs);
?>
</div>
<?php edit_post_link( esc_html__( 'Edit Page', 'pirate-rogue'), '<div class="edit-link cf">', '</div>' ); ?>

View File

@@ -0,0 +1,187 @@
<?php
/**
* The template used for displaying single post content.
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$singepagebreakargs = array(
'before' => '<div class="pagebreak-links">',
'after' => '</div>',
'link_before' => '',
'link_after' => '',
'next_or_number' => 'next',
'separator' => ' ',
'nextpagelink' => '<span class="next">'.__( 'Next page', 'pirate-rogue' ).'</span>',
'previouspagelink' => '<span class="prev">'.__( 'Previous page', 'pirate-rogue' ).'</span>',
'pagelink' => '%',
'echo' => 0
);
$introtext = get_post_meta($post->ID, 'intro', true);
$custom_class = get_post_meta($post->ID, 'post_class', true);
?>
<article id="post-<?php the_ID(); ?>" <?php post_class($custom_class); ?> itemscope itemtype="http://schema.org/NewsArticle">
<header class="entry-header cf">
<?php if ( $custom_class != 'no-thumb'
&& $custom_class == 'big-thumb'
&& '' != get_the_post_thumbnail()
&& ! post_password_required() ) : ?>
<div class="entry-thumbnail" role="presentation">
<?php the_post_thumbnail('pirate-rogue-bigthumb'); ?>
</div><!-- end .entry-thumbnail -->
<?php endif; ?>
<div class="title-wrap">
<?php if ( has_category() ) : ?>
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div><!-- end .entry-cats -->
<?php endif; // has_category()
$piratenkleider_untertitel = get_post_meta( get_the_ID(), 'piratenkleider_subtitle', true );
$subtitle = get_post_meta( get_the_ID(), 'pirate_rogue_subtitle', true );
if ((empty($subtitle)) && (isset($piratenkleider_untertitel))) {
$subtitle = $piratenkleider_untertitel;
}
if ($subtitle) {
echo '<h2 class="subtitle">'.$subtitle."</h2>\n";
}
the_title( '<h1 class="entry-title" itemprop="headline">', '</h1>' );
if ( get_post_meta($post->ID, 'intro', true) ) { ?>
<p class="intro" itemprop="description"><?php echo $introtext; ?></p>
<?php } else { ?>
<meta itemprop="description" content="<?php echo get_the_excerpt(); ?>">
<?php } ?>
</div><!-- end .title-wrap -->
<div class="entry-meta cf">
<div class="meta-columnone">
<?php if (('' == get_theme_mod( 'pirate_rogue_front_hideauthor' ) ) && ('' == get_theme_mod( 'pirate_rogue_all_hideauthor' ) )) { ?>
<div class="author-pic">
<?php
$author_bio_avatar_size = apply_filters( 'pirate_rogue_author_bio_avatar_size', 100 );
echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
?>
</div>
<div class="entry-author"><?php pirate_rogue_posted_by(); ?></div>
<?php } ?>
<div class="entry-date"><a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a></div>
</div>
<div class="meta-columntwo">
<?php if ( comments_open() ) : ?>
<div class="entry-comments-single">
<span class="entry-comments-title"><?php esc_html_e( 'Comments', 'pirate-rogue'); ?></span>
<span class="entry-comments"><?php comments_popup_link( esc_html__( '0', 'pirate-rogue'), esc_html__( '1', 'pirate-rogue'), esc_html__( '%', 'pirate-rogue'),'comments-link' ); ?></span>
</div>
<?php endif; // comments_open() ?>
</div>
<div class="meta-columnthree">
<?php
edit_post_link( esc_html__( 'Edit Post', 'pirate-rogue'), '<span class="entry-edit">', '</span>' ); ?>
</div>
</div>
</header>
<div class="contentwrap">
<?php if ( $custom_class != 'big-thumb'
&& $custom_class != 'no-thumb'
&& '' != get_the_post_thumbnail()
&& ! post_password_required() ) : ?>
<figure class="entry-thumbnail">
<?php
the_post_thumbnail();
$post_thumbnail_id = get_post_thumbnail_id( get_the_ID());
$imagedata = pirate_rogue_get_image_attributs($post_thumbnail_id);
if (isset($imagedata) && isset($imagedata['credits'])) {
echo '<figcaption>'.$imagedata['credits'].'</figcaption>';
}
?>
</figure>
<?php endif; ?>
<div id="socialicons-sticky">
<div id="entry-content" class="entry-content" itemprop="text">
<?php
the_content();
$pagenav = wp_link_pages($singepagebreakargs);
if ((isset($pagenav)) && (strlen($pagenav)>10)) {
echo $pagenav;
}
if ( class_exists( 'Pirate_Crew' ) && 'content' == get_theme_mod( 'pirate_rogue_crewmember-position' ) ) {
$preauthor = get_post_meta( $post->ID, 'pirate_crew_member_id', true );
$style = get_theme_mod( 'pirate_rogue_crewmember-style' );
$format = get_theme_mod( 'pirate_rogue_crewmember-format' );
$title = get_theme_mod( 'pirate_rogue_crewmember-title' );
if ($preauthor) {
if (isset($title)) {
echo '<h2 class="pirate-crew-title">'.$title.'</h2>';
}
echo do_shortcode( '[pirate id="'.$preauthor.'" format="'.$format.'" style="'.$style.'" showcontent="0"]' );
}
}
?>
<?php if ( function_exists( 'sharing_display' ) ) {sharing_display( '', true );}
if ( class_exists( 'Jetpack_Likes' ) ) {
$custom_likes = new Jetpack_Likes;
echo $custom_likes->post_likes( '' );
} ?>
</div>
<footer class="entry-footer cf">
<?php
$tags_list = get_the_tag_list();
if ( $tags_list ): ?>
<div class="entry-tags"><span><?php esc_html_e('Tags', 'pirate-rogue') ?></span><?php the_tags('',' &bull; ', ''); ?></div>
<?php endif; ?>
<?php
$canonical = get_post_meta( get_the_ID(), 'pirate_rogue_canonical', true );
if ($canonical) { ?>
<div class="canonical-link"><span><?php echo __('Origin: ','pirate-rogue');?></span><a href="<?php echo $canonical; ?>"><?php echo $canonical; ?></a></div>
<?php }
if (('' == get_theme_mod( 'pirate_rogue_front_hideauthor' ) ) && ('' == get_theme_mod( 'pirate_rogue_all_hideauthor' ) )) {
if ( get_the_author_meta( 'description' ) ) {
get_template_part( 'template-parts/authorbox' );
}
}
?>
</footer>
<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) :
comments_template();
endif;
?>
<?php
echo get_the_post_navigation( array(
'next_text' => '<span class="next">'.esc_html__( 'Next Post', 'pirate-rogue').'</span>',
'prev_text' => '<span class="prev">'.esc_html__( 'Previous Post', 'pirate-rogue').'</span>',
) );
?>
</div>
</div>
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article>

View File

@@ -0,0 +1,41 @@
<?php
/**
* The template for displaying featured content slider
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
// Get a number of Front page recent posts set in the customizer
$featuredtag = get_theme_mod('pirate_rogue_featuredtag');
$featurednum = absint( get_theme_mod('pirate_rogue_featured_slider_num'));
$postcat = get_theme_mod('pirate_rogue_featuredcat');
if (!isset($featurednum)) {
$featurednum = 3;
}
$args = array(
'posts_per_page' => $featurednum,
'post_status' => 'publish',
'tag_id' => $featuredtag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
);
$uku_front_query = new WP_Query( $args );
if($uku_front_query->have_posts()) { ?>
<div class="featured-slider cf">
<?php
while($uku_front_query->have_posts()) : $uku_front_query->the_post();
// Include the featured content template.
get_template_part( 'template-parts/content', 'featured-post' );
endwhile;
/* Restore original Post Data */
wp_reset_postdata();
?>
</div>
<?php } ?>

View File

@@ -0,0 +1,70 @@
<?php
/**
* The template for the Big Footer Feature Section
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<section id="big-footer-feature" class="big-footer-feature cf">
<?php
$linktitle = "";
$linktitle = esc_html(get_theme_mod( 'pirate_rogue_footerfeature_title' ) );
if (!isset($linktitle) || (empty(trim($linktitle)))) {
$linktitle = __('Featured','pirate-rogue');
}
if ( '' != get_theme_mod( 'pirate_rogue_footerfeature_title' )) { ?>
<h2 class="footer-feature-title"><?php echo $linktitle; ?></h2>
<?php } else { ?>
<h2 class="screen-reader-text"><?php echo $linktitle; ?></h2>
<?php }
$link = get_theme_mod( 'pirate_rogue_footerfeature_btn_link' );
$footerfeature_image = get_theme_mod( 'pirate_rogue_footerfeature_image' );
$imagesrc = '';
if (isset($footerfeature_image)) {
if (is_int($footerfeature_image)) {
$imagesrc = wp_get_attachment_image_src( $footerfeature_image, 'pirate-rogue-featured' )[0];
} else {
$imagesrc = esc_url( $footerfeature_image );
}
}
?>
<div class="footer-feature-image fadein">
<?php if (!empty($link)) {
echo '<a href="'.$link.'">';
}
if ($imagesrc) {
echo '<img src="'.$imagesrc.'" alt="'.$linktitle.'">';
} elseif ( has_custom_logo() && '' != get_theme_mod( 'pirate_rogue_customlogofooter' ) ) {
$custom_logo_id = get_theme_mod( 'custom_logo' );
if ( $custom_logo_id ) {
echo wp_get_attachment_image( $custom_logo_id, 'pirate-rogue-featured', false );
}
}
if (!empty($link)) {
echo '</a>';
}
?>
</div>
<div class="footer-feature-textwrap">
<?php if ( '' !== get_theme_mod( 'pirate_rogue_footerfeature_text_big' ) ) : ?>
<p class="text-big"><?php echo wp_kses_post( get_theme_mod( 'pirate_rogue_footerfeature_text_big' ) ); ?></p>
<?php endif; ?>
<?php if ( '' !== get_theme_mod( 'pirate_rogue_footerfeature_text_small' ) ) : ?>
<p class="text-small"><?php echo wp_kses_post( get_theme_mod( 'pirate_rogue_footerfeature_text_small' ) ); ?></p>
<?php endif;
$button_text = get_theme_mod( 'pirate_rogue_footerfeature_btn_text' );
$button_text = esc_html($button_text);
if (!empty($link) && (!empty($button_text))) {
echo '<a class="footer-feature-btn" href="'.$link.'">'.$button_text.'</a>';
} ?>
</div>
</section>

View File

@@ -0,0 +1,88 @@
<?php
/**
* The template for the footer menus
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<div class="footer-menus-wrap cf">
<h2 class="screen-reader-text"><?php _e('Navigation','pirate-rogue'); ?></h2>
<?php if ( '' != get_theme_mod( 'pirate_rogue_footermenu_image' ) ) {
$footerfeature_image = get_theme_mod( 'pirate_rogue_footermenu_image' );
$imagesrc = '';
if (isset($footerfeature_image)) {
if (is_int($footerfeature_image)) {
$imagesrc = wp_get_attachment_image_src( $footerfeature_image, 'pirate-rogue-featured' )[0];
} else {
$imagesrc = esc_url( $footerfeature_image );
}
}
// $image = absint(get_theme_mod( 'pirate_rogue_footermenu_image' ));
// $imagesrc = wp_get_attachment_image_src( $image, 'pirate-rogue-featured-bottom' )[0];
?>
<div class="custom-logo-wrap" aria-hidden="true" role="presentation">
<img src="<?php echo $imagesrc; ?>" alt="">
</div>
<?php } else { ?>
<p class="title-footer">
<?php if ( '' == get_theme_mod( 'pirate_rogue_footermenu_image' ) ) : ?>
<?php bloginfo( 'name' ); ?>
<?php endif; ?>
</p>
<?php }
if (has_nav_menu( 'footer-one' ) ) : ?>
<nav id="footer-menu-one" class="footer-menu">
<?php
$location = 'footer-one';
$menu_obj = pirate_rogue_get_menu_by_location($location );
wp_nav_menu( array(
'theme_location' => 'footer-one',
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
'container' => 'false',
)); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu( 'footer-two' ) ) : ?>
<nav id="footer-menu-two" class="footer-menu">
<?php
$location = 'footer-two';
$menu_obj = pirate_rogue_get_menu_by_location($location );
wp_nav_menu( array(
'theme_location' => 'footer-two',
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
'container' => 'false',
)); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu( 'footer-three' ) ) : ?>
<nav id="footer-menu-three" class="footer-menu">
<?php
$location = 'footer-three';
$menu_obj = pirate_rogue_get_menu_by_location($location );
wp_nav_menu( array(
'theme_location' => 'footer-three',
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
'container' => 'false',
)); ?>
</nav>
<?php endif; ?>
<?php if (has_nav_menu( 'footer-four' ) ) : ?>
<nav id="footer-menu-four" class="footer-menu">
<?php
$location = 'footer-four';
$menu_obj = pirate_rogue_get_menu_by_location($location );
wp_nav_menu( array(
'theme_location' => 'footer-four',
'items_wrap' => '<h3 class="footer-menu-title">'.esc_html($menu_obj->name).'</h3><ul id="%1$s" class="%2$s">%3$s</ul>',
'container' => 'false',
)); ?>
</nav>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,54 @@
<?php
/**
* The template for the Front Page Post Section About
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<section id="front-section-about" class="front-section cf">
<?php if ( '' != get_theme_mod( 'pirate_rogue_front_section_about_title' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html(get_theme_mod( 'pirate_rogue_front_section_about_title' ) ); ?></h3>
<?php endif;
$aboutimage = get_theme_mod( 'pirate_rogue_front_section_about_image' );
$imagesrc = '';
if (isset($aboutimage)) {
if (is_int($aboutimage)) {
$imagesrc = wp_get_attachment_image_src( $aboutimage, 'pirate-rogue-featured' )[0];
} else {
$imagesrc = esc_url( get_theme_mod( 'pirate_rogue_front_section_about_image' ) );
}
}
?>
<div class="section-about-column-one">
<div class="about-img-wrap" aria-hidden="true" role="presentation" tabindex="-1">
<?php if (!empty($imagesrc)) : ?>
<div class="front-about-img fadein">
<img src="<?php echo $imagesrc; ?>" alt="">
</div><!-- end .front-about-img -->
<?php endif; ?>
</div><!-- end .about-img-wrap -->
<?php if ( '' != get_theme_mod( 'pirate_rogue_front_section_about_text' ) ) : ?>
<p class="section-about-text"><span><?php echo wp_kses_post( get_theme_mod( 'pirate_rogue_front_section_about_text' ) ); ?></span></p>
<?php endif; ?>
</div>
<?php if (has_nav_menu( 'social-front' ) ) : ?>
<div class="section-about-column-two">
<?php if ( get_theme_mod( 'pirate_rogue_custom_followus' ) ) : ?>
<h4 class="social-front-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_custom_followus' ) ); ?></h4>
<?php else : ?>
<h4 class="social-front-title"><?php esc_html_e('Follow us', 'pirate-rogue') ?></h4>
<?php endif; ?>
<nav id="social-front" class="social-nav">
<?php wp_nav_menu( array(
'theme_location' => 'social-front',
'container' => 'false',
'depth' => -1));
?>
</nav>
</div>
<?php endif; ?>
</section>

View File

@@ -0,0 +1,98 @@
<?php
/**
* The template for the Front Page Post Section Four
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$postnumber = get_theme_mod('pirate_rogue_front_section_fullwidth_number');
if (!isset($postnumber)) {
$postnumber = 1;
}
$posttag = get_theme_mod('pirate_rogue_front_section_fullwidth_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('pirate_rogue_front_section_fullwidth_cat');
$category_link = get_category_link($postcat);
$uku_section_four_query = new WP_Query( array(
'posts_per_page' => $postnumber,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
) );
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-featured' )[0];
}
?>
<section id="front-section-four" class="front-section cf">
<?php if ( '' != get_theme_mod( 'pirate_rogue_front_section_fullwidth_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_fullwidth_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_fullwidth_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'pirate_rogue_front_section_fullwidth_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_fullwidth_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_fullwidth_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<?php if($uku_section_four_query->have_posts()) : ?>
<?php while($uku_section_four_query->have_posts()) : $uku_section_four_query->the_post() ?>
<article <?php post_class('cf'); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-featured'); ?></span></a></div><!-- end .entry-thumbnail -->
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a></div><!-- end .entry-thumbnail -->
<?php endif; ?>
<div class="meta-main-wrap">
<div class="entry-main">
<header class="entry-header">
<?php if ( has_category() ) : ?>
<div class="entry-cats" itemprop="articleSection"><?php the_category(' '); ?></div>
<?php endif; // has_category()
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header>
<meta itemprop="description" content="<?php echo get_the_excerpt(); ?>">
<div class="entry-meta">
<?php pirate_rogue_posted_by(); ?>
<span class="entry-date" aria-hidden="true">
<a href="<?php the_permalink(); ?>"><?php echo get_the_date(); ?></a>
</span>
<?php if ( comments_open() ) : ?>
<span class="entry-comments">
<?php comments_popup_link(
'<span class="leave-reply"><span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '0', 'pirate-rogue') . '</span>',
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '1', 'pirate-rogue'),
'<span class="comment-name">' . esc_html__( 'Comments', 'pirate-rogue') . '</span>' . esc_html__( '%', 'pirate-rogue') )
; ?>
</span>
<?php endif; // comments_open() ?>
<?php edit_post_link( esc_html__( 'Edit Post', 'pirate-rogue'), '<span class="entry-edit">', '</span>' ); ?>
</div>
</div>
</div>
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article>
<?php endwhile; ?>
<?php endif; // have_posts() ?>
<?php wp_reset_postdata(); ?>
</section>

View File

@@ -0,0 +1,87 @@
<?php
/**
* The template for the Front Page Post Section 4 Columns
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$postnumber = get_theme_mod('uku_front_section_fourcolumn_number');
$posttag = get_theme_mod('uku_front_section_fourcolumn_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('uku_front_section_fourcolumn_cat');
$category_link = get_category_link($postcat);
$uku_section_fourcolumn_query = new WP_Query( array(
'posts_per_page' => $postnumber,
'tag_id' => $posttag,
'cat' => $postcat,
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
) );
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-small' )[0];
}
?>
<section id="front-section-fourcolumn" class="front-section cf">
<?php if ( '' != get_theme_mod( 'uku_front_section_fourcolumn_title' ) && '' != get_theme_mod( 'uku_front_section_fourcolumn_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_fourcolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'uku_front_section_fourcolumn_title' ) && '' != get_theme_mod( 'uku_front_section_fourcolumn_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_fourcolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<div class="section-fourcolumn-postwrap columns-wrap">
<?php if($uku_section_fourcolumn_query->have_posts()) : ?>
<?php while($uku_section_fourcolumn_query->have_posts()) : $uku_section_fourcolumn_query->the_post() ?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' !== get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-small'); ?></span></a>
</div><!-- end .entry-thumbnail -->
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a>
</div><!-- end .entry-thumbnail -->
<?php endif; ?>
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div><!-- end .entry-cats -->
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header><!-- end .entry-header -->
<div class="entry-summary" itemprop="description">
<?php the_excerpt(); ?>
</div><!-- end .entry-summary -->
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article><!-- #post-## -->
<?php endwhile; ?>
<?php endif; // have_posts() ?>
<?php wp_reset_postdata(); ?>
</div><!-- end .section-fourcolumn-postwrap -->
</section><!-- end #front-section-fourcolumn -->

View File

@@ -0,0 +1,67 @@
<?php
/**
* The template for the Front Page Post Section One
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$posttag = get_theme_mod('uku_front_section_one_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('uku_front_section_one_cat');
$category_link = get_category_link($postcat);
$pirate_rogue_section_one_first_query = new WP_Query( array(
'posts_per_page' => 1,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
) );
$args = array(
'posts_per_page' => 5,
'offset' => 1,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
);
$pirate_rogue_section_one_second_query = new WP_Query( $args );
?>
<section id="front-section-one" class="front-section cf">
<?php if ( '' != get_theme_mod( 'uku_front_section_one_title' ) && '' != get_theme_mod( 'uku_front_section_one_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_one_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'uku_front_section_one_title' ) && '' != get_theme_mod( 'uku_front_section_one_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_one_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<div class="section-one-column-one">
<?php if($pirate_rogue_section_one_first_query->have_posts()) {
while($pirate_rogue_section_one_first_query->have_posts()) : $pirate_rogue_section_one_first_query->the_post();
get_template_part('template-parts/content-frontpost-big' );
endwhile;
} // have_posts() ?>
</div><!-- end .section-one-column-one -->
<div class="section-one-column-two columns-wrap">
<?php
if($pirate_rogue_section_one_second_query->have_posts()) {
while($pirate_rogue_section_one_second_query->have_posts()) : $pirate_rogue_section_one_second_query->the_post();
get_template_part('template-parts/content-frontpost-small' );
endwhile;
} // have_posts()
wp_reset_postdata(); ?>
</div><!-- end .section-one-column-two -->
</section><!-- end #front-section-one -->

View File

@@ -0,0 +1,86 @@
<?php
/**
* The template for the Front Page Post Section 6 Columns
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$postnumber = get_theme_mod('pirate_rogue_front_section_sixcolumn_number');
$posttag = get_theme_mod('pirate_rogue_front_section_sixcolumn_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('pirate_rogue_front_section_sixcolumn_cat');
$category_link = get_category_link($postcat);
$uku_section_sixcolumn_query = new WP_Query( array(
'posts_per_page' => $postnumber,
'tag_id' => $posttag,
'cat' => $postcat,
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
) );
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-small' )[0];
}
?>
<section id="front-section-sixcolumn" class="front-section cf">
<?php if ( '' != get_theme_mod( 'pirate_rogue_front_section_sixcolumn_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_sixcolumn_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_sixcolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'pirate_rogue_front_section_sixcolumn_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_sixcolumn_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_sixcolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<div class="section-sixcolumn-postwrap columns-wrap">
<?php if($uku_section_sixcolumn_query->have_posts()) : ?>
<?php while($uku_section_sixcolumn_query->have_posts()) : $uku_section_sixcolumn_query->the_post() ?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' !== get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-small'); ?></span></a>
</div><!-- end .entry-thumbnail -->
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1">
<a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a>
</div><!-- end .entry-thumbnail -->
<?php endif; ?>
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div><!-- end .entry-cats -->
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header><!-- end .entry-header -->
<div class="entry-summary" itemprop="description">
<?php the_excerpt(); ?>
</div><!-- end .entry-summary -->
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article><!-- #post-## -->
<?php endwhile; ?>
<?php endif; // have_posts() ?>
<?php wp_reset_postdata(); ?>
</div><!-- end .section-sixcolumn-postwrap -->
</section><!-- end #front-section-sixcolumn -->

View File

@@ -0,0 +1,65 @@
<?php
/**
* The template for the Front Page Post Section Three
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$posttag = get_theme_mod('uku_front_section_three_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('uku_front_section_three_cat');
$category_link = get_category_link($postcat);
$pirate_rogue_section_three_first_query = new WP_Query( array(
'posts_per_page' => 1,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
) );
$pirate_rogue_section_three_second_query = new WP_Query( array(
'posts_per_page' => 4,
'offset' => 1,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
) );
?>
<section id="front-section-three" class="front-section cf">
<div class="section-three-wrap cf">
<?php if ( '' != get_theme_mod( 'uku_front_section_three_title' ) && '' != get_theme_mod( 'uku_front_section_three_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_three_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'uku_front_section_three_title' ) && '' != get_theme_mod( 'uku_front_section_three_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_three_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<div class="section-three-column-one">
<?php if($pirate_rogue_section_three_first_query->have_posts()) : ?>
<?php while($pirate_rogue_section_three_first_query->have_posts()) : $pirate_rogue_section_three_first_query->the_post() ?>
<?php get_template_part('template-parts/content-frontpost-big' ); ?>
<?php endwhile; ?>
<?php endif; // have_posts() ?>
</div><!-- end .section-three-column-one -->
<div class="section-three-column-two">
<?php if($pirate_rogue_section_three_second_query->have_posts()) : ?>
<?php while($pirate_rogue_section_three_second_query->have_posts()) : $pirate_rogue_section_three_second_query->the_post() ?>
<?php get_template_part('template-parts/content-frontpost-small' ); ?>
<?php endwhile; ?>
<?php endif; // have_posts() ?>
</div><!-- end .section-three-column-two -->
<?php wp_reset_postdata(); ?>
</div><!-- end .section-three-wrap -->
</section><!-- end #front-section-three -->

View File

@@ -0,0 +1,80 @@
<?php
/**
* The template for the Front Page Post Section 3 Columns
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$postnumber = get_theme_mod('uku_front_section_threecolumn_number');
$posttag = get_theme_mod('uku_front_section_threecolumn_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('uku_front_section_threecolumn_cat');
$category_link = get_category_link($postcat);
$uku_section_threecolumn_query = new WP_Query( array(
'posts_per_page' => $postnumber,
'tag_id' => $posttag,
'cat' => $postcat,
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
) );
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-small' )[0];
}
?>
<section id="front-section-threecolumn" class="front-section columns-wrap cf">
<?php if ( '' != get_theme_mod( 'uku_front_section_threecolumn_title' ) && '' != get_theme_mod( 'uku_front_section_threecolumn_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_threecolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'uku_front_section_threecolumn_title' ) && '' != get_theme_mod( 'uku_front_section_threecolumn_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'uku_front_section_threecolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<?php if($uku_section_threecolumn_query->have_posts()) : ?>
<?php while($uku_section_threecolumn_query->have_posts()) : $uku_section_threecolumn_query->the_post() ?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-small'); ?></span></a></div><!-- end .entry-thumbnail -->
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a></div><!-- end .entry-thumbnail -->
<?php endif; ?>
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div><!-- end .entry-cats -->
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header><!-- end .entry-header -->
<div class="entry-summary" itemprop="description">
<?php the_excerpt(); ?>
</div><!-- end .entry-summary -->
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article><!-- #post-## -->
<?php endwhile; ?>
<?php endif; // have_posts() ?>
<?php wp_reset_postdata(); ?>
</section><!-- end #front-section-threecolumn -->

View File

@@ -0,0 +1,72 @@
<?php
/**
* The template for the Front Page Post Section Two
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$posttag = get_theme_mod('pirate_rogue_front_section_two_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('pirate_rogue_front_section_two_cat');
$category_link = get_category_link($postcat);
$pirate_rogue_section_two_first_query = new WP_Query( array(
'posts_per_page' => 1,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
) );
$args = array(
'posts_per_page' => 8,
'offset' => 1,
'post_status' => 'publish',
'tag_id' => $posttag,
'cat' => $postcat,
'ignore_sticky_posts' => 1,
);
$pirate_rogue_section_two_second_query = new WP_Query( $args );
?>
<section id="front-section-two" class="front-section cf">
<?php if ( '' != get_theme_mod( 'pirate_rogue_front_section_two_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_two_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_two_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'pirate_rogue_front_section_two_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_two_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_two_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<div class="section-two-column-one">
<?php if($pirate_rogue_section_two_first_query->have_posts()) {
while($pirate_rogue_section_two_first_query->have_posts()) {
$pirate_rogue_section_two_first_query->the_post();
get_template_part('template-parts/content-frontpost-big' );
}
} // have_posts() ?>
</div><!-- end .section-two-column-one -->
<div class="section-two-column-two columns-wrap">
<?php if($pirate_rogue_section_two_second_query->have_posts()) : ?>
<?php while($pirate_rogue_section_two_second_query->have_posts()) : $pirate_rogue_section_two_second_query->the_post() ?>
<?php get_template_part('template-parts/content-frontpost-small' ); ?>
<?php endwhile; ?>
<?php endif; // have_posts() ?>
<?php wp_reset_postdata(); ?>
</div><!-- end .section-two-column-two -->
</section><!-- end #front-section-two -->

View File

@@ -0,0 +1,78 @@
<?php
/**
* The template for the Front Page Post Section 2 Columns
*
* @package Pirate Rogue
* @since Pirate Rogue 1.0
* @version 1.0
*/
?>
<?php
$postnumber = get_theme_mod('pirate_rogue_front_section_twocolumn_number');
$posttag = get_theme_mod('pirate_rogue_front_section_twocolumn_tag');
$tag_link = get_tag_link( $posttag );
$postcat = get_theme_mod('pirate_rogue_front_section_twocolumn_cat');
$category_link = get_category_link($postcat);
$uku_section_twocolumn_query = new WP_Query( array(
'posts_per_page' => $postnumber,
'tag_id' => $posttag,
'cat' => $postcat,
'post_status' => 'publish',
'ignore_sticky_posts' => 1,
) );
$thumbfallbackid = absint(get_theme_mod( 'pirate_rogue_fallback_thumbnail' ));
if (!isset($thumbfallbackid)) {
$thumbfallbackid =0;
} else {
$imagesrc = wp_get_attachment_image_src( $thumbfallbackid, 'pirate-rogue-front-big' )[0];
}
?>
<section id="front-section-twocolumn" class="front-section columns-wrap cf">
<?php if ( '' != get_theme_mod( 'pirate_rogue_front_section_twocolumn_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_twocolumn_cat') ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_twocolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $category_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php elseif ( '' != get_theme_mod( 'pirate_rogue_front_section_twocolumn_title' ) && '' != get_theme_mod( 'pirate_rogue_front_section_twocolumn_tag' ) ) : ?>
<h3 class="front-section-title"><?php echo esc_html( get_theme_mod( 'pirate_rogue_front_section_twocolumn_title' ) ); ?><span><a class="all-posts-link" href="<?php echo esc_url( $tag_link ); ?>"><?php esc_html_e('All posts', 'pirate-rogue') ?></a></span></h3>
<?php endif; ?>
<?php if($uku_section_twocolumn_query->have_posts()) : ?>
<?php while($uku_section_twocolumn_query->have_posts()) : $uku_section_twocolumn_query->the_post() ?>
<article <?php post_class(); ?> itemscope itemtype="http://schema.org/NewsArticle">
<?php if ( '' != get_the_post_thumbnail() && ! post_password_required() ) : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><?php the_post_thumbnail('pirate-rogue-front-big'); ?></span></a></div><!-- end .entry-thumbnail -->
<?php elseif ( ! post_password_required() && $imagesrc != '') : ?>
<div class="entry-thumbnail fadein" aria-hidden="true" role="presentation" tabindex="-1"><a href="<?php the_permalink(); ?>"><span class="thumb-wrap"><img src="<?php echo $imagesrc; ?>" alt="<?php echo get_the_title();?>"></span></a></div><!-- end .entry-thumbnail -->
<?php endif; ?>
<header class="entry-header">
<div class="entry-cats" itemprop="articleSection">
<?php the_category(' '); ?>
</div><!-- end .entry-cats -->
<?php
echo '<h2 class="entry-title" itemprop="headline"><a href="'.esc_url( get_permalink() ).'" rel="bookmark" itemprop="url">';
echo get_the_title();
echo '</a><span class="screen-reader-text"> ('. get_the_date().')</span></h2>';
?>
</header><!-- end .entry-header -->
<div class="entry-summary" itemprop="description">
<?php the_excerpt(); ?>
</div><!-- end .entry-summary -->
<?php
echo pirate_rogue_create_schema_thumbnail();
echo pirate_rogue_create_schema_postmeta();
echo pirate_rogue_create_schema_publisher();
?>
</article><!-- #post-## -->
<?php endwhile; ?>
<?php endif; // have_posts() ?>
<?php wp_reset_postdata(); ?>
</section><!-- end #front-section-twocolumn -->