Author

admin

Theme basic client

10 Tháng 1, 2019

Bộ theme Basic đầy đủ tính năng cho a e. Cài sẵn bộ ACF Pro bản mới nhất tại thời điểm này Tích hợp đa ngôn ngữ Tích…

Status Maintenance for website

3 Tháng 1, 2019

Bật chế độ Maintenance cho website, chỉ quản trị viên đăng nhập mới thấy được giao diện website: Maintenance Website Builder by SeedProd — Theme Builder, Landing Page Builder,…

Responsive table

15 Tháng 11, 2018

[javascript] !function(t){t.fn.basictable=function(a){var e=function(a,e,n){a.children().each(function(){var a=t(this);if(“”!==a.html()&&”&nbsp;”!==a.html()||n.showEmptyCells){for(var r=a.index(),i=””,s=0;s<e.length;s++){0!=s&&(i+=”: “);var o=e[s][r];null!=o&&(i+=o.text())}a.attr(“data-th”,i),n.contentWrap&&!a.children().hasClass(“bt-content”)&&a.wrapInner(‘<span class=”bt-content” />’)}else a.addClass(“bt-hide”)})},n=function(a,e){e.forceResponsive?null!==e.breakpoint&&t(window).width()<=e.breakpoint||null!==e.containerBreakpoint&&a.parent().width()<=e.containerBreakpoint?r(a,e):i(a,e):a.removeClass(“bt”).outerWidth()>a.parent().width()?r(a,e):i(a,e)},r=function(t,a){t.addClass(“lctablebt”),a.header||t.addClass(“bt–no-header”),a.tableWrap&&t.parent(“.bt-wrapper”).addClass(“active”)},i=function(t,a){t.removeClass(“bt bt–no-header”),a.tableWrap&&t.parent(“.bt-wrapper”).removeClass(“active”)},s=function(a,e){var n;a.removeClass(“bt bt–no-header”),a.find(“td”).removeAttr(“data-th”),e.tableWrap&&a.unwrap(),e.contentWrap&&(n=a,t.each(n.find(“td”),function(){var a=t(this),e=a.children(“.bt-content”).html();a.html(e)})),a.removeData(“basictable”)};this.each(function(){var o=t(this);if(0===o.length||o.data(“basictable”))return o.data(“basictable”)&&(“destroy”==a?s(o,o.data(“basictable”)):”start”===a?r(o,o.data(“basictable”)):”stop”===a?i(o,o.data(“basictable”)):n(o,o.data(“basictable”))),!1;var l=t.extend({},t.fn.basictable.defaults,a),b={breakpoint:l.breakpoint,containerBreakpoint:l.containerBreakpoint,contentWrap:l.contentWrap,forceResponsive:l.forceResponsive,noResize:l.noResize,tableWrap:l.tableWrap,showEmptyCells:l.showEmptyCells,header:l.header};null===b.breakpoint&&null===b.containerBreakpoint&&(b.breakpoint=568),o.data(“basictable”,b),function(a,n){var r=[];if(n.tableWrap&&a.wrap(‘<div class=”bt-wrapper”></div>’),n.header){var i=””;i=a.find(“thead tr th”).length?”thead th”:a.find(“tbody tr th”).length?”tbody tr th”:a.find(“th”).length?”tr:first th”:”tr:first…

Đăng ký tạo Taxonomy trong WordPress

6 Tháng 11, 2018

[php] /** * Create a taxonomy * * @uses Inserts new taxonomy object into the list * @uses Adds query vars * * @param string Name of taxonomy…

Đăng ký Post type trong wordpress

6 Tháng 11, 2018

[php] /** * Registers a new post type * @uses $wp_post_types Inserts new post type object into the list * * @param string Post type key, must not…

Hiển thị bài viết theo tags

6 Tháng 11, 2018

[php] $all_tags = get_tags(); $tag_id = array(); foreach( $all_tags as $tag ) { $tag_id[] = $tag->term_id; } $args = array( ‘numberposts’ => 5, ‘tag__in’ => $tag_id ); $posts…

Custom Tab trong Woocommerce

6 Tháng 11, 2018

[php] add_filter( ‘woocommerce_product_tabs’, ‘flwoo_new_product_tab’ ); function flwoo_new_product_tab( $tabs ) { $tabs[‘description’][‘title’] = ‘Thông tin’; $tabs[‘tt_tab’] = array( ‘title’ => __( ‘Hướng dẫn thanh toán’, ‘woocommerce’ ), ‘priority’ =>…

Disable WordPress Gutenberg

3 Tháng 11, 2018

WordPress 5 sắp ra mắt vào trong tháng này.Từ wordpress 5 trở lên gutenberg đã tích hợp vào core của wordpress. Itheme cũ akasa sẽ không tương thích…

Query bài viết theo custom filed ACF

2 Tháng 11, 2018

[php] $args = array( ‘numberposts’ => -1, ‘post_type’ => ‘event’, ‘meta_query’ => array( ‘relation’ => ‘OR’, array( ‘key’ => ‘location’, ‘value’ => ‘Melbourne’, ‘compare’ => ‘LIKE’ ), array(…