print and email icons

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Mon Jul 20, 2015 9:01 pm
Reply with quote
Report this post
Hi

I need to place print and email icons in articles

Image


These are the icons

Image

Image

thanks!
User avatar
Platinum Boarder

GK User
Mon Jul 20, 2015 9:41 pm
Reply with quote
Report this post
Hi,
you have to edit : gk_shop_and_buy\html\com_content\article\default.php
find code where are text links, and replace with custom images-icons (job for max 4 min, for such a smart member as you are)
User avatar
Platinum Boarder

GK User
Tue Jul 21, 2015 2:06 pm
Reply with quote
Report this post
Hi, please

I found the code, I think this is, but not sure I should specifically set or where

Please remember that my site is languaje in Spanish


Code: Select all
<li class="itemPrintEmail">
            <?php if (!$this->print) : ?>
               <?php if ($params->get('show_print_icon')) : ?>
                  <?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.print_popup',  $this->item, $params)); ?>,
               <?php endif; ?>
      
               <?php if ($params->get('show_email_icon')) : ?>
                  <?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.email',  $this->item, $params)); ?>
               <?php endif; ?>
               
               <?php if ($canEdit) : ?>
                  , <?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.edit', $this->item, $params)); ?>
               <?php endif; ?>
            <?php else : ?>
               <?php echo preg_replace('@<img.*?alt="(.*?)".*?\/>@mis', '$1',JHtml::_('icon.print_screen',  $this->item, $params)); ?>
            <?php endif; ?>
         </li>
      </ul>
      <?php endif; ?>
   </header>





I imagine that images are in the folder "images" of the template


thanks!
User avatar
Platinum Boarder

GK User
Tue Jul 21, 2015 2:45 pm
Reply with quote
Report this post
Maybe icons are missing, check source code in your browser -> Use firebug or similar tool.
User avatar
Platinum Boarder

GK User
Tue Jul 21, 2015 2:54 pm
Reply with quote
Report this post
Hi,

no, he had not gone

this is the route

now I got

/template/gk_shop_and_buy/images/imprimir.png
/template/gk_shop_and_buy/images/email.png



please, which is the code that I should change?


thanks!
User avatar
Platinum Boarder

GK User
Sun Jul 26, 2015 8:01 pm
Reply with quote
Report this post
Sorry I'm not php developer to help you with this topic.
Besides you bought product as it was (on demo).
You can try to use code from default joomla templates (article view) maybe it will work better.
User avatar
Platinum Boarder

GK User
Mon Jul 27, 2015 3:31 pm
Reply with quote
Report this post
Hi




https://www.gavick.com/forums/140/print ... on#p165557


I have reviewed the forum and in several post helps to place more icons, including giving the php code and all

because I do not want to help me?

at least send me a forum where I can find the solution

I've been looking but I can not because I speak Spanish and not English


the template that I am dealing coding is also not the same as in other
User avatar
Platinum Boarder