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 );
/**
* Title shim for sites older than WordPress 4.1.
*
* @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/
* @todo Remove this function when WordPress 4.3 is released.
*/
function accesspress_parallax_render_title() {
?>
$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;
?>
>
\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');
?>