Browse Source

added titles attributes to studio, random, search links

Bachir Soussi Chiadmi 6 years ago
parent
commit
d339fdd732

+ 3 - 1
sites/all/modules/figli/edlp_corpus/edlp_corpus.module

@@ -238,10 +238,12 @@ function edlp_corpus_page_attachments(array &$attachments) {
   $url = Url::fromRoute('edlp_corpus.corpusjson');
   $attachments['#attached']['drupalSettings']['edlp_corpus']['load_corpus_ajax_url'] = $url->getInternalPath();
 
-
   // load corpus
   $url = Url::fromRoute('edlp_corpus.articlesindex');
   $attachments['#attached']['drupalSettings']['edlp_corpus']['articlesindex_url'] = $url->getInternalPath();
+
+  // random btn link title
+  $attachments['#attached']['drupalSettings']['edlp_corpus']['random_link_title'] = t('Shuffle the selection');
 }
 
 

+ 1 - 0
sites/all/modules/figli/edlp_search/src/Plugin/Block/EdlpSearchLinkBlock.php

@@ -29,6 +29,7 @@ class EdlpSearchLinkBlock extends BlockBase {
         'attributes' => array(
           'data-drupal-link-system-path' => $url->getInternalPath(),
           'class' => array('ajax-link'),
+          'title' => t('Search sounds by title, speaker, language, genre or entry'),
         )
       )
     );

+ 1 - 0
sites/all/modules/figli/edlp_studio/src/Plugin/Block/StudioLinkBlock.php

@@ -60,6 +60,7 @@ class StudioLinkBlock extends BlockBase  implements ContainerFactoryPluginInterf
           'attributes' => array(
             'data-drupal-link-system-path' => $url->getInternalPath(),
             'class' => array('ajax-link'),
+            'title' => t('The studio displays your bookmarked sounds. You can save them and create your own playlists'),
           )
         )
       );

File diff suppressed because it is too large
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js


+ 5 - 1
sites/all/themes/custom/edlptheme/assets/scripts/main.js

@@ -1316,7 +1316,11 @@
       this.active = false;
       this.playlist = playlist;
       this.path =  drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+'#random'
-      this.$btn = $('<a>').html('Shuffle').attr('href',this.path).addClass('random-player-btn');
+      this.$btn = $('<a>')
+        .html('Shuffle')
+        .attr('href',this.path)
+        .attr('title', drupalSettings.edlp_corpus.random_link_title)
+        .addClass('random-player-btn');
       this.init();
     };
     RandomPlayer.prototype = {

Some files were not shown because too many files changed in this diff