Beispiel #1
0
 public function __construct(&$subject, $config = array())
 {
     parent::__construct($subject, $config);
     JHTML::register('users.jform_user_profile_avatar', function ($value) {
         echo '<img
                 
                 src="' . JURI::root() . 'images/users/' . $value . '?rand=' . rand(0, 99999) . '"/>';
     });
     JHtml::register('users.jform_business_profile_business_logo', function ($value) {
         echo '<img
                 
                 src="' . JURI::root() . 'images/business/' . $value . '?rand=' . rand(0, 99999) . '"/>';
     });
     JHtml::register('users.jform_business_profile_business_banner', function ($value) {
         echo '<img
                 height="100"
                 src="' . JURI::root() . 'images/business/' . $value . '?rand=' . rand(0, 99999) . '"/>';
     });
 }