tag based on what is being viewed. * * @param string $title Default title text for current view. * @param string $sep Optional separator. * @return string The filtered title. */ function accesspress_parallax_wp_title( $title, $sep ) { if ( is_feed() ) { return $title; } global $page, $paged; // Add the blog name $title .= get_bloginfo( 'name', 'display' ); // Add the blog description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) { $title .= " $sep $site_description"; } // Add a page number if necessary: if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { $title .= " $sep " . sprintf( __( 'Page %s', 'accesspress_parallax' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'accesspress_parallax_wp_title', 10, 2 ); /** * Sets the authordata global when viewing an author archive. * * This provides backwards compatibility with * http://core.trac.wordpress.org/changeset/25574 * * It removes the need to call the_post() and rewind_posts() in an author * template to print information about the author. * * @global WP_Query $wp_query WordPress Query object. * @return void */ function accesspress_parallax_setup_author() { global $wp_query; if ( $wp_query->is_author() && isset( $wp_query->post ) ) { $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author ); } } add_action( 'wp', 'accesspress_parallax_setup_author' ); //bxSlider Callback for do action function accesspresslite_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 = sanitize_title(get_the_title($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_pager = (!of_get_option('show_pager') || of_get_option('show_pager') == "yes") ? "true" : "false"; $accesspress_show_controls = (!of_get_option('show_controls') || of_get_option('show_controls') == "yes") ? "true" : "false"; $accesspress_auto_transition = (!of_get_option('auto_transition') || of_get_option('auto_transition') == "yes") ? "true" : "false"; $accesspress_slider_transition = (!of_get_option('slider_transition')) ? "fade" : of_get_option('slider_transition'); $accesspress_slider_speed = (!of_get_option('slider_speed')) ? "5000" : of_get_option('slider_speed'); $accesspress_slider_pause = (!of_get_option('slider_pause')) ? "5000" : of_get_option('slider_pause'); $accesspress_show_caption = of_get_option('show_caption') ; $accesspress_enable_parallax = of_get_option('enable_parallax'); ?>
$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(".$image[0].");"; endif; ?>
>

slider1

Learning from failure

There are no secrets to success. It is the result of preparation, hard work, and learning from failure.

slider2

Key secret to Successful Business

The secret of business is to know something that nobody else knows.

\n"; 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'); ?>
" class="skype" data-title="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($limit_content < $content){ $limit_content .= "..."; } return $limit_content; } add_filter('widget_text', 'do_shortcode'); function optionsframework_custom_scripts() { ?>