/home/desid573/public_html/magicride.ng/wp-content/themes/drizzle-mag/includes
Edit: /home/desid573/public_html/magicride.ng/wp-content/themes/drizzle-mag/includes/theme-hooks.php (10112B)
'footer',
'container' => 'div',
'container_id' => 'footer-navigation',
'depth' => 1,
'fallback_cb' => false,
) );
?>
ID, 'drizzle_mag_settings', true );
if ( isset( $post_options['post_layout'] ) && ! empty( $post_options['post_layout'] ) ) {
$global_layout = $post_options['post_layout'];
}
}
// Include primary sidebar.
if ( 'no-sidebar' !== $global_layout ) {
get_sidebar();
}
// Include secondary sidebar.
switch ( $global_layout ) {
case 'three-columns':
get_sidebar( 'secondary' );
break;
default:
break;
}
}
endif;
add_action( 'drizzle_mag_action_sidebar', 'drizzle_mag_add_sidebar' );
if ( ! function_exists( 'drizzle_mag_custom_posts_navigation' ) ) :
/**
* Posts navigation.
*
* @since 1.0.0
*/
function drizzle_mag_custom_posts_navigation() {
the_posts_pagination();
}
endif;
add_action( 'drizzle_mag_action_posts_navigation', 'drizzle_mag_custom_posts_navigation' );
if ( ! function_exists( 'drizzle_mag_add_image_in_single_display' ) ) :
/**
* Add image in single template.
*
* @since 1.0.0
*/
function drizzle_mag_add_image_in_single_display() {
if ( has_post_thumbnail() ) {
$args = array(
'class' => 'drizzle-mag-post-thumb aligncenter',
);
the_post_thumbnail( 'large', $args );
}
}
endif;
add_action( 'drizzle_mag_single_image', 'drizzle_mag_add_image_in_single_display' );
if ( ! function_exists( 'drizzle_mag_add_breadcrumb' ) ) :
/**
* Add breadcrumb.
*
* @since 1.0.0
*/
function drizzle_mag_add_breadcrumb() {
$breadcrumb_type = drizzle_mag_get_option( 'breadcrumb_type' );
// Bail if breadcrumb is disabled.
if ( 'disabled' === $breadcrumb_type ) {
return;
}
// Bail if home page.
if ( is_front_page() || is_home() ) {
return;
}
echo '
';
drizzle_mag_breadcrumb();
echo '
';
return;
}
endif;
add_action( 'drizzle_mag_action_before_content', 'drizzle_mag_add_breadcrumb', 7 );
if ( ! function_exists( 'drizzle_mag_footer_goto_top' ) ) :
/**
* Go to top.
*
* @since 1.0.0
*/
function drizzle_mag_footer_goto_top() {
echo '
';
}
endif;
add_action( 'drizzle_mag_action_after', 'drizzle_mag_footer_goto_top', 20 );
if ( ! function_exists( 'drizzle_mag_add_footer_widgets' ) ) :
/**
* Add footer widgets.
*
* @since 1.0.0
*/
function drizzle_mag_add_footer_widgets() {
get_template_part( 'template-parts/footer-widgets' );
}
endif;
add_action( 'drizzle_mag_action_before_footer', 'drizzle_mag_add_footer_widgets', 5 );
if ( ! function_exists( 'drizzle_mag_add_featured_news_block' ) ) :
/**
* Add featured news block.
*
* @since 1.0.0
*/
function drizzle_mag_add_featured_news_block() {
$featured_news_status = drizzle_mag_get_option( 'featured_news_status' );
if ( true !== $featured_news_status ) {
return;
}
if ( is_front_page() && ! is_home() ) {
get_template_part( 'template-parts/featured' );
}
}
endif;
add_action( 'drizzle_mag_action_before_content', 'drizzle_mag_add_featured_news_block', 8 );
if ( ! function_exists( 'drizzle_mag_add_related_posts' ) ) :
/**
* Add related posts.
*
* @since 1.0.0
*/
function drizzle_mag_add_related_posts() {
$show_related_posts = drizzle_mag_get_option( 'show_related_posts' );
if ( true === $show_related_posts && is_singular( 'post' ) ) {
get_template_part( 'template-parts/related' );
}
}
endif;
add_action( 'drizzle_mag_action_related_posts', 'drizzle_mag_add_related_posts', 10 );