diff --git a/wp-content/plugins/gp-premium/blog/functions/css/columns.css b/wp-content/plugins/gp-premium/blog/functions/css/columns.css index 6931a338..9c30b42a 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/columns.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/columns.css @@ -15,16 +15,12 @@ /* columns */ .generate-columns-container:not(.masonry-container) { display: flex; - flex-flow: row wrap; + flex-wrap: wrap; align-items: stretch; } -.generate-columns-container:not(.masonry-container) .generate-columns { - display: flex; -} - .generate-columns .inside-article { - width: 100%; + height: 100%; box-sizing: border-box; } @@ -46,10 +42,6 @@ margin-bottom: 0; } -.no-sidebar .generate-columns-container .inside-article > * { - max-width: none; -} - .load-more:not(.has-svg-icon) .button.loading:before { content: "\e900"; display: inline-block; diff --git a/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css b/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css index 3cf7ea34..8f14bb26 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/columns.min.css @@ -1 +1 @@ -.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-flow:row wrap;align-items:stretch}.generate-columns-container:not(.masonry-container) .generate-columns{display:flex}.generate-columns .inside-article{width:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.no-sidebar .generate-columns-container .inside-article>*{max-width:none}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container .generate-columns,.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file +.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-wrap:wrap;align-items:stretch}.generate-columns .inside-article{height:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container .generate-columns,.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file diff --git a/wp-content/plugins/gp-premium/blog/functions/css/style.css b/wp-content/plugins/gp-premium/blog/functions/css/style.css index 499f5d19..71c2b9ba 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/style.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/style.css @@ -126,16 +126,12 @@ /* columns */ .generate-columns-container:not(.masonry-container) { display: flex; - flex-flow: row wrap; + flex-wrap: wrap; align-items: stretch; } -.generate-columns-container:not(.masonry-container) .generate-columns { - display: flex; -} - .generate-columns .inside-article { - width: 100%; + height: 100%; box-sizing: border-box; } @@ -157,10 +153,6 @@ margin-bottom: 0; } -.no-sidebar .generate-columns-container .inside-article > * { - max-width: none; -} - .load-more:not(.has-svg-icon) .button.loading:before { content: "\e900"; display: inline-block; diff --git a/wp-content/plugins/gp-premium/blog/functions/css/style.min.css b/wp-content/plugins/gp-premium/blog/functions/css/style.min.css index e37470be..0c80c695 100644 --- a/wp-content/plugins/gp-premium/blog/functions/css/style.min.css +++ b/wp-content/plugins/gp-premium/blog/functions/css/style.min.css @@ -1 +1 @@ -.post-image-above-header .inside-article .featured-image,.post-image-above-header .inside-article .post-image{margin-top:0;margin-bottom:2em}.post-image-aligned-left .inside-article .featured-image,.post-image-aligned-left .inside-article .post-image{margin-top:0;margin-right:2em;float:left;text-align:left}.post-image-aligned-center .featured-image,.post-image-aligned-center .post-image{text-align:center}.post-image-aligned-right .inside-article .featured-image,.post-image-aligned-right .inside-article .post-image{margin-top:0;margin-left:2em;float:right;text-align:right}.post-image-below-header.post-image-aligned-center .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .post-image,.post-image-below-header.post-image-aligned-right .inside-article .featured-image,.post-image-below-header.post-image-aligned-right .inside-article .post-image{margin-top:2em}.post-image-aligned-left>.featured-image,.post-image-aligned-right>.featured-image{float:none;margin-left:auto;margin-right:auto}.post-image-aligned-left .featured-image{text-align:left}.post-image-aligned-right .featured-image{text-align:right}.post-image-aligned-left .inside-article:after,.post-image-aligned-left .inside-article:before,.post-image-aligned-right .inside-article:after,.post-image-aligned-right .inside-article:before{content:"";display:table}.post-image-aligned-left .inside-article:after,.post-image-aligned-right .inside-article:after{clear:both}.post-image-aligned-left .inside-article,.post-image-aligned-right .inside-article{zoom:1}.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image,.one-container.post-image-above-header .page-header+.no-featured-image-padding .inside-article .post-image{margin-top:0}.one-container.both-right.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-right.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-right:0}.one-container.both-left.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-left.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0}.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0;margin-right:0}.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .featured-image,.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .post-image{margin-left:0;margin-right:0}@media (max-width:768px){body:not(.post-image-aligned-center) .featured-image,body:not(.post-image-aligned-center) .inside-article .featured-image,body:not(.post-image-aligned-center) .inside-article .post-image{margin-right:0;margin-left:0;float:none;text-align:center}}.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-flow:row wrap;align-items:stretch}.generate-columns-container:not(.masonry-container) .generate-columns{display:flex}.generate-columns .inside-article{width:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.no-sidebar .generate-columns-container .inside-article>*{max-width:none}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container .generate-columns,.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file +.post-image-above-header .inside-article .featured-image,.post-image-above-header .inside-article .post-image{margin-top:0;margin-bottom:2em}.post-image-aligned-left .inside-article .featured-image,.post-image-aligned-left .inside-article .post-image{margin-top:0;margin-right:2em;float:left;text-align:left}.post-image-aligned-center .featured-image,.post-image-aligned-center .post-image{text-align:center}.post-image-aligned-right .inside-article .featured-image,.post-image-aligned-right .inside-article .post-image{margin-top:0;margin-left:2em;float:right;text-align:right}.post-image-below-header.post-image-aligned-center .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .featured-image,.post-image-below-header.post-image-aligned-left .inside-article .post-image,.post-image-below-header.post-image-aligned-right .inside-article .featured-image,.post-image-below-header.post-image-aligned-right .inside-article .post-image{margin-top:2em}.post-image-aligned-left>.featured-image,.post-image-aligned-right>.featured-image{float:none;margin-left:auto;margin-right:auto}.post-image-aligned-left .featured-image{text-align:left}.post-image-aligned-right .featured-image{text-align:right}.post-image-aligned-left .inside-article:after,.post-image-aligned-left .inside-article:before,.post-image-aligned-right .inside-article:after,.post-image-aligned-right .inside-article:before{content:"";display:table}.post-image-aligned-left .inside-article:after,.post-image-aligned-right .inside-article:after{clear:both}.post-image-aligned-left .inside-article,.post-image-aligned-right .inside-article{zoom:1}.one-container.post-image-above-header .no-featured-image-padding.generate-columns .inside-article .post-image,.one-container.post-image-above-header .page-header+.no-featured-image-padding .inside-article .post-image{margin-top:0}.one-container.both-right.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-right.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.right-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-right:0}.one-container.both-left.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-left.post-image-aligned-center .no-featured-image-padding .post-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.left-sidebar.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0}.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .featured-image,.one-container.both-sidebars.post-image-aligned-center .no-featured-image-padding .post-image{margin-left:0;margin-right:0}.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .featured-image,.one-container.post-image-aligned-center .no-featured-image-padding.generate-columns .post-image{margin-left:0;margin-right:0}@media (max-width:768px){body:not(.post-image-aligned-center) .featured-image,body:not(.post-image-aligned-center) .inside-article .featured-image,body:not(.post-image-aligned-center) .inside-article .post-image{margin-right:0;margin-left:0;float:none;text-align:center}}.masonry-enabled .page-header{position:relative!important}.separate-containers .site-main>.generate-columns-container{margin-bottom:0}.load-more.are-images-unloaded,.masonry-container.are-images-unloaded,.masonry-enabled #nav-below{opacity:0}.generate-columns-container:not(.masonry-container){display:flex;flex-wrap:wrap;align-items:stretch}.generate-columns .inside-article{height:100%;box-sizing:border-box}.generate-columns-activated.post-image-aligned-left .generate-columns-container article:not(.featured-column) .post-image,.generate-columns-activated.post-image-aligned-right .generate-columns-container article:not(.featured-column) .post-image{float:none;text-align:center;margin-left:0;margin-right:0}.generate-columns-container .page-header,.generate-columns-container .paging-navigation{flex:1 1 100%;clear:both}.generate-columns-container .paging-navigation{margin-bottom:0}.load-more:not(.has-svg-icon) .button.loading:before{content:"\e900";display:inline-block;font-family:"GP Premium";font-style:normal;font-weight:400;font-variant:normal;text-transform:none;line-height:1;animation:spin 2s infinite linear;margin-right:7px}.load-more .button:not(.loading) .gp-icon{display:none}.load-more .gp-icon svg{animation:spin 2s infinite linear;margin-right:7px}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}.generate-columns{box-sizing:border-box}.generate-columns.grid-20,.grid-sizer.grid-20{width:20%}.generate-columns.grid-25,.grid-sizer.grid-25{width:25%}.generate-columns.grid-33,.grid-sizer.grid-33{width:33.3333%}.generate-columns.grid-50,.grid-sizer.grid-50{width:50%}.generate-columns.grid-60,.grid-sizer.grid-60{width:60%}.generate-columns.grid-66,.grid-sizer.grid-66{width:66.66667%}@media (min-width:768px) and (max-width:1024px){.generate-columns.tablet-grid-50,.grid-sizer.tablet-grid-50{width:50%}}@media (max-width:767px){.generate-columns-activated .generate-columns-container{margin-left:0;margin-right:0}.generate-columns-container .generate-columns,.generate-columns-container>*{padding-left:0}.generate-columns-container .page-header{margin-left:0}.generate-columns.mobile-grid-100,.grid-sizer.mobile-grid-100{width:100%}.generate-columns-container>.paging-navigation{margin-left:0}}@media (max-width:768px){.load-more{display:block;text-align:center;margin-bottom:0}} \ No newline at end of file diff --git a/wp-content/plugins/gp-premium/blog/functions/customizer.php b/wp-content/plugins/gp-premium/blog/functions/customizer.php index 6eefcb53..b524abba 100644 --- a/wp-content/plugins/gp-premium/blog/functions/customizer.php +++ b/wp-content/plugins/gp-premium/blog/functions/customizer.php @@ -5,30 +5,30 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { add_action( 'customize_register', 'generate_blog_customize_register', 99 ); function generate_blog_customize_register( $wp_customize ) { - // Get our defaults + // Get our defaults. $defaults = generate_blog_get_defaults(); - // Get our controls + // Get our controls. require_once GP_LIBRARY_DIRECTORY . 'customizer-helpers.php'; - // Add control types so controls can be built using JS + // Add control types so controls can be built using JS. if ( method_exists( $wp_customize, 'register_control_type' ) ) { $wp_customize->register_control_type( 'GeneratePress_Title_Customize_Control' ); } - // Remove our blog control from the free theme + // Remove our blog control from the free theme. if ( $wp_customize->get_control( 'blog_content_control' ) ) { $wp_customize->remove_control( 'blog_content_control' ); } - // Register our custom controls - if ( method_exists( $wp_customize,'register_control_type' ) ) { + // Register our custom controls. + if ( method_exists( $wp_customize, 'register_control_type' ) ) { $wp_customize->register_control_type( 'GeneratePress_Refresh_Button_Customize_Control' ); $wp_customize->register_control_type( 'GeneratePress_Information_Customize_Control' ); $wp_customize->register_control_type( 'Generate_Control_Toggle_Customize_Control' ); } - // Blog content section + // Blog content section. $wp_customize->add_section( 'generate_blog_section', array( @@ -48,7 +48,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'type' => 'generatepress-customizer-title', 'title' => __( 'Content', 'gp-premium' ), 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', - 'priority' => 0, + 'priority' => 1, ) ) ); @@ -64,7 +64,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'post-meta-single' => __( 'Single', 'gp-premium' ), ), 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', - 'priority' => 0, + 'priority' => 1, ) ) ); @@ -729,7 +729,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'section' => 'generate_blog_section', 'choices' => generate_blog_get_image_sizes(), 'settings' => 'generate_blog_settings[single_post_image_size]', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_featured_image_active', ) ); @@ -750,7 +750,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'label' => __( 'Width', 'gp-premium' ), 'section' => 'generate_blog_section', 'settings' => 'generate_blog_settings[single_post_image_width]', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_featured_image_active', ) ); @@ -771,7 +771,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'label' => __( 'Height', 'gp-premium' ), 'section' => 'generate_blog_section', 'settings' => 'generate_blog_settings[single_post_image_height]', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_featured_image_active', ) ); @@ -786,7 +786,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { '' . __( 'here', 'gp-premium' ) . '' ), 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_featured_image_active', ) ) ); @@ -904,7 +904,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'section' => 'generate_blog_section', 'choices' => generate_blog_get_image_sizes(), 'settings' => 'generate_blog_settings[page_post_image_size]', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_page_featured_image_active', ) ); @@ -925,7 +925,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'label' => __( 'Width', 'gp-premium' ), 'section' => 'generate_blog_section', 'settings' => 'generate_blog_settings[page_post_image_width]', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_page_featured_image_active', ) ); @@ -946,7 +946,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { 'label' => __( 'Height', 'gp-premium' ), 'section' => 'generate_blog_section', 'settings' => 'generate_blog_settings[page_post_image_height]', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_page_featured_image_active', ) ); @@ -961,7 +961,7 @@ if ( ! function_exists( 'generate_blog_customize_register' ) ) { '' . __( 'here', 'gp-premium' ) . '' ), 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', - 'active_callback' => 'generate_premium_featured_image_active', + 'active_callback' => 'generate_premium_single_page_featured_image_active', ) ) ); @@ -1118,7 +1118,7 @@ if ( ! function_exists( 'generate_blog_customizer_live_preview' ) ) { wp_enqueue_script( 'generate-blog-themecustomizer', trailingslashit( plugin_dir_url( __FILE__ ) ) . 'js/customizer.js', - array( 'jquery', 'customize-preview', 'gp-premium' ), + array( 'jquery', 'customize-preview', 'generate-blog' ), GENERATE_BLOG_VERSION, true ); diff --git a/wp-content/plugins/gp-premium/blog/functions/generate-blog.php b/wp-content/plugins/gp-premium/blog/functions/generate-blog.php index ff830a11..bc0e5535 100644 --- a/wp-content/plugins/gp-premium/blog/functions/generate-blog.php +++ b/wp-content/plugins/gp-premium/blog/functions/generate-blog.php @@ -27,13 +27,13 @@ if ( ! function_exists( 'generate_blog_scripts' ) ) { $deps = array(); if ( 'true' == generate_blog_get_masonry() && generate_blog_get_columns() ) { - $deps[] = 'jquery-masonry'; + $deps[] = 'masonry'; $deps[] = 'imagesloaded'; } - if ( $settings[ 'infinite_scroll' ] && ! is_singular() && ! is_404() ) { - $deps[] = 'infinitescroll'; - wp_enqueue_script( 'infinitescroll', plugin_dir_url( __FILE__ ) . 'js/infinite-scroll.pkgd.min.js', array( 'jquery' ), '3.0.1', true ); + if ( $settings[ 'infinite_scroll' ] && ! is_singular() && ! is_404() && ! is_post_type_archive( 'product' ) ) { + $deps[] = 'infinite-scroll'; + wp_enqueue_script( 'infinite-scroll', plugin_dir_url( __FILE__ ) . 'js/infinite-scroll.pkgd.min.js', array(), '3.0.6', true ); $font_icons = true; @@ -48,7 +48,7 @@ if ( ! function_exists( 'generate_blog_scripts' ) ) { } } - if ( ( 'true' == generate_blog_get_masonry() && generate_blog_get_columns() ) || ( $settings[ 'infinite_scroll' ] && ! is_singular() && ! is_404() ) ) { + if ( ( 'true' == generate_blog_get_masonry() && generate_blog_get_columns() ) || ( $settings[ 'infinite_scroll' ] && ! is_singular() && ! is_404() && ! is_post_type_archive( 'product' ) ) ) { wp_enqueue_script( 'generate-blog', plugin_dir_url( __FILE__ ) . "js/scripts{$suffix}.js", $deps, GENERATE_BLOG_VERSION, true ); wp_localize_script( @@ -62,7 +62,7 @@ if ( ! function_exists( 'generate_blog_scripts' ) ) { 'generate_blog_masonry_init', array( 'columnWidth' => '.grid-sizer', - 'itemSelector' => 'none', + 'itemSelector' => '.masonry-post', 'stamp' => '.page-header', 'percentPosition' => true, 'stagger' => 30, @@ -79,8 +79,8 @@ if ( ! function_exists( 'generate_blog_scripts' ) ) { 'infiniteScrollInit' => apply_filters( 'generate_blog_infinite_scroll_init', array( - 'path' => '.nav-links .next', - 'append' => '#main article', + 'path' => '.infinite-scroll-path a', + 'append' => '#main .infinite-scroll-item', 'history' => false, 'loadOnScroll' => $settings['infinite_scroll_button'] ? false : true, 'button' => $settings['infinite_scroll_button'] ? '.load-more a' : null, @@ -144,6 +144,10 @@ if ( ! function_exists( 'generate_blog_post_classes' ) ) { generate_blog_get_defaults() ); + if ( $settings['infinite_scroll'] ) { + $classes[] = 'infinite-scroll-item'; + } + // Set our masonry class if ( 'true' == generate_blog_get_masonry() && generate_blog_get_columns() ) { $classes[] = 'masonry-post'; @@ -594,7 +598,7 @@ add_filter( 'generate_content_more_link_output', 'generate_blog_read_more_button * * @since 1.5 * - * @param string Our existing read more link. + * @param string $output Our existing read more link. */ function generate_blog_read_more_button( $output ) { $settings = wp_parse_args( @@ -602,16 +606,21 @@ function generate_blog_read_more_button( $output ) { generate_blog_get_defaults() ); - if ( ! $settings[ 'read_more_button' ] ) { + if ( ! $settings['read_more_button'] ) { return $output; } - return sprintf( '%5$s

