Hi after editing my themes function.php file in my wordpress dashboard I received the following error:
Parse error: syntax error, unexpected T_STRING in /clientdata/apache-www/a/u/auspect.com.au/www/wp-content/themes/auspect/functions.php on line 26
In dreamweaver it is showing errors on lines 26, 30, 34, 36 and 37
The code for the functions.php page is:
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );
/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Auspect Theme' );
define( 'CHILD_THEME_URL', 'http://www.positivebusinessonline.com' );
/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );
/** Add new image sizes */
add_image_size( 'home-bottom', 110, 110, TRUE );
add_image_size( 'home-middle-left', 280, 165, TRUE );
add_image_size( 'home-middle-right', 50, 50, TRUE );
add_image_size( 'home-tabs', 150, 220, TRUE );
add_image_size( 'slider', 450, 300, TRUE );
/** auspectize the footer section */
add_filter('genesis_footer_creds_text', 'auspect_footer_creds_text');
function auspect_footer_creds_text($creds) {
$creds = '© Copyright 2012 Auspect · <a href="http://www.seofactory.com.au" target="_blank">Website Design</a> and <a href="http://www.seofactory.com.au/seo-gold-coast/" target="_blank">SEO Gold Coast</a> by The SEO Factory</a> ·
return $creds;
}
/** Google Analytics Script **/
add_action('wp_head' , 'auspect_google_analytics');
function auspect_google_analytics() { ?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-26482473-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php }
/** Bing Verification **/
add_action('wp_head' , 'auspect_bing');
function auspect_bing () {
echo '<meta name="msvalidate.01" content="9FBCE475DC2E64CF5111FB6EBBFFD466" />';
}
/** Modify speak your mind text in comments */
add_filter('genesis_comment_form_args', 'auspect_comment_form_args');
function auspect_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment';
return $args;
}
genesis_register_sidebar( array(
'id' => 'home-middle-left',
'name' => __( 'Home Middle Left', 'auspect' ),
'description' => __( 'This is the home middle left section.', 'auspect' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle-right',
'name' => __( 'Home Middle Right', 'auspect' ),
'description' => __( 'This is the home middle right section.', 'auspect' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom',
'name' => __( 'Home Bottom', 'auspect' ),
'description' => __( 'This is the home bottom section.', 'auspect' ),
) );
If someone could please help me it would be very much appreciated. :)