| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/plugins/events-manager/templates/forms/event/ |
Upload File : |
<?php /* * This file is called by templates/forms/event-editor.php to display attribute fields on your event form on your website. * You can override this file by copying it to /wp-content/themes/yourtheme/plugins/events-manager/forms/event/ and editing it there. */ global $EM_Event; /* @var $EM_Event EM_Event */ $attributes = em_get_attributes(); $has_deprecated = false; ?> <?php if( count( $attributes['names'] ) > 0 ) : ?> <?php foreach( $attributes['names'] as $name) : ?> <div class="event-attributes"> <label for="em_attributes[<?php echo esc_attr($name) ?>]"><?php echo esc_html($name) ?></label> <?php if( count($attributes['values'][$name]) > 1 ): ?> <select name="em_attributes[<?php echo esc_html($name) ?>]"> <?php foreach($attributes['values'][$name] as $attribute_val): ?> <?php if( is_array($EM_Event->event_attributes) && array_key_exists($name, $EM_Event->event_attributes) && $EM_Event->event_attributes[$name]==$attribute_val ): ?> <option selected="selected"><?php echo esc_html($attribute_val); ?></option> <?php else: ?> <option><?php echo esc_html($attribute_val); ?></option> <?php endif; ?> <?php endforeach; ?> </select> <?php else: ?> <input type="text" name="em_attributes[<?php echo esc_attr($name) ?>]" value="<?php echo array_key_exists($name, $EM_Event->event_attributes) ? esc_attr($EM_Event->event_attributes[$name]):''; ?>" /> <?php endif; ?> </div> <?php endforeach; ?> <?php endif; ?>