$accesspress_slider_category,
'posts_per_page' => -1
) );
if ( $loop->have_posts() ) :
?>
have_posts() ) : $loop->the_post();
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full', false );
$image_url = "";
if ( $accesspress_slider_full_window == "yes" ) :
$image_url = "style = 'background-image:url(" . esc_url( $image[ 0 ] ) . ");'";
endif;
?>
>
";
if ( !empty( $sections ) ) {
foreach ( $sections as $section ) {
$dyamic_style .= ".ap-home #section-" . $section[ 'page' ] . "{ background:url(" . $section[ 'image' ] . ") " . $section[ 'repeat' ] . " " . $section[ 'attachment' ] . " " . $section[ 'position' ] . " " . $section[ 'color' ] . "; background-size:" . $section[ 'size' ] . "; color:" . $section[ 'font_color' ] . "}\n";
$dyamic_style .= ".ap-home #section-" . $section[ 'page' ] . " .overlay { background:url(" . $image_url . $section[ 'overlay' ] . ".png);}\n";
}
}
if ( $slider_overlay == "yes" ) {
$dyamic_style .= "#main-slider .main-slides:after{display:none};";
}
echo esc_textarea( $dyamic_style );
echo esc_textarea( $custom_css );
echo "\n";
echo "\n";
}
add_action( 'wp_head', 'accesspress_header_styles_scripts' );
function accesspress_footer_count() {
$count = 0;
if ( is_active_sidebar( 'footer-1' ) )
$count++;
if ( is_active_sidebar( 'footer-2' ) )
$count++;
if ( is_active_sidebar( 'footer-3' ) )
$count++;
if ( is_active_sidebar( 'footer-4' ) )
$count++;
return $count;
}
function accesspress_social_cb() {
$facebooklink = accesspress_parallax_of_get_option( 'facebook' );
$twitterlink = accesspress_parallax_of_get_option( 'twitter' );
$google_pluslink = accesspress_parallax_of_get_option( 'google_plus' );
$youtubelink = accesspress_parallax_of_get_option( 'youtube' );
$pinterestlink = accesspress_parallax_of_get_option( 'pinterest' );
$linkedinlink = accesspress_parallax_of_get_option( 'linkedin' );
$flickrlink = accesspress_parallax_of_get_option( 'flickr' );
$vimeolink = accesspress_parallax_of_get_option( 'vimeo' );
$instagramlink = accesspress_parallax_of_get_option( 'instagram' );
$skypelink = accesspress_parallax_of_get_option( 'skype' );
?>