Parsing PHP文件中的解析/语法错误导致我的网站关闭

Parsing PHP文件中的解析/语法错误导致我的网站关闭,parsing,syntax,Parsing,Syntax,我正在处理我的PHP文件,现在我收到了这个消息 解析错误:语法错误,意外“这是完整文件吗?是否有一个是的,一开始就有。我不确定如何发布完整的代码,所以只发布了一半,因为上面写着第8行。我应该发布完整的代码吗?如果有完整的代码会很有帮助,是的。还有,什么版本的PHP?@Alex:可能吧。此处的内容不完整,似乎没有导致您看到的错误的问题。我将发布一个新问题,因为它不允许我在此处发布完整代码。谢谢保持警惕。@Alex:不要在评论中发布代码或发布新问题。编辑此问题以添加它。(您应该在问题下方看到“编辑”

我正在处理我的PHP文件,现在我收到了这个消息


解析错误:语法错误,意外“这是完整文件吗?是否有一个
是的,一开始就有。我不确定如何发布完整的代码,所以只发布了一半,因为上面写着第8行。我应该发布完整的代码吗?如果有完整的代码会很有帮助,是的。还有,什么版本的PHP?@Alex:可能吧。此处的内容不完整,似乎没有导致您看到的错误的问题。我将发布一个新问题,因为它不允许我在此处发布完整代码。谢谢保持警惕。@Alex:不要在评论中发布代码或发布新问题。编辑此问题以添加它。(您应该在问题下方看到“编辑”链接。)
<?php

new Themater_AboutUs();

class Themater_AboutUs
{
    var $theme;

    var $defaults = array(
        'enabled' => 'true',
        'hook' => 'main_before',
        'title' => 'Welcome to our website. Neque porro quisquam est qui dolorem ipsum dolor.',
        'image' => 'about-image.jpg',
        'content' => 'Lorem ipsum eu usu assum liberavisse, ut munere praesent complectitur mea. Sit an option maiorum principes. Ne per probo magna idque, est veniam exerci appareat no. Sit at amet propriae intellegebat, natum iusto forensibus duo ut. Pro hinc aperiri fabulas ut, probo tractatos euripidis an vis, ignota oblique. <br /> <br />Ad ius munere soluta deterruisset, quot veri id vim, te vel bonorum ornatus persequeris. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.'
    );

    function Themater_AboutUs()
    {
        global $theme;
        $this->theme = $theme;

        if(is_array($this->theme->options['plugins_options']['aboutus']) ) {
            $this->defaults = array_merge($this->defaults, $this->theme->options['plugins_options']['aboutus']);
        }

        if($this->theme->display('aboutus_enabled') ) { 
            $this->theme->add_hook($this->defaults['hook'], array(&$this, 'display_aboutus'));
        }


        if($this->theme->is_admin_user()) {
            $this->aboutus_options();
        }
    }


    function display_aboutus()
    {
        if(is_home()) {
            ?><div class="span-24 aboutusbox">

            <?php 

            if($this->theme->display('aboutus_image')) {
                echo '<img class="aboutusbox-image" src="' . $this->theme->get_option('aboutus_image') . '" />';
            }

            if($this->theme->display('aboutus_title')) {
                echo '<h2 class="aboutusbox-title">' . $this->theme->get_option('aboutus_title') . '</h2>';
            }

            if($this->theme->display('aboutus_content')) {
                echo '<div class="aboutusbox-content">' . $this->theme->get_option('aboutus_content') . '</div>';
            }
            ?></div><?php
        }
    }

    function aboutus_options()
    {
        $this->theme->admin_option(array('About Us', 14), 
            '"About Us" section enabled?', 'aboutus_enabled', 
            'checkbox', $this->defaults['enabled'], 
            array('display'=>'inline')
        );

        $this->theme->admin_option('About Us', 
            'Title', 'aboutus_title', 
            'text', $this->defaults['title']
        );

        $this->theme->admin_option('About Us', 
            'Image', 'aboutus_image', 
            'imageupload', get_bloginfo('template_directory') . "/images/" . $this->defaults['image'], 
            array('help' => "Enter the full url. Leave it blank if you don't want to use an image.")
        );

        $this->theme->admin_option('About Us', 
            'Content', 'aboutus_content', 
            'textarea', $this->defaults['content'],
            array('style'=>'height: 250px;')
        );
    }
}
?>