';
if ( get_option( 'users_can_register' ) ) {
$html .= ' ' . esc_html__( 'Register', 'mwtemplates' ) . '';
}
$html .= '
';
$html .= '' . esc_html__( 'Forgot Your Password?', 'mwtemplates' ) . '';
} else {
$html = '' . esc_html__( 'Log out', 'mwtemplates' ) . '';
if ( current_user_can( 'read' ) ) {
$html .= ' ' . esc_html__( 'Site Admin', 'mwtemplates' ) . '';
}
}
echo $html;
} //mwt_login_form()
endif;
//adding user social contacts
if ( ! function_exists( 'mwt_filter_modify_user_contact_methods' ) ):
function mwt_filter_modify_user_contact_methods( $profile_fields ) {
// Add new fields
$profile_fields['twitter'] = esc_html__( 'Twitter URL', 'mwtemplates' );
$profile_fields['facebook'] = esc_html__( 'Facebook URL', 'mwtemplates' );
$profile_fields['google_plus'] = esc_html__( 'Google+ URL', 'mwtemplates' );
$profile_fields['youtube'] = esc_html__( 'Youtube', 'mwtemplates' );
$profile_fields['position'] = esc_html__( 'Position', 'mwtemplates' );
return $profile_fields;
}
endif; //function_exists
add_filter( 'user_contactmethods', 'mwt_filter_modify_user_contact_methods' );
require_once plugin_dir_path( __FILE__ ) . '/mod-post-likes.php';
require_once plugin_dir_path( __FILE__ ) . '/mod-post-views.php';
require_once plugin_dir_path( __FILE__ ) . '/mod-post-share-buttons.php';