Current File : /home/kelaby89/babyl0n.restaurant/wp-content/themes/restar/templates/content-single.php
<?php
/**
 * @Packge     : Restar
 * @Version    : 1.0
 * @Author     : Themeholy
 * @Author URI : https://themeforest.net/user/themeholy
 *
 */

    // Block direct access
    if( ! defined( 'ABSPATH' ) ){
        exit();
    }

    restar_setPostViews( get_the_ID() );

    ?>
    <div <?php post_class(); ?>>
    <?php
        if( class_exists('ReduxFramework') ) {
            $restar_post_details_title_position = restar_opt('restar_post_details_title_position');
        } else {
            $restar_post_details_title_position = 'header';
        }

        $allowhtml = array(
            'p'         => array(
                'class'     => array()
            ),
            'span'      => array(),
            'a'         => array(
                'href'      => array(),
                'title'     => array()
            ),
            'br'        => array(),
            'em'        => array(),
            'strong'    => array(),
            'b'         => array(),
        );
        // Blog Post Thumbnail
        do_action( 'restar_blog_post_thumb' );
        
        echo '<div class="blog-content">';
            // Blog Post Meta
            do_action( 'restar_blog_post_meta' );

            if( $restar_post_details_title_position != 'header' ) {
                echo '<h2 class="blog-title">'.wp_kses( get_the_title(), $allowhtml ).'</h2>';
            }

            if( get_the_content() ){

                the_content();
                // Link Pages
                restar_link_pages();
            }  

            if( class_exists('ReduxFramework') ) {
                $restar_post_details_share_options = restar_opt('restar_post_details_share_options');
                $restar_display_post_tags = restar_opt('restar_display_post_tags');
                $restar_author_options = restar_opt('restar_post_details_author_desc_trigger');
            } else {
                $restar_post_details_share_options = false;
                $restar_display_post_tags = false;
                $restar_author_options = false;
            }
            
            $restar_post_tag = get_the_tags();
            
            if( ! empty( $restar_display_post_tags ) || ( ! empty($restar_post_details_share_options )) ){
                echo '<div class="share-links clearfix">';
                    echo '<div class="row justify-content-between">';
                        if( is_array( $restar_post_tag ) && ! empty( $restar_post_tag ) ){
                            if( count( $restar_post_tag ) > 1 ){
                                $tag_text = __( 'Tags:', 'restar' );
                            }else{
                                $tag_text = __( 'Tag:', 'restar' );
                            }
                            if($restar_display_post_tags){
                                echo '<div class="col-md-auto">';
                                    echo '<span class="share-links-title">'.esc_html($tag_text).'</span>';
                                    echo '<div class="tagcloud">';
                                        foreach( $restar_post_tag as $tags ){
                                            echo '<a href="'.esc_url( get_tag_link( $tags->term_id ) ).'">'.esc_html( $tags->name ).'</a>';
                                        }
                                    echo '</div>';
                                echo '</div>';
                            }
                        }
    
                        /**
                        *
                        * Hook for Blog Details Share Options
                        *
                        * Hook restar_blog_details_share_options
                        *
                        * @Hooked restar_blog_details_share_options_cb 10
                        *
                        */
                        do_action( 'restar_blog_details_share_options' );
    
                    echo '</div>';
    
                echo '</div>';    
            }  
        
        echo '</div>';

    echo '</div>'; 

        /**
        *
        * Hook for Post Navigation
        *
        * Hook restar_blog_details_post_navigation
        *
        * @Hooked restar_blog_details_post_navigation_cb 10
        *
        */
        do_action( 'restar_blog_details_post_navigation' );

        /**
        *
        * Hook for Blog Authro Bio
        *
        * Hook restar_blog_details_author_bio
        *
        * @Hooked restar_blog_details_author_bio_cb 10
        *
        */
        do_action( 'restar_blog_details_author_bio' );

        /**
        *
        * Hook for Blog Details Comments
        *
        * Hook restar_blog_details_comments
        *
        * @Hooked restar_blog_details_comments_cb 10
        *
        */
        do_action( 'restar_blog_details_comments' );
Page not found – Hello World !