' . esc_html__( 'Pages:', 'rara-business' ),
'after' => '
',
) );
}else{
the_excerpt();
}
?>
';
}
}
endif;
add_action( 'rara_business_content', 'rara_business_content_start' );
if( ! function_exists( 'rara_business_breadcrumb' ) ) :
/**
* Breadcrumbs
*/
function rara_business_breadcrumb() {
global $post;
$default_options = rara_business_default_theme_options(); // Get default theme options
$breadcrumb_control = get_theme_mod( 'ed_breadcrumb', $default_options['ed_breadcrumb'] );
$post_page = get_option( 'page_for_posts' ); //The ID of the page that displays posts.
$show_front = get_option( 'show_on_front' ); //What to show on the front page
$delimiter = __( '>', 'rara-business' ); // delimiter between crumbs
$home = get_theme_mod( 'home_text', $default_options['home_text'] ); // text for the 'Home' link
$before = ''; // tag before the current crumb
$after = ''; // tag after the current crumb
$depth = 1;
if( $breadcrumb_control ){
echo '';
}
}
endif;
add_action( 'rara_business_before_posts_content', 'rara_business_breadcrumb', 15 );
if( ! function_exists( 'rara_business_page_header' ) ) :
/**
* Page Header
*/
function rara_business_page_header(){
global $wp_query, $post;
echo '';
if( is_search() ){ ?>
', '' );
echo wpautop( wp_kses_post( $post->post_content ) );
}else{
the_title( '
';
}
endif;
add_action( 'rara_business_before_posts_content', 'rara_business_page_header', 20 );
if( ! function_exists( 'rara_business_entry_header' ) ) :
/**
* Entry Header
*/
function rara_business_entry_header(){
$default_options = rara_business_default_theme_options(); // Get default theme options
$hide_date = get_theme_mod( 'ed_post_date_meta', $default_options['ed_post_date_meta'] );
$hide_author = get_theme_mod( 'ed_post_author_meta', $default_options['ed_post_author_meta'] );
?>
', '' );
}else{
the_title( '
',
esc_html__( 'Prev Post', 'rara-business' ) . '%title',
false,
'',
'category'
);
$next = get_next_post_link(
'',
esc_html__( 'Next Post', 'rara-business' ) . '%title',
false,
'',
'category'
);
if( $previous || $next ){?>
false,
'before_page_number' => '',
) );
}
}
endif;
add_action( 'rara_business_after_post_content', 'rara_business_pagination', 20 );
add_action( 'rara_business_after_posts_content', 'rara_business_pagination' );
add_action( 'rara_business_after_protfolio_post_content', 'rara_business_pagination', 20 );
if( ! function_exists( 'rara_business_related_posts' ) ) :
/**
* Related Posts
*/
function rara_business_related_posts(){
global $post;
$default_options = rara_business_default_theme_options(); // Get default theme options
$ed_related_post = get_theme_mod( 'ed_related', $default_options['ed_related'] );
$related_title = get_theme_mod( 'related_post_title', $default_options['related_post_title'] );
if( $ed_related_post ){
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 4,
'ignore_sticky_posts' => true,
'post__not_in' => array( $post->ID ),
'orderby' => 'rand'
);
$cats = get_the_category( $post->ID );
if( $cats ){
$c = array();
foreach( $cats as $cat ){
$c[] = $cat->term_id;
}
$args['category__in'] = $c;
}
$qry = new WP_Query( $args );
if( $qry->have_posts() ){ ?>
'post',
'post_status' => 'publish',
'posts_per_page' => 4,
'ignore_sticky_posts' => true,
'post__not_in' => array( $post->ID ),
'orderby' => 'comment_count'
);
$qry = new WP_Query( $args );
if( $qry->have_posts() ){ ?>
found_posts ) ); ?> ', '' ); the_archive_description( '
', '
' );
}
if( is_page() ){
if( is_page_template( 'templates/portfolio.php' ) ){
the_title( '', '' );
echo wpautop( wp_kses_post( $post->post_content ) );
}else{
the_title( '', '
' );
}
}
if( is_singular( 'rara-portfolio' ) ) {
the_title( '', '
' );
}
echo '
', '
' ); } if( is_single() ) rara_business_categories(); ?>
'
%link
have_posts() ){
$qry->the_post(); ?>
', '' ); ?>
', '' ); ?>