public function getStructuredDataJs()
 {
     $place = null;
     if ($this->id_local) {
         $local = $this->getLocal();
         $place = '
          "location" : {
             "@type" : "Place",
             "name" : "' . $local->titulo . '",
             "address" : "' . str_replace("\r\n", " ", $local->endereco) . '",
             "telephone" : "' . $local->telefone . '" ';
         if ($local->latitude) {
             $place .= ',
             "geo": {
                 "@type": "GeoCoordinates",
                 "latitude": "' . $local->latitude . '",
                 "longitude": "' . $local->longitude . '"
               }
             ';
         }
         $place .= '
           }
         ';
     }
     $offers = null;
     if ($this->isPago() && $this->noFuturo()) {
         $val = number_format($this->getValorAtual(), 2, '.', '');
         $offers = '
         "offers" :{
             "price" : "' . $val . '",
             "priceCurrency" : "BRL",
             "url" : "' . $this->permalink() . '"
         }
         ';
     }
     //        var_dump($this->data);
     //        var_dump($this->hora);
     //        var_dump($this->inicio());
     return '
     <script type="application/ld+json">
         {
           "@context": "http://schema.org",
           "@type": "Event",
           "name": "' . $this->titulo . '",
           "startDate" : "' . PLib::date_iso8601($this->inicio()) . '",
            "url" : "' . $this->permalink() . '"
           ' . ($place ? ',' . $place : '') . '
           ' . ($offers ? ',' . $offers : '') . '
         }
     </script>';
 }