Committer: gprochaev
LJSUP-6893. example of the phone must be only fo RU IP and US IPU trunk/htdocs/manage/profile/index.bml
Modified: trunk/htdocs/manage/profile/index.bml =================================================================== --- trunk/htdocs/manage/profile/index.bml 2010-09-28 11:06:02 UTC (rev 17460) +++ trunk/htdocs/manage/profile/index.bml 2010-09-29 03:34:50 UTC (rev 17461) @@ -536,7 +536,10 @@ } $ret .= "<tr><td class='field_name'>$ML{'.fn.txtnum'}</td><td>"; $ret .= '<ul class="b-manage-smsn b-manage-smsn-hide">'; - $ret .= '<li class="b-manage-smsn-sms">' . LJ::html_text({ 'name' => 'txtmsg_number', 'value' => $tminfo->{'number'}, 'size' => '15', 'maxlength' => '15' }) . '<br /><span class="helper">' . $ML{'.section.textmsg.example'} . '</span></li>'; + $ret .= '<li class="b-manage-smsn-sms">' . LJ::html_text({ 'name' => 'txtmsg_number', 'value' => $tminfo->{'number'}, 'size' => '15', 'maxlength' => '15' }); + my (undef, $country) = LJ::GeoLocation->ip_class; + $ret .= '<br /><span class="helper">' . $ML{'.section.textmsg.example_us'} . '</span></li>' if $country eq 'US'; + $ret .= '<br /><span class="helper">' . $ML{'.section.textmsg.example_ru'} . '</span></li>' if $country eq 'RU'; $ret .= '<li class="b-manage-smsn-status"><i class="i-manage-smsn-icon"></i><span class="i-bubble b-bubble-lite"><i class="i-bubble-arrow-border"></i><i class="i-bubble-arrow"></i><span>' . $ML{'.section.textmsg.info'} . '</span></span> ' . LJ::help_icon('sms_notification') . '</li>'; $ret .= "<li class='b-manage-smsn-btn'><input type='button' name='sendsms' value='$ML{'.section.textmsg.button'}' disabled='disabled' /></li>"; $ret .= '</ul>';