'; } } add_action( 'wp_head', 'santamas_pingback_header' ); function santamas_dynamic_styles() { $banner_image = get_theme_mod( 'santamas_banner_image', get_template_directory_uri() . '/images/city.jpg' ); $banner_overlay_color = get_theme_mod( 'santamas_banner_overlay_color', 'rgba( 0, 0, 0, 0.1)' ); $banner_caption_color = get_theme_mod( 'santamas_banner_caption_color', '#FFFFFF' ); $custom_css = " .banner-section{ background-image: url({$banner_image}); }"; $custom_css .= " .banner-section:before{ background: {$banner_overlay_color}; }"; $custom_css .= " .banner-caption h2, .banner-caption p{ color: {$banner_caption_color}; }"; if( !is_page_template('template-home.php') ){ $banner_image = get_header_image(); $custom_css = " .header-banner{ background-image: url({$banner_image}); }"; } wp_add_inline_style( 'santamas-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'santamas_dynamic_styles' ); add_action( 'santamas_home_section', 'santamas_home_banner' ); add_action( 'santamas_home_section', 'santamas_about_section' ); add_action( 'santamas_home_section', 'santamas_event_countdown' ); add_action( 'santamas_home_section', 'santamas_featured_section' ); add_action( 'santamas_home_section', 'santamas_blog_section' ); add_action( 'santamas_home_section', 'santamas_gallery_section' ); function santamas_home_banner(){ ?>
$about_page_id ); $query = new WP_Query($args); if( $query->have_posts() ){ while( $query->have_posts() ){ $query->the_post(); if( has_post_thumbnail() ){ $image = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' ); echo '
'; echo ''. esc_attr( get_the_title() ) .''; echo '
'; } ?>

2, 'category__not_in' => $santamas_blog_cat_exclude ); $query = new WP_Query($args); if($query -> have_posts()): ?>
have_posts()) : $query -> the_post(); $santamas_image = wp_get_attachment_image_src(get_post_thumbnail_id() , 'santamas-blog-thumb'); if(has_post_thumbnail()){ $image_url = $santamas_image[0]; }else{ $image_url = get_template_directory_uri() . '/images/placeholder.png'; } ?>
<?php esc_attr( get_the_title()); ?>

4, 'category__not_in' => $santamas_blog_cat_exclude, 'offset' => 2 ); $query = new WP_Query($args); while($query -> have_posts()) : $query -> the_post(); $santamas_image = wp_get_attachment_image_src(get_post_thumbnail_id() , 'thumbnail'); if(has_post_thumbnail()){ $image_url = $santamas_image[0]; }else{ $image_url = get_template_directory_uri() . '/images/placeholder-thumb.png'; } ?>
<?php esc_attr( get_the_title() ); ?>
'; } if($twitter){ echo ''; } if($google_plus){ echo ''; } if($pinterest){ echo ''; } if($youtube){ echo ''; } if($linkedin){ echo ''; } }