esc_html__( 'Contact Form 7', 'blog99'),
'slug' => 'contact-form-7',
'required' => false,
),
);
/*
* Array of configuration settings. Amend each line as needed.
*/
$config = array(
'id' => 'blog99',
'default_path' => '',
'menu' => 'tgmpa-install-plugins',
'has_notices' => true,
'dismissable' => true,
'dismiss_msg' => '',
'is_automatic' => false,
'message' => '',
);
tgmpa( $plugins, $config );
}
add_action( 'tgmpa_register','blog99_register_required_plugins' );//Register
/**
* Blog99 Display the post format images,
*
* @package Blog99
* @since 1.0.0
*/
function blog99_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 == 'video' ){
$postformat_icons = 'fa fa-play';
}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( 'blog99_post_format_icon','blog99_postformat_icon' );//Register
/**
* Blog99
*
* @since 1.0.0
*/
function get_blog99_post_timedate(){
/**
* get the post date
*
*/
echo "";
the_time(get_option('date_format'));
echo "";
}
if ( ! function_exists( 'blog99_author_image_style' ) ) {
function blog99_author_image_style($avatar_url){
if( !$avatar_url) return;
?>