Plugin Directory

Changeset 1946372


Ignore:
Timestamp:
09/24/2018 08:13:28 PM (7 years ago)
Author:
scriptcoil
Message:

# Fixed issue: Space in header when logged in. #

Location:
sticky-header-oceanwp/trunk
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • sticky-header-oceanwp/trunk/main.js

    r1894770 r1946372  
    1212
    1313            var site_header = $('#site-header');
    14             var wpadmin_height = $('#wpadminbar').height() > 0 ? $('#wpadminbar').height() : false;
     14            var wpadmin_height = $('#wpadminbar').height() > 0 ? $('#wpadminbar').height() : 0;
    1515            var top_bars = $('#top-bar-wrap').height();
    1616            var header_status = $(window).scrollTop() >= top_bars;
  • sticky-header-oceanwp/trunk/sticky-header-oceanwp.php

    r1894766 r1946372  
    33 * Plugin Name:         Sticky Header OceanWP
    44 * Description:         Want a new fresh sticky header like everyone else, with our plugin you can get the best and better sticky header that you ever seen
    5  * Version:             1.0.2
     5 * Version:             1.0.4
    66 * Author:              Oren Hahiashvili
    77 * Author URI:          https://www.script.co.il
    88 * Requires at least:   3.5.0
    9  * Tested up to:        4.9.5
     9 * Tested up to:        4.9.8
    1010 *
    1111 * Text Domain: sticky-header-oceanwp
     
    3232    function __construct() {
    3333        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
     34        add_action( 'init', array( $this, 'myplugin_load_textdomain' ) );
    3435    }
    3536
     37   
     38    function myplugin_load_textdomain() {
     39        load_plugin_textdomain( 'sticky-header-oceanwp', false, basename( dirname( __FILE__ ) ) . '/languages' );
     40    }
     41   
     42   
    3643    function admin_menu() {
    3744        add_options_page(
    3845            'Ocean Theme Sticky Header',
    39             'Sticky Header',
     46            __('Sticky Header', 'sticky-header-oceanwp'),
    4047            'manage_options',
    4148            'sticky-header-oceanwp',
     
    6673       
    6774?>
    68         <h1>Select your sticky header style</h1>
     75        <h1><?php _e('Select your sticky header style', 'sticky-header-oceanwp'); ?></h1>
    6976        <form method="post">
    7077            <label><?php _e('Style', 'sticky-header-oceanwp') ?>: <select name="oceanwp_header_style">
Note: See TracChangeset for help on using the changeset viewer.