How to select more than one Month created items in source code of Mighty Resource Calendar template ?

This forum is for general questions about extensions for Joomla! version 1.5.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
ghofrani
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Wed Sep 04, 2019 4:13 am

How to select more than one Month created items in source code of Mighty Resource Calendar template ?

Post by ghofrani » Sun Dec 05, 2021 6:35 pm

Hello,

How to select more than one month created items in source code of Mighty Resource Calendar template ?

Template Version 3.7 :

Mighty Resource Homepage :

Code: Select all

http://www.mintjoomla.com/download/mighty-extensions.html
Download Mighty Resource :

Code: Select all

http://www.mintjoomla.com/download/mighty-extensions/item/3640-mightyresources.html
Download Mighty Resource Calendar tmpl:

Code: Select all

https://mega.nz/file/KipBhIja#uLbvy4hNyX14g8dEoHZ-P8-dMtLcrUFVXvNdF05Afcg
Lines : 333,334,335

Code: Select all

$_items = array();
foreach ($this->items AS $item)
$_items[date('Y',$item->ctime->toUnix())][date('z', $item->ctime->toUnix())][] = $item;
The code just select the current month items , We need to select 3 month created items , current month, previous month and next month of the Gregorian Calendar for the Jalali Month to work currectly.

we need

Code: Select all

$this->items
to select 3 monthes created items . current month , previous month and next month of Gregorian Calendar .

-------------------------------------------------------------------------------------------------------------------
Forum Post Assistant Download :

Code: Select all

https://mega.nz/file/r6plTKiZ#CUmNwnUn4-ysJeLGRMIXj6BwjSnhJ9Ay1pdb45tn6u0
-------------------------------------------------------------------------------------------------------------------


Thanks

Saeed

Post Reply

Return to “Extensions for Joomla! 1.5”