Initial commit
This commit is contained in:
commit
28e6ddf404
1083 changed files with 191734 additions and 0 deletions
|
@ -0,0 +1,45 @@
|
|||
/* =Infinity Styles
|
||||
-------------------------------------------------------------- */
|
||||
.infinite-scroll #main:after {
|
||||
clear: both;
|
||||
content: '';
|
||||
display: block;
|
||||
}
|
||||
.infinite-scroll #content {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.infinite-scroll.neverending #content {
|
||||
margin-bottom: 70px;
|
||||
}
|
||||
.infinite-scroll .infinite-wrap {
|
||||
border-top: none;
|
||||
padding-top: 0;
|
||||
}
|
||||
.infinite-scroll .infinite-wrap .hentry:last-child {
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
.infinite-scroll .infinite-wrap:last-of-type .hentry:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/**
|
||||
* Elements to hide:
|
||||
* (footer widgets, post navigation, regular footer)
|
||||
*/
|
||||
.infinite-scroll.neverending #colophon #supplementary,
|
||||
.infinite-scroll #nav-below,
|
||||
.infinite-scroll.neverending #colophon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hooks to infinity-end body class to restore footer */
|
||||
.infinity-end.neverending #colophon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* For responsive CSS */
|
||||
@media (max-width: 800px) {
|
||||
.infinite-scroll #infinite-handle {
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for @Twenty Eleven and enqueue relevant styles.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinity scroll
|
||||
*/
|
||||
function twenty_eleven_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'content',
|
||||
'footer' => 'page',
|
||||
) );
|
||||
}
|
||||
add_action( 'init', 'twenty_eleven_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for infinity.
|
||||
*/
|
||||
function twenty_eleven_infinite_scroll_enqueue_styles() {
|
||||
// Add theme specific styles.
|
||||
wp_enqueue_style( 'infinity-twentyeleven', plugins_url( 'twentyeleven.css', __FILE__ ), array( 'the-neverending-homepage' ), '20121002' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twenty_eleven_infinite_scroll_enqueue_styles', 25 );
|
||||
|
||||
/**
|
||||
* Have we any footer widgets?
|
||||
*
|
||||
* @param bool $has_widgets
|
||||
* @uses is_active_sidebar
|
||||
* @uses jetpack_is_mobile
|
||||
* @filter infinite_scroll_has_footer_widgets
|
||||
* @return bool
|
||||
*/
|
||||
function twenty_eleven_has_footer_widgets( $has_widgets ) {
|
||||
// Are any of the "Footer Area" sidebars active?
|
||||
if ( is_active_sidebar( 'sidebar-3' ) || is_active_sidebar( 'sidebar-4' ) || is_active_sidebar( 'sidebar-5' ) )
|
||||
return true;
|
||||
|
||||
// If we're on mobile and the Main Sidebar has widgets, it falls below the content, so we have footer widgets.
|
||||
if ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() && is_active_sidebar( 'sidebar-1' ) )
|
||||
return true;
|
||||
|
||||
return $has_widgets;
|
||||
}
|
||||
add_filter( 'infinite_scroll_has_footer_widgets', 'twenty_eleven_has_footer_widgets' );
|
|
@ -0,0 +1,216 @@
|
|||
/**
|
||||
* Infinite Scroll
|
||||
*/
|
||||
|
||||
.infinite-scroll .pagination,
|
||||
.infinite-scroll.neverending .site-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.infinity-end.neverending .site-footer {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Spinner */
|
||||
.infinite-loader {
|
||||
clear: both;
|
||||
height: 24px;
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
top: 50% !important;
|
||||
right: 50% !important;
|
||||
}
|
||||
|
||||
/* Click-to-load */
|
||||
#infinite-handle {
|
||||
clear: both;
|
||||
margin: 7.6923%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#infinite-handle span {
|
||||
background-color: #333;
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: normal;
|
||||
padding: 0.7917em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover,
|
||||
#infinite-handle span:focus {
|
||||
background-color: #707070;
|
||||
background-color: rgba(51, 51, 51, 0.7);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
#infinite-footer {
|
||||
display: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
background-color: #fff;
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
border-color: #eaeaea;
|
||||
border-color: rgba(51, 51, 51, 0.1);
|
||||
padding: 0 0.8em;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info {
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info,
|
||||
#infinite-footer .blog-credits {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a,
|
||||
#infinite-footer .blog-credits {
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a,
|
||||
#infinite-footer .blog-credits a:hover,
|
||||
#infinite-footer .blog-credits a:focus {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a:hover,
|
||||
#infinite-footer .blog-info a:focus,
|
||||
#infinite-footer .blog-credits,
|
||||
#infinite-footer .blog-credits a {
|
||||
color: #707070;
|
||||
color: rgba(51, 51, 51, 0.7);
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a:hover,
|
||||
#infinite-footer .blog-info a:focus,
|
||||
#infinite-footer .blog-credits a:hover,
|
||||
#infinite-footer .blog-credits a:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 38.75em) {
|
||||
.infinite-loader {
|
||||
margin: 7.6923% 0;
|
||||
}
|
||||
|
||||
.infinite-wrap {
|
||||
margin-top: 7.6923%;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 46.25em) {
|
||||
#infinite-handle span {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
padding: 0.8214em
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 55em) {
|
||||
#infinite-handle span {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
padding: 0.8125em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 59.6875em) {
|
||||
.infinite-loader {
|
||||
margin: 8.3333% 0;
|
||||
}
|
||||
|
||||
.infinite-wrap {
|
||||
margin-top: 8.3333%;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
margin: 8.3333% 8.3333% 0;
|
||||
}
|
||||
|
||||
#infinite-handle span {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
padding: 0.7917em 1.5833em;
|
||||
}
|
||||
|
||||
#infinite-footer {
|
||||
display: block;
|
||||
position: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 68.75em) {
|
||||
#infinite-handle span {
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
padding: 0.8214em 1.5714em;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
padding: 0 0.8235em;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info,
|
||||
#infinite-footer .blog-credits {
|
||||
height: 27px;
|
||||
line-height: 27px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a {
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-credits {
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 77.5em) {
|
||||
#infinite-handle span {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
padding: 0.8125em 1.625em;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
padding: 0 0.8421em;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info,
|
||||
#infinite-footer .blog-credits {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-credits {
|
||||
font-size: 13px;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
216
plugins/jetpack/modules/infinite-scroll/themes/twentyfifteen.css
Normal file
216
plugins/jetpack/modules/infinite-scroll/themes/twentyfifteen.css
Normal file
|
@ -0,0 +1,216 @@
|
|||
/**
|
||||
* Infinite Scroll
|
||||
*/
|
||||
|
||||
.infinite-scroll .pagination,
|
||||
.infinite-scroll.neverending .site-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.infinity-end.neverending .site-footer {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Spinner */
|
||||
.infinite-loader {
|
||||
clear: both;
|
||||
height: 24px;
|
||||
margin: 24px 0;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
top: 50% !important;
|
||||
left: 50% !important;
|
||||
}
|
||||
|
||||
/* Click-to-load */
|
||||
#infinite-handle {
|
||||
clear: both;
|
||||
margin: 7.6923%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#infinite-handle span {
|
||||
background-color: #333;
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: normal;
|
||||
padding: 0.7917em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover,
|
||||
#infinite-handle span:focus {
|
||||
background-color: #707070;
|
||||
background-color: rgba(51, 51, 51, 0.7);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
#infinite-footer {
|
||||
display: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
background-color: #fff;
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
border-color: #eaeaea;
|
||||
border-color: rgba(51, 51, 51, 0.1);
|
||||
padding: 0 0.8em;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info {
|
||||
font-family: "Noto Sans", sans-serif;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info,
|
||||
#infinite-footer .blog-credits {
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a,
|
||||
#infinite-footer .blog-credits {
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a,
|
||||
#infinite-footer .blog-credits a:hover,
|
||||
#infinite-footer .blog-credits a:focus {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a:hover,
|
||||
#infinite-footer .blog-info a:focus,
|
||||
#infinite-footer .blog-credits,
|
||||
#infinite-footer .blog-credits a {
|
||||
color: #707070;
|
||||
color: rgba(51, 51, 51, 0.7);
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a:hover,
|
||||
#infinite-footer .blog-info a:focus,
|
||||
#infinite-footer .blog-credits a:hover,
|
||||
#infinite-footer .blog-credits a:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 38.75em) {
|
||||
.infinite-loader {
|
||||
margin: 7.6923% 0;
|
||||
}
|
||||
|
||||
.infinite-wrap {
|
||||
margin-top: 7.6923%;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 46.25em) {
|
||||
#infinite-handle span {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
padding: 0.8214em
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 55em) {
|
||||
#infinite-handle span {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
padding: 0.8125em;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 59.6875em) {
|
||||
.infinite-loader {
|
||||
margin: 8.3333% 0;
|
||||
}
|
||||
|
||||
.infinite-wrap {
|
||||
margin-top: 8.3333%;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
margin: 8.3333% 8.3333% 0;
|
||||
}
|
||||
|
||||
#infinite-handle span {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
padding: 0.7917em 1.5833em;
|
||||
}
|
||||
|
||||
#infinite-footer {
|
||||
display: block;
|
||||
position: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 68.75em) {
|
||||
#infinite-handle span {
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
padding: 0.8214em 1.5714em;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
padding: 0 0.8235em;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info,
|
||||
#infinite-footer .blog-credits {
|
||||
height: 27px;
|
||||
line-height: 27px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a {
|
||||
font-size: 14px;
|
||||
font-size: 1.4rem;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-credits {
|
||||
font-size: 12px;
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 77.5em) {
|
||||
#infinite-handle span {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
padding: 0.8125em 1.625em;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
padding: 0 0.8421em;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info,
|
||||
#infinite-footer .blog-credits {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a {
|
||||
font-size: 16px;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-credits {
|
||||
font-size: 13px;
|
||||
font-size: 1.3rem;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for Twenty Fifteen.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinite scroll
|
||||
*/
|
||||
function twentyfifteen_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'main',
|
||||
'footer' => 'page',
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentyfifteen_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for Infinite Scroll.
|
||||
*/
|
||||
function twentyfifteen_infinite_scroll_enqueue_styles() {
|
||||
wp_enqueue_style( 'infinity-twentyfifteen', plugins_url( 'twentyfifteen.css', __FILE__ ), array( 'the-neverending-homepage' ), '20141022' );
|
||||
wp_style_add_data( 'infinity-twentyfifteen', 'rtl', 'replace' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentyfifteen_infinite_scroll_enqueue_styles', 25 );
|
|
@ -0,0 +1,111 @@
|
|||
/* Spinner */
|
||||
|
||||
.infinite-loader {
|
||||
height: 36px;
|
||||
padding: 24px 0;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
margin: 0 auto;
|
||||
top: 18px !important;
|
||||
left: 0 !important;
|
||||
}
|
||||
|
||||
.rtl .infinite-loader .spinner {
|
||||
right: 0 !important;
|
||||
left: auto !important;
|
||||
}
|
||||
|
||||
/* Click-to-load */
|
||||
|
||||
#infinite-handle {
|
||||
padding: 24px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#infinite-handle span {
|
||||
background: #24890d;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
padding: 12px 30px;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover {
|
||||
background-color: #41a62a;
|
||||
}
|
||||
|
||||
#infinite-handle span:active {
|
||||
background-color: #55d737;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
|
||||
#infinite-footer {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
#infinite-footer .container {
|
||||
margin: 0;
|
||||
padding: 4px 20px;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a {
|
||||
color: #2b2b2b;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-credits,
|
||||
#infinite-footer .blog-credits a {
|
||||
color: #767676;
|
||||
}
|
||||
|
||||
#infinite-footer .blog-info a:hover,
|
||||
#infinite-footer .blog-credits a:hover {
|
||||
color: #41a62a;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/* Elements to hide: post navigation, normal footer. */
|
||||
|
||||
.infinite-scroll .paging-navigation,
|
||||
.infinite-scroll.neverending #colophon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
#infinite-footer {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Hooks to infinity-end body class to restore footer. */
|
||||
|
||||
.infinity-end.neverending #colophon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* Reset top margin adjustment for subsequent posts added by Infinite Scroll */
|
||||
.full-width .site-content .infinite-wrap .hentry.has-post-thumbnail:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 401px) {
|
||||
.infinite-loader,
|
||||
#infinite-handle {
|
||||
padding: 0 0 48px;
|
||||
}
|
||||
|
||||
.list-view .site-content .infinite-wrap .hentry:first-of-type {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
||||
padding-top: 48px;
|
||||
}
|
||||
|
||||
.list-view .site-content .infinite-wrap .hentry.has-post-thumbnail {
|
||||
border-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,47 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for Twenty Fourteen.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinite scroll
|
||||
*/
|
||||
function twentyfourteen_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'content',
|
||||
'footer' => 'page'
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentyfourteen_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Switch to the "click to load" type IS with the following cases
|
||||
* 1. Viewed from iPad and the primary sidebar is active.
|
||||
* 2. Viewed from mobile and either the primary or the content sudebar is active.
|
||||
* 3. The footer widget is active.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
|
||||
if ( function_exists( 'jetpack_is_mobile' ) ) {
|
||||
function twentyfourteen_has_footer_widgets( $has_widgets ) {
|
||||
if ( ( Jetpack_User_Agent_Info::is_ipad() && is_active_sidebar( 'sidebar-1' ) )
|
||||
|| ( jetpack_is_mobile( '', true ) && ( is_active_sidebar( 'sidebar-1' ) || is_active_sidebar( 'sidebar-2' ) ) )
|
||||
|| is_active_sidebar( 'sidebar-3' ) )
|
||||
|
||||
return true;
|
||||
|
||||
return $has_widgets;
|
||||
}
|
||||
add_filter( 'infinite_scroll_has_footer_widgets', 'twentyfourteen_has_footer_widgets' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for Infinite Scroll.
|
||||
*/
|
||||
function twentyfourteen_infinite_scroll_enqueue_styles() {
|
||||
wp_enqueue_style( 'infinity-twentyfourteen', plugins_url( 'twentyfourteen.css', __FILE__ ), array( 'the-neverending-homepage' ), '20131118' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentyfourteen_infinite_scroll_enqueue_styles', 25 );
|
|
@ -0,0 +1,161 @@
|
|||
.infinite-scroll .pagination {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.infinite-wrap > article:before,
|
||||
.infinite-wrap > article:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.infinite-wrap > article:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.infinite-wrap > article {
|
||||
margin-bottom: 3.5em;
|
||||
}
|
||||
|
||||
/* Spinner */
|
||||
.site-main .infinite-loader {
|
||||
clear: both;
|
||||
color: currentColor;
|
||||
height: 42px;
|
||||
margin-bottom: 3.5em;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
right: 50% !important;
|
||||
top: 50% !important;
|
||||
}
|
||||
|
||||
/* Click-to-load */
|
||||
#infinite-handle {
|
||||
clear: both;
|
||||
margin-right: 7.6923%;
|
||||
margin-left: 7.6923%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span {
|
||||
background: #1a1a1a;
|
||||
border-radius: 2px;
|
||||
color: #fff;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-size: inherit;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.046875em;
|
||||
line-height: 1;
|
||||
padding: 0.84375em 0.875em 0.78125em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover,
|
||||
#infinite-handle span:focus {
|
||||
background: #007acc;
|
||||
}
|
||||
|
||||
#infinite-handle button:focus {
|
||||
outline-offset: 0.375em;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
body #infinite-footer {
|
||||
display: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
body #infinite-footer .container {
|
||||
background-color: #fff;
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border-color: #d1d1d1;
|
||||
padding: 0 7.6923%;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-info {
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
height: 2.1875em;
|
||||
line-height: 2.1875em;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-info a {
|
||||
color: #1a1a1a;
|
||||
font-size: inherit
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-credits {
|
||||
font-size: 13px;
|
||||
font-size: 0.8125rem;
|
||||
height: 2.692307692em;
|
||||
line-height: 2.692307692em;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-credits,
|
||||
body #infinite-footer .blog-credits a {
|
||||
color: #686868;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-info a:hover,
|
||||
body #infinite-footer .blog-info a:focus,
|
||||
body #infinite-footer .blog-credits a:hover,
|
||||
body #infinite-footer .blog-credits a:focus {
|
||||
color: #007acc;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 44.375em) {
|
||||
.infinite-wrap > article,
|
||||
.site-main .infinite-loader {
|
||||
margin-bottom: 5.25em;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
right: 7.6923% !important;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
body #infinite-footer .container {
|
||||
padding: 0 0.761904762em;
|
||||
width: -webkit-calc(100% - 42px) !important;
|
||||
width: calc(100% - 42px) !important;
|
||||
}
|
||||
|
||||
body:not(.custom-background-image) #infinite-footer {
|
||||
bottom: 21px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 56.875em) {
|
||||
.infinite-loader .spinner {
|
||||
right: 0 !important;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.no-sidebar .infinite-loader .spinner {
|
||||
right: 50% !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.no-sidebar #infinite-handle {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 61.5625em) {
|
||||
.infinite-wrap > article,
|
||||
.site-main .infinite-loader {
|
||||
margin-bottom: 7.0em;
|
||||
}
|
||||
}
|
161
plugins/jetpack/modules/infinite-scroll/themes/twentysixteen.css
Normal file
161
plugins/jetpack/modules/infinite-scroll/themes/twentysixteen.css
Normal file
|
@ -0,0 +1,161 @@
|
|||
.infinite-scroll .pagination {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.infinite-wrap > article:before,
|
||||
.infinite-wrap > article:after {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.infinite-wrap > article:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.infinite-wrap > article {
|
||||
margin-bottom: 3.5em;
|
||||
}
|
||||
|
||||
/* Spinner */
|
||||
.site-main .infinite-loader {
|
||||
clear: both;
|
||||
color: currentColor;
|
||||
height: 42px;
|
||||
margin-bottom: 3.5em;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
left: 50% !important;
|
||||
top: 50% !important;
|
||||
}
|
||||
|
||||
/* Click-to-load */
|
||||
#infinite-handle {
|
||||
clear: both;
|
||||
margin-right: 7.6923%;
|
||||
margin-left: 7.6923%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span {
|
||||
background: #1a1a1a;
|
||||
border-radius: 2px;
|
||||
color: #fff;
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
font-size: inherit;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.046875em;
|
||||
line-height: 1;
|
||||
padding: 0.84375em 0.875em 0.78125em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
#infinite-handle span:hover,
|
||||
#infinite-handle span:focus {
|
||||
background: #007acc;
|
||||
}
|
||||
|
||||
#infinite-handle button:focus {
|
||||
outline-offset: 0.375em;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
body #infinite-footer {
|
||||
display: none;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
body #infinite-footer .container {
|
||||
background-color: #fff;
|
||||
background-color: rgba(255, 255, 255, 0.8);
|
||||
border-color: #d1d1d1;
|
||||
padding: 0 7.6923%;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-info {
|
||||
font-family: Montserrat, "Helvetica Neue", sans-serif;
|
||||
height: 2.1875em;
|
||||
line-height: 2.1875em;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-info a {
|
||||
color: #1a1a1a;
|
||||
font-size: inherit
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-credits {
|
||||
font-size: 13px;
|
||||
font-size: 0.8125rem;
|
||||
height: 2.692307692em;
|
||||
line-height: 2.692307692em;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-credits,
|
||||
body #infinite-footer .blog-credits a {
|
||||
color: #686868;
|
||||
}
|
||||
|
||||
body #infinite-footer .blog-info a:hover,
|
||||
body #infinite-footer .blog-info a:focus,
|
||||
body #infinite-footer .blog-credits a:hover,
|
||||
body #infinite-footer .blog-credits a:focus {
|
||||
color: #007acc;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 44.375em) {
|
||||
.infinite-wrap > article,
|
||||
.site-main .infinite-loader {
|
||||
margin-bottom: 5.25em;
|
||||
}
|
||||
|
||||
.infinite-loader .spinner {
|
||||
left: 7.6923% !important;
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.site-main #infinite-handle span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
body #infinite-footer .container {
|
||||
padding: 0 0.761904762em;
|
||||
width: -webkit-calc(100% - 42px) !important;
|
||||
width: calc(100% - 42px) !important;
|
||||
}
|
||||
|
||||
body:not(.custom-background-image) #infinite-footer {
|
||||
bottom: 21px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 56.875em) {
|
||||
.infinite-loader .spinner {
|
||||
left: 0 !important;
|
||||
}
|
||||
|
||||
#infinite-handle {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.no-sidebar .infinite-loader .spinner {
|
||||
left: 50% !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.no-sidebar #infinite-handle {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 61.5625em) {
|
||||
.infinite-wrap > article,
|
||||
.site-main .infinite-loader {
|
||||
margin-bottom: 7.0em;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for Twenty Sixteen.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinite scroll
|
||||
*/
|
||||
function twentysixteen_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'main',
|
||||
'render' => 'twentysixteen_infinite_scroll_render',
|
||||
'footer' => 'content',
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentysixteen_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Custom render function for Infinite Scroll.
|
||||
*/
|
||||
function twentysixteen_infinite_scroll_render() {
|
||||
while ( have_posts() ) {
|
||||
the_post();
|
||||
if ( is_search() ) {
|
||||
get_template_part( 'template-parts/content', 'search' );
|
||||
} else {
|
||||
get_template_part( 'template-parts/content', get_post_format() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for Infinite Scroll.
|
||||
*/
|
||||
function twentysixteen_infinite_scroll_enqueue_styles() {
|
||||
wp_enqueue_style( 'infinity-twentysixteen', plugins_url( 'twentysixteen.css', __FILE__ ), array( 'the-neverending-homepage' ), '20151102' );
|
||||
wp_style_add_data( 'infinity-twentysixteen', 'rtl', 'replace' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentysixteen_infinite_scroll_enqueue_styles', 25 );
|
25
plugins/jetpack/modules/infinite-scroll/themes/twentyten.css
Normal file
25
plugins/jetpack/modules/infinite-scroll/themes/twentyten.css
Normal file
|
@ -0,0 +1,25 @@
|
|||
/* =Infinity Styles
|
||||
-------------------------------------------------------------- */
|
||||
.infinite-scroll #wrapper {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.infinite-scroll #content {
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
.infinite-scroll #content .infinite-wrap {
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
/* Elements to hide */
|
||||
.infinite-scroll #nav-above,
|
||||
.infinite-scroll #nav-below,
|
||||
.infinite-scroll.neverending #footer {
|
||||
display: none;
|
||||
}
|
||||
/* Restore the footer when IS is finished */
|
||||
.infinity-end.neverending #footer {
|
||||
display: block;
|
||||
}
|
||||
#infinite-footer .blog-info a {
|
||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
}
|
48
plugins/jetpack/modules/infinite-scroll/themes/twentyten.php
Normal file
48
plugins/jetpack/modules/infinite-scroll/themes/twentyten.php
Normal file
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for @Twenty Ten and enqueue relevant styles.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinity scroll
|
||||
*/
|
||||
function twenty_ten_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'content',
|
||||
'render' => 'twenty_ten_infinite_scroll_render',
|
||||
'footer' => 'wrapper',
|
||||
) );
|
||||
}
|
||||
add_action( 'init', 'twenty_ten_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Set the code to be rendered on for calling posts,
|
||||
* hooked to template parts when possible.
|
||||
*
|
||||
* Note: must define a loop.
|
||||
*/
|
||||
function twenty_ten_infinite_scroll_render() {
|
||||
get_template_part( 'loop' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for infinity.
|
||||
*/
|
||||
function twenty_ten_infinite_scroll_enqueue_styles() {
|
||||
// Add theme specific styles.
|
||||
wp_enqueue_style( 'infinity-twentyten', plugins_url( 'twentyten.css', __FILE__ ), array( 'the-neverending-homepage' ), '20121002' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twenty_ten_infinite_scroll_enqueue_styles', 25 );
|
||||
|
||||
/**
|
||||
* Do we have footer widgets?
|
||||
*/
|
||||
function twenty_ten_has_footer_widgets( $has_widgets ) {
|
||||
if ( is_active_sidebar( 'first-footer-widget-area' ) || is_active_sidebar( 'second-footer-widget-area' ) || is_active_sidebar( 'third-footer-widget-area' ) || is_active_sidebar( 'fourth-footer-widget-area' ) )
|
||||
$has_widgets = true;
|
||||
|
||||
return $has_widgets;
|
||||
}
|
||||
add_filter( 'infinite_scroll_has_footer_widgets', 'twenty_ten_has_footer_widgets' );
|
|
@ -0,0 +1,90 @@
|
|||
/* =Infinite Scroll
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
.infinite-wrap {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
/* Spinner */
|
||||
.infinite-loader {
|
||||
background-color: #e8e5ce;
|
||||
padding: 40px 0;
|
||||
}
|
||||
.infinite-loader .spinner {
|
||||
margin: 0 auto;
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
.sidebar .infinite-loader .spinner {
|
||||
padding-right: 376px;
|
||||
}
|
||||
.rtl.sidebar .infinite-loader .spinner {
|
||||
padding-left: 376px;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
/* Click-to-load */
|
||||
#infinite-handle {
|
||||
background-color: #e8e5ce;
|
||||
padding: 40px 0;
|
||||
text-align: center;
|
||||
}
|
||||
.sidebar #infinite-handle {
|
||||
padding-right: 376px;
|
||||
}
|
||||
.rtl.sidebar #infinite-handle {
|
||||
padding-left: 376px;
|
||||
padding-right: 0;
|
||||
}
|
||||
#infinite-handle span {
|
||||
background: #e05d22; /* Old browsers */
|
||||
background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */
|
||||
background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */
|
||||
border: none;
|
||||
border-bottom: 3px solid #b93207;
|
||||
border-radius: 2px;
|
||||
display: inline-block;
|
||||
color: #fff;
|
||||
font-size: 100%;
|
||||
padding: 11px 24px 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
#infinite-handle span:hover {
|
||||
background: #ed6a31; /* Old browsers */
|
||||
background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */
|
||||
background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */
|
||||
outline: none;
|
||||
}
|
||||
#infinite-handle span:active {
|
||||
background: #d94412; /* Old browsers */
|
||||
background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */
|
||||
background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */
|
||||
border: none;
|
||||
border-top: 3px solid #b93207;
|
||||
padding: 10px 24px 11px;
|
||||
}
|
||||
|
||||
/* Elements to hide: post navigation, normal footer. */
|
||||
.infinite-scroll .paging-navigation,
|
||||
.infinite-scroll.neverending #colophon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hooks to infinity-end body class to restore footer. */
|
||||
.infinity-end.neverending #colophon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* For small viewports. */
|
||||
@media (max-width: 999px) {
|
||||
.sidebar .infinite-loader .spinner,
|
||||
.rtl.sidebar .infinite-loader .spinner {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
.infinite-scroll #infinite-handle,
|
||||
.rtl.sidebar #infinite-handle {
|
||||
padding-right: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for Twenty Thirteen.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinite scroll
|
||||
*/
|
||||
function twentythirteen_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'content',
|
||||
'footer' => 'page',
|
||||
'footer_widgets' => array( 'sidebar-1' )
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twentythirteen_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for Infinite Scroll.
|
||||
*/
|
||||
function twentythirteen_infinite_scroll_enqueue_styles() {
|
||||
wp_enqueue_style( 'infinity-twentythirteen', plugins_url( 'twentythirteen.css', __FILE__ ), array( 'the-neverending-homepage' ), '20130409' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twentythirteen_infinite_scroll_enqueue_styles', 25 );
|
|
@ -0,0 +1,33 @@
|
|||
/* =Infinity Styles
|
||||
-------------------------------------------------------------- */
|
||||
.infinite-scroll .site-content:after {
|
||||
clear: both;
|
||||
content: '';
|
||||
display: block;
|
||||
}
|
||||
.infinite-wrap {
|
||||
border-top: 0;
|
||||
}
|
||||
.infinite-scroll.neverending .site-content {
|
||||
margin-bottom: 48px;
|
||||
margin-bottom: 3.428571429rem;
|
||||
}
|
||||
|
||||
/* Elements to hide: post navigation, regular footer */
|
||||
.infinite-scroll #nav-below,
|
||||
.infinite-scroll.neverending #colophon {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Hooks to infinity-end body class to restore footer */
|
||||
.infinity-end.neverending #colophon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* For responsive CSS */
|
||||
@media (max-width: 599px) {
|
||||
.infinite-scroll #infinite-handle {
|
||||
padding-bottom: 48px;
|
||||
padding-bottom: 3.428571429rem;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
/**
|
||||
* Infinite Scroll Theme Assets
|
||||
*
|
||||
* Register support for Twenty Twelve and enqueue relevant styles.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Add theme support for infinite scroll
|
||||
*/
|
||||
function twenty_twelve_infinite_scroll_init() {
|
||||
add_theme_support( 'infinite-scroll', array(
|
||||
'container' => 'content',
|
||||
'footer' => 'page'
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'twenty_twelve_infinite_scroll_init' );
|
||||
|
||||
/**
|
||||
* Enqueue CSS stylesheet with theme styles for infinity.
|
||||
*/
|
||||
function twenty_twelve_infinite_scroll_enqueue_styles() {
|
||||
// Add theme specific styles.
|
||||
wp_enqueue_style( 'infinity-twentytwelve', plugins_url( 'twentytwelve.css', __FILE__ ), array( 'the-neverending-homepage' ), '20120817' );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'twenty_twelve_infinite_scroll_enqueue_styles', 25 );
|
||||
|
||||
/**
|
||||
* Handle `footer_widgets` argument for mobile devices
|
||||
*
|
||||
* @param bool $has_widgets
|
||||
* @uses jetpack_is_mobile, is_front_page, is_active_sidebar
|
||||
* @filter infinite_scroll_has_footer_widgets
|
||||
* @return bool
|
||||
*/
|
||||
function twenty_twelve_has_footer_widgets( $has_widgets ) {
|
||||
if ( function_exists( 'jetpack_is_mobile' ) && jetpack_is_mobile() ) {
|
||||
if ( is_front_page() && ( is_active_sidebar( 'sidebar-2' ) || is_active_sidebar( 'sidebar-3' ) ) )
|
||||
$has_widgets = true;
|
||||
elseif ( is_active_sidebar( 'sidebar-1' ) )
|
||||
$has_widgets = true;
|
||||
}
|
||||
|
||||
return $has_widgets;
|
||||
}
|
||||
add_filter( 'infinite_scroll_has_footer_widgets', 'twenty_twelve_has_footer_widgets' );
|
Reference in a new issue