{"id":1150,"date":"2024-11-18T04:49:22","date_gmt":"2024-11-18T04:49:22","guid":{"rendered":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/?page_id=1150"},"modified":"2024-11-18T05:11:33","modified_gmt":"2024-11-18T05:11:33","slug":"authors","status":"publish","type":"page","link":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/authors\/","title":{"rendered":"Authors"},"content":{"rendered":"    <div class=\"rswpbs-authors-shortcode-wrapper\"\r\n         data-per-row=\"4\"\r\n         data-show-desc=\"true\"\r\n         data-show-count=\"true\"\r\n         data-per-page=\"4\">\r\n\r\n        <!-- Search Form -->\r\n        <div class=\"rswpbs-author-search\">\r\n            <form class=\"rswpbs-author-search-form\">\r\n                <input type=\"text\" name=\"author_search\" placeholder=\"Search authors...\" class=\"author-search-input\">\r\n                <button type=\"submit\">Search<\/button>\r\n            <\/form>\r\n        <\/div>\r\n\r\n        <!-- Authors Container -->\r\n        <div class=\"authors-shortcode-row rswpbs-row\" id=\"authors-container\">\r\n            <div class=\"rswpbs-col-lg-4 rswpbs-col-xl-3 rswpbs-col-md-6 author-single-column rswpbs-author-col\"><div class=\"rswpbs-single-author-wrapper\"><div class=\"rswpbs-author-profile-picture-wrapper\"><div class=\"author-profile-picture-container\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/colleen-hoover\/\"><img decoding=\"async\" src=\"http:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-content\/uploads\/sites\/25\/2022\/04\/e66a5f3f-fee1-41e0-90cd-5fca1d2811dd.jpg\" alt=\"Colleen Hoover\"><\/a><\/div><div class=\"author-social-links-wrapper\"><\/div><\/div><div class=\"author-name\"><h2><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/colleen-hoover\/\">Colleen Hoover<\/a><\/h2><\/div><div class=\"author-book-count\"><h5><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/colleen-hoover\/\">2 Books<\/a><\/h5><\/div><div class=\"author-description\"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<\/p><\/div><div class=\"view-author-profile-button\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/colleen-hoover\/\">View Profile<\/a><\/div><\/div><\/div><div class=\"rswpbs-col-lg-4 rswpbs-col-xl-3 rswpbs-col-md-6 author-single-column rswpbs-author-col\"><div class=\"rswpbs-single-author-wrapper\"><div class=\"rswpbs-author-profile-picture-wrapper\"><div class=\"author-profile-picture-container\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/j-k-rowling\/\"><img decoding=\"async\" src=\"http:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-content\/uploads\/sites\/25\/2022\/04\/17f14cee-8220-4937-9316-21b89821a475.jpg\" alt=\"J.K. Rowling\"><\/a><\/div><div class=\"author-social-links-wrapper\"><\/div><\/div><div class=\"author-name\"><h2><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/j-k-rowling\/\">J.K. Rowling<\/a><\/h2><\/div><div class=\"author-book-count\"><h5><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/j-k-rowling\/\">5 Books<\/a><\/h5><\/div><div class=\"author-description\"><p>J.K. Rowling is a British author best known for creating the globally beloved Harry Potter series. Born on July 31, 1965, in Yate, England, she wrote the first book, Harry Potter and the Philosopher\u2019s Stone, while facing significant personal challenges, including financial struggles. Published in 1997, the book marked the beginning of a cultural phenomenon, with the series spanning seven novels, translated into numerous languages, and adapted into blockbuster films. Rowling's enchanting storytelling, rich world-building, and relatable characters captivated readers of all ages.<\/p><\/div><div class=\"view-author-profile-button\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/j-k-rowling\/\">View Profile<\/a><\/div><\/div><\/div><div class=\"rswpbs-col-lg-4 rswpbs-col-xl-3 rswpbs-col-md-6 author-single-column rswpbs-author-col\"><div class=\"rswpbs-single-author-wrapper\"><div class=\"rswpbs-author-profile-picture-wrapper\"><div class=\"author-profile-picture-container\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/james-clear\/\"><img decoding=\"async\" src=\"http:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-content\/uploads\/sites\/25\/2022\/04\/3bf038d6-f35c-4e6f-b6b1-19dcca704ee4.jpg\" alt=\"James Clear\"><\/a><\/div><div class=\"author-social-links-wrapper\"><\/div><\/div><div class=\"author-name\"><h2><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/james-clear\/\">James Clear<\/a><\/h2><\/div><div class=\"author-book-count\"><h5><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/james-clear\/\">1 Book<\/a><\/h5><\/div><div class=\"author-description\"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.\r\n\r\n<\/p><\/div><div class=\"view-author-profile-button\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/james-clear\/\">View Profile<\/a><\/div><\/div><\/div><div class=\"rswpbs-col-lg-4 rswpbs-col-xl-3 rswpbs-col-md-6 author-single-column rswpbs-author-col\"><div class=\"rswpbs-single-author-wrapper\"><div class=\"rswpbs-author-profile-picture-wrapper\"><div class=\"author-profile-picture-container\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/lucy-score\/\"><img decoding=\"async\" src=\"http:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-content\/uploads\/sites\/25\/2022\/04\/226b5db6-2256-4d12-bbec-0a31adde4d37.jpg\" alt=\"Lucy Score\"><\/a><\/div><div class=\"author-social-links-wrapper\"><\/div><\/div><div class=\"author-name\"><h2><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/lucy-score\/\">Lucy Score<\/a><\/h2><\/div><div class=\"author-book-count\"><h5><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/lucy-score\/\">2 Books<\/a><\/h5><\/div><div class=\"author-description\"><p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.<\/p><\/div><div class=\"view-author-profile-button\"><a href=\"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/book-author\/lucy-score\/\">View Profile<\/a><\/div><\/div><\/div>        <\/div>\r\n\r\n        <!-- Load More Button -->\r\n        <div class=\"rswpbs-load-more-wrapper\">\r\n            <button id=\"rswpbs-load-more\" class=\"rswpbs-load-more-btn\">Load More<\/button>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <!-- JavaScript -->\r\n    <script>\r\n    jQuery(document).ready(function($) {\r\n        var offset = 4;\r\n        var perPage = 4;\r\n        var atts = {\"layout\":\"standard_layout\",\"show_description\":\"true\",\"show_book_count\":\"true\",\"authors_per_row\":\"4\",\"authors_per_page\":\"4\"}; \/\/ Fixed the atts variable declaration\r\n        var searchQuery = '';\r\n\r\n        \/\/ Load More Handler\r\n        $('#rswpbs-load-more').on('click', function() {\r\n            loadAuthors(offset, searchQuery);\r\n        });\r\n\r\n        \/\/ Search Handler\r\n        $('.rswpbs-author-search-form').on('submit', function(e) {\r\n            e.preventDefault();\r\n            searchQuery = $('.author-search-input').val();\r\n            offset = 0;\r\n            $('#authors-container').empty();\r\n            loadAuthors(0, searchQuery);\r\n        });\r\n\r\n        function loadAuthors(offsetVal, search) {\r\n            $.ajax({\r\n                url: 'https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-admin\/admin-ajax.php',\r\n                type: 'POST',\r\n                data: {\r\n                    action: 'load_more_authors',\r\n                    offset: offsetVal,\r\n                    search: search,\r\n                    atts: atts \/\/ Now properly defined\r\n                },\r\n                success: function(response) {\r\n                    if (response.success) {\r\n                        $('#authors-container').append(response.data.html);\r\n                        offset += perPage;\r\n\r\n                        \/\/ Hide load more button if no more authors\r\n                        if (!response.data.has_more) {\r\n                            $('#rswpbs-load-more').hide();\r\n                        } else {\r\n                            $('#rswpbs-load-more').show();\r\n                        }\r\n                    }\r\n                },\r\n                error: function(xhr, status, error) {\r\n                    console.log('AJAX Error: ' + error);\r\n                }\r\n            });\r\n        }\r\n    });\r\n    <\/script>\r\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1150","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/pages\/1150","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/comments?post=1150"}],"version-history":[{"count":5,"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/pages\/1150\/revisions"}],"predecessor-version":[{"id":1157,"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/pages\/1150\/revisions\/1157"}],"wp:attachment":[{"href":"https:\/\/demo.rswpthemes.com\/rs-wp-book-showcase-demo\/wp-json\/wp\/v2\/media?parent=1150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}