title: Parse error: syntax error, unexpected '[', expecting ')' in Wordpress site
body: <p>I get an error at my site, It says this: Parse error: syntax error, unexpected '[', expecting ')' in /home/u199097780/public_html/wp-content/themes/xt-corporate-lite/templates/header.php on line 43. Here is my file  header.php:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  global $xt_corporate_lite_opt;
  $site_logo = array();
  if(isset($xt_corporate_lite_opt['xt_site_logo']) &amp;&amp; $xt_corporate_lite_opt['xt_site_logo'] != '') {
      $site_logo = $xt_corporate_lite_opt['xt_site_logo'];
  }
  ?&gt;
  
  &lt;!-- Navigation --&gt;
  
  &lt;nav class="navbar navbar-default navbar-fixed-top navbar-page"&gt;
      &lt;div class="container"&gt;
          &lt;!-- Brand and toggle get grouped for better mobile display --&gt;
          &lt;div class="navbar-header page-scroll"&gt;
              &lt;button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"&gt;
                  &lt;span class="sr-only"&gt;&lt;?php _e('Toggle navigation','xt-corporate-lite'); ?&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
                  &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/button&gt;
  
                  &lt;?php
                  if(isset($site_logo['url']) &amp;&amp; $site_logo['url'] != ''){
                      $xt_logo = $site_logo['url'];
                      echo '&lt;a class="page-scroll" href="'.esc_url(get_site_url()).'"&gt;';
                      echo '&lt;img class="site_logo" src="'.esc_url($xt_logo).'"&gt;';
                      echo '&lt;/a&gt;';
                      echo '&lt;p class="site_description"&gt;'.get_bloginfo("description").'&lt;/p&gt;';
                  }else{
                      echo '&lt;a class="navbar-brand page-scroll" href="'.esc_url(get_site_url()).'"&gt;';
                      bloginfo('site_title');
                      echo '&lt;/a&gt;';
                      echo '&lt;p class="site_description"&gt;'.get_bloginfo("description").'&lt;/p&gt;';
                  }
                  ?&gt;
              &lt;/a&gt;
          &lt;/div&gt;
  
          &lt;!-- Collect the nav links, forms, and other content for toggling --&gt;
          &lt;div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"&gt;
              &lt;?php
              if ( has_nav_menu( 'primary_navigation' ) ) {
                  wp_nav_menu(['theme_location' =&gt; 'primary_navigation', 'menu_class' =&gt; 'nav navbar-nav navbar-right', 'walker' =&gt; new xt_corporate_lite_navwalker(), 'depth' =&gt; '3']);
              }
              ?&gt;
          &lt;/div&gt;
          &lt;!-- /.navbar-collapse --&gt;
      &lt;/div&gt;
      &lt;!-- /.container-fluid --&gt;
  &lt;/nav&gt;
      &lt;div class="page_header"&gt;
          &lt;div class="container"&gt;
              &lt;div class="page-title"&gt;
                  &lt;h1&gt;&lt;?php echo xt_corporate_lite_title(); ?&gt;&lt;/h1&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I don't know much from PHP so i hope anyone can send the version that works for me</p>