i have restored my back up file of custom_functions.php , but now it wont let me put any code in without an error...
I'm a real newb that needs some expert help.. please:mad:
"Parse error: syntax error, unexpected '}' in /home/universa/public_html/wp-content/themes/thesis_18/custom/custom_functions.php on line 32"
<?php
// Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins,
// custom design
elements, and ads. You can add your hook calls below, and they should take the
// following form:
//
add_action('thesis_hook_name', 'function_name');
// The function you name above will run at the location of the specified hook.
The example
// hook below demonstrates how you can insert Thesis' default recent posts widget above
// the content in Sidebar
1:
// add_action('thesis_hook_before_sidebar_1', 'thesis_widget_recent_posts');
// Delete this line, including the dashes to
the left, and add your hooks in its place.
/**
* function custom_bookmark_links() - outputs an HTML list of bookmarking
links
* NOTE: This only works when called from inside the WordPress loop!
* SECOND NOTE: This is really just a sample
function to show you how to use custom functions!
*
* @since 1.0
* @global object $post
*/
function custom_bookmark_links()
{
global $post;
?>
<ul class="bookmark_links">
<li><a rel="nofollow" href="http://delicious.com/save?url=<?php
urlencode(the_permalink()); ?>&title=<?php urlencode(the_title()); ?>"
onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url=<?php urlencode(the_permalink());
?>&title=<?php urlencode(the_title()); ?>', 'delicious', 'toolbar=no,width=550,height=550'); return false;" title="Bookmark
this post on del.icio.us">Bookmark this article on Delicious</a></li>
</ul>
<?php
}
remove_action('thesis_hook_footer', 'thesis_attribution');function post_footer_author() {if (is_single()){ ?><div
class="postauthor"><?php echo get_avatar( get_the_author_id() , 44 ); ?><h4>Article by <a href="<?php bloginfo('url');
?>/author/<?php echo strtolower(get_the_author()); ?>"><?php the_author_firstname(); ?> <?php the_author_lastname() ?></a><font
size=1>← view author's articles</font></h4><hr> <p><?php the_author_description(); ?></p><p><?php
the_author_firstname(); ?> has written <span><font size="6px"><font color="red"><?php the_author_posts();
?></font></font></span> articles.</p><p>Subscribe to our feed via <a
href="http://feeds.feedburner.com/universalgains"><b>RSS</b></a> to receive instant updates.</p></div><?php
}}add_action('thesis_hook_after_post_box', 'post_footer_author');/*This adds the menu links under the teaser posts, play around
with the styling.*//* SAVE THIS IN CUSTOM_FUNCTIONS.PHP FILE */function teaser_box_links() {if (!is_single() && !is_page()){
?><div id="teaserempty"></div><div id="teaserlinkscontainer"><ul id="teasermenu"><li><a href="<?php the_permalink();
?>#comments" title="<?php comments_number(__('0 Comments','thesis'), __('1 Comment','thesis'), __('% Comments','thesis')); ?>
on <?php the_title(); ?>" rel="nofollow"><?php comments_number(__('0 Comments','thesis'), __('1 Comment','thesis'), __('%
Comments','thesis')); ?></a></li><li><a href="<?php the_permalink(); ?>#respond" title="Add your opinion on <?php the_title();
?>" rel="nofollow">Add your Comment</a></li><li><a href="<?php the_permalink(); ?>" title="Continue Reading: <?php the_title();
?>" rel="bookmark">Read More...</a></li><li><p></p></li></ul></div><?php } }//teaser hook
menu-linksadd_action('thesis_hook_after_teaser','teaser_box_links');add_action('thesis_hook_after_footer', 'custom_footer');/*
copyright */function custom_footer() {?><center>Copyright © 2010- <?php echo date("Y"); ?><a href="">. All rights
reserved.</center><?php}/* teaser top line image */function teaser_top() { ?><div id="teaser_top">
</div><?php}add_action('thesis_hook_before_teaser_headline','teaser_top');/** Pagination **/function
numbered_page_nav($prelabel = '', $nxtlabel = '', $pages_to_show = 8, $always_show = false) { global $request,
$posts_per_page, $wpdb, $paged; $custom_range = round($pages_to_show/2); if (!is_single()) {
if(!is_category()) { preg_match('#FROM\s(.*)\sORDER BY#siU', $request, $matches); }
else { preg_match('#FROM\s(.*)\sGROUP BY#siU', $request, $matches); }
$blog_post_count = $matches[1]; $numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $blog_post_count");
$max_page = ceil($numposts /$posts_per_page); if(empty($paged)) { $paged = 1; }
if($max_page > 1 || $always_show) { echo "<div class='page-nav'><div class='page-nav-intro'>Page
$paged of $max_page</div>"; if ($paged >= ($pages_to_show-2)) { echo '<div
class="page-number"><a href="'.get_pagenum_link().'">1</a></div><div class="elipses">...</div>'; }
for($i = $paged - $custom_range; $i <= $paged + $custom_range; $i++) { if ($i >= 1 &&
$i <= $max_page) { if($i == $paged) { echo
"<div class='current-page-number'>$i</div>"; } else {
echo '<div class="page-number"><a href="'.get_pagenum_link($i).'">'.$i.'</a></div>';
} } } if
(($paged+$custom_range) < ($max_page)) { echo '<div class="elipses">...</div><div
class="page-number"><a href="'.get_pagenum_link($max_page).'">'.$max_page.'</a></div>'; }
echo "</div>"; } }}remove_action('thesis_hook_after_content',
'thesis_post_navigation');add_action('thesis_hook_after_content', 'numbered_page_nav');/* Disable the Admin Bar. */add_filter(
'show_admin_bar', '__return_false' );/*-----------------------------------------*//* register sidebars for widgetized footer
*/if (function_exists('register_sidebar')) {$sidebars = array(1, 2, 3, 4);foreach($sidebars as $number)
{register_sidebar(array('name' => 'Footer ' . $number,'id' => 'footer-' . $number,'before_widget' => '','after_widget' =>
'','before_title' => '<h3>','after_title' => '</h3>'));}}/*-----------------------*//* set up footer widgets */function
widgetized_footer1() {?><div id="footer_setup"><div class="footer_items"><?php if ( !function_exists('dynamic_sidebar') ||
!dynamic_sidebar('Footer 1') ) : ?><?php endif; ?></div><div class="footer_items"><?php if (
!function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 2') ) : ?><?php endif; ?></div><div class="footer_items"><?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 3') ) : ?><?php endif; ?></div><div
class="footer_items"><?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer 4') ) : ?><?php endif;
?></div></div><?php}add_action('thesis_hook_footer','widgetized_footer1');/****************************************************
***********//* FLOATING SOCIAL icons ON SIDE OF SITE */function floating_icons() { ?><div id="bookmarks"><a
href="http://twitter.com/universalgains" id="twitter" target="_blank" title="Follow @Universalgains on Twitter">Follow
@Universalgains on Twitter</a><a href="http://feeds2.feedburner.com/universalgains" id="rss" target="_blank" title="Subscribe
to Universalgains via RSS Email">Subscribe to Universalgains via RSS Email</a><a href="http://www.universalgains.com/about"
id="email" title="Contact Us">Contact Us</a><a href="http://www.youtube.com/user/Universalgains"" id="youtube" title="Subscribe
to Universalgains youtube channel" target="_blank">Subscribe to Fourblogger youtube Channel</a><a
href="http://www.facebook.com/pages/Universal-Gains/132775090124562" id="facebook" title="Share on facebook"
target="_blank">Share on facebook</a><br /><br /></div><?php }add_action('thesis_hook_before_header', 'floating_icons');
php?>