%s

', esc_html( $title ) ); } // Other. } else { sprintf( '
' ); the_archive_title( '

', '

' ); the_archive_description(); sprintf( '' ); } } } add_action( 'buzznews_archive_header', 'buzznews_archive_page_info' ); } /** * BuzzNews Plugin required * * * @package BuzzNews * @since 1.0.0 */ function buzznews_register_required_plugins() { /* * The list of Plugin Requird List */ $plugins = array( array( 'name' => esc_attr__( 'Contact Form 7', 'buzznews'), 'slug' => 'contact-form-7', 'required' => false, ), array( 'name' => esc_attr__( 'One Click Demo Import', 'buzznews'), 'slug' => 'one-click-demo-import', 'required' => false, ), ); /* * Array of configuration settings. Amend each line as needed. */ $config = array( 'id' => 'buzznews', 'default_path' => '', 'menu' => 'tgmpa-install-plugins', 'has_notices' => true, 'dismissable' => true, 'dismiss_msg' => '', 'is_automatic' => false, 'message' => '', ); tgmpa( $plugins, $config ); } add_action( 'tgmpa_register','buzznews_register_required_plugins' );//Register /** * BuzzNews Display the post format images, * * @package BuzzNews * @since 1.0.0 */ function buzznews_postformat_icon() { /** *get the posformat icons *@since 1.0.0 */ $postformat = get_post_format(); //select the icon for post format if( $postformat == 'gallery' ){ $postformat_icons = 'fa fa-image'; }elseif( $postformat == 'image' ){ $postformat_icons = 'fa fa-image'; }elseif( $postformat == 'link' ){ $postformat_icons = 'fa fa-link'; }elseif( $postformat == 'quote' ){ $postformat_icons = 'fa fa-quote-right'; }elseif( $postformat == 'fa fa-video' ){ $postformat_icons = 'fa fa-video'; }elseif( $postformat == 'audio' ){ $postformat_icons = 'fa fa-volume-up'; }elseif( $postformat == 'status' ){ $postformat_icons = 'fa fa-pencil'; }elseif( $postformat == 'aside' ){ $postformat_icons = 'fa fa-plus'; }else{ $postformat_icons = ''; } if( $postformat_icons != '' ){ echo wp_kses_post( '
'); } } add_action( 'buzznews_post_format_icon','buzznews_postformat_icon' );//Register /** * BuzzNews Display the post format images, * * @package BuzzNews * @since 1.0.0 */ function buzznews_homepage_custom_widget() { /** *get the custom sidebar *@since 1.0.0 */ //main slider buzznews_main_slider(); buzznews_home_category_postlist(); buzznews_homepage_featured(); /** * Custom widget options * @since Buzznews 1.0.0 * */ buzznews_before_mainsec(); // Sidebar echo sprintf( '
' ); dynamic_sidebar( 'buzznews-homepage-widget' ); echo sprintf( '
' ); // Sticky Sidebar echo sprintf( '