diff --git a/text_resize.info.yml b/text_resize.info.yml index 7b00cb5..9537cbd 100755 --- a/text_resize.info.yml +++ b/text_resize.info.yml @@ -1,6 +1,7 @@ name: 'Text Resize' description: 'Creates a block that allows your users to resize text on the page.' core: 8.x +core_version_requirement: ^8 || ^9 configure: text_resize_settings package: 'User interface' type: module diff --git a/text_resize.module b/text_resize.module index 8524441..a53fcff 100755 --- a/text_resize.module +++ b/text_resize.module @@ -6,6 +6,7 @@ */ use Drupal\Core\Routing\RouteMatchInterface; +use Drupal\Core\Url; /** * Implements hook_help(). @@ -13,7 +14,7 @@ function text_resize_help($route_name, RouteMatchInterface $route_match) { switch ($route_name) { case 'help.page.text_resize': - $output = '

' . t('The Text Resize module creates a block on the page that can be used by your site visitors to quickly and easily adjust the sizing of text as it displays for them. In order to enable the functionality of the Text Resize module, you will need to make sure that you have enabled the Text Resize block on the blocks page. You will also probably want to configure the behavior of the module at the administration pages listed at the bottom of this page.', ['!block' => (\Drupal::moduleHandler()->moduleExists('block')) ? \Drupal::url('block.admin_display') : '#']) . '

'; + $output = '

' . t('The Text Resize module creates a block on the page that can be used by your site visitors to quickly and easily adjust the sizing of text as it displays for them. In order to enable the functionality of the Text Resize module, you will need to make sure that you have enabled the Text Resize block on the blocks page. You will also probably want to configure the behavior of the module at the administration pages listed at the bottom of this page.', ['!block' => (\Drupal::moduleHandler()->moduleExists('block')) ? Url::fromRoute('block.admin_display')->toString() : '#']) . '

'; $output .= '

' . t('Changing How Text Resize Looks') . '

'; $output .= '

' . t('Method 1: Just CSS') . '

'; $output .= '

' . t('Text Resize creates two stylized hyperlinks on the page (and a third if you enable the reset button option). You can add new styles to your own theme\'s stylesheet that will override the default CSS styles produced by Text Resize. The ids you\'ll want to add and modify in your stylesheet are:') . '

';