Permalink
Browse files

Improvements for the next release. v1.3.2

  • Loading branch information...
1 parent 0711dc2 commit c9fdee7013e440e41d624a94c473eb280ce3f000 @seb86 committed May 17, 2015
Showing with 2,466 additions and 129 deletions.
  1. +2 −0 .gitattributes
  2. +36 −0 .gitignore
  3. +8 −0 .tx/config
  4. +15 −0 CHANGELOG.md
  5. +81 −0 Gruntfile.js
  6. +4 −0 README.md
  7. +34 −0 assets/css/admin/activation.css
  8. +450 −0 assets/css/chosen.css
  9. BIN assets/images/chosen-sprite.png
  10. BIN assets/images/chosen-sprite@2x.png
  11. +6 −0 assets/js/admin/settings.js
  12. +1 −1 assets/js/admin/settings.min.js
  13. +1,257 −0 assets/js/chosen/chosen.jquery.js
  14. +2 −0 assets/js/chosen/chosen.jquery.min.js
  15. +2 −0 assets/js/chosen/index.php
  16. +12 −2 assets/js/frontend/auto-load-next-post.js
  17. +143 −0 assets/js/frontend/auto-load-next-post.js.buggy
  18. +1 −1 assets/js/frontend/auto-load-next-post.min.js
  19. +43 −46 auto-load-next-post.php
  20. +0 −2 includes/admin/auto-load-next-post-admin-functions.php
  21. +4 −0 includes/admin/auto-load-next-post-theme-support.php
  22. +6 −9 includes/admin/class-auto-load-next-post-admin-help.php
  23. +0 −1 includes/admin/class-auto-load-next-post-admin-menus.php
  24. +74 −0 includes/admin/class-auto-load-next-post-admin-notices.php
  25. +2 −3 includes/admin/class-auto-load-next-post-admin-settings.php
  26. +40 −3 includes/admin/class-auto-load-next-post-admin.php
  27. +3 −2 includes/admin/class-auto-load-next-post-install.php
  28. +57 −6 includes/admin/settings/class-auto-load-next-post-settings-general.php
  29. +4 −3 includes/admin/settings/class-auto-load-next-post-settings-page.php
  30. +11 −0 includes/admin/views/html-notice-theme-support.php
  31. +0 −2 includes/auto-load-next-post-conditional-functions.php
  32. +11 −4 includes/auto-load-next-post-core-functions.php
  33. +0 −2 includes/auto-load-next-post-formatting-functions.php
  34. BIN languages/auto-load-next-post.mo
  35. +83 −37 languages/auto-load-next-post.pot
  36. +20 −0 package.json
  37. +22 −4 readme.txt
  38. BIN screenshot-1.png
  39. BIN screenshot-2.png
  40. +31 −0 template/content-partial.php
  41. +1 −1 uninstall.php
