- Posts: 17
- Thank you received: 2
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<!-- ------------- me ---------------------- -->
<?php if (iCDate::isDate($item->startdate) && $item->weekdays) : ?>
<?php if ($item->weekdays == 4 ) : ?>
<!-- Startdate-Weekday-->
<span class="ic-sa-so-day">
<?php echo JHtml::date($item->startdate, 'D', null); ?>
</span>
<?php else : ?>
<span class="ic-week-day">
<?php echo JHtml::date($item->startdate, 'D', null); ?>
</span>
<?php endif; ?>
<!-- Startdate-Rest-->
<span class="ic-period-startdate">
<?php echo JHtml::date($item->startdate, 'j. M Y', null); ?>
</span> -
<span class="ic-period-enddate">
<?php echo JHtml::date($item->enddate, 'D j. M Y', null); ?>
</span>
<?php elseif ($dateday) : ?>
<span class="ic-period-startdate">
<?php echo JHtml::date($dateday, 'D j. M Y G:i', null); ?>
</span>
<?php else : ?>
<span class="ic-period-startdate">
<?php echo JHtml::date($item->next, 'D j. M Y G:i', null); ?>
</span>
<?php endif; ?>
<!-- ---------------------- End me ------------------------ -->
<?php // Location (different display, depending on the fields filled) ?>
<?php if ($item->weekdays == 0 || $item->weekdays == 6) : ?>
<?php if ($item->weekdays == 1 ) : ?>
<?php if ($item->weekdays == 2 ) : ?>
<p><?php echo $item->weekdays; ?> </p>
Please Log in or Create an account to join the conversation.
<?php // Next Date ('next' 'today' or 'last date' if no next date) ?>
<!-- ------------- ich ---------------------- -->
<?php if (iCDate::isDate($item->startdate) && $item->weekdays) : ?>
<?php if (JHtml::date($item->startdate, 'w', null) == 0) : ?>
<!-- Startdate-Sunday -->
<span class="ic-week-day so">
<?php echo JHtml::date($item->startdate, 'D', null); ?>
</span>
<!-- Startdate-Saturday -->
<?php elseif (JHtml::date($item->startdate, 'w', null) == 6) :?>
<span class="ic-week-day sa">
<?php echo JHtml::date($item->startdate, 'D', null); ?>
</span>
<!-- Startdate-Wochentag -->
<?php else : ?>
<span class="ic-week-day weekd">
<?php echo JHtml::date($item->startdate, 'D', null); ?>
</span>
<?php endif; ?>
<!-- Startdate-Rest-->
<span class="ic-period-startdate">
<?php echo JHtml::date($item->startdate, 'j. M Y', null); ?>
</span> -
<?php if (JHtml::date($item->enddate, 'w', null) == 0) : ?>
<!-- Enddate-Sunday -->
<span class="ic-week-day so">
<?php echo JHtml::date($item->enddate, 'D', null); ?>
</span>
<!-- Enddate-Saturday -->
<?php elseif (JHtml::date($item->enddate, 'w', null) == 6) :?>
<span class="ic-week-day sa">
<?php echo JHtml::date($item->enddate, 'D', null); ?>
</span>
<!-- Enddate-Wochentag -->
<?php else : ?>
<span class="ic-week-day weekd">
<?php echo JHtml::date($item->enddate, 'D', null); ?>
</span>
<?php endif; ?>
<!-- Startdate-Rest-->
<span class="ic-period-enddate">
<?php echo JHtml::date($item->enddate, 'j. M Y', null); ?>
</span>
<?php elseif ($dateday) : ?>
<?php if (JHtml::date($item->dateday, 'w', null) == 0) : ?>
<!-- Dateday-Sunday -->
<span class="ic-week-day so">
<?php echo JHtml::date($item->dateday, 'D', null); ?>
</span>
<!-- Dateday-Saturday -->
<?php elseif (JHtml::date($item->dateday, 'w', null) == 6) :?>
<span class="ic-week-day sa">
<?php echo JHtml::date($item->dateday, 'D', null); ?>
</span>
<!-- Dateday-Wochentag -->
<?php else : ?>
<span class="ic-week-day weekd">
<?php echo JHtml::date($item->dateday, 'D', null); ?>
</span>
<?php endif; ?>
<!-- Enddate-Rest-->
<span class="ic-period-startdate">
<?php echo JHtml::date($dateday, 'j. M Y G:i', null); ?>
</span>
<?php else : ?>
<?php if (JHtml::date($item->next, 'w', null) == 0) : ?>
<!-- Nextday-Sunday -->
<span class="ic-week-day so">
<?php echo JHtml::date($item->next, 'D', null); ?>
</span>
<!-- Nextday-Saturday -->
<?php elseif (JHtml::date($item->next, 'w', null) == 6) :?>
<span class="ic-week-day sa">
<?php echo JHtml::date($item->next, 'D', null); ?>
</span>
<!-- Nextday-Wochentag -->
<?php else : ?>
<span class="ic-week-day weekd">
<?php echo JHtml::date($item->next, 'D', null); ?>
</span>
<?php endif; ?>
<!-- Enddate-Rest-->
<span class="ic-period-startdate">
<?php echo JHtml::date($item->next, 'j. M Y G:i', null); ?>
</span>
<?php endif; ?>
<!-- ---------------------- Ende ich ------------------------ -->
<?php // Location (different display, depending on the fields filled) ?>
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Just 1 question :
- Where do you use from the variable $item->dateday and $dateday ? (i don't thing those variables are defined in list of events by iCagenda?...)
replace "$item->next" by "$EVENT_NEXT" ...
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.