2009-09-19 17:36:36 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2009-11-17 13:48:46 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
2009-11-18 01:06:08 +00:00
|
|
|
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
2009-11-17 13:48:46 +00:00
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/siteinfo/sitebutton_menu.php,v $
|
2010-02-10 18:18:01 +00:00
|
|
|
* $Revision$
|
|
|
|
* $Date$
|
|
|
|
* $Author$
|
2009-11-17 13:48:46 +00:00
|
|
|
*/
|
|
|
|
|
2009-09-19 17:36:36 +00:00
|
|
|
if (!defined('e107_INIT')) { exit; }
|
2013-04-26 21:50:01 -07:00
|
|
|
// echo "parm=".$parm; //FIXME - just for testing only.
|
2013-04-27 14:06:03 -07:00
|
|
|
|
2020-12-20 11:50:10 -08:00
|
|
|
if(strpos(SITEBUTTON, "://") !== false) // external url.
|
2013-04-27 14:06:03 -07:00
|
|
|
{
|
|
|
|
$path = SITEBUTTON;
|
|
|
|
}
|
|
|
|
elseif(basename(SITEBUTTON) == SITEBUTTON) // v1.x BC Fix. - no path included.
|
|
|
|
{
|
|
|
|
$path = e_IMAGE_ABS.SITEBUTTON;
|
|
|
|
}
|
|
|
|
else // v2.x format: {e_IMAGE}whatever.png
|
|
|
|
{
|
|
|
|
$path = SITEBUTTON;
|
|
|
|
}
|
|
|
|
|
|
|
|
$ns->tablerender(SITEBUTTON_MENU_L1, "<div style='text-align:center'>\n<a href='".SITEURL."'><img src='".$path."' alt='".SITEBUTTON_MENU_L1."' style='border: 0px; max-width:100%' /></a>\n</div>", 'sitebutton');
|