File manager - Edit - /home/premiey/www/wp-includes/images/media/blog-pro.tar
Back
class-astra-ext-blog-pro.php 0000666 00000002602 15165345270 0012023 0 ustar 00 <?php /** * Blog Pro Extension * * @package Astra Addon */ define( 'ASTRA_ADDON_EXT_BLOG_PRO_DIR', ASTRA_EXT_DIR . 'addons/blog-pro/' ); define( 'ASTRA_ADDON_EXT_BLOG_PRO_URI', ASTRA_EXT_URI . 'addons/blog-pro/' ); if ( ! class_exists( 'Astra_Ext_Blog_Pro' ) ) { /** * Blog Pro Initial Setup * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Blog_Pro { // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor function that initializes required actions and hooks */ public function __construct() { require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/class-astra-ext-blog-pro-images-resizer.php'; require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/class-astra-ext-blog-pro-loader.php'; require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/class-astra-ext-blog-pro-markup.php'; // Include front end files. if ( ! is_admin() ) { require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/dynamic.php'; } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Blog_Pro::get_instance(); } template/content-partial.php 0000666 00000001451 15165345270 0012211 0 ustar 00 <?php /** * Blog Pro partial content template. * * @link https://www.brainstormforce.com * @since 1.0.0 * @package Astra Addon */ if ( have_posts() ) : // Load content before the loop. do_action( 'astra_before_content_partial_loop' ); while ( have_posts() ) : the_post(); get_template_part( 'template-parts/content', 'single' ); // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; endwhile; // Load content after the loop. do_action( 'astra_after_content_partial_loop' ); else : // Load content if there are no more posts. do_action( 'astra_no_more_posts_content_partial' ); endif; // END if have_posts(). template/author-info.php 0000666 00000003017 15165345270 0011340 0 ustar 00 <?php /** * Author Info. * * @package Astra Addon * @since 1.0.0 */ do_action( 'astra_author_info_before' ); /** * Filters the Author box on single posts. * * @since 1.5.0 * * @param string the auhtor box markup on single post. */ echo wp_kses_post( apply_filters( 'astra_post_author_output', sprintf( '<div class="ast-single-author-box" %2$s itemscope itemtype="https://schema.org/Person">%1$s</div>', sprintf( '<div class="ast-author-meta"> <div class="about-author-title-wrapper"> <h3 class="about-author">%1$s</h3> </div> <div class="ast-author-details"> <div class="post-author-avatar">%2$s</div> <div class="post-author-bio"> <a class="url fn n" href="%3$s" %6$s rel="author"> <h4 class="author-title" %7$s>%4$s</h4> </a> <div class="post-author-desc">%5$s</div> </div> </div> </div>', esc_html__( 'About The Author', 'astra-addon' ), get_avatar( get_the_author_meta( 'email' ), 100 ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ), wp_kses_post( get_the_author_meta( 'description' ) ), astra_attr( 'author-url-info', array( 'class' => '', ) ), astra_attr( 'author-name-info', array( 'class' => '', ) ) ), astra_attr( 'author-item-info', array( 'class' => '', ) ), astra_attr( 'author-desc-info', array( 'class' => '', ) ) ) ) ); do_action( 'astra_author_info_after' ); template/blog-layout-3.php 0000666 00000003117 15165345270 0011504 0 ustar 00 <?php /** * Blog Pro - Blog Layout 3 Template * * @todo Update this template for Default Blog Style * * @package Astra Addon */ ?> <div <?php astra_blog_layout_class( 'blog-layout-3' ); ?>> <?php $astra_addon_blog_featured_image = apply_filters( 'astra_featured_image_enabled', true ); ?> <?php if ( $astra_addon_blog_featured_image ) : ?> <?php // Blog Post Featured Image. astra_get_post_thumbnail( '<div class="ast-blog-featured-section post-thumb ' . esc_html( apply_filters( 'astra_attr_ast-grid-col-6_output', 'ast-grid-col-6' ) ) . '">', '</div>' ); ?> <?php endif; ?> <div class="post-content <?php echo esc_html( apply_filters( 'astra_attr_ast-grid-col-6_output', 'ast-grid-col-6' ) ); ?>"> <?php if ( ! astra_addon_is_blog_title_meta_disabled() ) { astra_get_blog_post_title_meta(); } ?> <div class="entry-content clear" <?php echo wp_kses_post( astra_attr( 'article-entry-content-blog-layout-3', array( 'class' => '', ) ) ); ?> > <?php astra_entry_content_before(); ?> <?php astra_the_excerpt(); ?> <?php astra_entry_content_after(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html( astra_default_strings( 'string-blog-page-links-before', false ) ), 'after' => '</div>', 'link_before' => '<span class="page-link">', 'link_after' => '</span>', ) ); ?> </div><!-- .entry-content .clear --> </div><!-- .post-content --> </div> <!-- .blog-layout-3 --> template/blog-layout-2.php 0000666 00000003107 15165345270 0011502 0 ustar 00 <?php /** * Blog Pro - Blog Layout 2 Template * * @todo Update this template for Default Blog Style * * @package Astra Addon */ ?> <div <?php astra_blog_layout_class( 'blog-layout-2' ); ?>> <div class="post-content <?php echo esc_html( apply_filters( 'astra_attr_ast-grid-col-6_output', 'ast-grid-col-6' ) ); ?>"> <?php if ( ! astra_addon_is_blog_title_meta_disabled() ) { astra_get_blog_post_title_meta(); } ?> <div class="entry-content clear" <?php echo wp_kses_post( astra_attr( 'article-entry-content-blog-layout-2', array( 'class' => '', ) ) ); ?> > <?php astra_entry_content_before(); ?> <?php astra_the_excerpt(); ?> <?php astra_entry_content_after(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-links">' . esc_html( astra_default_strings( 'string-blog-page-links-before', false ) ), 'after' => '</div>', 'link_before' => '<span class="page-link">', 'link_after' => '</span>', ) ); ?> </div><!-- .entry-content .clear --> </div><!-- .post-content --> <?php $astra_addon_featured_item = apply_filters( 'astra_featured_image_enabled', true ); ?> <?php if ( $astra_addon_featured_item ) : ?> <?php // Blog Post Featured Image. astra_get_post_thumbnail( '<div class="ast-blog-featured-section post-thumb ' . esc_html( apply_filters( 'astra_attr_ast-grid-col-6_output', 'ast-grid-col-6' ) ) . '">', '</div>' ); ?> <?php endif; ?> </div> <!-- .blog-layout-2 --> template/index.php 0000666 00000000170 15165345270 0010211 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ index.php 0000666 00000000170 15165345270 0006376 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ assets/css/unminified/style-rtl.css 0000666 00000014453 15165345270 0013461 0 ustar 00 /* * Blog Common * * => Content * Normal Grid - 2 - Blog * Normal Grid - 3 - Blog * Normal Grid - 4 - Blog */ /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .ast-page-builder-template .ast-article-post { margin-bottom: 2.5em; } .ast-featured-post { float: none; } .ast-separate-container .ast-separate-posts.ast-article-post { margin-bottom: 2em; } /** * Normal Blog */ .ast-animate-hidden { visibility: hidden; opacity: 0; } .ast-animate-display { visibility: visible; opacity: 1; } .ast-no-thumb .ast-date-meta .posted-on { margin-bottom: 1.5em; } .ast-date-meta.circle .posted-on { border-radius: 50%; overflow: hidden; } .has-post-thumbnail .ast-date-meta.circle .posted-on { margin: 1em; } .ast-separate-container .ast-grid-1 .blog-layout-1 { padding: 0; } .ast-separate-container .ast-grid-1 .blog-layout-2, .ast-separate-container .ast-grid-1 .blog-layout-3 { padding: 0; border-bottom: 0; } .ast-separate-container .ast-grid-2 .ast-article-post, .ast-separate-container .ast-grid-3 .ast-article-post, .ast-separate-container .ast-grid-4 .ast-article-post { background: transparent; } .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3 { border-bottom: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 2.66666em; } .ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3 { padding: 1.5em; } @media (max-width: 1200px) { .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+1) { padding: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 1.5em; } } /* Full Width Content Stretch */ .ast-page-builder-template .ast-article-post .entry-header { margin: auto auto 1em auto; padding: 0; } .ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on { position: relative; display: inline-block; margin-bottom: 1em; } .ast-narrow-container.single .post-navigation, .ast-plain-container.single .post-navigation { margin-top: 2em; } hr.post-divider { height: 0; margin: 0; } hr.ast-single-previous-hr { height: 0; margin-top: 2em; } .ast-show-comments-data { padding: 2em 6.67em; } .ast-show-comments-data .ast-show-comments { cursor: pointer; } .ast-show-comments-data .ast-show-comments-count, .ast-show-comments-data .ast-show-comments { max-width: 640px; text-align: center; margin-right: auto; margin-left: auto; } .ast-show-comments-data .ast-show-comments-count { margin-bottom: 2em; } .ast-pagination-square .ast-pagination .page-numbers, .ast-pagination-circle .ast-pagination .page-numbers { border-style: solid; border-width: 1px; line-height: 2.33333em; } .ast-pagination-circle .ast-pagination .page-numbers { border-radius: 50%; } .ast-pagination-circle .ast-pagination .prev.page-numbers, .ast-pagination-circle .ast-pagination .next.page-numbers { border-radius: 30px; } @media all and (max-width: 768px) { #content:before { content: ""; } } /** * Infinite Scroll */ .ast-pagination-infinite { text-align: center; margin: 2.5em 0 0; } .ast-page-builder-template .ast-pagination-infinite { margin: 2.5em 0; } .ast-load-more { cursor: pointer; display: none; border: 2px solid var(--ast-border-color); transition: all 0.2s linear; color: #000; } .ast-load-more.active { display: inline-block; padding: 0 1.5em; line-height: 3em; } .ast-load-more.no-more:hover { border-color: var(--ast-border-color); color: #000; } /** * Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .posts-navigation, .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ display: none; } /** * When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */ .infinity-end.neverending .site-footer { display: block; } .ast-load-more.no-more:hover { background-color: inherit; } .no-more { cursor: default; } /* Loader */ .ast-loader { display: none; margin: 0 auto; min-height: 58px; line-height: 58px; width: 70px; text-align: center; } .ast-loader > div { width: 18px; height: 18px; background-color: #0085ba; border-radius: 100%; display: inline-block; animation: sk-bouncedelay 1.4s infinite ease-in-out both; } .ast-loader .ast-loader-1 { animation-delay: -0.32s; } .ast-loader .ast-loader-2 { animation-delay: -0.16s; } @keyframes sk-bouncedelay { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } /* Hiding 'ast-pagination' for infinite-scroll page. */ .ast-blog-pagination-type-infinite .ast-pagination { display: none; } assets/css/unminified/common-rtl.css 0000666 00000011026 15165345270 0013602 0 ustar 00 /* * Blog Common * * => Content * Normal Grid - 2 - Blog * Normal Grid - 3 - Blog * Normal Grid - 4 - Blog */ /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .ast-page-builder-template .ast-article-post { margin-bottom: 2.5em; } .ast-featured-post { float: none; } .ast-separate-container .ast-separate-posts.ast-article-post { margin-bottom: 2em; } /** * Normal Blog */ .ast-animate-hidden { visibility: hidden; opacity: 0; } .ast-animate-display { visibility: visible; opacity: 1; } .ast-no-thumb .ast-date-meta .posted-on { margin-bottom: 1.5em; } .ast-date-meta.circle .posted-on { border-radius: 50%; overflow: hidden; } .has-post-thumbnail .ast-date-meta.circle .posted-on { margin: 1em; } .ast-separate-container .ast-grid-1 .blog-layout-1 { padding: 0; } .ast-separate-container .ast-grid-1 .blog-layout-2, .ast-separate-container .ast-grid-1 .blog-layout-3 { padding: 0; border-bottom: 0; } .ast-separate-container .ast-grid-2 .ast-article-post, .ast-separate-container .ast-grid-3 .ast-article-post, .ast-separate-container .ast-grid-4 .ast-article-post { background: transparent; } .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3 { border-bottom: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 2.66666em; } .ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3 { padding: 1.5em; } @media (max-width: 1200px) { .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+1) { padding: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 1.5em; } } /* Full Width Content Stretch */ .ast-page-builder-template .ast-article-post .entry-header { margin: auto auto 1em auto; padding: 0; } .ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on { position: relative; display: inline-block; margin-bottom: 1em; } .ast-narrow-container.single .post-navigation, .ast-plain-container.single .post-navigation { margin-top: 2em; } hr.post-divider { height: 0; margin: 0; } hr.ast-single-previous-hr { height: 0; margin-top: 2em; } .ast-show-comments-data { padding: 2em 6.67em; } .ast-show-comments-data .ast-show-comments { cursor: pointer; } .ast-show-comments-data .ast-show-comments-count, .ast-show-comments-data .ast-show-comments { max-width: 640px; text-align: center; margin-right: auto; margin-left: auto; } .ast-show-comments-data .ast-show-comments-count { margin-bottom: 2em; } .ast-pagination-square .ast-pagination .page-numbers, .ast-pagination-circle .ast-pagination .page-numbers { border-style: solid; border-width: 1px; line-height: 2.33333em; } .ast-pagination-circle .ast-pagination .page-numbers { border-radius: 50%; } .ast-pagination-circle .ast-pagination .prev.page-numbers, .ast-pagination-circle .ast-pagination .next.page-numbers { border-radius: 30px; } @media all and (max-width: 768px) { #content:before { content: ""; } } assets/css/unminified/blog-layout-2-flex-rtl.css 0000666 00000002343 15165345270 0015645 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-2 { -js-display: flex; display: flex; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } @media (max-width: 768px) { .blog-layout-2 .post-content, .blog-layout-2 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-2 .ast-blog-featured-section .post-thumb { text-align: right; } } .blog-layout-2 .posted-on { left: 0; } .blog-layout-2 .post-thumb { text-align: left; } .blog-layout-2 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-2 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-2 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-2.ast-no-thumb .post-thumb { display: inline-block; } .blog-layout-2.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-2.ast-no-thumb .post-thumb { width: auto; } assets/css/unminified/blog-layout-3-flex-rtl.css 0000666 00000003123 15165345270 0015643 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-3 { -js-display: flex; display: flex; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } .blog-layout-3 .posted-on { right: 0; } @media (max-width: 768px) { .blog-layout-3 .post-content, .blog-layout-3 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-3 .ast-blog-featured-section .post-thumb { text-align: right; } } .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .post-thumb { width: auto; display: inline-block; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } assets/css/unminified/style.css 0000666 00000014453 15165345270 0012662 0 ustar 00 /* * Blog Common * * => Content * Normal Grid - 2 - Blog * Normal Grid - 3 - Blog * Normal Grid - 4 - Blog */ /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .ast-page-builder-template .ast-article-post { margin-bottom: 2.5em; } .ast-featured-post { float: none; } .ast-separate-container .ast-separate-posts.ast-article-post { margin-bottom: 2em; } /** * Normal Blog */ .ast-animate-hidden { visibility: hidden; opacity: 0; } .ast-animate-display { visibility: visible; opacity: 1; } .ast-no-thumb .ast-date-meta .posted-on { margin-bottom: 1.5em; } .ast-date-meta.circle .posted-on { border-radius: 50%; overflow: hidden; } .has-post-thumbnail .ast-date-meta.circle .posted-on { margin: 1em; } .ast-separate-container .ast-grid-1 .blog-layout-1 { padding: 0; } .ast-separate-container .ast-grid-1 .blog-layout-2, .ast-separate-container .ast-grid-1 .blog-layout-3 { padding: 0; border-bottom: 0; } .ast-separate-container .ast-grid-2 .ast-article-post, .ast-separate-container .ast-grid-3 .ast-article-post, .ast-separate-container .ast-grid-4 .ast-article-post { background: transparent; } .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3 { border-bottom: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 2.66666em; } .ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3 { padding: 1.5em; } @media (max-width: 1200px) { .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+1) { padding: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 1.5em; } } /* Full Width Content Stretch */ .ast-page-builder-template .ast-article-post .entry-header { margin: auto auto 1em auto; padding: 0; } .ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on { position: relative; display: inline-block; margin-bottom: 1em; } .ast-narrow-container.single .post-navigation, .ast-plain-container.single .post-navigation { margin-top: 2em; } hr.post-divider { height: 0; margin: 0; } hr.ast-single-previous-hr { height: 0; margin-top: 2em; } .ast-show-comments-data { padding: 2em 6.67em; } .ast-show-comments-data .ast-show-comments { cursor: pointer; } .ast-show-comments-data .ast-show-comments-count, .ast-show-comments-data .ast-show-comments { max-width: 640px; text-align: center; margin-left: auto; margin-right: auto; } .ast-show-comments-data .ast-show-comments-count { margin-bottom: 2em; } .ast-pagination-square .ast-pagination .page-numbers, .ast-pagination-circle .ast-pagination .page-numbers { border-style: solid; border-width: 1px; line-height: 2.33333em; } .ast-pagination-circle .ast-pagination .page-numbers { border-radius: 50%; } .ast-pagination-circle .ast-pagination .prev.page-numbers, .ast-pagination-circle .ast-pagination .next.page-numbers { border-radius: 30px; } @media all and (max-width: 768px) { #content:before { content: ""; } } /** * Infinite Scroll */ .ast-pagination-infinite { text-align: center; margin: 2.5em 0 0; } .ast-page-builder-template .ast-pagination-infinite { margin: 2.5em 0; } .ast-load-more { cursor: pointer; display: none; border: 2px solid var(--ast-border-color); transition: all 0.2s linear; color: #000; } .ast-load-more.active { display: inline-block; padding: 0 1.5em; line-height: 3em; } .ast-load-more.no-more:hover { border-color: var(--ast-border-color); color: #000; } /** * Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .posts-navigation, .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ display: none; } /** * When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */ .infinity-end.neverending .site-footer { display: block; } .ast-load-more.no-more:hover { background-color: inherit; } .no-more { cursor: default; } /* Loader */ .ast-loader { display: none; margin: 0 auto; min-height: 58px; line-height: 58px; width: 70px; text-align: center; } .ast-loader > div { width: 18px; height: 18px; background-color: #0085ba; border-radius: 100%; display: inline-block; animation: sk-bouncedelay 1.4s infinite ease-in-out both; } .ast-loader .ast-loader-1 { animation-delay: -0.32s; } .ast-loader .ast-loader-2 { animation-delay: -0.16s; } @keyframes sk-bouncedelay { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } /* Hiding 'ast-pagination' for infinite-scroll page. */ .ast-blog-pagination-type-infinite .ast-pagination { display: none; } assets/css/unminified/post-author.css 0000666 00000003407 15165345270 0014004 0 ustar 00 /** * Author Info for Single Post * * Content * 1 - Author Info Wrapper * 2 - Author Details Styles * 3 - Author Avatar Styles */ /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .single { /* 1 - Author Info Wrapper */ } .single .ast-single-author-box { display: inline-block; margin-top: 2em; width: 100%; border-top: 1px solid var(--ast-border-color); } .single .ast-author-meta { /* 2 - Author Details Styles */ /* 3 - Author Avatar Styles */ } .single .ast-author-meta .ast-author-details { width: 100%; } .single .ast-author-meta .about-author-title-wrapper, .single .ast-author-meta .post-author-bio { text-align: center; } .single .ast-author-meta .post-author-avatar { text-align: center; padding-right: 0; } .single .ast-author-meta .post-author-avatar img { border-radius: 50%; min-width: 100px; } .single .ast-author-meta .about-author-title-wrapper { padding: 0 0 1em; } .single.ast-separate-container .ast-single-author-box { border-top: 0; } .single.ast-separate-container .ast-author-meta { background-color: #fff; padding: 4em 6.67em; } @media (max-width: 1200px) { .single.ast-separate-container .ast-author-meta { padding: 3.34em 2.4em; } } .single.ast-plain-container .ast-single-author-box, .single.ast-page-builder-template .ast-single-author-box, .single.ast-narrow-container .ast-single-author-box { padding-top: 2em; } .single.ast-plain-container .ast-single-author-box, .single.ast-narrow-container .ast-single-author-box { margin-top: 0; } assets/css/unminified/blog-layout-3-flex.css 0000666 00000003121 15165345270 0015042 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-3 { -js-display: flex; display: flex; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } .blog-layout-3 .posted-on { left: 0; } @media (max-width: 768px) { .blog-layout-3 .post-content, .blog-layout-3 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-3 .ast-blog-featured-section .post-thumb { text-align: left; } } .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .post-thumb { width: auto; display: inline-block; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } assets/css/unminified/blog-layout-1.css 0000666 00000026651 15165345270 0014121 0 ustar 00 .blog-layout-1 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-1 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-1 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-1.ast-no-thumb .posted-on { position: relative; display: inline-block; } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-left: calc(-1 * var(--ast-container-default-xlg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-left: calc(-1 * var(--ast-container-default-lg-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-left: calc(-1 * var(--ast-container-default-slg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-left: calc(-1 * var(--ast-container-default-xxs-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: calc(-1 * var(--ast-container-default-md-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: calc(-1 * var(--ast-container-default-sm-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: calc(-1 * var(--ast-container-default-slg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: calc(-1 * var(--ast-container-default-xs-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: calc(-1 * var(--ast-container-default-md-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: calc(-1 * var(--ast-container-default-sm-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-left: calc(-1 * var(--ast-container-default-xlg-padding)); margin-right: calc(-1 * var(--ast-container-default-xlg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-left: calc(-1 * var(--ast-container-default-xs-padding)); margin-right: calc(-1 * var(--ast-container-default-xs-padding)); } } .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: calc(-1 * var(--ast-container-default-md-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: calc(-1 * var(--ast-container-default-sm-padding)); } } .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content { margin-left: calc(-1 * var(--ast-container-default-xlg-padding)); margin-right: calc(-1 * var(--ast-container-default-xlg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content { margin-left: calc(-1 * var(--ast-container-default-xs-padding)); margin-right: calc(-1 * var(--ast-container-default-xs-padding)); } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-left: -1.5em; margin-right: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-left: -1.5em; margin-right: -1.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-left: -0.5em; margin-right: -0.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-left: -0.5em; margin-right: -0.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: -1.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: -0.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: -0.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: -1.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-left: -1.5em; margin-right: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-left: -1.5em; margin-right: -1.5em; } } assets/css/unminified/related-posts.css 0000666 00000001501 15165345270 0014276 0 ustar 00 .ast-related-post-featured-section .post-thumb-img-content + * .posted-on { position: absolute; top: 0; left: 0; } .ast-related-post-featured-section .posted-on { position: relative; display: inline-block; width: 5.714285714em; height: 5.714285714em; padding: 0.7em; margin-bottom: 1.5em; } .ast-related-post-featured-section .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .ast-related-post-featured-section .posted-on .date-month { font-size: 0.8571428571em; line-height: 1em; } .ast-related-post-featured-section .posted-on .date-year { font-size: 0.8571428571em; line-height: 1em; } .ast-related-post-featured-section .posted-on .date-day { font-size: 2.5em; line-height: .9em; font-weight: 900; margin: .1em 0; } assets/css/unminified/blog-layout-1-rtl.css 0000666 00000026655 15165345270 0014724 0 ustar 00 .blog-layout-1 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-1 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-1 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-1.ast-no-thumb .posted-on { position: relative; display: inline-block; } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-right: calc(-1 * var(--ast-container-default-xlg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-right: calc(-1 * var(--ast-container-default-lg-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-right: calc(-1 * var(--ast-container-default-slg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-right: calc(-1 * var(--ast-container-default-xxs-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: calc(-1 * var(--ast-container-default-md-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: calc(-1 * var(--ast-container-default-sm-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: calc(-1 * var(--ast-container-default-slg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: calc(-1 * var(--ast-container-default-xs-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: calc(-1 * var(--ast-container-default-md-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: calc(-1 * var(--ast-container-default-sm-padding)); } } .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-right: calc(-1 * var(--ast-container-default-xlg-padding)); margin-left: calc(-1 * var(--ast-container-default-xlg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-right: calc(-1 * var(--ast-container-default-xs-padding)); margin-left: calc(-1 * var(--ast-container-default-xs-padding)); } } .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: calc(-1 * var(--ast-container-default-md-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child { margin-top: calc(-1 * var(--ast-container-default-sm-padding)); } } .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content { margin-right: calc(-1 * var(--ast-container-default-xlg-padding)); margin-left: calc(-1 * var(--ast-container-default-xlg-padding)); } @media (max-width: 1200px) { .ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content { margin-right: calc(-1 * var(--ast-container-default-xs-padding)); margin-left: calc(-1 * var(--ast-container-default-xs-padding)); } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-right: -1.5em; margin-left: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on { margin-right: -1.5em; margin-left: -1.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-right: -0.5em; margin-left: -0.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on { margin-right: -0.5em; margin-left: -0.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on { margin-top: -1.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: -0.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on { margin-top: -0.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content { margin-top: -1.5em; } } .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-right: -1.5em; margin-left: -1.5em; } @media (max-width: 1200px) { .ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content, .ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content { margin-right: -1.5em; margin-left: -1.5em; } } assets/css/unminified/infinite-scroll.css 0000666 00000003423 15165345270 0014616 0 ustar 00 /** * Infinite Scroll */ .ast-pagination-infinite { text-align: center; margin: 2.5em 0 0; } .ast-page-builder-template .ast-pagination-infinite { margin: 2.5em 0; } .ast-load-more { cursor: pointer; display: none; border: 2px solid var(--ast-border-color); transition: all 0.2s linear; color: #000; } .ast-load-more.active { display: inline-block; padding: 0 1.5em; line-height: 3em; } .ast-load-more.no-more:hover { border-color: var(--ast-border-color); color: #000; } /** * Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .posts-navigation, .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ display: none; } /** * When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */ .infinity-end.neverending .site-footer { display: block; } .ast-load-more.no-more:hover { background-color: inherit; } .no-more { cursor: default; } /* Loader */ .ast-loader { display: none; margin: 0 auto; min-height: 58px; line-height: 58px; width: 70px; text-align: center; } .ast-loader > div { width: 18px; height: 18px; background-color: #0085ba; border-radius: 100%; display: inline-block; animation: sk-bouncedelay 1.4s infinite ease-in-out both; } .ast-loader .ast-loader-1 { animation-delay: -0.32s; } .ast-loader .ast-loader-2 { animation-delay: -0.16s; } @keyframes sk-bouncedelay { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } /* Hiding 'ast-pagination' for infinite-scroll page. */ .ast-blog-pagination-type-infinite .ast-pagination { display: none; } assets/css/unminified/blog-layout-2-flex.css 0000666 00000002344 15165345270 0015047 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-2 { -js-display: flex; display: flex; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } @media (max-width: 768px) { .blog-layout-2 .post-content, .blog-layout-2 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-2 .ast-blog-featured-section .post-thumb { text-align: left; } } .blog-layout-2 .posted-on { right: 0; } .blog-layout-2 .post-thumb { text-align: right; } .blog-layout-2 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-2 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-2 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-2.ast-no-thumb .post-thumb { display: inline-block; } .blog-layout-2.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-2.ast-no-thumb .post-thumb { width: auto; } assets/css/unminified/common.css 0000666 00000011026 15165345270 0013003 0 ustar 00 /* * Blog Common * * => Content * Normal Grid - 2 - Blog * Normal Grid - 3 - Blog * Normal Grid - 4 - Blog */ /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .ast-page-builder-template .ast-article-post { margin-bottom: 2.5em; } .ast-featured-post { float: none; } .ast-separate-container .ast-separate-posts.ast-article-post { margin-bottom: 2em; } /** * Normal Blog */ .ast-animate-hidden { visibility: hidden; opacity: 0; } .ast-animate-display { visibility: visible; opacity: 1; } .ast-no-thumb .ast-date-meta .posted-on { margin-bottom: 1.5em; } .ast-date-meta.circle .posted-on { border-radius: 50%; overflow: hidden; } .has-post-thumbnail .ast-date-meta.circle .posted-on { margin: 1em; } .ast-separate-container .ast-grid-1 .blog-layout-1 { padding: 0; } .ast-separate-container .ast-grid-1 .blog-layout-2, .ast-separate-container .ast-grid-1 .blog-layout-3 { padding: 0; border-bottom: 0; } .ast-separate-container .ast-grid-2 .ast-article-post, .ast-separate-container .ast-grid-3 .ast-article-post, .ast-separate-container .ast-grid-4 .ast-article-post { background: transparent; } .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2, .ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3 { border-bottom: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 2.66666em; } .ast-separate-container .ast-grid-2 .blog-layout-1, .ast-separate-container .ast-grid-2 .blog-layout-2, .ast-separate-container .ast-grid-2 .blog-layout-3, .ast-separate-container .ast-grid-3 .blog-layout-1, .ast-separate-container .ast-grid-3 .blog-layout-2, .ast-separate-container .ast-grid-3 .blog-layout-3, .ast-separate-container .ast-grid-4 .blog-layout-1, .ast-separate-container .ast-grid-4 .blog-layout-2, .ast-separate-container .ast-grid-4 .blog-layout-3 { padding: 1.5em; } @media (max-width: 1200px) { .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+1), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0), .ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+1) { padding: 0; } .ast-separate-container .blog-layout-1, .ast-separate-container .blog-layout-2, .ast-separate-container .blog-layout-3 { padding: 1.5em; } } /* Full Width Content Stretch */ .ast-page-builder-template .ast-article-post .entry-header { margin: auto auto 1em auto; padding: 0; } .ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on { position: relative; display: inline-block; margin-bottom: 1em; } .ast-narrow-container.single .post-navigation, .ast-plain-container.single .post-navigation { margin-top: 2em; } hr.post-divider { height: 0; margin: 0; } hr.ast-single-previous-hr { height: 0; margin-top: 2em; } .ast-show-comments-data { padding: 2em 6.67em; } .ast-show-comments-data .ast-show-comments { cursor: pointer; } .ast-show-comments-data .ast-show-comments-count, .ast-show-comments-data .ast-show-comments { max-width: 640px; text-align: center; margin-left: auto; margin-right: auto; } .ast-show-comments-data .ast-show-comments-count { margin-bottom: 2em; } .ast-pagination-square .ast-pagination .page-numbers, .ast-pagination-circle .ast-pagination .page-numbers { border-style: solid; border-width: 1px; line-height: 2.33333em; } .ast-pagination-circle .ast-pagination .page-numbers { border-radius: 50%; } .ast-pagination-circle .ast-pagination .prev.page-numbers, .ast-pagination-circle .ast-pagination .next.page-numbers { border-radius: 30px; } @media all and (max-width: 768px) { #content:before { content: ""; } } assets/css/unminified/blog-layout-3-rtl.css 0000666 00000003314 15165345270 0014711 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-3 { width: 100%; display: inline-block; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } .blog-layout-3 .posted-on { right: 0; } .blog-layout-3 .post-content { padding-right: 0; padding-left: 0; } @media (max-width: 768px) { .blog-layout-3 .post-content, .blog-layout-3 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-3 .ast-blog-featured-section .post-thumb { text-align: right; } } .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { padding-right: 0; padding-left: 0; position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .post-thumb { width: auto; display: inline-block; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } assets/css/unminified/infinite-scroll-rtl.css 0000666 00000003423 15165345270 0015415 0 ustar 00 /** * Infinite Scroll */ .ast-pagination-infinite { text-align: center; margin: 2.5em 0 0; } .ast-page-builder-template .ast-pagination-infinite { margin: 2.5em 0; } .ast-load-more { cursor: pointer; display: none; border: 2px solid var(--ast-border-color); transition: all 0.2s linear; color: #000; } .ast-load-more.active { display: inline-block; padding: 0 1.5em; line-height: 3em; } .ast-load-more.no-more:hover { border-color: var(--ast-border-color); color: #000; } /** * Globally hidden elements when Infinite Scroll is supported and in use. */ .infinite-scroll .posts-navigation, .infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ display: none; } /** * When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */ .infinity-end.neverending .site-footer { display: block; } .ast-load-more.no-more:hover { background-color: inherit; } .no-more { cursor: default; } /* Loader */ .ast-loader { display: none; margin: 0 auto; min-height: 58px; line-height: 58px; width: 70px; text-align: center; } .ast-loader > div { width: 18px; height: 18px; background-color: #0085ba; border-radius: 100%; display: inline-block; animation: sk-bouncedelay 1.4s infinite ease-in-out both; } .ast-loader .ast-loader-1 { animation-delay: -0.32s; } .ast-loader .ast-loader-2 { animation-delay: -0.16s; } @keyframes sk-bouncedelay { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } } /* Hiding 'ast-pagination' for infinite-scroll page. */ .ast-blog-pagination-type-infinite .ast-pagination { display: none; } assets/css/unminified/blog-layout-2.css 0000666 00000002627 15165345270 0014117 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-2 { width: 100%; display: inline-block; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } @media (max-width: 768px) { .blog-layout-2 .post-content, .blog-layout-2 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-2 .ast-blog-featured-section .post-thumb { text-align: left; } } .blog-layout-2 .posted-on { right: 0; } .blog-layout-2 .post-thumb { text-align: right; } .blog-layout-2 .post-content { padding-left: 0; padding-right: 0; } .blog-layout-2 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-2 .post-thumb { padding-left: 0; padding-right: 0; position: relative; } .blog-layout-2 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-2 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-2.ast-no-thumb .post-thumb { display: inline-block; } .blog-layout-2.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-2.ast-no-thumb .post-thumb { width: auto; } assets/css/unminified/post-author-rtl.css 0000666 00000003406 15165345270 0014602 0 ustar 00 /** * Author Info for Single Post * * Content * 1 - Author Info Wrapper * 2 - Author Details Styles * 3 - Author Avatar Styles */ /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .single { /* 1 - Author Info Wrapper */ } .single .ast-single-author-box { display: inline-block; margin-top: 2em; width: 100%; border-top: 1px solid var(--ast-border-color); } .single .ast-author-meta { /* 2 - Author Details Styles */ /* 3 - Author Avatar Styles */ } .single .ast-author-meta .ast-author-details { width: 100%; } .single .ast-author-meta .about-author-title-wrapper, .single .ast-author-meta .post-author-bio { text-align: center; } .single .ast-author-meta .post-author-avatar { text-align: center; padding-left: 0; } .single .ast-author-meta .post-author-avatar img { border-radius: 50%; min-width: 100px; } .single .ast-author-meta .about-author-title-wrapper { padding: 0 0 1em; } .single.ast-separate-container .ast-single-author-box { border-top: 0; } .single.ast-separate-container .ast-author-meta { background-color: #fff; padding: 4em 6.67em; } @media (max-width: 1200px) { .single.ast-separate-container .ast-author-meta { padding: 3.34em 2.4em; } } .single.ast-plain-container .ast-single-author-box, .single.ast-page-builder-template .ast-single-author-box, .single.ast-narrow-container .ast-single-author-box { padding-top: 2em; } .single.ast-plain-container .ast-single-author-box, .single.ast-narrow-container .ast-single-author-box { margin-top: 0; } assets/css/unminified/related-posts-rtl.css 0000666 00000001502 15165345270 0015076 0 ustar 00 .ast-related-post-featured-section .post-thumb-img-content + * .posted-on { position: absolute; top: 0; right: 0; } .ast-related-post-featured-section .posted-on { position: relative; display: inline-block; width: 5.714285714em; height: 5.714285714em; padding: 0.7em; margin-bottom: 1.5em; } .ast-related-post-featured-section .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .ast-related-post-featured-section .posted-on .date-month { font-size: 0.8571428571em; line-height: 1em; } .ast-related-post-featured-section .posted-on .date-year { font-size: 0.8571428571em; line-height: 1em; } .ast-related-post-featured-section .posted-on .date-day { font-size: 2.5em; line-height: .9em; font-weight: 900; margin: .1em 0; } assets/css/unminified/blog-layout-2-rtl.css 0000666 00000002626 15165345270 0014715 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-2 { width: 100%; display: inline-block; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } @media (max-width: 768px) { .blog-layout-2 .post-content, .blog-layout-2 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-2 .ast-blog-featured-section .post-thumb { text-align: right; } } .blog-layout-2 .posted-on { left: 0; } .blog-layout-2 .post-thumb { text-align: left; } .blog-layout-2 .post-content { padding-right: 0; padding-left: 0; } .blog-layout-2 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-2 .post-thumb { padding-right: 0; padding-left: 0; position: relative; } .blog-layout-2 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-2 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-2.ast-no-thumb .post-thumb { display: inline-block; } .blog-layout-2.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-2.ast-no-thumb .post-thumb { width: auto; } assets/css/unminified/blog-layout-3.css 0000666 00000003312 15165345270 0014110 0 ustar 00 /*---------- Media Query min-width Structure ----------*/ /*---------- Media Query max-width Structure ----------*/ /*---------- Break-point min-width Structure ----------*/ /*---------- Break-point max-width Structure ----------*/ .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } .blog-layout-3 { width: 100%; display: inline-block; padding-bottom: 2em; vertical-align: middle; border-bottom: 1px solid var(--ast-border-color); } .blog-layout-3 .posted-on { left: 0; } .blog-layout-3 .post-content { padding-left: 0; padding-right: 0; } @media (max-width: 768px) { .blog-layout-3 .post-content, .blog-layout-3 .ast-blog-featured-section { width: 100%; float: none; } .blog-layout-3 .ast-blog-featured-section .post-thumb { text-align: left; } } .blog-layout-3 { /* 2 - Blog Thumbnail Styles */ } .blog-layout-3 .post-thumb { padding-left: 0; padding-right: 0; position: relative; } .blog-layout-3 .post-thumb .posted-on { position: absolute; top: 0; } .blog-layout-3 .post-thumb .posted-on .entry-date span { display: block; width: 100%; text-align: center; } .blog-layout-3.ast-no-thumb .post-thumb { width: auto; display: inline-block; } .blog-layout-3.ast-no-thumb .posted-on { position: relative; display: inline-block; } assets/css/minified/style.min.css 0000666 00000011232 15165345270 0013071 0 ustar 00 .ast-page-builder-template .ast-article-post{margin-bottom:2.5em}.ast-featured-post{float:none}.ast-separate-container .ast-separate-posts.ast-article-post{margin-bottom:2em}.ast-animate-hidden{visibility:hidden;opacity:0}.ast-animate-display{visibility:visible;opacity:1}.ast-no-thumb .ast-date-meta .posted-on{margin-bottom:1.5em}.ast-date-meta.circle .posted-on{border-radius:50%;overflow:hidden}.has-post-thumbnail .ast-date-meta.circle .posted-on{margin:1em}.ast-separate-container .ast-grid-1 .blog-layout-1{padding:0}.ast-separate-container .ast-grid-1 .blog-layout-2,.ast-separate-container .ast-grid-1 .blog-layout-3{padding:0;border-bottom:0}.ast-separate-container .ast-grid-2 .ast-article-post,.ast-separate-container .ast-grid-3 .ast-article-post,.ast-separate-container .ast-grid-4 .ast-article-post{background:0 0}.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3{border-bottom:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:2.66666em}.ast-separate-container .ast-grid-2 .blog-layout-1,.ast-separate-container .ast-grid-2 .blog-layout-2,.ast-separate-container .ast-grid-2 .blog-layout-3,.ast-separate-container .ast-grid-3 .blog-layout-1,.ast-separate-container .ast-grid-3 .blog-layout-2,.ast-separate-container .ast-grid-3 .blog-layout-3,.ast-separate-container .ast-grid-4 .blog-layout-1,.ast-separate-container .ast-grid-4 .blog-layout-2,.ast-separate-container .ast-grid-4 .blog-layout-3{padding:1.5em}@media (max-width:1200px){.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(odd){padding:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:1.5em}}.ast-page-builder-template .ast-article-post .entry-header{margin:auto auto 1em auto;padding:0}.ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on{position:relative;display:inline-block;margin-bottom:1em}.ast-narrow-container.single .post-navigation,.ast-plain-container.single .post-navigation{margin-top:2em}hr.post-divider{height:0;margin:0}hr.ast-single-previous-hr{height:0;margin-top:2em}.ast-show-comments-data{padding:2em 6.67em}.ast-show-comments-data .ast-show-comments{cursor:pointer}.ast-show-comments-data .ast-show-comments,.ast-show-comments-data .ast-show-comments-count{max-width:640px;text-align:center;margin-left:auto;margin-right:auto}.ast-show-comments-data .ast-show-comments-count{margin-bottom:2em}.ast-pagination-circle .ast-pagination .page-numbers,.ast-pagination-square .ast-pagination .page-numbers{border-style:solid;border-width:1px;line-height:2.33333em}.ast-pagination-circle .ast-pagination .page-numbers{border-radius:50%}.ast-pagination-circle .ast-pagination .next.page-numbers,.ast-pagination-circle .ast-pagination .prev.page-numbers{border-radius:30px}@media all and (max-width:768px){#content:before{content:""}}.ast-pagination-infinite{text-align:center;margin:2.5em 0 0}.ast-page-builder-template .ast-pagination-infinite{margin:2.5em 0}.ast-load-more{cursor:pointer;display:none;border:2px solid var(--ast-border-color);transition:all .2s linear;color:#000}.ast-load-more.active{display:inline-block;padding:0 1.5em;line-height:3em}.ast-load-more.no-more:hover{border-color:var(--ast-border-color);color:#000}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.ast-load-more.no-more:hover{background-color:inherit}.no-more{cursor:default}.ast-loader{display:none;margin:0 auto;min-height:58px;line-height:58px;width:70px;text-align:center}.ast-loader>div{width:18px;height:18px;background-color:#0085ba;border-radius:100%;display:inline-block;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.ast-loader .ast-loader-1{animation-delay:-.32s}.ast-loader .ast-loader-2{animation-delay:-.16s}@keyframes sk-bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.ast-blog-pagination-type-infinite .ast-pagination{display:none} assets/css/minified/blog-layout-3-rtl.min.css 0000666 00000002101 15165345270 0015121 0 ustar 00 .blog-layout-3 .post-thumb{position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-3{width:100%;display:inline-block;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}.blog-layout-3 .posted-on{right:0}.blog-layout-3 .post-content{padding-right:0;padding-left:0}@media (max-width:768px){.blog-layout-3 .ast-blog-featured-section,.blog-layout-3 .post-content{width:100%;float:none}.blog-layout-3 .ast-blog-featured-section .post-thumb{text-align:right}}.blog-layout-3 .post-thumb{padding-right:0;padding-left:0;position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .post-thumb{width:auto;display:inline-block}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block} assets/css/minified/common.min.css 0000666 00000007067 15165345270 0013234 0 ustar 00 .ast-page-builder-template .ast-article-post{margin-bottom:2.5em}.ast-featured-post{float:none}.ast-separate-container .ast-separate-posts.ast-article-post{margin-bottom:2em}.ast-animate-hidden{visibility:hidden;opacity:0}.ast-animate-display{visibility:visible;opacity:1}.ast-no-thumb .ast-date-meta .posted-on{margin-bottom:1.5em}.ast-date-meta.circle .posted-on{border-radius:50%;overflow:hidden}.has-post-thumbnail .ast-date-meta.circle .posted-on{margin:1em}.ast-separate-container .ast-grid-1 .blog-layout-1{padding:0}.ast-separate-container .ast-grid-1 .blog-layout-2,.ast-separate-container .ast-grid-1 .blog-layout-3{padding:0;border-bottom:0}.ast-separate-container .ast-grid-2 .ast-article-post,.ast-separate-container .ast-grid-3 .ast-article-post,.ast-separate-container .ast-grid-4 .ast-article-post{background:0 0}.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3{border-bottom:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:2.66666em}.ast-separate-container .ast-grid-2 .blog-layout-1,.ast-separate-container .ast-grid-2 .blog-layout-2,.ast-separate-container .ast-grid-2 .blog-layout-3,.ast-separate-container .ast-grid-3 .blog-layout-1,.ast-separate-container .ast-grid-3 .blog-layout-2,.ast-separate-container .ast-grid-3 .blog-layout-3,.ast-separate-container .ast-grid-4 .blog-layout-1,.ast-separate-container .ast-grid-4 .blog-layout-2,.ast-separate-container .ast-grid-4 .blog-layout-3{padding:1.5em}@media (max-width:1200px){.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(odd){padding:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:1.5em}}.ast-page-builder-template .ast-article-post .entry-header{margin:auto auto 1em auto;padding:0}.ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on{position:relative;display:inline-block;margin-bottom:1em}.ast-narrow-container.single .post-navigation,.ast-plain-container.single .post-navigation{margin-top:2em}hr.post-divider{height:0;margin:0}hr.ast-single-previous-hr{height:0;margin-top:2em}.ast-show-comments-data{padding:2em 6.67em}.ast-show-comments-data .ast-show-comments{cursor:pointer}.ast-show-comments-data .ast-show-comments,.ast-show-comments-data .ast-show-comments-count{max-width:640px;text-align:center;margin-left:auto;margin-right:auto}.ast-show-comments-data .ast-show-comments-count{margin-bottom:2em}.ast-pagination-circle .ast-pagination .page-numbers,.ast-pagination-square .ast-pagination .page-numbers{border-style:solid;border-width:1px;line-height:2.33333em}.ast-pagination-circle .ast-pagination .page-numbers{border-radius:50%}.ast-pagination-circle .ast-pagination .next.page-numbers,.ast-pagination-circle .ast-pagination .prev.page-numbers{border-radius:30px}@media all and (max-width:768px){#content:before{content:""}} assets/css/minified/blog-layout-1-rtl.min.css 0000666 00000025234 15165345270 0015133 0 ustar 00 .blog-layout-1 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-1 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-1.ast-no-thumb .posted-on{position:relative;display:inline-block}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-right:calc(-1 * var(--ast-container-default-xlg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-right:calc(-1 * var(--ast-container-default-lg-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-right:calc(-1 * var(--ast-container-default-slg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-right:calc(-1 * var(--ast-container-default-xxs-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:calc(-1 * var(--ast-container-default-md-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:calc(-1 * var(--ast-container-default-sm-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:calc(-1 * var(--ast-container-default-slg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:calc(-1 * var(--ast-container-default-xs-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:calc(-1 * var(--ast-container-default-md-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:calc(-1 * var(--ast-container-default-sm-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-right:calc(-1 * var(--ast-container-default-xlg-padding));margin-left:calc(-1 * var(--ast-container-default-xlg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-right:calc(-1 * var(--ast-container-default-xs-padding));margin-left:calc(-1 * var(--ast-container-default-xs-padding))}}.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child{margin-top:calc(-1 * var(--ast-container-default-md-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child{margin-top:calc(-1 * var(--ast-container-default-sm-padding))}}.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{margin-right:calc(-1 * var(--ast-container-default-xlg-padding));margin-left:calc(-1 * var(--ast-container-default-xlg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{margin-right:calc(-1 * var(--ast-container-default-xs-padding));margin-left:calc(-1 * var(--ast-container-default-xs-padding))}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-right:-1.5em;margin-left:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-right:-1.5em;margin-left:-1.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-right:-.5em;margin-left:-.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-right:-.5em;margin-left:-.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:-1.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:-.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:-.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:-1.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-right:-1.5em;margin-left:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-right:-1.5em;margin-left:-1.5em}} assets/css/minified/blog-layout-3-flex-rtl.min.css 0000666 00000001744 15165345270 0016071 0 ustar 00 .blog-layout-3 .post-thumb{position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-3{-js-display:flex;display:flex;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}.blog-layout-3 .posted-on{right:0}@media (max-width:768px){.blog-layout-3 .ast-blog-featured-section,.blog-layout-3 .post-content{width:100%;float:none}.blog-layout-3 .ast-blog-featured-section .post-thumb{text-align:right}}.blog-layout-3 .post-thumb{position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .post-thumb{width:auto;display:inline-block}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block} assets/css/minified/post-author.min.css 0000666 00000002053 15165345270 0014217 0 ustar 00 .single .ast-single-author-box{display:inline-block;margin-top:2em;width:100%;border-top:1px solid var(--ast-border-color)}.single .ast-author-meta .ast-author-details{width:100%}.single .ast-author-meta .about-author-title-wrapper,.single .ast-author-meta .post-author-bio{text-align:center}.single .ast-author-meta .post-author-avatar{text-align:center;padding-right:0}.single .ast-author-meta .post-author-avatar img{border-radius:50%;min-width:100px}.single .ast-author-meta .about-author-title-wrapper{padding:0 0 1em}.single.ast-separate-container .ast-single-author-box{border-top:0}.single.ast-separate-container .ast-author-meta{background-color:#fff;padding:4em 6.67em}@media (max-width:1200px){.single.ast-separate-container .ast-author-meta{padding:3.34em 2.4em}}.single.ast-narrow-container .ast-single-author-box,.single.ast-page-builder-template .ast-single-author-box,.single.ast-plain-container .ast-single-author-box{padding-top:2em}.single.ast-narrow-container .ast-single-author-box,.single.ast-plain-container .ast-single-author-box{margin-top:0} assets/css/minified/blog-layout-3-flex.min.css 0000666 00000001742 15165345270 0015270 0 ustar 00 .blog-layout-3 .post-thumb{position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-3{-js-display:flex;display:flex;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}.blog-layout-3 .posted-on{left:0}@media (max-width:768px){.blog-layout-3 .ast-blog-featured-section,.blog-layout-3 .post-content{width:100%;float:none}.blog-layout-3 .ast-blog-featured-section .post-thumb{text-align:left}}.blog-layout-3 .post-thumb{position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .post-thumb{width:auto;display:inline-block}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block} assets/css/minified/related-posts-rtl.min.css 0000666 00000001253 15165345270 0015320 0 ustar 00 .ast-related-post-featured-section .post-thumb-img-content+* .posted-on{position:absolute;top:0;right:0}.ast-related-post-featured-section .posted-on{position:relative;display:inline-block;width:5.714285714em;height:5.714285714em;padding:.7em;margin-bottom:1.5em}.ast-related-post-featured-section .posted-on .entry-date span{display:block;width:100%;text-align:center}.ast-related-post-featured-section .posted-on .date-month{font-size:.8571428571em;line-height:1em}.ast-related-post-featured-section .posted-on .date-year{font-size:.8571428571em;line-height:1em}.ast-related-post-featured-section .posted-on .date-day{font-size:2.5em;line-height:.9em;font-weight:900;margin:.1em 0} assets/css/minified/infinite-scroll.min.css 0000666 00000002143 15165345270 0015033 0 ustar 00 .ast-pagination-infinite{text-align:center;margin:2.5em 0 0}.ast-page-builder-template .ast-pagination-infinite{margin:2.5em 0}.ast-load-more{cursor:pointer;display:none;border:2px solid var(--ast-border-color);transition:all .2s linear;color:#000}.ast-load-more.active{display:inline-block;padding:0 1.5em;line-height:3em}.ast-load-more.no-more:hover{border-color:var(--ast-border-color);color:#000}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.ast-load-more.no-more:hover{background-color:inherit}.no-more{cursor:default}.ast-loader{display:none;margin:0 auto;min-height:58px;line-height:58px;width:70px;text-align:center}.ast-loader>div{width:18px;height:18px;background-color:#0085ba;border-radius:100%;display:inline-block;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.ast-loader .ast-loader-1{animation-delay:-.32s}.ast-loader .ast-loader-2{animation-delay:-.16s}@keyframes sk-bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.ast-blog-pagination-type-infinite .ast-pagination{display:none} assets/css/minified/blog-layout-2-flex-rtl.min.css 0000666 00000001356 15165345270 0016067 0 ustar 00 .blog-layout-2{-js-display:flex;display:flex;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}@media (max-width:768px){.blog-layout-2 .ast-blog-featured-section,.blog-layout-2 .post-content{width:100%;float:none}.blog-layout-2 .ast-blog-featured-section .post-thumb{text-align:right}}.blog-layout-2 .posted-on{left:0}.blog-layout-2 .post-thumb{text-align:left}.blog-layout-2 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-2 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-2.ast-no-thumb .post-thumb{display:inline-block}.blog-layout-2.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-2.ast-no-thumb .post-thumb{width:auto} assets/css/minified/blog-layout-2-flex.min.css 0000666 00000001357 15165345270 0015271 0 ustar 00 .blog-layout-2{-js-display:flex;display:flex;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}@media (max-width:768px){.blog-layout-2 .ast-blog-featured-section,.blog-layout-2 .post-content{width:100%;float:none}.blog-layout-2 .ast-blog-featured-section .post-thumb{text-align:left}}.blog-layout-2 .posted-on{right:0}.blog-layout-2 .post-thumb{text-align:right}.blog-layout-2 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-2 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-2.ast-no-thumb .post-thumb{display:inline-block}.blog-layout-2.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-2.ast-no-thumb .post-thumb{width:auto} assets/css/minified/infinite-scroll-rtl.min.css 0000666 00000002143 15165345270 0015632 0 ustar 00 .ast-pagination-infinite{text-align:center;margin:2.5em 0 0}.ast-page-builder-template .ast-pagination-infinite{margin:2.5em 0}.ast-load-more{cursor:pointer;display:none;border:2px solid var(--ast-border-color);transition:all .2s linear;color:#000}.ast-load-more.active{display:inline-block;padding:0 1.5em;line-height:3em}.ast-load-more.no-more:hover{border-color:var(--ast-border-color);color:#000}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.ast-load-more.no-more:hover{background-color:inherit}.no-more{cursor:default}.ast-loader{display:none;margin:0 auto;min-height:58px;line-height:58px;width:70px;text-align:center}.ast-loader>div{width:18px;height:18px;background-color:#0085ba;border-radius:100%;display:inline-block;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.ast-loader .ast-loader-1{animation-delay:-.32s}.ast-loader .ast-loader-2{animation-delay:-.16s}@keyframes sk-bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.ast-blog-pagination-type-infinite .ast-pagination{display:none} assets/css/minified/blog-layout-1.min.css 0000666 00000025230 15165345270 0014330 0 ustar 00 .blog-layout-1 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-1 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-1.ast-no-thumb .posted-on{position:relative;display:inline-block}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-left:calc(-1 * var(--ast-container-default-xlg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-left:calc(-1 * var(--ast-container-default-lg-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-left:calc(-1 * var(--ast-container-default-slg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-left:calc(-1 * var(--ast-container-default-xxs-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:calc(-1 * var(--ast-container-default-md-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:calc(-1 * var(--ast-container-default-sm-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:calc(-1 * var(--ast-container-default-slg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:calc(-1 * var(--ast-container-default-xs-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:calc(-1 * var(--ast-container-default-md-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:calc(-1 * var(--ast-container-default-sm-padding))}}.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-left:calc(-1 * var(--ast-container-default-xlg-padding));margin-right:calc(-1 * var(--ast-container-default-xlg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-left:calc(-1 * var(--ast-container-default-xs-padding));margin-right:calc(-1 * var(--ast-container-default-xs-padding))}}.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child{margin-top:calc(-1 * var(--ast-container-default-md-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .entry-header .post-thumb-img-content:first-child{margin-top:calc(-1 * var(--ast-container-default-sm-padding))}}.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{margin-left:calc(-1 * var(--ast-container-default-xlg-padding));margin-right:calc(-1 * var(--ast-container-default-xlg-padding))}@media (max-width:1200px){.ast-separate-container .ast-article-single.remove-featured-img-padding .single-layout-1 .post-thumb-img-content{margin-left:calc(-1 * var(--ast-container-default-xs-padding));margin-right:calc(-1 * var(--ast-container-default-xs-padding))}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-left:-1.5em;margin-right:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .square .posted-on{margin-left:-1.5em;margin-right:-1.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-left:-.5em;margin-right:-.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section .circle .posted-on{margin-left:-.5em;margin-right:-.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .square .posted-on{margin-top:-1.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:-.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding.has-post-thumbnail .blog-layout-1 .post-content .ast-blog-featured-section:first-child .circle .posted-on{margin-top:-.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-content .ast-blog-featured-section:first-child .post-thumb-img-content{margin-top:-1.5em}}.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-left:-1.5em;margin-right:-1.5em}@media (max-width:1200px){.ast-separate-container.ast-blog-grid-2 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-3 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content,.ast-separate-container.ast-blog-grid-4 .ast-article-post.remove-featured-img-padding .blog-layout-1 .post-thumb-img-content{margin-left:-1.5em;margin-right:-1.5em}} assets/css/minified/post-author-rtl.min.css 0000666 00000002052 15165345270 0015015 0 ustar 00 .single .ast-single-author-box{display:inline-block;margin-top:2em;width:100%;border-top:1px solid var(--ast-border-color)}.single .ast-author-meta .ast-author-details{width:100%}.single .ast-author-meta .about-author-title-wrapper,.single .ast-author-meta .post-author-bio{text-align:center}.single .ast-author-meta .post-author-avatar{text-align:center;padding-left:0}.single .ast-author-meta .post-author-avatar img{border-radius:50%;min-width:100px}.single .ast-author-meta .about-author-title-wrapper{padding:0 0 1em}.single.ast-separate-container .ast-single-author-box{border-top:0}.single.ast-separate-container .ast-author-meta{background-color:#fff;padding:4em 6.67em}@media (max-width:1200px){.single.ast-separate-container .ast-author-meta{padding:3.34em 2.4em}}.single.ast-narrow-container .ast-single-author-box,.single.ast-page-builder-template .ast-single-author-box,.single.ast-plain-container .ast-single-author-box{padding-top:2em}.single.ast-narrow-container .ast-single-author-box,.single.ast-plain-container .ast-single-author-box{margin-top:0} assets/css/minified/related-posts.min.css 0000666 00000001252 15165345270 0014520 0 ustar 00 .ast-related-post-featured-section .post-thumb-img-content+* .posted-on{position:absolute;top:0;left:0}.ast-related-post-featured-section .posted-on{position:relative;display:inline-block;width:5.714285714em;height:5.714285714em;padding:.7em;margin-bottom:1.5em}.ast-related-post-featured-section .posted-on .entry-date span{display:block;width:100%;text-align:center}.ast-related-post-featured-section .posted-on .date-month{font-size:.8571428571em;line-height:1em}.ast-related-post-featured-section .posted-on .date-year{font-size:.8571428571em;line-height:1em}.ast-related-post-featured-section .posted-on .date-day{font-size:2.5em;line-height:.9em;font-weight:900;margin:.1em 0} assets/css/minified/common-rtl.min.css 0000666 00000007067 15165345270 0014033 0 ustar 00 .ast-page-builder-template .ast-article-post{margin-bottom:2.5em}.ast-featured-post{float:none}.ast-separate-container .ast-separate-posts.ast-article-post{margin-bottom:2em}.ast-animate-hidden{visibility:hidden;opacity:0}.ast-animate-display{visibility:visible;opacity:1}.ast-no-thumb .ast-date-meta .posted-on{margin-bottom:1.5em}.ast-date-meta.circle .posted-on{border-radius:50%;overflow:hidden}.has-post-thumbnail .ast-date-meta.circle .posted-on{margin:1em}.ast-separate-container .ast-grid-1 .blog-layout-1{padding:0}.ast-separate-container .ast-grid-1 .blog-layout-2,.ast-separate-container .ast-grid-1 .blog-layout-3{padding:0;border-bottom:0}.ast-separate-container .ast-grid-2 .ast-article-post,.ast-separate-container .ast-grid-3 .ast-article-post,.ast-separate-container .ast-grid-4 .ast-article-post{background:0 0}.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3{border-bottom:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:2.66666em}.ast-separate-container .ast-grid-2 .blog-layout-1,.ast-separate-container .ast-grid-2 .blog-layout-2,.ast-separate-container .ast-grid-2 .blog-layout-3,.ast-separate-container .ast-grid-3 .blog-layout-1,.ast-separate-container .ast-grid-3 .blog-layout-2,.ast-separate-container .ast-grid-3 .blog-layout-3,.ast-separate-container .ast-grid-4 .blog-layout-1,.ast-separate-container .ast-grid-4 .blog-layout-2,.ast-separate-container .ast-grid-4 .blog-layout-3{padding:1.5em}@media (max-width:1200px){.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(odd){padding:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:1.5em}}.ast-page-builder-template .ast-article-post .entry-header{margin:auto auto 1em auto;padding:0}.ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on{position:relative;display:inline-block;margin-bottom:1em}.ast-narrow-container.single .post-navigation,.ast-plain-container.single .post-navigation{margin-top:2em}hr.post-divider{height:0;margin:0}hr.ast-single-previous-hr{height:0;margin-top:2em}.ast-show-comments-data{padding:2em 6.67em}.ast-show-comments-data .ast-show-comments{cursor:pointer}.ast-show-comments-data .ast-show-comments,.ast-show-comments-data .ast-show-comments-count{max-width:640px;text-align:center;margin-right:auto;margin-left:auto}.ast-show-comments-data .ast-show-comments-count{margin-bottom:2em}.ast-pagination-circle .ast-pagination .page-numbers,.ast-pagination-square .ast-pagination .page-numbers{border-style:solid;border-width:1px;line-height:2.33333em}.ast-pagination-circle .ast-pagination .page-numbers{border-radius:50%}.ast-pagination-circle .ast-pagination .next.page-numbers,.ast-pagination-circle .ast-pagination .prev.page-numbers{border-radius:30px}@media all and (max-width:768px){#content:before{content:""}} assets/css/minified/blog-layout-3.min.css 0000666 00000002077 15165345270 0014336 0 ustar 00 .blog-layout-3 .post-thumb{position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-3{width:100%;display:inline-block;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}.blog-layout-3 .posted-on{left:0}.blog-layout-3 .post-content{padding-left:0;padding-right:0}@media (max-width:768px){.blog-layout-3 .ast-blog-featured-section,.blog-layout-3 .post-content{width:100%;float:none}.blog-layout-3 .ast-blog-featured-section .post-thumb{text-align:left}}.blog-layout-3 .post-thumb{padding-left:0;padding-right:0;position:relative}.blog-layout-3 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-3 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-3.ast-no-thumb .post-thumb{width:auto;display:inline-block}.blog-layout-3.ast-no-thumb .posted-on{position:relative;display:inline-block} assets/css/minified/style-rtl.min.css 0000666 00000011232 15165345270 0013670 0 ustar 00 .ast-page-builder-template .ast-article-post{margin-bottom:2.5em}.ast-featured-post{float:none}.ast-separate-container .ast-separate-posts.ast-article-post{margin-bottom:2em}.ast-animate-hidden{visibility:hidden;opacity:0}.ast-animate-display{visibility:visible;opacity:1}.ast-no-thumb .ast-date-meta .posted-on{margin-bottom:1.5em}.ast-date-meta.circle .posted-on{border-radius:50%;overflow:hidden}.has-post-thumbnail .ast-date-meta.circle .posted-on{margin:1em}.ast-separate-container .ast-grid-1 .blog-layout-1{padding:0}.ast-separate-container .ast-grid-1 .blog-layout-2,.ast-separate-container .ast-grid-1 .blog-layout-3{padding:0;border-bottom:0}.ast-separate-container .ast-grid-2 .ast-article-post,.ast-separate-container .ast-grid-3 .ast-article-post,.ast-separate-container .ast-grid-4 .ast-article-post{background:0 0}.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-2 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-3 .ast-article-post .blog-layout-3,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-2,.ast-separate-container .ast-grid-4 .ast-article-post .blog-layout-3{border-bottom:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:2.66666em}.ast-separate-container .ast-grid-2 .blog-layout-1,.ast-separate-container .ast-grid-2 .blog-layout-2,.ast-separate-container .ast-grid-2 .blog-layout-3,.ast-separate-container .ast-grid-3 .blog-layout-1,.ast-separate-container .ast-grid-3 .blog-layout-2,.ast-separate-container .ast-grid-3 .blog-layout-3,.ast-separate-container .ast-grid-4 .blog-layout-1,.ast-separate-container .ast-grid-4 .blog-layout-2,.ast-separate-container .ast-grid-4 .blog-layout-3{padding:1.5em}@media (max-width:1200px){.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-2 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-3 .ast-article-post:nth-child(odd),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(2n+0),.ast-separate-container .ast-grid-4 .ast-article-post:nth-child(odd){padding:0}.ast-separate-container .blog-layout-1,.ast-separate-container .blog-layout-2,.ast-separate-container .blog-layout-3{padding:1.5em}}.ast-page-builder-template .ast-article-post .entry-header{margin:auto auto 1em auto;padding:0}.ast-article-post .ast-post-format-audio.ast-embeded-audio .ast-date-meta .posted-on{position:relative;display:inline-block;margin-bottom:1em}.ast-narrow-container.single .post-navigation,.ast-plain-container.single .post-navigation{margin-top:2em}hr.post-divider{height:0;margin:0}hr.ast-single-previous-hr{height:0;margin-top:2em}.ast-show-comments-data{padding:2em 6.67em}.ast-show-comments-data .ast-show-comments{cursor:pointer}.ast-show-comments-data .ast-show-comments,.ast-show-comments-data .ast-show-comments-count{max-width:640px;text-align:center;margin-right:auto;margin-left:auto}.ast-show-comments-data .ast-show-comments-count{margin-bottom:2em}.ast-pagination-circle .ast-pagination .page-numbers,.ast-pagination-square .ast-pagination .page-numbers{border-style:solid;border-width:1px;line-height:2.33333em}.ast-pagination-circle .ast-pagination .page-numbers{border-radius:50%}.ast-pagination-circle .ast-pagination .next.page-numbers,.ast-pagination-circle .ast-pagination .prev.page-numbers{border-radius:30px}@media all and (max-width:768px){#content:before{content:""}}.ast-pagination-infinite{text-align:center;margin:2.5em 0 0}.ast-page-builder-template .ast-pagination-infinite{margin:2.5em 0}.ast-load-more{cursor:pointer;display:none;border:2px solid var(--ast-border-color);transition:all .2s linear;color:#000}.ast-load-more.active{display:inline-block;padding:0 1.5em;line-height:3em}.ast-load-more.no-more:hover{border-color:var(--ast-border-color);color:#000}.infinite-scroll .posts-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}.ast-load-more.no-more:hover{background-color:inherit}.no-more{cursor:default}.ast-loader{display:none;margin:0 auto;min-height:58px;line-height:58px;width:70px;text-align:center}.ast-loader>div{width:18px;height:18px;background-color:#0085ba;border-radius:100%;display:inline-block;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.ast-loader .ast-loader-1{animation-delay:-.32s}.ast-loader .ast-loader-2{animation-delay:-.16s}@keyframes sk-bouncedelay{0%,100%,80%{transform:scale(0)}40%{transform:scale(1)}}.ast-blog-pagination-type-infinite .ast-pagination{display:none} assets/css/minified/blog-layout-2.min.css 0000666 00000001571 15165345270 0014333 0 ustar 00 .blog-layout-2{width:100%;display:inline-block;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}@media (max-width:768px){.blog-layout-2 .ast-blog-featured-section,.blog-layout-2 .post-content{width:100%;float:none}.blog-layout-2 .ast-blog-featured-section .post-thumb{text-align:left}}.blog-layout-2 .posted-on{right:0}.blog-layout-2 .post-thumb{text-align:right}.blog-layout-2 .post-content{padding-left:0;padding-right:0}.blog-layout-2 .post-thumb{padding-left:0;padding-right:0;position:relative}.blog-layout-2 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-2 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-2.ast-no-thumb .post-thumb{display:inline-block}.blog-layout-2.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-2.ast-no-thumb .post-thumb{width:auto} assets/css/minified/blog-layout-2-rtl.min.css 0000666 00000001570 15165345270 0015131 0 ustar 00 .blog-layout-2{width:100%;display:inline-block;padding-bottom:2em;vertical-align:middle;border-bottom:1px solid var(--ast-border-color)}@media (max-width:768px){.blog-layout-2 .ast-blog-featured-section,.blog-layout-2 .post-content{width:100%;float:none}.blog-layout-2 .ast-blog-featured-section .post-thumb{text-align:right}}.blog-layout-2 .posted-on{left:0}.blog-layout-2 .post-thumb{text-align:left}.blog-layout-2 .post-content{padding-right:0;padding-left:0}.blog-layout-2 .post-thumb{padding-right:0;padding-left:0;position:relative}.blog-layout-2 .post-thumb .posted-on{position:absolute;top:0}.blog-layout-2 .post-thumb .posted-on .entry-date span{display:block;width:100%;text-align:center}.blog-layout-2.ast-no-thumb .post-thumb{display:inline-block}.blog-layout-2.ast-no-thumb .posted-on{position:relative;display:inline-block}.blog-layout-2.ast-no-thumb .post-thumb{width:auto} assets/js/unminified/customizer-preview.js 0000666 00000046032 15165345270 0015053 0 ustar 00 /** * This file adds some LIVE to the Customizer live preview. To leverage * this, set your custom settings to 'postMessage' and then add your handling * here. Your javascript should grab settings from customizer controls, and * then make any necessary changes to the page using jQuery. * * @package Astra Addon * @since 1.0.0 */ ( function( $ ) { const tablet_break_point = AstraAddon.tablet_break_point || 768; const mobile_break_point = AstraAddon.mobile_break_point || 544; const is_site_rtl = AstraAddon.rtl; const ltr_left = is_site_rtl ? 'right' : 'left'; const ltr_right = is_site_rtl ? 'left' : 'right'; const socPosition = AstraAddon.soc_position; const is_social_fixed = 'left-content' === socPosition || 'right-content' === socPosition; const marginRvsLeft = is_social_fixed ? 'top' : ltr_left; const marginRvsRight = is_social_fixed ? 'bottom' : ltr_right; // Space Between Posts. wp.customize( 'astra-settings[blog-space-bet-posts]', function( value ) { value.bind( function( value ) { if ( value ) { jQuery( '.ast-archive-post' ).addClass('ast-separate-posts'); var dynamicStyle = '.ast-separate-container .ast-grid-2 > .site-main > .ast-row, .ast-separate-container .ast-grid-3 > .site-main > .ast-row, .ast-separate-container .ast-grid-4 > .site-main > .ast-row {'; dynamicStyle += ' margin-left: -1em;'; dynamicStyle += ' margin-right: -1em;'; dynamicStyle += '}'; astra_add_dynamic_css( 'archive-title-spacing-layout', dynamicStyle ); } else { jQuery( '.ast-archive-post' ).removeClass('ast-separate-posts'); var dynamicStyle = '.ast-separate-container .ast-grid-2 > .site-main > .ast-row, .ast-separate-container .ast-grid-3 > .site-main > .ast-row, .ast-separate-container .ast-grid-4 > .site-main > .ast-row {'; dynamicStyle += ' margin-left: 0;'; dynamicStyle += ' margin-right: 0;'; dynamicStyle += '}'; astra_add_dynamic_css( 'archive-title-spacing-layout', dynamicStyle ); } } ); } ); const context = 'ss'; // Short for social sharing. const selector = '.ast-post-social-sharing'; // Icon Color. astra_color_responsive_css( context + '-soc-color', 'astra-settings[single-post-social-sharing-icon-color]', 'fill', selector + ' .ast-social-color-type-custom .ast-social-icon-a svg' ); astra_color_responsive_css( context + '-soc-svg-color-h', 'astra-settings[single-post-social-sharing-icon-h-color]', 'fill', selector + ' .ast-social-color-type-custom .ast-social-icon-a:hover svg' ); // Icon Background Color. astra_color_responsive_css( context + '-soc-bg-color', 'astra-settings[single-post-social-sharing-icon-background-color]', 'background-color', selector + ' .ast-social-color-type-custom .ast-social-element' ); astra_color_responsive_css( context + '-soc-bg-color-h', 'astra-settings[single-post-social-sharing-icon-background-h-color]', 'background-color', selector + ' .ast-social-color-type-custom .ast-social-icon-a:hover .ast-social-element' ); // Icon Label Color. astra_color_responsive_css( context + '-soc-label-color', 'astra-settings[single-post-social-sharing-icon-label-color]', 'color', selector + ' .ast-social-icon-a span.social-item-label' ); astra_color_responsive_css( context + '-soc-label-color-h', 'astra-settings[single-post-social-sharing-icon-label-h-color]', 'color', selector + ' .ast-social-icon-a:hover span.social-item-label' ); // Heading Color. astra_color_responsive_css( context + '-soc-heading-color', 'astra-settings[single-post-social-sharing-heading-color]', 'color', selector + ' .ast-social-sharing-heading' ); astra_color_responsive_css( context + '-soc-heading-color-h', 'astra-settings[single-post-social-sharing-heading-h-color]', 'color', selector + ' .ast-social-sharing-heading:hover' ); astra_color_responsive_css( context + '-soc-background-color', 'astra-settings[single-post-social-sharing-background-color]', 'background-color', selector + ' .ast-social-inner-wrap' ); // Social sharing alignment. wp.customize( 'astra-settings[single-post-social-sharing-alignment]', function( value ) { value.bind( function( alignment ) { const alignment_rtl = alignment === ltr_left ? 'flex-start' : 'flex-end'; const social_alignment = alignment === 'center' ? 'center' : alignment_rtl let dynamicStyle = ''; dynamicStyle += selector + '{'; dynamicStyle += 'align-items: ' + social_alignment + ';'; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-alignment', dynamicStyle ); }); }); // Icon Size. wp.customize( 'astra-settings[single-post-social-sharing-icon-size]', function( value ) { value.bind( function( size ) { if( size.desktop != '' || size.tablet != '' || size.mobile != '' ) { let dynamicStyle = ''; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element svg {'; dynamicStyle += 'height: ' + size.desktop + 'px;'; dynamicStyle += 'width: ' + size.desktop + 'px;'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element svg {'; dynamicStyle += 'height: ' + size.tablet + 'px;'; dynamicStyle += 'width: ' + size.tablet + 'px;'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element svg {'; dynamicStyle += 'height: ' + size.mobile + 'px;'; dynamicStyle += 'width: ' + size.mobile + 'px;'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-icon-size', dynamicStyle ); } } ); } ); // Icon Space. wp.customize( 'astra-settings[single-post-social-sharing-icon-spacing]', function( value ) { value.bind( function( spacing ) { let space = ''; let dynamicStyle = ''; if ( spacing.desktop != '' ) { space = spacing.desktop/2; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a {'; dynamicStyle += 'margin-'+ marginRvsLeft + ': ' + space + 'px;'; dynamicStyle += 'margin-'+ marginRvsRight + ': ' + space + 'px;'; dynamicStyle += '} '; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a:first-child {'; dynamicStyle += 'margin-'+ marginRvsLeft + ': 0;'; dynamicStyle += '} '; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a:last-child {'; dynamicStyle += 'margin-'+ marginRvsRight + ': 0;'; dynamicStyle += '} '; } if ( spacing.tablet != '' ) { space = spacing.tablet/2; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a {'; dynamicStyle += 'margin-'+ marginRvsLeft + ': ' + space + 'px;'; dynamicStyle += 'margin-'+ marginRvsRight + ': ' + space + 'px;'; dynamicStyle += '} '; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a:first-child {'; dynamicStyle += 'margin-'+ marginRvsLeft + ': 0;'; dynamicStyle += '} '; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a:last-child {'; dynamicStyle += 'margin-'+ marginRvsRight + ': 0;'; dynamicStyle += '} '; dynamicStyle += '} '; } if ( spacing.mobile != '' ) { space = spacing.mobile/2; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a {'; dynamicStyle += 'margin-'+ marginRvsLeft + ': ' + space + 'px;'; dynamicStyle += 'margin-'+ marginRvsRight + ': ' + space + 'px;'; dynamicStyle += '} '; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a:first-child {'; dynamicStyle += 'margin-'+ marginRvsLeft + ': 0;'; dynamicStyle += '} '; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-icon-a:last-child {'; dynamicStyle += 'margin-'+ marginRvsRight + ': 0;'; dynamicStyle += '} '; dynamicStyle += '} '; } astra_add_dynamic_css( context + '-soc-icon-spacing', dynamicStyle ); } ); } ); // Icon Border Radius. wp.customize( 'astra-settings[single-post-social-sharing-icon-radius]', function( value ) { value.bind( function( size ) { if( size.desktop != '' || size.tablet != '' || size.mobile != '' ) { let dynamicStyle = ''; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element {'; dynamicStyle += 'border-radius: ' + size.desktop + 'px;'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element {'; dynamicStyle += 'border-radius: ' + size.tablet + 'px;'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element {'; dynamicStyle += 'border-radius: ' + size.mobile + 'px;'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-icon-radius', dynamicStyle ); } } ); } ); // Icon Background Spacing wp.customize( 'astra-settings[single-post-social-sharing-icon-background-spacing]', function( value ) { value.bind( function( size ) { if( size.desktop != '' || size.tablet != '' || size.mobile != '' ) { let dynamicStyle = ''; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element {'; dynamicStyle += 'padding: ' + size.desktop + 'px;'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element {'; dynamicStyle += 'padding: ' + size.tablet + 'px;'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap .ast-social-element {'; dynamicStyle += 'padding: ' + size.mobile + 'px;'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-icon-bg-spacing', dynamicStyle ); } } ); } ); // Padding. wp.customize( 'astra-settings[single-post-social-sharing-padding]', function( value ) { value.bind( function( padding ) { if( padding.desktop.bottom != '' || padding.desktop.top != '' || padding.desktop.left != '' || padding.desktop.right != '' || padding.tablet.bottom != '' || padding.tablet.top != '' || padding.tablet.left != '' || padding.tablet.right != '' || padding.mobile.bottom != '' || padding.mobile.top != '' || padding.mobile.left != '' || padding.mobile.right != '' ) { let dynamicStyle = ''; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'padding-left: ' + padding['desktop']['left'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['desktop']['right'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['desktop']['top'] + padding['desktop-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['desktop']['bottom'] + padding['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'padding-left: ' + padding['tablet']['left'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['tablet']['right'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['tablet']['top'] + padding['tablet-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['tablet']['bottom'] + padding['tablet-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'padding-left: ' + padding['mobile']['left'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-right: ' + padding['mobile']['right'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-top: ' + padding['mobile']['top'] + padding['mobile-unit'] + ';'; dynamicStyle += 'padding-bottom: ' + padding['mobile']['bottom'] + padding['mobile-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-padding', dynamicStyle ); } } ); } ); // Border Radius. wp.customize( 'astra-settings[single-post-social-sharing-border-radius]', function( value ) { value.bind( function( radius ) { if( radius.desktop.bottom != '' || radius.desktop.top != '' || radius.desktop.left != '' || radius.desktop.right != '' || radius.tablet.bottom != '' || radius.tablet.top != '' || radius.tablet.left != '' || radius.tablet.right != '' || radius.mobile.bottom != '' || radius.mobile.top != '' || radius.mobile.left != '' || radius.mobile.right != '' ) { let dynamicStyle = ''; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'border-top-left-radius: ' + radius['desktop']['top_left'] + radius['desktop-unit'] + ';'; dynamicStyle += 'border-top-right-radius: ' + radius['desktop']['top_right'] + radius['desktop-unit'] + ';'; dynamicStyle += 'border-bottom-left-radius: ' + radius['desktop']['bottom_left'] + radius['desktop-unit'] + ';'; dynamicStyle += 'border-bottom-right-radius: ' + radius['desktop']['bottom_right'] + radius['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'border-top-left-radius: ' + radius['tablet']['top_left'] + radius['tablet-unit'] + ';'; dynamicStyle += 'border-top-right-radius: ' + radius['tablet']['top_right'] + radius['tablet-unit'] + ';'; dynamicStyle += 'border-bottom-left-radius: ' + radius['tablet']['bottom_left'] + radius['tablet-unit'] + ';'; dynamicStyle += 'border-bottom-right-radius: ' + radius['tablet']['bottom_right'] + radius['tablet-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'border-top-left-radius: ' + radius['mobile']['top_left'] + radius['mobile-unit'] + ';'; dynamicStyle += 'border-top-right-radius: ' + radius['mobile']['top_right'] + radius['mobile-unit'] + ';'; dynamicStyle += 'border-bottom-left-radius: ' + radius['mobile']['bottom_left'] + radius['mobile-unit'] + ';'; dynamicStyle += 'border-bottom-right-radius: ' + radius['mobile']['bottom_right'] + radius['mobile-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-border-radius', dynamicStyle ); } } ); } ); // Margin. wp.customize( 'astra-settings[single-post-social-sharing-margin]', function( value ) { value.bind( function( margin ) { if( margin.desktop.bottom != '' || margin.desktop.top != '' || margin.desktop.left != '' || margin.desktop.right != '' || margin.tablet.bottom != '' || margin.tablet.top != '' || margin.tablet.left != '' || margin.tablet.right != '' || margin.mobile.bottom != '' || margin.mobile.top != '' || margin.mobile.left != '' || margin.mobile.right != '' ) { let dynamicStyle = ''; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'margin-left: ' + margin['desktop']['left'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['desktop']['right'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['desktop']['top'] + margin['desktop-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['desktop']['bottom'] + margin['desktop-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + tablet_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'margin-left: ' + margin['tablet']['left'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['tablet']['right'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['tablet']['top'] + margin['tablet-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['tablet']['bottom'] + margin['tablet-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; dynamicStyle += '@media (max-width: ' + mobile_break_point + 'px) {'; dynamicStyle += selector + ' .ast-social-inner-wrap {'; dynamicStyle += 'margin-left: ' + margin['mobile']['left'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-right: ' + margin['mobile']['right'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-top: ' + margin['mobile']['top'] + margin['mobile-unit'] + ';'; dynamicStyle += 'margin-bottom: ' + margin['mobile']['bottom'] + margin['mobile-unit'] + ';'; dynamicStyle += '} '; dynamicStyle += '} '; astra_add_dynamic_css( context + '-soc-margin', dynamicStyle ); } } ); } ); wp.customize( 'astra-settings[single-post-social-sharing-heading-text]', function( setting ) { setting.bind( function( text ) { console.log('asdas'); const SocialHeadingText = document.querySelector('.ast-social-sharing-heading'); if( SocialHeadingText ) { SocialHeadingText.textContent = text; } } ); } ); // Typography CSS Generation. astra_generate_outside_font_family_css( 'astra-settings[single-post-social-sharing-icon-label-font-family]', selector + ' .social-item-label' ); astra_generate_font_weight_css( 'astra-settings[single-post-social-sharing-icon-label-font-family]', 'astra-settings[single-post-social-sharing-icon-label-font-weight]', 'font-weight', selector + ' .social-item-label' ); astra_responsive_font_size( 'astra-settings[single-post-social-sharing-icon-label-font-size]', selector + ' .social-item-label' ); astra_font_extras_css( 'single-post-social-sharing-icon-label-font-extras', selector + ' .social-item-label' ); // Social Sharing Heading. astra_generate_outside_font_family_css( 'astra-settings[single-post-social-sharing-heading-font-family]', selector + ' .ast-social-sharing-heading' ); astra_generate_font_weight_css( 'astra-settings[single-post-social-sharing-heading-font-family]', 'astra-settings[single-post-social-sharing-heading-font-weight]', 'font-weight', selector + ' .ast-social-sharing-heading' ); astra_responsive_font_size( 'astra-settings[single-post-social-sharing-heading-font-size]', selector + ' .ast-social-sharing-heading' ); astra_font_extras_css( 'single-post-social-sharing-heading-font-extras', selector + ' .ast-social-sharing-heading' ); } )( jQuery ); assets/js/unminified/jquery-history.js 0000666 00000153234 15165345270 0014211 0 ustar 00 /** * History.js jQuery Adapter * https://raw.githubusercontent.com/browserstate/history.js/master/scripts/bundled-uncompressed/html5/jquery.history.js * * @author Benjamin Arthur Lupton <contact@balupton.com> (http://bevry.me) * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com> (http://balupton.com) * @license New BSD License <http://creativecommons.org/licenses/BSD/> * https://github.com/browserstate/history.js/blob/master/LICENSE.md */ // Closure (function(window,undefined){ "use strict"; // Localise Globals var History = window.History = window.History||{}, jQuery = window.jQuery; // Check Existence if ( typeof History.Adapter !== 'undefined' ) { throw new Error('History.js Adapter has already been loaded...'); } // Add the Adapter History.Adapter = { /** * History.Adapter.bind(el,event,callback) * @param {Element|string} el * @param {string} event - custom and standard events * @param {function} callback * @return {void} */ bind: function(el,event,callback){ jQuery(el).bind(event,callback); }, /** * History.Adapter.trigger(el,event) * @param {Element|string} el * @param {string} event - custom and standard events * @param {Object=} extra - a object of extra event data (optional) * @return {void} */ trigger: function(el,event,extra){ jQuery(el).trigger(event,extra); }, /** * History.Adapter.extractEventData(key,event,extra) * @param {string} key - key for the event data to extract * @param {string} event - custom and standard events * @param {Object=} extra - a object of extra event data (optional) * @return {mixed} */ extractEventData: function(key,event,extra){ // jQuery Native then jQuery Custom var result = (event && event.originalEvent && event.originalEvent[key]) || (extra && extra[key]) || undefined; // Return return result; }, /** * History.Adapter.onDomLoad(callback) * @param {function} callback * @return {void} */ onDomLoad: function(callback) { jQuery(callback); } }; // Try and Initialise History if ( typeof History.init !== 'undefined' ) { History.init(); } })(window); /** * History.js Core * @author Benjamin Arthur Lupton <contact@balupton.com> * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com> * @license New BSD License <http://creativecommons.org/licenses/BSD/> */ (function(window,undefined){ "use strict"; // ======================================================================== // Initialise // Localise Globals var console = window.console||undefined, // Prevent a JSLint complain document = window.document, // Make sure we are using the correct document navigator = window.navigator, // Make sure we are using the correct navigator sessionStorage = false, // sessionStorage setTimeout = window.setTimeout, clearTimeout = window.clearTimeout, setInterval = window.setInterval, clearInterval = window.clearInterval, JSON = window.JSON, alert = window.alert, History = window.History = window.History||{}, // Public History Object history = window.history; // Old History Object try { sessionStorage = window.sessionStorage; // This will throw an exception in some browsers when cookies/localStorage are explicitly disabled (i.e. Chrome) sessionStorage.setItem('TEST', '1'); sessionStorage.removeItem('TEST'); } catch(e) { sessionStorage = false; } // MooTools Compatibility JSON.stringify = JSON.stringify||JSON.encode; JSON.parse = JSON.parse||JSON.decode; // Check Existence if ( typeof History.init !== 'undefined' ) { throw new Error('History.js Core has already been loaded...'); } // Initialise History History.init = function(options){ // Check Load Status of Adapter if ( typeof History.Adapter === 'undefined' ) { return false; } // Check Load Status of Core if ( typeof History.initCore !== 'undefined' ) { History.initCore(); } // Check Load Status of HTML4 Support if ( typeof History.initHtml4 !== 'undefined' ) { History.initHtml4(); } // Return true return true; }; // ======================================================================== // Initialise Core // Initialise Core History.initCore = function(options){ // Initialise if ( typeof History.initCore.initialized !== 'undefined' ) { // Already Loaded return false; } else { History.initCore.initialized = true; } // ==================================================================== // Options /** * History.options * Configurable options */ History.options = History.options||{}; /** * History.options.hashChangeInterval * How long should the interval be before hashchange checks */ History.options.hashChangeInterval = History.options.hashChangeInterval || 100; /** * History.options.safariPollInterval * How long should the interval be before safari poll checks */ History.options.safariPollInterval = History.options.safariPollInterval || 500; /** * History.options.doubleCheckInterval * How long should the interval be before we perform a double check */ History.options.doubleCheckInterval = History.options.doubleCheckInterval || 500; /** * History.options.disableSuid * Force History not to append suid */ History.options.disableSuid = History.options.disableSuid || false; /** * History.options.storeInterval * How long should we wait between store calls */ History.options.storeInterval = History.options.storeInterval || 1000; /** * History.options.busyDelay * How long should we wait between busy events */ History.options.busyDelay = History.options.busyDelay || 250; /** * History.options.debug * If true will enable debug messages to be logged */ History.options.debug = History.options.debug || false; /** * History.options.initialTitle * What is the title of the initial state */ History.options.initialTitle = History.options.initialTitle || document.title; /** * History.options.html4Mode * If true, will force HTMl4 mode (hashtags) */ History.options.html4Mode = History.options.html4Mode || false; /** * History.options.delayInit * Want to override default options and call init manually. */ History.options.delayInit = History.options.delayInit || false; // ==================================================================== // Interval record /** * History.intervalList * List of intervals set, to be cleared when document is unloaded. */ History.intervalList = []; /** * History.clearAllIntervals * Clears all setInterval instances. */ History.clearAllIntervals = function(){ var i, il = History.intervalList; if (typeof il !== "undefined" && il !== null) { for (i = 0; i < il.length; i++) { clearInterval(il[i]); } History.intervalList = null; } }; // ==================================================================== // Debug /** * History.debug(message,...) * Logs the passed arguments if debug enabled */ History.debug = function(){ if ( (History.options.debug||false) ) { History.log.apply(History,arguments); } }; /** * History.log(message,...) * Logs the passed arguments */ History.log = function(){ // Prepare var consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'), textarea = document.getElementById('log'), message, i,n, args,arg ; // Write to Console if ( consoleExists ) { args = Array.prototype.slice.call(arguments); message = args.shift(); if ( typeof console.debug !== 'undefined' ) { console.debug.apply(console,[message,args]); } else { console.log.apply(console,[message,args]); } } else { message = ("\n"+arguments[0]+"\n"); } // Write to log for ( i=1,n=arguments.length; i<n; ++i ) { arg = arguments[i]; if ( typeof arg === 'object' && typeof JSON !== 'undefined' ) { try { arg = JSON.stringify(arg); } catch ( Exception ) { // Recursive Object } } message += "\n"+arg+"\n"; } // Textarea if ( textarea ) { textarea.value += message+"\n-----\n"; textarea.scrollTop = textarea.scrollHeight - textarea.clientHeight; } // No Textarea, No Console else if ( !consoleExists ) { alert(message); } // Return true return true; }; // ==================================================================== // Emulated Status /** * History.getInternetExplorerMajorVersion() * Get's the major version of Internet Explorer * @return {integer} * @license Public Domain * @author Benjamin Arthur Lupton <contact@balupton.com> * @author James Padolsey <https://gist.github.com/527683> */ History.getInternetExplorerMajorVersion = function(){ var result = History.getInternetExplorerMajorVersion.cached = (typeof History.getInternetExplorerMajorVersion.cached !== 'undefined') ? History.getInternetExplorerMajorVersion.cached : (function(){ var v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i'); while ( (div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->') && all[0] ) {} return (v > 4) ? v : false; })() ; return result; }; /** * History.isInternetExplorer() * Are we using Internet Explorer? * @return {boolean} * @license Public Domain * @author Benjamin Arthur Lupton <contact@balupton.com> */ History.isInternetExplorer = function(){ var result = History.isInternetExplorer.cached = (typeof History.isInternetExplorer.cached !== 'undefined') ? History.isInternetExplorer.cached : Boolean(History.getInternetExplorerMajorVersion()) ; return result; }; /** * History.emulated * Which features require emulating? */ if (History.options.html4Mode) { History.emulated = { pushState : true, hashChange: true }; } else { History.emulated = { pushState: !Boolean( window.history && window.history.pushState && window.history.replaceState && !( (/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(navigator.userAgent) /* disable for versions of iOS before version 4.3 (8F190) */ || (/AppleWebKit\/5([0-2]|3[0-2])/i).test(navigator.userAgent) /* disable for the mercury iOS browser, or at least older versions of the webkit engine */ ) ), hashChange: Boolean( !(('onhashchange' in window) || ('onhashchange' in document)) || (History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8) ) }; } /** * History.enabled * Is History enabled? */ History.enabled = !History.emulated.pushState; /** * History.bugs * Which bugs are present */ History.bugs = { /** * Safari 5 and Safari iOS 4 fail to return to the correct state once a hash is replaced by a `replaceState` call * https://bugs.webkit.org/show_bug.cgi?id=56249 */ setHash: Boolean(!History.emulated.pushState && navigator.vendor === 'Apple Computer, Inc.' && /AppleWebKit\/5([0-2]|3[0-3])/.test(navigator.userAgent)), /** * Safari 5 and Safari iOS 4 sometimes fail to apply the state change under busy conditions * https://bugs.webkit.org/show_bug.cgi?id=42940 */ safariPoll: Boolean(!History.emulated.pushState && navigator.vendor === 'Apple Computer, Inc.' && /AppleWebKit\/5([0-2]|3[0-3])/.test(navigator.userAgent)), /** * MSIE 6 and 7 sometimes do not apply a hash even it was told to (requiring a second call to the apply function) */ ieDoubleCheck: Boolean(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8), /** * MSIE 6 requires the entire hash to be encoded for the hashes to trigger the onHashChange event */ hashEscape: Boolean(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 7) }; /** * History.isEmptyObject(obj) * Checks to see if the Object is Empty * @param {Object} obj * @return {boolean} */ History.isEmptyObject = function(obj) { for ( var name in obj ) { if ( obj.hasOwnProperty(name) ) { return false; } } return true; }; /** * History.cloneObject(obj) * Clones a object and eliminate all references to the original contexts * @param {Object} obj * @return {Object} */ History.cloneObject = function(obj) { var hash,newObj; if ( obj ) { hash = JSON.stringify(obj); newObj = JSON.parse(hash); } else { newObj = {}; } return newObj; }; // ==================================================================== // URL Helpers /** * History.getRootUrl() * Turns "http://mysite.com/dir/page.html?asd" into "http://mysite.com" * @return {String} rootUrl */ History.getRootUrl = function(){ // Create var rootUrl = document.location.protocol+'//'+(document.location.hostname||document.location.host); if ( document.location.port||false ) { rootUrl += ':'+document.location.port; } rootUrl += '/'; // Return return rootUrl; }; /** * History.getBaseHref() * Fetches the `href` attribute of the `<base href="...">` element if it exists * @return {String} baseHref */ History.getBaseHref = function(){ // Create var baseElements = document.getElementsByTagName('base'), baseElement = null, baseHref = ''; // Test for Base Element if ( baseElements.length === 1 ) { // Prepare for Base Element baseElement = baseElements[0]; baseHref = baseElement.href.replace(/[^\/]+$/,''); } // Adjust trailing slash baseHref = baseHref.replace(/\/+$/,''); if ( baseHref ) baseHref += '/'; // Return return baseHref; }; /** * History.getBaseUrl() * Fetches the baseHref or basePageUrl or rootUrl (whichever one exists first) * @return {String} baseUrl */ History.getBaseUrl = function(){ // Create var baseUrl = History.getBaseHref()||History.getBasePageUrl()||History.getRootUrl(); // Return return baseUrl; }; /** * History.getPageUrl() * Fetches the URL of the current page * @return {String} pageUrl */ History.getPageUrl = function(){ // Fetch var State = History.getState(false,false), stateUrl = (State||{}).url||History.getLocationHref(), pageUrl; // Create pageUrl = stateUrl.replace(/\/+$/,'').replace(/[^\/]+$/,function(part,index,string){ return (/\./).test(part) ? part : part+'/'; }); // Return return pageUrl; }; /** * History.getBasePageUrl() * Fetches the Url of the directory of the current page * @return {String} basePageUrl */ History.getBasePageUrl = function(){ // Create var basePageUrl = (History.getLocationHref()).replace(/[#\?].*/,'').replace(/[^\/]+$/,function(part,index,string){ return (/[^\/]$/).test(part) ? '' : part; }).replace(/\/+$/,'')+'/'; // Return return basePageUrl; }; /** * History.getFullUrl(url) * Ensures that we have an absolute URL and not a relative URL * @param {string} url * @param {Boolean} allowBaseHref * @return {string} fullUrl */ History.getFullUrl = function(url,allowBaseHref){ // Prepare var fullUrl = url, firstChar = url.substring(0,1); allowBaseHref = (typeof allowBaseHref === 'undefined') ? true : allowBaseHref; // Check if ( /[a-z]+\:\/\//.test(url) ) { // Full URL } else if ( firstChar === '/' ) { // Root URL fullUrl = History.getRootUrl()+url.replace(/^\/+/,''); } else if ( firstChar === '#' ) { // Anchor URL fullUrl = History.getPageUrl().replace(/#.*/,'')+url; } else if ( firstChar === '?' ) { // Query URL fullUrl = History.getPageUrl().replace(/[\?#].*/,'')+url; } else { // Relative URL if ( allowBaseHref ) { fullUrl = History.getBaseUrl()+url.replace(/^(\.\/)+/,''); } else { fullUrl = History.getBasePageUrl()+url.replace(/^(\.\/)+/,''); } // We have an if condition above as we do not want hashes // which are relative to the baseHref in our URLs // as if the baseHref changes, then all our bookmarks // would now point to different locations // whereas the basePageUrl will always stay the same } // Return return fullUrl.replace(/\#$/,''); }; /** * History.getShortUrl(url) * Ensures that we have a relative URL and not a absolute URL * @param {string} url * @return {string} url */ History.getShortUrl = function(url){ // Prepare var shortUrl = url, baseUrl = History.getBaseUrl(), rootUrl = History.getRootUrl(); // Trim baseUrl if ( History.emulated.pushState ) { // We are in a if statement as when pushState is not emulated // The actual url these short urls are relative to can change // So within the same session, we the url may end up somewhere different shortUrl = shortUrl.replace(baseUrl,''); } // Trim rootUrl shortUrl = shortUrl.replace(rootUrl,'/'); // Ensure we can still detect it as a state if ( History.isTraditionalAnchor(shortUrl) ) { shortUrl = './'+shortUrl; } // Clean It shortUrl = shortUrl.replace(/^(\.\/)+/g,'./').replace(/\#$/,''); // Return return shortUrl; }; /** * History.getLocationHref(document) * Returns a normalized version of document.location.href * accounting for browser inconsistencies, etc. * * This URL will be URI-encoded and will include the hash * * @param {object} document * @return {string} url */ History.getLocationHref = function(doc) { doc = doc || document; // most of the time, this will be true if (doc.URL === doc.location.href) return doc.location.href; // some versions of webkit URI-decode document.location.href // but they leave document.URL in an encoded state if (doc.location.href === decodeURIComponent(doc.URL)) return doc.URL; // FF 3.6 only updates document.URL when a page is reloaded // document.location.href is updated correctly if (doc.location.hash && decodeURIComponent(doc.location.href.replace(/^[^#]+/, "")) === doc.location.hash) return doc.location.href; if (doc.URL.indexOf('#') == -1 && doc.location.href.indexOf('#') != -1) return doc.location.href; return doc.URL || doc.location.href; }; // ==================================================================== // State Storage /** * History.store * The store for all session specific data */ History.store = {}; /** * History.idToState * 1-1: State ID to State Object */ History.idToState = History.idToState||{}; /** * History.stateToId * 1-1: State String to State ID */ History.stateToId = History.stateToId||{}; /** * History.urlToId * 1-1: State URL to State ID */ History.urlToId = History.urlToId||{}; /** * History.storedStates * Store the states in an array */ History.storedStates = History.storedStates||[]; /** * History.savedStates * Saved the states in an array */ History.savedStates = History.savedStates||[]; /** * History.noramlizeStore() * Noramlize the store by adding necessary values */ History.normalizeStore = function(){ History.store.idToState = History.store.idToState||{}; History.store.urlToId = History.store.urlToId||{}; History.store.stateToId = History.store.stateToId||{}; }; /** * History.getState() * Get an object containing the data, title and url of the current state * @param {Boolean} friendly * @param {Boolean} create * @return {Object} State */ History.getState = function(friendly,create){ // Prepare if ( typeof friendly === 'undefined' ) { friendly = true; } if ( typeof create === 'undefined' ) { create = true; } // Fetch var State = History.getLastSavedState(); // Create if ( !State && create ) { State = History.createStateObject(); } // Adjust if ( friendly ) { State = History.cloneObject(State); State.url = State.cleanUrl||State.url; } // Return return State; }; /** * History.getIdByState(State) * Gets a ID for a State * @param {State} newState * @return {String} id */ History.getIdByState = function(newState){ // Fetch ID var id = History.extractId(newState.url), str; if ( !id ) { // Find ID via State String str = History.getStateString(newState); if ( typeof History.stateToId[str] !== 'undefined' ) { id = History.stateToId[str]; } else if ( typeof History.store.stateToId[str] !== 'undefined' ) { id = History.store.stateToId[str]; } else { // Generate a new ID while ( true ) { id = (new Date()).getTime() + String(Math.random()).replace(/\D/g,''); if ( typeof History.idToState[id] === 'undefined' && typeof History.store.idToState[id] === 'undefined' ) { break; } } // Apply the new State to the ID History.stateToId[str] = id; History.idToState[id] = newState; } } // Return ID return id; }; /** * History.normalizeState(State) * Expands a State Object * @param {object} State * @return {object} */ History.normalizeState = function(oldState){ // Variables var newState, dataNotEmpty; // Prepare if ( !oldState || (typeof oldState !== 'object') ) { oldState = {}; } // Check if ( typeof oldState.normalized !== 'undefined' ) { return oldState; } // Adjust if ( !oldState.data || (typeof oldState.data !== 'object') ) { oldState.data = {}; } // ---------------------------------------------------------------- // Create newState = {}; newState.normalized = true; newState.title = oldState.title||''; newState.url = History.getFullUrl(oldState.url?oldState.url:(History.getLocationHref())); newState.hash = History.getShortUrl(newState.url); newState.data = History.cloneObject(oldState.data); // Fetch ID newState.id = History.getIdByState(newState); // ---------------------------------------------------------------- // Clean the URL newState.cleanUrl = newState.url.replace(/\??\&_suid.*/,''); newState.url = newState.cleanUrl; // Check to see if we have more than just a url dataNotEmpty = !History.isEmptyObject(newState.data); // Apply if ( (newState.title || dataNotEmpty) && History.options.disableSuid !== true ) { // Add ID to Hash newState.hash = History.getShortUrl(newState.url).replace(/\??\&_suid.*/,''); if ( !/\?/.test(newState.hash) ) { newState.hash += '?'; } newState.hash += '&_suid='+newState.id; } // Create the Hashed URL newState.hashedUrl = History.getFullUrl(newState.hash); // ---------------------------------------------------------------- // Update the URL if we have a duplicate if ( (History.emulated.pushState || History.bugs.safariPoll) && History.hasUrlDuplicate(newState) ) { newState.url = newState.hashedUrl; } // ---------------------------------------------------------------- // Return return newState; }; /** * History.createStateObject(data,title,url) * Creates a object based on the data, title and url state params * @param {object} data * @param {string} title * @param {string} url * @return {object} */ History.createStateObject = function(data,title,url){ // Hashify var State = { 'data': data, 'title': title, 'url': url }; // Expand the State State = History.normalizeState(State); // Return object return State; }; /** * History.getStateById(id) * Get a state by it's UID * @param {String} id */ History.getStateById = function(id){ // Prepare id = String(id); // Retrieve var State = History.idToState[id] || History.store.idToState[id] || undefined; // Return State return State; }; /** * Get a State's String * @param {State} passedState */ History.getStateString = function(passedState){ // Prepare var State, cleanedState, str; // Fetch State = History.normalizeState(passedState); // Clean cleanedState = { data: State.data, title: passedState.title, url: passedState.url }; // Fetch str = JSON.stringify(cleanedState); // Return return str; }; /** * Get a State's ID * @param {State} passedState * @return {String} id */ History.getStateId = function(passedState){ // Prepare var State, id; // Fetch State = History.normalizeState(passedState); // Fetch id = State.id; // Return return id; }; /** * History.getHashByState(State) * Creates a Hash for the State Object * @param {State} passedState * @return {String} hash */ History.getHashByState = function(passedState){ // Prepare var State, hash; // Fetch State = History.normalizeState(passedState); // Hash hash = State.hash; // Return return hash; }; /** * History.extractId(url_or_hash) * Get a State ID by it's URL or Hash * @param {string} url_or_hash * @return {string} id */ History.extractId = function ( url_or_hash ) { // Prepare var id,parts,url, tmp; // Extract // If the URL has a #, use the id from before the # if (url_or_hash.indexOf('#') != -1) { tmp = url_or_hash.split("#")[0]; } else { tmp = url_or_hash; } parts = /(.*)\&_suid=([0-9]+)$/.exec(tmp); url = parts ? (parts[1]||url_or_hash) : url_or_hash; id = parts ? String(parts[2]||'') : ''; // Return return id||false; }; /** * History.isTraditionalAnchor * Checks to see if the url is a traditional anchor or not * @param {String} url_or_hash * @return {Boolean} */ History.isTraditionalAnchor = function(url_or_hash){ // Check var isTraditional = !(/[\/\?\.]/.test(url_or_hash)); // Return return isTraditional; }; /** * History.extractState * Get a State by it's URL or Hash * @param {String} url_or_hash * @return {State|null} */ History.extractState = function(url_or_hash,create){ // Prepare var State = null, id, url; create = create||false; // Fetch SUID id = History.extractId(url_or_hash); if ( id ) { State = History.getStateById(id); } // Fetch SUID returned no State if ( !State ) { // Fetch URL url = History.getFullUrl(url_or_hash); // Check URL id = History.getIdByUrl(url)||false; if ( id ) { State = History.getStateById(id); } // Create State if ( !State && create && !History.isTraditionalAnchor(url_or_hash) ) { State = History.createStateObject(null,null,url); } } // Return return State; }; /** * History.getIdByUrl() * Get a State ID by a State URL */ History.getIdByUrl = function(url){ // Fetch var id = History.urlToId[url] || History.store.urlToId[url] || undefined; // Return return id; }; /** * History.getLastSavedState() * Get an object containing the data, title and url of the current state * @return {Object} State */ History.getLastSavedState = function(){ return History.savedStates[History.savedStates.length-1]||undefined; }; /** * History.getLastStoredState() * Get an object containing the data, title and url of the current state * @return {Object} State */ History.getLastStoredState = function(){ return History.storedStates[History.storedStates.length-1]||undefined; }; /** * History.hasUrlDuplicate * Checks if a Url will have a url conflict * @param {Object} newState * @return {Boolean} hasDuplicate */ History.hasUrlDuplicate = function(newState) { // Prepare var hasDuplicate = false, oldState; // Fetch oldState = History.extractState(newState.url); // Check hasDuplicate = oldState && oldState.id !== newState.id; // Return return hasDuplicate; }; /** * History.storeState * Store a State * @param {Object} newState * @return {Object} newState */ History.storeState = function(newState){ // Store the State History.urlToId[newState.url] = newState.id; // Push the State History.storedStates.push(History.cloneObject(newState)); // Return newState return newState; }; /** * History.isLastSavedState(newState) * Tests to see if the state is the last state * @param {Object} newState * @return {boolean} isLast */ History.isLastSavedState = function(newState){ // Prepare var isLast = false, newId, oldState, oldId; // Check if ( History.savedStates.length ) { newId = newState.id; oldState = History.getLastSavedState(); oldId = oldState.id; // Check isLast = (newId === oldId); } // Return return isLast; }; /** * History.saveState * Push a State * @param {Object} newState * @return {boolean} changed */ History.saveState = function(newState){ // Check Hash if ( History.isLastSavedState(newState) ) { return false; } // Push the State History.savedStates.push(History.cloneObject(newState)); // Return true return true; }; /** * History.getStateByIndex() * Gets a state by the index * @param {integer} index * @return {Object} */ History.getStateByIndex = function(index){ // Prepare var State = null; // Handle if ( typeof index === 'undefined' ) { // Get the last inserted State = History.savedStates[History.savedStates.length-1]; } else if ( index < 0 ) { // Get from the end State = History.savedStates[History.savedStates.length+index]; } else { // Get from the beginning State = History.savedStates[index]; } // Return State return State; }; /** * History.getCurrentIndex() * Gets the current index * @return (integer) */ History.getCurrentIndex = function(){ // Prepare var index = null; // No states saved if(History.savedStates.length < 1) { index = 0; } else { index = History.savedStates.length-1; } return index; }; // ==================================================================== // Hash Helpers /** * History.getHash() * @param {Location=} location * Gets the current document hash * Note: unlike location.hash, this is guaranteed to return the escaped hash in all browsers * @return {string} */ History.getHash = function(doc){ var url = History.getLocationHref(doc), hash; hash = History.getHashByUrl(url); return hash; }; /** * History.unescapeHash() * normalize and Unescape a Hash * @param {String} hash * @return {string} */ History.unescapeHash = function(hash){ // Prepare var result = History.normalizeHash(hash); // Unescape hash result = decodeURIComponent(result); // Return result return result; }; /** * History.normalizeHash() * normalize a hash across browsers * @return {string} */ History.normalizeHash = function(hash){ // Prepare var result = hash.replace(/[^#]*#/,'').replace(/#.*/, ''); // Return result return result; }; /** * History.setHash(hash) * Sets the document hash * @param {string} hash * @return {History} */ History.setHash = function(hash,queue){ // Prepare var State, pageUrl; // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.setHash: we must wait', arguments); History.pushQueue({ scope: History, callback: History.setHash, args: arguments, queue: queue }); return false; } // Log //History.debug('History.setHash: called',hash); // Make Busy + Continue History.busy(true); // Check if hash is a state State = History.extractState(hash,true); if ( State && !History.emulated.pushState ) { // Hash is a state so skip the setHash //History.debug('History.setHash: Hash is a state so skipping the hash set with a direct pushState call',arguments); // PushState History.pushState(State.data,State.title,State.url,false); } else if ( History.getHash() !== hash ) { // Hash is a proper hash, so apply it // Handle browser bugs if ( History.bugs.setHash ) { // Fix Safari Bug https://bugs.webkit.org/show_bug.cgi?id=56249 // Fetch the base page pageUrl = History.getPageUrl(); // Safari hash apply History.pushState(null,null,pageUrl+'#'+hash,false); } else { // Normal hash apply document.location.hash = hash; } } // Chain return History; }; /** * History.escape() * normalize and Escape a Hash * @return {string} */ History.escapeHash = function(hash){ // Prepare var result = History.normalizeHash(hash); // Escape hash result = window.encodeURIComponent(result); // IE6 Escape Bug if ( !History.bugs.hashEscape ) { // Restore common parts result = result .replace(/\%21/g,'!') .replace(/\%26/g,'&') .replace(/\%3D/g,'=') .replace(/\%3F/g,'?'); } // Return result return result; }; /** * History.getHashByUrl(url) * Extracts the Hash from a URL * @param {string} url * @return {string} url */ History.getHashByUrl = function(url){ // Extract the hash var hash = String(url) .replace(/([^#]*)#?([^#]*)#?(.*)/, '$2') ; // Unescape hash hash = History.unescapeHash(hash); // Return hash return hash; }; /** * History.setTitle(title) * Applies the title to the document * @param {State} newState * @return {Boolean} */ History.setTitle = function(newState){ // Prepare var title = newState.title, firstState; // Initial if ( !title ) { firstState = History.getStateByIndex(0); if ( firstState && firstState.url === newState.url ) { title = firstState.title||History.options.initialTitle; } } // Apply try { document.getElementsByTagName('title')[0].innerHTML = title.replace('<','<').replace('>','>').replace(' & ',' & '); } catch ( Exception ) { } document.title = title; // Chain return History; }; // ==================================================================== // Queueing /** * History.queues * The list of queues to use * First In, First Out */ History.queues = []; /** * History.busy(value) * @param {boolean} value [optional] * @return {boolean} busy */ History.busy = function(value){ // Apply if ( typeof value !== 'undefined' ) { //History.debug('History.busy: changing ['+(History.busy.flag||false)+'] to ['+(value||false)+']', History.queues.length); History.busy.flag = value; } // Default else if ( typeof History.busy.flag === 'undefined' ) { History.busy.flag = false; } // Queue if ( !History.busy.flag ) { // Execute the next item in the queue clearTimeout(History.busy.timeout); var fireNext = function(){ var i, queue, item; if ( History.busy.flag ) return; for ( i=History.queues.length-1; i >= 0; --i ) { queue = History.queues[i]; if ( queue.length === 0 ) continue; item = queue.shift(); History.fireQueueItem(item); History.busy.timeout = setTimeout(fireNext,History.options.busyDelay); } }; History.busy.timeout = setTimeout(fireNext,History.options.busyDelay); } // Return return History.busy.flag; }; /** * History.busy.flag */ History.busy.flag = false; /** * History.fireQueueItem(item) * Fire a Queue Item * @param {Object} item * @return {Mixed} result */ History.fireQueueItem = function(item){ return item.callback.apply(item.scope||History,item.args||[]); }; /** * History.pushQueue(callback,args) * Add an item to the queue * @param {Object} item [scope,callback,args,queue] */ History.pushQueue = function(item){ // Prepare the queue History.queues[item.queue||0] = History.queues[item.queue||0]||[]; // Add to the queue History.queues[item.queue||0].push(item); // Chain return History; }; /** * History.queue (item,queue), (func,queue), (func), (item) * Either firs the item now if not busy, or adds it to the queue */ History.queue = function(item,queue){ // Prepare if ( typeof item === 'function' ) { item = { callback: item }; } if ( typeof queue !== 'undefined' ) { item.queue = queue; } // Handle if ( History.busy() ) { History.pushQueue(item); } else { History.fireQueueItem(item); } // Chain return History; }; /** * History.clearQueue() * Clears the Queue */ History.clearQueue = function(){ History.busy.flag = false; History.queues = []; return History; }; // ==================================================================== // IE Bug Fix /** * History.stateChanged * States whether or not the state has changed since the last double check was initialised */ History.stateChanged = false; /** * History.doubleChecker * Contains the timeout used for the double checks */ History.doubleChecker = false; /** * History.doubleCheckComplete() * Complete a double check * @return {History} */ History.doubleCheckComplete = function(){ // Update History.stateChanged = true; // Clear History.doubleCheckClear(); // Chain return History; }; /** * History.doubleCheckClear() * Clear a double check * @return {History} */ History.doubleCheckClear = function(){ // Clear if ( History.doubleChecker ) { clearTimeout(History.doubleChecker); History.doubleChecker = false; } // Chain return History; }; /** * History.doubleCheck() * Create a double check * @return {History} */ History.doubleCheck = function(tryAgain){ // Reset History.stateChanged = false; History.doubleCheckClear(); // Fix IE6,IE7 bug where calling history.back or history.forward does not actually change the hash (whereas doing it manually does) // Fix Safari 5 bug where sometimes the state does not change: https://bugs.webkit.org/show_bug.cgi?id=42940 if ( History.bugs.ieDoubleCheck ) { // Apply Check History.doubleChecker = setTimeout( function(){ History.doubleCheckClear(); if ( !History.stateChanged ) { //History.debug('History.doubleCheck: State has not yet changed, trying again', arguments); // Re-Attempt tryAgain(); } return true; }, History.options.doubleCheckInterval ); } // Chain return History; }; // ==================================================================== // Safari Bug Fix /** * History.safariStatePoll() * Poll the current state * @return {History} */ History.safariStatePoll = function(){ // Poll the URL // Get the Last State which has the new URL var urlState = History.extractState(History.getLocationHref()), newState; // Check for a difference if ( !History.isLastSavedState(urlState) ) { newState = urlState; } else { return; } // Check if we have a state with that url // If not create it if ( !newState ) { //History.debug('History.safariStatePoll: new'); newState = History.createStateObject(); } // Apply the New State //History.debug('History.safariStatePoll: trigger'); History.Adapter.trigger(window,'popstate'); // Chain return History; }; // ==================================================================== // State Aliases /** * History.back(queue) * Send the browser history back one item * @param {Integer} queue [optional] */ History.back = function(queue){ //History.debug('History.back: called', arguments); // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.back: we must wait', arguments); History.pushQueue({ scope: History, callback: History.back, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Fix certain browser bugs that prevent the state from changing History.doubleCheck(function(){ History.back(false); }); // Go back history.go(-1); // End back closure return true; }; /** * History.forward(queue) * Send the browser history forward one item * @param {Integer} queue [optional] */ History.forward = function(queue){ //History.debug('History.forward: called', arguments); // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.forward: we must wait', arguments); History.pushQueue({ scope: History, callback: History.forward, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Fix certain browser bugs that prevent the state from changing History.doubleCheck(function(){ History.forward(false); }); // Go forward history.go(1); // End forward closure return true; }; /** * History.go(index,queue) * Send the browser history back or forward index times * @param {Integer} queue [optional] */ History.go = function(index,queue){ //History.debug('History.go: called', arguments); // Prepare var i; // Handle if ( index > 0 ) { // Forward for ( i=1; i<=index; ++i ) { History.forward(queue); } } else if ( index < 0 ) { // Backward for ( i=-1; i>=index; --i ) { History.back(queue); } } else { throw new Error('History.go: History.go requires a positive or negative integer passed.'); } // Chain return History; }; // ==================================================================== // HTML5 State Support // Non-Native pushState Implementation if ( History.emulated.pushState ) { /* * Provide Skeleton for HTML4 Browsers */ // Prepare var emptyFunction = function(){}; History.pushState = History.pushState||emptyFunction; History.replaceState = History.replaceState||emptyFunction; } // History.emulated.pushState // Native pushState Implementation else { /* * Use native HTML5 History API Implementation */ /** * History.onPopState(event,extra) * Refresh the Current State */ History.onPopState = function(event,extra){ // Prepare var stateId = false, newState = false, currentHash, currentState; // Reset the double check History.doubleCheckComplete(); // Check for a Hash, and handle apporiatly currentHash = History.getHash(); if ( currentHash ) { // Expand Hash currentState = History.extractState(currentHash||History.getLocationHref(),true); if ( currentState ) { // We were able to parse it, it must be a State! // Let's forward to replaceState //History.debug('History.onPopState: state anchor', currentHash, currentState); History.replaceState(currentState.data, currentState.title, currentState.url, false); } else { // Traditional Anchor //History.debug('History.onPopState: traditional anchor', currentHash); History.Adapter.trigger(window,'anchorchange'); History.busy(false); } // We don't care for hashes History.expectedStateId = false; return false; } // Ensure stateId = History.Adapter.extractEventData('state',event,extra) || false; // Fetch State if ( stateId ) { // Vanilla: Back/forward button was used newState = History.getStateById(stateId); } else if ( History.expectedStateId ) { // Vanilla: A new state was pushed, and popstate was called manually newState = History.getStateById(History.expectedStateId); } else { // Initial State newState = History.extractState(History.getLocationHref()); } // The State did not exist in our store if ( !newState ) { // Regenerate the State newState = History.createStateObject(null,null,History.getLocationHref()); } // Clean History.expectedStateId = false; // Check if we are the same state if ( History.isLastSavedState(newState) ) { // There has been no change (just the page's hash has finally propagated) //History.debug('History.onPopState: no change', newState, History.savedStates); History.busy(false); return false; } // Store the State History.storeState(newState); History.saveState(newState); // Force update of the title History.setTitle(newState); // Fire Our Event History.Adapter.trigger(window,'statechange'); History.busy(false); // Return true return true; }; History.Adapter.bind(window,'popstate',History.onPopState); /** * History.pushState(data,title,url) * Add a new State to the history object, become it, and trigger onpopstate * We have to trigger for HTML4 compatibility * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.pushState = function(data,title,url,queue){ //History.debug('History.pushState: called', arguments); // Check the State if ( History.getHashByUrl(url) && History.emulated.pushState ) { throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).'); } // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.pushState: we must wait', arguments); History.pushQueue({ scope: History, callback: History.pushState, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Create the newState var newState = History.createStateObject(data,title,url); // Check it if ( History.isLastSavedState(newState) ) { // Won't be a change History.busy(false); } else { // Store the newState History.storeState(newState); History.expectedStateId = newState.id; // Push the newState history.pushState(newState.id,newState.title,newState.url); // Fire HTML5 Event History.Adapter.trigger(window,'popstate'); } // End pushState closure return true; }; /** * History.replaceState(data,title,url) * Replace the State and trigger onpopstate * We have to trigger for HTML4 compatibility * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.replaceState = function(data,title,url,queue){ //History.debug('History.replaceState: called', arguments); // Check the State if ( History.getHashByUrl(url) && History.emulated.pushState ) { throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).'); } // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.replaceState: we must wait', arguments); History.pushQueue({ scope: History, callback: History.replaceState, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Create the newState var newState = History.createStateObject(data,title,url); // Check it if ( History.isLastSavedState(newState) ) { // Won't be a change History.busy(false); } else { // Store the newState History.storeState(newState); History.expectedStateId = newState.id; // Push the newState history.replaceState(newState.id,newState.title,newState.url); // Fire HTML5 Event History.Adapter.trigger(window,'popstate'); } // End replaceState closure return true; }; } // !History.emulated.pushState // ==================================================================== // Initialise /** * Load the Store */ if ( sessionStorage ) { // Fetch try { History.store = JSON.parse(sessionStorage.getItem('History.store'))||{}; } catch ( err ) { History.store = {}; } // Normalize History.normalizeStore(); } else { // Default Load History.store = {}; History.normalizeStore(); } /** * Clear Intervals on exit to prevent memory leaks */ History.Adapter.bind(window,"unload",History.clearAllIntervals); /** * Create the initial State */ History.saveState(History.storeState(History.extractState(History.getLocationHref(),true))); /** * Bind for Saving Store */ if ( sessionStorage ) { // When the page is closed History.onUnload = function(){ // Prepare var currentStore, item, currentStoreString; // Fetch try { currentStore = JSON.parse(sessionStorage.getItem('History.store'))||{}; } catch ( err ) { currentStore = {}; } // Ensure currentStore.idToState = currentStore.idToState || {}; currentStore.urlToId = currentStore.urlToId || {}; currentStore.stateToId = currentStore.stateToId || {}; // Sync for ( item in History.idToState ) { if ( !History.idToState.hasOwnProperty(item) ) { continue; } currentStore.idToState[item] = History.idToState[item]; } for ( item in History.urlToId ) { if ( !History.urlToId.hasOwnProperty(item) ) { continue; } currentStore.urlToId[item] = History.urlToId[item]; } for ( item in History.stateToId ) { if ( !History.stateToId.hasOwnProperty(item) ) { continue; } currentStore.stateToId[item] = History.stateToId[item]; } // Update History.store = currentStore; History.normalizeStore(); // In Safari, going into Private Browsing mode causes the // Session Storage object to still exist but if you try and use // or set any property/function of it it throws the exception // "QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to // add something to storage that exceeded the quota." infinitely // every second. currentStoreString = JSON.stringify(currentStore); try { // Store sessionStorage.setItem('History.store', currentStoreString); } catch (e) { if (e.code === DOMException.QUOTA_EXCEEDED_ERR) { if (sessionStorage.length) { // Workaround for a bug seen on iPads. Sometimes the quota exceeded error comes up and simply // removing/resetting the storage can work. sessionStorage.removeItem('History.store'); sessionStorage.setItem('History.store', currentStoreString); } else { // Otherwise, we're probably private browsing in Safari, so we'll ignore the exception. } } else { throw e; } } }; // For Internet Explorer History.intervalList.push(setInterval(History.onUnload,History.options.storeInterval)); // For Other Browsers History.Adapter.bind(window,'beforeunload',History.onUnload); History.Adapter.bind(window,'unload',History.onUnload); // Both are enabled for consistency } // Non-Native pushState Implementation if ( !History.emulated.pushState ) { // Be aware, the following is only for native pushState implementations // If you are wanting to include something for all browsers // Then include it above this if block /** * Setup Safari Fix */ if ( History.bugs.safariPoll ) { History.intervalList.push(setInterval(History.safariStatePoll, History.options.safariPollInterval)); } /** * Ensure Cross Browser Compatibility */ if ( navigator.vendor === 'Apple Computer, Inc.' || (navigator.appCodeName||'') === 'Mozilla' ) { /** * Fix Safari HashChange Issue */ // Setup Alias History.Adapter.bind(window,'hashchange',function(){ History.Adapter.trigger(window,'popstate'); }); // Initialise Alias if ( History.getHash() ) { History.Adapter.onDomLoad(function(){ History.Adapter.trigger(window,'hashchange'); }); } } } // !History.emulated.pushState }; // History.initCore // Try to Initialise History if (!History.options || !History.options.delayInit) { History.init(); } })(window); assets/js/unminified/pagination-infinite.js 0000666 00000010240 15165345270 0015114 0 ustar 00 (function () { var total = parseInt( astra.infinite_total ) || '', count = parseInt( astra.infinite_count ) || '', pagination = astra.pagination || '', masonryEnabled = astra.masonryEnabled || false, loadStatus = true, infinite_event = astra.infinite_scroll_event || '', loader = document.querySelector('.ast-pagination-infinite .ast-loader'), astLoadMore = document.querySelector('.ast-load-more'); // Is 'infinite' pagination? if( typeof pagination != '' && pagination == 'infinite' ) { var in_customizer = false; // check for wp.customize return boolean if ( typeof wp !== 'undefined' ) { in_customizer = typeof wp.customize !== 'undefined' ? true : false; if ( in_customizer ) { return; } } if( typeof infinite_event != '' ) { switch( infinite_event ) { case 'click': if( astLoadMore ){ astLoadMore.addEventListener('click',function(event) { event.preventDefault(); // For Click if( count != 'undefined' && count != ''&& total != 'undefined' && total != '' ) { if ( count > total ) return false; NextloadArticles(count); count++; } }); } break; case 'scroll': var mainSelector = document.getElementById('main'); var rect = mainSelector.getBoundingClientRect(); var offset = { top: rect.top + window.scrollY, left: rect.left + window.scrollX, }; if( astLoadMore ){ astLoadMore.classList.remove('active'); } if( mainSelector.querySelectorAll('article:last-child').length > 0 ) { var windowHeight50 = window.outerHeight / 1.25; window.addEventListener('scroll', function() { if( (window.scrollY + windowHeight50 ) >= ( offset.top ) ) { if (count > total) { return false; } else { // Pause for the moment ( execute if post loaded ) if( loadStatus == true ) { NextloadArticles(count); count++; loadStatus = false; } } } }); } break; } } /** * Append Posts via AJAX * * Perform masonry operations. */ function NextloadArticles(pageNumber) { if( astLoadMore ){ astLoadMore.classList.remove('active'); } var pageUrlSelector = document.querySelector('a.next.page-numbers'); var nextDestUrl = pageUrlSelector.getAttribute('href'); loader.style.display = 'block'; var request = new XMLHttpRequest(); request.open('GET', nextDestUrl, true); request.send(); request.onload = function() { var string = request.response; var data = new DOMParser().parseFromString(string, 'text/html'); var boxes = data.querySelectorAll( 'article.ast-article-post' ); // Disable loader loader.style.display = 'none'; if( astLoadMore ){ astLoadMore.classList.add( 'active'); } // Append articles for (var boxCount = 0; boxCount < boxes.length; boxCount++) { document.querySelector('#main > .ast-row').append(boxes[boxCount]); } var grid_layout = astra.grid_layout || '3'; // Append articles if( 1 == masonryEnabled && grid_layout > 1 ) { var grid = document.querySelector('#main > .ast-row'); var msnry = new Masonry( grid, {}); imagesLoaded( document.querySelector('#main > .ast-row'), function() { msnry.appended( boxes ); msnry.reloadItems(); msnry.layout(); }); } // Add grid classes var msg = astra.no_more_post_message || ''; // Show no more post message if( count > total ) { document.querySelector('.ast-pagination-infinite').innerHTML = '<span class="ast-load-more no-more active" style="display: inline-block;">' + msg + "</span>"; } else { var newNextTargetUrl = nextDestUrl.replace(/\/page\/[0-9]+/, '/page/' + (pageNumber + 1)); pageUrlSelector.setAttribute('href', newNextTargetUrl); } // Complete the process 'loadStatus' loadStatus = true; } } } })(); assets/js/unminified/single-infinite.js 0000666 00000023553 15165345270 0014257 0 ustar 00 (function ($) { "use strict"; // Variables var content_container = '#main.site-main'; var post_title_selector = 'h1.entry-title'; var nav_container = 'nav.post-navigation'; var comments_container = 'div#comments'; var remove_comments = 'yes'; var track_pageviews = 'yes'; var curr_url = window.location.href; var post_count = 0; var stop_reading = false; var show_comments = astra.show_comments || 'Show Comments'; var edit_post_url = astra.edit_post_url || ''; var siteUrl = astra.site_url || ''; $( document ).ready( function() { var in_customizer = false; // check for wp.customize return boolean if ( typeof wp !== 'undefined' ) { in_customizer = typeof wp.customize !== 'undefined' ? true : false; } // Don't do this if looking for comments or in customizer. if ( in_customizer || window.location.href.indexOf( '#comments' ) > -1 ) { return; } // Remove Comments. if ( remove_comments === 'yes' ) { initialise_comment( comments_container ); } var temp_content_container = $( content_container ); var post_ID = temp_content_container.find('.ast-article-single').attr('id'); if ( typeof post_ID !== typeof undefined && post_ID !== "" ) { post_ID = post_ID.replace('post-', ''); } // Add a post divider. temp_content_container.prepend( '<hr style="height: 0" class="post-divider" data-title="' + window.document.title + '" data-url="' + window.location.href + '" data-post-id="' + post_ID + '"/>' ); // Initialise scrollSpy initialise_scrollspy(); $('body').on( 'click', '.ast-show-comments', function( e ) { var parent = $(this).closest('.ast-show-comments-data'); parent.hide(); parent.siblings().show(); }); /** * Track Page View with Google Analytics. * * It will first detect if Google Analytics is installed before * attempting to send a pageview. * * The tracker detects both classic and universal tracking methods. * * Also supports Google Analytics by Monster Insights should it be used. */ $('body').on( 'asta-post-changed', function( e, post_title, post_url, post_id, post_count, stop_reading ) { if ( track_pageviews != 'yes' ) { return; } if ( typeof pageTracker === "undefined" && typeof _gaq === 'undefined' && typeof ga === 'undefined' && typeof __gaTracker === 'undefined' ) { return; } // Remove the base URL from the post_url. var regexp = new RegExp(siteUrl, 'gi') var postUrl = post_url.replace(regexp, ''); // This uses Asynchronous version of Google Analytics tracking method. if ( typeof pageTracker !== "undefined" && pageTracker !== null ) { pageTracker._trackPageview( postUrl ); } // This uses Google's classic Google Analytics tracking method. if ( typeof _gaq !== 'undefined' && _gaq !== null ) { _gaq.push(['_trackPageview', postUrl]); } // This uses Google Analytics Universal Analytics tracking method. if ( typeof ga !== 'undefined' && ga !== null ) { ga( 'send', 'pageview', postUrl ); } // This uses Monster Insights method of tracking Google Analytics. if ( typeof __gaTracker !== 'undefined' && __gaTracker !== null ) { __gaTracker( 'send', 'pageview', postUrl ); } // This uses Google Analytics Universal Analytics tracking method. if ( typeof gtag !== 'undefined' && gtag !== null ) { gtag('event', 'page_view', { 'page_title' : post_title, 'page_path': postUrl }); } }); }); // END document() function initialise_comment( comments_wrapper ) { var $comments_container = $( comments_wrapper ); if ( 0 === $comments_container.length ) { return; } $comments_container.each(function( index ) { var $this = $(this); if ( $this.find('.ast-show-comments-data').length === 0 ) { var comments_count_wrapper = $this.find( '.comments-count-wrapper' ); var comment_data = '<div class="ast-show-comments-data">'; $this.find( '.comment-respond' ).hide(); if ( comments_count_wrapper.length > 0 ) { comments_count_wrapper.hide(); $this.find( '.ast-comment-list' ).hide(); comment_data += '<div class="ast-show-comments-count"><h3 class="comments-title">' + comments_count_wrapper.find('.comments-title').text() + '</h3></div>'; } comment_data += '<div class="ast-show-comments button ast-button">' + show_comments + '</div>'; comment_data += '</div>'; $this.find( '.no-comments' ).hide(); $this.prepend( comment_data ); } }); } function initialise_scrollspy() { scrollspy(); } // END initialise_scrollspy() function scrollspy() { $( '.post-divider').off( 'scrollSpy:enter', astra_enter ); $( '.post-divider').off( 'scrollSpy:exit', astra_leave ); // Spy on post-divider - changes the URL in browser location and loads new post. $( '.post-divider').on( 'scrollSpy:enter', astra_enter ); $( '.post-divider').on( 'scrollSpy:exit', astra_leave ); $( '.post-divider').scrollSpy(); } // END scrollspy() function astra_enter() { var $enter = $(this); changeURL($enter, 'enter' ); } // END astra_enter() function astra_leave() { var $leave = $(this); changeURL($leave, 'leave' ); } // END astra_leave() function changeURL( $this, in_out_style ) { var el = $($this); var this_url = el.attr( 'data-url' ); var this_title = el.attr( 'data-title' ); var this_post_id = el.attr( 'data-post-id' ); var offset = el.offset(); var scrollTop = $(document).scrollTop(); // If exiting or entering from top, change URL. if ( ( offset.top - scrollTop ) < 200 && curr_url != this_url ) { curr_url = this_url; History.pushState(null, this_title, this_url); // Update edit link if possible if( $('#wp-admin-bar-edit').length > 0 && '' != edit_post_url ) { var new_edit_post_url = edit_post_url.replace( "{{id}}", this_post_id ); $('#wp-admin-bar-edit a').attr( 'href', new_edit_post_url ); } $('body').trigger( 'asta-post-changed', [ this_title, this_url, this_post_id, post_count, stop_reading ] ); } if ( el.nextAll( '.post-divider' ).length === 0 ) { // Look for the next post to load if any. auto_load_next_post(); } } // END changeURL() /** * This is the main function. */ function auto_load_next_post() { // If the user can no read any more then stop looking for new posts. if ( stop_reading ) { return; } // Grab the url for the next post in the post navigation. var post_url = $( nav_container ).find( 'a[rel="prev"]').attr( 'href' ); // Return if previous post URL is same as current URL. if ( ! post_url || post_url === window.location.href ) { return; } // Check to see if pretty permalinks, if not then add partial-prev=1 if ( post_url.indexOf( '?' ) > -1 ) { var np_url = post_url + '&partial-prev=1' } else { var np_url = post_url + '?partial-prev=1' } // Remove the post navigation HTML once the next post has loaded. $( nav_container ).remove(); let request = new XMLHttpRequest(); request.open('GET', post_url, true); request.send(); request.onload = function() { let string = request.response; let postData = new DOMParser().parseFromString(string, 'text/html'), postId = postData.querySelector( 'article.ast-article-single' ) ? postData.querySelector( 'article.ast-article-single' ).getAttribute('id') : ''; postId = '' != postId ? postId.replace('post-', '') : ''; // Make sure that only the post ID remains. let linkId = postData.getElementById("uag-style-" + postId + "-css"), styleId = postData.getElementById("uagb-style-frontend-" + postId); if ( '' !== postId && linkId ) { // If file generation is enabled. let href = linkId.href, styleLink = document.createElement("link"); styleLink.rel = "stylesheet"; styleLink.id = "uag-style-" + postId + "-css"; styleLink.href = href; styleLink.media = "all"; document.head.appendChild( styleLink ); } if ( '' !== postId && styleId ) { // If inline dynamic styles loaded. let styleLink = document.createElement("style"); styleLink.id = "uagb-style-frontend-" + postId; styleLink.textContent = styleId.innerText; document.head.appendChild( styleLink ); } } $.get( np_url , function( data ) { var post = $( "<div>" + data + "</div>" ); data = post.html(); // Returns the HTML data of the next post that was loaded. var post_divider = '<hr style="height: 0" class="ast-single-previous-hr post-divider" data-url="' + post_url + '"/>'; var post_html = $( post_divider + data ); var post_title = post_html.find( post_title_selector ); // Find the post title of the loaded article. var post_ID = $(post).find( 'article' ).attr( 'id' ); // Find the post ID of the loaded article. if ( typeof post_ID !== typeof undefined && post_ID !== "" ) { post_ID = post_ID.replace('post-', ''); // Make sure that only the post ID remains. } $( content_container ).append( post_html ); // Add next post. // Remove Comments. if ( remove_comments === 'yes' ) { initialise_comment( comments_container ); } // Get the hidden "HR" element and add the missing post title and post id attributes. Also make sure it remains hidden. $( 'hr[data-url="' + post_url + '"]').attr( 'data-title' , post_title.text() ).attr( 'data-post-id' , post_ID );// .css( 'display', 'inline-block' ); scrollspy(); // Need to set up ScrollSpy now that the new content has loaded. post_count = post_count+1; // Updates the post count. // Run an event once the post has loaded. $('body').trigger( 'astra-post-loaded', [ post_title.text(), post_url, post_ID, post_count ] ); }); } // END auto_load_next_post() })(jQuery); assets/js/unminified/ast-ext-blog-pro.js 0000666 00000003527 15165345270 0014276 0 ustar 00 /** * Blog Pro Styling * * @package Astra Addon * @since 1.0.0 */ var isIE = false; var isEdge = false; (function ($) { "use strict"; // Internet Explorer 6-11 isIE = /*@cc_on!@*/false || !!document.documentMode; // Edge 20+ isEdge = !isIE && !!window.StyleMedia; var masonryEnabled = astra.masonryEnabled || false; var blogMasonryBreakPoint = astra.blogMasonryBreakPoint; window.addEventListener("resize", function() { masonaryLaoyout( true ); }); masonaryLaoyout(); function masonaryLaoyout( is_resize ){ if ( blogMasonryBreakPoint >= window.innerWidth ) { return; } var blogMasonryBp = window.getComputedStyle( jQuery('#content')[0], '::before' ).getPropertyValue('content'); // Edge/Explorer header break point. if( isEdge || isIE || blogMasonryBp === 'normal' ) { if( window.innerWidth >= blogMasonryBreakPoint ) { blogMasonryBp = blogMasonryBreakPoint; } } else{ blogMasonryBp = blogMasonryBp.replace( /[^0-9]/g, '' ); blogMasonryBp = parseInt( blogMasonryBp ); } var container = jQuery( '.search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div' ); if ( blogMasonryBp == blogMasonryBreakPoint ) { if (masonryEnabled) { if ( typeof container != 'undefined' && container.length > 0 ) { var hasMasonry = container.data('masonry') ? true : false; if ( is_resize && hasMasonry ) { container.masonry('reload'); }else{ container.imagesLoaded(container, function () { container.masonry({ itemSelector: '#primary article', }); }); } } } }else{ if ( masonryEnabled ) { if ( typeof container != 'undefined' && container.length > 0 ) { container.masonry().masonry( 'destroy' ); } } } } })(jQuery); assets/js/unminified/scrollspy.js 0000666 00000014716 15165345270 0013226 0 ustar 00 /** * Extend jquery with a scrollspy plugin. * This watches the window scroll and fires events when elements are scrolled into viewport. * * throttle() and getTime() taken from Underscore.js * https://github.com/jashkenas/underscore * * @author Copyright 2013 John Smart * @license https://raw.github.com/thesmart/jquery-scrollspy/master/LICENSE * @see https://github.com/thesmart * @version 0.1.2 */ (function($) { var jWindow = $(window); var elements = []; var elementsInView = []; var isSpying = false; var ticks = 0; var offset = { top : 0, right : 0, bottom : 0, left : 0, } /** * Find elements that are within the boundary * @param {number} top * @param {number} right * @param {number} bottom * @param {number} left * @return {jQuery} A collection of elements */ function findElements(top, right, bottom, left) { var hits = $(); $.each(elements, function(i, element) { var elTop = element.offset().top, elLeft = element.offset().left, elRight = elLeft + element.width(), elBottom = elTop + element.height(); var isIntersect = !(elLeft > right || elRight < left || elTop > bottom || elBottom < top); if (isIntersect) { hits.push(element); } }); return hits; } /** * Called when the user scrolls the window */ function onScroll() { // unique tick id ++ticks; // viewport rectangle var top = jWindow.scrollTop(), left = jWindow.scrollLeft(), right = left + jWindow.width(), bottom = top + jWindow.height(); // determine which elements are in view var intersections = findElements(top+offset.top, right+offset.right, bottom+offset.bottom, left+offset.left); $.each(intersections, function(i, element) { var lastTick = element.data('scrollSpy:ticks'); if (typeof lastTick != 'number') { // entered into view element.triggerHandler('scrollSpy:enter'); } // update tick id element.data('scrollSpy:ticks', ticks); }); // determine which elements are no longer in view $.each(elementsInView, function(i, element) { var lastTick = element.data('scrollSpy:ticks'); if (typeof lastTick == 'number' && lastTick !== ticks) { // exited from view element.triggerHandler('scrollSpy:exit'); element.data('scrollSpy:ticks', null); } }); // remember elements in view for next tick elementsInView = intersections; } /** * Called when window is resized */ function onWinSize() { jWindow.trigger('scrollSpy:winSize'); } /** * Get time in ms * @license https://raw.github.com/jashkenas/underscore/master/LICENSE * @type {function} * @return {number} */ var getTime = (Date.now || function () { return new Date().getTime(); }); /** * Returns a function, that, when invoked, will only be triggered at most once * during a given window of time. Normally, the throttled function will run * as much as it can, without ever going more than once per `wait` duration; * but if you'd like to disable the execution on the leading edge, pass * `{leading: false}`. To disable execution on the trailing edge, ditto. * @license https://raw.github.com/jashkenas/underscore/master/LICENSE * @param {function} func * @param {number} wait * @param {Object=} options * @returns {Function} */ function throttle(func, wait, options) { var context, args, result; var timeout = null; var previous = 0; options || (options = {}); var later = function () { previous = options.leading === false ? 0 : getTime(); timeout = null; result = func.apply(context, args); context = args = null; }; return function () { var now = getTime(); if (!previous && options.leading === false) previous = now; var remaining = wait - (now - previous); context = this; args = arguments; if (remaining <= 0) { clearTimeout(timeout); timeout = null; previous = now; result = func.apply(context, args); context = args = null; } else if (!timeout && options.trailing !== false) { timeout = setTimeout(later, remaining); } return result; }; }; /** * Enables ScrollSpy using a selector * @param {jQuery|string} selector The elements collection, or a selector * @param {Object=} options Optional. throttle : number -> scrollspy throttling. Default: 100 ms offsetTop : number -> offset from top. Default: 0 offsetRight : number -> offset from right. Default: 0 offsetBottom : number -> offset from bottom. Default: 0 offsetLeft : number -> offset from left. Default: 0 * @returns {jQuery} */ $.scrollSpy = function(selector, options) { selector = $(selector); selector.each(function(i, element) { elements.push($(element)); }); options = options || { throttle: 100 }; offset.top = options.offsetTop || 0; offset.right = options.offsetRight || 0; offset.bottom = options.offsetBottom || 0; offset.left = options.offsetLeft || 0; var throttledScroll = throttle(onScroll, options.throttle || 100); var readyScroll = function(){ $(document).ready(throttledScroll); }; if (!isSpying) { jWindow.on('scroll', readyScroll); jWindow.on('resize', readyScroll); isSpying = true; } // perform a scan once, after current execution context, and after dom is ready setTimeout(readyScroll, 0); return selector; }; /** * Listen for window resize events * @param {Object=} options Optional. Set { throttle: number } to change throttling. Default: 100 ms * @returns {jQuery} $(window) */ $.winSizeSpy = function(options) { $.winSizeSpy = function() { return jWindow; }; // lock from multiple calls options = options || { throttle: 100 }; return jWindow.on('resize', throttle(onWinSize, options.throttle || 100)); }; /** * Enables ScrollSpy on a collection of elements * e.g. $('.scrollSpy').scrollSpy() * @param {Object=} options Optional. throttle : number -> scrollspy throttling. Default: 100 ms offsetTop : number -> offset from top. Default: 0 offsetRight : number -> offset from right. Default: 0 offsetBottom : number -> offset from bottom. Default: 0 offsetLeft : number -> offset from left. Default: 0 * @returns {jQuery} */ $.fn.scrollSpy = function(options) { return $.scrollSpy($(this), options); }; })(jQuery); assets/js/minified/customizer-preview.min.js 0000666 00000025635 15165345270 0015300 0 ustar 00 !function(){const i=AstraAddon.tablet_break_point||768,o=AstraAddon.mobile_break_point||544;var t=AstraAddon.rtl;const a=t?"right":"left";var s=AstraAddon.soc_position,s="left-content"===s||"right-content"===s;const e=s?"top":a,n=s?"bottom":t?"left":"right",r=(wp.customize("astra-settings[blog-space-bet-posts]",function(t){t.bind(function(t){var s;t?(jQuery(".ast-archive-post").addClass("ast-separate-posts"),s=".ast-separate-container .ast-grid-2 > .site-main > .ast-row, .ast-separate-container .ast-grid-3 > .site-main > .ast-row, .ast-separate-container .ast-grid-4 > .site-main > .ast-row {",s+="\tmargin-left: -1em;\tmargin-right: -1em;}"):(jQuery(".ast-archive-post").removeClass("ast-separate-posts"),s=".ast-separate-container .ast-grid-2 > .site-main > .ast-row, .ast-separate-container .ast-grid-3 > .site-main > .ast-row, .ast-separate-container .ast-grid-4 > .site-main > .ast-row {",s+="\tmargin-left: 0;\tmargin-right: 0;}"),astra_add_dynamic_css("archive-title-spacing-layout",s)})}),".ast-post-social-sharing");astra_color_responsive_css("ss-soc-color","astra-settings[single-post-social-sharing-icon-color]","fill",r+" .ast-social-color-type-custom .ast-social-icon-a svg"),astra_color_responsive_css("ss-soc-svg-color-h","astra-settings[single-post-social-sharing-icon-h-color]","fill",r+" .ast-social-color-type-custom .ast-social-icon-a:hover svg"),astra_color_responsive_css("ss-soc-bg-color","astra-settings[single-post-social-sharing-icon-background-color]","background-color",r+" .ast-social-color-type-custom .ast-social-element"),astra_color_responsive_css("ss-soc-bg-color-h","astra-settings[single-post-social-sharing-icon-background-h-color]","background-color",r+" .ast-social-color-type-custom .ast-social-icon-a:hover .ast-social-element"),astra_color_responsive_css("ss-soc-label-color","astra-settings[single-post-social-sharing-icon-label-color]","color",r+" .ast-social-icon-a span.social-item-label"),astra_color_responsive_css("ss-soc-label-color-h","astra-settings[single-post-social-sharing-icon-label-h-color]","color",r+" .ast-social-icon-a:hover span.social-item-label"),astra_color_responsive_css("ss-soc-heading-color","astra-settings[single-post-social-sharing-heading-color]","color",r+" .ast-social-sharing-heading"),astra_color_responsive_css("ss-soc-heading-color-h","astra-settings[single-post-social-sharing-heading-h-color]","color",r+" .ast-social-sharing-heading:hover"),astra_color_responsive_css("ss-soc-background-color","astra-settings[single-post-social-sharing-background-color]","background-color",r+" .ast-social-inner-wrap"),wp.customize("astra-settings[single-post-social-sharing-alignment]",function(t){t.bind(function(t){var s=t===a?"flex-start":"flex-end",t="center"===t?"center":s,s="",s=(s+=r+"{")+("align-items: "+t+";")+"} ";astra_add_dynamic_css("ss-soc-alignment",s)})}),wp.customize("astra-settings[single-post-social-sharing-icon-size]",function(t){t.bind(function(t){var s;""==t.desktop&&""==t.tablet&&""==t.mobile||(s="",s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=r+" .ast-social-inner-wrap .ast-social-element svg {")+"height: "+t.desktop+"px;")+"width: "+t.desktop+"px;} ")+"@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap .ast-social-element svg {")+"height: "+t.tablet+"px;")+"width: "+t.tablet+"px;} } ")+"@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap .ast-social-element svg {")+"height: "+t.mobile+"px;")+"width: "+t.mobile+"px;} } ",astra_add_dynamic_css("ss-soc-icon-size",s))})}),wp.customize("astra-settings[single-post-social-sharing-icon-spacing]",function(t){t.bind(function(t){let s="",a="";""!=t.desktop&&(s=t.desktop/2,a=(a=(a=(a=(a=(a=(a+=r+" .ast-social-inner-wrap .ast-social-icon-a {")+"margin-"+e+": "+s+"px;")+"margin-"+n+": "+s+"px;} ")+r+" .ast-social-inner-wrap .ast-social-icon-a:first-child {")+"margin-"+e+": 0;} ")+r+" .ast-social-inner-wrap .ast-social-icon-a:last-child {")+"margin-"+n+": 0;} "),""!=t.tablet&&(s=t.tablet/2,a=(a=(a=(a=(a=(a=(a=(a=(a+="@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap .ast-social-icon-a {")+"margin-"+e+": "+s+"px;")+"margin-"+n+": "+s+"px;} ")+r+" .ast-social-inner-wrap .ast-social-icon-a:first-child {")+"margin-"+e+": 0;} ")+r+" .ast-social-inner-wrap .ast-social-icon-a:last-child {")+"margin-"+n+": 0;")+"} } "),""!=t.mobile&&(s=t.mobile/2,a=(a=(a=(a=(a=(a=(a=(a=(a+="@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap .ast-social-icon-a {")+"margin-"+e+": "+s+"px;")+"margin-"+n+": "+s+"px;} ")+r+" .ast-social-inner-wrap .ast-social-icon-a:first-child {")+"margin-"+e+": 0;} ")+r+" .ast-social-inner-wrap .ast-social-icon-a:last-child {")+"margin-"+n+": 0;")+"} } "),astra_add_dynamic_css("ss-soc-icon-spacing",a)})}),wp.customize("astra-settings[single-post-social-sharing-icon-radius]",function(t){t.bind(function(t){var s;""==t.desktop&&""==t.tablet&&""==t.mobile||(s="",s=(s=(s=(s=(s=(s=(s=(s+=r+" .ast-social-inner-wrap .ast-social-element {")+"border-radius: "+t.desktop+"px;} ")+"@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap .ast-social-element {")+"border-radius: "+t.tablet+"px;} } ")+"@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap .ast-social-element {")+"border-radius: "+t.mobile+"px;} } ",astra_add_dynamic_css("ss-soc-icon-radius",s))})}),wp.customize("astra-settings[single-post-social-sharing-icon-background-spacing]",function(t){t.bind(function(t){var s;""==t.desktop&&""==t.tablet&&""==t.mobile||(s="",s=(s=(s=(s=(s=(s=(s=(s+=r+" .ast-social-inner-wrap .ast-social-element {")+"padding: "+t.desktop+"px;} ")+"@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap .ast-social-element {")+"padding: "+t.tablet+"px;} } ")+"@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap .ast-social-element {")+"padding: "+t.mobile+"px;} } ",astra_add_dynamic_css("ss-soc-icon-bg-spacing",s))})}),wp.customize("astra-settings[single-post-social-sharing-padding]",function(t){t.bind(function(t){var s;""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(s="",s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=r+" .ast-social-inner-wrap {")+"padding-left: "+t.desktop.left+t["desktop-unit"]+";")+"padding-right: "+t.desktop.right+t["desktop-unit"]+";")+"padding-top: "+t.desktop.top+t["desktop-unit"]+";")+"padding-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} ")+"@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap {")+"padding-left: "+t.tablet.left+t["tablet-unit"]+";")+"padding-right: "+t.tablet.right+t["tablet-unit"]+";")+"padding-top: "+t.tablet.top+t["tablet-unit"]+";")+"padding-bottom: "+t.tablet.bottom+t["tablet-unit"]+";} } ")+"@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap {")+"padding-left: "+t.mobile.left+t["mobile-unit"]+";")+"padding-right: "+t.mobile.right+t["mobile-unit"]+";")+"padding-top: "+t.mobile.top+t["mobile-unit"]+";")+"padding-bottom: "+t.mobile.bottom+t["mobile-unit"]+";} } ",astra_add_dynamic_css("ss-soc-padding",s))})}),wp.customize("astra-settings[single-post-social-sharing-border-radius]",function(t){t.bind(function(t){var s;""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(s="",s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=r+" .ast-social-inner-wrap {")+"border-top-left-radius: "+t.desktop.top_left+t["desktop-unit"]+";")+"border-top-right-radius: "+t.desktop.top_right+t["desktop-unit"]+";")+"border-bottom-left-radius: "+t.desktop.bottom_left+t["desktop-unit"]+";")+"border-bottom-right-radius: "+t.desktop.bottom_right+t["desktop-unit"]+";} ")+"@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap {")+"border-top-left-radius: "+t.tablet.top_left+t["tablet-unit"]+";")+"border-top-right-radius: "+t.tablet.top_right+t["tablet-unit"]+";")+"border-bottom-left-radius: "+t.tablet.bottom_left+t["tablet-unit"]+";")+"border-bottom-right-radius: "+t.tablet.bottom_right+t["tablet-unit"]+";} } ")+"@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap {")+"border-top-left-radius: "+t.mobile.top_left+t["mobile-unit"]+";")+"border-top-right-radius: "+t.mobile.top_right+t["mobile-unit"]+";")+"border-bottom-left-radius: "+t.mobile.bottom_left+t["mobile-unit"]+";")+"border-bottom-right-radius: "+t.mobile.bottom_right+t["mobile-unit"]+";} } ",astra_add_dynamic_css("ss-soc-border-radius",s))})}),wp.customize("astra-settings[single-post-social-sharing-margin]",function(t){t.bind(function(t){var s;""==t.desktop.bottom&&""==t.desktop.top&&""==t.desktop.left&&""==t.desktop.right&&""==t.tablet.bottom&&""==t.tablet.top&&""==t.tablet.left&&""==t.tablet.right&&""==t.mobile.bottom&&""==t.mobile.top&&""==t.mobile.left&&""==t.mobile.right||(s="",s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s+=r+" .ast-social-inner-wrap {")+"margin-left: "+t.desktop.left+t["desktop-unit"]+";")+"margin-right: "+t.desktop.right+t["desktop-unit"]+";")+"margin-top: "+t.desktop.top+t["desktop-unit"]+";")+"margin-bottom: "+t.desktop.bottom+t["desktop-unit"]+";} ")+"@media (max-width: "+i+"px) {")+r+" .ast-social-inner-wrap {")+"margin-left: "+t.tablet.left+t["tablet-unit"]+";")+"margin-right: "+t.tablet.right+t["tablet-unit"]+";")+"margin-top: "+t.tablet.top+t["tablet-unit"]+";")+"margin-bottom: "+t.tablet.bottom+t["tablet-unit"]+";} } ")+"@media (max-width: "+o+"px) {")+r+" .ast-social-inner-wrap {")+"margin-left: "+t.mobile.left+t["mobile-unit"]+";")+"margin-right: "+t.mobile.right+t["mobile-unit"]+";")+"margin-top: "+t.mobile.top+t["mobile-unit"]+";")+"margin-bottom: "+t.mobile.bottom+t["mobile-unit"]+";} } ",astra_add_dynamic_css("ss-soc-margin",s))})}),wp.customize("astra-settings[single-post-social-sharing-heading-text]",function(t){t.bind(function(t){const s=document.querySelector(".ast-social-sharing-heading");s&&(s.textContent=t)})}),astra_generate_outside_font_family_css("astra-settings[single-post-social-sharing-icon-label-font-family]",r+" .social-item-label"),astra_generate_font_weight_css("astra-settings[single-post-social-sharing-icon-label-font-family]","astra-settings[single-post-social-sharing-icon-label-font-weight]","font-weight",r+" .social-item-label"),astra_responsive_font_size("astra-settings[single-post-social-sharing-icon-label-font-size]",r+" .social-item-label"),astra_font_extras_css("single-post-social-sharing-icon-label-font-extras",r+" .social-item-label"),astra_generate_outside_font_family_css("astra-settings[single-post-social-sharing-heading-font-family]",r+" .ast-social-sharing-heading"),astra_generate_font_weight_css("astra-settings[single-post-social-sharing-heading-font-family]","astra-settings[single-post-social-sharing-heading-font-weight]","font-weight",r+" .ast-social-sharing-heading"),astra_responsive_font_size("astra-settings[single-post-social-sharing-heading-font-size]",r+" .ast-social-sharing-heading"),astra_font_extras_css("single-post-social-sharing-heading-font-extras",r+" .ast-social-sharing-heading")}(jQuery); assets/js/minified/single-autopost-infinite.min.js 0000666 00000047200 15165345270 0016345 0 ustar 00 !function(o){var n=o(window),c=[],p=[],i=!1,g=0,h={top:0,right:0,bottom:0,left:0};function s(){++g;var i,s,l,u,d,e=n.scrollTop(),t=n.scrollLeft(),r=t+n.width(),a=e+n.height(),e=(i=e+h.top,s=r+h.right,l=a+h.bottom,u=t+h.left,d=o(),o.each(c,function(e,t){var r=t.offset().top,a=t.offset().left,o=a+t.width(),n=r+t.height();s<a||o<u||l<r||n<i||d.push(t)}),d);o.each(e,function(e,t){"number"!=typeof t.data("scrollSpy:ticks")&&t.triggerHandler("scrollSpy:enter"),t.data("scrollSpy:ticks",g)}),o.each(p,function(e,t){var r=t.data("scrollSpy:ticks");"number"==typeof r&&r!==g&&(t.triggerHandler("scrollSpy:exit"),t.data("scrollSpy:ticks",null))}),p=e}function t(){n.trigger("scrollSpy:winSize")}var f=Date.now||function(){return(new Date).getTime()};function l(r,a,o){function n(){d=!1===o.leading?0:f(),u=null,l=r.apply(i,s),i=s=null}var i,s,l,u=null,d=0;o=o||{};return function(){var e=f(),t=(d||!1!==o.leading||(d=e),a-(e-d));return i=this,s=arguments,t<=0?(clearTimeout(u),u=null,d=e,l=r.apply(i,s),i=s=null):u||!1===o.trailing||(u=setTimeout(n,t)),l}}o.scrollSpy=function(e,t){(e=o(e)).each(function(e,t){c.push(o(t))}),h.top=(t=t||{throttle:100}).offsetTop||0,h.right=t.offsetRight||0,h.bottom=t.offsetBottom||0,h.left=t.offsetLeft||0;function r(){o(document).ready(a)}var a=l(s,t.throttle||100);return i||(n.on("scroll",r),n.on("resize",r),i=!0),setTimeout(r,0),e},o.winSizeSpy=function(e){return o.winSizeSpy=function(){return n},n.on("resize",l(t,(e=e||{throttle:100}).throttle||100))},o.fn.scrollSpy=function(e){return o.scrollSpy(o(this),e)}}(jQuery),function(e){"use strict";var t=e.History=e.History||{},a=e.jQuery;if(void 0!==t.Adapter)throw new Error("History.js Adapter has already been loaded...");t.Adapter={bind:function(e,t,r){a(e).bind(t,r)},trigger:function(e,t,r){a(e).trigger(t,r)},extractEventData:function(e,t,r){return t&&t.originalEvent&&t.originalEvent[e]||r&&r[e]||void 0},onDomLoad:function(e){a(e)}},void 0!==t.init&&t.init()}(window),function(o,r){"use strict";var s=o.console||r,l=o.document,a=o.navigator,n=!1,i=o.setTimeout,u=o.clearTimeout,d=o.setInterval,c=o.clearInterval,p=o.JSON,g=o.alert,h=o.History=o.History||{},f=o.history;try{(n=o.sessionStorage).setItem("TEST","1"),n.removeItem("TEST")}catch(e){n=!1}if(p.stringify=p.stringify||p.encode,p.parse=p.parse||p.decode,void 0!==h.init)throw new Error("History.js Core has already been loaded...");h.init=function(e){return void 0!==h.Adapter&&(void 0!==h.initCore&&h.initCore(),void 0!==h.initHtml4&&h.initHtml4(),!0)},h.initCore=function(e){if(void 0!==h.initCore.initialized)return!1;var t;if(h.initCore.initialized=!0,h.options=h.options||{},h.options.hashChangeInterval=h.options.hashChangeInterval||100,h.options.safariPollInterval=h.options.safariPollInterval||500,h.options.doubleCheckInterval=h.options.doubleCheckInterval||500,h.options.disableSuid=h.options.disableSuid||!1,h.options.storeInterval=h.options.storeInterval||1e3,h.options.busyDelay=h.options.busyDelay||250,h.options.debug=h.options.debug||!1,h.options.initialTitle=h.options.initialTitle||l.title,h.options.html4Mode=h.options.html4Mode||!1,h.options.delayInit=h.options.delayInit||!1,h.intervalList=[],h.clearAllIntervals=function(){var e,t=h.intervalList;if(null!=t){for(e=0;e<t.length;e++)c(t[e]);h.intervalList=null}},h.debug=function(){h.options.debug&&h.log.apply(h,arguments)},h.log=function(){var e,t,r,a,o,n=!(void 0===s||void 0===s.log||void 0===s.log.apply),i=l.getElementById("log");for(n?(e=(a=Array.prototype.slice.call(arguments)).shift(),(void 0!==s.debug?s.debug:s.log).apply(s,[e,a])):e="\n"+arguments[0]+"\n",t=1,r=arguments.length;t<r;++t){if("object"==typeof(o=arguments[t])&&void 0!==p)try{o=p.stringify(o)}catch(e){}e+="\n"+o+"\n"}return i?(i.value+=e+"\n-----\n",i.scrollTop=i.scrollHeight-i.clientHeight):n||g(e),!0},h.getInternetExplorerMajorVersion=function(){return h.getInternetExplorerMajorVersion.cached=void 0!==h.getInternetExplorerMajorVersion.cached?h.getInternetExplorerMajorVersion.cached:function(){for(var e=3,t=l.createElement("div"),r=t.getElementsByTagName("i");(t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e")&&r[0];);return 4<e&&e}()},h.isInternetExplorer=function(){return h.isInternetExplorer.cached=void 0!==h.isInternetExplorer.cached?h.isInternetExplorer.cached:Boolean(h.getInternetExplorerMajorVersion())},h.options.html4Mode?h.emulated={pushState:!0,hashChange:!0}:h.emulated={pushState:!Boolean(o.history&&o.history.pushState&&o.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(a.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(a.userAgent))),hashChange:Boolean(!("onhashchange"in o||"onhashchange"in l)||h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8)},h.enabled=!h.emulated.pushState,h.bugs={setHash:Boolean(!h.emulated.pushState&&"Apple Computer, Inc."===a.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(a.userAgent)),safariPoll:Boolean(!h.emulated.pushState&&"Apple Computer, Inc."===a.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(a.userAgent)),ieDoubleCheck:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(h.isInternetExplorer()&&h.getInternetExplorerMajorVersion()<7)},h.isEmptyObject=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},h.cloneObject=function(e){e=e?(e=p.stringify(e),p.parse(e)):{};return e},h.getRootUrl=function(){var e=l.location.protocol+"//"+(l.location.hostname||l.location.host);return l.location.port&&(e+=":"+l.location.port),e+="/"},h.getBaseHref=function(){var e=l.getElementsByTagName("base"),t="";return(t=(t=1===e.length?e[0].href.replace(/[^\/]+$/,""):t).replace(/\/+$/,""))&&(t+="/"),t},h.getBaseUrl=function(){return h.getBaseHref()||h.getBasePageUrl()||h.getRootUrl()},h.getPageUrl=function(){return((h.getState(!1,!1)||{}).url||h.getLocationHref()).replace(/\/+$/,"").replace(/[^\/]+$/,function(e,t,r){return/\./.test(e)?e:e+"/"})},h.getBasePageUrl=function(){return h.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(e,t,r){return/[^\/]$/.test(e)?"":e}).replace(/\/+$/,"")+"/"},h.getFullUrl=function(e,t){var r=e,a=e.substring(0,1);return t=void 0===t||t,(r=/[a-z]+\:\/\//.test(e)?r:"/"===a?h.getRootUrl()+e.replace(/^\/+/,""):"#"===a?h.getPageUrl().replace(/#.*/,"")+e:"?"===a?h.getPageUrl().replace(/[\?#].*/,"")+e:t?h.getBaseUrl()+e.replace(/^(\.\/)+/,""):h.getBasePageUrl()+e.replace(/^(\.\/)+/,"")).replace(/\#$/,"")},h.getShortUrl=function(e){var t=h.getBaseUrl(),r=h.getRootUrl(),e=(e=h.emulated.pushState?e.replace(t,""):e).replace(r,"/");return e=(e=h.isTraditionalAnchor(e)?"./"+e:e).replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},h.getLocationHref=function(e){return(e=e||l).URL===e.location.href?e.location.href:e.location.href===decodeURIComponent(e.URL)?e.URL:(!e.location.hash||decodeURIComponent(e.location.href.replace(/^[^#]+/,""))!==e.location.hash)&&(-1!=e.URL.indexOf("#")||-1==e.location.href.indexOf("#"))&&e.URL||e.location.href},h.store={},h.idToState=h.idToState||{},h.stateToId=h.stateToId||{},h.urlToId=h.urlToId||{},h.storedStates=h.storedStates||[],h.savedStates=h.savedStates||[],h.normalizeStore=function(){h.store.idToState=h.store.idToState||{},h.store.urlToId=h.store.urlToId||{},h.store.stateToId=h.store.stateToId||{}},h.getState=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var r=h.getLastSavedState();return!r&&t&&(r=h.createStateObject()),e&&((r=h.cloneObject(r)).url=r.cleanUrl||r.url),r},h.getIdByState=function(e){var t,r=h.extractId(e.url);if(!r)if(t=h.getStateString(e),void 0!==h.stateToId[t])r=h.stateToId[t];else if(void 0!==h.store.stateToId[t])r=h.store.stateToId[t];else{for(;;)if(r=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),void 0===h.idToState[r]&&void 0===h.store.idToState[r])break;h.stateToId[t]=r,h.idToState[r]=e}return r},h.normalizeState=function(e){var t;return void 0!==(e=e&&"object"==typeof e?e:{}).normalized?e:(e.data&&"object"==typeof e.data||(e.data={}),(t={normalized:!0}).title=e.title||"",t.url=h.getFullUrl(e.url||h.getLocationHref()),t.hash=h.getShortUrl(t.url),t.data=h.cloneObject(e.data),t.id=h.getIdByState(t),t.cleanUrl=t.url.replace(/\??\&_suid.*/,""),t.url=t.cleanUrl,e=!h.isEmptyObject(t.data),(t.title||e)&&!0!==h.options.disableSuid&&(t.hash=h.getShortUrl(t.url).replace(/\??\&_suid.*/,""),/\?/.test(t.hash)||(t.hash+="?"),t.hash+="&_suid="+t.id),t.hashedUrl=h.getFullUrl(t.hash),(h.emulated.pushState||h.bugs.safariPoll)&&h.hasUrlDuplicate(t)&&(t.url=t.hashedUrl),t)},h.createStateObject=function(e,t,r){return h.normalizeState({data:e,title:t,url:r})},h.getStateById=function(e){return e=String(e),h.idToState[e]||h.store.idToState[e]||r},h.getStateString=function(e){e={data:h.normalizeState(e).data,title:e.title,url:e.url};return p.stringify(e)},h.getStateId=function(e){return h.normalizeState(e).id},h.getHashByState=function(e){return h.normalizeState(e).hash},h.extractId=function(e){e=-1!=e.indexOf("#")?e.split("#")[0]:e,e=/(.*)\&_suid=([0-9]+)$/.exec(e);e&&e[1];return(e?String(e[2]||""):"")||!1},h.isTraditionalAnchor=function(e){return!/[\/\?\.]/.test(e)},h.extractState=function(e,t){var r,a,o=null;return t=t||!1,(o=(r=h.extractId(e))?h.getStateById(r):o)||(a=h.getFullUrl(e),(o=(r=h.getIdByUrl(a)||!1)?h.getStateById(r):o)||!t||h.isTraditionalAnchor(e)||(o=h.createStateObject(null,null,a))),o},h.getIdByUrl=function(e){return h.urlToId[e]||h.store.urlToId[e]||r},h.getLastSavedState=function(){return h.savedStates[h.savedStates.length-1]||r},h.getLastStoredState=function(){return h.storedStates[h.storedStates.length-1]||r},h.hasUrlDuplicate=function(e){var t=h.extractState(e.url);return t&&t.id!==e.id},h.storeState=function(e){return h.urlToId[e.url]=e.id,h.storedStates.push(h.cloneObject(e)),e},h.isLastSavedState=function(e){var t=!1;return t=h.savedStates.length?e.id===h.getLastSavedState().id:t},h.saveState=function(e){return!h.isLastSavedState(e)&&(h.savedStates.push(h.cloneObject(e)),!0)},h.getStateByIndex=function(e){return void 0===e?h.savedStates[h.savedStates.length-1]:e<0?h.savedStates[h.savedStates.length+e]:h.savedStates[e]},h.getCurrentIndex=function(){return h.savedStates.length<1?0:h.savedStates.length-1},h.getHash=function(e){e=h.getLocationHref(e);return h.getHashByUrl(e)},h.unescapeHash=function(e){e=h.normalizeHash(e);return decodeURIComponent(e)},h.normalizeHash=function(e){return e.replace(/[^#]*#/,"").replace(/#.*/,"")},h.setHash=function(e,t){return!1!==t&&h.busy()?(h.pushQueue({scope:h,callback:h.setHash,args:arguments,queue:t}),!1):(h.busy(!0),(t=h.extractState(e,!0))&&!h.emulated.pushState?h.pushState(t.data,t.title,t.url,!1):h.getHash()!==e&&(h.bugs.setHash?(t=h.getPageUrl(),h.pushState(null,null,t+"#"+e,!1)):l.location.hash=e),h)},h.escapeHash=function(e){e=h.normalizeHash(e),e=o.encodeURIComponent(e);return e=h.bugs.hashEscape?e:e.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")},h.getHashByUrl=function(e){e=String(e).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return h.unescapeHash(e)},h.setTitle=function(e){var t,r=e.title;r||(t=h.getStateByIndex(0))&&t.url===e.url&&(r=t.title||h.options.initialTitle);try{l.getElementsByTagName("title")[0].innerHTML=r.replace("<","<").replace(">",">").replace(" & "," & ")}catch(e){}return l.title=r,h},h.queues=[],h.busy=function(e){var r;return void 0!==e?h.busy.flag=e:void 0===h.busy.flag&&(h.busy.flag=!1),h.busy.flag||(u(h.busy.timeout),h.busy.timeout=i(r=function(){var e,t;if(!h.busy.flag)for(e=h.queues.length-1;0<=e;--e)0!==(t=h.queues[e]).length&&(t=t.shift(),h.fireQueueItem(t),h.busy.timeout=i(r,h.options.busyDelay))},h.options.busyDelay)),h.busy.flag},h.busy.flag=!1,h.fireQueueItem=function(e){return e.callback.apply(e.scope||h,e.args||[])},h.pushQueue=function(e){return h.queues[e.queue||0]=h.queues[e.queue||0]||[],h.queues[e.queue||0].push(e),h},h.queue=function(e,t){return"function"==typeof e&&(e={callback:e}),void 0!==t&&(e.queue=t),h.busy()?h.pushQueue(e):h.fireQueueItem(e),h},h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h},h.stateChanged=!1,h.doubleChecker=!1,h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h},h.doubleCheckClear=function(){return h.doubleChecker&&(u(h.doubleChecker),h.doubleChecker=!1),h},h.doubleCheck=function(e){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&(h.doubleChecker=i(function(){return h.doubleCheckClear(),h.stateChanged||e(),!0},h.options.doubleCheckInterval)),h},h.safariStatePoll=function(){var e=h.extractState(h.getLocationHref());if(!h.isLastSavedState(e))return e||h.createStateObject(),h.Adapter.trigger(o,"popstate"),h},h.back=function(e){return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),f.go(-1),!0)},h.forward=function(e){return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.forward,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),f.go(1),!0)},h.go=function(e,t){var r;if(0<e)for(r=1;r<=e;++r)h.forward(t);else{if(!(e<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(r=-1;e<=r;--r)h.back(t)}return h},h.emulated.pushState?(t=function(){},h.pushState=h.pushState||t,h.replaceState=h.replaceState||t):(h.onPopState=function(e,t){var r,a=!1;return h.doubleCheckComplete(),(r=h.getHash())?((r=h.extractState(r||h.getLocationHref(),!0))?h.replaceState(r.data,r.title,r.url,!1):(h.Adapter.trigger(o,"anchorchange"),h.busy(!1)),h.expectedStateId=!1):(a=(a=(r=h.Adapter.extractEventData("state",e,t)||!1)?h.getStateById(r):h.expectedStateId?h.getStateById(h.expectedStateId):h.extractState(h.getLocationHref()))||h.createStateObject(null,null,h.getLocationHref()),h.expectedStateId=!1,h.isLastSavedState(a)?(h.busy(!1),!1):(h.storeState(a),h.saveState(a),h.setTitle(a),h.Adapter.trigger(o,"statechange"),h.busy(!1),!0))},h.Adapter.bind(o,"popstate",h.onPopState),h.pushState=function(e,t,r,a){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==a&&h.busy())return h.pushQueue({scope:h,callback:h.pushState,args:arguments,queue:a}),!1;h.busy(!0);a=h.createStateObject(e,t,r);return h.isLastSavedState(a)?h.busy(!1):(h.storeState(a),h.expectedStateId=a.id,f.pushState(a.id,a.title,a.url),h.Adapter.trigger(o,"popstate")),!0},h.replaceState=function(e,t,r,a){if(h.getHashByUrl(r)&&h.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(!1!==a&&h.busy())return h.pushQueue({scope:h,callback:h.replaceState,args:arguments,queue:a}),!1;h.busy(!0);a=h.createStateObject(e,t,r);return h.isLastSavedState(a)?h.busy(!1):(h.storeState(a),h.expectedStateId=a.id,f.replaceState(a.id,a.title,a.url),h.Adapter.trigger(o,"popstate")),!0}),n){try{h.store=p.parse(n.getItem("History.store"))||{}}catch(e){h.store={}}h.normalizeStore()}else h.store={},h.normalizeStore();h.Adapter.bind(o,"unload",h.clearAllIntervals),h.saveState(h.storeState(h.extractState(h.getLocationHref(),!0))),n&&(h.onUnload=function(){var t,e,r;try{t=p.parse(n.getItem("History.store"))||{}}catch(e){t={}}for(e in t.idToState=t.idToState||{},t.urlToId=t.urlToId||{},t.stateToId=t.stateToId||{},h.idToState)h.idToState.hasOwnProperty(e)&&(t.idToState[e]=h.idToState[e]);for(e in h.urlToId)h.urlToId.hasOwnProperty(e)&&(t.urlToId[e]=h.urlToId[e]);for(e in h.stateToId)h.stateToId.hasOwnProperty(e)&&(t.stateToId[e]=h.stateToId[e]);h.store=t,h.normalizeStore(),r=p.stringify(t);try{n.setItem("History.store",r)}catch(e){if(e.code!==DOMException.QUOTA_EXCEEDED_ERR)throw e;n.length&&(n.removeItem("History.store"),n.setItem("History.store",r))}},h.intervalList.push(d(h.onUnload,h.options.storeInterval)),h.Adapter.bind(o,"beforeunload",h.onUnload),h.Adapter.bind(o,"unload",h.onUnload)),h.emulated.pushState||(h.bugs.safariPoll&&h.intervalList.push(d(h.safariStatePoll,h.options.safariPollInterval)),"Apple Computer, Inc."!==a.vendor&&"Mozilla"!==(a.appCodeName||"")||(h.Adapter.bind(o,"hashchange",function(){h.Adapter.trigger(o,"popstate")}),h.getHash()&&h.Adapter.onDomLoad(function(){h.Adapter.trigger(o,"hashchange")})))},h.options&&h.options.delayInit||h.init()}(window),function(s){"use strict";var l="#main.site-main",u="h1.entry-title",d="nav.post-navigation",c="div#comments",p="yes",g=window.location.href,h=0,f=!1,o=astra.show_comments||"Show Comments",S=astra.edit_post_url||"",y=astra.site_url||"";function v(e){e=s(e);0!==e.length&&e.each(function(e){var t,r,a=s(this);0===a.find(".ast-show-comments-data").length&&(t=a.find(".comments-count-wrapper"),r='<div class="ast-show-comments-data">',a.find(".comment-respond").hide(),0<t.length&&(t.hide(),a.find(".ast-comment-list").hide(),r+='<div class="ast-show-comments-count"><h3 class="comments-title">'+t.find(".comments-title").text()+"</h3></div>"),r=r+'<div class="ast-show-comments button ast-button">'+o+"</div></div>",a.find(".no-comments").hide(),a.prepend(r))})}function m(){s(".post-divider").off("scrollSpy:enter",e),s(".post-divider").off("scrollSpy:exit",t),s(".post-divider").on("scrollSpy:enter",e),s(".post-divider").on("scrollSpy:exit",t),s(".post-divider").scrollSpy()}function e(){r(s(this))}function t(){r(s(this))}function r(e){var e=s(e),t=e.attr("data-url"),r=e.attr("data-title"),a=e.attr("data-post-id"),o=e.offset(),n=s(document).scrollTop();if(o.top-n<200&&g!=t&&(g=t,History.pushState(null,r,t),0<s("#wp-admin-bar-edit").length&&""!=S&&(o=S.replace("{{id}}",a),s("#wp-admin-bar-edit a").attr("href",o)),s("body").trigger("asta-post-changed",[r,t,a,h,f])),0===e.nextAll(".post-divider").length&&!f){var i=s(d).find('a[rel="prev"]').attr("href");if(i&&i!==window.location.href){n=-1<i.indexOf("?")?i+"&partial-prev=1":i+"?partial-prev=1",s(d).remove();let o=new XMLHttpRequest;o.open("GET",i,!0),o.send(),o.onload=function(){var r=o.response;let e=(new DOMParser).parseFromString(r,"text/html"),a=e.querySelector("article.ast-article-single")?e.querySelector("article.ast-article-single").getAttribute("id"):"";a=""!=a?a.replace("post-",""):"";var r=e.getElementById("uag-style-"+a+"-css"),t=e.getElementById("uagb-style-frontend-"+a);if(""!==a&&r){let e=r.href,t=document.createElement("link");t.rel="stylesheet",t.id="uag-style-"+a+"-css",t.href=e,t.media="all",document.head.appendChild(t)}if(""!==a&&t){let e=document.createElement("style");e.id="uagb-style-frontend-"+a,e.textContent=t.innerText,document.head.appendChild(e)}},s.get(n,function(e){var t=s("<div>"+e+"</div>");e=t.html();var e=s('<hr style="height: 0" class="ast-single-previous-hr post-divider" data-url="'+i+'"/>'+e),r=e.find(u),t=s(t).find("article").attr("id");void 0!==t&&""!==t&&(t=t.replace("post-","")),s(l).append(e),"yes"===p&&v(c),s('hr[data-url="'+i+'"]').attr("data-title",r.text()).attr("data-post-id",t),m(),h+=1,s("body").trigger("astra-post-loaded",[r.text(),i,t,h])})}}}s(document).ready(function(){var e,t=!1;(t="undefined"!=typeof wp?void 0!==wp.customize:t)||-1<window.location.href.indexOf("#comments")||("yes"===p&&v(c),void 0!==(e=(t=s(l)).find(".ast-article-single").attr("id"))&&""!==e&&(e=e.replace("post-","")),t.prepend('<hr style="height: 0" class="post-divider" data-title="'+window.document.title+'" data-url="'+window.location.href+'" data-post-id="'+e+'"/>'),m(),s("body").on("click",".ast-show-comments",function(e){var t=s(this).closest(".ast-show-comments-data");t.hide(),t.siblings().show()}),s("body").on("asta-post-changed",function(e,t,r,a,o,n){var i;"undefined"==typeof pageTracker&&"undefined"==typeof _gaq&&"undefined"==typeof ga&&"undefined"==typeof __gaTracker||(i=new RegExp(y,"gi"),r=r.replace(i,""),"undefined"!=typeof pageTracker&&null!==pageTracker&&pageTracker._trackPageview(r),"undefined"!=typeof _gaq&&null!==_gaq&&_gaq.push(["_trackPageview",r]),"undefined"!=typeof ga&&null!==ga&&ga("send","pageview",r),"undefined"!=typeof __gaTracker&&null!==__gaTracker&&__gaTracker("send","pageview",r),"undefined"!=typeof gtag&&null!==gtag&>ag("event","page_view",{page_title:t,page_path:r}))}))})}(jQuery); assets/js/minified/pagination-infinite.min.js 0000666 00000003466 15165345270 0015347 0 ustar 00 !function(){var l=parseInt(astra.infinite_total)||"",c=parseInt(astra.infinite_count)||"",e=astra.pagination||"",d=astra.masonryEnabled||!1,u=!0,t=astra.infinite_scroll_event||"",p=document.querySelector(".ast-pagination-infinite .ast-loader"),f=document.querySelector(".ast-load-more");if(typeof e&&"infinite"==e){if(("undefined"==typeof wp||!(void 0!==wp.customize))&&typeof t)switch(t){case"click":f&&f.addEventListener("click",function(e){if(e.preventDefault(),"undefined"!=c&&""!=c&&"undefined"!=l&&""!=l){if(l<c)return!1;o(c),c++}});break;case"scroll":var n,a=document.getElementById("main"),i=a.getBoundingClientRect(),r=i.top+window.scrollY;i.left,window.scrollX;f&&f.classList.remove("active"),0<a.querySelectorAll("article:last-child").length&&(n=window.outerHeight/1.25,window.addEventListener("scroll",function(){if(window.scrollY+n>=r){if(l<c)return!1;1==u&&(o(c),c++,u=!1)}}))}function o(i){f&&f.classList.remove("active");var r=document.querySelector("a.next.page-numbers"),o=r.getAttribute("href"),s=(p.style.display="block",new XMLHttpRequest);s.open("GET",o,!0),s.send(),s.onload=function(){var e=s.response,t=(new DOMParser).parseFromString(e,"text/html").querySelectorAll("article.ast-article-post");p.style.display="none",f&&f.classList.add("active");for(var n=0;n<t.length;n++)document.querySelector("#main > .ast-row").append(t[n]);var a,e=astra.grid_layout||"3",e=(1==d&&1<e&&(e=document.querySelector("#main > .ast-row"),a=new Masonry(e,{}),imagesLoaded(document.querySelector("#main > .ast-row"),function(){a.appended(t),a.reloadItems(),a.layout()})),astra.no_more_post_message||"");l<c?document.querySelector(".ast-pagination-infinite").innerHTML='<span class="ast-load-more no-more active" style="display: inline-block;">'+e+"</span>":(e=o.replace(/\/page\/[0-9]+/,"/page/"+(i+1)),r.setAttribute("href",e)),u=!0}}}}(); assets/js/minified/ast-ext-blog-pro.min.js 0000666 00000001431 15165345270 0014505 0 ustar 00 var isIE=!1,isEdge=!1;!function(){"use strict";isIE=!!document.documentMode,isEdge=!isIE&&!!window.StyleMedia;var i=astra.masonryEnabled||!1,r=astra.blogMasonryBreakPoint;function e(e){var n,o;r>=window.innerWidth||(o=window.getComputedStyle(jQuery("#content")[0],"::before").getPropertyValue("content"),isEdge||isIE||"normal"===o?window.innerWidth>=r&&(o=r):(o=o.replace(/[^0-9]/g,""),o=parseInt(o)),n=jQuery(".search.blog-masonry #main > div, .blog.blog-masonry #main > div, .archive.blog-masonry #main > div"),o==r?i&&void 0!==n&&0<n.length&&(o=!!n.data("masonry"),e&&o?n.masonry("reload"):n.imagesLoaded(n,function(){n.masonry({itemSelector:"#primary article"})})):i&&void 0!==n&&0<n.length&&n.masonry().masonry("destroy"))}window.addEventListener("resize",function(){e(!0)}),e()}(jQuery); classes/class-astra-ext-blog-pro-loader.php 0000666 00000025373 15165345270 0014736 0 ustar 00 <?php /** * Blog Pro - Customizer. * * @package Astra Addon * @since 1.0.0 */ if ( ! class_exists( 'Astra_Ext_Blog_Pro_Loader' ) ) { /** * Customizer Initialization * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Blog_Pro_Loader { // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'astra_theme_defaults', array( $this, 'theme_defaults' ) ); if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { add_action( 'customize_preview_init', array( $this, 'preview_scripts' ) ); } add_action( 'customize_register', array( $this, 'new_customize_register' ), 2 ); } /** * Set Options Default Values * * @param array $defaults Astra options default value array. * @return array */ public function theme_defaults( $defaults ) { // Blog / Archive. $defaults['blog-masonry'] = false; $defaults['blog-date-box'] = false; $defaults['blog-date-box-style'] = 'square'; $defaults['first-post-full-width'] = false; $defaults['blog-space-bet-posts'] = false; $defaults['blog-grid'] = 1; $defaults['blog-grid-layout'] = 1; $defaults['blog-layout'] = 'blog-layout-1'; $defaults['blog-pagination'] = 'number'; $defaults['blog-pagination-style'] = 'default'; $defaults['blog-infinite-scroll-event'] = 'scroll'; $defaults['blog-excerpt-count'] = 55; $defaults['blog-read-more-text'] = __( 'Read More »', 'astra-addon' ); $defaults['blog-read-more-as-button'] = false; $defaults['blog-load-more-text'] = __( 'Load More', 'astra-addon' ); $defaults['blog-featured-image-padding'] = false; // Single. $defaults['ast-author-info'] = false; $defaults['ast-single-post-navigation'] = false; $defaults['ast-auto-prev-post'] = false; $defaults['single-featured-image-padding'] = false; $defaults['single-post-social-sharing-icon-enable'] = false; $defaults['single-post-social-sharing-heading-enable'] = false; $defaults['single-post-social-sharing-heading-position'] = 'above'; $defaults['single-post-social-sharing-heading-text'] = __( 'Share your love', 'astra-addon' ); $defaults['single-post-social-sharing-heading-position'] = 'above'; $defaults['single-post-social-sharing-icon-list'] = array( 'items' => array( array( 'id' => 'facebook', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#557dbc', 'background' => 'transparent', 'icon' => 'facebook', 'label' => __( 'Facebook', 'astra-addon' ), ), array( 'id' => 'twitter', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#7acdee', 'background' => 'transparent', 'icon' => 'twitter', 'label' => __( 'Twitter', 'astra-addon' ), ), array( 'id' => 'pinterest', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#E60023', 'background' => 'transparent', 'icon' => 'pinterest', 'label' => __( 'Pinterest', 'astra-addon' ), ), array( 'id' => 'linkedin', 'enabled' => true, 'source' => 'icon', 'url' => '', 'color' => '#1c86c6', 'background' => 'transparent', 'icon' => 'linkedin', 'label' => __( 'Linkedin', 'astra-addon' ), ), ), ); $defaults['single-post-social-sharing-icon-label'] = false; $defaults['single-post-social-sharing-icon-label-position'] = 'below'; $defaults['single-post-social-sharing-icon-position'] = 'below-post-title'; $defaults['single-post-social-sharing-alignment'] = 'left'; $defaults['single-post-social-sharing-icon-color-type'] = 'official'; $defaults['single-post-social-sharing-icon-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-icon-h-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-icon-label-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-icon-label-h-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-icon-background-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-icon-background-h-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['above-header-link-h-color-responsive'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-icon-spacing'] = array( 'desktop' => '20', 'tablet' => '20', 'mobile' => '20', ); $defaults['single-post-social-sharing-icon-background-spacing'] = array( 'desktop' => '0', 'tablet' => '0', 'mobile' => '0', ); $defaults['single-post-social-sharing-icon-size'] = array( 'desktop' => '30', 'tablet' => '30', 'mobile' => '30', ); $defaults['single-post-social-sharing-icon-radius'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-margin'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'em', 'tablet-unit' => 'em', 'mobile-unit' => 'em', ); $defaults['single-post-social-sharing-background-color'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', ); $defaults['single-post-social-sharing-padding'] = array( 'desktop' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'tablet' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'mobile' => array( 'top' => '', 'right' => '', 'bottom' => '', 'left' => '', ), 'desktop-unit' => 'em', 'tablet-unit' => 'em', 'mobile-unit' => 'em', ); $defaults['single-post-social-sharing-border-radius'] = array( 'desktop' => array( 'top_left' => '', 'top_right' => '', 'bottom_right' => '', 'bottom_left' => '', ), 'tablet' => array( 'top_left' => '', 'top_right' => '', 'bottom_right' => '', 'bottom_left' => '', ), 'mobile' => array( 'top_left' => '', 'top_right' => '', 'bottom_right' => '', 'bottom_left' => '', ), 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['single-post-social-sharing-heading-font-family'] = 'inherit'; $defaults['single-post-social-sharing-heading-font-weight'] = 'inherit'; $defaults['single-post-social-sharing-heading-font-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['single-post-social-sharing-heading-font-extras'] = array( 'line-height' => '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => '', 'text-decoration' => '', ); // Social Heading. $defaults['single-post-social-sharing-icon-label-font-family'] = 'inherit'; $defaults['single-post-social-sharing-icon-label-font-weight'] = 'inherit'; $defaults['single-post-social-sharing-icon-label-font-size'] = array( 'desktop' => '', 'tablet' => '', 'mobile' => '', 'desktop-unit' => 'px', 'tablet-unit' => 'px', 'mobile-unit' => 'px', ); $defaults['single-post-social-sharing-icon-label-font-extras'] = array( 'line-height' => '', 'line-height-unit' => 'em', 'letter-spacing' => '', 'letter-spacing-unit' => 'px', 'text-transform' => '', 'text-decoration' => '', ); // Blog Archive Images size. $defaults['blog-archive-image-width'] = false; $defaults['blog-archive-image-height'] = false; // Blog Single Images size. $defaults['blog-single-post-image-width'] = false; $defaults['blog-single-post-image-height'] = false; return $defaults; } /** * Register panel, section and controls * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function new_customize_register( $wp_customize ) { /** * Sections */ require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/sections/class-astra-customizer-blog-pro-configs.php'; require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/sections/class-astra-customizer-blog-pro-single-configs.php'; } /** * Customizer Preview */ public function preview_scripts() { wp_enqueue_script( 'astra-blog-customizer-preview-js', ASTRA_ADDON_EXT_BLOG_PRO_URI . 'assets/js/unminified/customizer-preview.js', array( 'customize-preview', 'astra-customizer-preview-js' ), ASTRA_EXT_VER, true ); $localize_array = array( 'tablet_break_point' => astra_addon_get_tablet_breakpoint(), 'mobile_break_point' => astra_addon_get_mobile_breakpoint(), 'rtl' => is_rtl(), 'soc_position' => astra_get_option( 'single-post-social-sharing-icon-position' ), ); wp_localize_script( 'astra-blog-customizer-preview-js', 'AstraAddon', $localize_array ); } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Blog_Pro_Loader::get_instance(); classes/class-astra-ext-blog-pro-markup.php 0000666 00000076350 15165345270 0014770 0 ustar 00 <?php /** * Blog Pro Markup * * @package Astra Addon */ if ( ! class_exists( 'Astra_Ext_Blog_Pro_Markup' ) ) { /** * Blog Pro Markup Initial Setup * * @since 1.0.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Blog_Pro_Markup { // @codingStandardsIgnoreEnd /** * Member Variable * * @var object instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { add_filter( 'body_class', array( $this, 'astra_ext_blog_pro_body_classes' ) ); add_filter( 'post_class', array( $this, 'astra_post_class_blog_grid' ) ); add_filter( 'astra_primary_class', array( $this, 'astra_primary_class_blog_grid' ) ); add_filter( 'astra_blog_layout_class', array( $this, 'add_blog_layout_class' ) ); add_action( 'astra_addon_get_js_files', array( $this, 'add_scripts' ) ); add_action( 'astra_addon_get_css_files', array( $this, 'add_styles' ), 1 ); add_action( 'wp_head', array( $this, 'blog_customization' ) ); add_filter( 'astra_blog_post_featured_image_after', array( $this, 'date_box' ), 10, 1 ); add_filter( 'astra_related_post_featured_image_after', array( $this, 'date_box' ), 10, 1 ); add_action( 'astra_entry_after', array( $this, 'author_info_markup' ), 9 ); add_action( 'astra_entry_after', array( $this, 'single_post_navigation_markup' ), 9 ); add_filter( 'astra_theme_js_localize', array( $this, 'blog_js_localize' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_frontend_scripts' ) ); // Blog Pagination. add_filter( 'astra_pagination_markup', array( $this, 'astra_blog_pagination' ) ); add_filter( 'astra_meta_case_read-time', array( $this, 'reading_time_content' ), 10, 3 ); add_action( 'init', array( $this, 'init_action' ) ); // Load Google fonts. add_action( 'astra_get_fonts', array( $this, 'add_fonts' ), 1 ); // Social Sharing. add_action( 'wp', array( $this, 'astra_social_sharing' ) ); } /** * Infinite Posts Show on scroll * * @since 1.0 * @param array $localize JS localize variables. * @return array */ public function blog_js_localize( $localize ) { global $wp_query; $pagination_enabled = apply_filters( 'astra_pagination_enabled', true ); $blog_masonry = astra_get_option( 'blog-masonry' ); $blog_pagination = ( $pagination_enabled ) ? astra_get_option( 'blog-pagination' ) : ''; $blog_infinite_scroll_event = astra_get_option( 'blog-infinite-scroll-event' ); $blog_grid = astra_get_option( 'blog-grid' ); $blog_grid_layout = astra_get_option( 'blog-grid-layout' ); $blog_layout = astra_get_option( 'blog-layout' ); $grid_layout = ( 'blog-layout-1' == $blog_layout ) ? $blog_grid : $blog_grid_layout; $localize['edit_post_url'] = admin_url( 'post.php?post={{id}}&action=edit' ); $localize['ajax_url'] = admin_url( 'admin-ajax.php' ); $localize['infinite_count'] = 2; $localize['infinite_total'] = $wp_query->max_num_pages; $localize['pagination'] = $blog_pagination; $localize['infinite_scroll_event'] = $blog_infinite_scroll_event; $localize['no_more_post_message'] = apply_filters( 'astra_blog_no_more_post_text', __( 'No more posts to show.', 'astra-addon' ) ); $localize['grid_layout'] = $grid_layout; $localize['site_url'] = get_site_url(); $localize['show_comments'] = __( 'Show Comments', 'astra-addon' ); // If woocommerce page template. if ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) { $localize['masonryEnabled'] = false; } else { $localize['masonryEnabled'] = $blog_masonry; $localize['blogMasonryBreakPoint'] = absint( apply_filters( 'astra_blog_masonry_break_point', astra_addon_get_tablet_breakpoint() ) ); } return $localize; } /** * Astra Blog Pagination * * @since 1.0 * @param html $output Pagination markup. * @return html */ public function astra_blog_pagination( $output ) { global $wp_query; $pagination = astra_get_option( 'blog-pagination' ); $infinite_event = astra_get_option( 'blog-infinite-scroll-event' ); $load_more_text = astra_get_option( 'blog-load-more-text' ); if ( '' === $load_more_text ) { $load_more_text = __( 'Load More', 'astra-addon' ); } if ( 'infinite' == $pagination ) { if ( $wp_query->max_num_pages > 1 ) { ob_start(); ?> <nav class="ast-pagination-infinite"> <div class="ast-loader"> <div class="ast-loader-1"></div> <div class="ast-loader-2"></div> <div class="ast-loader-3"></div> </div> <?php if ( 'click' == $infinite_event ) { ?> <span class="ast-load-more active"> <?php $load_more_text = apply_filters( 'astra_load_more_text', $load_more_text ); echo esc_html( $load_more_text ); ?> </span> <?php } ?> </nav> <?php $output .= ob_get_clean(); } } return $output; } /** * Function to get author info for default post only */ public function author_info_markup() { if ( astra_get_option( 'ast-author-info' ) && is_singular( 'post' ) ) { astra_addon_get_template( 'blog-pro/template/author-info.php' ); } } /** * Enable/Disable Single Post Navigation * * Checks the customizer option `Disable Single Post Navigation` and Enable/Disable the single post navigation. * * @since 1.3.3 * * @return void */ public function single_post_navigation_markup() { $enable_post_navigation = astra_get_option( 'ast-single-post-navigation' ); if ( $enable_post_navigation ) { remove_action( 'astra_entry_after', 'astra_single_post_navigation_markup' ); } } /** * Add 'Date Box' in featured section * * @since 1.0 * * @param string $output Post content. * @return string content. */ public function date_box( $output ) { $enable_date_box = astra_get_option( 'blog-date-box' ); $date_box_style = astra_get_option( 'blog-date-box-style' ); if ( 'astra_related_post_featured_image_after' === current_filter() ) { $enable_date_box = apply_filters( 'astra_related_post_enable_date_box', $enable_date_box ); $date_box_style = apply_filters( 'astra_related_post_date_box_style', $date_box_style ); } if ( $enable_date_box ) : $date_type = astra_get_option( 'blog-meta-date-type', 'published' ); $time_string = '<time class="entry-date published" datetime="%1$s"><span class="date-month">%2$s</span> <span class="date-day">%3$s</span> <span class="date-year">%4$s</span></time>'; $time_string = sprintf( $time_string, ( 'updated' === $date_type ) ? esc_attr( get_the_modified_date( 'c' ) ) : esc_attr( get_the_date( 'c' ) ), ( 'updated' === $date_type ) ? esc_attr( get_the_modified_date( 'M' ) ) : esc_html( get_the_date( 'M' ) ), ( 'updated' === $date_type ) ? esc_attr( get_the_modified_date( 'j' ) ) : esc_html( get_the_date( 'j' ) ), ( 'updated' === $date_type ) ? esc_attr( get_the_modified_date( 'Y' ) ) : esc_html( get_the_date( 'Y' ) ) ); /** * Filters the Date Box time format. * * @since 1.5.0 * * @param string posted date format for the posts. */ $posted_on = apply_filters( 'astra_date_box_time_format', sprintf( esc_html( '%s' ), $time_string ) ); ob_start(); ?> <a href="<?php echo esc_url( get_permalink() ); ?>" > <div class="ast-date-meta <?php echo esc_attr( $date_box_style ); ?>"> <span class="posted-on"> <?php echo wp_kses( $posted_on, array( 'time' => array( 'class' => array(), 'datetime' => array(), ), 'span' => array( 'class' => array() ), ) ); ?> </span> </div> </a> <?php $posted_on_data = ob_get_clean(); /** * Filters the Date Box markup. * * @since 1.5.0 * * @param string $posted_on_data the posted date markup for the posts. */ $output .= apply_filters( 'astra_date_box_markup', $posted_on_data ); endif; return $output; } /** * Add Body Classes * * @param array $classes Blog Layout Class Array. * @return array */ public function add_blog_layout_class( $classes ) { $display_date_box = astra_get_option( 'blog-date-box' ); if ( ! $display_date_box ) { $classes[] = 'ast-no-date-box'; } return $classes; } /** * Blog Customization */ public function blog_customization() { $blog_layout = astra_get_option( 'blog-layout' ); if ( 'blog-layout-1' !== $blog_layout ) { remove_action( 'astra_entry_content_blog', 'astra_entry_content_blog_template' ); add_action( 'astra_entry_content_blog', array( $this, 'blog_template' ) ); } } /** * Blog Template Markup */ public function blog_template() { astra_addon_get_template( 'blog-pro/template/' . esc_attr( astra_get_option( 'blog-layout' ) ) . '.php' ); } /** * Add Blog Grid Class * * @param array $classes Body Class Array. * @return array */ public function astra_primary_class_blog_grid( $classes ) { // Apply grid class to archive page. if ( ( is_home() ) || is_archive() || is_search() ) { $blog_grid = astra_get_option( 'blog-grid' ); $blog_grid_layout = astra_get_option( 'blog-grid-layout' ); $blog_layout = astra_get_option( 'blog-layout' ); if ( 'blog-layout-1' == $blog_layout ) { $classes[] = 'ast-grid-' . esc_attr( $blog_grid ); } else { $classes[] = 'ast-grid-' . esc_attr( $blog_grid_layout ); } $classes = apply_filters( 'astra_primary_class_blog_grid', $classes ); } return $classes; } /** * Add Post Class Blog Grid * * @param array $classes Body Class Array. * @return array */ public function astra_post_class_blog_grid( $classes ) { $wp_doing_ajax = wp_doing_ajax(); if ( is_archive() || is_home() || is_search() || $wp_doing_ajax ) { global $wp_query; $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $blog_grid = astra_get_option( 'blog-grid' ); $blog_grid_layout = astra_get_option( 'blog-grid-layout' ); $blog_layout = astra_get_option( 'blog-layout' ); $first_post_full_width = astra_get_option( 'first-post-full-width' ); $blog_masonry = astra_get_option( 'blog-masonry' ); $remove_featured_padding = astra_get_option( 'blog-featured-image-padding' ); $blog_space_bet_posts = astra_get_option( 'blog-space-bet-posts' ); if ( $wp_doing_ajax ) { $classes[] = 'ast-col-sm-12'; $classes[] = 'ast-article-post'; } if ( 'blog-layout-1' == $blog_layout ) { if ( $remove_featured_padding ) { $classes[] = 'remove-featured-img-padding'; } if ( $blog_grid > 1 && $first_post_full_width && ! $blog_masonry && 0 == $wp_query->current_post && 1 == $paged ) { // Feature Post. if ( 3 == $blog_grid ) { $classes[] = Astra_Addon_Builder_Helper::apply_flex_based_css() ? 'ast-width-md-66' : 'ast-col-md-8'; } elseif ( 4 == $blog_grid ) { $classes[] = Astra_Addon_Builder_Helper::apply_flex_based_css() ? 'ast-width-50' : 'ast-col-md-6'; } else { $classes[] = Astra_Addon_Builder_Helper::apply_flex_based_css() ? 'ast-grid-common-col' : 'ast-col-md-12'; } $classes[] = 'ast-featured-post'; } else { $classes[] = Astra_Addon_Builder_Helper::apply_flex_based_css() ? 'ast-width-md-' . ( 12 / $blog_grid ) : 'ast-col-md-' . ( 12 / $blog_grid ); } } else { if ( $blog_grid_layout > 1 && $first_post_full_width && ! $blog_masonry && 0 == $wp_query->current_post && 1 == $paged ) { // Feature Post. $classes[] = 'ast-col-md-12'; $classes[] = 'ast-featured-post'; } else { $classes[] = Astra_Addon_Builder_Helper::apply_flex_based_css() ? 'ast-width-md-' . ( 12 / $blog_grid_layout ) : 'ast-col-md-' . ( 12 / $blog_grid_layout ); } } if ( true === astra_addon_builder_helper()->is_header_footer_builder_active ) { $classes[] = 'ast-archive-post'; } if ( $blog_space_bet_posts ) { $classes[] = 'ast-separate-posts'; } } elseif ( is_singular() ) { $blog_layout = astra_get_option( 'blog-layout' ); $remove_featured_padding = astra_get_option( 'single-featured-image-padding' ); if ( 'blog-layout-1' == $blog_layout && $remove_featured_padding ) { $classes[] = 'remove-featured-img-padding'; } } return $classes; } /** * Add Body Classes * * @param array $classes Body Class Array. * @return array */ public function astra_ext_blog_pro_body_classes( $classes ) { if ( is_archive() || is_home() || is_search() ) { global $wp_query; $blog_layout = astra_get_option( 'blog-layout' ); $blog_masonry = astra_get_option( 'blog-masonry' ); $blog_grid = astra_get_option( 'blog-grid' ); $blog_grid_layout = astra_get_option( 'blog-grid-layout' ); $blog_pagination = astra_get_option( 'blog-pagination' ); // Masonry layout for blog. if ( $blog_masonry && $wp_query->posts ) { $classes[] = 'blog-masonry'; } // Blog layout. if ( 'blog-layout-1' == $blog_layout ) { $classes[] = 'ast-blog-grid-' . esc_attr( $blog_grid ); } else { $classes[] = 'ast-blog-grid-' . esc_attr( $blog_grid_layout ); } // Blog layout. $classes[] = 'ast-' . esc_attr( $blog_layout ); if ( 'infinite' === $blog_pagination ) { // Pagination type. $classes[] = 'ast-blog-pagination-type-infinite'; } if ( 'number' === $blog_pagination ) { $blog_pagination_style = astra_get_option( 'blog-pagination-style' ); $classes[] = 'ast-pagination-' . esc_attr( $blog_pagination_style ); } } return $classes; } /** * Add style. * * @since 1.0 * * @return void. */ public function add_styles() { $author_info = astra_get_option( 'ast-author-info' ); $enable_related_posts = astra_get_option( 'enable-related-posts' ); /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_BLOG_PRO_URI . 'assets/css/'; $path = ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'assets/css/'; $rtl = ''; if ( is_rtl() ) { $rtl = '-rtl'; } /* Directory and Extension */ $file_prefix = $rtl . '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = $rtl; $dir_name = 'unminified'; } $css_uri = $uri . $dir_name . '/'; $css_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $css_uri; } else { $gen_path = $css_dir; } /*** End Path Logic */ /* Add style.css */ Astra_Minify::add_css( $gen_path . 'style' . $file_prefix . '.css' ); if ( $author_info ) { Astra_Minify::add_css( $gen_path . 'post-author' . $file_prefix . '.css' ); } if ( $enable_related_posts ) { Astra_Minify::add_css( $gen_path . 'related-posts' . $file_prefix . '.css' ); } /* Blog Layouts */ $blog_layout = astra_get_option( 'blog-layout' ); if ( true === Astra_Addon_Builder_Helper::apply_flex_based_css() && ( 'blog-layout-2' == $blog_layout || 'blog-layout-3' == $blog_layout ) ) { $blog_layout = $blog_layout . '-flex'; } Astra_Minify::add_css( $gen_path . $blog_layout . $file_prefix . '.css' ); } /** * Add scripts. * * @since 1.0 * * @return void. */ public function add_scripts() { /*** Start Path Logic */ /* Define Variables */ $uri = ASTRA_ADDON_EXT_BLOG_PRO_URI . 'assets/js/'; $path = ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'assets/js/'; /* Directory and Extension */ $file_prefix = '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = ''; $dir_name = 'unminified'; } $js_uri = $uri . $dir_name . '/'; $js_dir = $path . $dir_name . '/'; if ( defined( 'ASTRA_THEME_HTTP2' ) && ASTRA_THEME_HTTP2 ) { $gen_path = $js_uri; } else { $gen_path = $js_dir; } /*** End Path Logic */ $blog_layout = astra_get_option( 'blog-layout' ); $blog_grid = astra_get_option( 'blog-grid' ); $blog_grid_layout = astra_get_option( 'blog-grid-layout' ); $astra_blog_masonry = astra_get_option( 'blog-masonry' ); if ( ( 'blog-layout-1' == $blog_layout && 1 != $blog_grid ) || ( 'blog-layout-1' != $blog_layout && 1 != $blog_grid_layout ) ) { // Enqueue scripts. if ( $astra_blog_masonry ) { Astra_Minify::add_dependent_js( 'jquery' ); Astra_Minify::add_dependent_js( 'jquery-masonry' ); Astra_Minify::add_js( $gen_path . 'ast-ext-blog-pro' . $file_prefix . '.js' ); } } } /** * Frontend scripts. * * @since 1.0 * * @return void. */ public function enqueue_frontend_scripts() { $blog_pagination = astra_get_option( 'blog-pagination' ); /* Directory and Extension */ $file_prefix = '.min'; $dir_name = 'minified'; if ( SCRIPT_DEBUG ) { $file_prefix = ''; $dir_name = 'unminified'; } $js_gen_path = ASTRA_ADDON_EXT_BLOG_PRO_URI . 'assets/js/' . $dir_name . '/'; $css_gen_path = ASTRA_ADDON_EXT_BLOG_PRO_URI . 'assets/css/' . $dir_name . '/'; if ( astra_get_option( 'ast-auto-prev-post' ) && is_singular() ) { if ( SCRIPT_DEBUG ) { wp_enqueue_script( 'astra-scrollspy', $js_gen_path . 'scrollspy' . $file_prefix . '.js', array( 'jquery' ), ASTRA_EXT_VER, true ); wp_enqueue_script( 'astra-history', $js_gen_path . 'jquery-history' . $file_prefix . '.js', array( 'jquery' ), ASTRA_EXT_VER, true ); wp_enqueue_script( 'astra-single-infinite', $js_gen_path . 'single-infinite' . $file_prefix . '.js', array( 'astra-scrollspy' ), ASTRA_EXT_VER, true ); } else { wp_enqueue_script( 'astra-single-infinite', $js_gen_path . 'single-autopost-infinite.min.js', array( 'jquery' ), ASTRA_EXT_VER, true ); } } // Load infinite js only if option is used. if ( ( is_home() || is_archive() || is_search() ) && 'infinite' === $blog_pagination ) { wp_enqueue_script( 'astra-pagination-infinite', $js_gen_path . 'pagination-infinite' . $file_prefix . '.js', array( 'jquery', 'astra-addon-js' ), ASTRA_EXT_VER, true ); } } /** * Calculate reading time. * * @since 1.0 * * @param int $post_id Post content. * @return int read time. */ public function calculate_reading_time( $post_id ) { $post_content = get_post_field( 'post_content', $post_id ); $stripped_content = strip_shortcodes( $post_content ); $strip_tags_content = wp_strip_all_tags( $stripped_content ); $word_count = count( preg_split( '/\s+/', $strip_tags_content ) ); $reading_time = ceil( $word_count / 220 ); return $reading_time; } /** * Reading Time Meta. * * @since 1.3.3 Updated post reading time strings. * @since 1.0 * * @param string $content Post content. * @param string $loop_count Post meta loop count. * @param string $separator Separator text. * @return string content */ public function reading_time_content( $content = '', $loop_count = '', $separator = '' ) { $read_time = (int) $this->calculate_reading_time( get_the_ID() ); $singular_min_reading_text = apply_filters( 'astra_post_minute_of_reading_text', __( 'minute of reading', 'astra-addon' ) ); $plural_mins_reading_text = apply_filters( 'astra_post_minutes_of_reading_text', __( 'minutes of reading', 'astra-addon' ) ); $content .= ( 1 != $loop_count && '' != $content ) ? ' ' . $separator . ' ' : ''; /* translators: %1$s: $read_time the time to read the article, %2%s: $singular_min_reading_text the singular minute reading time text, %3%s: $plural_mins_reading_text the plural minutes reading time text */ $content .= '<span class="ast-reading-time">' . sprintf( _n( '%1$s %2$s', '%1$s %3$s', $read_time, 'astra-addon' ), $read_time, $singular_min_reading_text, $plural_mins_reading_text ) . '</span>'; // phpcs:ignore WordPress.WP.I18n.MismatchedPlaceholders return $content; } /** * Init action. * * @return void */ public function init_action() { $this->single_post_add_endpoint(); if ( 'excerpt' === astra_get_option( 'blog-post-content' ) ) { // Excerpt Filter. add_filter( 'excerpt_length', array( $this, 'custom_excerpt_length' ) ); add_filter( 'astra_post_read_more', array( $this, 'read_more_text' ) ); add_filter( 'astra_post_read_more_class', array( $this, 'read_more_class' ) ); } } /** * Single post rewrite endpoint. * * @return void */ public function single_post_add_endpoint() { if ( astra_get_option( 'ast-auto-prev-post' ) || is_customize_preview() ) { add_rewrite_endpoint( 'partial-prev', EP_PERMALINK ); add_action( 'template_redirect', array( $this, 'single_post_template_redirect' ) ); add_action( 'astra_before_content_partial_loop', array( $this, 'auto_prev_post_wp_bakery_compatibility' ) ); } } /** * Added shortcode rendering compatibility for WP Bakery plugin. * * WP Bakery plugin shortcodes were not rendering when auto prev post option was enable. * * @return void */ public function auto_prev_post_wp_bakery_compatibility() { // Make sure all vc shortcodes are loaded (needed for ajax previous post pagination). if ( is_callable( 'WPBMap::addAllMappedShortcodes' ) ) { WPBMap::addAllMappedShortcodes(); } } /** * Single post template redirect. */ public function single_post_template_redirect() { global $wp_query; // if this is not a request for partial or a singular object then bail. if ( ( isset( $wp_query->query_vars['partial-prev'] ) || isset( $_GET['partial-prev'] ) ) && is_singular() ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended // include custom template. include ASTRA_ADDON_EXT_BLOG_PRO_DIR . '/template/content-partial.php'; exit; } } /** * Excerpt count. * * @param int $length default count of words. * @return int count of words */ public function custom_excerpt_length( $length ) { $excerpt_length = astra_get_option( 'blog-excerpt-count' ); if ( '' != $excerpt_length ) { $length = $excerpt_length; } return $length; } /** * Read more text. * * @param string $text default read more text. * @return string read more text */ public function read_more_text( $text ) { $read_more = astra_get_option( 'blog-read-more-text' ); if ( '' != $read_more ) { $text = $read_more; } return $text; } /** * Read more class. * * @param array $class default classes. * @return array classes */ public function read_more_class( $class ) { $read_more_button = astra_get_option( 'blog-read-more-as-button' ); if ( $read_more_button ) { $class[] = 'ast-button'; } return $class; } /** * Social sharing. * * @since 4.1.0 */ public function astra_social_sharing() { $social_sharing_position = astra_get_option( 'single-post-social-sharing-icon-position' ); $is_social_sharing_enabled = astra_get_option( 'single-post-social-sharing-icon-enable' ); if ( $is_social_sharing_enabled ) { if ( is_single() ) { if ( 'below-post-title' === $social_sharing_position ) { add_action( 'astra_single_post_banner_after', array( $this, 'astra_render_social_sharing' ) ); } else { add_action( 'astra_entry_bottom', array( $this, 'astra_render_social_sharing' ) ); } } } } /** * Enqueue google fonts. * * @return void */ public function add_fonts() { // Single post social sharing - Label font. $label_font_family = astra_get_option( 'single-post-social-sharing-icon-label-font-family' ); $label_font_weight = astra_get_option( 'single-post-social-sharing-icon-label-font-weight' ); Astra_Fonts::add_font( $label_font_family, $label_font_weight ); // Single post social sharing - Label font. $heading_font_family = astra_get_option( 'single-post-social-sharing-heading-font-family' ); $heading_font_weight = astra_get_option( 'single-post-social-sharing-heading-font-weight' ); Astra_Fonts::add_font( $heading_font_family, $heading_font_weight ); } /** * Render social sharing. * * @since 4.1.0 */ public function astra_render_social_sharing() { $items = astra_get_option( 'single-post-social-sharing-icon-list' ); $items = isset( $items['items'] ) ? $items['items'] : array(); $post_categories = wp_strip_all_tags( get_the_category_list( ',' ) ); $post_title = get_the_title(); $post_link = urlencode( get_the_permalink() ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode $email_title = str_replace( '&', '%26', $post_title ); $enable_heading = astra_get_option( 'single-post-social-sharing-heading-enable' ); $heading_text = astra_get_option( 'single-post-social-sharing-heading-text' ); $heading_position = astra_get_option( 'single-post-social-sharing-heading-position' ); $show_label = astra_get_option( 'single-post-social-sharing-icon-label' ); $show_label_class = $show_label ? 'social-show-label-true' : 'social-show-label-false'; $color_type = astra_get_option( 'single-post-social-sharing-icon-color-type' ); $label_position = astra_get_option( 'single-post-social-sharing-icon-label-position' ); $social_icon_condition = array( 'facebook', 'pinterest', 'linkedin', 'reddit', 'whatsapp', 'sms' ); if ( $items ) { ob_start(); ?> <div class="ast-post-social-sharing"> <?php if ( $enable_heading && 'above' === $heading_position ) { ?> <h3 class="ast-social-sharing-heading"> <?php echo esc_html( $heading_text ); ?></h3> <?php } ?> <div class="ast-social-inner-wrap element-social-inner-wrap <?php echo esc_attr( $show_label_class ); ?> ast-social-color-type-<?php echo esc_attr( $color_type ); ?>"> <?php if ( is_array( $items ) && ! empty( $items ) ) { foreach ( $items as $item ) { if ( $item['enabled'] ) { $link = $item['url']; switch ( $item['id'] ) { case 'facebook': $link = add_query_arg( array( 'u' => $post_link, ), 'https://www.facebook.com/sharer.php' ); break; case 'twitter': $link = add_query_arg( array( 'url' => $post_link, 'text' => rawurlencode( html_entity_decode( wp_strip_all_tags( $post_title ), ENT_COMPAT, 'UTF-8' ) ), 'hashtags' => $post_categories, ), 'http://twitter.com/share' ); break; case 'email': $link = add_query_arg( array( 'subject' => wp_strip_all_tags( $email_title ), 'body' => $post_link, ), 'mailto:' ); break; case 'pinterest': $link = 'https://pinterest.com/pin/create/bookmarklet/?media=' . get_the_post_thumbnail_url() . '&url=' . $post_link . '&description=' . $post_title; break; case 'linkedin': $link = 'https://www.linkedin.com/shareArticle?mini=true&url=' . $post_link . '&title=' . urlencode( $post_title ) . '&source=' . urlencode( get_bloginfo( 'name' ) ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode break; case 'tumblr': $link = 'http://www.tumblr.com/share/link?url=' . $post_link . '&title=' . $post_title; break; case 'reddit': $link = 'https://reddit.com/submit?url=' . $post_link . '&title=' . $post_title; break; case 'whatsapp': $link = 'https://wa.me/?text=' . $post_link; break; case 'sms': $link = 'sms://?&body=' . $post_title . ' - ' . $post_link; break; case 'vk': $link = 'http://vk.com/share.php?url=' . urlencode( $post_link ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.urlencode_urlencode break; } $aria_label = $item['label'] ? $item['label'] : $item['id']; $is_phone_or_email = 'phone' === $item['id'] || 'email' === $item['id']; $add_target = $is_phone_or_email ? '' : '_blank'; $add_rel = $is_phone_or_email ? '' : 'noopener noreferrer'; ?> <a href="<?php echo esc_url( $link ); ?>" aria-label="<?php echo esc_attr( $aria_label ); ?>" target="<?php echo esc_attr( $add_target ); ?>" rel="<?php echo esc_attr( $add_rel ); ?>" class="ast-inline-flex ast-social-icon-a"> <?php if ( $show_label && $label_position && 'above' === $label_position ) { ?> <span class="social-item-label"> <?php echo esc_html( $item['label'] ); ?> </span> <?php } ?> <?php $icon_color = ! empty( $item['color'] ) ? $item['color'] : '#3a3a3a'; $icon_background_color = ! empty( $item['background'] ) ? $item['background'] : 'transparent'; ?> <div style="--color: <?php echo esc_attr( $icon_color ); ?>; --background-color:<?php echo esc_attr( $icon_background_color ); ?>;" class="ast-social-element ast-<?php echo esc_attr( $item['id'] ); ?>-social-item"> <?php echo do_shortcode( Astra_Builder_UI_Controller::fetch_svg_icon( in_array( $item['icon'], $social_icon_condition ) ? $item['icon'] . '-fill' : $item['icon'] ) ); ?> </div> <?php if ( $show_label && $label_position && 'below' === $label_position ) { ?> <span class="social-item-label"> <?php echo esc_html( $item['label'] ); ?> </span> <?php } ?> </a> <?php } } } ?> </div> <?php if ( $enable_heading && 'below' === $heading_position ) { ?> <h3 class="ast-social-sharing-heading"> <?php echo esc_html( $heading_text ); ?></h3> <?php } ?> </div> <?php echo do_shortcode( ob_get_clean() ); } } } } /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Blog_Pro_Markup::get_instance(); classes/class-astra-ext-blog-pro-images-resizer.php 0000666 00000013721 15165345270 0016410 0 ustar 00 <?php /** * Blog Pro - Customizer. * * @package Astra Addon * @since 1.5.0 */ if ( ! class_exists( 'Astra_Ext_Blog_Pro_Images_Resizer' ) ) { /** * Customizer Initialization * * @since 1.5.0 */ // @codingStandardsIgnoreStart class Astra_Ext_Blog_Pro_Images_Resizer { // @codingStandardsIgnoreEnd /** * Member Variable * * @var instance */ private static $instance; /** * Initiator */ public static function get_instance() { if ( ! isset( self::$instance ) ) { self::$instance = new self(); } return self::$instance; } /** * Constructor */ public function __construct() { if ( self::is_image_resizer() ) { self::includes(); } add_action( 'customize_register', array( $this, 'customize_register' ), 2 ); add_filter( 'astra_featured_image_markup', array( $this, 'blog_archive_featured_image' ) ); add_filter( 'astra_featured_image_markup', array( $this, 'blog_single_post_featured_image' ) ); } /** * Filter to disable Image Processing Queue by DeliciousBrains. * * @return boolean true if Library is included/loaded. */ public function is_image_resizer() { return apply_filters( 'astra_image_resizer', true ); } /** * Register panel, section and controls * * @param WP_Customize_Manager $wp_customize Theme Customizer object. */ public function customize_register( $wp_customize ) { require_once ASTRA_ADDON_EXT_BLOG_PRO_DIR . 'classes/sections/class-astra-customizer-blog-pro-image-resizer-configs.php'; } /** * Include necessary files. * * @since 1.5.0 */ public static function includes() { require_once ASTRA_EXT_DIR . 'classes/library/image-processing-queue/image-processing-queue.php'; } /** * Filter to add updated featured image markup with updated images sizes on Blog Archive Page. * * @since 1.5.0 * @param string $output the featured image markup for archive post. * @return string $output Updated featured image markup for archive post. */ public function blog_archive_featured_image( $output ) { if ( 'post' === get_post_type() && ( is_archive() || is_search() || is_home() ) ) { $blog_archive_image_width = astra_get_option( 'blog-archive-image-width' ); $blog_archive_image_height = astra_get_option( 'blog-archive-image-height' ); $blog_post_title = astra_get_option( 'blog-post-structure' ); $attributes = array( 'width' => empty( $blog_archive_image_width ) ? false : $blog_archive_image_width, 'height' => empty( $blog_archive_image_height ) ? false : $blog_archive_image_height, 'crop' => ( empty( $blog_archive_image_width ) || empty( $blog_archive_image_height ) ) ? false : true, ); if ( ! $attributes['width'] && ! $attributes['height'] ) { $attributes = array(); } $image_id = get_post_thumbnail_id( get_the_ID(), 'full' ); if ( in_array( 'image', $blog_post_title ) ) { if ( $attributes && function_exists( 'ipq_get_theme_image' ) ) { $output = ipq_get_theme_image( $image_id, array( array( $attributes['width'], $attributes['height'], $attributes['crop'] ), ), sprintf( astra_attr( 'article-image-blog-archive', array( 'class' => '', ) ) ) ); } } } return $output; } /** * Filter to add updated featured image markup with updated images sizes on Blog Post single Page. * * @since 1.5.0 * @param string $output the featured image markup for single post. * @return string $output Updated featured image markup for single post. */ public function blog_single_post_featured_image( $output ) { $post_types = apply_filters( 'astra_single_featured_image_post_types', array( 'post' ) ); $check_is_singular_post = is_singular( $post_types ); if ( $check_is_singular_post ) { $current_post_type = strval( get_post_type() ); $blog_single_image_width = astra_get_option( 'blog-single-post-image-width' ); $blog_single_image_height = astra_get_option( 'blog-single-post-image-height' ); $blog_single_post_structure = is_callable( 'astra_banner_elements_order' ) ? astra_get_option( 'ast-dynamic-single-' . $current_post_type . '-structure', array( 'ast-dynamic-single-' . $current_post_type . '-title', 'ast-dynamic-single-' . $current_post_type . '-breadcrumb' ) ) : astra_get_option( 'blog-single-' . $current_post_type . '-structure' ); $attributes = array( 'width' => empty( $blog_single_image_width ) ? false : $blog_single_image_width, 'height' => empty( $blog_single_image_height ) ? false : $blog_single_image_height, 'crop' => ( empty( $blog_single_image_width ) || empty( $blog_single_image_height ) ) ? false : true, ); if ( ! $attributes['width'] && ! $attributes['height'] ) { $attributes = array(); } $attributes = apply_filters( 'astra_single_featured_image_attributes', $attributes ); $image_id = get_post_thumbnail_id( get_the_ID(), 'full' ); if ( in_array( 'single-image', $blog_single_post_structure ) || in_array( 'ast-dynamic-single-' . $current_post_type . '-image', $blog_single_post_structure ) ) { if ( $attributes && function_exists( 'ipq_get_theme_image' ) ) { $output = ipq_get_theme_image( $image_id, array( array( $attributes['width'], $attributes['height'], $attributes['crop'] ), ), sprintf( str_replace( '"', '', astra_attr( 'article-image-blog-single-post', array( 'class' => '' ) ) ) ) ); } } } return $output; } } } if ( ! defined( 'ASTRA_BLOG_IMG_RESIZER' ) ) { /** * Kicking this off by calling 'get_instance()' method */ Astra_Ext_Blog_Pro_Images_Resizer::get_instance(); } classes/index.php 0000666 00000000170 15165345270 0010033 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-customizer-blog-pro-configs.php 0000666 00000032710 15165345270 0020344 0 ustar 00 <?php /** * Blog Pro General Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Blog_Pro_Configs' ) ) { /** * Register General Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Blog_Pro_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register General Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-divider]', 'section' => 'section-blog', 'title' => __( 'Blog Layout', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 5, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing ast-bottom-spacing' ), ), /** * Option: Blog Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-layout]', 'type' => 'control', 'control' => 'ast-radio-image', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_choices' ), 'section' => 'section-blog', 'default' => astra_get_option( 'blog-layout' ), 'priority' => 5, 'title' => __( 'Layout', 'astra-addon' ), 'choices' => array( 'blog-layout-1' => array( 'label' => __( 'Layout 1', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'blog-layout-1', false ) : '', ), 'blog-layout-2' => array( 'label' => __( 'Layout 2', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'blog-layout-2', false ) : '', ), 'blog-layout-3' => array( 'label' => __( 'Layout 3', 'astra-addon' ), 'path' => ( class_exists( 'Astra_Builder_UI_Controller' ) ) ? Astra_Builder_UI_Controller::fetch_svg_icon( 'blog-layout-3', false ) : '', ), ), ), /** * Option: Grid Layout */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-grid]', 'type' => 'control', 'control' => 'ast-select', 'section' => 'section-blog', 'default' => astra_get_option( 'blog-grid' ), 'priority' => 10, 'title' => __( 'Grid Layout', 'astra-addon' ), 'choices' => array( '1' => __( '1 Column', 'astra-addon' ), '2' => __( '2 Columns', 'astra-addon' ), '3' => __( '3 Columns', 'astra-addon' ), '4' => __( '4 Columns', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-layout]', 'operator' => '===', 'value' => 'blog-layout-1', ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Space Between Post */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-space-bet-posts]', 'default' => astra_get_option( 'blog-space-bet-posts' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog', 'title' => __( 'Add Space Between Posts', 'astra-addon' ), 'transport' => 'postMessage', 'priority' => 15, ), /** * Option: Masonry Effect */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-masonry]', 'default' => astra_get_option( 'blog-masonry' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog', 'title' => __( 'Masonry Layout', 'astra-addon' ), 'priority' => 20, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-layout]', 'operator' => '===', 'value' => 'blog-layout-1', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-grid]', 'operator' => '!=', 'value' => 1, ), ), ), /** * Option: First Post full width */ array( 'name' => ASTRA_THEME_SETTINGS . '[first-post-full-width]', 'default' => astra_get_option( 'first-post-full-width' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog', 'title' => __( 'Highlight First Post', 'astra-addon' ), 'description' => __( 'This will not work if Masonry Layout is enabled.', 'astra-addon' ), 'priority' => 25, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-layout]', 'operator' => '===', 'value' => 'blog-layout-1', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-grid]', 'operator' => '!=', 'value' => 1, ), ), ), /** * Option: Disable Date Box */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-date-box]', 'default' => astra_get_option( 'blog-date-box' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog', 'title' => __( 'Enable Date Box', 'astra-addon' ), 'priority' => 30, ), /** * Option: Date Box Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-date-box-style]', 'default' => astra_get_option( 'blog-date-box-style' ), 'type' => 'control', 'section' => 'section-blog', 'title' => __( 'Date Box Style', 'astra-addon' ), 'control' => Astra_Theme_Extension::$selector_control, 'priority' => 35, 'choices' => array( 'square' => __( 'Square', 'astra-addon' ), 'circle' => __( 'Circle', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-date-box]', 'operator' => '===', 'value' => true, ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Remove feature image padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-featured-image-padding]', 'default' => astra_get_option( 'blog-featured-image-padding' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog', 'title' => __( 'Remove Featured Image Padding', 'astra-addon' ), 'description' => __( 'This option will not work on full width layouts.', 'astra-addon' ), 'priority' => 40, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-layout]', 'operator' => '===', 'value' => 'blog-layout-1', ), ), ), /** * Option: Excerpt Count */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-excerpt-count]', 'default' => astra_get_option( 'blog-excerpt-count' ), 'type' => 'control', 'control' => 'number', 'section' => 'section-blog', 'priority' => 80, 'title' => __( 'Excerpt Count', 'astra-addon' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 3000, ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-content]', 'operator' => '===', 'value' => 'excerpt', ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Read more text */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-read-more-text]', 'default' => astra_get_option( 'blog-read-more-text' ), 'type' => 'control', 'section' => 'section-blog', 'priority' => 85, 'title' => __( 'Read More Text', 'astra-addon' ), 'control' => 'text', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-content]', 'operator' => '===', 'value' => 'excerpt', ), ), ), /** * Option: Display read more as button */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-read-more-as-button]', 'default' => astra_get_option( 'blog-read-more-as-button' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog', 'title' => __( 'Display Read More as Button', 'astra-addon' ), 'priority' => 90, 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Post Pagination */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-pagination]', 'default' => astra_get_option( 'blog-pagination' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$selector_control, 'section' => 'section-blog', 'priority' => 110, 'title' => __( 'Post Pagination', 'astra-addon' ), 'choices' => array( 'number' => __( 'Number', 'astra-addon' ), 'infinite' => __( 'Infinite Scroll', 'astra-addon' ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider ast-top-section-divider' ), ), /** * Option: Event to Trigger Infinite Loading */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-infinite-scroll-event]', 'default' => astra_get_option( 'blog-infinite-scroll-event' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$selector_control, 'section' => 'section-blog', 'description' => __( 'Infinite Scroll cannot be previewed in the Customizer.', 'astra-addon' ), 'priority' => 112, 'title' => __( 'Event to Trigger Infinite Loading', 'astra-addon' ), 'choices' => array( 'scroll' => __( 'Scroll', 'astra-addon' ), 'click' => __( 'Click', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-pagination]', 'operator' => '===', 'value' => 'infinite', ), ), 'responsive' => false, 'renderAs' => 'text', ), /** * Option: Post Pagination Style */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-pagination-style]', 'default' => astra_get_option( 'blog-pagination-style' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$selector_control, 'section' => 'section-blog', 'priority' => 115, 'title' => __( 'Post Pagination Style', 'astra-addon' ), 'choices' => array( 'default' => __( 'Default', 'astra-addon' ), 'square' => __( 'Square', 'astra-addon' ), 'circle' => __( 'Circle', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-pagination]', 'operator' => '===', 'value' => 'number', ), ), 'responsive' => false, 'renderAs' => 'text', ), /** * Option: Read more text */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-load-more-text]', 'default' => astra_get_option( 'blog-load-more-text' ), 'type' => 'control', 'section' => 'section-blog', 'priority' => 113, 'title' => __( 'Load More Text', 'astra-addon' ), 'control' => 'text', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-pagination]', 'operator' => '===', 'value' => 'infinite', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-infinite-scroll-event]', 'operator' => '===', 'value' => 'click', ), ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Blog_Pro_Configs(); classes/sections/class-astra-customizer-blog-pro-single-configs.php 0000666 00000126366 15165345270 0021636 0 ustar 00 <?php /** * Blog Pro Single General Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Blog_Pro_Single_Configs' ) ) { /** * Register General Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Blog_Pro_Single_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register General Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Single Post Meta */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-meta]', 'type' => 'control', 'control' => 'ast-sortable', 'default' => astra_get_option( 'blog-single-meta' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-single-post-structure]', 'operator' => 'contains', 'value' => 'single-title-meta', ), ), 'section' => 'section-blog-single', 'priority' => 5, 'title' => __( 'Meta', 'astra-addon' ), 'choices' => array( 'comments' => __( 'Comments', 'astra-addon' ), 'category' => __( 'Category', 'astra-addon' ), 'author' => __( 'Author', 'astra-addon' ), 'date' => __( 'Publish Date', 'astra-addon' ), 'tag' => __( 'Tag', 'astra-addon' ), 'read-time' => __( 'Read Time', 'astra-addon' ), ), ), /** * Option: Author info */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-author-info]', 'default' => astra_get_option( 'ast-author-info' ), 'type' => 'control', 'section' => 'section-blog-single', 'title' => __( 'Author Info', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'priority' => 9, 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Disable Single Post Navigation */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-single-post-navigation]', 'default' => astra_get_option( 'ast-single-post-navigation' ), 'type' => 'control', 'section' => 'section-blog-single', 'title' => __( 'Disable Single Post Navigation', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'priority' => 9, ), /** * Option: Autoposts */ array( 'name' => ASTRA_THEME_SETTINGS . '[ast-auto-prev-post]', 'default' => astra_get_option( 'ast-auto-prev-post' ), 'type' => 'control', 'section' => 'section-blog-single', 'title' => __( 'Auto Load Previous Posts', 'astra-addon' ), 'control' => Astra_Theme_Extension::$switch_control, 'description' => __( 'Auto load previous posts cannot be previewed in the customizer.', 'astra-addon' ), 'priority' => 9, ), /** * Option: Remove feature image padding */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-featured-image-padding]', 'default' => astra_get_option( 'single-featured-image-padding' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog-single', 'title' => __( 'Remove Featured Image Padding', 'astra-addon' ), 'description' => __( 'This option will not work on full width layouts.', 'astra-addon' ), 'priority' => 9, ), /** * Option: Social Sharing */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading]', 'section' => 'section-blog-single', 'title' => __( 'Social Sharing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 9, 'settings' => array(), 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Enable social sharing. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'default' => astra_get_option( 'single-post-social-sharing-icon-enable' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog-single', 'title' => __( 'Enable Social Sharing', 'astra-addon' ), 'description' => __( 'Enable / Disable social sharing', 'astra-addon' ), 'priority' => 9, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), ), /** * Option: Social sharing label position */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-alignment]', 'default' => astra_get_option( 'single-post-social-sharing-alignment' ), 'type' => 'control', 'priority' => 9, 'control' => 'ast-selector', 'section' => 'section-blog-single', 'title' => __( 'Alignment', 'astra-addon' ), 'choices' => array( 'left' => __( 'Left', 'astra-addon' ), 'center' => __( 'Center', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), ), 'renderAs' => 'text', 'responsive' => false, 'transport' => 'postMessage', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Enable Social Sharing Heading. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-enable]', 'default' => astra_get_option( 'single-post-social-sharing-heading-enable' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog-single', 'title' => __( 'Enable Heading', 'astra-addon' ), 'priority' => 9, 'divider' => array( 'ast_class' => 'ast-section-spacing' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider ast-top-dotted-divider' ), ), /** * Option: Social Sharing Heading text. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-text]', 'default' => astra_get_option( 'single-post-social-sharing-heading-text' ), 'type' => 'control', 'section' => 'section-blog-single', 'priority' => 9, 'title' => __( 'Heading text', 'astra-addon' ), 'control' => 'text', 'transport' => 'postMessage', 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Social sharing label position. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-position]', 'default' => astra_get_option( 'single-post-social-sharing-heading-position' ), 'type' => 'control', 'priority' => 9, 'control' => 'ast-selector', 'section' => 'section-blog-single', 'title' => __( 'Heading Position', 'astra-addon' ), 'choices' => array( 'above' => __( 'Above', 'astra-addon' ), 'below' => __( 'Below', 'astra-addon' ), ), 'renderAs' => 'text', 'responsive' => false, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider ast-bottom-dotted-divider' ), ), /** * Option: Social Icons. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-list]', 'section' => 'section-blog-single', 'type' => 'control', 'control' => 'ast-social-icons', 'title' => __( 'Social Icons', 'astra-addon' ), 'priority' => 9, 'share_mode' => true, 'default' => astra_get_option( 'single-post-social-sharing-icon-list' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), ), /** * Option: Enable / Disable social sharing icon labels */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label]', 'default' => astra_get_option( 'single-post-social-sharing-icon-label' ), 'type' => 'control', 'control' => Astra_Theme_Extension::$switch_control, 'section' => 'section-blog-single', 'title' => __( 'Enable Label', 'astra-addon' ), 'priority' => 9, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Social sharing label position */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-position]', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-position' ), 'type' => 'control', 'priority' => 9, 'control' => 'ast-selector', 'section' => 'section-blog-single', 'title' => __( 'Label Position', 'astra-addon' ), 'choices' => array( 'above' => __( 'Above', 'astra-addon' ), 'below' => __( 'Below', 'astra-addon' ), ), 'renderAs' => 'text', 'responsive' => false, 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Social sharing position */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-position]', 'default' => astra_get_option( 'single-post-social-sharing-icon-position' ), 'type' => 'control', 'section' => 'section-blog-single', 'title' => __( 'Icon Position', 'astra-addon' ), 'control' => 'ast-select', 'priority' => 9, 'choices' => array( 'below-post-title' => __( 'Below Post Title', 'astra-addon' ), 'below-post' => __( 'Below Post', 'astra-addon' ), 'left-content' => __( 'Left Content', 'astra-addon' ), 'right-content' => __( 'Right Content', 'astra-addon' ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Divider */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-divider]', 'section' => 'section-blog-single', 'title' => __( 'Social Sharing', 'astra-addon' ), 'type' => 'control', 'control' => 'ast-heading', 'priority' => 1, 'divider' => array( 'ast_class' => 'ast-bottom-spacing' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Social sharing icon type. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-type]', 'default' => astra_get_option( 'single-post-social-sharing-icon-color-type' ), 'section' => 'section-blog-single', 'type' => 'control', 'control' => 'ast-selector', 'title' => __( 'Color Type', 'astra-addon' ), 'priority' => 1, 'choices' => array( 'custom' => __( 'Custom', 'astra-addon' ), 'official' => __( 'Official', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'responsive' => false, 'renderAs' => 'text', 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), ), /** * Group: Primary Social Colors Group */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-group]', 'default' => astra_get_option( 'single-post-social-sharing-icon-color-group' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Icon Color', 'astra-addon' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-type]', 'operator' => '==', 'value' => 'custom', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'responsive' => true, ), array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-background-color-group]', 'default' => astra_get_option( 'single-post-social-sharing-icon-background-color-group' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Icon Background Color', 'astra-addon' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-type]', 'operator' => '==', 'value' => 'custom', ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'responsive' => true, ), /** * Option: Social Text Color */ array( 'name' => 'single-post-social-sharing-icon-color', 'transport' => 'postMessage', 'default' => astra_get_option( 'single-post-social-sharing-icon-color' ), 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Normal', 'astra-addon' ), ), /** * Option: Social Text Hover Color */ array( 'name' => 'single-post-social-sharing-icon-h-color', 'default' => astra_get_option( 'single-post-social-sharing-icon-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Hover', 'astra-addon' ), ), /** * Option: Social Background Color */ array( 'name' => 'single-post-social-sharing-icon-background-color', 'default' => astra_get_option( 'single-post-social-sharing-icon-background-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-background-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Normal', 'astra-addon' ), ), /** * Option: Social Background Hover Color */ array( 'name' => 'single-post-social-sharing-icon-background-h-color', 'default' => astra_get_option( 'single-post-social-sharing-icon-background-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-background-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Hover', 'astra-addon' ), ), /** * Option: Social Label Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-color-group]', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-color-group' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Label Color', 'astra-addon' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label]', 'operator' => '==', 'value' => true, ), ), 'responsive' => true, ), /** * Option: Social Label Normal Color */ array( 'name' => 'single-post-social-sharing-icon-label-color', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Normal', 'astra-addon' ), ), /** * Option: Social Label Hover Color */ array( 'name' => 'single-post-social-sharing-icon-label-h-color', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Hover', 'astra-addon' ), ), /** * Option: Social Heading Color */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-color-group]', 'default' => astra_get_option( 'single-post-social-sharing-heading-color-group' ), 'type' => 'control', 'control' => 'ast-color-group', 'title' => __( 'Heading Color', 'astra-addon' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-enable]', 'operator' => '==', 'value' => true, ), ), 'responsive' => true, ), /** * Option: Social Heading Normal Color */ array( 'name' => 'single-post-social-sharing-heading-color', 'default' => astra_get_option( 'single-post-social-sharing-heading-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Normal', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Normal', 'astra-addon' ), ), /** * Option: Social Heading Hover Color */ array( 'name' => 'single-post-social-sharing-heading-h-color', 'default' => astra_get_option( 'single-post-social-sharing-heading-h-color' ), 'transport' => 'postMessage', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-color-group]', 'section' => 'section-blog-single', 'tab' => __( 'Hover', 'astra-addon' ), 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'title' => __( 'Hover', 'astra-addon' ), ), /** * Background color. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-background-color]', 'default' => astra_get_option( 'single-post-social-sharing-background-color' ), 'transport' => 'postMessage', 'type' => 'control', 'section' => 'section-blog-single', 'control' => 'ast-responsive-color', 'responsive' => true, 'rgba' => true, 'priority' => 1, 'title' => __( 'Background color', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-bottom-section-divider' ), ), /** * Option: Social Icon Size */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-size]', 'section' => 'section-blog-single', 'priority' => 1, 'transport' => 'postMessage', 'default' => astra_get_option( 'single-post-social-sharing-icon-size' ), 'title' => __( 'Icon Size', 'astra-addon' ), 'suffix' => 'px', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 50, ), 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Social Icon Spacing */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-spacing]', 'section' => 'section-blog-single', 'priority' => 2, 'transport' => 'postMessage', 'default' => astra_get_option( 'single-post-social-sharing-icon-spacing' ), 'title' => __( 'Icon Spacing', 'astra-addon' ), 'suffix' => 'px', 'type' => 'control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 50, ), 'divider' => array( 'ast_class' => 'ast-bottom-dotted-divider' ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Social Icon Background Spacing. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-background-spacing]', 'section' => 'section-blog-single', 'priority' => 2, 'transport' => 'postMessage', 'default' => astra_get_option( 'single-post-social-sharing-icon-background-spacing' ), 'title' => __( 'Icon Background Space', 'astra-addon' ), 'suffix' => 'px', 'type' => 'control', 'control' => 'ast-responsive-slider', 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 50, ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), ), /** * Option: Social Icon Radius */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-radius]', 'section' => 'section-blog-single', 'priority' => 4, 'transport' => 'postMessage', 'default' => astra_get_option( 'single-post-social-sharing-icon-radius' ), 'title' => __( 'Icon Radius', 'astra-addon' ), 'suffix' => 'px', 'type' => 'control', 'control' => 'ast-responsive-slider', 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), 'input_attrs' => array( 'min' => 0, 'step' => 1, 'max' => 50, ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-color-type]', 'operator' => '==', 'value' => 'custom', ), ), ), /** * Option: Social Heading typography section. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-typo]', 'default' => astra_get_option( 'single-post-social-sharing-heading-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Heading Font', 'astra-addon' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'priority' => 4, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Social Heading Font Family */ array( 'name' => 'single-post-social-sharing-heading-font-family', 'type' => 'sub-control', 'control' => 'ast-font', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-typo]', 'font_type' => 'ast-font-family', 'title' => __( 'Font Family', 'astra-addon' ), 'default' => astra_get_option( 'single-post-social-sharing-heading-font-family' ), 'section' => 'section-blog-single', 'connect' => 'single-post-social-sharing-heading-font-weight', 'priority' => 4, 'transport' => 'postMessage', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Social Heading font-weight */ array( 'name' => 'single-post-social-sharing-heading-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-typo]', 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'title' => __( 'Font Weight', 'astra-addon' ), 'section' => 'section-blog-single', 'default' => astra_get_option( 'single-post-social-sharing-heading-font-weight' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'priority' => 4, 'connect' => 'single-post-social-sharing-heading-font-family', 'transport' => 'postMessage', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Social Heading font-size */ array( 'name' => 'single-post-social-sharing-heading-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-typo]', 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'section-blog-single', 'default' => astra_get_option( 'single-post-social-sharing-heading-font-size' ), 'transport' => 'postMessage', 'priority' => 4, 'title' => __( 'Font Size', 'astra-addon' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Social Heading font extras. */ array( 'name' => 'single-post-social-sharing-heading-font-extras', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-heading-typo]', 'control' => 'ast-font-extras', 'section' => 'section-blog-single', 'priority' => 4, 'default' => astra_get_option( 'single-post-social-sharing-heading-font-extras' ), ), /** * Option: Social icon label typography section. */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-typo]', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-typo' ), 'type' => 'control', 'control' => 'ast-settings-group', 'title' => __( 'Label Font', 'astra-addon' ), 'section' => 'section-blog-single', 'transport' => 'postMessage', 'priority' => 4, 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-section-divider' ), ), /** * Option: Social icon label font family */ array( 'name' => 'single-post-social-sharing-icon-label-font-family', 'type' => 'sub-control', 'control' => 'ast-font', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-typo]', 'font_type' => 'ast-font-family', 'title' => __( 'Font Family', 'astra-addon' ), 'default' => astra_get_option( 'single-post-social-sharing-icon-label-font-family' ), 'section' => 'section-blog-single', 'priority' => 4, 'connect' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-font-weight]', 'transport' => 'postMessage', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Social icon label font-weight */ array( 'name' => 'single-post-social-sharing-icon-label-font-weight', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-typo]', 'type' => 'sub-control', 'control' => 'ast-font', 'font_type' => 'ast-font-weight', 'title' => __( 'Font Weight', 'astra-addon' ), 'section' => 'section-blog-single', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-font-weight' ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_font_weight' ), 'priority' => 4, 'connect' => 'single-post-social-sharing-icon-label-font-family', 'transport' => 'postMessage', 'divider' => array( 'ast_class' => 'ast-sub-bottom-dotted-divider' ), ), /** * Option: Social icon font size. */ array( 'name' => 'single-post-social-sharing-icon-label-font-size', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-typo]', 'type' => 'sub-control', 'control' => 'ast-responsive-slider', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_slider' ), 'section' => 'section-blog-single', 'default' => astra_get_option( 'single-post-social-sharing-icon-label-font-size' ), 'transport' => 'postMessage', 'priority' => 4, 'title' => __( 'Font Size', 'astra-addon' ), 'suffix' => array( 'px', 'em' ), 'input_attrs' => array( 'px' => array( 'min' => 0, 'step' => 1, 'max' => 200, ), 'em' => array( 'min' => 0, 'step' => 0.01, 'max' => 20, ), ), ), /** * Option: Social icon label label font extras */ array( 'name' => 'single-post-social-sharing-icon-label-font-extras', 'type' => 'sub-control', 'parent' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-label-typo]', 'control' => 'ast-font-extras', 'section' => 'section-blog-single', 'priority' => 4, 'default' => astra_get_option( 'single-post-social-sharing-icon-label-font-extras' ), ), /** * Option: Padding Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-padding]', 'default' => astra_get_option( 'single-post-social-sharing-padding' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-blog-single', 'priority' => 4, 'title' => __( 'Padding', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-section-divider ' ), ), /** * Option: Margin Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-margin]', 'default' => astra_get_option( 'single-post-social-sharing-margin' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-blog-single', 'priority' => 4, 'title' => __( 'Margin', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top' => __( 'Top', 'astra-addon' ), 'right' => __( 'Right', 'astra-addon' ), 'bottom' => __( 'Bottom', 'astra-addon' ), 'left' => __( 'Left', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider' ), ), /** * Option: Padding Space */ array( 'name' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-border-radius]', 'default' => astra_get_option( 'single-post-social-sharing-border-radius' ), 'type' => 'control', 'transport' => 'postMessage', 'control' => 'ast-responsive-spacing', 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_responsive_spacing' ), 'section' => 'section-blog-single', 'priority' => 4, 'title' => __( 'Border Radius', 'astra-addon' ), 'linked_choices' => true, 'unit_choices' => array( 'px', 'em', '%' ), 'choices' => array( 'top_left' => __( 'Top', 'astra-addon' ), 'top_right' => __( 'Right', 'astra-addon' ), 'bottom_right' => __( 'Bottom', 'astra-addon' ), 'bottom_left' => __( 'Left', 'astra-addon' ), ), 'context' => array( astra_addon_builder_helper()->design_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[single-post-social-sharing-icon-enable]', 'operator' => '==', 'value' => true, ), ), 'divider' => array( 'ast_class' => 'ast-top-dotted-divider ast-bottom-spacing' ), ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by creating new instance. */ new Astra_Customizer_Blog_Pro_Single_Configs(); classes/sections/index.php 0000666 00000000170 15165345270 0011662 0 ustar 00 <?php /** * Index file * * @package Astra * @since Astra 1.0.0 */ /* Silence is golden, and we agree. */ classes/sections/class-astra-customizer-blog-pro-image-resizer-configs.php 0000666 00000016704 15165345270 0023112 0 ustar 00 <?php /** * Blog Pro Image Resizer Options for our theme. * * @package Astra Addon * @link https://www.brainstormforce.com * @since 1.4.3 */ // Block direct access to the file. if ( ! defined( 'ABSPATH' ) ) { exit; } // Bail if Customizer config base class does not exist. if ( ! class_exists( 'Astra_Customizer_Config_Base' ) ) { return; } /** * Customizer Sanitizes * * @since 1.4.3 */ if ( ! class_exists( 'Astra_Customizer_Blog_Pro_Image_Resizer_Configs' ) ) { /** * Register General Customizer Configurations. */ // @codingStandardsIgnoreStart class Astra_Customizer_Blog_Pro_Image_Resizer_Configs extends Astra_Customizer_Config_Base { // @codingStandardsIgnoreEnd /** * Register General Customizer Configurations. * * @param Array $configurations Astra Customizer Configurations. * @param WP_Customize_Manager $wp_customize instance of WP_Customize_Manager. * @since 1.4.3 * @return Array Astra Customizer Configurations with updated configurations. */ public function register_configuration( $configurations, $wp_customize ) { $_configs = array( /** * Option: Blog Archive */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-size-heading]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog', 'title' => __( 'Featured Images Size', 'astra-addon' ), 'suffix' => 'px', 'priority' => 100, 'settings' => array(), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Featured Image width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-width]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-archive-image-width' ), 'section' => 'section-blog', 'priority' => 105, 'title' => __( 'Width', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Featured Image height */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-height]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-archive-image-height' ), 'section' => 'section-blog', 'priority' => 107, 'title' => __( 'Height', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Featured Image apply size */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-archive-image-apply-sizes]', 'type' => 'control', 'control' => 'ast-customizer-refresh', 'section' => 'section-blog', 'default' => astra_get_option( 'log-archive-image-apply-sizes' ), 'priority' => 107, 'title' => __( 'Apply Size', 'astra-addon' ), 'context' => array( astra_addon_builder_helper()->general_tab_config, array( 'setting' => ASTRA_THEME_SETTINGS . '[blog-post-structure]', 'operator' => 'contains', 'value' => 'image', ), ), ), /** * Option: Blog Single Post */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-size-heading]', 'type' => 'control', 'control' => 'ast-divider', 'section' => 'section-blog-single', 'title' => __( 'Featured Images Size', 'astra-addon' ), 'divider' => array( 'ast_class' => 'ast-top-spacing ast-top-section-divider' ), 'priority' => 6, 'settings' => array(), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Featured Image width */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-width]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-single-post-image-width' ), 'section' => 'section-blog-single', 'priority' => 6, 'title' => __( 'Width', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Featured Image height */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-height]', 'type' => 'control', 'control' => 'number', 'transport' => 'postMessage', 'default' => astra_get_option( 'blog-single-post-image-height' ), 'section' => 'section-blog-single', 'priority' => 6, 'title' => __( 'Height', 'astra-addon' ), 'input_attrs' => array( 'style' => 'text-align:center;', 'placeholder' => __( 'Auto', 'astra-addon' ), 'min' => 5, 'max' => 1920, ), 'sanitize_callback' => array( 'Astra_Customizer_Sanitizes', 'sanitize_number_n_blank' ), 'context' => astra_addon_builder_helper()->general_tab, ), /** * Option: Featured Image apply size */ array( 'name' => ASTRA_THEME_SETTINGS . '[blog-single-post-image-apply-sizes]', 'type' => 'control', 'control' => 'ast-customizer-refresh', 'section' => 'section-blog-single', 'default' => astra_get_option( 'blog-single-post-image-apply-sizes' ), 'priority' => 6, 'title' => __( 'Apply Size', 'astra-addon' ), 'context' => astra_addon_builder_helper()->general_tab, ), ); return array_merge( $configurations, $_configs ); } } } /** * Kicking this off by calling 'get_instance()' method */ new Astra_Customizer_Blog_Pro_Image_Resizer_Configs(); classes/dynamic.php 0000666 00000072135 15165345270 0010362 0 ustar 00 <?php /** * Blog Pro - Dynamic CSS * * @package Astra Addon */ add_filter( 'astra_addon_dynamic_css', 'astra_ext_blog_pro_dynamic_css' ); /** * Dynamic CSS * * @param string $dynamic_css Astra Dynamic CSS. * @param string $dynamic_css_filtered Astra Dynamic CSS Filters. * @return string */ function astra_ext_blog_pro_dynamic_css( $dynamic_css, $dynamic_css_filtered = '' ) { $parse_css = ''; $css_output_tablet = ''; $css_output_mobile = ''; $is_site_rtl = is_rtl(); $ltr_left = $is_site_rtl ? 'right' : 'left'; $ltr_right = $is_site_rtl ? 'left' : 'right'; $body_font_family = astra_body_font_family(); $link_color = astra_get_option( 'link-color' ); $text_color = astra_get_option( 'text-color' ); $blog_layout = astra_get_option( 'blog-layout' ); $blog_pagination = astra_get_option( 'blog-pagination' ); $blog_pagination_style = astra_get_option( 'blog-pagination-style' ); // Social sharing. $is_social_sharing_enabled = astra_get_option( 'single-post-social-sharing-icon-enable' ); $css_output = array( // Blog Layout 1 Dynamic Style. '.ast-article-post .ast-date-meta .posted-on, .ast-article-post .ast-date-meta .posted-on *' => array( 'background' => esc_attr( $link_color ), 'color' => astra_get_foreground_color( $link_color ), ), '.ast-article-post .ast-date-meta .posted-on .date-month, .ast-article-post .ast-date-meta .posted-on .date-year' => array( 'color' => astra_get_foreground_color( $link_color ), ), '.ast-load-more:hover' => array( 'color' => astra_get_foreground_color( $link_color ), 'border-color' => esc_attr( $link_color ), 'background-color' => esc_attr( $link_color ), ), '.ast-loader > div' => array( 'background-color' => esc_attr( $link_color ), ), ); if ( true === astra_get_option( 'customizer-default-layout-update', true ) ) { $css_output['.ast-page-builder-template .ast-archive-description'] = array( 'margin-bottom' => '2em', ); } if ( 'number' === $blog_pagination ) { if ( 'circle' === $blog_pagination_style || 'square' === $blog_pagination_style ) { $css_output['.ast-pagination .page-numbers'] = array( 'color' => $text_color, 'border-color' => $link_color, ); $css_output['.ast-pagination .page-numbers.current, .ast-pagination .page-numbers:focus, .ast-pagination .page-numbers:hover'] = array( 'color' => astra_get_foreground_color( $link_color ), 'background-color' => $link_color, 'border-color' => $link_color, ); } } if ( $is_social_sharing_enabled ) { $selector = '.ast-post-social-sharing'; $alignment = astra_get_option( 'single-post-social-sharing-alignment' ); $icon_sharing_position = astra_get_option( 'single-post-social-sharing-icon-position' ); $margin = astra_get_option( 'single-post-social-sharing-margin' ); $padding = astra_get_option( 'single-post-social-sharing-padding' ); $border_radius = astra_get_option( 'single-post-social-sharing-border-radius' ); $icon_spacing = astra_get_option( 'single-post-social-sharing-icon-spacing' ); $icon_size = astra_get_option( 'single-post-social-sharing-icon-size' ); $icon_bg_spacing = astra_get_option( 'single-post-social-sharing-icon-background-spacing' ); $icon_radius = astra_get_option( 'single-post-social-sharing-icon-radius' ); $icon_spacing_desktop = ( isset( $icon_spacing['desktop'] ) && '' !== $icon_spacing['desktop'] ) ? (int) $icon_spacing['desktop'] / 2 : ''; $icon_spacing_tablet = ( isset( $icon_spacing['tablet'] ) && '' !== $icon_spacing['tablet'] ) ? (int) $icon_spacing['tablet'] / 2 : ''; $icon_spacing_mobile = ( isset( $icon_spacing['mobile'] ) && '' !== $icon_spacing['mobile'] ) ? (int) $icon_spacing['mobile'] / 2 : ''; $icon_size_desktop = ( isset( $icon_size['desktop'] ) && '' !== $icon_size['desktop'] ) ? (int) $icon_size['desktop'] : ''; $icon_size_tablet = ( isset( $icon_size['tablet'] ) && '' !== $icon_size['tablet'] ) ? (int) $icon_size['tablet'] : ''; $icon_size_mobile = ( isset( $icon_size['mobile'] ) && '' !== $icon_size['mobile'] ) ? (int) $icon_size['mobile'] : ''; $icon_bg_spacing_desktop = ( isset( $icon_bg_spacing['desktop'] ) && '' !== $icon_bg_spacing['desktop'] ) ? (int) $icon_bg_spacing['desktop'] : ''; $icon_bg_spacing_tablet = ( isset( $icon_bg_spacing['tablet'] ) && '' !== $icon_bg_spacing['tablet'] ) ? (int) $icon_bg_spacing['tablet'] : ''; $icon_bg_spacing_mobile = ( isset( $icon_bg_spacing['mobile'] ) && '' !== $icon_bg_spacing['mobile'] ) ? (int) $icon_bg_spacing['mobile'] : ''; $icon_radius_desktop = ( isset( $icon_radius['desktop'] ) && '' !== $icon_radius['desktop'] ) ? (int) $icon_radius['desktop'] : ''; $icon_radius_tablet = ( isset( $icon_radius['tablet'] ) && '' !== $icon_radius['tablet'] ) ? (int) $icon_radius['tablet'] : ''; $icon_radius_mobile = ( isset( $icon_radius['mobile'] ) && '' !== $icon_radius['mobile'] ) ? (int) $icon_radius['mobile'] : ''; // Normal Responsive Colors. $color_type = astra_get_option( 'single-post-social-sharing-icon-color-type' ); $social_icons_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-color' ), 'desktop' ); $social_icons_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-color' ), 'tablet' ); $social_icons_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-color' ), 'mobile' ); // Hover Responsive Colors. $social_icons_h_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-h-color' ), 'desktop' ); $social_icons_h_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-h-color' ), 'tablet' ); $social_icons_h_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-h-color' ), 'mobile' ); // Normal Responsive Bg Colors. $social_icons_bg_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-background-color' ), 'desktop' ); $social_icons_bg_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-background-color' ), 'tablet' ); $social_icons_bg_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-background-color' ), 'mobile' ); // Hover Responsive Bg Colors. $social_icons_h_bg_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-background-h-color' ), 'desktop' ); $social_icons_h_bg_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-background-h-color' ), 'tablet' ); $social_icons_h_bg_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-background-h-color' ), 'mobile' ); // Normal Responsive Label Colors. $social_icons_label_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-label-color' ), 'desktop' ); $social_icons_label_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-label-color' ), 'tablet' ); $social_icons_label_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-label-color' ), 'mobile' ); // Hover Responsive Label Colors. $social_icons_label_h_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-label-h-color' ), 'desktop' ); $social_icons_label_h_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-label-h-color' ), 'tablet' ); $social_icons_label_h_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-icon-label-h-color' ), 'mobile' ); // Normal Responsive Header Colors. $social_heading_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-heading-color' ), 'desktop' ); $social_heading_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-heading-color' ), 'tablet' ); $social_heading_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-heading-color' ), 'mobile' ); // Hover Responsive Header Colors. $social_heading_h_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-heading-h-color' ), 'desktop' ); $social_heading_h_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-heading-h-color' ), 'tablet' ); $social_heading_h_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-heading-h-color' ), 'mobile' ); $social_heading_position = astra_get_option( 'single-post-social-sharing-heading-position' ); // Background color. $social_bg_color_desktop = astra_get_prop( astra_get_option( 'single-post-social-sharing-background-color' ), 'desktop' ); $social_bg_color_tablet = astra_get_prop( astra_get_option( 'single-post-social-sharing-background-color' ), 'tablet' ); $social_bg_color_mobile = astra_get_prop( astra_get_option( 'single-post-social-sharing-background-color' ), 'mobile' ); // Label font. $icon_label_font_size = astra_get_option( 'single-post-social-sharing-icon-label-font-size' ); $icon_label_font_family = astra_get_option( 'single-post-social-sharing-icon-label-font-family' ); $icon_label_font_weight = astra_get_option( 'single-post-social-sharing-icon-label-font-weight' ); $icon_label_line_height = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-icon-label-font-extras' ), 'line-height', 'line-height-unit' ); $icon_label_text_transform = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-icon-label-font-extras' ), 'text-transform' ); $icon_label_letter_spacing = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-icon-label-font-extras' ), 'letter-spacing', 'letter-spacing-unit' ); $icon_label_text_decoration = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-icon-label-font-extras' ), 'text-decoration' ); // Heading font. $heading_font_size = astra_get_option( 'single-post-social-sharing-heading-font-size' ); $heading_font_family = astra_get_option( 'single-post-social-sharing-heading-font-family' ); $heading_font_weight = astra_get_option( 'single-post-social-sharing-heading-font-weight' ); $heading_line_height = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-heading-font-extras' ), 'line-height', 'line-height-unit' ); $heading_text_transform = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-heading-font-extras' ), 'text-transform' ); $heading_letter_spacing = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-heading-font-extras' ), 'letter-spacing', 'letter-spacing-unit' ); $heading_text_decoration = astra_addon_get_font_extras( astra_get_option( 'single-post-social-sharing-heading-font-extras' ), 'text-decoration' ); $fixed_social = array(); $fixed_social_single = array(); $is_social_fixed = 'left-content' === $icon_sharing_position || 'right-content' === $icon_sharing_position; $margin_rvs_left = $is_social_fixed ? 'top' : $ltr_left; $margin_rvs_right = $is_social_fixed ? 'bottom' : $ltr_right; if ( $is_social_fixed ) { $fixed_social_sharing_position = 'left-content' === $icon_sharing_position ? $ltr_left : $ltr_right; $fixed_social = array( 'position' => 'fixed', $fixed_social_sharing_position => '0', 'top' => '50%', 'transform' => 'translateY(-50%)', 'z-index' => '99', ); } $fixed_social_single = array( 'display' => $is_social_fixed ? 'block' : 'inline-block', ); $css_output[ $selector . ' .ast-social-inner-wrap .ast-social-icon-a:first-child' ] = array( 'margin-' . $margin_rvs_left => '0', ); $css_output[ $selector . ' .ast-social-inner-wrap .ast-social-icon-a:last-child' ] = array( 'margin-' . $margin_rvs_right => '0', ); $alignment_rtl = $alignment === $ltr_left ? 'flex-start' : 'flex-end'; $css_output[ $selector ] = array_merge( array( 'display' => 'flex', 'flex-wrap' => 'wrap', 'flex-direction' => 'column', 'align-items' => 'center' === $alignment ? 'center' : $alignment_rtl, ), $fixed_social ); $css_output[ $selector . ' .ast-social-inner-wrap' ] = array( 'margin-top' => astra_responsive_spacing( $margin, 'top', 'desktop' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'desktop' ), 'margin-' . $ltr_left => astra_responsive_spacing( $margin, 'left', 'desktop' ), 'margin-' . $ltr_right => astra_responsive_spacing( $margin, 'right', 'desktop' ), 'padding-top' => astra_responsive_spacing( $padding, 'top', 'desktop' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'desktop' ), 'padding-' . $ltr_left => astra_responsive_spacing( $padding, 'left', 'desktop' ), 'padding-' . $ltr_right => astra_responsive_spacing( $padding, 'right', 'desktop' ), 'border-top-' . $ltr_left . '-radius' => astra_responsive_spacing( $border_radius, 'top_left', 'desktop' ), 'border-top-' . $ltr_right . '-radius' => astra_responsive_spacing( $border_radius, 'top_right', 'desktop' ), 'border-bottom-' . $ltr_left . '-radius' => astra_responsive_spacing( $border_radius, 'bottom_left', 'desktop' ), 'border-bottom-' . $ltr_right . '-radius' => astra_responsive_spacing( $border_radius, 'bottom_right', 'desktop' ), 'width' => 'auto', ); $css_output[ $selector . ' a.ast-social-icon-a' ] = array_merge( array( 'justify-content' => 'center', 'line-height' => 'normal', 'display' => $is_social_fixed ? 'flex' : 'inline-flex', 'margin-' . $margin_rvs_left => astra_get_css_value( $icon_spacing_desktop, 'px' ), 'margin-' . $margin_rvs_right => astra_get_css_value( $icon_spacing_desktop, 'px' ), 'text-align' => 'center', 'text-decoration' => 'none', ), $fixed_social_single ); $css_output[ $selector . ' .social-item-label' ] = array( // Margin CSS. 'font-size' => astra_responsive_font( $icon_label_font_size, 'desktop' ), 'font-weight' => astra_get_css_value( $icon_label_font_weight, 'font' ), 'font-family' => astra_get_css_value( $icon_label_font_family, 'font' ), 'line-height' => esc_attr( $icon_label_line_height ), 'text-transform' => esc_attr( $icon_label_text_transform ), 'text-decoration' => esc_attr( $icon_label_text_decoration ), 'letter-spacing' => esc_attr( $icon_label_letter_spacing ), 'width' => '100%', 'text-align' => 'center', ); $css_output[ $selector . ' .ast-social-sharing-heading' ] = array( // Margin CSS. 'font-size' => astra_responsive_font( $heading_font_size, 'desktop' ), 'font-weight' => astra_get_css_value( $heading_font_weight, 'font' ), 'font-family' => astra_get_css_value( $heading_font_family, 'font' ), 'line-height' => esc_attr( $heading_line_height ), 'text-transform' => esc_attr( $heading_text_transform ), 'text-decoration' => esc_attr( $heading_text_decoration ), 'letter-spacing' => esc_attr( $heading_letter_spacing ), ); $css_output[ $selector . ' .ast-social-element' ] = array( // Icon Background Space. 'padding' => astra_get_css_value( $icon_bg_spacing_desktop, 'px' ), // Icon Radius. 'border-radius' => astra_get_css_value( $icon_radius_desktop, 'px' ), ); $css_output[ $selector . ' .ast-social-element svg' ] = array( // Icon Size. 'width' => astra_get_css_value( $icon_size_desktop, 'px' ), 'height' => astra_get_css_value( $icon_size_desktop, 'px' ), ); $css_output[ $selector . ' .ast-social-icon-image-wrap' ] = array( // Icon Background Space. 'margin' => astra_get_css_value( $icon_bg_spacing_desktop, 'px' ), ); if ( 'custom' === $color_type ) { $css_output[ $selector . ' .ast-social-color-type-custom svg' ]['fill'] = $social_icons_color_desktop; $css_output[ $selector . ' .ast-social-color-type-custom .ast-social-element' ]['background'] = $social_icons_bg_color_desktop; $css_output[ $selector . ' .ast-social-color-type-custom .ast-social-icon-a:hover .ast-social-element' ] = array( // Hover. 'color' => $social_icons_h_color_desktop, 'background' => $social_icons_h_bg_color_desktop, ); $css_output[ $selector . ' .ast-social-color-type-custom .ast-social-icon-a:hover svg' ] = array( 'fill' => $social_icons_h_color_desktop, ); } else { $css_output[ $selector . ' .ast-social-element svg' ]['fill'] = 'var(--color)'; } // Label Color. if ( isset( $social_icons_label_color_desktop ) && ! empty( $social_icons_label_color_desktop ) ) { $css_output[ $selector . ' .social-item-label' ]['color'] = $social_icons_label_color_desktop; } // Label Hover Color. if ( isset( $social_icons_label_h_color_desktop ) && ! empty( $social_icons_label_h_color_desktop ) ) { $css_output[ $selector . ' .ast-social-icon-a:hover .social-item-label' ]['color'] = $social_icons_label_h_color_desktop; } // Heading Color. if ( isset( $social_heading_color_desktop ) && ! empty( $social_heading_color_desktop ) ) { $css_output[ $selector . ' .ast-social-sharing-heading' ]['color'] = $social_heading_color_desktop; } // Heading Hover Color. if ( isset( $social_heading_h_color_desktop ) && ! empty( $social_heading_h_color_desktop ) ) { $css_output[ $selector . ' .ast-social-sharing-heading:hover' ]['color'] = $social_heading_h_color_desktop; } if ( isset( $social_bg_color_desktop ) && ! empty( $social_bg_color_desktop ) ) { $css_output[ $selector . ' .ast-social-inner-wrap' ]['background-color'] = $social_bg_color_desktop; } /** * Social_icons CSS tablet. */ $css_output_tablet = array( $selector . ' .ast-social-element svg' => array( // Icon Size. 'width' => astra_get_css_value( $icon_size_tablet, 'px' ), 'height' => astra_get_css_value( $icon_size_tablet, 'px' ), ), $selector . ' .ast-social-inner-wrap .ast-social-icon-a' => array( // Icon Spacing. 'margin-' . $margin_rvs_left => astra_get_css_value( $icon_spacing_tablet, 'px' ), 'margin-' . $margin_rvs_right => astra_get_css_value( $icon_spacing_tablet, 'px' ), ), $selector . ' .ast-social-element' => array( // Icon Background Space. 'padding' => astra_get_css_value( $icon_bg_spacing_tablet, 'px' ), // Icon Radius. 'border-radius' => astra_get_css_value( $icon_radius_tablet, 'px' ), ), $selector . ' .ast-social-icon-image-wrap' => array( // Icon Background Space. 'margin' => astra_get_css_value( $icon_bg_spacing_tablet, 'px' ), ), $selector . ' .ast-social-inner-wrap' => array( // Margin CSS. 'margin-top' => astra_responsive_spacing( $margin, 'top', 'tablet' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'tablet' ), 'margin-' . $ltr_left => astra_responsive_spacing( $margin, 'left', 'tablet' ), 'margin-' . $ltr_right => astra_responsive_spacing( $margin, 'right', 'tablet' ), 'padding-top' => astra_responsive_spacing( $padding, 'top', 'tablet' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'tablet' ), 'padding-' . $ltr_left => astra_responsive_spacing( $padding, 'left', 'tablet' ), 'padding-' . $ltr_right => astra_responsive_spacing( $padding, 'right', 'tablet' ), 'border-top-' . $ltr_left . '-radius' => astra_responsive_spacing( $border_radius, 'top_left', 'tablet' ), 'border-top-' . $ltr_right . '-radius' => astra_responsive_spacing( $border_radius, 'top_right', 'tablet' ), 'border-bottom-' . $ltr_left . '-radius' => astra_responsive_spacing( $border_radius, 'bottom_left', 'tablet' ), 'border-bottom-' . $ltr_right . '-radius' => astra_responsive_spacing( $border_radius, 'bottom_right', 'tablet' ), ), $selector . ' .social-item-label' => array( // Margin CSS. 'font-size' => astra_responsive_font( $icon_label_font_size, 'tablet' ), ), $selector . ' .ast-social-sharing-heading' => array( // Margin CSS. 'font-size' => astra_responsive_font( $heading_font_size, 'tablet' ), ), ); if ( 'custom' === $color_type ) { $css_output_tablet[ $selector . ' .ast-social-color-type-custom svg' ]['fill'] = $social_icons_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-social-element' ]['background'] = $social_icons_bg_color_tablet; $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-social-icon-a:hover .ast-social-element' ] = array( // Hover. 'color' => $social_icons_h_color_tablet, 'background' => $social_icons_h_bg_color_tablet, ); $css_output_tablet[ $selector . ' .ast-social-color-type-custom .ast-social-icon-a:hover svg' ] = array( 'fill' => $social_icons_h_color_tablet, ); } // Label Color. if ( isset( $social_icons_label_color_tablet ) && ! empty( $social_icons_label_color_tablet ) ) { $css_output_tablet[ $selector . ' .social-item-label' ]['color'] = $social_icons_label_color_tablet; } // Label Hover Color. if ( isset( $social_icons_label_h_color_tablet ) && ! empty( $social_icons_label_h_color_tablet ) ) { $css_output_tablet[ $selector . ' .ast-social-icon-a:hover .social-item-label' ]['color'] = $social_icons_label_h_color_tablet; } // Heading Color. if ( isset( $social_heading_color_tablet ) && ! empty( $social_heading_color_tablet ) ) { $css_output_tablet[ $selector . ' .ast-social-sharing-heading' ]['color'] = $social_heading_color_tablet; } // Heading Hover Color. if ( isset( $social_heading_h_color_tablet ) && ! empty( $social_heading_h_color_tablet ) ) { $css_output_tablet[ $selector . ' .ast-social-sharing-heading:hover' ]['color'] = $social_heading_h_color_tablet; } if ( isset( $social_bg_color_tablet ) && ! empty( $social_bg_color_tablet ) ) { $css_output_tablet[ $selector . ' .ast-social-inner-wrap' ]['background-color'] = $social_bg_color_tablet; } /** * Social_icons mobile. */ $css_output_mobile = array( $selector . ' .ast-social-element svg' => array( // Icon Size. 'width' => astra_get_css_value( $icon_size_mobile, 'px' ), 'height' => astra_get_css_value( $icon_size_mobile, 'px' ), ), $selector . ' .ast-social-inner-wrap .ast-social-icon-a' => array( // Icon Spacing. 'margin-' . $margin_rvs_left => astra_get_css_value( $icon_spacing_mobile, 'px' ), 'margin-' . $margin_rvs_right => astra_get_css_value( $icon_spacing_mobile, 'px' ), ), $selector . ' .ast-social-element' => array( // Icon Background Space. 'padding' => astra_get_css_value( $icon_bg_spacing_mobile, 'px' ), // Icon Radius. 'border-radius' => astra_get_css_value( $icon_radius_mobile, 'px' ), ), $selector . ' .ast-social-icon-image-wrap' => array( // Icon Background Space. 'margin' => astra_get_css_value( $icon_bg_spacing_mobile, 'px' ), ), $selector . ' .ast-social-inner-wrap' => array( 'margin-top' => astra_responsive_spacing( $margin, 'top', 'mobile' ), 'margin-bottom' => astra_responsive_spacing( $margin, 'bottom', 'mobile' ), 'margin-' . $ltr_left => astra_responsive_spacing( $margin, 'left', 'mobile' ), 'margin-' . $ltr_right => astra_responsive_spacing( $margin, 'right', 'mobile' ), 'padding-top' => astra_responsive_spacing( $padding, 'top', 'mobile' ), 'padding-bottom' => astra_responsive_spacing( $padding, 'bottom', 'mobile' ), 'padding-' . $ltr_left => astra_responsive_spacing( $padding, 'left', 'mobile' ), 'padding-' . $ltr_right => astra_responsive_spacing( $padding, 'right', 'mobile' ), 'border-top-' . $ltr_left . '-radius' => astra_responsive_spacing( $border_radius, 'top_left', 'mobile' ), 'border-top-' . $ltr_right . '-radius' => astra_responsive_spacing( $border_radius, 'top_right', 'mobile' ), 'border-bottom-' . $ltr_left . '-radius' => astra_responsive_spacing( $border_radius, 'bottom_left', 'mobile' ), 'border-bottom-' . $ltr_right . '-radius' => astra_responsive_spacing( $border_radius, 'bottom_right', 'mobile' ), ), $selector . ' .social-item-label' => array( // Margin CSS. 'font-size' => astra_responsive_font( $icon_label_font_size, 'mobile' ), ), $selector . ' .ast-social-sharing-heading' => array( // Margin CSS. 'font-size' => astra_responsive_font( $heading_font_size, 'mobile' ), ), ); if ( 'custom' === $color_type ) { $css_output_mobile[ $selector . ' .ast-social-color-type-custom svg' ]['fill'] = $social_icons_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-social-element' ]['background'] = $social_icons_bg_color_mobile; $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-social-icon-a:hover .ast-social-element' ] = array( // Hover. 'color' => $social_icons_h_color_mobile, 'background' => $social_icons_h_bg_color_mobile, ); $css_output_mobile[ $selector . ' .ast-social-color-type-custom .ast-social-icon-a:hover svg' ] = array( 'fill' => $social_icons_h_color_mobile, ); } // Label Color. if ( isset( $social_icons_label_color_mobile ) && ! empty( $social_icons_label_color_mobile ) ) { $css_output_mobile[ $selector . ' .social-item-label' ]['color'] = $social_icons_label_color_mobile; } // Label Hover Color. if ( isset( $social_icons_label_h_color_mobile ) && ! empty( $social_icons_label_h_color_mobile ) ) { $css_output_mobile[ $selector . ' .ast-social-icon-a:hover .social-item-label' ]['color'] = $social_icons_label_h_color_mobile; } // Heading Color. if ( isset( $social_heading_color_mobile ) && ! empty( $social_heading_color_mobile ) ) { $css_output_mobile[ $selector . ' .ast-social-sharing-heading' ]['color'] = $social_heading_color_mobile; } // Heading Hover Color. if ( isset( $social_heading_h_color_mobile ) && ! empty( $social_heading_h_color_mobile ) ) { $css_output_mobile[ $selector . ' .ast-social-sharing-heading:hover' ]['color'] = $social_heading_h_color_mobile; } if ( isset( $social_bg_color_mobile ) && ! empty( $social_bg_color_mobile ) ) { $css_output_mobile[ $selector . ' .ast-social-inner-wrap' ]['background-color'] = $social_bg_color_mobile; } $social_sharing_static_css = ''; if ( 'below-post' === $icon_sharing_position ) { $social_sharing_static_css .= ' .ast-post-social-sharing .ast-social-inner-wrap { padding-top: 1em; } '; } if ( 'left-content' === $icon_sharing_position || 'right-content' === $icon_sharing_position ) { $social_sharing_static_css .= ' .ast-post-social-sharing .ast-social-inner-wrap { padding: 1em; } .ast-post-social-sharing .ast-social-sharing-heading { margin-left: .5em; margin-right: .5em; } '; } if ( 'above' === $social_heading_position ) { $social_sharing_static_css .= ' .ast-post-social-sharing .ast-social-sharing-heading { margin-bottom: .5em; } '; } if ( 'below' === $social_heading_position ) { $social_sharing_static_css .= ' .ast-post-social-sharing .ast-social-sharing-heading { margin-top: .5em; } '; } $social_sharing_static_css .= ' .ast-post-social-sharing .ast-social-inner-wrap { width: fit-content; } .ast-post-social-sharing .ast-social-element > .ahfb-svg-iconset { display: flex; } .ast-post-social-sharing .ast-social-element { display: inline-block; } .ast-post-social-sharing .social-item-label { display: block; color: var(--ast-global-color-3); } '; $parse_css .= Astra_Enqueue_Scripts::trim_css( $social_sharing_static_css ); } /* Parse CSS from array() */ $parse_css .= astra_parse_css( $css_output ); if ( $css_output_tablet ) { $parse_css .= astra_parse_css( $css_output_tablet, '', astra_addon_get_tablet_breakpoint() ); } if ( $css_output_mobile ) { $parse_css .= astra_parse_css( $css_output_mobile, '', astra_addon_get_mobile_breakpoint() ); } return $dynamic_css . $parse_css; }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings