Yaffs site version 1.1
[yaffs-website] / web / modules / contrib / slick / tests / modules / slick_test / src / SlickSkinTest.php
diff --git a/web/modules/contrib/slick/tests/modules/slick_test/src/SlickSkinTest.php b/web/modules/contrib/slick/tests/modules/slick_test/src/SlickSkinTest.php
new file mode 100644 (file)
index 0000000..8df53e6
--- /dev/null
@@ -0,0 +1,81 @@
+<?php
+
+namespace Drupal\slick_test;
+
+use Drupal\slick\SlickSkinInterface;
+
+/**
+ * Implements SlickSkinInterface as registered via hook_slick_skins_info().
+ */
+class SlickSkinTest implements SlickSkinInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function skins() {
+    $path  = base_path() . drupal_get_path('module', 'slick_test');
+    $skins = [
+      'test' => [
+        'name' => 'Test',
+        'description' => t('Test slick skins.'),
+        'group' => 'main',
+        'provider' => 'slick_test',
+        'css' => [
+          'theme' => [
+            $path . '/css/slick.theme--test.css' => [],
+          ],
+        ],
+        'options' => [
+          'zoom' => TRUE,
+        ],
+      ],
+    ];
+
+    return $skins;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function arrows() {
+    $path  = base_path() . drupal_get_path('module', 'slick_test');
+    $skins = [
+      'arrows' => [
+        'name' => 'Arrows',
+        'description' => t('Test slick arrows.'),
+        'provider' => 'slick_test',
+        'group' => 'arrows',
+        'css' => [
+          'theme' => [
+            $path . '/css/slick.theme--arrows.css' => [],
+          ],
+        ],
+      ],
+    ];
+
+    return $skins;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function dots() {
+    $path  = base_path() . drupal_get_path('module', 'slick_test');
+    $skins = [
+      'dots' => [
+        'name' => 'Dots',
+        'description' => t('Test slick dots.'),
+        'provider' => 'slick_test',
+        'group' => 'dots',
+        'css' => [
+          'theme' => [
+            $path . '/css/slick.theme--dots.css' => [],
+          ],
+        ],
+      ],
+    ];
+
+    return $skins;
+  }
+
+}