diff --git a/e107_files/shortcode/batch/siteinfo_shortcodes.php b/e107_files/shortcode/batch/siteinfo_shortcodes.php index 5f801fc29..88585b386 100644 --- a/e107_files/shortcode/batch/siteinfo_shortcodes.php +++ b/e107_files/shortcode/batch/siteinfo_shortcodes.php @@ -1,13 +1,13 @@ \n"; + + if (isset($link) && $link) + { + if ($link == 'index') + { + $image = "".$image.""; + } + else + { + $image = "".$image.""; + } + } + + return $image; + } + + function get_theme_disclaimer($parm) + { + global $pref; + return (defined('THEME_DISCLAIMER') && $pref['displaythemeinfo'] ? THEME_DISCLAIMER : ''); + } + } ?> \ No newline at end of file diff --git a/e107_files/shortcode/logo.sc b/e107_files/shortcode/logo.sc deleted file mode 100644 index 89d7d4093..000000000 --- a/e107_files/shortcode/logo.sc +++ /dev/null @@ -1,36 +0,0 @@ -parse_str($parm); // Optional {LOGO=file=file_name} or {LOGO=link=url} or {LOGO=file=file_name&link=url} - // Paths to image file, link are relative to site base - -if (isset($file) && $file && is_readable($file)) -{ - $logo = e_HTTP.$file; // HTML path - $path = e_BASE.$file; // PHP path -} -else if (is_readable(THEME."images/e_logo.png")) -{ - $logo = THEME_ABS."images/e_logo.png"; // HTML path - $path = THEME."images/e_logo.png"; // PHP path -} -else -{ - $logo = e_IMAGE_ABS."logo.png"; // HTML path - $path = e_IMAGE."logo.png"; // PHP path -} - -$dimensions = getimagesize($path); - -$image = "\n"; - -if (isset($link) && $link) -{ - if ($link == 'index') - { - $image = "".$image.""; - } - else - { - $image = "".$image.""; - } -} - -return $image; \ No newline at end of file diff --git a/e107_files/shortcode/theme_disclaimer.sc b/e107_files/shortcode/theme_disclaimer.sc deleted file mode 100644 index 1fa577ef4..000000000 --- a/e107_files/shortcode/theme_disclaimer.sc +++ /dev/null @@ -1,3 +0,0 @@ -global $tp; -$ret =(defined("THEME_DISCLAIMER") && $pref['displaythemeinfo'] ? THEME_DISCLAIMER : ""); -return $ret; \ No newline at end of file