From 425facf8373c1aa6b92699dce63c398891ddb23a Mon Sep 17 00:00:00 2001
From: ulaulaman <34242086+ulaulaman@users.noreply.github.com>
Date: Sun, 11 Feb 2018 17:42:15 +0100
Subject: [PATCH] file separato per astroedu et al.
Creazione di un file separato dove conservare il codice per gli shortcode che creano i collegamento alle schede di astroedu e alle news di spacescoop
---
link/link.php | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 link/link.php
diff --git a/link/link.php b/link/link.php
new file mode 100644
index 0000000..0e2db84
--- /dev/null
+++ b/link/link.php
@@ -0,0 +1,42 @@
+ null,
+ 'code' => null,
+ ),
+ $atts
+ )
+ );
+
+ $link = ''.$content.'';
+
+ return $link;
+}
+
+# spacescoop
+add_shortcode('spacescoop', 'spacescoop');
+
+ function spacescoop ($atts, $content = null) {
+
+ extract(
+ shortcode_atts(
+ array(
+ 'lang' => null,
+ 'code' => null,
+ ),
+ $atts
+ )
+ );
+
+ $link = ''.$content.'';
+
+ return $link;
+}