mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-27 23:51:30 +01:00
more the seperate parts of how an event is displayd in day/week or month view to give the templare set designer more freedom
This commit is contained in:
parent
618960e067
commit
bfd0ac1316
@ -2704,15 +2704,31 @@
|
|||||||
{
|
{
|
||||||
$time = '';
|
$time = '';
|
||||||
}
|
}
|
||||||
$text = '';
|
|
||||||
|
$texttitle = $texttime = $textdesc = $textlocation = $textstatus = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!$is_private)
|
if(!$is_private)
|
||||||
{
|
{
|
||||||
$text .= $this->bo->display_status($event['users_status']);
|
//$text .= $this->bo->display_status($event['users_status']);
|
||||||
|
|
||||||
|
// split text for better display by templates, also see $texttime $texttitle $textdesc $textlocation
|
||||||
|
$textstatus=$this->bo->display_status($event['users_status']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
$text = '<nobr> '.$time.' </nobr> '.$this->bo->get_short_field($event,$is_private,'title').$text.
|
$text = '<nobr> '.$time.' </nobr> '.$this->bo->get_short_field($event,$is_private,'title').$text.
|
||||||
(!$is_private && $event['description'] ? ': <I>'.$this->bo->get_short_field($event,$is_private,'description').'</I>':'').
|
(!$is_private && $event['description'] ? ': <i>'.$this->bo->get_short_field($event,$is_private,'description').'</i>':'').
|
||||||
$GLOBALS['phpgw']->browser->br;
|
$GLOBALS['phpgw']->browser->br;
|
||||||
|
*/
|
||||||
|
|
||||||
|
$texttime=$time;
|
||||||
|
$texttitle=$this->bo->get_short_field($event,$is_private,'title');
|
||||||
|
$textdesc=(!$is_private && $event['description'] ? $this->bo->get_short_field($event,$is_private,'description'):'');
|
||||||
|
// added $textlocation but this must be activated in the actual pict_link.tpl file of the used template set
|
||||||
|
$textlocation=$this->bo->get_short_field($event,$is_private,'location');
|
||||||
|
|
||||||
if ($viewable)
|
if ($viewable)
|
||||||
{
|
{
|
||||||
@ -2806,10 +2822,15 @@
|
|||||||
);
|
);
|
||||||
$this->output_template_array($this->link_tpl,'picture','pict',$var);
|
$this->output_template_array($this->link_tpl,'picture','pict',$var);
|
||||||
}
|
}
|
||||||
if ($text)
|
if ($texttitle)
|
||||||
{
|
{
|
||||||
$var = Array(
|
$var = Array(
|
||||||
'text' => $text
|
// 'text' => $text,
|
||||||
|
'time'=> $texttime,
|
||||||
|
'title'=> $texttitle,
|
||||||
|
'users_status'=>$textstatus,
|
||||||
|
'desc'=> $textdesc,
|
||||||
|
'location'=> $textlocation
|
||||||
);
|
);
|
||||||
$this->output_template_array($this->link_tpl,'picture','link_text',$var);
|
$this->output_template_array($this->link_tpl,'picture','link_text',$var);
|
||||||
}
|
}
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
<a href="{link_link}" onMouseOver="window.status='{lang_view}'; return true;" onMouseOut="window.status=''; return true;">
|
<a href="{link_link}" onMouseOver="window.status='{lang_view}'; return true;" onMouseOut="window.status=''; return true;">
|
||||||
<!-- END link_open -->
|
<!-- END link_open -->
|
||||||
<!-- BEGIN pict -->
|
<!-- BEGIN pict -->
|
||||||
<img src="{pic_image}" width="{width}" height="{height}" title="{title}" border="0">
|
<img src="{pic_image}" width="{width}" height="{height}" title="{title}" border="0" />
|
||||||
<!-- END pict -->
|
<!-- END pict -->
|
||||||
<!-- BEGIN link_text -->
|
<!-- BEGIN link_text -->
|
||||||
{text}
|
<nobr> {time} </nobr> {title} {users_status}: <i>{desc}</i><!--({location})-->
|
||||||
<!-- END link_text -->
|
<!-- END link_text -->
|
||||||
<!-- BEGIN link_close -->
|
<!-- BEGIN link_close -->
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user