diff options
author | Christian Weber | 2011-05-30 18:51:47 +0000 |
---|---|---|
committer | Christian Weber | 2011-05-30 18:51:47 +0000 |
commit | edce8818a1763769129c458218177436c0005ee2 (patch) | |
tree | a8f0255906ccf155511adb0b92e8b6768ecafd9a | |
parent | c3e05a736d7ef159c212105b051516f671598865 (diff) | |
download | itools-edce8818a1763769129c458218177436c0005ee2.tar.gz itools-edce8818a1763769129c458218177436c0005ee2.tar.bz2 itools-edce8818a1763769129c458218177436c0005ee2.zip |
add 'favicon' parameter to specify a favicon, add srclines in EDC('what')
-rw-r--r-- | it_html.class | 9 |
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) { |