%3$s%4$s

', + return sprintf( + '%5$s

%3$s

', the_title_attribute( 'echo=0' ), - esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump','#more-' . get_the_ID() ) ), + esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump', '#more-' . get_the_ID() ) ), wp_kses_post( $settings['read_more'] ), - '' . get_the_title() . '', - 'generate_excerpt_more_output' == current_filter() ? ' ... ' : '' + sprintf( + /* translators: Aria-label describing the read more button */ + _x( 'More on %s', 'more on post title', 'gp-premium' ), + the_title_attribute( 'echo=0' ) + ), + 'generate_excerpt_more_output' === current_filter() ? ' ... ' : '' ); } @@ -675,3 +684,27 @@ function generate_blog_get_singular_template() { return $template; } + +add_action( 'generate_after_footer', 'generate_blog_do_infinite_scroll_path', 500 ); +/** + * Add a next page of posts link for infinite scroll. + * + * @since 2.0.0 + */ +function generate_blog_do_infinite_scroll_path() { + if ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) { + return; + } + + $settings = wp_parse_args( + get_option( 'generate_blog_settings', array() ), + generate_blog_get_defaults() + ); + + if ( $settings['infinite_scroll'] && ! is_singular() && ! is_404() ) { + printf( + '', + get_next_posts_link() + ); + } +} diff --git a/wp-content/plugins/gp-premium/blog/functions/js/controls.js b/wp-content/plugins/gp-premium/blog/functions/js/controls.js index bda598c5..eb397ff9 100644 --- a/wp-content/plugins/gp-premium/blog/functions/js/controls.js +++ b/wp-content/plugins/gp-premium/blog/functions/js/controls.js @@ -1,6 +1,6 @@ -jQuery( document ).ready( function($) { +jQuery( function( $ ) { // Featured image controls - var featured_image_archive_controls = [ + var featuredImageArchiveControls = [ 'generate_blog_settings-post_image', 'generate_blog_settings-post_image_padding', 'generate_blog_settings-post_image_position', @@ -11,11 +11,11 @@ jQuery( document ).ready( function($) { 'generate_regenerate_images_notice', ]; - $.each( featured_image_archive_controls, function( index, value ) { + $.each( featuredImageArchiveControls, function( index, value ) { $( '#customize-control-' + value ).attr( 'data-control-section', 'featured-image-archives' ); } ); - var featured_image_single_controls = [ + var featuredImageSingleControls = [ 'generate_blog_settings-single_post_image', 'generate_blog_settings-single_post_image_padding', 'generate_blog_settings-single_post_image_position', @@ -26,17 +26,17 @@ jQuery( document ).ready( function($) { 'generate_regenerate_single_post_images_notice', ]; - $.each( featured_image_single_controls, function( index, value ) { + $.each( featuredImageSingleControls, function( index, value ) { $( '#customize-control-' + value ).attr( 'data-control-section', 'featured-image-single' ).css( { visibility: 'hidden', height: '0', width: '0', margin: '0', - overflow: 'hidden' + overflow: 'hidden', } ); } ); - var featured_image_page_controls = [ + var featuredImagePageControls = [ 'generate_blog_settings-page_post_image', 'generate_blog_settings-page_post_image_padding', 'generate_blog_settings-page_post_image_position', @@ -47,18 +47,18 @@ jQuery( document ).ready( function($) { 'generate_regenerate_page_images_notice', ]; - $.each( featured_image_page_controls, function( index, value ) { + $.each( featuredImagePageControls, function( index, value ) { $( '#customize-control-' + value ).attr( 'data-control-section', 'featured-image-page' ).css( { visibility: 'hidden', height: '0', width: '0', margin: '0', - overflow: 'hidden' + overflow: 'hidden', } ); } ); // Post meta controls - var post_meta_archive_controls = [ + var postMetaArchiveControls = [ 'generate_settings-post_content', 'generate_blog_settings-excerpt_length', 'generate_blog_settings-read_more', @@ -74,11 +74,11 @@ jQuery( document ).ready( function($) { 'blog_masonry_loading_control', ]; - $.each( post_meta_archive_controls, function( index, value ) { + $.each( postMetaArchiveControls, function( index, value ) { $( '#customize-control-' + value ).attr( 'data-control-section', 'post-meta-archives' ); } ); - var post_meta_single_controls = [ + var postMetaSingleControls = [ 'generate_blog_settings-single_date', 'generate_blog_settings-single_author', 'generate_blog_settings-single_categories', @@ -86,13 +86,13 @@ jQuery( document ).ready( function($) { 'generate_blog_settings-single_post_navigation', ]; - $.each( post_meta_single_controls, function( index, value ) { + $.each( postMetaSingleControls, function( index, value ) { $( '#customize-control-' + value ).attr( 'data-control-section', 'post-meta-single' ).css( { visibility: 'hidden', height: '0', width: '0', margin: '0', - overflow: 'hidden' + overflow: 'hidden', } ); } ); -}); +} ); diff --git a/wp-content/plugins/gp-premium/blog/functions/js/customizer.js b/wp-content/plugins/gp-premium/blog/functions/js/customizer.js index 8b57a224..f3c6656c 100644 --- a/wp-content/plugins/gp-premium/blog/functions/js/customizer.js +++ b/wp-content/plugins/gp-premium/blog/functions/js/customizer.js @@ -5,39 +5,38 @@ */ ( function( $ ) { - // Container width wp.customize( 'generate_settings[container_width]', function( value ) { - value.bind( function( newval ) { - if ( $( '.masonry-container' )[0] ) { - var $initiate = jQuery('.masonry-container').imagesLoaded( function() { - $container = jQuery('.masonry-container'); - if (jQuery($container).length) { - $container.masonry({ + value.bind( function() { + if ( $( '.masonry-container' )[ 0 ] ) { + jQuery( '.masonry-container' ).imagesLoaded( function() { + $container = jQuery( '.masonry-container' ); + if ( jQuery( $container ).length ) { + $container.masonry( { columnWidth: '.grid-sizer', itemSelector: '.masonry-post', - stamp: '.page-header' - }); + stamp: '.page-header', + } ); } - }); + } ); } } ); } ); $( 'body' ).on( 'generate_spacing_updated', function() { - if ( $( '.masonry-container' )[0] ) { - var $initiate = jQuery('.masonry-container').imagesLoaded( function() { - $container = jQuery('.masonry-container'); - if (jQuery($container).length) { - $container.masonry({ + if ( $( '.masonry-container' )[ 0 ] ) { + jQuery( '.masonry-container' ).imagesLoaded( function() { + $container = jQuery( '.masonry-container' ); + if ( jQuery( $container ).length ) { + $container.masonry( { columnWidth: '.grid-sizer', itemSelector: '.masonry-post', - stamp: '.page-header' - }); + stamp: '.page-header', + } ); } - }); + } ); } - }); + } ); /** * The first infinite scroll load in the Customizer misses article classes if they've been @@ -45,34 +44,33 @@ * * This is totally hacky, but I'm just happy I finally got it working! */ - var $container = $( 'article' ).first().parent(); - $container.on( 'load.infiniteScroll', function( event, response, path ) { - $posts = $( response ).find( 'article' ); - if ( wp.customize.value('generate_blog_settings[column_layout]')() ) { + var $container = $( '.infinite-scroll-item' ).first().parent(); + $container.on( 'load.infiniteScroll', function( event, response ) { + var $posts = $( response ).find( 'article' ); + if ( wp.customize.value( 'generate_blog_settings[column_layout]' )() ) { $posts.addClass( 'generate-columns' ); $posts.addClass( 'grid-parent' ); - $posts.addClass( 'grid-' + wp.customize.value('generate_blog_settings[columns]')() ); + $posts.addClass( 'grid-' + wp.customize.value( 'generate_blog_settings[columns]' )() ); $posts.addClass( 'tablet-grid-50' ); $posts.addClass( 'mobile-grid-100' ); } else { $posts.removeClass( 'generate-columns' ); $posts.removeClass( 'grid-parent' ); - $posts.removeClass( 'grid-' + wp.customize.value('generate_blog_settings[columns]')() ); + $posts.removeClass( 'grid-' + wp.customize.value( 'generate_blog_settings[columns]' )() ); $posts.removeClass( 'tablet-grid-50' ); $posts.removeClass( 'mobile-grid-100' ); } - if ( wp.customize.value('generate_blog_settings[masonry]')() ) { + if ( wp.customize.value( 'generate_blog_settings[masonry]' )() ) { $posts.addClass( 'masonry-post' ); } else { $posts.removeClass( 'masonry-post' ); } - if ( ! wp.customize.value('generate_blog_settings[post_image_padding]')() ) { + if ( ! wp.customize.value( 'generate_blog_settings[post_image_padding]' )() ) { $posts.addClass( 'no-featured-image-padding' ); } else { $posts.removeClass( 'no-featured-image-padding' ); } - }); - -} )( jQuery ); \ No newline at end of file + } ); +}( jQuery ) ); diff --git a/wp-content/plugins/gp-premium/blog/functions/js/infinite-scroll.pkgd.min.js b/wp-content/plugins/gp-premium/blog/functions/js/infinite-scroll.pkgd.min.js index f3eae0be..329c20c6 100644 --- a/wp-content/plugins/gp-premium/blog/functions/js/infinite-scroll.pkgd.min.js +++ b/wp-content/plugins/gp-premium/blog/functions/js/infinite-scroll.pkgd.min.js @@ -1,12 +1,12 @@ /*! - * Infinite Scroll PACKAGED v3.0.1 + * Infinite Scroll PACKAGED v3.0.6 * Automatically add next page * * Licensed GPLv3 for open source use * or Infinite Scroll Commercial License for commercial use * * https://infinite-scroll.com - * Copyright 2017 Metafizzy + * Copyright 2018 Metafizzy */ -!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,l){function a(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,a){var h=l.data(a,i);if(!h)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var c=h[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var u=c.apply(h,n);o=void 0===o?u:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=l.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),l.data(n,i,o))})}l=l||e||t.jQuery,l&&(r.prototype.option||(r.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return a(this,t,e)}return h(this,t),this},n(l))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=0,o=i[n];e=e||[];for(var r=this._onceEvents&&this._onceEvents[t];o;){var s=r&&r[o];s&&(this.off(t,o),delete r[o]),o.apply(this,e),n+=s?0:1,o=i[n]}return this}},e.allOff=e.removeAllListeners=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){console.log("stopping prefill"),this.off("append",this.prefill)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold,e=t||0===t;e&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle(function(){var t=this.getBottomDistance();t<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){var e=this.top+this.element.clientHeight,i=t.pageYOffset+this.windowHeight;return e-i},n.getElementBottomDistance=function(){var t=this.scroller.scrollHeight,e=this.scroller.scrollTop+this.scroller.clientHeight;return t-e},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var t=o.origin||o.protocol+"//"+o.host,e=t==location.origin;return e?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.")}},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){var t=this.options.history&&this.options.append;t&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){var i=e.getBoundingClientRect();return i.top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var i=this.options.history,n=i&&history[i+"State"];n&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);if(t)return void(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener(this.clickHandler)},e.Button=n,e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){r(t,"none")}function o(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){var t=i.getQueryElement(this.options.status);if(t){this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus);var e=this.options.append?"append":"load";this.on(e,this.hideAllStatus)}},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last")},s.showStatus=function(t){o(this.statusElement),this.hideStatusEventElements();var e=this.statusEventElements[t];o(e)},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){var e=this.statusEventElements[t];n(e)}},e}),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(t){return t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){var e=[];if(Array.isArray(t))e=t;else if("number"==typeof t.length)for(var i=0;i=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold,e=t||0===t;e&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle(function(){var t=this.getBottomDistance();t<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){var e=this.top+this.element.clientHeight,i=t.pageYOffset+this.windowHeight;return e-i},n.getElementBottomDistance=function(){var t=this.scroller.scrollHeight,e=this.scroller.scrollTop+this.scroller.clientHeight;return t-e},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var t=o.origin||o.protocol+"//"+o.host,e=t==location.origin;return e?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.")}},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){var t=this.options.history&&this.options.append;t&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(i&&i.length){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})}},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){var i=e.getBoundingClientRect();return i.top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var i=this.options.history,n=i&&history[i+"State"];n&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);if(t)return void(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=n,e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){r(t,"none")}function o(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){var t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){o(this.statusElement),this.hideStatusEventElements();var e=this.statusEventElements[t];o(e)},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){var e=this.statusEventElements[t];n(e)}},e}),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(t){return t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?h.call(t):[t]}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),l&&(this.jqDeferred=new l.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||t))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var l=t.jQuery,a=t.console,h=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n -