diff options
author | xue <> | 2007-09-25 15:33:44 +0000 |
---|---|---|
committer | xue <> | 2007-09-25 15:33:44 +0000 |
commit | 98d1c7cc4f4d2f4ebc2972262038d7883bb89849 (patch) | |
tree | e9c73c0b4f69f6b0f4bb8143d0a42ee613cd69fb | |
parent | 8fe584b12f1874640541e23f64ee78cb99a07ec1 (diff) |
Added a new type of powered logo.
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | framework/PradoBase.php | 8 | ||||
-rw-r--r-- | framework/powered2.gif | bin | 0 -> 219 bytes |
3 files changed, 6 insertions, 3 deletions
diff --git a/.gitattributes b/.gitattributes index 688627d3..377fa0ec 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2618,6 +2618,7 @@ framework/Web/UI/WebControls/assets/verase.ttf -text framework/Xml/TXmlDocument.php -text framework/interfaces.php -text framework/powered.gif -text +framework/powered2.gif -text framework/prado.php -text /index.html -text /phing -text diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 2823c1d1..d4f2522c 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -99,17 +99,19 @@ class PradoBase }
/**
+ * @param integer the type of "powered logo". Valid values include 0 and 1.
* @return string a string that can be displayed on your Web page showing powered-by-PRADO information
*/
- public static function poweredByPrado()
+ public static function poweredByPrado($logoType=0)
{
+ $logoName=$logoType==1?'powered2':'powered';
if(self::$_application!==null)
{
$am=self::$_application->getAssetManager();
- $url=$am->publishFilePath(self::getPathOfNamespace('System.powered','.gif'));
+ $url=$am->publishFilePath(self::getPathOfNamespace('System.'.$logoName,'.gif'));
}
else
- $url='http://www.pradosoft.com/images/powered.gif';
+ $url='http://www.pradosoft.com/images/'.$logoName.'.gif';
return '<a title="Powered by PRADO" href="http://www.pradosoft.com/" target="_blank"><img src="'.$url.'" style="border-width:0px;" alt="Powered by PRADO" /></a>';
}
diff --git a/framework/powered2.gif b/framework/powered2.gif Binary files differnew file mode 100644 index 00000000..c31c3fb7 --- /dev/null +++ b/framework/powered2.gif |