mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Icon-related bugfixes
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_shortcodes.php,v $
|
||||||
| $Revision: 1.5 $
|
| $Revision: 1.6 $
|
||||||
| $Date: 2007-12-08 12:22:36 $
|
| $Date: 2007-12-15 16:31:32 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
@@ -212,7 +212,7 @@ SC_BEGIN EC_CALENDAR_CALENDAR_RECENT_ICON
|
|||||||
if (!isset($ev['is_recent'])) return "";
|
if (!isset($ev['is_recent'])) return "";
|
||||||
if (!$ev['startofevent']) return ""; // Only display on first day of multi-day events
|
if (!$ev['startofevent']) return ""; // Only display on first day of multi-day events
|
||||||
// $recent_icon = e_PLUGIN."calendar_menu/images/recent_icon.png";
|
// $recent_icon = e_PLUGIN."calendar_menu/images/recent_icon.png";
|
||||||
$recent_icon = e_IMAGE."generic/".IMODE."/new.png";
|
$recent_icon = EC_RECENT_ICON;
|
||||||
if (file_exists($recent_icon))
|
if (file_exists($recent_icon))
|
||||||
{
|
{
|
||||||
return "<img style='border:0' src='".$recent_icon."' alt='' /> ";
|
return "<img style='border:0' src='".$recent_icon."' alt='' /> ";
|
||||||
@@ -438,10 +438,10 @@ SC_BEGIN EC_EVENT_THREAD
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN EC_EVENT_OPTIONS
|
SC_BEGIN EC_EVENT_OPTIONS
|
||||||
global $EC_EVENT_OPTIONS, $thisevent, $event_author_name, $cal_super;
|
global $EC_EVENT_OPTIONS, $thisevent, $event_author_name, $cal_super,$ec_images_path;
|
||||||
if (USERNAME == $event_author_name || $cal_super)
|
if (USERNAME == $event_author_name || $cal_super)
|
||||||
{
|
{
|
||||||
$EC_EVENT_OPTIONS = "<a href='event.php?ed.".$thisevent['event_id']."'><img style='border:0;' src='".e_IMAGE."admin_images/edit_16.png' title='".EC_LAN_35."' alt='".EC_LAN_35 . "'/></a> <a href='".e_PLUGIN."calendar_menu/event.php?de.".$thisevent['event_id']."'><img style='border:0;' src='".e_IMAGE."admin_images/delete_16.png' title='".EC_LAN_36."' alt='".EC_LAN_36."'/></a>";
|
$EC_EVENT_OPTIONS = "<a href='event.php?ed.".$thisevent['event_id']."'><img style='border:0;' src='".$ec_images_path."admin_images/edit_16.png' title='".EC_LAN_35."' alt='".EC_LAN_35 . "'/></a> <a href='".e_PLUGIN."calendar_menu/event.php?de.".$thisevent['event_id']."'><img style='border:0;' src='".$ec_images_path."admin_images/delete_16.png' title='".EC_LAN_36."' alt='".EC_LAN_36."'/></a>";
|
||||||
}
|
}
|
||||||
return $EC_EVENT_OPTIONS;
|
return $EC_EVENT_OPTIONS;
|
||||||
SC_END
|
SC_END
|
||||||
@@ -502,13 +502,13 @@ SC_BEGIN EC_IF_SAMEDAY
|
|||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
|
|
||||||
// FORTHCOMINT EVENTS MENU
|
// FORTHCOMING EVENTS MENU
|
||||||
//--------------------------------------------
|
//--------------------------------------------
|
||||||
|
|
||||||
SC_BEGIN EC_NEXT_EVENT_RECENT_ICON
|
SC_BEGIN EC_NEXT_EVENT_RECENT_ICON
|
||||||
global $thisevent;
|
global $cal_row;
|
||||||
if (!$pref['eventpost_fe_showrecent']) return;
|
if (!$pref['eventpost_fe_showrecent']) return;
|
||||||
if (!isset($thisevent['is_recent'])) return;
|
if (!isset($cal_row['is_recent'])) return;
|
||||||
$recent_icon = EC_RECENT_ICON;
|
$recent_icon = EC_RECENT_ICON;
|
||||||
if (file_exists($recent_icon))
|
if (file_exists($recent_icon))
|
||||||
{
|
{
|
||||||
|
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_template.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/calendar_menu/calendar_template.php,v $
|
||||||
| $Revision: 1.2 $
|
| $Revision: 1.3 $
|
||||||
| $Date: 2007-07-13 19:37:52 $
|
| $Date: 2007-12-15 16:31:32 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
|
|
|
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
@@ -20,8 +20,19 @@
|
|||||||
if (!defined('e107_INIT')) { exit; }
|
if (!defined('e107_INIT')) { exit; }
|
||||||
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:auto"); }
|
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:auto"); }
|
||||||
|
|
||||||
|
global $imode;
|
||||||
|
if (varsettrue($imode))
|
||||||
|
{ // Its 0.8
|
||||||
|
$ec_images_path = e_IMAGE.'packs/'.$imode.'/';
|
||||||
|
if (!defined('EC_RECENT_ICON')) {define('EC_RECENT_ICON',$ec_images_path.'generic/new.png'); } // Filename of icon used to flag recent events
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$ec_images_path = e_IMAGE;
|
||||||
|
if (!defined('EC_RECENT_ICON')) {define('EC_RECENT_ICON',e_IMAGE.'generic/'.IMODE.'/new.png'); } // Filename of icon used to flag recent events
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!defined('EC_RECENT_ICON')) {define('EC_RECENT_ICON',e_IMAGE.'generic/'.IMODE.'/new.png'); } // Filename of icon used to flag recent events
|
|
||||||
|
|
||||||
// TIME SWITCH BUTTONS ------------------------------------------------------------
|
// TIME SWITCH BUTTONS ------------------------------------------------------------
|
||||||
$sc_style['EC_PREV_MONTH']['pre'] = "<span class='defaulttext'>";
|
$sc_style['EC_PREV_MONTH']['pre'] = "<span class='defaulttext'>";
|
||||||
|
Reference in New Issue
Block a user