Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] Help with bfa_post_parts.php


 
Prev Previous Post   Next Post Next
  #1  
Old Apr 29, 2011, 08:30 AM
757CoffeeNews
 
5 posts · Apr 2011
Virginia
[SOLVED] Help with bfa_post_parts.php

I have been editing in this php file as I was getting the title of my pages and single posts above my main menu at the top. Now, my website is locked out with a parsing error. It says:

Parse error: syntax error, unexpected '}' in /home/micsei4/757coffeenews.com/wp-content/themes/atahualpa/functions/bfa_post_parts.php on line 40

I am using WP 3.1.2 and Atahulapa 3.6.4. This is a commercial website that I need back up ASAP! I think the offending code is listed here, but I can't find the offending }. Anyone who can help would be a hero!

Thanks!

function bfa_post_headline($before = '<div class="post-headline">', $after = '</div>')
{
global $bfa_ata, $post;

if ( is_single() OR is_page() ) {
$bfa_ata_body_title = get_post_meta($post->ID, 'bfa_ata_body_title', true);
$bfa_ata_display_body_title = get_post_meta($post->ID, 'bfa_ata_display_body_title', true);
$bfa_ata_body_title_multi = get_post_meta($post->ID, 'bfa_ata_body_title_multi', true);
} else {
$bfa_ata_body_title_multi = get_post_meta($post->ID, 'bfa_ata_body_title_multi', true);
}

// Since 3.6.1: Display a link to the full post if there is no post title and the post is too short
// for a read more link.
if ( get_the_title() == '' ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link">Permalink</a><?php

} else if ( (!is_single() AND !is_page()) OR $bfa_ata_display_body_title == '' ) {

echo $before; ?>
<h<?php echo $bfa_ata['h_posttitle']; ?>><?php

if( !is_single() AND !is_page() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php
}

if ( (is_single() OR is_page()) AND $bfa_ata_body_title != "" ) {
echo htmlentities($bfa_ata_body_title,ENT_QUOTES,'UTF-8');
} else {
if ( $bfa_ata_body_title_multi != '' )
echo htmlentities($bfa_ata_body_title_multi,ENT_QUOTES, 'UTF-8');
else
the_title();
}

if ( !is_single() AND !is_page() ) { ?></a><?php } ?></h<?php echo $bfa_ata['h_posttitle']; ?>>
<?php echo $after;
}
}
 

Bookmarks

Tags
bfa_post_parts, parsing error

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pls help me change this code<title><?php bloginfo('name'); ?><?php wp_title(); ?></ti tobywinn Header configuration & styling 1 Nov 18, 2011 11:51 AM
php in footer.php - links to just show up on homepage chris Atahualpa 3 Wordpress theme 6 May 9, 2010 12:50 PM
PHP Catchable fatal error: themes/atahualpa/functions/bfa_meta_tags.php on line 169 Shamisen Plugins & Atahualpa 0 Apr 6, 2010 10:43 PM
[SOLVED] Error in PHP Coding Using PHP Text Widget rnimchuk Sidebars & Widgets 2 Oct 28, 2009 12:26 PM
[SOLVED] messed up header.php and footer.php monochrome Header configuration & styling 0 Jun 20, 2009 02:16 PM


All times are GMT -6. The time now is 11:53 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.