New "template-parts" folder & Jetpack Infinite scroll

New file template organization + Jetpack Infinite Scroll support by @grappler.
This PR is referring to leopuleo #637, now closed, and discussion #619.

 
Sorry. I think I'm wrong. Didn't have my coffee. Let me test this patch. It
looks really nice and thanks so much for putting it together.
On Nov 24, 2014 2:04 AM, "Leonardo Giacone" <notifications@github.com>
wrote:

> In inc/jetpack.php:
>
> >  	) );
> >  }
> > -add_action( 'after_setup_theme', '_s_jetpack_setup' );
> > +/**
> > + * Render the Infinite Scroll Loop
> > + */
> > +function _s_infinite_scroll_render() {
> > +	while ( have_posts() ) {
> > +		the_post();
> > +		get_template_part( 'template-parts/content', get_post_format() );
> > +	}
> > +}
> > +
> > +add_action( 'after_setup_theme', '_s_jetpack_setup' );
>
> Sorry, I'm not sure what you mean...
> The function to hook in after_setup_theme is _s_jetpack_setup and not
> _s_infinite_scroll_render.
>
> I've pushed a commit where I've organized the functions and the hook as
> suggested in http://jetpack.me/support/infinite-scroll/
> I hope it's fine. [image: :smile:]
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Automattic/_s/pull/642/files#r20766929>.
>