str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
'format' => '?paged=%#%',
'current' => max( 1, get_query_var( 'paged' ) ),
'total' => $wp_query->max_num_pages,
'next_text' => '»',
'prev_text' => '«',
'add_args' => false
) );
// Display the pagination if more than one page is found
if ( $paginate_links ) : ?>
'' ) :
echo do_shortcode(wp_kses_post($theme_options['footer_text']));
endif;
}
endif;
// Display Credit Link
add_action( 'momentous_credit_link', 'momentous_display_credit_link' );
function momentous_display_credit_link() {
printf(__( 'Powered by %1$s and %2$s.', 'momentous-lite' ),
sprintf( '%s', __( 'WordPress', 'momentous-lite' ) ),
sprintf( '%s', __( 'Momentous', 'momentous-lite' ) )
);
}
// Display Social Icons
function momentous_display_social_icons() {
// Check if there is a social_icons menu
if( has_nav_menu( 'social' ) ) :
// Display Social Icons Menu
wp_nav_menu( array(
'theme_location' => 'social',
'container' => false,
'menu_id' => 'social-icons-menu',
'echo' => true,
'fallback_cb' => '',
'before' => '',
'after' => '',
'link_before' => '',
'link_after' => '',
'depth' => 1
)
);
else: // Display Hint how to configure Social Icons ?>
Appearance-> Menus and create a new custom menu with custom links to all your social networks. Then click on "Manage Locations" tab and assign your created menu to the "Social Icons" theme location.', 'momentous-lite'); ?>