By Stefano Virgilli on Wednesday, 11 September 2019
Posted in General Issues
Likes 0
Views 380
Votes 0
When displaying the Polls under a page, is there a way to show (among the info below) also the expiry day of each poll?
Currently that is not possible to display expired date but we will consider to add this expired date from the polls card preview in next version.
·
Wednesday, 11 September 2019 13:42
·
0 Likes
·
0 Votes
·
0 Comments
·
I actually managed to make it work by adding the following code at line 28 of this file:

.../components/com_easysocial/themes/wireframe/polls/default/items.php


<div class="es-card__meta">
<i class="fa fa-clock"></i> 
<?php echo JText::sprintf('COM_EASYSOCIAL_POLLS_WILL_EXPIRE', $poll->getExpiryDate()->format(JText::_('DATE_FORMAT_LC1'))); ?>
</div>


Right after:


<div class="es-card__meta">
<?php echo JText::sprintf('COM_EASYSOCIAL_POLLS_CREATED_BY', $this->html('html.' . $poll->getAuthor()->getType(), $poll->getAuthor()));?>
</div>
·
Wednesday, 11 September 2019 23:35
·
0 Likes
·
0 Votes
·
0 Comments
·
I also added a cute clock by adding:

<i class="fa fa-clock"></i> 


After:

<?php if ($poll->hasExpirationDate() && !$expired) { ?>
<div class="t-fs--sm">


on the file:
.../components/com_easysocial/themes/wireframe/polls/item/default.php
·
Wednesday, 11 September 2019 23:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for getting back to us you found the solution to show expired date into polls listing page on your site.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding.
·
Thursday, 12 September 2019 10:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post