]*)class="([^"]*)")?/', '$1 $3 class="$4 table table-hover" ', $content);
}
if ( ! function_exists( 'apazit_social_icons' ) ) :
/**
* Display social links in footer and widgets
*
* @package apazit
*/
function apazit_social_icons(){
if ( has_nav_menu( 'social-menu' ) ) {
wp_nav_menu(
array(
'theme_location' => 'social-menu',
'container' => 'nav',
'container_id' => 'menu-social',
'container_class' => 'social-icons',
'menu_id' => 'menu-social-items',
'menu_class' => 'social-menu',
'depth' => 1,
'fallback_cb' => '',
'link_before' => '',
'link_after' => ''
)
);
}
}
endif;
if ( ! function_exists( 'apazit_header_menu' ) ) :
/**
* Header menu (should you choose to use one)
*/
function apazit_header_menu() {
// display the WordPress Custom Menu if available
wp_nav_menu(array(
'menu' => 'primary',
'theme_location' => 'primary',
'depth' => 2,
'container' => 'div',
'container_class' => 'collapse navbar-collapse navbar-ex1-collapse',
'menu_class' => 'nav navbar-nav',
'fallback_cb' => 'wp_bootstrap_navwalker::fallback',
'walker' => new wp_bootstrap_navwalker()
));
} /* end header menu */
endif;
if ( ! function_exists( 'apazit_footer_links' ) ) :
/**
* Footer menu (should you choose to use one)
*/
function apazit_footer_links() {
// display the WordPress Custom Menu if available
wp_nav_menu(array(
'container' => '', // remove nav container
'container_class' => 'footer-links clearfix', // class of container (should you choose to use it)
'menu' => esc_html__( 'Footer Links', 'apazit' ), // nav name
'menu_class' => 'nav footer-nav clearfix', // adding custom nav class
'theme_location' => 'footer-links', // where it's located in the theme
'before' => '', // before the menu
'after' => '', // after the menu
'link_before' => '', // before each link
'link_after' => '', // after each link
'depth' => 0, // limit the depth of the nav
'fallback_cb' => 'apazit_footer_links_fallback' // fallback function
));
} /* end apazit footer link */
endif;
if ( ! function_exists( 'apazit_call_for_action' ) ) :
/**
* Call for action text and button displayed above content
*/
function apazit_call_for_action() {
if ( is_front_page() && of_get_option( 'w2f_cfa_text' )!=''){
echo '
';
}
}
endif;
if ( ! function_exists( 'apazit_featured_slider' ) ) :
/**
* Featured image slider, displayed on front page for static page and blog
*/
function apazit_featured_slider() {
if ( is_front_page() && of_get_option( 'apazit_slider_checkbox' ) == 1 ) {
echo '
';
echo '
';
$count = of_get_option( 'apazit_slide_number' );
$slidecat =of_get_option( 'apazit_slide_categories' );
$query = new WP_Query( array( 'cat' =>$slidecat,'posts_per_page' =>$count ) );
if ($query->have_posts()) :
while ($query->have_posts()) : $query->the_post();
echo '
';
}
}
endif;
/**
* function to show the footer info, copyright information
*/
function apazit_footer_info() {
global $apazit_footer_info;
printf( esc_html__( 'Theme by %1$s Powered by %2$s', 'apazit' ) , 'theme77', 'WordPress');
}
if ( ! function_exists( 'get_apazit_theme_options' ) ) {
/**
* Get information from Theme Options and add it into wp_head
*/
function get_apazit_theme_options(){
echo '';
}
}
add_action( 'wp_head', 'get_apazit_theme_options', 10 );
// Theme Options sidebar
add_action( 'optionsframework_after', 'apazit_options_display_sidebar' );
function apazit_options_display_sidebar() { ?>