To upgrade your 1.0.x theme for 1.5.x compatibility, you also need to edit the theme theme.php file. The first line represents the 1.0.x code and the next line represents the 1.5.x code (line numbers based on the default theme).
Line 714
< <input name="published" type="checkbox" value="1" {STATUS_CHK} >{STATUS_ACTIVE_LABEL}
---
> <input name="published" type="checkbox" value="1" {STATUS_CHK} />{STATUS_ACTIVE_LABEL}
Line 717
< <input type="hidden" name="option" value="$option">
< <input type="hidden" name="task" value="">
< </form>
< </table>
---
> <input type="hidden" name="option" value="$option" />
> <input type="hidden" name="task" value="" />
> </table>
> </form>
Line 728
< <form action="{$CONFIG_EXT['calendar_calling_page']}" method="post">
Line 732
< <input type='text' name='extcal_search' class='textinput' value="Search events..." onFocus="if(this.value == '{KEY_DESC}') this.value='';" onBlur="if(!this.value) this.value = '{KEY_DESC}';" size='25'>
< <input name='submit' type='submit' value="Go" class='button'>
< <input name='extmode' type='hidden' value="extcal_search">
---
> <form action="{$CONFIG_EXT['calendar_calling_page']}" method="post">
> <input type='text' name='extcal_search' class='textinput' value="{KEY_DESC}" onfocus="if(this.value == '{KEY_DESC}') this.value='';" onblur="if(!this.value) this.value = '{KEY_DESC}';" size='25' />
> <input name='submit' type='submit' value="Go" class='button' />
> <input name='extmode' type='hidden' value="extcal_search" />
> </form>
Line 738
< </form>
Line 749
< <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='6' height='{CATEGORY_COLOR_SPACER_IMAGE_HEIGHT}'>
---
> <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='6' height='{CATEGORY_COLOR_SPACER_IMAGE_HEIGHT}' alt='' />
Line 778
< <div class="atomic"><strong>{CONTACT_EMAIL_LABEL}</strong> <a href='mailto:{CONTACT_EMAIL}'>{CONTACT_EMAIL}</a></div>
---
> <div class="atomic"><strong>{CONTACT_EMAIL_LABEL}</strong> {CONTACT_EMAIL}</a></div>
Line 786
< <tr class="tableb" height="30">
---
> <tr class="tableb" style="height: 30px">
Line 788
< <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='1' height='8'><br />
< <div class='eventdesclarge'>{PICTURE}{EVENT_DESC}</div>
---
> <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='1' height='8' alt='' /><br />
> <div class='eventdesclarge'>{EVENT_DESC}</div>
Line 797
< <input name='back' type='button' onclick="{BACK_LINK}" value=" {BACK_BUTTON} " class='button'>
---
> <input name='back' type='button' onclick="{BACK_LINK}" value=" {BACK_BUTTON} " class='button' />
Line 808
< <td class="tablec" colspan="2" align="left" nowrap><img src='{$CONFIG_EXT['calendar_url']}themes/default/images/icon-cat-active.gif' alt='{CATEGORY_INFO}' align="absmiddle"> <span class="atomic">{CATEGORY_DESC}</span></td>
---
> <td class="tablec" colspan="2" align="left" nowrap='nowrap'><img src='{$CONFIG_EXT['calendar_url']}themes/default/images/icon-cat-active.gif' alt='{CATEGORY_INFO}' style='vertical-align: middle' /> <span class="atomic">{CATEGORY_DESC}</span></td>
Line 819
< <td class="tableh2" align="center" nowrap>{EVENT_DATE}</td>
---
> <td class="tableh2" align="center" nowrap='nowrap'>{EVENT_DATE}</td>
Line 823
< <tr class="tableb" height="30">
---
> <tr class="tableb" style="height: 30px">
Line 826
< <td class='tableb' align='center' valign='middle' nowrap><span class='atomic'>{EVENT_DATE}</span></td>
---
> <td class='tableb' align='center' valign='middle' nowrap='nowrap'><span class='atomic'>{EVENT_DATE}</span></td>
Line 841
< <td class="tableh2" align="center" nowrap>{UPCOMING_EVENTS}</td>
< <td class="tableh2" align="center" nowrap>{TOTAL_EVENTS}</td>
---
> <td class="tableh2" align="center" nowrap='nowrap'>{UPCOMING_EVENTS}</td>
> <td class="tableh2" align="center" nowrap='nowrap'>{TOTAL_EVENTS}</td>
Line 851
< <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='6' height='25'>
---
> <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='6' height='25' alt=''/>
Line 881
< <td width="80%" nowrap class="tableh2">
---
> <td width="80%" nowrap='nowrap' class="tableh2">
Line 884
< <td align='center' nowrap class="tableh2">
---
> <td align='center' nowrap='nowrap' class="tableh2">
Line 887
< <td align='center' nowrap class="tableh2">
---
> <td align='center' nowrap='nowrap' class="tableh2">
Line 894
< <td width="80%" nowrap class="tableb">
---
> <td width="80%" nowrap='nowrap' class="tableb">
Line 896
< <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='1' height='5'><br />
---
> <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='1' height='5' alt='' /><br />
Line 898
< <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='1' height='8'><br />
---
> <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' width='1' height='8' alt='' /><br />
Line 900
< <td align='center' nowrap class="tableb">
---
> <td align='center' nowrap='nowrap' class="tableb">
Line 903
< <td align='center' nowrap class="tableb">
---
> <td align='center' nowrap='nowrap' class="tableb">
Line 915
< <form action="{$CONFIG_EXT['calendar_calling_page']}" method="post">
Line 919
< <input type='text' name='extcal_search' class='textinput' value="Search events..." onFocus="if(this.value == '{KEY_DESC}') this.value='';" onBlur="if(!this.value) this.value = '{KEY_DESC}';" size='25'>
< <input name='submit' type='submit' value="Go" class='button'>
< <input name='extmode' type='hidden' value="extcal_search">
---
> <form action="{$CONFIG_EXT['calendar_calling_page']}" method="post">
> <input type='text' name='extcal_search' class='textinput' value="{KEY_DESC}" onfocus="if(this.value == '{KEY_DESC}') this.value='';" onblur="if(!this.value) this.value = '{KEY_DESC}';" size='25' />
> <input name='submit' type='submit' value="Go" class='button' />
> <input name='extmode' type='hidden' value="extcal_search" />
> </form>
Line 924
<
< </form>
Line 941
< <img src="$mosConfig_live_site/components/com_jcalpro/images/spacer.gif" width="5" height="5">
---
> <img src="$mosConfig_live_site/components/com_jcalpro/images/spacer.gif" width="5" height="5" alt="" />
Line 947
< <img src="$mosConfig_live_site/components/com_jcalpro/images/spacer.gif" width="5" height="5">
---
> <img src="$mosConfig_live_site/components/com_jcalpro/images/spacer.gif" width="5" height="5" alt="" />
Line 955
< <img src="$mosConfig_live_site/components/com_jcalpro/images/spacer.gif" width="5" height="5">
---
> <img src="$mosConfig_live_site/components/com_jcalpro/images/spacer.gif" width="5" height="5" alt="" />
Line 973
< <form name="filter" action="{FILTER_LINK}" method="post">
< <td height="35" colspan="5" nowrap class="tablec" align="right" valign="middle"><span class="atomic">{EVENTS_FILTER_LABEL}:</span>
---
> <td height="35" colspan="5" nowrap='nowrap' class="tablec" align="right" valign="middle"><span class="atomic">{EVENTS_FILTER_LABEL}:</span>
> <form name="filter" action="{FILTER_LINK}" method="post">
Line 977
> </form>
Line 979
< </form>
Line 989
< <td colspan="1" width="90%" nowrap class="tableh2">{EVENT_STAT}</td>
< <td nowrap class="tableh2">
---
> <td colspan="1" width="90%" nowrap='nowrap' class="tableh2">{EVENT_STAT}</td>
> <td nowrap='nowrap' class="tableh2">
Line 993
< <td align='center' nowrap class="tableh2">{DATE}</td>
< <td align='center' nowrap class="tableh2">{ACTION}</td>
---
> <td align='center' nowrap='nowrap' class="tableh2">{DATE}</td>
> <td align='center' nowrap='nowrap' class="tableh2">{ACTION}</td>
Line 999
< <td width="90%" nowrap>
---
> <td width="90%" nowrap='nowrap'>
Line 1003
< <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' alt="{CAT_NAME}" width='6' height='40'>
---
> <img src='$mosConfig_live_site/components/com_jcalpro/images/spacer.gif' alt="{CAT_NAME}" width='6' height='40' />
Line 1006
< <a href='{EVENT_LNK}'><img src="{STATUS_ICON}" alt="{STATUS}" border="0"></a>
---
> <a href='{EVENT_LNK}'><img src="{STATUS_ICON}" alt="{STATUS}" border="0" /></a>
Line 1017
< <td align='center' nowrap class="tableb">
---
> <td align='center' nowrap='nowrap' class="tableb">
Line 1020
< <td align='center' nowrap class="tableb">
< <a href='{ADMIN_EDIT_EVENT_LINK}'><img src="{$CONFIG_EXT['calendar_url']}themes/default/images/icon-editevent.gif" alt="{EDIT}" hspace="2" border="0"></a>
---
> <td align='center' nowrap='nowrap' class="tableb">
> <a href='{ADMIN_EDIT_EVENT_LINK}'><img src="{$CONFIG_EXT['calendar_url']}themes/default/images/icon-editevent.gif" alt="{EDIT}" hspace="2" border="0" /></a>
Line 1023
< <a href='{ADMIN_APPROVE_EVENT_LINK}'><img src="{$CONFIG_EXT['calendar_url']}themes/default/images/icon-apprevent.gif" alt="{APPROVE}" hspace="2" border="0"></a>
---
> <a href='{ADMIN_APPROVE_EVENT_LINK}'><img src="{$CONFIG_EXT['calendar_url']}themes/default/images/icon-apprevent.gif" alt="{APPROVE}" hspace="2" border="0" /></a>
Line 1025
< <a href='{ADMIN_DELETE_EVENT_LINK}' onClick="return verify('{DEL_MSG}')"><img src="{$CONFIG_EXT['calendar_url']}themes/default/images/icon-delevent.gif" alt="{DELETE}" hspace="2" border="0"></a>
---
> <a href='{ADMIN_DELETE_EVENT_LINK}' onClick="return verify('{DEL_MSG}')"><img src="{$CONFIG_EXT['calendar_url']}themes/default/images/icon-delevent.gif" alt="{DELETE}" hspace="2" border="0" /></a>
Line 1070
> <script type="text/javascript">
> <!--
> function printDocument()
> {
> self.focus();
> self.print();
> }
> function verify(msg){
> if(!msg) msg = "Are you absolutely sure that you want to delete this item?";
> //all we have to do is return the return value of the confirm() method
> return confirm(msg);
> }
> //-->
> </script>
>
Line 1076
< <script language="JavaScript">
---
> <script type="text/javascript">
Line 1105
< <td class="tableh1" align="center" nowrap><div class="atomic">'.$linkstring.'</div></td>
---
> <td class="tableh1" align="center" nowrap="nowrap"><div class="atomic">'.$linkstring.'</div></td>
Line 1115
< function pageheader($section = '', $meta = '', $show_main_menu = true)
---
> function pageheader($section = '', $meta = '')
Line 1118
> global $show_main_menu;
Line 1158
< <script language="JavaScript" type="text/JavaScript">
---
> <script type="text/javascript">
Line 1206
< <div class="atomic">Powered by <a href="http://dev.anything-digital.com/" target="_new"><strong>JCal Pro <span style="color:orange">1.0</span></strong></a></div>
---
> <div class="atomic">Powered by <a href="http://dev.anything-digital.com/" target="_blank"><strong>JCal Pro <span style="color:orange">1.5</span></strong></a></div>
Line 1314
< '{SUBMIT}' => $button,
< '{FORM_ACTION}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] )
---
> '{SUBMIT}' => $button
Line 1373
< global $template_event_view, $database, $my, $lang_event_view, $lang_general, $lang_date_format, $lang_add_event_view, $CONFIG_EXT, $REFERER, $THEME_DIR;
---
> global $template_event_view, $database, $my, $lang_event_view, $lang_general, $lang_date_format, $lang_add_event_view, $extmode, $CONFIG_EXT, $REFERER, $THEME_DIR;
Line 1375
< $print_link = $is_popup?"<a href=\"Javascript://Print this Event\" title=\"Print this Event\" onClick=\"printDocument()\"><img src=\"$THEME_DIR/images/icon-print.gif\" border=\"0\"></a>":"";
---
> $print_link = "<a href=\"Javascript://Print this Event\" title=\"Print this Event\" onClick=\"printDocument()\"><img src=\"$THEME_DIR/images/icon-print.gif\" border=\"0\" /></a>";
Line 1378
< $edit_link = has_priv('edit')?$edit_link_URL."<img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-editevent.gif' alt='".$lang_event_view['edit_event']."' hspace='2' border='0'></a>":"";
---
> $edit_link = has_priv('edit')?$edit_link_URL."<img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-editevent.gif' alt='".$lang_event_view['edit_event']."' hspace='2' border='0' /></a>":"";
Line 1381
< $delete_link = has_priv('delete')?$delete_link_URL."<img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-delevent.gif' alt='".$lang_event_view['delete_event']."' hspace='2' border='0'></a>":"";
---
> $delete_link = has_priv('delete')?$delete_link_URL."<img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-delevent.gif' alt='".$lang_event_view['delete_event']."' hspace='2' border='0' /></a>":"";
Line 1387
< $picture = empty($event->picture)?'':"<img src='".$CONFIG_EXT['UPLOAD_DIR_URL'].$event->picture."' border='0' align='right' hspace='8'>";
---
> $picture = empty($event->picture)?'':"<img src='".$CONFIG_EXT['UPLOAD_DIR_URL'].$event->picture."' border='0' align='right' hspace='8' alt='' />";
Line 1389
< if($CONFIG_EXT['time_format_24hours']) $date_mask = $lang_date_format['full_date_time_24hour'];
< else $date_mask = $lang_date_format['full_date_time_12hour'];
---
> if($CONFIG_EXT['time_format_24hours'])
> {
> $date_mask = $lang_date_format['full_date_time_24hour'];
> }
> else
> {
> $date_mask = $lang_date_format['full_date_time_12hour'];
> $ampm = date ( "A", $event->startDate );
> }
>
Line 1410
< '{BACK_LINK}' => $is_popup?"self.close();":"location.href='".$REFERER."'",
---
> '{BACK_LINK}' => $is_popup?"self.close();":"location.href='".htmlentities($REFERER)."'",
Line 1436
<
---
> if ( $CONFIG_EXT['popup_event_mode'] && $extmode == "view" ) template_extract_block($template_event_view, 'nav_row');
Line 1449
< global $sundayclrHl, $weekdayclrHl, $todayclrHl;
---
> global $sundayclrHl, $weekdayclrHl, $todayclrHl;
> global $option, $Itemid_Querystring;
Line 1545
< $events = $results[($i + $row)]['events'];
---
> if ( isset ( $results[($i + $row)]['events'] ) )
> {
> $events = $results[($i + $row)]['events'];
> }
>
Line 1547
< while (is_array($events) && list(,$event_info) = each($events))
---
> while (@is_array($events) && list(,$event_info) = each($events))
Line 1555
< $event_list .= "<div class='$event_style'><div class='eventstyle' style='border-bottom-color: ".$event->color."'><img src='$THEME_DIR/images/$event_icon' hspace='2'>";
---
> $event_list .= "<div class='$event_style'><div class='eventstyle' style='border-bottom-color: ".$event->color."'><img src='$THEME_DIR/images/$event_icon' hspace='2' alt='' />";
Line 1560
< $non_sef_href = $CONFIG_EXT['calendar_url']."cal_popup.php?extmode=view&extid=".$event->extid.($event->isRecurrent()?"&recurdate=".$event->recurStartDay:'');
---
> $non_sef_href = "index2.php?option=" . $option . $Itemid_Querystring ."&extmode=view&extid=".$event->extid.($event->isRecurrent()?"&recurdate=".$event->recurStartDay:'');
Line 1579
< $sef_href_2 = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=addevent&date=$url_target_date" );
---
> $sef_href_2 = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=event&event_mode=add&date=$url_target_date" );
Line 1752
< $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=addevent" );
---
> $sef_href = sefRelToAbs( $CONFIG_EXT['calendar_calling_page'] . "&extmode=event&event_mode=add" );
Line 1882
< $user_website = !empty($user_website)?"<a href='http://".$user_website."' target='_new'>".$user_website."</a>":"";
---
> $user_website = !empty($user_website)?"<a href='http://".$user_website."' target='_blank'>".$user_website."</a>":"";
Line 1922
< starttable("100%",$section_title,5,"", "<img src='".$THEME_DIR."/images/icon-add.gif' align='absmiddle' hspace='4'><a href='".$sef_href."'>".$lang_event_admin_data['add_event']."</a>");
---
> starttable("100%",$section_title,5,"", "<img src='".$THEME_DIR."/images/icon-add.gif' style='vertical-align: middle' hspace='4' /><a href='".$sef_href."'>".$lang_event_admin_data['add_event']."</a>");
Line 1969
< alt='".addslashes($lang_event_admin_data['picture_attached'])."'>":"",
---
> alt='".addslashes($lang_event_admin_data['picture_attached'])."' />":"",
Line 2002
< starttable("100%",$lang_cat_admin_data['section_title'],5,"","<img src='".$THEME_DIR."/images/icon-add.gif' align='absmiddle' hspace='4'><a href='".$sef_href."'>".$lang_cat_admin_data['add_cat']."</a>");
---
> starttable("100%",$lang_cat_admin_data['section_title'],5,"","<img src='".$THEME_DIR."/images/icon-add.gif' style='vertical-align: middle' hspace='4' /><a href='".$sef_href."'>".$lang_cat_admin_data['add_cat']."</a>");
Line 2025
< '{PICTURE}' => $result['status']?"<img src='".$THEME_DIR."/images/icon-cat-active.gif' alt='".addslashes($lang_cat_admin_data['active_label'])."'>":"<img src='".$THEME_DIR."/images/icon-cat-inactive.gif' alt='".addslashes($lang_cat_admin_data['not_active_label'])."'>",
---
> '{PICTURE}' => $result['status']?"<img src='".$THEME_DIR."/images/icon-cat-active.gif' alt='".addslashes($lang_cat_admin_data['active_label'])."' />":"<img src='".$THEME_DIR."/images/icon-cat-inactive.gif' alt='".addslashes($lang_cat_admin_data['not_active_label'])."' />",
Line 2051
< $print_link = $is_popup?"<a href=\"Javascript://Print this Event\" title=\"Print this Event\" onClick=\"printDocument()\"><img src=\"$THEME_DIR/images/icon-print.gif\" border=\"0\"></a>":"";
---
> $print_link = $CONFIG_EXT['popup_event_mode']?"<a href=\"Javascript://Print this Event\" title=\"Print this Event\" onClick=\"printDocument()\"><img src=\"$THEME_DIR/images/icon-print.gif\" border=\"0\" /></a>":"";
Line 2053
< $delete_link = has_priv("delete")?"<a href='".$sef_href."' onClick=\"return verify('".$lang_event_admin_data['delete_confirm']."')\"><img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-delevent.gif' alt='".$lang_event_admin_data['delete_event']."' hspace='2' border='0'></a>":"";
---
> $delete_link = has_priv("delete")?"<a href='".$sef_href."' onClick=\"return verify('".$lang_event_admin_data['delete_confirm']."')\"><img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-delevent.gif' alt='".$lang_event_admin_data['delete_event']."' hspace='2' border='0' /></a>":"";
Line 2055
< $edit_link = has_priv("edit")?"<a href='".$sef_href."'><img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-editevent.gif' alt='".$lang_event_admin_data['edit_event']."' hspace='2' border='0'></a>":"";
---
> $edit_link = has_priv("edit")?"<a href='".$sef_href."'><img src='".$CONFIG_EXT['calendar_url']."themes/default/images/icon-editevent.gif' alt='".$lang_event_admin_data['edit_event']."' hspace='2' border='0' /></a>":"";
Line 2059
< $picture = empty($result['picture'])?'':"<img src='".$CONFIG_EXT['UPLOAD_DIR_URL'].$result['picture']."' border='0' align='right' hspace='8'>";
---
> $picture = empty($result['picture'])?'':"<img src='".$CONFIG_EXT['UPLOAD_DIR_URL'].$result['picture']."' border='0' align='right' hspace='8' />";
Line 2090
< '{EVENT_START_DATE}' => ucwords(strftime($date_mask, strtotime($result['start_date']))),
---
> '{EVENT_START_DATE}' => ucwords(strftime($date_mask, strtotime($result['start_date'])). ' ' . date ( "A", strtotime($result->startDate) )),
Line 2138
< '{ADD_EVENT_TGT}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=addevent" ),
---
> '{ADD_EVENT_TGT}' => sefRelToAbs( $CONFIG_EXT['calendar_calling_page']."&extmode=event&event_mode=add" ),