#!/usr/local/bin/php -d disable_functions="" render('branding'); $brandNameFlashMessage = ''; $brandLogoFlashMessage = ''; $brand = new Branding(); $params = getPOSTValues(); if(!empty($params['newName'])){ $response = $brand->setBrandName($params['newName']); if($response['status']=='success'){ $brandNameFlashMessage = '
Success! '.$response['msg'].'
'; } else { $brandNameFlashMessage = '
Error occured! '.$response['msg'].'
'; } } if(!empty($params['newLogo'])){ if(!$brand->validateLogo($params['newLogo'])){ $brandLogoFlashMessage = '
Ivalid File! Logo must have jpeg or jpg extension and cannot have width more than ' . $brand->getMaxLogoWidth(). 'px and height ' . $brand->getMaxLogoHeight() . 'px.
'; }elseif($brand->setBrandLogo($params['newLogo'])){ $brandLogoFlashMessage = '
Success! Logo changed successfully. Please force browser to reload cache to see changes.
'; } else { $brandLogoFlashMessage = '
Error occured! Logo changing failure!.
'; } } ?>
On this page you can change how the addon looks for the customers.
<?php echo $brand->getBrandName(); ?>

Setup new branding: