'
. $this->getStatusSectionHtml($options['watermarks-enabled'])
. '
'
. '
' . esc_html('Use Defaults', ESG_TEXTDOMAIN) .'
'
. '
'
. '
'
. $this->getWatermarkSectionHtml($options, 'Watermark Settings')
. '
';
return $str . $content;
}
/**
* add global settings menu item
* @param $str
* @return string
*/
public function addGlobalSettingsMenu($str)
{
return $str
. ''
. '
'
. '
' . esc_html('Requirements', ESG_TEXTDOMAIN) . '
'
. '
'
. '
'
. '
'
. '- ' . $this->esgRequirementsCheckmark($requirements['upload']) . ' Upload dir writable
'
. '
'
. '
'
. '
'
. '
'
. '- ' . $this->esgRequirementsCheckmark($requirements['GD']) . ' GD
'
. '- ' . $this->esgRequirementsCheckmark($requirements['GD_freetype']) . ' GD FreeType ( Required for text watermarks )
'
. '- ' . $this->esgRequirementsCheckmark($requirements['Imagick']) . ' ImageMagick
'
. '
'
. '
'
. '
'
. $this->getStatusSectionHtml($options['watermarks-enabled'])
. '
'
. '
' . esc_html('Settings', ESG_TEXTDOMAIN) . '
'
. '
'
. '
'
. '
'
. '
' . esc_html('Select PHP library to process images', ESG_TEXTDOMAIN) . ''
. '
'
. '
'
. '
'
. '
' . esc_html('Set JPEG quality. 1 = worst quality / smaller size, 100 = best quality / bigger size', ESG_TEXTDOMAIN) . ''
. '
'
. '
'
. $this->getWatermarkSectionHtml($options)
. '
';
return $str . $content;
}
/**
* get status section html
* @param string $enabled
* @return string
*/
protected function getStatusSectionHtml($enabled)
{
return
'