0,
'link_empty_to' => '',
'orderby' => 'custom',
'order' => 'asc',
) ) );
$current_lang_code = apply_filters( 'wpml_current_language', null );
$current_lang = $languages[ $current_lang_code ];
unset( $languages[ $current_lang_code ] );
if ( ! empty( $languages ) ) {
?>
WordPress', 'blockchain-lite' ),
esc_url( 'https://wordpress.org/' )
);
} else {
if ( ! defined( 'BLOCKCHAIN_LITE_WHITELABEL' ) || ! BLOCKCHAIN_LITE_WHITELABEL ) {
$text = sprintf( __( 'A theme by CSSIgniter', 'blockchain-lite' ),
esc_url( 'https://www.cssigniter.com/' )
);
} else {
$text = sprintf( __( '%2$s', 'blockchain-lite' ),
esc_url( home_url( '/' ) ),
get_bloginfo( 'name' )
);
}
}
return apply_filters( 'blockchain_lite_default_footer_text', $text );
}
function blockchain_lite_sanitize_footer_text( $text ) {
return wp_kses( $text, blockchain_lite_get_allowed_tags( 'guide' ) );
}
function blockchain_lite_header_right( $layout ) {
if ( 'right' !== $layout ) {
return;
}
?>
%s', $html );
}
do_action( 'blockchain_lite_before_the_post_header', $html );
echo $html; // WPCS: XSS ok.
do_action( 'blockchain_lite_after_the_post_header', $html );
}
function blockchain_lite_the_post_entry_title() {
if ( is_singular() && get_the_ID() === get_queried_object_id() ) {
$hero = blockchain_lite_get_hero_data();
if ( ! $hero['page_title_hide'] ) {
?>
%s', $html );
}
do_action( 'blockchain_lite_before_the_post_entry_meta', $html );
echo $html; // WPCS: XSS ok.
do_action( 'blockchain_lite_after_the_post_entry_meta', $html );
}
function blockchain_lite_the_post_entry_sticky_label() {
if ( 'post' !== get_post_type() ) {
return;
}
if ( ! is_singular() && is_sticky() ) {
?>
' . esc_html( get_the_author() ) . ''
);
?>
', 'blockchain-lite' ), array(
'span' => array(
'class' => array(),
),
) ), get_the_title() ) );
?>
0 || $has_rss ) {
do_action( 'blockchain_lite_before_the_social_icons' );
?>
';
foreach ( $networks as $network ) {
if ( ! empty( $used_urls[ $network['name'] ] ) ) {
echo sprintf( $template,
esc_url( $used_urls[ $network['name'] ] ),
$target,
esc_attr( $network['icon'] )
);
}
}
if ( $has_rss ) {
echo sprintf( $template,
$used_rss,
$target,
esc_attr( 'fa-rss' )
);
}
?>
1,
'prev_text' => _x( 'Previous', 'previous post', 'blockchain-lite' ),
'next_text' => _x( 'Next', 'next post', 'blockchain-lite' ),
'screen_reader_text' => __( 'Posts navigation', 'blockchain-lite' ),
'container_id' => '',
'container_class' => '',
) ) );
global $wp_query;
$output = '';
$method = get_theme_mod( 'pagination_method', 'numbers' );
if ( $wp_query->max_num_pages > 1 ) {
switch ( $method ) {
case 'text':
$output = get_the_posts_navigation( $args );
break;
case 'numbers':
default:
$output = get_the_posts_pagination( $args );
break;
}
if ( ! empty( $args['container_id'] ) || ! empty( $args['container_class'] ) ) {
$output = sprintf( '%1$s
', $output, esc_attr( $args['container_id'] ), esc_attr( $args['container_class'] ) );
}
}
// All markup is from native WordPress functions. The wrapping div is properly escaped above.
$output_safe = $output;
echo $output_safe;
}