IL LIBRO
Quattro brevi ed esilaranti storie tratte dall’irresistibile mondo di Gumball! Dalla serie cult di Cartoon Network nasce un’esplosione di risate e assurdità: Gumball Watterson, il gatto più disastroso di Elmore, torna insieme al suo inseparabile amico Darwin, alla geniale sorellina Anais e al resto della folle famiglia. Tra battute esilaranti, buffe catastrofi e trovate geniali, la vita quotidiana diventa una commedia senza fine.
AUTORI
Frank Gibson
Frank Gibson è un autore e fumettista neozelandese trapiantato in America dal 2011. Dopo il Numero 0 e il Volume 1 già editi da Tunué, pubblica per la Collana Tipitondi anche il Volume 2 della serie "Lo straordinario mondo di Gumball".
Tyson Hesse
Tyson Hesse è un acclamato fumettista, illustratore e animatore americano. Noto soprattutto per il suo lavoro al franchise "Sonic The Hedgehog" come lead designer per i corti animati, insieme a Frank Gibson è autore de "Lo straordinario mondo di Gumball": del Numero 0, Vol.1 e Vol.2, editi da Tunué, per la Collana Tipitondi.
DETTAGLI TECNICI
<?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>';
?>



