'lazy',
];
$attributes = array_merge($additional_attributes, $default_attributes);
$custom_thumbnail = wp_get_attachment_image(
get_post_thumbnail_id( $post_id ),
$size,
false,
$additional_attributes
);
}
return $custom_thumbnail;
}
function the_post_custom_thumbnail($post_id, $size='future-thumbnail', $additional_attributes = []){
echo get_the_custom_post_thumbnail($post_id, $size, $additional_attributes);
}
function atlantis_ak_posted_on(){
$time_stirng = '';
if(get_the_time( 'G' ) !== get_the_modified_time( 'G' )){
$time_stirng = '';
}
$time_stirng = sprintf( $time_stirng,
esc_attr(get_the_date(DATE_W3C)),
esc_attr(get_the_date()),
esc_attr(get_the_modified_date( DATE_W3C )),
esc_attr(get_the_modified_date( ))
);
$post_on = sprintf(
esc_html_x('%s', 'post_date', 'atlantisak'),
''. $time_stirng .'',
);
echo ''. $post_on .''; ;
}
function atlantis_ak_author(){
$byAuthor = sprintf(
esc_html_x(' by %s', 'post author', 'atlantisak'),
''.esc_html(get_the_author()).''
);
echo ''. $byAuthor .'';
}
function atlatis_ak_category(){
$the_post_id = get_the_ID( );
$article_trms = wp_get_post_terms( $the_post_id, ['category', 'post_tag'] );
if(empty($article_trms) || ! is_array($article_trms)){
return;
}
foreach($article_trms as $key => $article_trm){
?>
name.',',) ?>
%2$s',
get_permalink( get_the_ID( ) ),
__('Read More', 'atlantisak'),
);
}
return $more;
}
function atlantis_ak_pagination() {
$allowed_tags = [
'span' => [
'class' => []
],
'a' => [
'class' => [],
'href' => [],
]
];
$args = [
'before_page_number' => '',
'after_page_number' => '',
];
printf( '', wp_kses( paginate_links( $args ), $allowed_tags ) );
}
function atlantis_ak_page_edit(){
if(is_page() && ! is_home() && ! is_single( ) && current_user_can('publish_posts')){
?>