Sorry wrong chapter, herewith the PHP instructions...
1.5 Adding Login Link Using a PHP Code
Add the following PHP function within your template files:
<?php
add_modal_login_link();
?>
Display login form:
<?php
add_modal_login_link($login_text
=
'Login',
$logout_text
=
'Logout',
$show_admin
=
true);
?>
$login_text | String | The text for the login link, defaults to 'Login'.
$logout_text | String | The text for the logout link, default 'Logout'.
$show_admin | Bool | The setting to display the link to admin area when
logged in, default is set to 'false'.
Display register form:
<?php
add_modal_login_link($form
=
'register'
$register_text
=
'Register',
$logged_in_text
= 'You are already logged in'); ?>
$register_text | String | The text for the register link, defaults to 'Register'.
$logged_in_text | String | The text for already logged in user, defaults to
'You are already registered and logged in'.
$form | String | register | The modal will open directly to register
form.