use static for logo
This commit is contained in:
parent
410dfc992b
commit
6fb520cb4e
|
|
@ -940,6 +940,12 @@ abstract class Show extends Component
|
||||||
return $logo;
|
return $logo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static $content;
|
||||||
|
|
||||||
|
if (! empty($content)) {
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
$media_id = (! empty($this->document->contact->logo) && ! empty($this->document->contact->logo->id)) ? $this->document->contact->logo->id : setting('company.logo');
|
$media_id = (! empty($this->document->contact->logo) && ! empty($this->document->contact->logo->id)) ? $this->document->contact->logo->id : setting('company.logo');
|
||||||
|
|
||||||
$media = Media::find($media_id);
|
$media = Media::find($media_id);
|
||||||
|
|
@ -985,7 +991,9 @@ abstract class Show extends Component
|
||||||
|
|
||||||
$extension = File::extension($path);
|
$extension = File::extension($path);
|
||||||
|
|
||||||
return 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
$content = 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
||||||
|
|
||||||
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getBackgroundColor($type, $backgroundColor)
|
protected function getBackgroundColor($type, $backgroundColor)
|
||||||
|
|
|
||||||
|
|
@ -220,6 +220,12 @@ abstract class Template extends Component
|
||||||
return $logo;
|
return $logo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static $content;
|
||||||
|
|
||||||
|
if (! empty($content)) {
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
$media_id = (! empty($this->document->contact->logo) && ! empty($this->document->contact->logo->id)) ? $this->document->contact->logo->id : setting('company.logo');
|
$media_id = (! empty($this->document->contact->logo) && ! empty($this->document->contact->logo->id)) ? $this->document->contact->logo->id : setting('company.logo');
|
||||||
|
|
||||||
$media = Media::find($media_id);
|
$media = Media::find($media_id);
|
||||||
|
|
@ -265,7 +271,9 @@ abstract class Template extends Component
|
||||||
|
|
||||||
$extension = File::extension($path);
|
$extension = File::extension($path);
|
||||||
|
|
||||||
return 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
$content = 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
||||||
|
|
||||||
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getBackgroundColor($type, $backgroundColor)
|
protected function getBackgroundColor($type, $backgroundColor)
|
||||||
|
|
|
||||||
|
|
@ -499,6 +499,12 @@ abstract class Show extends Component
|
||||||
return $logo;
|
return $logo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static $content;
|
||||||
|
|
||||||
|
if (! empty($content)) {
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
$media_id = (!empty($this->transaction->contact->logo) && !empty($this->transaction->contact->logo->id)) ? $this->transaction->contact->logo->id : setting('company.logo');
|
$media_id = (!empty($this->transaction->contact->logo) && !empty($this->transaction->contact->logo->id)) ? $this->transaction->contact->logo->id : setting('company.logo');
|
||||||
|
|
||||||
$media = Media::find($media_id);
|
$media = Media::find($media_id);
|
||||||
|
|
@ -544,7 +550,9 @@ abstract class Show extends Component
|
||||||
|
|
||||||
$extension = File::extension($path);
|
$extension = File::extension($path);
|
||||||
|
|
||||||
return 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
$content = 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
||||||
|
|
||||||
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getRouteButtonAddNew($type, $routeButtonAddNew)
|
protected function getRouteButtonAddNew($type, $routeButtonAddNew)
|
||||||
|
|
|
||||||
|
|
@ -269,6 +269,12 @@ abstract class Template extends Component
|
||||||
return $logo;
|
return $logo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static $content;
|
||||||
|
|
||||||
|
if (! empty($content)) {
|
||||||
|
return $content;
|
||||||
|
}
|
||||||
|
|
||||||
$media_id = (!empty($this->transaction->contact->logo) && !empty($this->transaction->contact->logo->id)) ? $this->transaction->contact->logo->id : setting('company.logo');
|
$media_id = (!empty($this->transaction->contact->logo) && !empty($this->transaction->contact->logo->id)) ? $this->transaction->contact->logo->id : setting('company.logo');
|
||||||
|
|
||||||
$media = Media::find($media_id);
|
$media = Media::find($media_id);
|
||||||
|
|
@ -314,7 +320,9 @@ abstract class Template extends Component
|
||||||
|
|
||||||
$extension = File::extension($path);
|
$extension = File::extension($path);
|
||||||
|
|
||||||
return 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
$content = 'data:image/' . $extension . ';base64,' . base64_encode($image);
|
||||||
|
|
||||||
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getTextContentTitle($type, $textContentTitle)
|
protected function getTextContentTitle($type, $textContentTitle)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue