function nebula_sms_link($phone, $message = '') { $override = apply_filters('pre_nebula_sms_link', false, $phone, $message); if ($override !== false) { return $override; } if (nebula_is_mobile()) { $sep = nebula_is_os('ios') ? '?' : ';'; //@TODO "Nebula" 0: Encode $message string here...? return '<a class="nebula-sms-link" href="sms:' . nebula_phone_format($phone, 'tel') . $sep . 'body=' . $message . '">' . nebula_phone_format($phone, 'human') . '</a>'; } else { return nebula_phone_format($phone, 'human'); } }
echo nebula_is_os('windows') ? 'is' : 'is not'; ?> </strong> Windows, it <strong><?php echo nebula_is_os('mac') ? 'is' : 'is not'; ?> </strong> Mac, it <strong><?php echo nebula_is_os('ios') ? 'is' : 'is not'; ?> </strong> iOS, and it <strong><?php echo nebula_is_os('android') ? 'is' : 'is not'; ?> </strong> Android. For example, this <strong><?php echo nebula_is_os('mac', '10.10') ? 'is' : 'is not'; ?> </strong> Mac 10.10 (Yosemite), and it <strong><?php echo nebula_is_os('mac') ? 'is' : 'is not'; ?> </strong> Macintosh.</p> <p>You are using <strong><?php echo nebula_get_browser('full'); ?> </strong> which uses the <strong><?php echo nebula_get_browser('engine'); ?> </strong> rendering engine. For example, this <strong><?php echo nebula_is_browser('ie', 10) ? 'is' : 'is not'; ?> </strong> Internet Explorer 10, and it <strong><?php echo nebula_is_browser('ie') ? 'is' : 'is not'; ?>
function nebula_sms_link($phone, $message = '') { if (nebula_is_mobile()) { $sep = nebula_is_os('ios') ? '?' : ';'; //@TODO "Nebula" 0: Encode $message string here...? return '<a class="nebula-sms-link" href="sms:' . nebula_phone_format($phone, 'tel') . $sep . 'body=' . $message . '">' . nebula_phone_format($phone, 'human') . '</a>'; } else { return nebula_phone_format($phone, 'human'); } }