{"id":26552,"date":"2013-01-07T15:15:36","date_gmt":"2013-01-07T15:15:36","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/erro-de-sintaxe-no-functions-1\/"},"modified":"2016-08-06T01:19:42","modified_gmt":"2016-08-06T01:19:42","slug":"erro-de-sintaxe-no-functions-1","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/erro-de-sintaxe-no-functions-1\/","title":{"rendered":"Erro de sintaxe no functions"},"content":{"rendered":"<p>Ol\u00e1, n\u00e3o consigo resolver o erro no functions.php do meu site.<br \/>\nJ\u00e1 copiei o functions inteiro do arquivo original do thema e colei no editor, mas n\u00e3o resolve.<br \/>\nSegue c\u00f3digo e mensagem de erro, que \u00e9 a partir da linha 130.<\/p>\n<p>Parse error: syntax error, unexpected &#8216;;&#8217;, expecting &#8216;)&#8217; in \/home\/curat569\/public_html\/wp-content\/themes\/SuvZone\/functions.php on line 130<\/p>\n<pre><code>&lt;?php\n    require_once TEMPLATEPATH . &#039;\/lib\/Themater.php&#039;;\n    $theme = new Themater(&#039;SuvZone&#039;);\n    $theme-&gt;options[&#039;includes&#039;] = array(&#039;featuredposts&#039;);\n\n    $theme-&gt;options[&#039;plugins_options&#039;][&#039;featuredposts&#039;] = array(&#039;hook&#039; =&gt; &#039;main_before&#039;, &#039;image_sizes&#039; =&gt; &#039;930px. x 300px.&#039;, &#039;effect&#039; =&gt; &#039;fade&#039;);\n    if($theme-&gt;is_admin_user()) {\n        unset($theme-&gt;admin_options[&#039;Ads&#039;]);\n    }\n\n    if($theme-&gt;is_admin_user()) {\n        unset($theme-&gt;admin_options[&#039;Layout&#039;][&#039;content&#039;][&#039;featured_image_settings_homepage&#039;]);\n        unset($theme-&gt;admin_options[&#039;Layout&#039;][&#039;content&#039;][&#039;featured_image_width&#039;]);\n        unset($theme-&gt;admin_options[&#039;Layout&#039;][&#039;content&#039;][&#039;featured_image_height&#039;]);\n        unset($theme-&gt;admin_options[&#039;Layout&#039;][&#039;content&#039;][&#039;featured_image_position&#039;]);\n    }\n\n    \/\/ Footer widgets\n    $theme-&gt;admin_option(&#039;Layout&#039;,\n        &#039;Footer Widgets Enabled?&#039;, &#039;footer_widgets&#039;,\n        &#039;checkbox&#039;, &#039;true&#039;,\n        array(&#039;display&#039;=&gt;&#039;extended&#039;, &#039;help&#039; =&gt; &#039;Display or hide the 3 widget areas in the footer.&#039;, &#039;priority&#039; =&gt; &#039;15&#039;)\n    );\n\n    $theme-&gt;load();\n\n    register_sidebar(array(\n        &#039;name&#039; =&gt; __(&#039;Primary Sidebar&#039;, &#039;themater&#039;),\n        &#039;id&#039; =&gt; &#039;sidebar_primary&#039;,\n        &#039;description&#039; =&gt; __(&#039;The primary sidebar widget area&#039;, &#039;themater&#039;),\n        &#039;before_widget&#039; =&gt; &#039;&lt;ul class=&quot;widget-container&quot;&gt;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,\n        &#039;after_widget&#039; =&gt; &#039;&lt;\/li&gt;&lt;\/ul&gt;&#039;,\n        &#039;before_title&#039; =&gt; &#039;&lt;h3 class=&quot;widgettitle&quot;&gt;&#039;,\n        &#039;after_title&#039; =&gt; &#039;&lt;\/h3&gt;&#039;\n    ));\n\n    $theme-&gt;add_hook(&#039;sidebar_primary&#039;, &#039;sidebar_primary_default_widgets&#039;);\n\n    function sidebar_primary_default_widgets ()\n    {\n        global $theme;\n\n        $theme-&gt;display_widget(&#039;SocialProfiles&#039;);\n        $theme-&gt;display_widget(&#039;Banners125&#039;, array(&#039;banners&#039; =&gt; array(&#039;&lt;a href=&quot;http:\/\/fthemes.com&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http:\/\/fthemes.com\/wp-content\/pro\/b1.gif&quot; alt=&quot;Free WordPress Themes&quot; title=&quot;Free WordPress Themes&quot; \/&gt;&lt;\/a&gt;&lt;a href=&quot;http:\/\/freewpthemes.co&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http:\/\/freewpthemes.co\/wp-content\/pro\/fwt.gif&quot; alt=&quot;Free WordPress Themes&quot; title=&quot;Free WordPress Themes&quot; \/&gt;&lt;\/a&gt;&#039;)));\n        $theme-&gt;display_widget(&#039;Tweets&#039;, array(&#039;username&#039;=&gt; &#039;FThemes&#039;));\n        $theme-&gt;display_widget(&#039;Tabs&#039;);\n        $theme-&gt;display_widget(&#039;Tag_Cloud&#039;);\n        $theme-&gt;display_widget(&#039;Archives&#039;);\n        $theme-&gt;display_widget(&#039;Facebook&#039;, array(&#039;url&#039;=&gt; &#039;http:\/\/www.facebook.com\/FThemes&#039;));\n        $theme-&gt;display_widget(&#039;Text&#039;, array(&#039;text&#039; =&gt; &#039;&lt;div style=&quot;text-align:center;&quot;&gt;&lt;a href=&quot;http:\/\/fthemes.com&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http:\/\/fthemes.com\/wp-content\/pro\/b3.gif&quot; alt=&quot;Free WordPress Themes&quot; title=&quot;Free WordPress Themes&quot; \/&gt;&lt;\/a&gt;&lt;\/div&gt;&#039;));\n    }\n\n    \/\/ Register the footer widgets only if they are enabled from the FlexiPanel\n    if($theme-&gt;display(&#039;footer_widgets&#039;)) {\n        register_sidebar(array(\n            &#039;name&#039; =&gt; &#039;Footer Widget Area 1&#039;,\n            &#039;id&#039; =&gt; &#039;footer_1&#039;,\n            &#039;description&#039; =&gt; &#039;The footer #1 widget area&#039;,\n            &#039;before_widget&#039; =&gt; &#039;&lt;ul class=&quot;widget-container&quot;&gt;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,\n            &#039;after_widget&#039; =&gt; &#039;&lt;\/li&gt;&lt;\/ul&gt;&#039;,\n            &#039;before_title&#039; =&gt; &#039;&lt;h3 class=&quot;widgettitle&quot;&gt;&#039;,\n            &#039;after_title&#039; =&gt; &#039;&lt;\/h3&gt;&#039;\n        ));\n\n        register_sidebar(array(\n            &#039;name&#039; =&gt; &#039;Footer Widget Area 2&#039;,\n            &#039;id&#039; =&gt; &#039;footer_2&#039;,\n            &#039;description&#039; =&gt; &#039;The footer #2 widget area&#039;,\n            &#039;before_widget&#039; =&gt; &#039;&lt;ul class=&quot;widget-container&quot;&gt;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,\n            &#039;after_widget&#039; =&gt; &#039;&lt;\/li&gt;&lt;\/ul&gt;&#039;,\n            &#039;before_title&#039; =&gt; &#039;&lt;h3 class=&quot;widgettitle&quot;&gt;&#039;,\n            &#039;after_title&#039; =&gt; &#039;&lt;\/h3&gt;&#039;\n        ));\n\n        register_sidebar(array(\n            &#039;name&#039; =&gt; &#039;Footer Widget Area 3&#039;,\n            &#039;id&#039; =&gt; &#039;footer_3&#039;,\n            &#039;description&#039; =&gt; &#039;The footer #3 widget area&#039;,\n            &#039;before_widget&#039; =&gt; &#039;&lt;ul class=&quot;widget-container&quot;&gt;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,\n            &#039;after_widget&#039; =&gt; &#039;&lt;\/li&gt;&lt;\/ul&gt;&#039;,\n            &#039;before_title&#039; =&gt; &#039;&lt;h3 class=&quot;widgettitle&quot;&gt;&#039;,\n            &#039;after_title&#039; =&gt; &#039;&lt;\/h3&gt;&#039;\n        ));\n\n        register_sidebar(array(\n            &#039;name&#039; =&gt; &#039;Footer Widget Area 4&#039;,\n            &#039;id&#039; =&gt; &#039;footer_4&#039;,\n            &#039;description&#039; =&gt; &#039;The footer #4 widget area&#039;,\n            &#039;before_widget&#039; =&gt; &#039;&lt;ul class=&quot;widget-container&quot;&gt;&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;&#039;,\n            &#039;after_widget&#039; =&gt; &#039;&lt;\/li&gt;&lt;\/ul&gt;&#039;,\n            &#039;before_title&#039; =&gt; &#039;&lt;h3 class=&quot;widgettitle&quot;&gt;&#039;,\n            &#039;after_title&#039; =&gt; &#039;&lt;\/h3&gt;&#039;\n        ));\n\n        $theme-&gt;add_hook(&#039;footer_1&#039;, &#039;footer_1_default_widgets&#039;);\n        $theme-&gt;add_hook(&#039;footer_2&#039;, &#039;footer_2_default_widgets&#039;);\n        $theme-&gt;add_hook(&#039;footer_3&#039;, &#039;footer_3_default_widgets&#039;);\n        $theme-&gt;add_hook(&#039;footer_4&#039;, &#039;footer_4_default_widgets&#039;);\n\n        function footer_1_default_widgets ()\n        {\n            global $theme;\n            $theme-&gt;display_widget(&#039;Links&#039;);\n        }\n\n        function footer_2_default_widgets ()\n        {\n            global $theme;\n            $theme-&gt;display_widget(&#039;Recent_Posts&#039;, array(&#039;number&#039; =&gt; &#039;6&#039;));\n        }\n\n        function footer_3_default_widgets ()\n        {\n            global $theme;\n            $theme-&gt;display_widget(&#039;Search&#039;);\n            $theme-&gt;display_widget(&#039;Tag_Cloud&#039;);\n\n        }\n\n        function footer_4_default_widgets ()\n        {\n            global $theme;\n            $theme-&gt;display_widget(&#039;Text&#039;, array(&#039;title&#039; =&gt; &#039;Contact&#039;, &#039;text&#039; =&gt; &#039;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.&lt;br \/&gt;&lt;br \/&gt; &lt;span style=&quot;font-weight: bold;&quot;&gt;Our Company Inc.&lt;\/span&gt;&lt;br \/&gt;2458 S . 124 St.Suite 47&lt;br \/&gt;Town City 21447&lt;br \/&gt;Phone: 124-457-1178&lt;br \/&gt;Fax: 565-478-1445&#039;));\n        }\n    }\n\n \/\/erro a partir daqui\n\nfunction wp_initialize_the_theme_load() { \n\n\/\/ Spammy links moderated\n\n}\n?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-26552","topic","type-topic","status-closed","hentry","topic-tag-sintaxe","topic-tag-syntax"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/26552","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/26552\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=26552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}