Plugin Directory

Changeset 2338301


Ignore:
Timestamp:
07/09/2020 09:12:05 PM (6 years ago)
Author:
3xweb
Message:

update elementor compatibility

Location:
mobile-responsive-sidebar/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mobile-responsive-sidebar/trunk/css/responsive-sidebar-style.css

    r2307366 r2338301  
    88
    99    .open-sidebar {
    10         top: 10%;
     10        position: absolute!important;
     11        top: 0%;
    1112        padding: 0.3em;
    12         position: absolute;
    1313        min-width: 300px;
    1414        border: 1px solid #1b1a1a;
    1515        background-color: #fff;
    16         z-index: 9999;
     16        z-index: 999!important;
    1717        left: -100%;
    1818        -webkit-animation: slide 0.5s forwards;
     
    3838        position: fixed;
    3939        z-index: 999999;
    40         bottom: 0;
     40        bottom: 2%;
    4141        left: 50%;
    4242        transform: translate(-50%, 0);
    4343        color: #1b1a1a;
    4444        background-color: #ffffff;
    45         display: inline-block;
     45        /*display: inline-block;*/
    4646        border-radius: 50px;
    4747        box-shadow: 0px 0px 2px #1b1a1a;
  • mobile-responsive-sidebar/trunk/mobile-responsive-sidebar.php

    r2307366 r2338301  
    1717// If this file is called directly, abort.
    1818if ( ! defined( 'WPINC' ) ) {
    19     die;
     19    die;
    2020}
    2121// Load plugins scripts
    2222function mrs_3xweb_scriptLoader(){
    2323    // Register each script
    24     wp_register_script('sidebar-revolver-js', plugins_url('/js/sidebarRevolver.js', __FILE__ ));
    25     wp_register_style('sidebar-style-css', plugins_url('/css/responsive-sidebar-style.css',__FILE__ ));
     24    wp_register_script(
     25        'sidebar-revolver-js',
     26        plugins_url('/js/sidebarRevolver.js', __FILE__ ),
     27        array( 'jquery' ),
     28        false,
     29        true
     30    );
     31    wp_register_style('sidebar-style-css', plugins_url('/css/responsive-sidebar-style.css',__FILE__ ));
    2632   
    2733    wp_enqueue_script('sidebar-revolver-js');
     
    3238// show sidebar action button
    3339function mrs_3xweb_iconLoader() {
    34     ?>
    35         <i id="revolver-icon" class="dashicons dashicons-menu sidebar-rev alignleft"></i>
    36     <?php
     40    // loads only on frontend
     41    if ( !is_admin() ) {
     42        ?>
     43        <i id="revolver-icon" class="dashicons dashicons-menu sidebar-rev alignleft"></i>
     44        <?php
     45    }
     46   
    3747}
    38 add_action('the_content', 'mrs_3xweb_iconLoader');
     48// insert after wp is fully loaded, makes it compatible with elementor
     49add_action('wp_loaded', 'mrs_3xweb_iconLoader');
Note: See TracChangeset for help on using the changeset viewer.