![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/gg.corals.io/wp-content/themes/bugster/ |
<?php /** * The Sticky template to display the sticky posts * * Used for index/archive * * @package WordPress * @subpackage BUGSTER * @since BUGSTER 1.0 */ $bugster_columns = max( 1, min( 3, count( get_option( 'sticky_posts' ) ) ) ); $bugster_post_format = get_post_format(); $bugster_post_format = empty( $bugster_post_format ) ? 'standard' : str_replace( 'post-format-', '', $bugster_post_format ); $bugster_animation = bugster_get_theme_option( 'blog_animation' ); ?><div class="column-1_<?php echo esc_attr( $bugster_columns ); ?>"><article id="post-<?php the_ID(); ?>" <?php post_class( 'post_item post_layout_sticky post_format_' . esc_attr( $bugster_post_format ) ); ?> <?php echo ( ! bugster_is_off( $bugster_animation ) ? ' data-animation="' . esc_attr( bugster_get_animation_classes( $bugster_animation ) ) . '"' : '' ); ?> > <?php if ( is_sticky() && is_home() && ! is_paged() ) { ?> <span class="post_label label_sticky"></span> <?php } // Featured image bugster_show_post_featured( array( 'thumb_size' => bugster_get_thumb_size( 1 == $bugster_columns ? 'big' : ( 2 == $bugster_columns ? 'med' : 'avatar' ) ), ) ); if ( ! in_array( $bugster_post_format, array( 'link', 'aside', 'status', 'quote' ) ) ) { ?> <div class="post_header entry-header"> <?php // Post title the_title( sprintf( '<h6 class="post_title entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h6>' ); // Post meta bugster_show_post_meta( apply_filters( 'bugster_filter_post_meta_args', array(), 'sticky', $bugster_columns ) ); ?> </div><!-- .entry-header --> <?php } ?> </article></div><?php // div.column-1_X is a inline-block and new lines and spaces after it are forbidden