3, 'post__in' => get_option( 'sticky_posts' ), //'ignore_sticky_posts' => 1 ); /** * When you display links list of the Recent Posts , please delete comment out of add_action( ). * * * */ //position //add_action('raindrops_append_entry_content','raindrops_recent_posts' ); //config $raindrops_recent_posts_setting= array( 'title'=> esc_html__( 'Recent posts', 'Raindrops' ), 'numberposts'=> 5 //show count ); /** * When you display the category contain post list , please delete comment out of add_action( ). * * * * */ //position //add_action('raindrops_append_entry_content','raindrops_category_posts' ); //config $raindrops_category_posts_setting= array( 'title'=> esc_html__( 'Categories', 'Raindrops' ) , 'numberposts' => 5 , //show count 'category'=> 0 ,//category id 'orderby'=> 'post_date', 'order'=> 'DESC' ); /** * When you display the tagged entry list , please delete comment out of add_action( ). * * * * */ //position //add_action('raindrops_append_entry_content','raindrops_tag_posts' ); //config $raindrops_tag_posts_setting = array( 'title'=> esc_html__( 'Tags', 'Raindrops' ), 'numberposts'=> 5 , //show count 'tax_query'=> array( array( 'taxonomy'=>'post_tag', 'terms'=> array( 'post-formats' ) ,//tag slug 'field'=>'slug', 'operator'=>'IN' ), 'relation'=> 'AND' ) ); /** * Display or not Site title * * value y then show other hide. * * */ $raindrops_display_title = 'y'; /** * Display or not Site description * * value y then show other hide. * * */ $raindrops_display_description = 'y'; /** * Display or not Site header image * * value y then show other hide. * * */ $raindrops_display_header_image = 'y'; /** * Display or not horizontal navigation * * value y then show other hide. * * */ $raindrops_display_nav_menus = 'y'; /** * Display or not widget * * value y then show other hide. */ $raindrops_display_widget = 'y'; /** * Add your html , line:211 $custom_text_extra_sidebar * * value y then show other hide. * */ $raindrops_add_custom_text_extra_sidebar = ''; /** * Add your html , line:194 $custom_text_default_sidebar * * value y then show other hide. * */ $raindrops_add_custom_text_default_sidebar = ''; /** * When you not need left margin ( blank default sidebar width ). * * value y then show other hide. * */ $raindrops_remove_left_margin = ''; /** * When you not need right margin ( blank extra sidebar width ). * * value y then show other hide. * */ $raindrops_remove_right_margin = ''; /** * Display or not page title * value y then show other hide. * */ $raindrops_display_page_title = 'y'; $raindrops_display_page_content = 'y'; /** * custom_text_default_sidebar * * * */ $custom_text_default_sidebar = <<hello world SUBSTITUTION_CONTENT; /** * substitution extra sidebar content * */ $custom_text_extra_sidebar = <<hello world SUBSTITUTION_EXTRA_SIDEBAR; /** Do not Edit * Functions and filters * * * */ if ( 'y' !== $raindrops_display_title ) { add_filter( 'raindrops_site_title', '__return_null' ); } if ( 'y' !== $raindrops_display_description ) { add_filter( 'raindrops_site_description', '__return_null' ); add_filter( 'raindrops_header_image_elements' , 'raindrops_remove_header_text' ); } function raindrops_remove_header_text( $content ) { return preg_replace( '!]*>(.*)

!siu', '', $content ); } if ( 'y' !== $raindrops_display_header_image ) { add_filter( 'raindrops_header_image_elements', '__return_null' ); add_filter( 'raindrops_header_image_home_url', '__return_null' ); } if ( 'y' !== $raindrops_display_nav_menus ) { add_filter( 'raindrops_nav_menu_primary_html', '__return_null' ); } if ( 'y' !== $raindrops_display_page_content ) { add_filter( 'raindrops_entry_content', '__return_null' ); } add_filter( 'raindrops_posted_in', '__return_null' ); add_filter( 'raindrops_posted_on', '__return_null' ); /* if ( $raindrops_display_wp_link_pages !== 'y' ) { add_filter( 'wp_link_pages_args', 'raindrops_wp_link_pages_filter' ); } */ function raindrops_wp_link_pages_filter( $args ) { $args['echo'] = false; return $args; } if ( 'y' !== $raindrops_display_widget ) { add_filter( 'dynamic_sidebar', '__return_empty_array' ); add_filter( 'raindrops_sidebar_menus', '__return_null' ); } if ( 'y' == $raindrops_add_custom_text_default_sidebar ) { add_action( 'raindrops_prepend_default_sidebar', 'raindrops_prepend_default_sidebar_filter' ); } if ( 'y' == $raindrops_add_custom_text_extra_sidebar ) { add_action( 'raindrops_prepend_extra_sidebar', 'raindrops_prepend_default_sidebar_filter' ); } function raindrops_prepend_default_sidebar_filter( ) { global $custom_text_default_sidebar; echo $custom_text_default_sidebar; } function raindrops_prepend_extra_sidebar_filter( ) { global $custom_text_extra_sidebar; echo $custom_text_extra_sidebar; } if ( 'y' !== $raindrops_display_page_title ) { add_filter( 'raindrops_entry_title', '__return_null' ); } if ( 'y' !== $raindrops_remove_left_margin || 'y' == $raindrops_add_custom_text_default_sidebar ) { $raindrops_devide_column_class= 'yui-b'; } else { $raindrops_devide_column_class= ''; } if ( 'y' !== $raindrops_remove_left_margin || 'y' == $raindrops_add_custom_text_extra_sidebar ) { $raindrops_devide_column_extra_class= 'yui-u'; } else { $raindrops_devide_column_extra_class= ''; } /** Template * * * * */ get_header( $raindrops_document_type ); do_action( 'raindrops_pre_'.basename( __FILE__) ); raindrops_debug_navitation( __FILE__ ); ?>
'."\n".'
    '; dynamic_sidebar( 'sidebar-3' ); echo '
'."\n".'
'."\n".'
'; } ?>
>
    have_posts( ) ) { $the_query->the_post( ); $html = '
    '; printf( $html, get_the_ID( ), join( ' ', get_post_class( ) ) ); $html = '

    %3$s

    '; printf( $html, 'entry-title h2', get_permalink( ), the_title( '', '', false ) ); $html = '
    '; printf( $html, 'entry-content clearfix' ); $raindrops_excerpt_condition = raindrops_detect_excerpt_condition(); if ( $raindrops_excerpt_condition == true ) { the_excerpt( ); } else { the_content( esc_html__( 'Continue reading', 'Raindrops' ). ' ' ); } print( '
    ' ); } //end while wp_reset_postdata( ); ?>