Commit bd355718 authored by Harsh Panchal's avatar Harsh Panchal Committed by Deepak Bhati
Browse files

Issue #3285333 by Harsh panchal, heni_deepak: Remove unused code from .Theme file

parent 59507e8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+3 −22
Original line number Diff line number Diff line
@@ -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'
@@ -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
+2 −1
Original line number Diff line number Diff line
(function($) {

    Drupal.behaviors.exampleModule = {
    Drupal.behaviors.ekamtheme = {
        attach: function(context, settings) {

            'use strict';
@@ -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();