PDA

View Full Version : Calendar Enhancements - bmw Lunar Calendar - Show Lunar Day in Calendar


bodaudinh
04-07-2009, 10:00 PM
Show the Lunar Day in Calendar
-

Install:
1. Import the product-bmwLunarCal.xml
2. Upload file functions_calendar.lunar.php to ./includes/ folder.
3. Perform the following template edits. (2 templates in CALENDAR Templates)
-- calendar_monthly_day
-- calendar_monthly_day_other

4. Add .lunar ==> Additional CSS Definitions
.lunar{ float: right;
display: inline; /*fixes IE float bug*/
text-align: right;
font-size:7pt; //Change font-size
font-weight:normal;
color:#CCCCCC; //Change color
width:100%;
}

Templates Edit:
Template Edit 1: calendar_monthly_day
- FIND
<div class="thead">

<span style="float:$stylevar[right]">
<if condition="$show['daylink']">
<a href="calendar.php?$session[sessionurl]do=getinfo&amp;day=$year-$month-$day&amp;c=$calendarid">$day</a>
<else />
$day
</if>
</span>
$dayname
</div>- BELOW ADD
<!-- bmwLunarCal -->
<if condition="$vboptions[bmwLunarCal_status]">
<span class=lunar>$al[0]/$al[1]</span>
</if>
<!-- End - bmwLunarCal -->Template Edit 2: calendar_monthly_day_other
- FIND
<div class="thead">
<span style="float:$stylevar[right]">$otherday$day</span>
$otherdayname$dayname
</div>
- BELOW ADD

<!-- bmwLunarCal -->
<if condition="$vboptions[bmwLunarCal_status]">
<span class=lunar>$al[0]/$al[1]</span>
</if>
<!-- End - bmwLunarCal -->
#================================================= =====
You are done.

Please remember to click install if you have used this.
Support will only be given to those who click install.

Jasem
04-08-2009, 02:56 AM
Nice work, thank you!

Installed

Stoebi
04-08-2009, 09:38 AM
Thanks, and thanks for full instruction in the archive. :)

yahoooh
04-08-2009, 07:23 PM
thank u
is there away to give times of pray in different methods acording to mecca ,azhar,hanafi methods and ofcourse for all cities on the world