Friday, 20 December 2019
  1 Replies
  564 Visits
0
Votes
Undo
Hello, do you know how to make the month calender show in a vertical column instead of a 100% row? I searched the internet but couldn't find a solution. Top down (6 columns, 1 for each month) instead of horizontal. Would it be sufficient to change the table from 7 columns to 1 column and 31 rows?

I think ithe code to change has to be in this code snippet, but I don't know what to change:

<table class="jev_row" cellspacing="0" cellpadding="0">
<?php
$week = 0;
foreach ($extradata as & $data)
{
$dn = 0;
$dn2 = 0;
$dn3 = 0;
?>
<tr>
<td class="jevdaydata">
<div class="jevdaydata">
<?php
$dn2 = $dn;
for ($d = 0; $d < 7 && $dn < $datacount; $d++)
{
unset($currentDay);
$currentDay = $data["days"][$dn];
$cellclass = $currentDay["today"] ? 'jev_daynum_today jev_daynum' : 'jev_daynum_noevents jev_daynum';
$cellclass.= $d == 6 ? ' jev_lastdaynum' : '';
?>
<div <?php echo 'class="' . $cellclass . '"'; ?> >
<?php $this->_datecellAddEvent($currentDay["week_year"], $currentDay["week_month"], $currentDay["week_day"]); ?>
<a class="cal_daylink" href="<?php echo $currentDay["link"]; ?>" title="<?php echo JText::_('JEV_CLICK_TOSWITCH_DAY'); ?>"><?php echo $currentDay['week_day']; ?></a>
</div>
<?php
$dn++;
}
?>
</div>
<?php
for ($slot = 0; $slot < $weekslots[$week]; $slot++)
{
//continue;
?>
<div class="jeveventrow slots<?php echo $weekslots[$week]; ?>">
<?php
$dn3 = $dn2;
for ($d = 0; $d < 7 && $dn3 < 7; $d++)
{
unset($currentDay);
$currentDay = $data["days"][$dn3];
$cellclass = $currentDay["today"] ? 'jev_today jevblocks1' : 'jev_daynoevents jevblocks1';

if (array_key_exists($slot, $currentDay["slots"]))
{
$event = $currentDay["slots"][$slot][0];
$blocks = $currentDay["slots"][$slot][1];
$key = $currentDay["slots"][$slot][2];
// reset class to include block count
$cellclass = $currentDay["today"] ? 'jev_today jevblocks' . $blocks : 'jev_daynoevents jevblocks' . $blocks;

if ($blocks > 0)
{
echo '<div class="' . $cellclass . '" >';
$ecc = new $eventCellClass($event, $this->datamodel, $this);
echo $ecc->calendarCell($currentDay, $this->year, $this->month, $key, $slot);
//echo $event->_summary. " ".$currentDay["slots"][$slot][1]." ".JevDate::strftime("%d",$event->_startday);
echo '</div>';
$currentDay['countDisplay']++;
}
else if (!$event)
{
echo "<div class='$cellclass' > </div>";
}
}
else
{
echo "<div class='$cellclass' > </div>";
}
$dn3++;
}
?>
</div>
<?php
}

// Are any of these days capped
$dn3 = $dn2;
$capped = false;
for ($d = 0; $d < 7 && $dn3 < 7; $d++)
{
unset($currentDay);
$currentDay = $data["days"][$dn3];
if ($currentDay["capped"])
$capped = true;
$dn3++;
}
// if capped then offer the link to more events
if ($capped)
{
?>
<div class="jeveventrow slots<?php echo $weekslots[$week] + 1; ?>">
<?php
$dn3 = $dn2;
for ($d = 0; $d < 7 && $dn3 < 7; $d++)
{
unset($currentDay);
$currentDay = $data["days"][$dn3];
$cellclass = $currentDay["today"] ? 'jev_today jevblocks1' : 'jev_daynoevents jevblocks1';
if ($currentDay["capped"])
{
echo "<div class='$cellclass eventfull' style='text-align:right'><span style='margin-right:5px'>";
echo '<a class="cal_daylink" href="' . $currentDay + $currentmonth["link"] . '" title="' . JText::_('JEV_CLICK_TOSWITCH_DAY') . '">'.JText::sprintf('JEV_MORE_EVENTS',$currentDay["unshowncount"]).'</a></span>';
echo '</div>';
}
else
{
echo "<div class='$cellclass' > </div>";
}
$dn3++;
}
?>
</div>
<?php
}
?>
</td>
</tr>
<?php
unset($data);
$week++;
}
?>
</table>
5 years ago
·
#214336
0
Votes
Undo
Hello,

Sorry for the delay. The holidays and personal issues have kept us snowed under :-(

If you use the JEvents Weekly Menu Item and the club themes you can use a rolling weekly view showing 4 weeks for instance.

Or use the JEvents Range View Menu Item.

Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.