A VOLTO COPERTO

Autori

Un graphic novel di respiro godardiano targato Luana Vergari e Francesco Mattioli

 

Autori: Luana Vergari – Francesco Mattioli

Collana: Prospero’s Books

Formato: 17×24; pp. 92

 

Categorie: Graphic novelTag: graphic novel, prospero's booksISBN: 9788889613474

11,00 €

8 disponibili

CONDIVIDI

Marsiglia, anni Settanta. Jean e Julia sono marito e moglie, sono follemente innamorati e amano girare con la loro bellissima 2CV.

Hanno ancora un sogno da realizzare. Rapinare banche e rubare diamanti gli sembra il modo più logico e sensato per ottenere quello che la vita gli promise tanti anni prima. Gli avvenimenti li porteranno in un drive-in alla periferia di Los Angeles, al tramonto.

«Voglio fare l’amore con te perché sei bella.»
«No, non sono bella.»
«Allora perché sei brutta, è la stessa cosa.»

Jean-Luc Godard

 

ISBN: 9788889613474Pagine: Prefazione di Valerio Evangelisti
<?php
$id = get_the_ID();

$names = function ($tax) use ($id) {
  $x = wp_get_post_terms($id, $tax, ['fields' => 'names']);
  return is_wp_error($x) ? [] : $x;
};

$mesi = ['gennaio'=>1,'febbraio'=>2,'marzo'=>3,'aprile'=>4,'maggio'=>5,'giugno'=>6,
         'luglio'=>7,'agosto'=>8,'settembre'=>9,'ottobre'=>10,'novembre'=>11,'dicembre'=>12];

$iso = function ($s) use ($mesi) {
  $s = mb_strtolower(trim($s));
  if (preg_match('/^\d{4}(-\d{2}(-\d{2})?)?$/', $s)) return $s;
  if (preg_match('/^(\d{1,2})[\/\.\-](\d{1,2})[\/\.\-](\d{4})$/', $s, $m))
    return sprintf('%04d-%02d-%02d', $m[3], $m[2], $m[1]);
  if (preg_match('/^(\d{1,2})\s+([a-zà]+)\s+(\d{4})$/u', $s, $m) && isset($mesi[$m[2]]))
    return sprintf('%04d-%02d-%02d', $m[3], $mesi[$m[2]], $m[1]);
  if (preg_match('/^([a-zà]+)\s+(\d{4})$/u', $s, $m) && isset($mesi[$m[1]]))
    return sprintf('%04d-%02d', $m[2], $mesi[$m[1]]);
  return null;
};

$autori = array_map(fn($n) => ['@type' => 'Person', 'name' => $n], $names('product_author'));
$data   = $names('pa_data-di-uscita');
$eta    = $names('pa_eta-target');
$pagine = $names('pa_pagine');

$json = [
  '@context'        => 'https://schema.org',
  '@type'           => 'Book',
  'name' => html_entity_decode(get_the_title($id), ENT_QUOTES, 'UTF-8'),
  'url'             => get_permalink($id),
  'image'           => get_the_post_thumbnail_url($id, 'full'),
  'description'     => wp_strip_all_tags(get_the_excerpt($id)),
  'author'          => $autori,
  'isbn'            => get_post_meta($id, '_sku', true),
  'datePublished'   => $data ? $iso($data[0]) : null,
  'numberOfPages'   => $pagine ? (int) $pagine[0] : null,
  'publisher'       => ['@type' => 'Organization', 'name' => 'Tunué'],
  'inLanguage'      => 'it',
  'typicalAgeRange' => $eta ? $eta[0] : null,
];

$json = array_filter($json, fn($v) => !($v === null || $v === '' || $v === []));

echo '<script type="application/ld+json">'
   . wp_json_encode($json, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_HEX_TAG)
   . '</script>';
?>