'; } } add_action( 'wp_head', 'accesspress_parallax_pingback_header' ); //bxSlider Callback for do action function accesspress_parallax_bxslidercb(){ global $post; $accesspress_parallax = of_get_option('parallax_section'); if(!empty($accesspress_parallax)) : $accesspress_parallax_first_page_array = array_slice($accesspress_parallax, 0, 1); $accesspress_parallax_first_page = $accesspress_parallax_first_page_array[0]['page']; endif; $accesspress_slider_category = of_get_option('slider_category'); $accesspress_slider_full_window = of_get_option('slider_full_window') ; $accesspress_show_slider = of_get_option('show_slider') ; $accesspress_show_caption = of_get_option('show_caption') ; $accesspress_enable_parallax = of_get_option('enable_parallax'); ?> "; if(!empty($sections)){ foreach ($sections as $section) { $dyamic_style .= "#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 .= "#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 = of_get_option('facebook'); $twitterlink = of_get_option('twitter'); $google_pluslink = of_get_option('google_plus'); $youtubelink = of_get_option('youtube'); $pinterestlink = of_get_option('pinterest'); $linkedinlink = of_get_option('linkedin'); $flickrlink = of_get_option('flickr'); $vimeolink = of_get_option('vimeo'); $instagramlink = of_get_option('instagram'); $skypelink = of_get_option('skype'); ?>
]*>#', '#$#' ), '', $menu ); } add_filter( 'wp_page_menu', 'accesspress_remove_page_menu_div' ); function accesspress_customize_excerpt_more( $more ) { return '...'; } add_filter('excerpt_more', 'accesspress_customize_excerpt_more'); function accesspress_word_count($string, $limit) { $words = explode(' ', $string); return implode(' ', array_slice($words, 0, $limit)); } function accesspress_letter_count($content, $limit) { $striped_content = strip_tags($content); $striped_content = strip_shortcodes($striped_content); $limit_content = mb_substr($striped_content, 0 , $limit ); if( strlen($limit_content) < strlen($content) ){ $limit_content .= "..."; } return $limit_content; } function accesspress_register_string(){ if(function_exists('pll_register_string')){ $home_text = of_get_option('home_text'); pll_register_string('Menu: Home Text', $home_text ,'Theme Option Text'); } } add_action('after_setup_theme','accesspress_register_string'); function accesspress_translated_id($orginal_id){ $translation_title_id = apply_filters( 'wpml_object_id', $orginal_id, 'page', true); if( ($translation_title_id == $orginal_id) && function_exists('pll_get_post') ){ $translation_title_id = pll_get_post($orginal_id); } return $translation_title_id; } add_filter( 'accesspress_translate_id', 'accesspress_translated_id' ); function accesspress_translated_string($string, $domain){ $wpml_translation = apply_filters('wpml_translate_single_string', $string, $domain, $string); if ($wpml_translation === $string && function_exists('pll__')) { pll_register_string($domain, $string); return pll__($string); } return $wpml_translation; } add_filter( 'accesspress_translate_string', 'accesspress_translated_string', 10, 2 );