Replacing Print and E-mail in Tools with 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 Aug 26, 2013 9:50 pm
Reply with quote
Report this post
I want to replace the print and e-mail links with icons for K2. Any help?

http://demo.gavick.com/joomla25/rockwal ... k2/k2-item
User avatar
Expert Boarder

GK User
Mon Aug 26, 2013 10:59 pm
Reply with quote
Report this post
Hi,
sure this should be easy if you know a CSS or HTML a little bit.

Try this, Add images (icons) to this file:
gk_rockwall\html\com_k2\templates\default\item.php

inside <li> code here (line 61-64):

Code: Select all
   <li class="itemPrint"> <a rel="nofollow" href="<?php echo $this->item->printLink; ?>" onclick="window.open(this.href,'printWindow','width=900,height=600,location=no,menubar=no,resizable=yes,scrollbars=yes'); return false;"> <?php echo JText::_('K2_PRINT'); ?> </a> </li>
               <?php endif; ?>
               <?php if($params->get('itemEmailButton') && !JRequest::getInt('print')): ?>
               <li class="itemEmail"> <a rel="nofollow" href="<?php echo $this->item->emailLink; ?>" onclick="window.open(this.href,'emailWindow','width=400,height=350,location=no,menubar=no,resizable=no,scrollbars=no'); return false;"> <?php echo JText::_('K2_EMAIL'); ?> </a> </li>



instead
Code: Select all
<?php echo JText::_('K2_PRINT'); ?>

use
Code: Select all
<img src="http://mypage.com/images/print.png" alt="print">


this same with
Code: Select all
<?php echo JText::_('K2_EMAIL'); ?>


As you see easy.
User avatar
Platinum Boarder

GK User
Mon Aug 26, 2013 11:01 pm
Reply with quote
Report this post
p.s.
https://www.iconfinder.com/search/?q=print
https://www.iconfinder.com/search/?q=email

Of course this is first concept, there is few other ways to add icons.
User avatar
Platinum Boarder


cron