Files
doitinpoland.com/wp-content/plugins/wpml-translation-management/classes/menu/translation-services/NoSiteKeyTemplate.php
2023-09-12 21:41:04 +02:00

31 lines
644 B
PHP

<?php
namespace WPML\TM\Menu\TranslationServices;
class NoSiteKeyTemplate {
const TEMPLATE = 'no-site-key.twig';
/**
* @param callable $templateRenderer
*/
public static function render( $templateRenderer ) {
echo $templateRenderer( self::get_no_site_key_model(), self::TEMPLATE );
}
/**
* @return array
*/
private static function get_no_site_key_model() {
return [
'registration' => [
'link' => admin_url( 'plugin-install.php?tab=commercial#repository-wpml' ),
'text' => __(
'Please register WPML to enable the professional translation option',
'wpml-translation-management'
),
],
];
}
}