Changeset 2338301
- Timestamp:
- 07/09/2020 09:12:05 PM (6 years ago)
- Location:
- mobile-responsive-sidebar/trunk
- Files:
-
- 4 edited
-
css/responsive-sidebar-style.css (modified) (2 diffs)
-
mobile-responsive-sidebar.php (modified) (2 diffs)
-
screenshot-1.png (modified) (previous)
-
screenshot-2.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
mobile-responsive-sidebar/trunk/css/responsive-sidebar-style.css
r2307366 r2338301 8 8 9 9 .open-sidebar { 10 top: 10%; 10 position: absolute!important; 11 top: 0%; 11 12 padding: 0.3em; 12 position: absolute;13 13 min-width: 300px; 14 14 border: 1px solid #1b1a1a; 15 15 background-color: #fff; 16 z-index: 999 9;16 z-index: 999!important; 17 17 left: -100%; 18 18 -webkit-animation: slide 0.5s forwards; … … 38 38 position: fixed; 39 39 z-index: 999999; 40 bottom: 0;40 bottom: 2%; 41 41 left: 50%; 42 42 transform: translate(-50%, 0); 43 43 color: #1b1a1a; 44 44 background-color: #ffffff; 45 display: inline-block;45 /*display: inline-block;*/ 46 46 border-radius: 50px; 47 47 box-shadow: 0px 0px 2px #1b1a1a; -
mobile-responsive-sidebar/trunk/mobile-responsive-sidebar.php
r2307366 r2338301 17 17 // If this file is called directly, abort. 18 18 if ( ! defined( 'WPINC' ) ) { 19 die;19 die; 20 20 } 21 21 // Load plugins scripts 22 22 function mrs_3xweb_scriptLoader(){ 23 23 // 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__ )); 26 32 27 33 wp_enqueue_script('sidebar-revolver-js'); … … 32 38 // show sidebar action button 33 39 function 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 37 47 } 38 add_action('the_content', 'mrs_3xweb_iconLoader'); 48 // insert after wp is fully loaded, makes it compatible with elementor 49 add_action('wp_loaded', 'mrs_3xweb_iconLoader');
Note: See TracChangeset
for help on using the changeset viewer.