(a) In the Article Manager parameters or in other places such a Article Layout, you can specify whether you want to show the PDF, Print and E-mail as Icons or text. The parameters that control this are
Icons Hide Show
PDF Icon Hide Show
Print Icon Hide Show
E-mail Icon Hide Show
The decision to use Icons or Text is based on whether the parameter
Icons is Show or Hide. After this, if PDF icon/text is shown or not is based on the Show or Hide selection for
PDF Icon. This is applicable for Print as well as E-mail. I know it is confusing purely based on the text icon(s). I encourage to try different settings and review the HTML code generated.
(b) As I mentioned earlier, in the file default.php the section that is of interest to you is
Code:
<?php if (!$this->print) : ?>
<?php if ($this->params->get('show_pdf_icon')) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ( $this->params->get( 'show_print_icon' )) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_email_icon')) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.email', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ($canEdit) : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php else : ?>
<td align="right" width="100%" class="buttonheading">
<?php echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
Probably what is more interesting to you would be the class of each of these items. In case if you are really interested in knowing the code for icons, review the file icon.php located in the directory \components\com_content\helpers. As indicated in the previous point (a), whether to display text or icon is controlled by the parameters mentioned. You should really concentrate on writing appropriate css for the class(es).
(c) Other files that you may have to change or override are
\components\com_content\views\category\tmpl\blog_item.php
\components\com_content\views\frontpage\tmpl\blog_item.php
\components\com_content\views\section\default_item.php
_________________
- Ilagnayeru (MIG) Manickamhttp://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.Support the poor and underprivileged