From 231afc2f6942f9b273da1edc31e2a8b0492a5978 Mon Sep 17 00:00:00 2001 From: ulaulaman <34242086+ulaulaman@users.noreply.github.com> Date: Mon, 18 Dec 2017 13:05:40 +0100 Subject: [PATCH] Add files via upload --- book-template.php | 96 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 book-template.php diff --git a/book-template.php b/book-template.php new file mode 100644 index 0000000..3ed5fb6 --- /dev/null +++ b/book-template.php @@ -0,0 +1,96 @@ + +
+

In caso di fumetto o libro illustrato, inserire il colore [bookdata ... col="colore,b/n"]
Possono essere inseriti opzionalmente ISBN [bookdata ... isbn="codice"] o ISSN [bookdata ... issn="codice"], il traduttore [bookdata ... translator="Traduttore"] ed eventuali note aggiuntive [dati_editoriali ... notes="Note aggiuntive"]
I dati possono essere inseriti anche in maniera disordinata: ci penserĂ  il plugin a riordinarli', 'book_template_textdomain' ); ?>

+
+ null, + 'author' => null, + 'translator' => null, + 'publisher' => null, + 'date' => null, + 'pages' => null, + 'type' => null, + 'col' => null, + 'price' => null, + 'isbn' => null, + 'issn' => null, + 'notes' => null, + ), + $atts + ) + ); + + $book = '

Abbiamo parlato di:
'.$title.'
'.$author; + + if ( $translator <> null ) + {$book = $book.'
Traduzione di '.$translator;} + else + {$book = $book;} + + if ( $col <> null ) + {$book = $book.'
'.$publisher.', '.$date.'
'.$pages.' pagine, '.$col.' - '.$price;} + else + {$book = $book.'
'.$publisher.', '.$date.'
'.$pages.' pagine, '.$type.' - '.$price;} + + if ( $isbn <> null ) + {$book = $book.'
ISBN: '.$isbn;} + else + { + if ( $issn <> null ) + {$book = $book.'
ISSN: '.$issn;} + else + {$book = $book;} + } + + if ( $notes <> null ) + {$book = $book.'
'.$notes;} + else + {$book = $book;} + + $text = $book; + return $text; +} + +/* ------------------------------------------------------ */ +?>