load_plugin_textdomain('eveeno', false, dirname(plugin_basename(__FILE__)) . '/languages'));
+
+register_activation_hook(__FILE__, __NAMESPACE__ . '\activation');
+register_deactivation_hook(__FILE__, __NAMESPACE__ . '\deactivation');
+
+add_action('plugins_loaded', __NAMESPACE__ . '\loaded');
+
+
+const EVEENO_PHP_VERSION = '8.0';
+const EVEENO_WP_VERSION = '6.2';
+const EVEENO_PLUGIN_VERSION = '2.0';
+
+function systemRequirements(): string {
+ global $wp_version;
+ // Strip off any -alpha, -RC, -beta, -src suffixes.
+ [$wpVersion] = explode('-', $wp_version);
+ $phpVersion = phpversion();
+ $error = '';
+ if (!is_php_version_compatible(EVEENO_PHP_VERSION)) {
+ $error = sprintf(
+ /* translators: 1: Server PHP version number, 2: Required PHP version number. */
+ __('The server is running PHP version %1$s. The Plugin requires at least PHP version %2$s.', 'eveeno'),
+ $phpVersion,
+ EVEENO_PHP_VERSION
+ );
+ } elseif (!is_wp_version_compatible(EVEENO_WP_VERSION)) {
+ $error = sprintf(
+ /* translators: 1: Server WordPress version number, 2: Required WordPress version number. */
+ __('The server is running WordPress version %1$s. The Plugin requires at least WordPress version %2$s.', 'eveeno'),
+ $wpVersion,
+ EVEENO_PHP_VERSION
+ );
+ }
+ return $error;
+}
/*
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * Wird durchgeführt, wenn das Plugin aktiviert wird.
+ * @return void
*/
-add_action('plugins_loaded', array('Eveeno', 'instance'));
-
-register_activation_hook(__FILE__, array('Eveeno', 'activation'));
-register_deactivation_hook(__FILE__, array('Eveeno', 'deactivation'));
+function activation() {
+
+ if ($error = systemRequirements()) {
+ deactivate_plugins(plugin_basename(__FILE__));
+ wp_die(
+ sprintf(
+ /* translators: 1: The plugin name, 2: The error string. */
+ esc_html__('Plugins: %1$s: %2$s', 'eveeno'),
+ esc_html(plugin_basename(__FILE__)),
+ esc_html($error)
+ )
+ );
+ }
+}
/*
- * Eveeno-Klasse
+ * Wird durchgeführt, wenn das Plugin deaktiviert wird
+ * @return void
*/
-class Eveeno {
- /*
- * Name der Variable unter der die Einstellungen des Plugins gespeichert werden.
- * string
- */
-
- const option_name = 'eveeno';
-
- /*
- * Minimal erforderliche PHP-Version.
- * string
- */
- const php_version = '5.3';
-
- /*
- * Minimal erforderliche WordPress-Version.
- * string
- */
- const wp_version = '4.1';
-
- /*
- * Optionen des Pluginis
- * object
- */
-
- static $options;
-
- /*
- * "Screen ID" der Einstellungsseite
- * string
- */
- protected $admin_settings_page;
-
- /*
- * Bezieht sich auf eine einzige Instanz dieser Klasse.
- * mixed
- */
- protected static $instance = null;
-
- /*
- * Erstellt und gibt eine Instanz der Klasse zurück.
- * Es stellt sicher, dass von der Klasse genau ein Objekt existiert (Singleton Pattern).
- * @return object
- */
-
- public static function instance() {
-
- if (null == self::$instance) {
- self::$instance = new self;
- }
-
- return self::$instance;
- }
-
- private $xml_keys;
-
- /*
- * Initialisiert das Plugin, indem die Lokalisierung, Hooks und Verwaltungsfunktionen festgesetzt werden.
- * @return void
- */
-
- private function __construct() {
-
- load_plugin_textdomain('eveeno', false, sprintf('%s/languages/', dirname(plugin_basename(__FILE__))));
-
- self::add_shortcode();
- }
-
- /*
- * Wird durchgeführt wenn das Plugin aktiviert wird.
- * @return void
- */
-
- public static function activation() {
- // Überprüft die minimal erforderliche PHP- u. WP-Version.
- self::version_compare();
- }
-
- /*
- * Wird durchgeführt wenn das Plugin deaktiviert wird
- * @return void
- */
-
- public static function deactivation() { }
-
- /*
- * Überprüft die minimal erforderliche PHP- u. WP-Version.
- * @return void
- */
-
- public static function version_compare() {
- $error = '';
-
- if (version_compare(PHP_VERSION, self::php_version, '<')) {
- /* translators: PHP-Version */
- $error = sprintf(__('Ihre PHP-Version %1$s ist veraltet. Bitte aktualisieren Sie mindestens auf die PHP-Version %2$s.', 'eveeno'), PHP_VERSION, self::php_version);
- }
-
- if (version_compare($GLOBALS['wp_version'], self::wp_version, '<')) {
- /* translators: WordPress-Version */
- $error = sprintf(__('Ihre WordP ress-Version %1$s ist veraltet. Bitte aktualisieren Sie mindestens auf die Wordpress-Version %2$s.', 'eveeno'), $GLOBALS['wp_version'], self::wp_version);
- }
-
- // Wenn die Überprüfung fehlschlägt, dann wird das Plugin automatisch deaktiviert.
- if (!empty($error)) {
- deactivate_plugins(plugin_basename(__FILE__), false, true);
- wp_die(esc_html($error));
- }
- }
-
-
- /*
- * Shortcode
- */
-
- private static function add_shortcode() {
-
- function eveeno_shortcode($atts) {
- $defaults = [
- 'show' => '',
- 'eventid' => '',
- 'permalink' => '',
- 'userid' => '',
- 'width' => '98%',
- 'height' => '800px',
- 'period' => '', // all (default) | past | future
- 'term' => '',
- 'notterm' => '',
- 'lang' => '', // de | en | fr
- 'sort' => '', // date (default) | name
- 'scope' => '', // all (default) | private | public
- 'apikey' => ''
- ];
- $args = shortcode_atts($defaults, $atts);
- $show = sanitize_text_field($args['show']);
- $eventid = sanitize_text_field($args['eventid']);
- $permalink = sanitize_text_field($args['permalink']);
- $eventid = $permalink != '' ? $permalink : $eventid;
- $userid = sanitize_text_field($args['userid']);
- $width = sanitize_text_field($args['width']);
- $height = sanitize_text_field($args['height']);
- $param = '';
- if ($args['term'] != '') {
- $param .= '&term='.sanitize_text_field($args['term']);
- }
- if ($args['notterm'] != '') {
- $param .= '¬term='.sanitize_text_field($args['notterm']);
- }
- if (in_array($args['period'], ['all', 'past', 'future'])) {
- $param .= '&period='.sanitize_text_field($args['period']);
- }
- if (in_array($args['lang'], ['de', 'en', 'fr'])) {
- $param .= '&lang='.sanitize_text_field($args['lang']);
- }
- if ($args['sort'] == 'name') {
- $param .= '&sort=name';
+function deactivation() { }
+
+function loaded() {
+
+ if ($error = systemRequirements()) {
+ add_action('admin_init', function () use ($error) {
+ if (current_user_can('activate_plugins')) {
+ $pluginData = get_plugin_data(__FILE__);
+ $pluginName = $pluginData['Name'];
+ $tag = is_plugin_active_for_network('eveeno') ? 'network_admin_notices' : 'admin_notices';
+ add_action($tag, function () use ($pluginName, $error) {
+ printf(
+ '' .
+ /* translators: 1: The plugin name, 2: The error string. */
+ esc_html__('Plugins: %1$s: %2$s', 'eveeno') .
+ '
',
+ esc_html($pluginName),
+ esc_html($error)
+ );
+ });
}
- if ($args['apikey'] != '') {
- $param .= '&apikey='.sanitize_text_field($args['apikey']);
- }
- if (in_array($args['scope'], ['all', 'public', 'private'])) {
- $param .= '&scope='.sanitize_text_field($args['scope']);
- }
- $output = '';
-
- if ($show == 'form' && $eventid !='') {
- $output .= sprintf('';
- } elseif ($show == 'table' && $userid !='') {
- $output .= sprintf('';
- } elseif ($show == 'grid' && $userid !='') {
- $output .= sprintf('';
- } elseif ($show == 'list' && $userid !='') {
- $output .= sprintf('';
- } else {
- return false;
- }
- $output .= sprintf('%2$seveeno.de
',
- esc_attr($width),
- esc_html__('powered by', 'eveeno'));
-
- return $output;
- }
-
- add_shortcode('eveeno', 'eveeno_shortcode');
+ });
+ return;
}
+ new Shortcode();
}
+
diff --git a/includes/Shortcode.php b/includes/Shortcode.php
new file mode 100644
index 0000000..8104d39
--- /dev/null
+++ b/includes/Shortcode.php
@@ -0,0 +1,40 @@
+ $v) {
+ if ($v == '')
+ continue;
+ $aParam[] = 'data-' . esc_attr($k) . '="' . esc_attr($v) . '"';
+ }
+ $sParam = implode(' ', $aParam);
+
+ $output .= ' ';
+
+ wp_enqueue_script('eveeno');
+
+ return $output;
+ }
+
+ function enqueueScripts() {
+ wp_register_script(
+ 'eveeno',
+ plugins_url('eveeno/assets/js/embed.min.js'),
+ [],
+ EVEENO_PLUGIN_VERSION,
+ ['in_footer' => false]
+ );
+ }
+}
diff --git a/languages/eveeno-de_DE.l10n.php b/languages/eveeno-de_DE.l10n.php
new file mode 100644
index 0000000..9f88c44
--- /dev/null
+++ b/languages/eveeno-de_DE.l10n.php
@@ -0,0 +1,4 @@
+'Eveeno','report-msgid-bugs-to'=>'','pot-creation-date'=>'2018-07-23 21:07+0000','po-revision-date'=>'2024-12-22 12:21+0000','last-translator'=>'Barbara','language-team'=>'Deutsch','language'=>'de_DE','plural-forms'=>'nplurals=2; plural=n != 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.5.0; wp-5.6','messages'=>['Barbara Bothe'=>'Barbara Bothe','Eveeno'=>'Eveeno','https://barbara-bothe.de'=>'https://barbara-bothe.de','https://github.com/cassandre/eveeno-wp'=>'https://github.com/cassandre/eveeno-wp','Plugins: %1$s: %2$s'=>'Plugins: %1$s: %2$s
+','The server is running PHP version %1$s. The Plugin requires at least PHP version %2$s.'=>'Auf dem Server läuft PHP Version %1$s. Das Plugin benötigt mindestens PHP Version %2$s.
+','The server is running WordPress version %1$s. The Plugin requires at least WordPress version %2$s.'=>'Auf dem Server läuft WordPress Version %1$s. Das Plugin benötigt mindestens WordPress Version %2$s.','WordPress plugin for embedding eveeno registration forms and upcoming events lists'=>'Anmeldeformulare und Veranstaltungslisten von Eveeno per Shortcode in die eigene Seite integrieren']];
diff --git a/languages/eveeno-de_DE.mo b/languages/eveeno-de_DE.mo
index df82cf8..441904b 100644
Binary files a/languages/eveeno-de_DE.mo and b/languages/eveeno-de_DE.mo differ
diff --git a/languages/eveeno-de_DE.po b/languages/eveeno-de_DE.po
index b65160d..7d1f320 100644
--- a/languages/eveeno-de_DE.po
+++ b/languages/eveeno-de_DE.po
@@ -3,7 +3,7 @@ msgstr ""
"Project-Id-Version: Eveeno\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-07-23 21:07+0000\n"
-"PO-Revision-Date: 2021-01-23 18:14+0000\n"
+"PO-Revision-Date: 2024-12-22 12:21+0000\n"
"Last-Translator: Barbara\n"
"Language-Team: Deutsch\n"
"Language: de_DE\n"
@@ -14,30 +14,14 @@ msgstr ""
"X-Generator: Loco https://localise.biz/\n"
"X-Loco-Version: 2.5.0; wp-5.6"
-#: eveeno.php:205 eveeno.php:215 eveeno.php:225 eveeno.php:235
-msgid "Anmeldung"
-msgstr "Anmeldung"
-
#. Author of the plugin
msgid "Barbara Bothe"
msgstr "Barbara Bothe"
-#. Description of the plugin
-msgid ""
-"Erstellt Shortcode, der Anmeldeformulare und Veranstaltungslisten von Eveeno "
-"in die eigene Seite integriert"
-msgstr ""
-"Erstellt Shortcode, der Anmeldeformulare und Veranstaltungslisten von Eveeno "
-"in die eigene Seite integriert\n"
-
#. Name of the plugin
msgid "Eveeno"
msgstr "Eveeno"
-#: eveeno.php:201
-msgid "eveeno Anmeldung"
-msgstr "eveeno Anmeldung"
-
#. Author URI of the plugin
#| msgid "http://barbara-bothe.de"
msgid "https://barbara-bothe.de"
@@ -47,36 +31,37 @@ msgstr "https://barbara-bothe.de"
msgid "https://github.com/cassandre/eveeno-wp"
msgstr "https://github.com/cassandre/eveeno-wp"
-#: eveeno.php:204 eveeno.php:214 eveeno.php:224 eveeno.php:234
-msgid ""
-"Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie können die "
-"eingebettete Seite über den folgenden Link aufrufen: "
+#. 1: The plugin name, 2: The error string.
+#: eveeno.php:72 eveeno.php:99
+#, php-format
+msgid "Plugins: %1$s: %2$s"
msgstr ""
-"Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie können die "
-"eingebettete Seite über den folgenden Link aufrufen: "
+"Plugins: %1$s: %2$s\n"
-#: eveeno.php:131
+#. 1: Server PHP version number, 2: Required PHP version number.
+#: eveeno.php:46
#, php-format
msgid ""
-"Ihre PHP-Version %s ist veraltet. Bitte aktualisieren Sie mindestens auf die "
-"PHP-Version %s."
+"The server is running PHP version %1$s. The Plugin requires at least PHP "
+"version %2$s."
msgstr ""
-"Ihre PHP-Version %s ist veraltet. Bitte aktualisieren Sie mindestens auf die "
-"PHP-Version %s."
+"Auf dem Server läuft PHP Version %1$s. Das Plugin benötigt mindestens PHP "
+"Version %2$s.\n"
-#: eveeno.php:135
+#. 1: Server WordPress version number, 2: Required WordPress version number.
+#: eveeno.php:53
#, php-format
msgid ""
-"Ihre Wordpress-Version %s ist veraltet. Bitte aktualisieren Sie mindestens "
-"auf die Wordpress-Version %s."
+"The server is running WordPress version %1$s. The Plugin requires at least "
+"WordPress version %2$s."
msgstr ""
-"Ihre Wordpress-Version %s ist veraltet. Bitte aktualisieren Sie mindestens "
-"auf die Wordpress-Version %s"
-
-#: eveeno.php:240
-msgid "powered by"
-msgstr "powered by"
+"Auf dem Server läuft WordPress Version %1$s. Das Plugin benötigt mindestens "
+"WordPress Version %2$s."
-#: eveeno.php:211 eveeno.php:221 eveeno.php:231
-msgid "Veranstaltungen"
-msgstr "Veranstaltungen"
+#. Description of the plugin
+msgid ""
+"WordPress plugin for embedding eveeno registration forms and upcoming events "
+"lists"
+msgstr ""
+"Anmeldeformulare und Veranstaltungslisten von Eveeno per Shortcode in die "
+"eigene Seite integrieren"
diff --git a/languages/eveeno-de_DE_formal.l10n.php b/languages/eveeno-de_DE_formal.l10n.php
new file mode 100644
index 0000000..99fe547
--- /dev/null
+++ b/languages/eveeno-de_DE_formal.l10n.php
@@ -0,0 +1,4 @@
+'Eveeno','report-msgid-bugs-to'=>'','pot-creation-date'=>'2018-07-23 21:07+0000','po-revision-date'=>'2024-12-22 12:22+0000','last-translator'=>'Barbara Bothe ','language-team'=>'Deutsch (Sie)','language'=>'de_DE_formal','plural-forms'=>'nplurals=2; plural=n != 1;','mime-version'=>'1.0','content-type'=>'text/plain; charset=UTF-8','content-transfer-encoding'=>'8bit','x-generator'=>'Loco https://localise.biz/','x-loco-version'=>'2.6.14; wp-6.7.1','messages'=>['Barbara Bothe'=>'Barbara Bothe','Eveeno'=>'Eveeno','https://barbara-bothe.de'=>'https://barbara-bothe.de','https://github.com/cassandre/eveeno-wp'=>'https://github.com/cassandre/eveeno-wp','Plugins: %1$s: %2$s'=>'Plugins: %1$s: %2$s
+','The server is running PHP version %1$s. The Plugin requires at least PHP version %2$s.'=>'Auf dem Server läuft PHP Version %1$s. Das Plugin benötigt mindestens PHP Version %2$s.
+','The server is running WordPress version %1$s. The Plugin requires at least WordPress version %2$s.'=>'Auf dem Server läuft WordPress Version %1$s. Das Plugin benötigt mindestens WordPress Version %2$s.','WordPress plugin for embedding eveeno registration forms and upcoming events lists'=>'Anmeldeformulare und Veranstaltungslisten von Eveeno per Shortcode in die eigene Seite integrieren']];
diff --git a/languages/eveeno-de_DE_formal.mo b/languages/eveeno-de_DE_formal.mo
new file mode 100644
index 0000000..dd96ede
Binary files /dev/null and b/languages/eveeno-de_DE_formal.mo differ
diff --git a/languages/eveeno-de_DE_formal.po b/languages/eveeno-de_DE_formal.po
new file mode 100644
index 0000000..618a006
--- /dev/null
+++ b/languages/eveeno-de_DE_formal.po
@@ -0,0 +1,67 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: Eveeno\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2018-07-23 21:07+0000\n"
+"PO-Revision-Date: 2024-12-22 12:22+0000\n"
+"Last-Translator: Barbara Bothe \n"
+"Language-Team: Deutsch (Sie)\n"
+"Language: de_DE_formal\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Loco https://localise.biz/\n"
+"X-Loco-Version: 2.6.14; wp-6.7.1"
+
+#. Author of the plugin
+msgid "Barbara Bothe"
+msgstr "Barbara Bothe"
+
+#. Name of the plugin
+msgid "Eveeno"
+msgstr "Eveeno"
+
+#. Author URI of the plugin
+#| msgid "http://barbara-bothe.de"
+msgid "https://barbara-bothe.de"
+msgstr "https://barbara-bothe.de"
+
+#. URI of the plugin
+msgid "https://github.com/cassandre/eveeno-wp"
+msgstr "https://github.com/cassandre/eveeno-wp"
+
+#. 1: The plugin name, 2: The error string.
+#: eveeno.php:72 eveeno.php:99
+#, php-format
+msgid "Plugins: %1$s: %2$s"
+msgstr ""
+"Plugins: %1$s: %2$s\n"
+
+#. 1: Server PHP version number, 2: Required PHP version number.
+#: eveeno.php:46
+#, php-format
+msgid ""
+"The server is running PHP version %1$s. The Plugin requires at least PHP "
+"version %2$s."
+msgstr ""
+"Auf dem Server läuft PHP Version %1$s. Das Plugin benötigt mindestens PHP "
+"Version %2$s.\n"
+
+#. 1: Server WordPress version number, 2: Required WordPress version number.
+#: eveeno.php:53
+#, php-format
+msgid ""
+"The server is running WordPress version %1$s. The Plugin requires at least "
+"WordPress version %2$s."
+msgstr ""
+"Auf dem Server läuft WordPress Version %1$s. Das Plugin benötigt mindestens "
+"WordPress Version %2$s."
+
+#. Description of the plugin
+msgid ""
+"WordPress plugin for embedding eveeno registration forms and upcoming events "
+"lists"
+msgstr ""
+"Anmeldeformulare und Veranstaltungslisten von Eveeno per Shortcode in die "
+"eigene Seite integrieren"
diff --git a/languages/eveeno-en_US.mo b/languages/eveeno-en_US.mo
deleted file mode 100644
index d09e1a4..0000000
Binary files a/languages/eveeno-en_US.mo and /dev/null differ
diff --git a/languages/eveeno-en_US.po b/languages/eveeno-en_US.po
deleted file mode 100644
index 551523f..0000000
--- a/languages/eveeno-en_US.po
+++ /dev/null
@@ -1,90 +0,0 @@
-msgid ""
-msgstr ""
-"Project-Id-Version: Eveeno v1.0\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-07-23 21:07+0000\n"
-"PO-Revision-Date: 2021-01-23 18:16+0000\n"
-"Last-Translator: Barbara \n"
-"Language-Team: English (United States)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Loco https://localise.biz/\n"
-"X-Poedit-Language: English\n"
-"X-Poedit-Country: UNITED STATES\n"
-"X-Poedit-SourceCharset: utf-8\n"
-"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
-"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
-"X-Poedit-Basepath: ../\n"
-"X-Poedit-Bookmarks: \n"
-"X-Poedit-SearchPath-0: .\n"
-"X-Textdomain-Support: yes\n"
-"Language: en_US"
-
-#: eveeno.php:205 eveeno.php:215 eveeno.php:225 eveeno.php:235
-msgid "Anmeldung"
-msgstr "Registration"
-
-#. Author of the plugin
-msgid "Barbara Bothe"
-msgstr "Barbara Bothe"
-
-#. Description of the plugin
-msgid ""
-"Erstellt Shortcode, der Anmeldeformulare und Veranstaltungslisten von Eveeno "
-"in die eigene Seite integriert"
-msgstr ""
-"Provides a shortcode to include Eveeno registration forms and event lists in "
-"your website."
-
-#. Name of the plugin
-msgid "Eveeno"
-msgstr "Eveeno"
-
-#: eveeno.php:201
-msgid "eveeno Anmeldung"
-msgstr "eveeno Registration"
-
-#. Author URI of the plugin
-#| msgid "http://barbara-bothe.de"
-msgid "https://barbara-bothe.de"
-msgstr "https://barbara-bothe.de"
-
-#. URI of the plugin
-msgid "https://github.com/cassandre/eveeno-wp"
-msgstr "https://github.com/cassandre/eveeno-wp"
-
-#: eveeno.php:204 eveeno.php:214 eveeno.php:224 eveeno.php:234
-msgid ""
-"Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie können die "
-"eingebettete Seite über den folgenden Link aufrufen: "
-msgstr ""
-"Your browser does not support embedded frames. You can visit the embedded "
-"page at the following link: "
-
-#: eveeno.php:131
-#, php-format
-msgid ""
-"Ihre PHP-Version %s ist veraltet. Bitte aktualisieren Sie mindestens auf die "
-"PHP-Version %s."
-msgstr ""
-"Your server is running PHP version %s. Please upgrade at least to PHP "
-"version %s."
-
-#: eveeno.php:135
-#, php-format
-msgid ""
-"Ihre Wordpress-Version %s ist veraltet. Bitte aktualisieren Sie mindestens "
-"auf die Wordpress-Version %s."
-msgstr ""
-"Your WordPress version is %s. Please upgrade at least to WordPress version "
-"%s."
-
-#: eveeno.php:240
-msgid "powered by"
-msgstr "powered by"
-
-#: eveeno.php:211 eveeno.php:221 eveeno.php:231
-msgid "Veranstaltungen"
-msgstr "Events"
diff --git a/languages/eveeno.pot b/languages/eveeno.pot
index f630f4d..9afd85c 100644
--- a/languages/eveeno.pot
+++ b/languages/eveeno.pot
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Eveeno\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-01-23 18:13+0000\n"
+"POT-Creation-Date: 2024-12-22 12:18+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: \n"
@@ -14,28 +14,14 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Loco https://localise.biz/"
-#: eveeno.php:205 eveeno.php:215 eveeno.php:225 eveeno.php:235
-msgid "Anmeldung"
-msgstr ""
-
#. Author of the plugin
msgid "Barbara Bothe"
msgstr ""
-#. Description of the plugin
-msgid ""
-"Erstellt Shortcode, der Anmeldeformulare und Veranstaltungslisten von Eveeno "
-"in die eigene Seite integriert"
-msgstr ""
-
#. Name of the plugin
msgid "Eveeno"
msgstr ""
-#: eveeno.php:201
-msgid "eveeno Anmeldung"
-msgstr ""
-
#. Author URI of the plugin
msgid "https://barbara-bothe.de"
msgstr ""
@@ -44,30 +30,30 @@ msgstr ""
msgid "https://github.com/cassandre/eveeno-wp"
msgstr ""
-#: eveeno.php:204 eveeno.php:214 eveeno.php:224 eveeno.php:234
-msgid ""
-"Ihr Browser kann leider keine eingebetteten Frames anzeigen. Sie können die "
-"eingebettete Seite über den folgenden Link aufrufen: "
+#. 1: The plugin name, 2: The error string.
+#: eveeno.php:72 eveeno.php:99
+#, php-format
+msgid "Plugins: %1$s: %2$s"
msgstr ""
-#: eveeno.php:131
+#. 1: Server PHP version number, 2: Required PHP version number.
+#: eveeno.php:46
#, php-format
msgid ""
-"Ihre PHP-Version %s ist veraltet. Bitte aktualisieren Sie mindestens auf die "
-"PHP-Version %s."
+"The server is running PHP version %1$s. The Plugin requires at least PHP "
+"version %2$s."
msgstr ""
-#: eveeno.php:135
+#. 1: Server WordPress version number, 2: Required WordPress version number.
+#: eveeno.php:53
#, php-format
msgid ""
-"Ihre Wordpress-Version %s ist veraltet. Bitte aktualisieren Sie mindestens "
-"auf die Wordpress-Version %s."
+"The server is running WordPress version %1$s. The Plugin requires at least "
+"WordPress version %2$s."
msgstr ""
-#: eveeno.php:240
-msgid "powered by"
-msgstr ""
-
-#: eveeno.php:211 eveeno.php:221 eveeno.php:231
-msgid "Veranstaltungen"
+#. Description of the plugin
+msgid ""
+"WordPress plugin for embedding eveeno registration forms and upcoming events "
+"lists"
msgstr ""
diff --git a/readme.txt b/readme.txt
index 5fca1f6..2951d64 100644
--- a/readme.txt
+++ b/readme.txt
@@ -1,9 +1,9 @@
=== Eveeno ===
Contributors: babo2015
Tags: event, registration, form, conference,
-Requires at least: 4.1
+Requires at least: 6.2
Tested up to: 6.7
-Stable tag: 1.7
+Stable tag: 2.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -18,19 +18,19 @@ You will find the event id and the user id in your eveeno backend in Event-Einst
= Examples =
Embedding a registration form:
`
-[eveeno show="form" eventid="123456789" width="95%" height="1000px"]
+[eveeno style="form" event="123456789" width="95%" height="1000px"]
`
Embedding an event list as a table:
`
-[eveeno show="table" userid="1234" width="95%" height="400px"]
+[eveeno style="table" user="1234" width="95%" height="400px"]
`
Embedding an event list in grid view:
`
-[eveeno show="grid" userid="1234" width="95%" height="400px"]
+[eveeno style="grid" user="1234" width="95%" height="400px"]
`
Embedding a short event list:
`
-[eveeno show="list" userid="1234" width="95%" height="400px"]
+[eveeno style="list" user="1234" width="95%" height="400px"]
`
= Additional Shortcode Parameters =
`
@@ -46,40 +46,5 @@ apikey=""
== Installation ==
1. Upload `eveeno.php` and eventually the `languages` folder to the `/wp-content/plugins/eveeno` directory.
-1. Activate the plugin through the 'Plugins' menu in WordPress.
-1. Place a shortcode in your page or post.
-
-== Changelog ==
-
-= 1.8 =
-* Bugfixes
-
-= 1.7 =
-* Plugin Check
-* tested with WordPress 6.7
-
-= 1.6 =
-* Minor layout update
-* tested with WordPress 6.5
-
-= 1.5 =
-* Removed shortcode parameter defaults
-* tested with WordPress 5.8.2
-
-= 1.4 =
-* New Shortcode parameters: period, term, notterm, lang, sort, scope, apikey
-* tested with WordPress 5.6
-
-= 1.3 =
-* layout optimization
-* tested with WordPress 4.9.7
-
-= 1.2 =
-* Added shortcodes for event shortlist (list)
-
-= 1.1 =
-* Added shortcodes for event lists (table and grid view)
-* Changed name parameter to id as event names may change
-
-= 1.0 =
-* First release: shortcode for registration forms
+2. Activate the plugin through the 'Plugins' menu in WordPress.
+3. Place a shortcode in your page or post.