Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Steven

    (@adamlamas)

    Many thanks for your assistance f1ss1on.

    ??

    Thread Starter Steven

    (@adamlamas)

    Here’s the single.php :

    <?php
    /**
     * Template for displaying single article
     */
    
    get_header();
    
    the_post();
    
    eqfw_update_post_views();
    
    ?>
    
    <section class="main-content is-single <?php echo get_theme_mod( 'post_layout', 'without-sidebar' ); ?>" role="main">
    
    	<article id="post-<?php the_ID(); ?>" <?php post_class( 'article' ); ?>>
    
    		<!-- Title -->
    		<h1 class="article_title is-main">
    			<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
    		</h1>
    
    		<!-- Featured image -->
    		<?php if ( has_post_thumbnail() && get_theme_mod( 'post_layout') != 'without-sidebar' ): ?>
    			<div class="article_featured-image">
    				<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail( 'article-full' ); ?></a>
    			</div>
    		<?php endif; ?>
    
    		<!-- Summary -->
    		<div class="article_summary">
    
    			<!-- Excerpt -->
    			<?php if ( get_the_excerpt() ): ?>
    				<div class="article_excerpt">
    					<?php the_excerpt(); ?>
    				</div>
    			<?php endif; ?>
    
    			<!-- Meta -->
    			<?php get_template_part( 'inc/article-meta' ); ?>
    
    		</div>
    
    		<!-- Content -->
    		<div class="article_content with-sidebar">
    			<?php the_content(); ?>
    
    			<!-- Comments -->
    			<?php if ( get_theme_mod( 'post_layout', 'without-sidebar' ) == 'without-sidebar' ): ?>
    				<?php comments_template(); ?>
    			<?php endif; ?>
    
    		</div>
    
    		<!-- Article sidebar -->
    		<div class="article_sidebar sidebar">
    
    			<!-- Rating -->
    			<?php
    				$ratings = get_post_meta( get_the_ID(), 'report_rating_json', true );
    				$ratings = json_decode( $ratings );
    			?>
    			<?php if ( is_array( $ratings ) ): ?>
    				<div class="article_sidebar_item">
    					<h3 class="article_sidebar_title"><?php _e( 'Rating', 'eqfw' ); ?></h3>
    					<ul class="article_rating">
    						<?php foreach ( $ratings as $rating ): ?>
    							<li>
    								<span class="article_rating_value"><?php echo eqfw_format_rating( $rating->rating ); ?></span>
    								<h3><?php echo $rating->label; ?></h3>
    								<?php if ( $rating->description ): ?><p><?php echo $rating->description; ?></p><?php endif; ?>
    								<div class="article_rating_visualization"><div style="width:<?php echo eqfw_rating_to_percentage( $rating->rating ); ?>%;"></div></div>
    							</li>
    						<?php endforeach; ?>
    					</ul>
    				</div>
    			<?php endif; ?>
    
    			<!-- Author bio -->
    			<?php if ( get_the_author_meta( 'description' ) ): ?>
    				<div class="article_sidebar_item article_sidebar_author">
    
    					<h3 class="article_sidebar_title"><?php _e( 'About author', 'eqfw' ); ?></h3>
    
    					<!-- Description -->
    					<p><?php the_author_meta( 'description' ); ?></p>
    
    				</div>
    			<?php endif; ?>
    
    			<!-- More in the same category -->
    			<?php $categories = get_the_category(); ?>
    			<?php if ( get_theme_mod( 'post_categories' ) && count( $categories ) > 0 ): ?>
    				<div class="article_sidebar_item">
    					<h3 class="article_sidebar_title"><?php echo __( 'In ', 'eqfw') . $categories[0]->name; ?></h3>
    					<?php
    						the_widget( 'Report_Widget_Post_List', array(
    							'style' => 'small',
    							'number' => 2,
    							'category' => false,
    							'category_id' => $categories[0]->term_id,
    							'title' => '',
    							'tag' => false,
    							'additional_parameters' => '',
    							'additional_args' => array( 'post__not_in' => array( get_the_ID() ) )
    						), array(
    							'before_title' => '<div class="hide-title">',
    							'after_title' => '</div>'
    						) );
    					?>
    				</div>
    			<?php endif; ?>
                <img class="size-full wp-image-941" src="https://94.228.215.229/wp-content/uploads/2014/06/private_time-300x196.jpg">
    
    			<!-- Share -->
    			<?php if ( get_theme_mod( 'post_share' ) && get_theme_mod( 'post_share' ) != '[]' ): ?>
    				<div class="article_sidebar_item">
    					<h3 class="article_sidebar_title"><?php _e( 'Share', 'eqfw'); ?></h3>
    					<?php
    
    						$links = array();
    						the_widget( 'Report_Widget_Social_Links', array(
    							'title' => '',
    							'links' => get_theme_mod( 'post_share' )
    						) );
    					?>
    				</div>
    			<?php endif; ?>
    
    		</div>
    
    		<div class="clearfix"></div>
    
    		<!-- Paginated post nav -->
    		<?php
    			wp_link_pages( array(
    				'before' => '<div class="link-pages">',
    				'after' => '</div>'
    			) );
    		?>
    
    		<!-- Comments -->
    		<?php if ( get_theme_mod( 'post_layout', 'without-sidebar' ) == 'with-sidebar' ): ?>
    			<?php comments_template(); ?>
    		<?php endif; ?>
    
    	</article>
    
    </section>
    
    <?php if ( get_theme_mod( 'post_layout', 'without-sidebar' ) == 'with-sidebar' ): ?>
    	<div class="sidebar-wrapper">
    		<ul class="sidebar">
    			<?php dynamic_sidebar( 'sidebar-1' ); ?>
    		</ul>
    	</div>
    <?php endif; ?>
    
    <div class="clearfix"></div>
    
    <!-- More in the same category -->
    <?php if ( get_theme_mod( 'post_after_category' ) ): ?>
    	<?php foreach ( get_the_category() as $category ): ?>
    		<?php
    			$query = new WP_Query( 'cat=' . $category->term_id );
    			if ( $query->found_posts == 1 ) continue;
    		?>
    		<div class="similar-posts">
    			<h3 class="similar-posts_title"><?php echo __( 'More in ', 'eqfw') . $category->name; ?></h3>
    			<?php
    				the_widget( 'Report_Widget_Post_List', array(
    					'style' => 'small',
    					'number' => 5,
    					'category' => false,
    					'category_id' => $category->term_id,
    					'title' => '',
    					'tag' => false,
    					'additional_parameters' => false,
    					'additional_args' => array(
    						'post__not_in' => array( get_the_ID() )
    					)
    				), array(
    					'before_title' => '<div class="hide-title">',
    					'after_title' => '</div>'
    				) );
    			?>
    		</div>
    	<?php endforeach; ?>
    <?php endif; ?>
    
    <!-- Most popular -->
    <?php if ( get_theme_mod( 'post_after_popular' ) ): ?>
    	<?php foreach ( get_the_category() as $category ): ?>
    		<div class="similar-posts">
    			<h3 class="similar-posts_title"><?php _e( 'Most popular', 'eqfw'); ?></h3>
    
    			<?php
    				the_widget( 'Report_Widget_Post_List', array(
    					'style' => 'small',
    					'number' => 5,
    					'category' => false,
    					'title' => '',
    					'tag' => false,
    					'show_categories' => 'on',
    					'additional_parameters' => '',
    					'additional_args' => array(
    						'orderby' => 'meta_value_num',
    						'meta_key' => 'post_views_count',
    						'order' => 'DESC',
    						// 'date_query' => array( array( 'after' => '-30 days' ) ),
    						'post__not_in' => array( get_the_ID() )
    					)
    				), array(
    					'before_title' => '<div class="hide-title">',
    					'after_title' => '</div>'
    				) );
    			?>
    		</div>
           <a href="https://www.sriandkiraradio.com/"><img class="size-full wp-image-941" src="https://94.228.215.229/wp-content/uploads/2014/06/ad1.jpg" alt="The state of integrated successful spiritual living is known simply as: Self-Ascension.” - Archangel Zadkiel" width="1203" height="708"></a>
    	<?php endforeach; ?>
    <?php endif; ?>
    
    <?php get_footer(); ?>
    Thread Starter Steven

    (@adamlamas)

    I think the theme author might have written it in by hand. The theme author will not assist me on any issues. The following are the only plugins I have so far activated on the site. Deactivation of all of them did not affect the problem.

    Akismet
    Select Black Studio TinyMCE Widget
    Contact Form 7
    Meta Slider
    Meta Slider – Pro Addon Pack
    WordPress Importer

    Thread Starter Steven

    (@adamlamas)

    Could you remove this thread for me please?

    Thread Starter Steven

    (@adamlamas)

    I must be going mad. I just looked at the theme demo on themeforest, and it no longer allows for the feature image to be presented in full mode! I swear to god (though I’m truly a soft atheist) It worked yesterday both on the theme demo AND my site. I had the featured image function working in full mode this whole time, and now all of a sudden it isn’t appearing in the theme demo. What is going on? I purchased this theme BECAUSE of the way the theme demo displayed the featured image in a post. It was displayed in a large and exciting way, and now it doesn’t. I smell fish.

    Thread Starter Steven

    (@adamlamas)

    it would seem the <div class=”article_featured-image”> has dissappared from this particular layout. Anybody know how to reinsert it?

    Thread Starter Steven

    (@adamlamas)

Viewing 7 replies - 1 through 7 (of 7 total)