Plugin Directory

Changeset 1268158


Ignore:
Timestamp:
10/18/2015 12:52:36 PM (10 years ago)
Author:
markzero
Message:

add hover/active color

Location:
awesome-sticky-header/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • awesome-sticky-header/trunk/awesomeheader.php

    r1198802 r1268158  
    44Contributors: markzero,nikolicdragan
    55Description: Awesome Sticky Header is a WordPress plugin that lets you control your sticky header.
    6 Version: 1.0.0
     6Version: 1.0.1
    77Plugin URI: https://awesomeheader.com/
    88Author: DevCanyon
     
    3939
    4040
    41 define('ASMH_VERSION', '1.0.0');
     41define('ASMH_VERSION', '1.0.1');
    4242define('ASMH_PATH', trailingslashit(dirname(__FILE__)));
    4343define('ASMH_URL', plugins_url('', __FILE__));
  • awesome-sticky-header/trunk/lib/css-live.php

    r1198799 r1268158  
    291291}
    292292
     293<?php if (!empty($s['middle_menu_item_background_active_color'])) { ?>
    293294.asmh-header .primary > ul > li.active,
    294295.asmh-header .primary > ul > li.current-menu-item,
    295296.asmh-header .primary > ul > li.current_page_item
    296297{
    297 <?php if ( $s['middle_transparency_level'] == 100 ) { ?>
    298   background-color: #<?php echo $s['middle_menu_item_background_active_color']?>;
     298<?php if ($s['middle_transparency_level'] == 100) { ?>
     299  background-color: #<?php echo $s['middle_menu_item_background_active_color']; ?>;
    299300<?php } else { ?>
    300301  background-color: rgba(<?php
     
    305306<?php } ?>
    306307}
     308<?php } ?>
    307309
    308310.asmh-header .primary > ul > li:hover
     
    763765.asmh-header .primary .current-menu-item > a,
    764766.asmh-header .primary .current-menu-parent > a,
    765 .asmh-header .primary .current-menu-ancestor > a
     767.asmh-header .primary .current-menu-ancestor > a,
     768.asmh-header .primary li.active > a
    766769{
    767770  color: <?php echo $c::to_color($s['middle_active_color']); ?> !important;
     771}
     772<?php } ?>
     773
     774<?php if (!empty($s['middle_hover_active_color'])) { ?>
     775.asmh-header .primary .current-menu-item:hover > a,
     776.asmh-header .primary .current-menu-parent:hover > a,
     777.asmh-header .primary .current-menu-ancestor:hover > a,
     778.asmh-header .primary li.active:hover > a
     779{
     780  color: <?php echo $c::to_color($s['middle_hover_active_color']); ?> !important;
    768781}
    769782<?php } ?>
  • awesome-sticky-header/trunk/lib/main.php

    r1198799 r1268158  
    952952      name="asmh_settings[<?php echo $type; ?>_active_color]"
    953953      value="<?php echo $this->settings[$type . '_active_color']; ?>">
     954
     955    <span style="margin-left: 7px;"><?php _e('Hover/Active', ASMH_LANG); ?></span>
     956    <input type="text" class="color {adjust:false}"
     957      name="asmh_settings[<?php echo $type; ?>_hover_active_color]"
     958      value="<?php echo $this->settings[$type . '_hover_active_color']; ?>">
    954959<?php
    955960  }
     
    12851290                      'middle_hover_color' => null,
    12861291                      'middle_active_color' => null,
     1292                      'middle_hover_active_color' => null,
    12871293                      'has_search' => true,
    12881294                      'has_secondary' => false,
Note: See TracChangeset for help on using the changeset viewer.