1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 05:02:02 +02:00

Notice removal/bug fixes

This commit is contained in:
e107steved 2009-12-28 21:49:23 +00:00
parent 3dc8ec26eb
commit ea5a1717de
2 changed files with 12 additions and 11 deletions

View File

@ -9,8 +9,8 @@
* Shortcodes for event calendar
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
* $Revision: 1.17 $
* $Date: 2009-12-20 22:47:22 $
* $Revision: 1.18 $
* $Date: 2009-12-28 21:49:23 $
* $Author: e107steved $
*
*/
@ -20,7 +20,7 @@
*
* @package e107_plugins
* @subpackage event_calendar
* @version $Id: calendar_shortcodes.php,v 1.17 2009-12-20 22:47:22 e107steved Exp $;
* @version $Id: calendar_shortcodes.php,v 1.18 2009-12-28 21:49:23 e107steved Exp $;
*/
/*
@ -653,15 +653,15 @@ class event_calendar_shortcodes
$show_title = $this->e107->tp->toHTML($this->event['event_title'],FALSE,'TITLE'); // Remove entities in case need to truncate
if(isset($this->event['fulltopic']) && !$this->event['fulltopic'])
{
$show_title = $this->e107->tp->text_truncate($show_title, 10, "...");
$show_title = $this->e107->tp->text_truncate($show_title, 10, '...');
}
if($ev['startofevent'])
if($this->event['startofevent'])
{
return "<b><a title='{$ev['event_title']}' href='".e_PLUGIN."calendar_menu/event.php?".$linkut.".event.".$this->event['event_id']."'><span class='mediumtext'>".$show_title."</span></a></b>";
return "<b><a title='{$this->event['event_title']}' href='".e_PLUGIN.'calendar_menu/event.php?'.$linkut.'.event.'.$this->event['event_id']."'><span class='mediumtext'>".$show_title."</span></a></b>";
}
else
{
return "<a title='{$ev['event_title']}' href='".e_PLUGIN."calendar_menu/event.php?".$linkut.".event.".$this->event['event_id']."'><span class='smalltext'>".$show_title."</span></a>";
return "<a title='{$this->event['event_title']}' href='".e_PLUGIN.'calendar_menu/event.php?'.$linkut.'.event.'.$this->event['event_id']."'><span class='smalltext'>".$show_title."</span></a>";
}
}
@ -824,7 +824,7 @@ class event_calendar_shortcodes
{
global $pref;
$event_author_name = strstr(varset($this->event['event_author'],'0.??'),'.');
if (USERNAME == $event_author_name || $this_ecalClass->cal_super || check_class($pref['eventpost_admin']))
if (USERNAME == $event_author_name || $this->ecalClass->cal_super || check_class($pref['eventpost_admin']))
{
return "<a href='event.php?ed.".$this->event['event_id']."'><img class='icon S16' src='".e_IMAGE_ABS."admin_images/edit_16.png' title='".EC_LAN_35."' alt='".EC_LAN_35 . "'/></a>&nbsp;&nbsp;<a href='".e_PLUGIN_ABS.'calendar_menu/event.php?de.'.$this->event['event_id']."'><img style='border:0;' src='".e_IMAGE_ABS."admin_images/delete_16.png' title='".EC_LAN_36."' alt='".EC_LAN_36."'/></a>";
}

View File

@ -9,8 +9,8 @@
* Calender plugin - event listing and event entry
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/event.php,v $
* $Revision: 1.17 $
* $Date: 2009-12-20 22:47:32 $
* $Revision: 1.18 $
* $Date: 2009-12-28 21:49:23 $
* $Author: e107steved $
*/
@ -19,7 +19,7 @@
*
* @package e107_plugins
* @subpackage event_calendar
* @version $Id: event.php,v 1.17 2009-12-20 22:47:32 e107steved Exp $;
* @version $Id: event.php,v 1.18 2009-12-28 21:49:23 e107steved Exp $;
*/
require_once('../../class2.php');
@ -242,6 +242,7 @@ if ($mult_count > 1)
// Calculate any action, plus start date/number of events, from query
unset($dateArray);
$ds = ''; // Gets set if viewing a single day
if (isset($_POST['jump']))
{
$dateArray = getdate(mktime(0, 0, 0, $_POST['jumpmonth'], 1, $_POST['jumpyear']));