From 35b6ae61e6474fa60e9cb598bbe8028bc0e00caa Mon Sep 17 00:00:00 2001
From: ulaulaman
Date: Thu, 13 Aug 2020 11:40:40 +0200
Subject: [PATCH] =?UTF-8?q?Aggiunto=20allo=20shortcode=20il=20campo=20dell?=
=?UTF-8?q?'et=C3=A0=20consigliata?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
book-template.php | 32 +++++++++++++++++++-------------
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/book-template.php b/book-template.php
index b2dc322..258d109 100644
--- a/book-template.php
+++ b/book-template.php
@@ -2,7 +2,7 @@
/*
Plugin Name: Book Template
Description: Plugin che aggiunge uno shortcode per la creazione di un box con i dati editoriali di un libro o di un fumetto.
-Version: 2020.0718.1
+Version: 2020.0813
Author: Gianluigi Filippelli
Author URI: http://dropseaofulaula.blogspot.it/
Plugin URI: https://ulaulaman.github.io/book-template/
@@ -46,7 +46,7 @@ function bookdata_class_meta_box( $post ) { ?>
-
+
null,
- 'author' => null,
+ 'title' => null,
+ 'author' => null,
'translator' => null,
- 'publisher' => null,
- 'date' => null,
- 'pages' => null,
- 'type' => null,
- 'col' => null,
- 'price' => null,
- 'isbn' => null,
- 'issn' => null,
- 'notes' => null,
+ 'publisher' => null,
+ 'date' => null,
+ 'pages' => null,
+ 'type' => null,
+ 'col' => null,
+ 'price' => null,
+ 'age' => null,
+ 'isbn' => null,
+ 'issn' => null,
+ 'notes' => null,
),
$atts
)
@@ -91,6 +92,11 @@ add_shortcode( 'bookdata', 'bookdata' );
else
{$book = $book.'
'.$publisher.', '.$date.'
'.$pages.', '.$type.' – '.$price;}
+ if ( $age <> null )
+ {$book = $book.'
'.__( 'Lettura consigliata per ', 'book-template' ).$age;}
+ else
+ {$book = $book;}
+
if ( $isbn <> null )
{$book = $book.'
ISBN: '.$isbn;}
else