add newsletter changes
This commit is contained in:
@@ -285,6 +285,10 @@ class Helper {
|
||||
return \Yii::$app->params ['company'] == 'movar';
|
||||
}
|
||||
|
||||
public static function isCompanyGyor() {
|
||||
return \Yii::$app->params ['company'] == 'gyor';
|
||||
}
|
||||
|
||||
public static function isUserCartOn() {
|
||||
return \Yii::$app->params ['user_cart_on'] == true;
|
||||
}
|
||||
@@ -392,5 +396,14 @@ class Helper {
|
||||
return $randomString;
|
||||
}
|
||||
|
||||
public static function getWebUrl(){
|
||||
if ( self::isCompanyMovar()){
|
||||
return "https://fitnessadmin.hu/fitness-web";
|
||||
}else if ( self::isCompanyGyor()){
|
||||
return "https://fitnessadmin.hu/cutler";
|
||||
}else{
|
||||
return "https://localhost/fitness-web";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user