UPDATE
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
||||
|
||||
$upstudy_post_thumb_src = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'upstudy-post-thumb' );
|
||||
if ( isset( $upstudy_post_thumb_src ) && ! empty( $upstudy_post_thumb_src ) ) :
|
||||
$upstudy_post_thumb_url = $upstudy_post_thumb_src[0];
|
||||
else :
|
||||
$upstudy_post_thumb_url = '';
|
||||
endif;
|
||||
|
||||
$blog_post_desktop_cols = 12/Upstudy::setting( 'blog_post_columns' );
|
||||
|
||||
if ( isset( $_GET['column'] ) && $_GET['column'] == 3 ) :
|
||||
$blog_post_desktop_cols = 4;
|
||||
endif;
|
||||
|
||||
$excerpt_length = Upstudy::setting( 'blog_excerpt_length' );
|
||||
if ( isset( $_GET['excerpt_length'] ) ) :
|
||||
$excerpt_length = (int)$_GET['excerpt_length'] ? $_GET['excerpt_length'] : $excerpt_length;
|
||||
endif;
|
||||
|
||||
$masonry_status = Upstudy::setting( 'blog_masonry_show' );
|
||||
if ( $masonry_status || isset( $_GET['masonry'] ) ) :
|
||||
$blog_post_desktop_cols = $blog_post_desktop_cols . ' ' . 'tpc-masonry-item';
|
||||
endif;
|
||||
|
||||
$blog_comments_text = Upstudy::setting( 'blog_comments_text' ) ?: esc_html__('Comments', 'upstudy');
|
||||
$blog_author_show = Upstudy::setting( 'blog_author_show' ) ?: true;
|
||||
$blog_date_show = Upstudy::setting( 'blog_date_show' ) ?: true;
|
||||
$blog_comment_show = Upstudy::setting( 'blog_comment_show' ) ?: true;
|
||||
$blog_category_show = Upstudy::setting( 'blog_category_show' );
|
||||
$blog_read_more_btn_show = Upstudy::setting( 'blog_read_more_btn_show' );
|
||||
$blog_button_text = Upstudy::setting( 'blog_button_text' ) ?: esc_html__('Read More', 'upstudy');
|
||||
|
||||
?>
|
||||
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-post-one-single-grid upstudy-col-lg-' . esc_attr( $blog_post_desktop_cols ) . ' upstudy-col-md-6 upstudy-col-sm-12' ); ?> data-sal>
|
||||
<?php
|
||||
|
||||
$blog_comment_short_text = Upstudy::setting( 'blog_comment_short_text' );
|
||||
|
||||
echo '<div class="edu-blog blog-style-1">';
|
||||
echo '<div class="inner">';
|
||||
|
||||
if ( $upstudy_post_thumb_url ) :
|
||||
echo '<div class="thumbnail">';
|
||||
echo '<a href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo '<img src="' . esc_url( $upstudy_post_thumb_url ). '" alt="' . esc_attr( upstudy_thumbanil_alt_text( get_post_thumbnail_id( get_the_id() ) ) ). '" >';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
endif;
|
||||
|
||||
echo '<div class="content">';
|
||||
|
||||
echo '<ul class="blog-meta">';
|
||||
|
||||
if ( $blog_category_show && upstudy_category_by_id( get_the_ID() )) {
|
||||
echo '<li class="meta-blog-cat">';
|
||||
echo wp_kses_post( upstudy_category_by_id( get_the_ID(), 'category' ) );
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
if ( $blog_date_show ) {
|
||||
echo '<li>' . esc_html( get_the_date() ) . '</li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
||||
echo upstudy_get_title( 'h4' );
|
||||
|
||||
echo wpautop( wp_trim_words( wp_kses_post( get_the_excerpt() ), esc_html( $excerpt_length ), '...' ) );
|
||||
|
||||
if ( $blog_read_more_btn_show ) {
|
||||
echo '<div class="upstudy-blog-readmore">';
|
||||
echo '<a class="upstudy-blog-btn" href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo esc_html( $blog_button_text );
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,83 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
||||
|
||||
$upstudy_post_thumb_src = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'upstudy-post-thumb' );
|
||||
$content_class = 'content position-top';
|
||||
if ( isset( $upstudy_post_thumb_src ) && ! empty( $upstudy_post_thumb_src ) ) :
|
||||
$upstudy_post_thumb_url = $upstudy_post_thumb_src[0];
|
||||
else :
|
||||
$upstudy_post_thumb_url = '';
|
||||
$content_class = $content_class . ' ' . 'without-thumb';
|
||||
endif;
|
||||
|
||||
$blog_comment_short_text = Upstudy::setting( 'blog_comment_short_text' );
|
||||
|
||||
$blog_post_desktop_cols = 12/Upstudy::setting( 'blog_post_columns' );
|
||||
|
||||
if ( isset( $_GET['column'] ) && $_GET['column'] == 3 ) :
|
||||
$blog_post_desktop_cols = 4;
|
||||
endif;
|
||||
|
||||
$excerpt_length = Upstudy::setting( 'blog_excerpt_length' );
|
||||
if ( isset( $_GET['excerpt_length'] ) ) :
|
||||
$excerpt_length = (int)$_GET['excerpt_length'] ? $_GET['excerpt_length'] : $excerpt_length;
|
||||
endif;
|
||||
|
||||
$masonry_status = Upstudy::setting( 'blog_masonry_show' );
|
||||
if ( $masonry_status || isset( $_GET['masonry'] ) ) :
|
||||
$blog_post_desktop_cols = $blog_post_desktop_cols . ' ' . 'tpc-masonry-item';
|
||||
endif;
|
||||
|
||||
$blog_comments_text = Upstudy::setting( 'blog_comments_text' ) ?: esc_html__('Comments', 'upstudy');
|
||||
$blog_author_show = Upstudy::setting( 'blog_author_show' ) ?: true;
|
||||
$blog_date_show = Upstudy::setting( 'blog_date_show' ) ?: true;
|
||||
$blog_comment_show = Upstudy::setting( 'blog_comment_show' ) ?: true;
|
||||
$blog_category_show = Upstudy::setting( 'blog_category_show' );
|
||||
$blog_read_more_btn_show = Upstudy::setting( 'blog_read_more_btn_show' );
|
||||
$blog_button_text = Upstudy::setting( 'blog_button_text' ) ?: esc_html__('Read More', 'upstudy');
|
||||
|
||||
?>
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-post-one-single-grid upstudy-col-lg-' . esc_attr( $blog_post_desktop_cols ) . ' upstudy-col-md-6 upstudy-col-sm-12' ); ?> data-sal>
|
||||
|
||||
<?php
|
||||
echo '<div class="edu-blog blog-style-2">';
|
||||
echo '<div class="inner">';
|
||||
|
||||
if ( $upstudy_post_thumb_url ) :
|
||||
echo '<div class="thumbnail">';
|
||||
echo '<a href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo '<img src="' . esc_url( $upstudy_post_thumb_url ). '" alt="' . esc_attr( upstudy_thumbanil_alt_text( get_post_thumbnail_id( get_the_id() ) ) ). '" >';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
endif;
|
||||
|
||||
echo '<div class="' . esc_attr( $content_class ) . '">';
|
||||
|
||||
echo '<ul class="blog-meta">';
|
||||
|
||||
if ( $blog_category_show && upstudy_category_by_id( get_the_ID())) {
|
||||
echo '<li class="meta-blog-cat">';
|
||||
echo wp_kses_post( upstudy_category_by_id( get_the_ID(), 'category' ) );
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
if ( $blog_date_show ) {
|
||||
echo '<li>' . esc_html( get_the_date() ) . '</li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
||||
echo upstudy_get_title( 'h4' );
|
||||
|
||||
if ( $blog_read_more_btn_show ) {
|
||||
echo '<div class="upstudy-blog-readmore">';
|
||||
echo '<a class="upstudy-blog-btn" href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo esc_html( $blog_button_text );
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
||||
|
||||
$upstudy_post_thumb_src = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'upstudy-post-thumb' );
|
||||
if ( isset( $upstudy_post_thumb_src ) && ! empty( $upstudy_post_thumb_src ) ) :
|
||||
$upstudy_post_thumb_url = $upstudy_post_thumb_src[0];
|
||||
else :
|
||||
$upstudy_post_thumb_url = '';
|
||||
endif;
|
||||
$blog_post_desktop_cols = 12/Upstudy::setting( 'blog_post_columns' );
|
||||
|
||||
if ( isset( $_GET['column'] ) && $_GET['column'] == 3 ) :
|
||||
$blog_post_desktop_cols = 4;
|
||||
endif;
|
||||
|
||||
$excerpt_length = Upstudy::setting( 'blog_excerpt_length' );
|
||||
if ( isset( $_GET['excerpt_length'] ) ) :
|
||||
$excerpt_length = (int)$_GET['excerpt_length'] ? $_GET['excerpt_length'] : $excerpt_length;
|
||||
endif;
|
||||
|
||||
$masonry_status = Upstudy::setting( 'blog_masonry_show' );
|
||||
if ( $masonry_status || isset( $_GET['masonry'] ) ) :
|
||||
$blog_post_desktop_cols = $blog_post_desktop_cols . ' ' . 'tpc-masonry-item';
|
||||
endif;
|
||||
|
||||
$blog_comments_text = Upstudy::setting( 'blog_comments_text' ) ?: esc_html__('Comments', 'upstudy');
|
||||
$blog_author_show = Upstudy::setting( 'blog_author_show' ) ?: true;
|
||||
$blog_date_show = Upstudy::setting( 'blog_date_show' ) ?: true;
|
||||
$blog_comment_show = Upstudy::setting( 'blog_comment_show' ) ?: true;
|
||||
$blog_category_show = Upstudy::setting( 'blog_category_show' );
|
||||
$blog_read_more_btn_show = Upstudy::setting( 'blog_read_more_btn_show' );
|
||||
$blog_button_text = Upstudy::setting( 'blog_button_text' ) ?: esc_html__('Read More', 'upstudy');
|
||||
?>
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-post-one-single-grid upstudy-col-lg-' . esc_attr( $blog_post_desktop_cols ) . ' upstudy-col-md-6 upstudy-col-sm-12' ); ?> data-sal>
|
||||
<?php
|
||||
echo '<div class="edu-blog blog-style-3">';
|
||||
echo '<div class="inner">';
|
||||
if ( $upstudy_post_thumb_url ) :
|
||||
echo '<div class="thumbnail">';
|
||||
|
||||
echo '<a href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo '<img src="' . esc_url( $upstudy_post_thumb_url ). '" alt="' . esc_attr( upstudy_thumbanil_alt_text( get_post_thumbnail_id( get_the_id() ) ) ). '" >';
|
||||
echo '</a>';
|
||||
|
||||
if ( $blog_date_show ) {
|
||||
echo '<span class="date">';
|
||||
echo '<span class="upstudy_date">' . esc_html( get_the_date( 'd' ) ) . '</span>';
|
||||
echo '<span class="upstudy_months">' . esc_html( get_the_date( 'M' ) ) . '</span>';
|
||||
echo '</span>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
endif;
|
||||
|
||||
echo '<div class="content position-top">';
|
||||
|
||||
echo '<ul class="blog-meta">';
|
||||
|
||||
if ( 'post' === get_post_type() && $blog_author_show ): upstudy_posted_author(); endif;
|
||||
|
||||
if ( $blog_category_show && upstudy_category_by_id( get_the_ID()) ) {
|
||||
echo '<li class="meta-blog-cat">';
|
||||
echo wp_kses_post( upstudy_category_by_id( get_the_ID(), 'category' ) );
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
||||
echo upstudy_get_title( 'h4' );
|
||||
|
||||
echo wpautop( wp_trim_words( wp_kses_post( get_the_excerpt() ), esc_html( $excerpt_length ), '...' ) );
|
||||
|
||||
if ( $blog_read_more_btn_show ) {
|
||||
echo '<div class="upstudy-blog-readmore">';
|
||||
echo '<a class="upstudy-blog-btn" href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo esc_html( $blog_button_text );
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
||||
|
||||
$upstudy_post_thumb_src = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'large' );
|
||||
if ( isset( $upstudy_post_thumb_src ) && ! empty( $upstudy_post_thumb_src ) ) :
|
||||
$upstudy_post_thumb_url = $upstudy_post_thumb_src[0];
|
||||
else :
|
||||
$upstudy_post_thumb_url = '';
|
||||
endif;
|
||||
|
||||
$blog_comments_text = Upstudy::setting( 'blog_comments_text' ) ?: esc_html__('Comments', 'upstudy');
|
||||
$blog_author_show = Upstudy::setting( 'blog_author_show' ) ?: true;
|
||||
$blog_date_show = Upstudy::setting( 'blog_date_show' ) ?: true;
|
||||
$blog_comment_show = Upstudy::setting( 'blog_comment_show' ) ?: true;
|
||||
$blog_category_show = Upstudy::setting( 'blog_category_show' );
|
||||
$blog_read_more_btn_show = Upstudy::setting( 'blog_read_more_btn_show' );
|
||||
$blog_button_text = Upstudy::setting( 'blog_button_text' ) ?: esc_html__('Read More', 'upstudy');
|
||||
|
||||
$excerpt_length = Upstudy::setting( 'blog_excerpt_length' ) ?: 10;
|
||||
if ( isset( $_GET['excerpt_length'] ) ) :
|
||||
$excerpt_length = (int)$_GET['excerpt_length'] ? $_GET['excerpt_length'] : $excerpt_length;
|
||||
endif;
|
||||
|
||||
?>
|
||||
<div id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'upstudy_post_standard_classes', 'upstudy-post-one-single-grid upstudy-col-lg-12 upstudy-blog-post-standard' ) ); ?> data-sal>
|
||||
<?php
|
||||
echo '<div class="edu-blog upstudy-radius-small">';
|
||||
echo '<div class="inner">';
|
||||
if ( has_post_thumbnail() && get_the_post_thumbnail_url() ) :
|
||||
echo '<div class="thumbnail">';
|
||||
echo '<a href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo '<img src="' . esc_url( $upstudy_post_thumb_url ). '" alt="' . esc_attr( upstudy_thumbanil_alt_text( get_post_thumbnail_id( get_the_id() ) ) ). '" >';
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
endif;
|
||||
|
||||
echo '<div class="content">';
|
||||
|
||||
echo '<ul class="blog-meta">';
|
||||
|
||||
if ( 'post' === get_post_type() && $blog_author_show ): upstudy_posted_author(); endif;
|
||||
|
||||
if ( $blog_category_show && upstudy_category_by_id( get_the_ID())) {
|
||||
echo '<li class="meta-blog-cat">';
|
||||
echo wp_kses_post( upstudy_category_by_id( get_the_ID(), 'category' ) );
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
if ( $blog_date_show ) {
|
||||
echo '<li>';
|
||||
echo esc_html( get_the_date() );
|
||||
echo '</li>';
|
||||
}
|
||||
if ( $blog_comment_show ) {
|
||||
echo '<li>';
|
||||
printf( // WPCS: XSS OK.
|
||||
/* translators: 1: comment count number, 2: title. */
|
||||
esc_html( _nx( '%1$s %2$s', '%1$s %2$s', get_comments_number(), 'comments title', 'upstudy' ) ),
|
||||
number_format_i18n( get_comments_number() ),
|
||||
esc_html( $blog_comments_text ),
|
||||
'<span>' . esc_html( get_the_title() ) . '</span>'
|
||||
);
|
||||
echo '</li>';
|
||||
}
|
||||
|
||||
echo '</ul>';
|
||||
|
||||
echo upstudy_get_title( 'h3' );
|
||||
|
||||
echo '<div class="card-bottom">';
|
||||
echo wpautop( wp_trim_words( wp_kses_post( get_the_excerpt() ), esc_html( $excerpt_length ), '...' ) );
|
||||
echo '</div>';
|
||||
|
||||
if ( $blog_read_more_btn_show ) {
|
||||
echo '<div class="upstudy-blog-readmore">';
|
||||
echo '<a class="upstudy-blog-btn" href="' . esc_url( get_the_permalink() ) . '">';
|
||||
echo esc_html( $blog_button_text );
|
||||
echo '</a>';
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
||||
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-single-post edu-blog' ); ?>>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* upstudy_single_post_thumbnail_before hook
|
||||
*
|
||||
* @hooked upstudy_single_post_thumbnail_before_content - 10
|
||||
*/
|
||||
|
||||
upstudy_post_thumbnail();
|
||||
|
||||
do_action( 'upstudy_single_post_thumbnail_before' );
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
if ( is_single() ) :
|
||||
/**
|
||||
* upstudy_single_post_before hook
|
||||
*
|
||||
*/
|
||||
do_action( 'upstudy_single_post_before' );
|
||||
|
||||
the_content( sprintf(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
wp_kses( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'upstudy' ), array( 'span' => array( 'class' => array() ) ) ),
|
||||
get_the_title()
|
||||
) );
|
||||
|
||||
if ( function_exists( 'upstudy_link_pages' ) ) :
|
||||
upstudy_link_pages( array(
|
||||
'before' => '<nav class="upstudy-theme-page-links">' . __( 'Pages:', 'upstudy' ) . '<ul class="pager">',
|
||||
'after' => '</ul></nav>',
|
||||
) );
|
||||
else :
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'upstudy' ),
|
||||
'after' => '</div>',
|
||||
) );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* upstudy_single_post_after hook
|
||||
*
|
||||
* @hooked upstudy_single_post_after_cats_social_share - 10
|
||||
* @hooked upstudy_single_post_after_author_bio - 15
|
||||
* @hooked upstudy_post_nav_prev_next - 20
|
||||
*/
|
||||
do_action( 'upstudy_single_post_after' );
|
||||
else :
|
||||
the_excerpt();
|
||||
endif;
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php upstudy_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
@@ -0,0 +1,61 @@
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-single-post edu-blog' ); ?>>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* upstudy_single_post_thumbnail_before hook
|
||||
*
|
||||
* @hooked upstudy_single_post_thumbnail_before_content - 10
|
||||
*/
|
||||
|
||||
upstudy_post_thumbnail();
|
||||
|
||||
do_action( 'upstudy_single_post_thumbnail_before' );
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
if ( is_single() ) :
|
||||
/**
|
||||
* upstudy_single_post_before hook
|
||||
*
|
||||
*/
|
||||
do_action( 'upstudy_single_post_before' );
|
||||
|
||||
the_content( sprintf(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
wp_kses( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'upstudy' ), array( 'span' => array( 'class' => array() ) ) ),
|
||||
get_the_title()
|
||||
) );
|
||||
|
||||
if ( function_exists( 'upstudy_link_pages' ) ) :
|
||||
upstudy_link_pages( array(
|
||||
'before' => '<nav class="upstudy-theme-page-links">' . __( 'Pages:', 'upstudy' ) . '<ul class="pager">',
|
||||
'after' => '</ul></nav>',
|
||||
) );
|
||||
else :
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'upstudy' ),
|
||||
'after' => '</div>',
|
||||
) );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* upstudy_single_post_after hook
|
||||
*
|
||||
* @hooked upstudy_single_post_after_cats_social_share - 10
|
||||
* @hooked upstudy_single_post_after_author_bio - 15
|
||||
* @hooked upstudy_post_nav_prev_next - 20
|
||||
*/
|
||||
do_action( 'upstudy_single_post_after' );
|
||||
else :
|
||||
the_excerpt();
|
||||
endif;
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php upstudy_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // If this file is called directly, abort.
|
||||
|
||||
?>
|
||||
<article id="post-<?php the_ID(); ?>" <?php post_class( 'upstudy-single-post edu-blog' ); ?>>
|
||||
<?php
|
||||
|
||||
/**
|
||||
* upstudy_single_post_thumbnail_before hook
|
||||
*
|
||||
* @hooked upstudy_single_post_thumbnail_before_content - 10
|
||||
*/
|
||||
|
||||
|
||||
do_action( 'upstudy_single_post_thumbnail_before' );
|
||||
|
||||
upstudy_post_thumbnail();
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="entry-content">
|
||||
<?php
|
||||
if ( is_single() ) :
|
||||
/**
|
||||
* upstudy_single_post_before hook
|
||||
*
|
||||
*/
|
||||
do_action( 'upstudy_single_post_before' );
|
||||
|
||||
the_content( sprintf(
|
||||
/* translators: %s: Name of current post. Only visible to screen readers */
|
||||
wp_kses( __( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'upstudy' ), array( 'span' => array( 'class' => array() ) ) ),
|
||||
get_the_title()
|
||||
) );
|
||||
|
||||
if ( function_exists( 'upstudy_link_pages' ) ) :
|
||||
upstudy_link_pages( array(
|
||||
'before' => '<nav class="upstudy-theme-page-links">' . __( 'Pages:', 'upstudy' ) . '<ul class="pager">',
|
||||
'after' => '</ul></nav>',
|
||||
) );
|
||||
else :
|
||||
wp_link_pages( array(
|
||||
'before' => '<div class="page-links">' . __( 'Pages:', 'upstudy' ),
|
||||
'after' => '</div>',
|
||||
) );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* upstudy_single_post_after hook
|
||||
*
|
||||
* @hooked upstudy_single_post_after_cats_social_share - 10
|
||||
* @hooked upstudy_single_post_after_author_bio - 15
|
||||
* @hooked upstudy_post_nav_prev_next - 20
|
||||
*/
|
||||
do_action( 'upstudy_single_post_after' );
|
||||
else :
|
||||
the_excerpt();
|
||||
endif;
|
||||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<footer class="entry-footer">
|
||||
<?php upstudy_entry_footer(); ?>
|
||||
</footer><!-- .entry-footer -->
|
||||
</article><!-- #post-<?php the_ID(); ?> -->
|
||||
Reference in New Issue
Block a user