elevate_image_zoom-9.1.x-dev/elevate_image_zoom.module

elevate_image_zoom.module
<?php

/**
 * @file
 * Contains elevate_image_zoom.module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_theme().
 */
function elevate_image_zoom_theme() {
  return [
    'elevate_image_zoom_template' => [
      'variables' => [
        'elevate_images' => NULL,
        'elevate_class' => NULL,
        'elevate_has_gallery' => NULL,
      ],
      'template' => 'elevate-image-zoom-template',
    ],
  ];
}

/**
 * Implements hook_help().
 */
function elevate_image_zoom_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.elevate_image_zoom':
      $output = '';
      $output .= '<h3>' . t('About:') . '</h3>';
      $output .= '<p>' . t('Elevate image zoom module provides a field formatter that allows you to apply it to your image field. This will provide different types of image zoom features.') . '</br>';
      $output .= '<h3>' . t('Zoom types are:') . '</h3></br>';
      $output .= '1. ' . t('Basic zoom') . '</br>';
      $output .= '2. ' . t('Tint zoom') . '</br>';
      $output .= '3. ' . t('Inner zoom') . '</br>';
      $output .= '4. ' . t('Lens zoom') . '</br>';
      $output .= '5. ' . t('Mouse wheel zoom') . '</p>';
      $output .= '<h3>' . t('Installation:') . '</h3>';
      $output .= '<p>' . t('Elevate image zoom Depends upon elevate zoom library so you have to <a href=":repository_url" target="_blank">Download</a> the elevate zoom library and save it to /libraries/elevatezoom', [':repository_url' => 'http://www.elevateweb.co.uk/download-file']) . '</p>';
      $output .= '<p>' . t('After saving it download and enable the Elevate image zoom module.') . '</p>';
      return $output;

    default:

  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc