Changeset 2432652
- Timestamp:
- 12/06/2020 05:43:16 PM (5 years ago)
- Location:
- header-footer-composer
- Files:
-
- 55 added
- 5 edited
-
assets/banner-1544x500.png (added)
-
assets/banner-772x250.png (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
tags/1.0.3 (added)
-
tags/1.0.3/LICENSE.txt (added)
-
tags/1.0.3/README.txt (added)
-
tags/1.0.3/admin (added)
-
tags/1.0.3/admin/class-header-footer-composer-admin.php (added)
-
tags/1.0.3/admin/css (added)
-
tags/1.0.3/admin/css/header-footer-composer-admin.css (added)
-
tags/1.0.3/admin/index.php (added)
-
tags/1.0.3/admin/js (added)
-
tags/1.0.3/admin/js/header-footer-composer-admin.js (added)
-
tags/1.0.3/admin/partials (added)
-
tags/1.0.3/admin/partials/header-footer-composer-admin-display.php (added)
-
tags/1.0.3/header-footer-composer.php (added)
-
tags/1.0.3/includes (added)
-
tags/1.0.3/includes/class-header-footer-composer-activator.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-deactivator.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-i18n.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-loader.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-metabox.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-post-type.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-render.php (added)
-
tags/1.0.3/includes/class-header-footer-composer-widgets.php (added)
-
tags/1.0.3/includes/class-header-footer-composer.php (added)
-
tags/1.0.3/includes/index.php (added)
-
tags/1.0.3/includes/widgets (added)
-
tags/1.0.3/includes/widgets/hfc-navmenu.php (added)
-
tags/1.0.3/includes/widgets/hfc-overlay-nav.php (added)
-
tags/1.0.3/includes/widgets/hfc-sitelogo.php (added)
-
tags/1.0.3/includes/widgets/hfc-sitetitle.php (added)
-
tags/1.0.3/includes/widgets/hfc-stickyheader.php (added)
-
tags/1.0.3/index.php (added)
-
tags/1.0.3/languages (added)
-
tags/1.0.3/languages/header-footer-composer.pot (added)
-
tags/1.0.3/public (added)
-
tags/1.0.3/public/class-header-footer-composer-public.php (added)
-
tags/1.0.3/public/css (added)
-
tags/1.0.3/public/css/header-footer-composer-public.css (added)
-
tags/1.0.3/public/css/hfc-navmenu.css (added)
-
tags/1.0.3/public/css/hfc-overlay-nav.css (added)
-
tags/1.0.3/public/index.php (added)
-
tags/1.0.3/public/js (added)
-
tags/1.0.3/public/js/header-footer-composer-public.js (added)
-
tags/1.0.3/public/js/hfc-navmenu.js (added)
-
tags/1.0.3/public/js/hfc-overlay-nav.js (added)
-
tags/1.0.3/public/partials (added)
-
tags/1.0.3/public/partials/header-footer-composer-public-display.php (added)
-
tags/1.0.3/uninstall.php (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/header-footer-composer.php (modified) (2 diffs)
-
trunk/includes/widgets/hfc-navmenu.php (modified) (13 diffs)
-
trunk/public/css/hfc-navmenu.css (modified) (13 diffs)
-
trunk/public/js/hfc-navmenu.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
header-footer-composer/trunk/README.txt
r2160525 r2432652 5 5 Tags: custom header builder, footer builder, header, footer, elementor, template builder, page builder, landing page header 6 6 Requires at least: 4.4 7 Tested up to: 5. 27 Tested up to: 5.6 8 8 Requires PHP: 5.6 9 Stable tag: 1.0. 29 Stable tag: 1.0.3 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 Header Footer Composer currently only works with Elementor. 39 39 40 == Screenshots == 41 42 1. Navigate to Dashboard >> Appereance >> Header Footer Composer to create a new layout. 43 2. Select "Header" from "Choose Layout" dropdown to create Site Header 44 3. Select "Footer" from "Choose Layout" dropdown to create Site Footer 45 4. Elementor widgets available with Header Footer Composer 46 40 47 == Changelog == 48 = 1.0.3 = 49 * Fixed Mobile menu toggle not working in editor 50 * Added Border for dropdown 51 * Added box shadow for dropdown 52 * Added padding for menu toggle 53 41 54 = 1.0.2 = 42 55 * Fixed Mobile Toggle Layout -
header-footer-composer/trunk/header-footer-composer.php
r2160525 r2432652 24 24 * Plugin URI: https://github.com/metricthemes/header-footer-composer 25 25 * Description: Design custom headers and footers for your site using Elementor Page builder. 26 * Version: 1.0.2 26 * Version: 1.0.3 27 * Requires at least: 4.4 28 * Tested up to: 5.6 29 * Requires PHP: 5.6 27 30 * Author: MetricThemes 28 31 * Author URI: https://metricthemes.com … … 43 46 * Rename this for your plugin and update it as you release new versions. 44 47 */ 45 define( 'HEADER_FOOTER_COMPOSER_VERSION', '1.0. 2' );48 define( 'HEADER_FOOTER_COMPOSER_VERSION', '1.0.3' ); 46 49 define( 'HEADER_FOOTER_COMPOSER_BASE_URL', plugins_url( '/', __FILE__ ) ); 47 50 -
header-footer-composer/trunk/includes/widgets/hfc-navmenu.php
r2160525 r2432652 10 10 public function __construct($data = [], $args = null) { 11 11 parent::__construct($data, $args); 12 wp_ enqueue_style( 'hfc-navmenu-style', HEADER_FOOTER_COMPOSER_BASE_URL . 'public/css/hfc-navmenu.css', [ 'elementor-frontend' ], HEADER_FOOTER_COMPOSER_VERSION, 'all' );13 wp_ enqueue_script( 'hfc-navmenu-script', HEADER_FOOTER_COMPOSER_BASE_URL . 'public/js/hfc-navmenu.js', array( 'jquery' ), HEADER_FOOTER_COMPOSER_VERSION, true );12 wp_register_style( 'hfc-navmenu-style', HEADER_FOOTER_COMPOSER_BASE_URL . 'public/css/hfc-navmenu.css', [ 'elementor-frontend', 'elementor-icons-fa-solid' ], HEADER_FOOTER_COMPOSER_VERSION, 'all' ); 13 wp_register_script( 'hfc-navmenu-script', HEADER_FOOTER_COMPOSER_BASE_URL . 'public/js/hfc-navmenu.js', array( 'jquery' ), HEADER_FOOTER_COMPOSER_VERSION, true ); 14 14 } 15 15 … … 238 238 '{{WRAPPER}} .hfc-navbar, .hfc-nav-menu-top.open' => 'background-color: {{VALUE}}', 239 239 ], 240 'devices' => [ 'desktop', 'tablet', 'mobile' ], 241 'desktop_default' => '', 242 'tablet_default' => '#ffffff', 243 'mobile_default' => '#ffffff', 240 244 ] 241 245 ); … … 364 368 ] 365 369 ); 370 371 $this->add_group_control( 372 Group_Control_Border::get_type(), 373 [ 374 'name' => 'hfc_nav_menu_style_link_border', 375 'label' => __( 'Border', 'header-footer-composer' ), 376 'selector' => '{{WRAPPER}} .hfc-navbar ul.hfc-nav-menu-top li', 377 ] 378 ); 366 379 367 380 $this->add_responsive_control( … … 539 552 'name' => 'hfc_nav_menu_dropdown_style_link_border', 540 553 'label' => __( 'Border', 'header-footer-composer' ), 541 'selector' => '{{WRAPPER}} .hfc-navbar ul ul.sub-menu',554 'selector' => '{{WRAPPER}} .hfc-navbar ul li ul.sub-menu li', 542 555 ] 543 556 ); … … 577 590 ], 578 591 ] 579 ); 592 ); 593 594 $this->add_group_control( 595 Group_Control_Box_Shadow::get_type(), 596 [ 597 'name' => 'hfc_nav_menu_dropdown_style_box_shadow', 598 'label' => __( 'Box Shadow', 'header-footer-composer' ), 599 'selector' => '{{WRAPPER}} .hfc-navbar ul li ul', 600 ] 601 ); 580 602 581 603 $this->end_controls_section(); … … 596 618 'default' => '#ffffff', 597 619 'selectors' => [ 598 '{{WRAPPER}} .hfc-navbar #menu-button' => 'color: {{VALUE}}',620 '{{WRAPPER}} #hfc-menu-button-toggle .fas' => 'color: {{VALUE}}', 599 621 ], 600 622 ] … … 608 630 'default' => '#191919', 609 631 'selectors' => [ 610 '{{WRAPPER}} .hfc-navbar #menu-button' => 'background-color: {{VALUE}}',632 '{{WRAPPER}} #hfc-menu-button-toggle .fas' => 'background-color: {{VALUE}}', 611 633 ], 612 634 ] … … 643 665 ], 644 666 'selectors' => [ 645 '{{WRAPPER}} .hfc-navbar #menu-button' => 'font-size: {{SIZE}}{{UNIT}};',667 '{{WRAPPER}} #hfc-menu-button-toggle .fas' => 'font-size: {{SIZE}}{{UNIT}};', 646 668 ], 647 669 ] … … 669 691 'default' => 'none', 670 692 'selectors' => [ 671 '{{WRAPPER}} .hfc-navbar #menu-button' => 'float: {{VALUE}};',693 '{{WRAPPER}} #hfc-menu-button-toggle .fas' => 'float: {{VALUE}};', 672 694 ], 673 695 ] … … 686 708 'name' => 'hfc_nav_menu_toggle_style_border', 687 709 'label' => __( 'Toggle Border', 'header-footer-composer' ), 688 'selector' => '{{WRAPPER}} .hfc-navbar #menu-button',710 'selector' => '{{WRAPPER}} #hfc-menu-button-toggle .fas', 689 711 ] 690 712 ); … … 697 719 'size_units' => [ 'px', '%', 'em' ], 698 720 'selectors' => [ 699 '{{WRAPPER}} .hfc-navbar #menu-button' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',721 '{{WRAPPER}} #hfc-menu-button-toggle .fas' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 700 722 ], 701 723 ] … … 708 730 'type' => Controls_Manager::DIMENSIONS, 709 731 'size_units' => [ 'px', '%', 'em' ], 710 'selectors' => [ 711 '{{WRAPPER}} .hfc-navbar #menu-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 732 'default' => ['top' => '10', 'right' => '10', 'bottom' => '10', 'left' => '10', 'isLinked' => true,], 733 'selectors' => [ 734 '{{WRAPPER}} #hfc-menu-button-toggle .fas' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', 712 735 ], 713 736 ] … … 722 745 protected function render() { 723 746 $settings = $this->get_settings(); 724 $hfc_menu_id = $settings[ 'hfc_nav_menu_ed' ]; 747 $hfc_menu_id = $settings[ 'hfc_nav_menu_ed' ]; 725 748 ?> 726 749 727 750 <nav id="hfc-navigation" role="navigation" itemscope itemtype="http://schema.org/SiteNavigationElement"> 751 <div id="hfc-menu-button-toggle" class=""><i class="fas fa-bars"></i></div> 728 752 <?php 729 753 wp_nav_menu(array( -
header-footer-composer/trunk/public/css/hfc-navmenu.css
r2160525 r2432652 7 7 .hfc-navbar ul li, 8 8 .hfc-navbar ul li a, 9 .hfc-navbar #menu-button{9 #hfc-menu-button-toggle { 10 10 margin: 0; 11 11 padding: 0; … … 28 28 height: 0; 29 29 } 30 .hfc-navbar #menu-button{30 #hfc-menu-button-toggle { 31 31 display: none; 32 32 } … … 66 66 } 67 67 .hfc-navbar > ul > li.menu-item-has-children > a:after { 68 font-family: FontAwesome;68 font-family: "Font Awesome 5 Free"; 69 69 font-style: normal; 70 70 font-weight: normal; … … 96 96 } 97 97 .hfc-navbar li:hover > ul > li { 98 height: 35px;98 height: auto; 99 99 } 100 100 .hfc-navbar ul ul ul { … … 106 106 margin-right: 100%; 107 107 } 108 .hfc-navbar ul ul li a { 109 border-bottom: 1px solid rgba(150, 150, 150, 0.15); 110 width: 170px; 108 .hfc-navbar ul ul li a { 109 width: 230px; 111 110 font-size: 14px; 112 111 padding:11px 12px; … … 177 176 text-align: left; 178 177 } 178 .hfc-navbar ul li ul.sub-menu li:last-child { 179 border-bottom: none !important; 180 } 179 181 .hfc-nav-mobile-toggle-ed .hfc-navbar > ul > li.menu-item-has-children > a:after, 180 182 .hfc-nav-mobile-toggle-ed .hfc-navbar > ul > li.menu-item-has-children > a:before, … … 183 185 display: none; 184 186 } 185 .hfc-nav-mobile-toggle-ed .hfc-navbar #menu-button{186 font-family: FontAwesome;187 .hfc-nav-mobile-toggle-ed #hfc-menu-button-toggle { 188 font-family: "Font Awesome 5 Free"; 187 189 font-style: normal; 188 190 font-weight: normal; … … 198 200 /* float: right; */ 199 201 } 200 .hfc-nav-mobile-toggle-ed .hfc-navbar #menu-button.menu-opened {202 .hfc-nav-mobile-toggle-ed #hfc-menu-button-toggle.menu-opened { 201 203 z-index:10; 202 204 } 203 .hfc-nav-mobile-toggle-ed .hfc-navbar #menu-button.menu-opened:after {205 .hfc-nav-mobile-toggle-ed #hfc-menu-button-toggle.menu-opened:after { 204 206 top: 23px; 205 207 border: 0; … … 213 215 transform: rotate(45deg); 214 216 } 215 .hfc-nav-mobile-toggle-ed .hfc-navbar #menu-button.menu-opened:before {217 .hfc-nav-mobile-toggle-ed #hfc-menu-button-toggle.menu-opened:before { 216 218 top: 23px; 217 219 background: #ffffff; … … 238 240 .hfc-nav-mobile-toggle-ed .hfc-navbar .submenu-button:after { 239 241 content:"\f0d7"; 240 color:# fff;241 font-family: FontAwesome;242 color:#191919; 243 font-family: "Font Awesome 5 Free"; 242 244 font-style: normal; 243 245 font-weight: normal; … … 250 252 .hfc-nav-mobile-toggle-ed .hfc-navbar .submenu-button:after { 251 253 margin: 20px 20px; 252 }253 .hfc-nav-mobile-overlay-yes .hfc-nav-menu-top.open {254 position:fixed;255 height:100vh;256 padding-top:16%;257 254 } 258 255 .hfc-nav-mobile-toggle-ed .hfc-nav-menu-top.open { … … 261 258 top: 0; 262 259 left: 0; 263 } 260 } 261 .hfc-nav-mobile-overlay-yes .hfc-nav-menu-top.open { 262 display: block; 263 position: absolute; 264 width: 375px; 265 } 266 264 267 } 265 268 @media (min-width: 768px) and (max-width: 1024px) { … … 267 270 margin: 20px 20px; 268 271 } 269 .hfc-nav-mobile-overlay-yes .hfc-nav-menu-top.open { 270 position:fixed; 271 height:100vh; 272 padding-top:16%; 272 .hfc-nav-mobile-toggle-ed .hfc-nav-menu-top.open { 273 display: block; 274 width: 100%; 275 top: 0; 276 left: 0; 273 277 } 274 .hfc-nav-mobile-toggle-ed .hfc-nav-menu-top.open { 275 display: block; 276 width: 100%; 277 top: 0; 278 left: 0; 279 } 280 } 278 .hfc-nav-mobile-overlay-yes .hfc-nav-menu-top.open { 279 position: absolute; 280 width: 720px; 281 } 282 } -
header-footer-composer/trunk/public/js/hfc-navmenu.js
r2160525 r2432652 10 10 }, options); 11 11 12 return this.each(function() { 13 cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>'); 14 $(this).find("#menu-button").on('click', function(){ 12 return this.each(function() { 13 $(this).find("#hfc-menu-button-toggle").on('click', function(){ 15 14 $(this).toggleClass('menu-opened'); 16 var mainmenu = $(this).next('ul'); 15 var mainmenu = $('ul.hfc-nav-menu-top'); 16 17 //adjust width of menu in mobile 18 var elementor_section_width = $( '#hfc-navigation' ).closest('.elementor-section').outerWidth(); 19 var elementor_self_section_width = $( '#hfc-navigation' ).closest('.elementor-column').outerWidth(); 20 var self_position = elementor_self_section_width - elementor_section_width - 10; 21 22 mainmenu.css("width", elementor_section_width +'px'); 23 mainmenu.css("left", self_position +'px'); 24 17 25 if (mainmenu.hasClass('open')) { 18 26 mainmenu.hide().removeClass('open'); … … 47 55 48 56 resizeFix = function() { 49 if ($( window ).width() > 768) { 57 if ($( window ).width() > 768) { 50 58 cssmenu.find('ul').show(); 51 59 } … … 66 74 $(document).ready(function(){ 67 75 68 $(".hfc-nav-mobile-toggle-ed .hfc-navbar").menumaker({ 69 title: "", 76 $(".hfc-nav-mobile-toggle-ed #hfc-navigation").menumaker({ 70 77 format: "multitoggle" 71 78 });
Note: See TracChangeset
for help on using the changeset viewer.