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
Add a text before the "Up" icon & change this icon
-
- Phoca Newbie
- Posts: 6
- Joined: 23 Jun 2017, 22:42
-
- Phoca Newbie
- Posts: 6
- Joined: 23 Jun 2017, 22:42
Re: Add a text before the "Up" icon & change this icon
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.
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.
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Add a text before the "Up" icon & change this icon
Hi, the code for up icon and link you can find here:
components\com_phocadownload\views\category\tmpl\default.php
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>';
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 23 Jun 2017, 22:42
Re: Add a text before the "Up" icon & change this icon
Thank you Jan
I will try to adapt it to my needs
Brgds
I will try to adapt it to my needs
Brgds
- Jan
- Phoca Hero
- Posts: 48550
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Add a text before the "Up" icon & change this icon
Ok
If you find Phoca extensions useful, please support the project