Adding Infinite Scroll branch

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@609727 b8457f37-d9ea-0310-8a92-e5e31aec5664
Prevent Infinite Scroll activation if theme doesn't support IS. Also, exclude IS from list of default modules.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@609735 b8457f37-d9ea-0310-8a92-e5e31aec5664
Zap unnecessary whitespace.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@609738 b8457f37-d9ea-0310-8a92-e5e31aec5664
Clean up comments.


git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@610148 b8457f37-d9ea-0310-8a92-e5e31aec5664
Support the `order` query argument when retrieving posts for Infinite Scroll.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@610440 b8457f37-d9ea-0310-8a92-e5e31aec5664
Provide a method for detecting additional scripts required by a set of IS posts and loading said scripts. Works with WP's `wp_register_script()` and `wp_enqueue_script()` functions.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@610612 b8457f37-d9ea-0310-8a92-e5e31aec5664
Update IS script handling introduced in r610612 to better support common theme and plugin practices.

* Rather than calling ``'s `do_head_items()` and `do_footer_items()` methods directly, fire `wp_head()` and `wp_footer()` to ensure that all relevant hooks are called.
* Don't clutter the global namespace with another variable when IS already has a JS variable we can add a property to.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@611058 b8457f37-d9ea-0310-8a92-e5e31aec5664
Bump script version due to changes in r611058.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@611060 b8457f37-d9ea-0310-8a92-e5e31aec5664
Introduce support for styles enqueued by incoming set of Infinite Scroll posts.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@614207 b8457f37-d9ea-0310-8a92-e5e31aec5664
Write conditional-wrapped stylesheet link tag directly into a comment to append to the document head.

Also updates the module info for IS.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@614677 b8457f37-d9ea-0310-8a92-e5e31aec5664
Introduce Infinite Scroll setting to control footer display.

Theme can provide a boolean value to enable or disable the infinite footer, or a string representing an html id of an element whose width the infinite footer should match. JS side of this enhancement forthcoming.

Also adds more esc_js() when passing IS settings to JS.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@617072 b8457f37-d9ea-0310-8a92-e5e31aec5664
Correct "unrecognized expression" JS error in code that accounts for floated post elements. Props batmoo.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@617075 b8457f37-d9ea-0310-8a92-e5e31aec5664
Update JS to take advantage of footer control introduced in r617072. Props matveb.

Also sync CSS with wpcom.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@617587 b8457f37-d9ea-0310-8a92-e5e31aec5664
Jetpack Infinite Scroll: add new icon

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@617792 b8457f37-d9ea-0310-8a92-e5e31aec5664
Merge in trunk as of r617799.

Ignored files changed in r617792 for now. Will address sprite changes closer to launch.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@617814 b8457f37-d9ea-0310-8a92-e5e31aec5664
Provide mechanism for modules to execute code before module is activated. Intended primarily to prevent modules from being activated if conditions aren't met, such as presence of theme support for Infinite Scroll.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@617892 b8457f37-d9ea-0310-8a92-e5e31aec5664
Infinite Scroll: __DIR__ isn't available until PHP 5.3, but plenty of people are still on 5.2.*. dirname( __DIR__ ) is equivalent.



git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@618723 b8457f37-d9ea-0310-8a92-e5e31aec5664
Infinite Scroll updates

* Correct action used to load plugin's bundled annotation files, since themes should be using the `after_setup_theme` action to register support.
* Now that mechanism for preventing modules from being activated exists (see r617892), remove module status checks.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@618819 b8457f37-d9ea-0310-8a92-e5e31aec5664
Infinite Scroll updates

* Move options names to static variables to simplify myriad internal references.
* Add option to track IS loads in Google Analytics.
* Align JS variables for easier reading.

git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@618841 b8457f37-d9ea-0310-8a92-e5e31aec5664
Infinite Scroll: Backwards-compatibility with WordPress 3.2.



git-svn-id: http://plugins.svn.wordpress.org/jetpack/branches/infinite-scroll@618859 b8457f37-d9ea-0310-8a92-e5e31aec5664