{"id":78632,"date":"2017-12-05T18:40:58","date_gmt":"2017-12-05T18:40:58","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/worpress-ajaxifier\/"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-30T00:00:00","slug":"wp-ajaxifier","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-ajaxifier\/","author":1057454,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"4.9.29","requires":"4.9","requires_php":"","requires_plugins":"","header_name":"Worpress Ajaxifier","header_author":"Oscar Viquez","header_description":"Wordpress ajax page loader.","assets_banners_color":"","last_updated":"2017-12-05 18:40:58","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/example.com\/","header_plugin_uri":"http:\/\/oscarviquez.com\/wordpress-ajaxifier\/","header_author_uri":"http:\/\/oscarviquez.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1566,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-78632","plugin","type-plugin","status-closed","hentry","plugin_committers-eruecco87"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-ajaxifier.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"\n\n<!--section=description-->\n<p>Wordpress Ajaxifier will enable all links referencing pages within the site itself to load the page asynchronously without a page refresh.<\/p>\n\n<h3>Configuration Options<\/h3>\n\n<h4>Main Container Selector<\/h4>\n\n<p>The id of the main container element (if none is provided the plugin will look for an id of \"main\" by default).<\/p>\n\n<h4>Navigation Selector<\/h4>\n\n<p>The id of the main navigation container (if none is provided the plugin will look for an id of \"nav\" by default).<\/p>\n\n<h4>Search Form Selector<\/h4>\n\n<p>The id of the main search form (if none is provided the plugin will look for an id of \"search-form\" by default).<\/p>\n\n<h4>Manual Selectors<\/h4>\n\n<p>All links matching or inside this selectors WILL trigger an ajax load. This is for selectors outside the Main Container or elements added dynamically after page load.<\/p>\n\n<h4>Excluded Selectors<\/h4>\n\n<p>All links matching or inside this selectors will NOT trigger an ajax load. These selectors work as normal links, they will trigger a page refresh.<\/p>\n\n<h4>Loader Image<\/h4>\n\n<p>The image used for loading icon when a page is being requested (Default, Spinner, Ripple, Gear or Facebook).<\/p>\n\n<h4>Loader Markup<\/h4>\n\n<p>Custom markup to insert as a loading icon, this will override the \"Loader Image\" option.<\/p>\n\n<h4>Scroll Top<\/h4>\n\n<p>The content will scroll back to the top once its loaded.<\/p>\n\n<h4>Transition Effect<\/h4>\n\n<p>The content will fade in once its loaded.<\/p>\n\n<h4>Console Logs<\/h4>\n\n<p>Show console logs in the browser's Dev Tools (Displays information about the javascript used to handle the ajax requests).<\/p>\n\n<h3>A note on Javascript event handlers<\/h3>\n\n<p>Assuming that your Wordpress theme uses jQuery, some event handlers such as 'click', 'change', 'submit', etc might not bind to the DOM once the page is loaded.<\/p>\n\n<p>To prevent this, the recommended way to attach a handler is to first remove any binding of the function to prevent duplicated event triggering\nand then use the \".on()\" method with a delegated selector.<\/p>\n\n<pre><code>function clickHandlerFunction(event) {\n\n    event.preventDefault();\n\n    \/\/ Handler code here.\n\n}\n\n$(document).off('click', clickHandlerFunction).on('click', '.element-class', clickHandlerFunction);\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>wordpress-ajaxifier<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Update the configuration options under \"WP Ajaxifier\" admin menu.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload <code>wordpress-ajaxifier<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress.<\/li>\n<li>Update the configuration options under \"WP Ajaxifier\" admin menu.<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"Wordpress ajax page loader.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/78632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=78632"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eruecco87"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=78632"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=78632"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=78632"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=78632"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=78632"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=78632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}