Loading css/style.css +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ user-select: none; border: 1px solid transparent; padding: .375rem .75rem; table font-size: 1rem; font-size: 1rem; line-height: 1.5; border-radius: .25rem; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; Loading ekam.theme +3 −22 Original line number Diff line number Diff line Loading @@ -181,7 +181,9 @@ function _ekam_theme_body_id(){ return $body_id; } /** * Implements hook_preprocess_field(). */ function ekam_preprocess_field(&$vars) { if ( $vars['field_type'] == 'entity_reference_revisions' Loading @@ -194,25 +196,4 @@ function ekam_preprocess_field(&$vars) { } } /** * hook_form_alter() * Search form hook make custom submit button. */ // function ekam_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { // if ($form_id == 'search_block_form'){ // $form['actions']['submit'] = [ // '#type' => 'submit', // '#theme' => 'button', // '#button_type' => 'image', // '#attributes' => [ // 'src' => '/themes/ekam/images/search.png', // '#title' => t('Search'), // ] // ]; // } // } ?> No newline at end of file js/main.js +2 −1 Original line number Diff line number Diff line (function($) { Drupal.behaviors.exampleModule = { Drupal.behaviors.ekamtheme = { attach: function(context, settings) { 'use strict'; Loading @@ -16,6 +16,7 @@ var menu = $('#sidebar'); var hieghtThreshold = $(".sidebar").offset().top; var hieghtThreshold_end = $(".sidebar").offset().top + $(".sidebar").height(); $(window).scroll(function() { var scroll = $(window).scrollTop(); Loading Loading
css/style.css +1 −1 Original line number Diff line number Diff line Loading @@ -68,7 +68,7 @@ user-select: none; border: 1px solid transparent; padding: .375rem .75rem; table font-size: 1rem; font-size: 1rem; line-height: 1.5; border-radius: .25rem; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; Loading
ekam.theme +3 −22 Original line number Diff line number Diff line Loading @@ -181,7 +181,9 @@ function _ekam_theme_body_id(){ return $body_id; } /** * Implements hook_preprocess_field(). */ function ekam_preprocess_field(&$vars) { if ( $vars['field_type'] == 'entity_reference_revisions' Loading @@ -194,25 +196,4 @@ function ekam_preprocess_field(&$vars) { } } /** * hook_form_alter() * Search form hook make custom submit button. */ // function ekam_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) { // if ($form_id == 'search_block_form'){ // $form['actions']['submit'] = [ // '#type' => 'submit', // '#theme' => 'button', // '#button_type' => 'image', // '#attributes' => [ // 'src' => '/themes/ekam/images/search.png', // '#title' => t('Search'), // ] // ]; // } // } ?> No newline at end of file
js/main.js +2 −1 Original line number Diff line number Diff line (function($) { Drupal.behaviors.exampleModule = { Drupal.behaviors.ekamtheme = { attach: function(context, settings) { 'use strict'; Loading @@ -16,6 +16,7 @@ var menu = $('#sidebar'); var hieghtThreshold = $(".sidebar").offset().top; var hieghtThreshold_end = $(".sidebar").offset().top + $(".sidebar").height(); $(window).scroll(function() { var scroll = $(window).scrollTop(); Loading