?>=> esc_html__( 'Footer Widget Area - Left', 'neel' ),
'id' => 'neel-footer-widget-area-left',
'description' => esc_html__( 'Add widgets here.', 'neel' ),
'before_widget' => '',
'before_title' => '
',
) );
//Regsiger fotter widget area center
register_sidebar( array(
'name' => esc_html__( 'Footer Widget Area - Center', 'neel' ),
'id' => 'neel-footer-widget-area-center',
'description' => esc_html__( 'Add widgets here.', 'neel' ),
'before_widget' => '',
'before_title' => '',
) );
//Regsiger fotter widget area Right
register_sidebar( array(
'name' => esc_html__( 'Footer Widget Area - Right', 'neel' ),
'id' => 'neel-footer-widget-area-right',
'description' => esc_html__( 'Add widgets here.', 'neel' ),
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'neel_widgets_init' );
/**
* Enqueue scripts and styles.
*/
function neel_scripts() {
//Enqueue fontawesome style
wp_enqueue_style( 'neel-fontawesome-style', get_template_directory_uri().'/assets/font-awesome/css/all.min.css' );
//Enqueue v4 compatibility fontawesome style
wp_enqueue_style( 'neel-fontawesome-style', get_template_directory_uri().'/assets/font-awesome/css/v4-shims.min.css' );
wp_enqueue_style( 'neel-slick-slider-css', get_template_directory_uri() . '/assets/slick/slick.css' );
wp_enqueue_style( 'neel-style', get_stylesheet_uri() );
wp_enqueue_script( 'neel-navigation', get_template_directory_uri() . '/assets/js/navigation.js', array(), false, true );
wp_enqueue_script( 'neel-slick-slider-js', get_template_directory_uri() . '/assets/slick/slick.min.js', array('jquery'), false, true );
wp_enqueue_script( 'neel-js', get_template_directory_uri() . '/assets/js/neel.js', array(), false, true );
wp_enqueue_script( 'neel-skip-link-focus-fix', get_template_directory_uri() . '/assets/js/skip-link-focus-fix.js', array(), false, true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
wp_localize_script(
'neel-navigation',
'neel_screenReaderText',
array(
'expand' => '' . __( 'expand child menu', 'neel' ) . '',
'collapse' => '' . __( 'collapse child menu', 'neel' ) . '',
)
);
}
add_action( 'wp_enqueue_scripts', 'neel_scripts' );
/**
* Load google fornts selected by user.
* @since 1.0
*
*/
function neel_google_fonts() {
$defaults = neel_get_defaults();
$body_font = get_theme_mod( 'neel_body_font_select', $defaults['body_font'] );
$heading_font = get_theme_mod( 'neel_heading_font_select', $defaults['heading_font'] );
$fonts_url = '';
if ( '' !== $body_font ) {
$body_font = esc_html( $body_font );
}
if ( '' !== $heading_font ) {
$heading_font = esc_html( $heading_font );
}
/** Translators: If there are characters in your language that are not
* supported by Lora, translate this to 'off'. Do not translate
* into your own language.
*/
$body_font_on = _x( 'on', 'Google font for body text: on or off', 'neel' );
/* Translators: If there are characters in your language that are not
* supported by heading font, translate this to 'off'. Do not translate
* into your own language.
*/
$heading_font_on = _x( 'on', ' Gogle font for heading text: on or off', 'neel' );
// Construct url query based on chosen fonts
if ( 'off' !== $body_font_on || 'off' !== $heading_font_on ) {
$font_families = array();
if ( 'off' !== $body_font_on ) {
$font_families[] = $body_font;
}
if ( 'off' !== $heading_font_on ) {
$font_families[] = $heading_font.':400,700';
}
$query_args = array(
'family' => urlencode( implode( '|', $font_families ) ),
'subset' => urlencode( 'greek,cyrillic,latin-ext' ),
);
$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
}
wp_register_style( 'neel-google-fonts', $fonts_url, array(), null );
wp_enqueue_style( 'neel-google-fonts' );
}
add_action( 'wp_enqueue_scripts', 'neel_google_fonts' );
/**
* Function which returns social media menu.
* @since 1.0
*/
if ( ! function_exists( 'neel_return_social_media_menu' ) ) {
function neel_return_social_media_menu( $social_class='' ) {
$social_media_icons_html = '';
//array of focial media icons which uses 'fas' class
$fas_elements = array('envelope','envelope-open','envelope-square','shopping-cart','credit-card','gamepad','map-marker','heart','rss','rss-square','info-circle','info','film');
if( true === get_theme_mod( 'neel_social_media_menu_enable', false) ) {
$social_media_icons_html .= '';
}
return wp_kses_post( $social_media_icons_html );
}
}
if ( ! function_exists( 'neel_excerpt' ) ) {
function neel_excerpt( $limit = 54 ) {
echo ''. wp_kses_post( wp_trim_words( get_the_excerpt(), $limit) ) .'
';
}
}
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Default valudes for customizer options.
*/
require get_template_directory() . '/inc/defaults.php';
/**
* Custom Header Addition.
*/
require get_template_directory() . '/inc/custom-header.php';
require get_template_directory() . '/inc/sanitize-functions.php';
require get_template_directory() . '/inc/customizer-functions.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Customizer Upgrade to Pro Section.
*/
require get_template_directory() . '/inc/upsell/class-customize.php'; ?>{"version":"1.0","provider_name":"woomibbq","provider_url":"https:\/\/woomibbq.com","author_name":"admin","author_url":"https:\/\/woomibbq.com\/author\/admin\/","title":"How to Find a Reputable Sportsbook - woomibbq","type":"rich","width":600,"height":338,"html":"How to Find a Reputable Sportsbook<\/a><\/blockquote>
'; for($i=1; $i<=4; $i++ ){ $social_media_icon[$i] = get_theme_mod( 'neel_social_media_icon_'.$i, 'facebook-f' ); $social_media_url[$i] = get_theme_mod( 'neel_social_media_url_'.$i, '' ); //find the fontawesome icon class if( in_array( $social_media_icon[$i], $fas_elements ) ){ $icon_class[$i] = 'fas'; } else { $icon_class[$i] = 'fab'; } if ( '' !== $social_media_url[$i] ) : $social_media_icons_html .= '-
';
endif;
} //for loop end
$social_media_icons_html.= '