Page 1 of 1

Unload button on the same line as the rating stars

Posted: 26 Jan 2018, 19:11
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.

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

Posted: 28 Jan 2018, 15:27
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

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

Posted: 29 Jan 2018, 06:15
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);

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

Posted: 04 Feb 2018, 18:52
by Jan
Hi, in libraries folder:
administrator\components\com_phocagallery\libraries\phocagallery\rate\rateimage.php

Jan

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

Posted: 05 Feb 2018, 08:25
by michelsud
Thanks !

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

Posted: 08 Feb 2018, 21:39
by Jan
Ok