Page 1 of 1
Add a text before the "Up" icon & change this icon
Posted: 28 Jun 2017, 00:24
by poudou99
Hi.
I would like to add a text before the "Up" icon (which allows to return back to the upper category) like : "click here to return to previous category"
In which Php file can I make this change ?
And also how can increase the size or change the icon "/media/com_phocadownload/images/up.png" in order to change its aspect ?
Thanks
Re: Add a text before the "Up" icon & change this icon
Posted: 29 Jun 2017, 15:49
by poudou99
Finally I have found a workaround:
1/ I have drawn a new up.png icon (with text next to a small image) with a size 64x64
(location of the icon is ./media/com_phocadownload/images/up.pgn)
2/ I have customized the CSS classes : pdtop and pd-ctitle in order to manage the position, the position and the style of the icon.
(location of the original CSS file is ./media/com_phocadownload/css/main/phocadownload.css)
(location of the customizes CSS file is : ./media/com_phocadownload/css/custom/default.css)
Certainly not the best solution.
Re: Add a text before the "Up" icon & change this icon
Posted: 29 Jun 2017, 17:42
by Jan
Hi, the code for up icon and link you can find here:
components\com_phocadownload\views\category\tmpl\default.php
Code: Select all
echo '<div class="pdtop">'
.'<a title="'.$linkUpText.'" href="'. $linkUp.'" >'
.JHTML::_('image', $this->t['mediapath']->media_img_rel . 'up.png', JText::_('COM_PHOCADOWNLOAD_UP'))
.'</a></div>';
Re: Add a text before the "Up" icon & change this icon
Posted: 30 Jun 2017, 19:59
by poudou99
Thank you Jan
I will try to adapt it to my needs
Brgds
Re: Add a text before the "Up" icon & change this icon
Posted: 03 Jul 2017, 14:53
by Jan
Ok