Zarządzanie szablonami > Strona główna > hookVdAgendaView - zmień na:
<script>showPopupDetails = function(e, eid){Event.stop(e);new ipb.Popup('popup_' + eid, {type: 'balloon', stem: true, w: '300px', hideAtStart: false, attach: {target: $('popupLink_' + eid), position: 'auto', 'event': 'click'}, initial: $('popupDetails_' + eid).innerHTML});}</script>
<div class='general_box clearfix'>
<h3 style="margin:0;"><if test="$this->memberData['member_id']"><div style="float:right;padding-right:5px;"><a href='{parse url="app=calendar&module=calendar&do=newevent&formtype=single" base="public"}'>{$this->lang->words['js_template_add']} <img src="{$this->settings['img_url']}/add.png" alt="{$this->lang->words['icon']}" /></a></div></if><img src="{$this->settings['img_url']}/date.png" alt="{$this->lang->words['icon']}" /> {$this->lang->words['vdav_header']}</h3>
<div class='_sbcollapsable'>
<if test="count($cal_events) > 0">
<foreach loop="$cal_events as $crow">
<if test="count($crow['values']) > 0">
<div style="font-weight:bold;background:#e5ecf9;border-bottom:1px solid #ccddee;padding:3px;clear:both;">{$crow['date']}</div>
<foreach loop="$crow['values'] as $row">
<div style="<if test='!$row['event_approved']'>background:#f2e4e7;<else />background:white;</if>border-bottom:1px solid #ccddee;padding:3px 5px;">
<if test="$this->settings['vdAgendaView_showEventType']"><div style="float:right;padding:0 1px;"><img src="{$this->settings['img_url']}/cal_{$row['event_type']}.png" alt="{$this->lang->words['icon']}" title="<if test="$row['event_type'] == 'single'">{$this->lang->words['se_normal']}<else /><if test="$row['event_type'] == 'ranged'">{$this->lang->words['se_range']}<else />{$this->lang->words['se_recur']}</if></if>" /></div></if>
<if test="$this->settings['vdAgendaView_markNewEvents'] && $row['event_is_new']"><div style="float:right;padding:0 1px;"><img src="{$this->settings['img_url']}/star.png" alt="{$this->lang->words['icon']}" title="{$this->lang->words['vdav_new_or_updated']}" /></div></if>
<if test="$row['event_private']"><div style="float:right;padding:0 1px;"><img src="{$this->settings['img_url']}/key.png" alt="{$this->lang->words['icon']}" title="{$this->lang->words['ip_private']}" /></div></if>
<if test="!$row['event_approved']"><div style="float:right;padding:0 1px;"><img src="{$this->settings['img_url']}/report.png" alt="{$this->lang->words['icon']}" title="{$this->lang->words['vdav_unapproved']}" /></div></if>
<span style="font-size:0.9em;"><if test="$row['event_all_day'] != 1">{$row['event_timeStart']} </if><a style="color:{$row['cal_vdcolor']};padding:1px 3px;-moz-border-radius:4px 4px 4px 4px;" href='{parse url="app=calendar&module=calendar&cal_id={$row["event_calendar_id"]}&do=showevent&event_id={$row["event_id"]}" base="public"}'>{$row['event_title']}</a></span><a href='{parse url="app=calendar&module=calendar&cal_id={$row["event_calendar_id"]}&do=showevent&event_id={$row["event_id"]}" base="public"}' id="popupLink_{$row['selfId']}"><img src="{$this->settings['img_url']}/user_popup.png" alt="{$this->lang->words['icon']}" /></a>
</div>
<div id="popupDetails_{$row['selfId']}" style="display:none;">
<h3>{$row['event_title']}</h3>
<div class="info" style="padding:5px;">
<dl>
<dt>{$this->lang->words['vdav_calendar']}</dt><dd style="color:{$row['cal_vdcolor']};">{$row['cal_title']}</dd>
<dt>{$this->lang->words['vdav_type']}</dt><dd><if test="$row['event_type'] == 'single'">{$this->lang->words['se_normal']}<else /><if test="$row['event_type'] == 'ranged'">{$this->lang->words['se_range']}<else />{$this->lang->words['se_recur']}</if></if></dd>
<dt>{$this->lang->words['vdav_day']}</dt><dd>{$crow['date']}</dd>
<if test="$row['event_all_day'] != 1"><dt>{$this->lang->words['vdav_hour']}</dt><dd>{$row['event_timeStart']}</dd></if>
</dl>
<div class="message user_status">{$row['event_content']}</div>
</div>
</div>
<script>$("popupLink_{$row['selfId']}").observe('click', showPopupDetails.bindAsEventListener(this, {$row['selfId']}));</script>
</foreach>
</if>
</foreach>
<else />
<div style="padding:3px 5px;">{$this->lang->words['no_calendar_events']}</div>
</if>
<if test="$this->settings['vdAgendaView_copyright']">
<span class="desc" style="float:left;padding:5px;"><a href='{parse url="" seotitle="false" base="public"}' id="popupLink_0">{$this->lang->words['vdav_legend']}</a></span>
<span class="desc" style="float:right;padding:5px;"><a href="http://forum.invisionize.pl/">(VD) Agenda View</a> 1.0.1</span>
<div id="popupDetails_0" style="display:none;">
<h3>{$this->lang->words['vdav_legend']}</h3>
<div class="info" style="padding:5px;">
<dl>
<dt><img src="{$this->settings['img_url']}/key.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['vdav_private']}</dd>
<dt><img src="{$this->settings['img_url']}/star.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['vdav_new_or_updated']}</dd>
<dt><img src="{$this->settings['img_url']}/report.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['vdav_unapproved']}</dd>
<dt><img src="{$this->settings['img_url']}/cal_single.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['se_normal']}</dd>
<dt><img src="{$this->settings['img_url']}/cal_recurring.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['se_recur']}</dd>
<dt><img src="{$this->settings['img_url']}/cal_ranged.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['se_range']}</dd>
<dt><img src="{$this->settings['img_url']}/user_popup.png" alt="{$this->lang->words['icon']}" /></dt><dd>{$this->lang->words['vdav_more_info']}</dd>
</dl>
</div>
</div>
<script>$("popupLink_0").observe('click', showPopupDetails.bindAsEventListener(this, 0));</script>
</if>
</div>
</div>