Skip to content

Commit

Permalink
Namechanges
Browse files Browse the repository at this point in the history
  • Loading branch information
Dernerd committed Jun 30, 2024
1 parent 7a46227 commit 168d3de
Show file tree
Hide file tree
Showing 169 changed files with 42,692 additions and 30,010 deletions.
86 changes: 43 additions & 43 deletions admin/class-eab-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function __construct() {
add_action('admin_enqueue_scripts', array($this, 'admin_enqueue_scripts') );
add_action('admin_print_styles', array($this, 'admin_print_styles') );

add_action('manage_incsub_event_posts_custom_column', array($this, 'manage_posts_custom_column'));
add_filter('manage_incsub_event_posts_columns', array($this, 'manage_posts_columns'), 99);
add_action('manage_psource_event_posts_custom_column', array($this, 'manage_posts_custom_column'));
add_filter('manage_psource_event_posts_columns', array($this, 'manage_posts_columns'), 99);
}

private function includes() {
Expand All @@ -37,24 +37,24 @@ function admin_init() {
if (get_option('eab_activation_redirect', false)) {
delete_option('eab_activation_redirect');
if (!(is_multisite() && is_super_admin()) || !is_network_admin()) {
wp_redirect('edit.php?post_type=incsub_event&page=eab_welcome');
wp_redirect('edit.php?post_type=psource_event&page=eab_welcome');
}
}

// Register scripts/styles
wp_register_script('eab_jquery_timepicker', EAB_PLUGIN_URL . 'js/jquery.ui.timepicker.js', array('jquery'), Eab_EventsHub::CURRENT_VERSION);
wp_register_script('eab_admin_js', EAB_PLUGIN_URL . 'js/eab-admin.js', array('jquery'), Eab_EventsHub::CURRENT_VERSION);
wp_register_style('eab_jquery_timepicker', EAB_PLUGIN_URL . 'css/jquery.ui.timepicker.css', null, Eab_EventsHub::CURRENT_VERSION);
wp_register_style('eab_admin', EAB_PLUGIN_URL . 'css/admin.css', null, Eab_EventsHub::CURRENT_VERSION);
wp_register_style('eab_admin', EAB_PLUGIN_URL . 'css/admin.min.css', null, Eab_EventsHub::CURRENT_VERSION);

if (defined('AGM_PLUGIN_URL')) {
add_action('admin_print_scripts-post.php', array($this, 'js_editor_button'));
add_action('admin_print_scripts-post-new.php', array($this, 'js_editor_button'));
}

$event_localized = array(
'view_all_bookings' => __('View all RSVPs', Eab_EventsHub::TEXT_DOMAIN),
'back_to_gettting_started' => __('Back to getting started', Eab_EventsHub::TEXT_DOMAIN),
'view_all_bookings' => __('Zeige Reaktionen', 'eab'),
'back_to_gettting_started' => __('Zurück zur Übersicht', 'eab'),
'start_of_week' => get_option('start_of_week'),
);

Expand All @@ -66,7 +66,7 @@ function check_permalink_format () {
if (get_option('permalink_structure')) return;
echo '<div class="error"><p>' .
sprintf(
__('You must must update your permalink structure to something other than default to use Events. <a href="%s">You can do so here.</a>', Eab_EventsHub::TEXT_DOMAIN),
__('Du musst Deine Permalink-Struktur auf eine andere als die Standardstruktur aktualisieren, um PS-Events verwenden zu können. <a href="%s">Erledige das gleich hier.</a>', 'eab'),
admin_url('options-permalink.php')
) .
'</p></div>';
Expand Down Expand Up @@ -100,31 +100,31 @@ function js_editor_button() {
wp_enqueue_script('thickbox');
wp_enqueue_script('eab_editor', EAB_PLUGIN_URL . 'js/editor.js', array('jquery'));
wp_localize_script('eab_editor', 'eab_l10nEditor', array(
'loading' => __('Loading maps... please wait', Eab_EventsHub::TEXT_DOMAIN),
'use_this_map' => __('Insert this map', Eab_EventsHub::TEXT_DOMAIN),
'preview_or_edit' => __('Preview/Edit', Eab_EventsHub::TEXT_DOMAIN),
'delete_map' => __('Delete', Eab_EventsHub::TEXT_DOMAIN),
'add_map' => __('Add Map', Eab_EventsHub::TEXT_DOMAIN),
'existing_map' => __('Existing map', Eab_EventsHub::TEXT_DOMAIN),
'no_existing_maps' => __('No existing maps', Eab_EventsHub::TEXT_DOMAIN),
'new_map' => __('Create new map', Eab_EventsHub::TEXT_DOMAIN),
'advanced' => __('Advanced mode', Eab_EventsHub::TEXT_DOMAIN),
'advanced_mode_activate_help' => __('Activate Advanced mode to select individual maps to merge into one new map or to batch delete maps', Eab_EventsHub::TEXT_DOMAIN),
'advanced_mode_help' => __('To create a new map from several maps select the maps you want to use and click Merge locations', Eab_EventsHub::TEXT_DOMAIN),
'advanced_off' => __('Exit advanced mode', Eab_EventsHub::TEXT_DOMAIN),
'merge_locations' => __('Merge locations', Eab_EventsHub::TEXT_DOMAIN),
'batch_delete' => __('Batch delete', Eab_EventsHub::TEXT_DOMAIN),
'new_map_intro' => __('Create a new map which can be inserted into this post or page. Once you are done you can manage all maps below', Eab_EventsHub::TEXT_DOMAIN),
'loading' => __('Lade Karten... einen Augenblick, bitte', 'eab'),
'use_this_map' => __('Diese Karte einfügen', 'eab'),
'preview_or_edit' => __('Vorschau/Bearbeiten', 'eab'),
'delete_map' => __('Löschen', 'eab'),
'add_map' => __('Karte hinzufügen', 'eab'),
'existing_map' => __('Vorhandene Karten', 'eab'),
'no_existing_maps' => __('Keine Karten', 'eab'),
'new_map' => __('Neue Karte erstellen', 'eab'),
'advanced' => __('Erweiterter Modus', 'eab'),
'advanced_mode_activate_help' => __('Aktiviere den erweiterten Modus, um einzelne Karten auszuwählen, die zu einer neuen Karte zusammengeführt werden sollen, oder um Karten im Stapel zu löschen', 'eab'),
'advanced_mode_help' => __('Um eine neue Karte aus mehreren Karten zu erstellen, wähle die Karten aus, welche Du verwenden möchtest, und klicke auf Standorte zusammenführen', 'eab'),
'advanced_off' => __('Erweiterten Modus verlassen', 'eab'),
'merge_locations' => __('Standorte zusammenführen', 'eab'),
'batch_delete' => __('Batch löschen', 'eab'),
'new_map_intro' => __('Erstelle eine neue Karte, die in diesen Beitrag oder diese Seite eingefügt werden kann. Sobald Du fertig bist, kannst Du alle unten stehenden Karten verwalten', 'eab'),
));
}

private function _check_admin_page_id () {
$_page_ids = array (
'incsub_event_page_eab_welcome',
'edit-incsub_event',
'incsub_event',
'incsub_event_page_eab_shortcodes',
'incsub_event_page_eab_settings',
'psource_event_page_eab_welcome',
'edit-psource_event',
'psource_event',
'psource_event_page_eab_shortcodes',
'psource_event_page_eab_settings',
);
$screen = get_current_screen();
if (!in_array($screen->id, $_page_ids)) return false;
Expand All @@ -139,7 +139,7 @@ private function _check_admin_page_id () {
function admin_menus() {
global $submenu;

$root_key = 'edit.php?post_type=incsub_event';
$root_key = 'edit.php?post_type=psource_event';

if (get_option('eab_setup', false) == false) {

Expand Down Expand Up @@ -171,11 +171,11 @@ function manage_posts_custom_column($column) {
$yes = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM ".Eab_EventsHub::tablename(Eab_EventsHub::BOOKING_TABLE)." WHERE event_id = %d AND status = %s;", $event->get_id(), Eab_EventModel::BOOKING_YES));
$no = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM ".Eab_EventsHub::tablename(Eab_EventsHub::BOOKING_TABLE)." WHERE event_id = %d AND status = %s;", $event->get_id(), Eab_EventModel::BOOKING_NO));
$maybe = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM ".Eab_EventsHub::tablename(Eab_EventsHub::BOOKING_TABLE)." WHERE event_id = %d AND status = %s;", $event->get_id(), Eab_EventModel::BOOKING_MAYBE));
printf('<b>' . __('Attending / Undecided', Eab_EventsHub::TEXT_DOMAIN) . ':</b> %d / %d<br />', $yes, $maybe);
printf('<b>' . __('Not Attending', Eab_EventsHub::TEXT_DOMAIN) . ':</b> %d', $no);
printf('<b>' . __('Teilnahme / Unentschlossen', 'eab') . ':</b> %d / %d<br />', $yes, $maybe);
printf('<b>' . __('Nicht teilnehmen', 'eab') . ':</b> %d', $no);
echo '&nbsp;';
echo '<a class="button" href="' . admin_url('index.php?eab_export=attendees&event_id='. $event->get_id()) . '" class="eab-export_attendees">' .
__('Export', Eab_EventsHub::TEXT_DOMAIN) .
__('Exportieren', 'eab') .
'</a>';
break;
case "start":
Expand All @@ -192,7 +192,7 @@ function manage_posts_custom_column($column) {
$title = @$repeats[$event->get_recurrence()];
$start = date_i18n($df, $event->get_recurrence_starts());
$end = date_i18n($df, $event->get_recurrence_ends());
printf(__("From %s, repeats every %s until %s", Eab_EventsHub::TEXT_DOMAIN), $start, $title, $end);
printf(__("Vom %s, wiederholt alle %s bis zum %s", 'eab'), $start, $title, $end);
}
break;
case "venue":
Expand All @@ -211,28 +211,28 @@ function manage_posts_custom_column($column) {
$status = $statuses ? ' - <span class="post-state">' . join(', ', $statuses) . '</span>' : '';

$title = (current_user_can($post_type_object->cap->edit_post, $event->get_id()) && 'trash' != $post->post_status)
? '<strong>' . '<a class="row-title" href="' . $edit_link .'" title="' . esc_attr(sprintf(__('Edit &#8220;%s&#8221;' ), $event->get_title())) . '">' . $event->get_title() . '</a>&nbsp;' . $status . '</strong>'
? '<strong>' . '<a class="row-title" href="' . $edit_link .'" title="' . esc_attr(sprintf(__('Bearbeite &#8220;%s&#8221;' ), $event->get_title())) . '">' . $event->get_title() . '</a>&nbsp;' . $status . '</strong>'
: '<strong>' . $event->get_title() . '&nbsp;' . $status . '</strong>'
;

if (current_user_can($post_type_object->cap->edit_post, $event->get_id()) && 'trash' != $post->post_status) {
$actions['edit'] = '<a title="' . esc_attr(__('Edit Event', Eab_EventsHub::TEXT_DOMAIN)) . '" href="' . $edit_link . '">' . __('Edit') . '</a>';
if (!$event->is_recurring()) $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr(__( 'Edit this Event inline', Eab_EventsHub::TEXT_DOMAIN)) . '">' . __('Quick&nbsp;Edit') . '</a>';
$actions['edit'] = '<a title="' . esc_attr(__('Veranstaltung bearbeiten', 'eab')) . '" href="' . $edit_link . '">' . __('Bearbeiten') . '</a>';
if (!$event->is_recurring()) $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr(__( 'Bearbeite dieses Ereignis inline', 'eab')) . '">' . __('Schnelles&nbsp;Bearbeiten') . '</a>';
}

if (current_user_can($post_type_object->cap->delete_post, $event->get_id())) {
if ('trash' == $post->post_status) {
$actions['untrash'] = sprintf( '<a href="%s" title="%s" aria-label="%s">%s</a>',
wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
'Restore this Event from the Trash',
esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $title ) ),
__( 'Restore' )
esc_attr( sprintf( __( 'Wiederhergestellt &#8220;%s&#8221; aus dem Papierkorb' ), $title ) ),
__( 'Wiederherstellen' )
);
} else if (EMPTY_TRASH_DAYS) {
$actions['trash'] = '<a class="submitdelete" title="' . esc_attr(__('Move this Event to the Trash', Eab_EventsHub::TEXT_DOMAIN)) . '" href="' . get_delete_post_link($event->get_id()) . '">' . __('Trash') . '</a>';
$actions['trash'] = '<a class="submitdelete" title="' . esc_attr(__('Verschiebe dieses Ereignis in den Papierkorb', 'eab')) . '" href="' . get_delete_post_link($event->get_id()) . '">' . __('Papierkorb') . '</a>';
}
if ('trash' == $post->post_status || !EMPTY_TRASH_DAYS) {
$actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Delete this Event permanently', Eab_EventsHub::TEXT_DOMAIN)) . "' href='" . get_delete_post_link($event->get_id(), '', true ) . "'>" . __('Delete Permanently') . "</a>";
$actions['delete'] = "<a class='submitdelete' title='" . esc_attr(__('Lösche dieses Ereignis dauerhaft', 'eab')) . "' href='" . get_delete_post_link($event->get_id(), '', true ) . "'>" . __('Dauerhaft löschen') . "</a>";
}
}

Expand All @@ -244,7 +244,7 @@ function manage_posts_custom_column($column) {
else $event_id = $children[0]->get_id();
}
if ($event_id) {
$actions['view'] = '<a href="' . get_permalink($event_id) . '" title="' . esc_attr(sprintf(__('View &#8220;%s&#8221;'), $event->get_title())) . '" rel="permalink">' . __('View') . '</a>';
$actions['view'] = '<a href="' . get_permalink($event_id) . '" title="' . esc_attr(sprintf(__('Ansehen &#8220;%s&#8221;'), $event->get_title())) . '" rel="permalink">' . __('Ansehen') . '</a>';
}
}

Expand All @@ -269,11 +269,11 @@ function manage_posts_columns($old_columns) {
$columns['icl_translations'] = $old_columns['icl_translations'];
}

$columns['start'] = __('When', Eab_EventsHub::TEXT_DOMAIN);
$columns['venue'] = __('Where', Eab_EventsHub::TEXT_DOMAIN);
$columns['start'] = __('Wann', 'eab');
$columns['venue'] = __('Wo', 'eab');
$columns['author'] = $old_columns['author'];
$columns['date'] = $old_columns['date'];
$columns['attendees'] = __('RSVPs', Eab_EventsHub::TEXT_DOMAIN);
$columns['attendees'] = __('Reaktionen', 'eab');

return $columns;
}
Expand Down
58 changes: 28 additions & 30 deletions admin/class-eab-get-started-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@


class Eab_Admin_Get_Started_Menu {

private $_api;
private $_data;

private $_data; // Deklaration der Eigenschaften
private $_api;
public function __construct( $parent ) {
$id = add_submenu_page(
$parent,
__("Get Started", eab_domain()),
__("Get started", eab_domain()),
__("Eventboard", eab_domain()),
__("Eventboard", eab_domain()),
'manage_options',
'eab_welcome',
array($this,'render')
Expand All @@ -24,53 +22,53 @@ public function __construct( $parent ) {
function render() {
?>
<div class="wrap">
<h1><?php _e('Getting started', eab_domain() ); ?></h1>
<h1><?php _e('PS-Events Dashboard', eab_domain() ); ?></h1>

<p>
<?php _e('Events gives you a flexible WordPress-based system for organizing parties, dinners, fundraisers - you name it.', eab_domain() ) ?>
<?php _e('PS-Events fügt Deiner Webseite oder Deiner Multisite ein mächtiges Events & Bookings System hinzu.', eab_domain() ) ?>
</p>

<div class="eab-metaboxcol metabox-holder eab-metaboxcol-one eab-metaboxcol-center">
<div id="eab-actionlist" class="eab-metabox postbox">
<h3 class="eab-hndle"><?php _e('Getting Started', eab_domain() ); ?></h3>
<h3 class="eab-hndle"><?php _e('Loslegen', eab_domain() ); ?></h3>
<div class="eab-inside">
<div class="eab-note"><?php _e('You\'re almost ready! Follow these steps and start creating events on your WordPress site.', eab_domain() ); ?></div>
<div class="eab-note"><?php _e('Du bist fast bereit! Befolge diese Schritte und erstelle Ereignisse auf Deiner WordPress-Seite.', eab_domain() ); ?></div>
<ol>
<li>
<?php _e('Before creating an event, you\'ll need to configure some basic settings, like your root slug and payment options.', eab_domain() ); ?>
<a href="<?php echo esc_url('edit.php?post_type=incsub_event&page=eab_settings&eab_step=1'); ?>" class="eab-goto-step button" id="eab-goto-step-0" ><?php _e('Configure Your Settings', eab_domain() ); ?></a>
<?php _e('Bevor Du ein Ereignis erstellst, musst Du einige Grundeinstellungen konfigurieren, z. B. Deinen Root-Slug und die Zahlungsoptionen.', eab_domain() ); ?>
<a href="<?php echo esc_url('edit.php?post_type=psource_event&page=eab_settings&eab_step=1'); ?>" class="eab-goto-step button" id="eab-goto-step-0" ><?php _e('Konfiguriere Deine Einstellungen', eab_domain() ); ?></a>
</li>
<li>
<?php _e('Now you can create your first event.', eab_domain() ); ?>
<a href="<?php echo esc_url('post-new.php?post_type=incsub_event&eab_step=2'); ?>" class="eab-goto-step button"><?php _e('Add an Event', eab_domain() ); ?></a>
<?php _e('Jetzt kannst Du Dein erstes Ereignis erstellen.', eab_domain() ); ?>
<a href="<?php echo esc_url('post-new.php?post_type=psource_event&eab_step=2'); ?>" class="eab-goto-step button"><?php _e('Ereignis hinzufügen', eab_domain() ); ?></a>
</li>
<li>
<?php _e('You can view and edit your existing events whenever you like.', eab_domain() ); ?>
<a href="<?php echo esc_url('edit.php?post_type=incsub_event&eab_step=3'); ?>" class="eab-goto-step button"><?php _e('Edit Events', eab_domain() ); ?></a>
<?php _e('Du kannst vorhandenen Ereignisse jederzeit anzeigen und bearbeiten.', eab_domain() ); ?>
<a href="<?php echo esc_url('edit.php?post_type=psource_event&eab_step=3'); ?>" class="eab-goto-step button"><?php _e('Ereignisse bearbeiten', eab_domain() ); ?></a>
</li>
<li>
<?php _e('The archive displays a list of upcoming events on your site.', eab_domain() ); ?>
<a href="<?php echo home_url($this->_data->get_option('slug')) . '/'; ?>" class="eab-goto-step button"><?php _e('Events Archive', eab_domain() ); ?></a>
<?php _e('Das Archiv zeigt eine Liste der bevorstehenden Ereignisse auf Deiner Seite an.', eab_domain() ); ?>
<a href="<?php echo home_url($this->_data->get_option('slug')) . '/'; ?>" class="eab-goto-step button"><?php _e('Veranstaltungsarchiv', eab_domain() ); ?></a>
</li>
</ol>
</div>
</div>
</div>


<div class="eab-metaboxcol metabox-holder eab-metaboxcol-one eab-metaboxcol-center">
<div id="eab-helpbox" class="eab-metabox postbox">
<h3 class="eab-hndle"><?php _e('Need help?', eab_domain() ); ?></h3>
<div class="eab-inside">
<ol>
<li><a href="https://cp-psource.github.io/events-and-bookings/"><?php _e('Check out the Events plugin page on PSOURCE', eab_domain() ); ?></a></li>
<li><a href="https://github.com/cp-psource/events-and-bookings/discussions"><?php _e('Post a question about this plugin on our support forums', eab_domain() ); ?></a></li>
<li><a href="https://github.com/cp-psource/events-and-bookings/issues"><?php _e('Bug Report', eab_domain() ); ?></a></li>
</ol>
<?php if (!defined('PSOURCE_REMOVE_BRANDING') || !constant('PSOURCE_REMOVE_BRANDING')) { ?>
<div class="eab-metaboxcol metabox-holder eab-metaboxcol-one eab-metaboxcol-center">
<div id="eab-helpbox" class="eab-metabox postbox">
<h3 class="eab-hndle"><?php _e('Brauchst Du Hilfe?', eab_domain() ); ?></h3>
<div class="eab-inside">
<ol>
<li><a href="https://n3rds.work/piestingtal_source/ps-events-eventmanagement-fuer-wordpress/"><?php _e('Projektseite auf Webmasterservice N3rds@Work', eab_domain() ); ?></a></li>
<li><a href="https://n3rds.work/forums/forum/psource-support-foren/ps-forum-supportforum/"><?php _e('Stelle eine Frage zu diesem Plugin in unseren Support-Foren', eab_domain() ); ?></a></li>
<li><a href="https://github.com/piestingtal-source/ps-events"><?php _e('GitHub Repo', eab_domain() ); ?></a></li>
</ol>
</div>
</div>
</div>
</div>

<?php } ?>

<div class="clear"></div>

Expand Down
Loading

0 comments on commit 168d3de

Please sign in to comment.