summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php8
1 files changed, 5 insertions, 3 deletions
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>';
}