{"id":824,"date":"2023-10-17T08:11:40","date_gmt":"2023-10-17T01:11:40","guid":{"rendered":"https:\/\/th42.vn\/?page_id=824"},"modified":"2023-10-17T16:18:18","modified_gmt":"2023-10-17T09:18:18","slug":"them-thanh-vien-moi","status":"publish","type":"page","link":"https:\/\/th42.vn\/en\/them-thanh-vien-moi\/","title":{"rendered":"Th\u00eam th\u00e0nh vi\u00ean m\u1edbi"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"824\" class=\"elementor elementor-824\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-62e61bd elementor-section-height-min-height elementor-section-boxed elementor-section-height-default elementor-section-items-middle\" data-id=\"62e61bd\" data-element_type=\"section\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"aux-parallax-section elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5b9b035\" data-id=\"5b9b035\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8093f2b elementor-widget elementor-widget-shortcode\" data-id=\"8093f2b\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-shortcode\">\n<link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.2\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\">\n<script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.min.js\"><\/script>\n<script src=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/js\/bootstrap.min.js\"><\/script>\n<link rel=\"stylesheet\" href=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.4.2\/css\/all.min.css\" \/>\n\n<link rel=\"stylesheet\" href=\"https:\/\/th42.vn\/wp-content\/plugins\/shortcode-add-new-portfolio\/assets\/css\/style.css\">\n<link rel=\"stylesheet\" href=\"https:\/\/th42.vn\/wp-content\/plugins\/shortcode-add-new-portfolio\/assets\/css\/avatar.css\">\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.3.0\/dist\/js\/bootstrap.bundle.min.js\"><\/script>\n    <div class=\"message-container bg-light p-3 rounded\">\n        <p class=\"message-text m-0\">Vui l\u00f2ng <a href=\"#\" class=\"login-button\" data-bs-toggle=\"modal\" data-bs-target=\"#loginModal\">\u0110\u0103ng nh\u1eadp<\/a> \u0111\u1ec3 th\u00eam th\u00e0nh vi\u00ean m\u1edbi<\/p>\n    <\/div>\n\n    <!-- Modal -->\n    <div class=\"modal fade login-modal\" id=\"loginModal\" tabindex=\"-1\" aria-labelledby=\"loginModalLabel\" aria-hidden=\"true\">\n        <div class=\"modal-dialog modal-dialog-centered modal-fullscreen-sm-down\" style=\"max-width: 802px;\">\n            <div class=\"modal-content\">\n                <div class=\"modal-header\">\n                    <h2>\u0110\u0103ng nh\u1eadp<\/h2>\n                <\/div>\n                <div class=\"modal-body p-5\">\n                    <form name=\"loginform\" id=\"loginform\" action=\"https:\/\/th42.vn\/wp-login.php\" method=\"post\"><p class=\"login-username\">\n\t\t\t\t<label for=\"user_login\">T\u00e0i kho\u1ea3n:<\/label>\n\t\t\t\t<input type=\"text\" name=\"log\" id=\"user_login\" autocomplete=\"username\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t<\/p><p class=\"login-password\">\n\t\t\t\t<label for=\"user_pass\">M\u1eadt kh\u1ea9u:<\/label>\n\t\t\t\t<input type=\"password\" name=\"pwd\" id=\"user_pass\" autocomplete=\"current-password\" spellcheck=\"false\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t<\/p><p class=\"login-remember\"><label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> Ghi nh\u1edb \u0111\u0103ng nh\u1eadp<\/label><\/p><p class=\"login-submit\">\n\t\t\t\t<input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button button-primary\" value=\"Log In\" \/>\n\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/pages\/824\" \/>\n\t\t\t<\/p><\/form>                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n<script src=\"https:\/\/th42.vn\/wp-content\/plugins\/shortcode-add-new-portfolio\/assets\/js\/custom.js\"><\/script>\n<script src=\"https:\/\/th42.vn\/wp-content\/plugins\/shortcode-add-new-portfolio\/assets\/js\/validation.js\"><\/script>\n<script>\n    jQuery(document).ready(function($) {\n        $('#frmAddNewPortfolio').on('submit', function(e) {\n            var hasErrors = false;\n            var firstErrorField = null;\n\n            $(\".required\").each(function() {\n                if (validateForm($(this)) === false) {\n                    hasErrors = true;\n                    if (firstErrorField === null) {\n                        firstErrorField = this;\n                    }\n                }\n            });\n\n            if (hasErrors) {\n                \/\/ Scroll to the first element with the class .error-message-field\n                if (firstErrorField !== null) {\n                    firstErrorField.scrollIntoView({\n                        behavior: 'smooth',\n                        block: 'center'\n                    });\n                }\n                return false;\n            }\n\n            $('.error-messages').addClass('d-none');\n            $('.success-message').addClass('d-none');\n\n            \/\/ S\u1eed d\u1ee5ng FormData \u0111\u1ec3 g\u1eedi d\u1eef li\u1ec7u bi\u1ec3u m\u1eabu bao g\u1ed3m t\u1ec7p h\u00ecnh \u1ea3nh\n            var formData = new FormData(this);\n            formData.append('action', 'add_new_portfolio');\n\n            $.ajax({\n                type: 'POST',\n                url: 'https:\/\/th42.vn\/wp-admin\/admin-ajax.php', \/\/ \u0110\u01b0\u1eddng d\u1eabn \u0111\u1ebfn admin-ajax.php\n                data: formData,\n                processData: false,\n                contentType: false,\n                success: function(response) {\n                    if (response.success) {\n                        \/\/ X\u1eed l\u00fd khi th\u00e0nh c\u00f4ng\n                        \/\/ V\u00ed d\u1ee5: Hi\u1ec3n th\u1ecb th\u00f4ng b\u00e1o th\u00e0nh c\u00f4ng\n                        $('.success-message').removeClass('d-none').html(response.message);\n\n                        \/\/ Scroll to the success-message and center it in the viewport\n                        $('.success-message')[0].scrollIntoView({\n                            behavior: 'smooth',\n                            block: 'center'\n                        });\n\n                        $('#frmAddNewPortfolio')[0].reset();\n                        $('.profile-pic').attr('src', '');\n                    } else {\n                        \/\/ X\u1eed l\u00fd khi c\u00f3 l\u1ed7i\n                        \/\/ V\u00ed d\u1ee5: Hi\u1ec3n th\u1ecb th\u00f4ng b\u00e1o l\u1ed7i\n                        $('.error-messages').removeClass('d-none').html('<ul><li>' + response.message + '<\/li><\/ul>');\n                    }\n                }\n            });\n\n            return false;\n        });\n    });\n<\/script><\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-824","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/pages\/824"}],"collection":[{"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/comments?post=824"}],"version-history":[{"count":16,"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/pages\/824\/revisions"}],"predecessor-version":[{"id":853,"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/pages\/824\/revisions\/853"}],"wp:attachment":[{"href":"https:\/\/th42.vn\/en\/wp-json\/wp\/v2\/media?parent=824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}