is_author() && isset( $wp_query->post ) ) {
$GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );
}
}
add_action( 'wp', 'bikashsoft_setup_author' );
global $bikashsoft_options;
$bikashsoft_settings = get_option( 'bikashsoft_options', $bikashsoft_options );
/**
* Register widgetized area and update sidebar with default widgets.
*/
function bikashsoft_widgets_init() {
register_sidebar( array(
'name' => __( 'Left Sidebar', 'bikashsoft' ),
'id' => 'left-sidebar',
'description' => __( 'Display items in the Left Sidebar of the inner pages', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Right Sidebar', 'bikashsoft' ),
'id' => 'right-sidebar',
'description' => __( 'Display items in the Right Sidebar of the inner pages', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Event Sidebar', 'bikashsoft' ),
'id' => 'event-sidebar',
'description' => __( 'Display items in the Left Sidebar of the inner pages', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
'after_title' => ' ',
) );
register_sidebar( array(
'name' => __( 'Blog Right Sidebar', 'bikashsoft' ),
'id' => 'blog-sidebar',
'description' => __( 'Display items for the blog category in the Right Sidebar of the inner pages', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Area One', 'bikashsoft' ),
'id' => 'footer-1',
'description' => __( 'Display items in First Footer Area', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Area Two', 'bikashsoft' ),
'id' => 'footer-2',
'description' => __( 'Display items in Second Footer Area', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Area Three', 'bikashsoft' ),
'id' => 'footer-3',
'description' => __( 'Display items in Third Footer Area', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Footer Area Four', 'bikashsoft' ),
'id' => 'footer-4',
'description' => __( 'Display items in Fourth Footer Area', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Left Block above footer', 'bikashsoft' ),
'id' => 'textblock-1',
'description' => __( 'Display items in the left just above the footer', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Middle Block above footer', 'bikashsoft' ),
'id' => 'textblock-2',
'description' => __( 'Display items in the middle just above the footer and replaces defaul gallery', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Right Block above footer', 'bikashsoft' ),
'id' => 'textblock-3',
'description' => __( 'Display items in the Right just above the footer and replaces Testimonials', 'bikashsoft' ),
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'bikashsoft_widgets_init' );
/**
* Enqueue scripts and styles.
*/
function ngo_scripts() {
global $bikashsoft_options;
$bikashsoft_settings = get_option( 'bikashsoft_options', $bikashsoft_options );
wp_enqueue_style( 'ngo-style', get_stylesheet_uri() );
wp_enqueue_style( 'font-awesome', get_template_directory_uri()."/css/font-awesome.css" );
wp_enqueue_style( 'flexslider', get_template_directory_uri()."/css/flexslider.css" );
wp_enqueue_style( 'bxslider', get_template_directory_uri()."/css/jquery.bxslider.css" );
wp_enqueue_style( 'bootstrap', get_template_directory_uri()."/bootstrap/css/bootstrap.css" );
wp_enqueue_script( 'jquery_min_js', get_template_directory_uri() . '/js/jquery-1.9.1.min.js', array('jquery') );
wp_enqueue_script( 'bootstrap_js', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js' );
wp_enqueue_script( 'bxslider_js', get_template_directory_uri() . '/js/jquery.bxslider.min.js' );
wp_enqueue_script( 'flexslider_js', get_template_directory_uri() . '/js/jquery.flexslider.js' );
wp_enqueue_script( 'custom_js', get_template_directory_uri() . '/js/custom.js' );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'ngo_scripts' );
/**
* Loads up favicon
*/
function bikashsoft_add_favicon(){
global $bikashsoft_options;
$bikashsoft_settings = get_option( 'bikashsoft_options', $bikashsoft_options );
if( !empty($bikashsoft_settings[ 'media_upload' ])){
echo ' ';
}
}
add_action('wp_head', 'bikashsoft_add_favicon');
function bikashsoft_social_cb(){
global $bikashsoft_options;
$bikashsoft_settings = get_option( 'bikashsoft_options', $bikashsoft_options );
?>
strlen($bikashsoft_excerpt)){
$bikashsoft_excerpt .= "...";
}
return $bikashsoft_excerpt;
}
function bikashsoft_bxslidercb(){
global $bikashsoft_options, $post;
$bikashsoft_settings = get_option( 'bikashsoft_options', $bikashsoft_options );
$home_template = $bikashsoft_settings['bikashsoft_home_template'];
($bikashsoft_settings['slider_show_pager'] == 'yes1' || empty($bikashsoft_settings['slider_show_pager'])) ? ($a='true') : ($a='false');
($bikashsoft_settings['slider_show_controls'] == 'yes2' || empty($bikashsoft_settings['slider_show_controls'])) ? ($b='true') : ($b='false');
($bikashsoft_settings['slider_mode'] == 'slide' || empty($bikashsoft_settings['slider_mode'])) ? ($c='horizontal') : ($c='fade');
($bikashsoft_settings['slider_auto'] == 'yes3' || empty($bikashsoft_settings['slider_auto'])) ? ($d='true') : ($d='false');
empty($bikashsoft_settings['slider_pause']) ? ($e ='5000') : ($e = $bikashsoft_settings['slider_pause']);
if( $bikashsoft_settings['show_slider'] !='no') {
if((isset($bikashsoft_settings['slider1']) && !empty($bikashsoft_settings['slider1']))
|| (isset($bikashsoft_settings['slider2']) && !empty($bikashsoft_settings['slider2']))
|| (isset($bikashsoft_settings['slider3']) && !empty($bikashsoft_settings['slider3']))
|| (isset($bikashsoft_settings['slider4']) && !empty($bikashsoft_settings['slider4']))
|| (isset($bikashsoft_settings['slider_cat']) && !empty($bikashsoft_settings['slider_cat']))
){
?>
$slider
);
$loop = new WP_query( $args );
if($loop->have_posts()){
while($loop->have_posts()) : $loop-> the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false );
?>
$bikashsoft_settings['slider_cat'],
'posts_per_page' => -1
));
if($loop->have_posts()){
while($loop->have_posts()) : $loop-> the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false );
?>
Bikashsoft Technology
Free Responsive, multi-purpose, business wordpress theme, perfect for any business on any device.
Easy Customization
A free theme with powerful theme options for customization. Style your wordpress and see changes live!
';
echo esc_html($bikashsoft_settings['custom_css']);
echo '';
}
add_action('wp_head','bikashsoft_custom_css');
function bikashsoft_call_to_action_cb()
{
global $bikashsoft_options;
$bikashsoft_settings = get_option( 'bikashsoft_options', $bikashsoft_options );
$home_template = $bikashsoft_settings['bikashsoft_home_template'];
if($home_template == ''){
?>
Check Our AccessPress Pro Theme - A premium version of AccessPres Lite
Check Now
is_home() ) {
$query->set('cat', $category);
}
}
return $query;
endif;
}
add_filter('pre_get_posts', 'bikashsoft_exclude_cat_from_blog');
function bikashsoft_admin_notice() {
global $pagenow;
if (is_admin() && isset($_GET['activated'] ) && $pagenow == "themes.php" ) {
?>
Theme Options Panel to set up the website.', 'bikashsoft' ), esc_url(admin_url('/themes.php?page=theme_options'))); ?>