summaryrefslogtreecommitdiff
path: root/it_html.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_html.class')
-rw-r--r--it_html.class9
1 files changed, 6 insertions, 3 deletions
diff --git a/it_html.class b/it_html.class
index 435bb40..94dd2ee 100644
--- a/it_html.class
+++ b/it_html.class
@@ -52,6 +52,7 @@ function it_html($p = array())
'show_boot_dom' => false, # If true, append invisible <div id="it_boot_dom"> at the end of body
'show_content_type' => true, # If true, add <meta http-equiv="Content-Type" ...> header
'show_favicon' => true, # If true, add <link> tag to /favicon.ico if it exists
+ 'favicon' => '', # If set, add favicon <link> tag to this url
'staticallycallable' => 'Q,U,select', # Those methods are statically callable (have same arguments as global stubs) but are a bit slower
'tags' => 'a,b,br,button,div,em,fieldset,form,h1,h2,h3,h4,h5,h6,hr,input,label,legend,li,meta,noscript,p,span,style,table,td,textarea,th,tr,ul',
'title' => '', # HTML title (default: no title added)
@@ -159,8 +160,10 @@ function head($args = array())
if (!empty($p[$name]))
$header .= meta(array('name' => $name, 'content' => $p[$name]));
- # Add favicon if file exists
- if ($p['show_favicon'] && @file_exists($_SERVER['DOCUMENT_ROOT'] . '/favicon.ico'))
+ # Add favicon
+ if ($p['favicon'])
+ $header .= tag('link', array('rel' => "shortcut icon", 'href' => $p['favicon']));
+ elseif ($p['show_favicon'] && @file_exists($_SERVER['DOCUMENT_ROOT'] . '/favicon.ico'))
$header .= tag('link', array('rel' => "shortcut icon", 'href' => "/favicon.ico"));
foreach((array)$p['stylesheets'] as $type => $url)
@@ -208,7 +211,7 @@ function body($args)
if (EDC('what'))
{
- $debugvars = array_merge($GLOBALS['ULTRADEBUGVARS'], array('srclines' => 1));
+ $debugvars = array_merge($GLOBALS['ULTRADEBUGVARS'], array('srclines' => 1, 'texts' => 1));
ksort($debugvars);
foreach ($debugvars as $var => $dummy)
{