test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • bramv101 Friend
    #190948

    hi,

    how do i change the text under mobile (see image)?

    i tried to locate in this, but no succes
    /www/components/com_contact/views/contact/tmpl/default_form.php


    1. question
    Ninja Lead Moderator
    #507255

    You can find it here

    + Php code

    Open templates/ja_beranis/html/com_contact/contact/default_address.php file


    <?php if ($this->contact->mobile && $this->params->get('show_mobile')) :?>
    <div class="contact-address ">
    <div class="<?php echo $this->params->get('marker_class'); ?>" >
    <?php echo $this->params->get('marker_mobile'); ?>
    <span class="jicons-desc"><?php echo JText::_('TPL_CONTACT_MOBILE_DESC') ?></span>
    </div>
    <div class="contact-mobile">
    <i class="icon-phone"> </i>
    <?php echo nl2br($this->contact->mobile); ?>
    </div>
    </div>
    <?php endif; ?>

    + JText language

    Open language/en-GB/en-GB.tpl_ja_beranis.ini file

    TPL_CONTACT_MOBILE_DESC ="Buy Online or call"

    Let me know if it helps

    woluweb Friend
    #518526

    If I may add something : after having changed as mentioned above templates/ja_beranis/html/com_contact/contact/default_address.php and language/en-GB/en-GB.tpl_ja_beranis.ini, take some time to integrate the following corrections to default_adress.php

    Indeed the default_adress.php file contains some errors in the icons. So here some corrections for some fields (sorry, the other fields I did not need, so I did not make a global check of the file. But adapt the same way I show here) :

    Code was (excerpt) :

    <?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
    <div class="contact-address span4">
    <div class="<?php echo $this->params->get('marker_class'); ?>" >
    <?php echo $this->params->get('marker_telephone'); ?>
    <span class="jicons-desc"><?php echo JText::_('TPL_CONTACT_TEL_DESC') ?></span>
    </div>
    <div class="contact-telephone">
    <i class="icon-print"> </i>
    <?php echo nl2br($this->contact->telephone); ?>
    </div>
    </div>
    <?php endif; ?>
    <?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
    <div class="contact-address span4">
    <div class="<?php echo $this->params->get('marker_class'); ?>" >
    <i class="icon-mobile-phone"> </i>
    <?php echo $this->params->get('marker_fax'); ?>
    <span class="jicons-desc"><?php echo JText::_('TPL_CONTACT_FAX_DESC') ?></span>
    </div>
    <div class="contact-fax">
    <i class="icon-phone"> </i>
    <?php echo nl2br($this->contact->fax); ?>
    </div>
    </div>
    <?php endif; ?>

    and this code should have been

    <?php if ($this->contact->telephone && $this->params->get('show_telephone')) : ?>
    <div class="contact-address span4">
    <div class="<?php echo $this->params->get('marker_class'); ?>" >
    <?php echo $this->params->get('marker_telephone'); ?>
    <span class="jicons-desc"><?php echo JText::_('TPL_CONTACT_TEL_DESC') ?></span>
    </div>
    <div class="contact-telephone">
    <i class="icon-phone"> </i>
    <?php echo nl2br($this->contact->telephone); ?>
    </div>
    </div>
    <?php endif; ?>
    <?php if ($this->contact->fax && $this->params->get('show_fax')) : ?>
    <div class="contact-address span4">
    <div class="<?php echo $this->params->get('marker_class'); ?>" >
    <?php echo $this->params->get('marker_fax'); ?>
    <span class="jicons-desc"><?php echo JText::_('TPL_CONTACT_FAX_DESC') ?></span>
    </div>
    <div class="contact-fax">
    <i class="icon-print"> </i>
    <?php echo nl2br($this->contact->fax); ?>
    </div>
    </div>
    <?php endif; ?>

    woluweb Friend
    #530499

    mmmh, still not corrected in the latest version of the template.
    Could you please Joomlart take 5 minutes to correct the source files ?
    (different icons templates/ja_beranis/html/com_contact/contact/default_address.php are *not* correct, like phone for fax, fax for phone etc !)

    txs

    Marc

    Saguaros Moderator
    #530750

    Hi Marc,

    We use these icons for demo only, you can change to another icons as you wish. Here is the icon list: http://fortawesome.github.io/Font-Awesome/3.2.1/icons/

    Best,

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 4 voices, and was last updated by  Saguaros 10 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum