Unload button on the same line as the rating stars

Phoca Gallery - image gallery extension
michelsud
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Jan 2018, 18:08

Unload button on the same line as the rating stars

Post by michelsud »

Bonjour,
I would like to modify the layout of the thumbnail wall (of a category).
Currently, for each thumbnail, the unload button is placed after the rating stars.
I would like the unload button ** on the same line ** as the rating stars.

For each thumbnail, the html code is generate like this :

Code: Select all

01   <div class="pg-cv-box item pg-grid-sizer" style="position: absolute; left: 254px; top: 0px;">
02    <div class="pg-cv-box-img pg-box1">...</div>
03     <div class="pg-box-img-bottom">
04        <div class="pg-cv-name">image_name</div>

05           <div id="pg-cv-vote-img44">...</div>   ..........  rating stars
06           <div style="clear:both;"></div>        ..........  I want to remove this line

07           <div class="pg-icon-detail">...</div>   ..........  download button
To have the unload button ** on the same line ** as the rating star, the line 06 must be remove.

The file \components\com_phocagallery\views\category\tmpl\default_images.php, line 443, generate the lines 05 and 06 of the html code.

Code: Select all

437     // Rate Image
438     
439     if($cv->item_type == 'image') {
440     
441       if ($this->tmpl['display_rating_img'] == 2) {
442     
443         echo PhocaGalleryRateImage::renderRateImg($cv->id, $this->tmpl['display_rating_img'], 1);
Can you explain me how i can remove the line 06 ?
Tanks a lot.
Michel.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unload button on the same line as the rating stars

Post by Jan »

Hi, not sure what you exactly mean? If you want to remove the line, just remove it in the code or overwrite the component output in your template with own output code.

Just follow the function to find the code where the code is displayed :idea:

Jan
If you find Phoca extensions useful, please support the project
michelsud
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Jan 2018, 18:08

Re: Unload button on the same line as the rating stars

Post by michelsud »

Hi,
Thank you for your reply.
Can you explain me where can i find the function renderRateImg(...) ?
Rectification : the following function is call at line 222 of default_images.php (\components\com_phocagallery\views\category\tmpl\)
Thanks.

Code: Select all

echo PhocaGalleryRateImage::renderRateImg($cv->id, $this->tmpl['display_rating_img'], 1);
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unload button on the same line as the rating stars

Post by Jan »

Hi, in libraries folder:
administrator\components\com_phocagallery\libraries\phocagallery\rate\rateimage.php

Jan
If you find Phoca extensions useful, please support the project
michelsud
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 26 Jan 2018, 18:08

Re: Unload button on the same line as the rating stars

Post by michelsud »

Thanks !
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Unload button on the same line as the rating stars

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply