WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Connections] (2 posts)

  1. KeaN81
    Member
    Posted 1 year ago #

    Hello
    I have installed and using Connections just fine but i need to change the output names og "Cellphone" and "workphone" "personal email" etc.
    i found some code in another topic and the topic auther confirmed it was working so i guess its just me ;-) need to know exactly which file i need to change or paste this into to get it to Work. link to previous topic is coming here after and also the code that should be working.... hoep some one can help me :)

    Topic

    if ($entry->getPhoneNumbers())
    {
    echo '<div class="phone-number-block" style="margin-bottom: 10px;">' . "\n";
    foreach ($entry->getPhoneNumbers() as $phone)
    {

    switch ($phone->type)
    {
    case 'homephone':
    $phone->name = "Phone";
    break;
    case 'homefax':
    $phone->name = "Fax";
    break;
    case 'cellphone':
    $phone->name = "Cell Phone";
    break;
    case 'workphone':
    $phone->name = "Phone";
    break;
    case 'workfax':
    $phone->name = "Fax";
    break;
    case 'fax':
    $phone->name = "Fax";
    break;
    }

    //Type for hCard compatibility. Hidden.
    if ($phone->number != null) echo '' . $phone->name . ': <span class="tel">' . $entry->gethCardTelType($phone->type) . '<span class="value">' . $phone->number . '</span></span>
    ' . "\n";
    }
    echo '</div>' . "\n";
    }

  2. KeaN81
    Member
    Posted 1 year ago #

    *bump* no one? :)

Topic Closed

This topic has been closed to new replies.

About this Topic