• Olá, não consigo resolver o erro no functions.php do meu site.
    Já copiei o functions inteiro do arquivo original do thema e colei no editor, mas não resolve.
    Segue código e mensagem de erro, que é a partir da linha 130.

    Parse error: syntax error, unexpected ‘;’, expecting ‘)’ in /home/curat569/public_html/wp-content/themes/SuvZone/functions.php on line 130

    <?php
        require_once TEMPLATEPATH . '/lib/Themater.php';
        $theme = new Themater('SuvZone');
        $theme->options['includes'] = array('featuredposts');
    
        $theme->options['plugins_options']['featuredposts'] = array('hook' => 'main_before', 'image_sizes' => '930px. x 300px.', 'effect' => 'fade');
        if($theme->is_admin_user()) {
            unset($theme->admin_options['Ads']);
        }
    
        if($theme->is_admin_user()) {
            unset($theme->admin_options['Layout']['content']['featured_image_settings_homepage']);
            unset($theme->admin_options['Layout']['content']['featured_image_width']);
            unset($theme->admin_options['Layout']['content']['featured_image_height']);
            unset($theme->admin_options['Layout']['content']['featured_image_position']);
        }
    
        // Footer widgets
        $theme->admin_option('Layout',
            'Footer Widgets Enabled?', 'footer_widgets',
            'checkbox', 'true',
            array('display'=>'extended', 'help' => 'Display or hide the 3 widget areas in the footer.', 'priority' => '15')
        );
    
        $theme->load();
    
        register_sidebar(array(
            'name' => __('Primary Sidebar', 'themater'),
            'id' => 'sidebar_primary',
            'description' => __('The primary sidebar widget area', 'themater'),
            'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
            'after_widget' => '</li></ul>',
            'before_title' => '<h3 class="widgettitle">',
            'after_title' => '</h3>'
        ));
    
        $theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
    
        function sidebar_primary_default_widgets ()
        {
            global $theme;
    
            $theme->display_widget('SocialProfiles');
            $theme->display_widget('Banners125', array('banners' => array('<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://freewpthemes.co" target="_blank"><img src="http://freewpthemes.co/wp-content/pro/fwt.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
            $theme->display_widget('Tweets', array('username'=> 'FThemes'));
            $theme->display_widget('Tabs');
            $theme->display_widget('Tag_Cloud');
            $theme->display_widget('Archives');
            $theme->display_widget('Facebook', array('url'=> 'http://www.facebook.com/FThemes'));
            $theme->display_widget('Text', array('text' => '<div style="text-align:center;"><a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a></div>'));
        }
    
        // Register the footer widgets only if they are enabled from the FlexiPanel
        if($theme->display('footer_widgets')) {
            register_sidebar(array(
                'name' => 'Footer Widget Area 1',
                'id' => 'footer_1',
                'description' => 'The footer #1 widget area',
                'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
                'after_widget' => '</li></ul>',
                'before_title' => '<h3 class="widgettitle">',
                'after_title' => '</h3>'
            ));
    
            register_sidebar(array(
                'name' => 'Footer Widget Area 2',
                'id' => 'footer_2',
                'description' => 'The footer #2 widget area',
                'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
                'after_widget' => '</li></ul>',
                'before_title' => '<h3 class="widgettitle">',
                'after_title' => '</h3>'
            ));
    
            register_sidebar(array(
                'name' => 'Footer Widget Area 3',
                'id' => 'footer_3',
                'description' => 'The footer #3 widget area',
                'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
                'after_widget' => '</li></ul>',
                'before_title' => '<h3 class="widgettitle">',
                'after_title' => '</h3>'
            ));
    
            register_sidebar(array(
                'name' => 'Footer Widget Area 4',
                'id' => 'footer_4',
                'description' => 'The footer #4 widget area',
                'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">',
                'after_widget' => '</li></ul>',
                'before_title' => '<h3 class="widgettitle">',
                'after_title' => '</h3>'
            ));
    
            $theme->add_hook('footer_1', 'footer_1_default_widgets');
            $theme->add_hook('footer_2', 'footer_2_default_widgets');
            $theme->add_hook('footer_3', 'footer_3_default_widgets');
            $theme->add_hook('footer_4', 'footer_4_default_widgets');
    
            function footer_1_default_widgets ()
            {
                global $theme;
                $theme->display_widget('Links');
            }
    
            function footer_2_default_widgets ()
            {
                global $theme;
                $theme->display_widget('Recent_Posts', array('number' => '6'));
            }
    
            function footer_3_default_widgets ()
            {
                global $theme;
                $theme->display_widget('Search');
                $theme->display_widget('Tag_Cloud');
    
            }
    
            function footer_4_default_widgets ()
            {
                global $theme;
                $theme->display_widget('Text', array('title' => 'Contact', 'text' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nis.<br /><br /> <span style="font-weight: bold;">Our Company Inc.</span><br />2458 S . 124 St.Suite 47<br />Town City 21447<br />Phone: 124-457-1178<br />Fax: 565-478-1445'));
            }
        }
    
     //erro a partir daqui
    
    function wp_initialize_the_theme_load() { 
    
    // Spammy links moderated
    
    }
    ?>
Visualizando 1 resposta (de um total de 1)
Visualizando 1 resposta (de um total de 1)
  • O tópico ‘Erro de sintaxe no functions’ está fechado para novas respostas.