getGeneralSettingsValues(); $strPutIn = RevSliderFunctions::getVal( $arrValues, "pages_for_includes" ); $isPutIn = RevSliderOutput::isPutIn( $strPutIn, TRUE ); $includesGlobally = RevSliderFunctions::getVal( $arrValues, "includes_globally", "on" ); if ( $isPutIn == FALSE AND $includesGlobally == "off" ) { $post_content = ''; $page_blocks_content = us_get_current_page_block_content(); if ( is_singular() ) { $post = get_post( get_the_ID() ); $post_content = $post->post_content; } if ( ( $post_content != '' AND stripos( $post_content, 'us_bg_slider=' ) !== FALSE ) OR ( $page_blocks_content != '' AND ( stripos( $page_blocks_content, 'us_bg_slider=' ) !== FALSE OR stripos( $page_blocks_content, '[rev_slider' ) !== FALSE ) ) ) { add_filter( 'revslider_include_libraries', '__return_true' ); } } }