function resman_livedocx_fonts_box() { $username = get_option('resman_livedocx_username'); $password = get_option('resman_livedocx_password'); $ldx = new SoapClient(LIVEDOCX_URL, array('user_agent' => 'Wordpress-Resume-Manager/' . RESMAN_VERSION . ' http://pento.net/projects/wordpress-resume-mananger-plugin/')); $ldx->LogIn(array('username' => $username, 'password' => $password)); $result = $ldx->GetFontNames(); ?> <p> <ul> <?php foreach ($result->GetFontNamesResult->string as $format) { if (strpos($format, '@') === 0) { continue; } ?> <li><span style="font-family:<?php echo $format; ?> "><?php echo $format; ?> </span> (<?php echo $format; ?> )</li> <?php } ?> </ul> </p> <?php $ldx->LogOut(); unset($ldx); }