Unload button on the same line as the rating stars
Posted: 26 Jan 2018, 19:11
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 :
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.
Can you explain me how i can remove the line 06 ?
Tanks a lot.
Michel.
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
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);
Tanks a lot.
Michel.