I wanted to upload a logo onto my site and even though it may be the easiest thing to do, i screwed it up. I entered the link to the logo where it said to enter the full url for the logo but when i went to save/update it, i got this:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/freshsoc/public_html/wp-content/themes/GameFusion/lib/default-admin-options.php on line 53
Now I don't know what to do so if anyone can help that would be great!
This is the script i was had:
<?php
/**
* Setting the default admin theme options and menus
*/
/*********************************************
* General Options
*********************************************
*/
// General Settings
$this->admin_option('General',
'Logo Source', 'themater_logo_source',
'callback', 'image',
array('callback' =>'themater_logo_source')
);
$this->admin_option('General',
'Logo Image Wrap', 'themater_logo_iamge_wrap',
'raw', '<div id="themater_logo_image">',
array('display'=>'clean')
);
$this->admin_option('General',
'Logo Image', 'logo',
'imageupload', get_template_directory_uri() . "/images/logo.png",
array('display' => 'minimal', 'help' => "Enter the full url to your logo file. Leave it blank if you don't want to use a logo.")
);
$this->admin_option('General',
'Logo Image Wrap End', 'themater_logo_iamge_wrap_end',
'raw', '</div>',
array('display'=>'clean')
);
$this->admin_option('General',
'Logo Text Wrap', 'themater_logo_text_wrap',
'raw', '<div id="themater_logo_text">',
array('display'=>'clean')
);
$this->admin_option('General',
'Site Title', 'site_title',
'text', get_bloginfo('name'),
array('display'=>'inline')
);
$this->admin_option('General',
'Site Description', 'site_description',
'text', '',
array('display'=>'inline')
);
$this->admin_option('General',
'Logo Text Wrap End', 'themater_logo_text_wrap_end',
'raw', '</div>',
array('display'=>'clean')
);
$this->admin_option('General',
'Favicon', 'favicon',
'imageupload', get_template_directory_uri() . "/images/favicon.png",
array('help' => "Enter the full url to your favicon file. Leave it blank if you don't want to use a favicon.")
);
$this->admin_option('General',
'Contact Form Email', 'contact_form_email',
'text', get_option('admin_email'),
array('display' => 'extended', 'help' => 'The messages submitted from the contact form will be sent to this email address.')
);
/*********************************************
* Layout Options
*********************************************
*/
$this->admin_option('Layout',
'"Read More" Text', 'read_more',
'text', 'Read More'
);
$this->admin_option('Layout',
'Featured Image Options', 'featured_image_settings',
'content', ''
);
$this->admin_option('Layout',
'Featured Image Options Homepage', 'featured_image_settings_homepage',
'raw', '<b>»</b> Options for the featured images in the loop ( homepage, category pages, tag pages, search results and archive pages ).<br /><br />'
);
$this->admin_option('Layout',
'Image Width', 'featured_image_width',
'text', '200',
array('display'=>'inline', 'style'=>'width: 100px;', 'suffix'=>' px.')
);
$this->admin_option('Layout',
'Image Height', 'featured_image_height',
'text', '160',
array('display'=>'inline', 'style'=>'width: 100px;', 'suffix'=>' px.')
);
$this->admin_option('Layout',
'Image Position', 'featured_image_position',
'radio', 'alignleft',
array('options'=>array('alignleft' => 'Left', 'alignright'=> 'Right', 'aligncenter'=>'Center') , 'display'=>'inline')
);
$this->admin_option('Layout',
'Featured Image Options Single', 'featured_image_settings_single',
'raw', '<b>»</b> Options for the featured image in the single post and single page.<br /><br />'
);
$this->admin_option('Layout',
'Image Width', 'featured_image_width_single',
'text', '300',
array('display'=>'inline', 'style'=>'width: 100px;', 'suffix'=>' px.')
);
$this->admin_option('Layout',
'Image Height', 'featured_image_height_single',
'text', '225',
array('display'=>'inline', 'style'=>'width: 100px;', 'suffix'=>' px.')
);
$this->admin_option('Layout',
'Image Position', 'featured_image_position_single',
'radio', 'alignleft',
array('options'=>array('alignleft' => 'Left', 'alignright'=> 'Right', 'aligncenter'=>'Center') , 'display'=>'inline')
);
$this->admin_option('Layout',
'Custom Footer Text', 'footer_custom_text',
'textarea', '',
array('help' => 'Add your custom footer text. Will override the default theme generated text.', 'display'=>'extended-top', 'style'=>'height: 140px;')
);