View
@@ -0,0 +1,2 @@
+# Auto detect text files and perform EOL normalization
+* text=auto
View
@@ -0,0 +1,36 @@
+# Windows image file caches
+Thumbs.db
+ehthumbs.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Mac crap
+.DS_Store
+
+# Sublime
+*.sublime-project
+*.sublime-workspace
+
+# PhpStorm
+.idea/
+
+# Bin
+bin/
+
+# Screenshots
+screenshots/
+
+# Wiki
+wiki/
+
+# Grunt
+node_modules/
+build/
+npm-debug.log
+
+# Transifex
+tx.exe
View
@@ -0,0 +1,8 @@
+[main]
+host = https://www.transifex.com
+
+[wordpress-plugin-boilerplate.wordpress-plugin-boilerplate]
+file_filter = wordpress-plugin-boilerplate/languages/wordpress-plugin-boilerplate-<lang>.po
+source_file = wordpress-plugin-boilerplate/languages/wordpress-plugin-boilerplate.pot
+source_lang = en_US
+type = PO
View
@@ -1,3 +1,18 @@
+## 1.3.2 (17th May 2015)
+* Added more theme support with compatible theme template file which can be overrided.
+* Added option to enable auto loading posts for specific post types.
+* Added option for comments. Now you can choose to show or hide rather than forcing it to hide automatically.
+* Added Chosen (v1.4.2) Javascript by [Harvest](http://harvesthq.github.io/chosen/)
+* Added console.logs in the Javascript for debugging.
+* Corrected text domain name in plugin header.
+* Corrected access to function load_file() from private to public
+* Corrected access to function register_scripts_and_styles() from private to public
+* Corrected error with uninstall.php file
+* Moved function register_scripts_and_styles() to class-auto-load-next-post-admin.php
+* Filtered the Javascript to load only on singular posts and the enabled post types.
+* Removed security issue by accessing $GLOBALS directly.
+* Removed all closing PHP tags omitting at the end of each file.
+
## 1.0.0 (4th April 2015)
* Initial Release
View
@@ -0,0 +1,81 @@
+module.exports = function(grunt) {
+
+// Load multiple grunt tasks using globbing patterns
+require('load-grunt-tasks')(grunt);
+
+// Project configuration.
+grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ makepot: {
+ target: {
+ options: {
+ domainPath: 'languages/', // Where to save the POT file.
+ exclude: ['build/.*'],
+ mainFile: 'auto-load-next-post.php', // Main project file.
+ potComments: 'Auto Load Next Post Copyright (c) {{year}}', // The copyright at the beginning of the POT file.
+ potFilename: 'auto-load-next-post.pot', // Name of the POT file.
+ type: 'wp-plugin', // Type of project.
+ updateTimestamp: true, // Whether the POT-Creation-Date should be updated without other changes.
+ processPot: function( pot, options ) {
+ pot.headers['report-msgid-bugs-to'] = 'https://github.com/seb86/Auto-Load-Next-Post/issues\n';
+ pot.headers['plural-forms'] = 'nplurals=2; plural=n != 1;\n';
+ pot.headers['last-translator'] = 'Auto Load Next Post <mailme@sebastiendumont.com>\n';
+ pot.headers['language-team'] = 'WP-Translations <wpt@wp-translations.org>\n';
+ pot.headers['x-poedit-basepath'] = '..\n';
+ pot.headers['x-poedit-language'] = 'English\n';
+ pot.headers['x-poedit-country'] = 'UNITED STATES\n';
+ pot.headers['x-poedit-sourcecharset'] = 'utf-8\n';
+ pot.headers['x-poedit-searchpath-0'] = '.\n';
+ pot.headers['x-poedit-keywordslist'] = '__;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n';
+ pot.headers['x-textdomain-support'] = 'yes\n';
+ return pot;
+ }
+ }
+ }
+ },
+
+ exec: {
+ npmUpdate: {
+ command: 'npm update'
+ },
+ txpull: { // Pull Transifex translation - grunt exec:txpull
+ cmd: 'tx pull -a --minimum-perc=60' // Change the percentage with --minimum-perc=yourvalue
+ },
+ txpush_s: { // Push pot to Transifex - grunt exec:txpush_s
+ cmd: 'tx push -s'
+ },
+ },
+
+ dirs: {
+ lang: 'languages',
+ },
+
+ potomo: {
+ dist: {
+ options: {
+ poDel: false // Set to true if you want to erase the .po
+ },
+ files: [{
+ expand: true,
+ cwd: '<%= dirs.lang %>',
+ src: ['*.po'],
+ dest: '<%= dirs.lang %>',
+ ext: '.mo',
+ nonull: true
+ }]
+ }
+ },
+
+});
+
+// Default task. - grunt makepot
+grunt.registerTask( 'default', 'makepot' );
+
+// Makepot and push it on Transifex task(s).
+grunt.registerTask( 'txpush', [ 'makepot', 'exec:txpush_s' ] );
+
+// Pull from Transifex and create .mo task(s).
+grunt.registerTask( 'txpull', [ 'exec:txpull', 'potomo' ] );
+
+};
View
@@ -1,10 +1,14 @@
## Auto Load Next Post
+[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png?style=flat)](http://gruntjs.com/) [![GitHub version](https://badge.fury.io/gh/seb86%2FAuto-Load-Next-Post.svg?style=flat)](http://badge.fury.io/gh/seb86%2FWordPress-Plugin-Boilerplate) [![GPL license](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)
+
Auto Load Next Post is a lightweight plugin that simply loads the next post after one another as you scroll down the page. To do this, it reads the post navigation in your theme at the end of each post and collects the post URL. With this, it asks WordPress to do a partial content load and the javascript places the content of the next post underneath the parent post.
It also updates your web history by manipulating the web address and page title so if you were to hit refresh, you will be taken to the post you were viewing last. You will find that when pressing the previous button in your browser to go back you will be taken to the previous post.
### Features
+* Can restrict it to load only on specific post types. - NEW in v1.3.2
+* You now have the option to hide the comments if you wish. - NEW in v1.3.2
* Track each post load with Google Analytics. ( Requires Google Analytics to be applied for this to work. )
### Documentation
@@ -0,0 +1,34 @@
+.auto-load-next-post-message {
+ position: relative;
+ border-left-color: #EC8642 !important;
+ overflow: hidden;
+}
+
+.auto-load-next-post-message a.button-primary,
+p.auto-load-next-post-actions a.button-primary {
+ background: #EC8642;
+ border-color: #EB6D19;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
+ color: #fff;
+ text-decoration: none;
+}
+
+.auto-load-next-post-message a.button-primary:hover,
+p.auto-load-next-post-actions a.button-primary:hover {
+ background: #EB6D19;
+ border-color: #EB6D19;
+ -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
+ box-shadow: inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);
+}
+
+.auto-load-next-post-message a.button-primary:active,
+p.auto-load-next-post-actions a.button-primary:active {
+ background: #fac75a;
+ border-color: #EC8642;
+}
+
+.auto-load-next-post-message a.docs,
+p.auto-load-next-post-actions a.docs {
+ opacity: .7;
+}
Oops, something went wrong.

0 comments on commit c9fdee7

Please sign in to comment.