Advertisement:

Author Topic: GUM-Theme: Reveal Button for Phone  (Read 361 times)

Buggyboy

  • Newbie
  • *
  • Posts: 47
  • Kommt noch...
GUM-Theme: Reveal Button for Phone
« on: October 05, 2018, 06:23:54 pm »
Hello.
If an article clicks on the button for the telephone number, this number is also displayed as an unregistered user.

What do I have to do, the number is only displayed when the user is logged in?

Thank you...
Peter

Buggyboy

  • Newbie
  • *
  • Posts: 47
  • Kommt noch...
Re: GUM-Theme: Reveal Button for Phone
« Reply #1 on: October 21, 2018, 05:09:48 pm »
Hello!
How can I insert a code here so that only registered users can see the phone number?
For all others, a reference to the registration should come.
Code: [Select]
<?php if(osc_user_phone()!='') : ?>
                                    <i class="fa fa-phone-square"></i> <span class="phone phone_hide"><?php echo osc_user_phone(); ?></span>

                                    <span class="pull-right"><a class="btn btn-default btn-arrow-left" onclick="reveal_phone($(this));" href="#"><?php _e('Reveal''gum'); ?></a></span>
                                <?php endif; ?>
ThanksPeter