Skip to content

Commit

Permalink
- Removed more IE6 stuff
Browse files Browse the repository at this point in the history
+ Added ability to add custom css

Signed-off-by: jdarwood007 <unmonitored+github@sleepycode.com>
  • Loading branch information
jdarwood007 committed Nov 29, 2015
1 parent f6a5414 commit 640cb41
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sd_source/SimpleDesk.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,13 @@ function shd_main()
<link rel="stylesheet" type="text/css" href="' . (file_exists($settings['theme_dir'] . '/css/helpdesk.css') ? $settings['theme_url'] . '/css/helpdesk.css' : $settings['default_theme_url'] . '/css/helpdesk.css') . '" />
<script type="text/javascript" src="' . $settings['default_theme_url'] . '/scripts/helpdesk.js?rc2"></script>';

// Darn IE6. Die, already :(
if ($context['browser']['is_ie6'])
// A custom css?
if (file_exists($settings['default_theme_url'] . '/css/helpdesk_custom.css'))
$context['html_headers'] .= '
<!-- Fall back, dark force, for we shall thy evil powers not endorse -->
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/helpdesk_ie6.css" />';
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/helpdesk_custom.css" />';
if (file_exists($settings['theme_dir'] . '/css/helpdesk_custom.css'))
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['theme_url'] . '/css/helpdesk_custom.css" />';

// Int hooks - after we basically set everything up (so it's manipulatable by the hook, but before we do the last bits of finalisation)
call_integration_hook('shd_hook_helpdesk', array(&$subactions));
Expand Down

0 comments on commit 640cb41

Please sign in to comment.