You are here

function humanstxt_help in Humans.txt 8

Same name and namespace in other branches
  1. 2.x humanstxt.module \humanstxt_help()

Implements hook_help().

File

./humanstxt.module, line 14
Humanstxt module file.

Code

function humanstxt_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.humanstxt':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Helper module to place and manage a <em>humans.txt
                          </em> file in your site.') . '</p>';
      $output .= '<p>' . t('For more information, visit the main site of the
                          project <a href=":url">Humans.txt</a>.', [
        ':url' => 'http://humanstxt.org/',
      ]) . '</p>';
      $output .= '<p>' . t('You can see an example of the humans.txt file
                          <a href=":example">here</a>.', [
        ':example' => 'http://humanstxt.org/humans.txt',
      ]) . '</p>';
      $output .= '<h3>' . t('Questions') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('What is humans.txt?') . '</dt>';
      $output .= '<dd>' . t('It is an initiative for knowing the people behind a
                           website, Is a TXT file that contains information
                           about the different people who have contributed to
                           building the website.') . '</dd>';
      $output .= '<dt>' . t('Who should I mention?') . '</dt>';
      $output .= '<dd>' . t('Whoever you want to, provided they wish you to do
                           so. You can mention the developer, the designer,
                           the copywriter, the webmaster, the SEO, SEM or
                           SMO... As you can see, the number of people who may
                           take part of the creation of a site can be big, so
                           the list is almost endless.') . '</dd>';
      $output .= '<dt>' . t('Internet is for humans...') . '</dt>';
      $output .= '<dd>' . t('We are always saying that, but the only file we
                           generate is one full of additional information for
                           the searchbots: robots.txt. Then why not doing one
                           for ourselves?') . '</dd>';
      $output .= '</dl>';
      return $output;
  }
}