| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/stirizo/wp-content/plugins/wpforms/src/Emails/Templates/ |
Upload File : |
<?php
namespace WPForms\Emails\Templates;
/**
* Email Summaries email template class.
*
* @since 1.5.4
*/
class Summary extends General {
/**
* Template slug.
*
* @since 1.5.4
*
* @var string
*/
const TEMPLATE_SLUG = 'summary';
/**
* Get header image URL from settings.
*
* @since 1.5.4
*
* @return array
*/
protected function get_header_image() {
$img = [
'url' => \wpforms_setting( 'email-header-image' ),
];
if ( ! empty( $img['url'] ) ) {
return $img;
}
// Set specific percentage WPForms logo width for modern email clients.
$this->set_args(
[
'style' => [
'header_image_max_width' => '45%',
],
]
);
// Set specific WPForms logo width in pixels for MS Outlook and old email clients.
return [
'url' => \WPFORMS_PLUGIN_URL . 'assets/images/logo.png',
'width' => 250,
];
}
}