mirror of
https://ghproxy.net/https://github.com/presscustomizr/hueman.git
synced 2026-07-27 12:47:05 +08:00
* fixed : Language Label in Translation Files * fixed : the author name links to the post itself * fixed : Featured post slider controls (arrows) overflow content container when blog heading is disabled * fixed : Header image alt attribute is empty. * fixed : Change Default Widget Names and CSS id properties. Could be in collision with some plugins * added : Featured posts : new option to display the full content (instead of the excerpt) of the featured posts. Modified template : content-featured.php. * added : Featured posts : swipe gesture supported on mobile devices like tablets and smartphones * added : Customizer : Pre setup step when adding a new widget zone or social icons. * improved : Customizer user interface have been improved for the social links and the widget zones. It's now easier to drag, edit and remove items. * improved : Introduced a pluggable function ( hu_print_placeholder_thumb() )to print the placeholder thumbnail. Modified templates : content-featured.php, content.php, parts/related-posts.php * updated : jQuery FlexSider to v2.6.0 (latest). Support swipe touch navigation * changed : Header widget and full width footer widget are now enabled by default * changed : The footer-ads option has been moved in the Footer Design section. The title and description of this setting have been clarified.
1 line
No EOL
2.2 KiB
JavaScript
1 line
No EOL
2.2 KiB
JavaScript
jQuery(function(a){"use strict";function b(a){var b=a.parent(),c=a.outerHeight(!0),d=b.height();b.toggleClass("expand"),b.hasClass("expand")?setTimeout(function(){b.addClass("transition").css("height",c)},10):setTimeout(function(){b.css("height",d),setTimeout(function(){b.addClass("transition").css("height",0)},10)},10),b.one("transitionEnd webkitTransitionEnd transitionend oTransitionEnd msTransitionEnd",function(){b.hasClass("open")&&b.removeClass("transition").css("height","auto")})}a(".toggle-search").click(function(){a(".toggle-search").toggleClass("active"),a(".search-expand").fadeToggle(250),setTimeout(function(){a(".search-expand input").focus()},300)}),a("a#back-to-top").click(function(){return a("html, body").animate({scrollTop:0},"slow"),!1}),function(){var b=a(".alx-tabs-nav"),c=b.children("li");a(".alx-tabs-container");b.each(function(){var b=a(this);b.next().children(".alx-tab").stop(!0,!0).hide().siblings(b.find("a").attr("href")).show(),b.children("li").first().addClass("active").stop(!0,!0).show()}),c.on("click",function(b){var c=a(this);c.siblings().removeClass("active").end().addClass("active"),c.parent().next().children(".alx-tab").stop(!0,!0).hide().siblings(c.find("a").attr("href")).fadeIn(),b.preventDefault()}).children(window.location.hash?'a[href="'+window.location.hash+'"]':"a:first").trigger("click")}(),a(".comment-tabs li").click(function(){a(".comment-tabs li").removeClass("active"),a(this).addClass("active"),a(".comment-tab").hide();var b=a(this).find("a").attr("href");return a(b).fadeIn(),!1}),a("table tr:odd").addClass("alt"),a("body").addClass("s1-collapse"),a("body").addClass("s2-collapse"),a(".s1 .sidebar-toggle").click(function(){a("body").toggleClass("s1-collapse").toggleClass("s1-expand"),a("body").is(".s2-expand")&&a("body").toggleClass("s2-expand").toggleClass("s2-collapse")}),a(".s2 .sidebar-toggle").click(function(){a("body").toggleClass("s2-collapse").toggleClass("s2-expand"),a("body").is(".s1-expand")&&a("body").toggleClass("s1-expand").toggleClass("s1-collapse")}),a(".nav ul.sub-menu").hide(),a(".nav li").hover(function(){a(this).children("ul.sub-menu").slideDown("fast")},function(){a(this).children("ul.sub-menu").hide()}),a(".nav-toggle").on("click",function(){b(a(".nav-wrap .nav",a(this).parent()))})}); |