</span> </li> <?php if (isset($property[FEPS_META_FORM]) && !empty($forms[$property[FEPS_META_FORM]]['can_manage_feps']) && $forms[$property[FEPS_META_FORM]]['can_manage_feps'] == 'true') { ?> <li class="<?php wpp_css('property_overview::actions', 'actions'); ?> "> <ul class="clearfix"> <li> <a class="<?php wpp_css('property_overview::button', 'button wpp_edit'); ?> " href="<?php echo class_wpp_feps::get_edit_feps_permalink($property['ID'], 'edit'); ?> "><?php _e('Edit', ud_get_wp_property()->domain); ?> </a> </li> <li> <a class="<?php wpp_css('property_overview::button', 'button'); ?> " href="<?php echo WPP_F::base_url(FEPS_VIEW_PAGE, array('feps' => $property['ID'], 'hash' => $property['wpp::feps::pending_hash'], 'action' => 'remove')); ?> " onclick="return confirm('<?php _e('Are you sure?', ud_get_wp_property()->domain);
/** * * @author peshkov@UD * @since 1.38 */ public static function feps_post_created($post_id, $args = array()) { global $wp_post_statuses; $notification = self::_notification_template(); $_property = WPP_F::get_property($post_id, array('get_children' => 'false')); $user_id = $_property['post_author']; $user = get_user_by('id', $user_id); $notification['trigger_action'] = 'pending_property_added'; $notification['user'] = $user; $notification['subject'] = __('Submission Received', ud_get_wp_property()->domain); $notification['message'] = sprintf(__('Hello.%1$s%1$sYour %2$s has been received.%1$s%1$sYou can view it using this URL:%1$s[pending_url]', ud_get_wp_property()->domain), PHP_EOL, WPP_F::property_label('singular')); $notification['crm_log_message'] = sprintf(__('User submitted %1$s ([property_title]) using FEPS.', ud_get_wp_property()->domain), WPP_F::property_label('singular')); $notification['data']['notification_type'] = __('Submission Received', ud_get_wp_property()->domain); $notification['data']['display_name'] = $user->data->display_name; $notification['data']['user_email'] = $user->data->user_email; $notification['data']['site_url'] = site_url(); $notification['data']['pending_url'] = class_wpp_feps::get_feps_permalink($_property, false); $notification['data']['title'] = $notification['data']['property_title'] = $_property['post_title']; $notification['data']['status'] = @$wp_post_statuses[$_property['post_status']]->label; $notification = WPP_F::array_merge_recursive_distinct($notification, $args); self::_send_notification($notification); }