/** * * @param array $options_array { * @type string $extra_meta_inputs should be EE_Form_Section_Validatable[] which * will be _subsections and will be saved as extra meta on the payment method object; * @type EE_PMT_Base $payment_method_type the payment method type this form is for * @see EE_Model_Form_Section::__construct() for more * } */ public function __construct($options_array = array()) { $this->_model = EEM_Payment_Method::instance(); $this->_options_array = $options_array; if (isset($options_array['payment_method_type'])) { $this->_payment_method_type = $options_array['payment_method_type']; } $options_array = $this->_options_array; if (isset($options_array['extra_meta_inputs'])) { $this->_extra_meta_inputs = array_merge($this->_extra_meta_inputs, $options_array['extra_meta_inputs']); } if ($this->_extra_meta_inputs) { $this->_subsections = array_merge($this->_subsections, $this->_extra_meta_inputs); } $this->_subsections['PMD_button_url'] = new EE_Admin_File_Uploader_Input(array('html_label_text' => __('Button URL', 'event_espresso'))); $this->_subsections['PMD_scope'] = new EE_Checkbox_Multi_Input(EEM_Payment_Method::instance()->scopes(), array('html_label_text' => $this->_model->field_settings_for('PMD_scope')->get_nicename() . EEH_Template::get_help_tab_link('payment_methods_overview'))); //setup the currency options $this->_subsections['Currency'] = new EE_Select_Multi_Model_Input(EEM_Currency::instance()->get_all_currencies_usable_by($this->_payment_method_type), array('html_label_text' => __('Currencies Supported', 'event_espresso'), 'required' => TRUE)); $this->_subsections['PMD_order'] = new EE_Text_Input(array('html_help_text' => __('Lowest numbers will be shown first', 'event_espresso'), 'normalization_strategy' => new EE_Int_Normalization(), 'validation_strategies' => array(new EE_Int_Validation_Strategy()), 'default' => 0)); $this->_layout_strategy = new EE_Admin_Two_Column_Layout(); parent::__construct($options_array); }
/** * _recaptcha_main_settings * * @access protected * @return EE_Form_Section_Proper */ protected static function _recaptcha_settings_form() { return new EE_Form_Section_Proper(array('name' => 'recaptcha_settings_form', 'html_id' => 'recaptcha_settings_form', 'layout_strategy' => new EE_Div_Per_Section_Layout(), 'subsections' => apply_filters('FHEE__EED_Recaptcha___recaptcha_settings_form__form_subsections', array('main_settings_hdr' => new EE_Form_Section_HTML(EEH_HTML::h2(__('reCAPTCHA Anti-spam Settings', 'event_espresso') . EEH_Template::get_help_tab_link('recaptcha_info'))), 'main_settings' => EED_Recaptcha::_recaptcha_main_settings(), 'appearance_settings_hdr' => new EE_Form_Section_HTML(EEH_HTML::h2(__('reCAPTCHA Appearance', 'event_espresso'))), 'appearance_settings' => EED_Recaptcha::_recaptcha_appearance_settings(), 'required_fields_note' => new EE_Form_Section_HTML(EEH_HTML::p(__('All fields marked with a * are required fields', 'event_espresso'), '', 'grey-text')))))); }
/** * This returns a generated link that will load the related help tab. * * * @param string $help_tab_id the id for the connected help tab * @param string $icon_style (optional) include css class for the style you want to use for the help icon. * @param string $help_text (optional) send help text you want to use for the link if default not to be used * @uses EEH_Template::get_help_tab_link() * @return string generated link */ protected function _get_help_tab_link($help_tab_id, $icon_style = FALSE, $help_text = FALSE) { return EEH_Template::get_help_tab_link($help_tab_id, $this->page_slug, $this->_req_action, $icon_style, $help_text); }
?> </p> <br/><br/> </td> </tr> <tr> <th> <label for="event_list_id"> <strong> <?php _e('Event List', 'event_espresso'); ?> </strong> <?php echo EEH_Template::get_help_tab_link('event_list_cpt_info'); ?> <br /> <a href='<?php echo get_post_type_archive_link('espresso_events'); ?> '><?php _e("View", "event_espresso"); ?> </a> </label> </th> <td> <p class="description"> <?php echo __("Events are custom post types and use WordPress' normal archive pages for displaying events.", "event_espresso");
/** * The purpose of this function is to display information about Event Espresso data collection and a optin selection for extra data collecting by users. * @return string html. */ public static function espresso_data_collection_optin_text($extra = TRUE) { if (!$extra) { echo '<h2 class="ee-admin-settings-hdr" ' . (!$extra ? 'id="UXIP_settings"' : '') . '>' . __('User eXperience Improvement Program (UXIP)', 'event_espresso') . EEH_Template::get_help_tab_link('organization_logo_info') . '</h2>'; echo sprintf(__('%sPlease help us make Event Espresso better and vote for your favorite features.%s The %sUser eXperience Improvement Program (UXIP)%s, has been created so when you use Event Espresso you are voting for the features and settings that are important to you. The UXIP helps us understand how you use our products and services, track problems and in what context. If you opt-out of the UXIP you essentially elect for us to disregard how you use Event Espresso as we build new features and make changes. Participation in the program is completely voluntary but it is enabled by default. The end results of the UXIP are software improvements to better meet your needs. The data we collect will never be sold, traded, or misused in any way. %sPlease see our %sPrivacy Policy%s for more information.', 'event_espresso'), '<p><em>', '</em></p>', '<a href="http://eventespresso.com/about/user-experience-improvement-program-uxip/" target="_blank">', '</a>', '<br><br>', '<a href="http://eventespresso.com/about/privacy-policy/" target="_blank">', '</a>'); } else { $settings_url = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default'), admin_url('admin.php?page=espresso_general_settings')); $settings_url .= '#UXIP_settings'; echo sprintf(__('The Event Espresso UXIP feature is active on your site. For %smore info%s and to opt-out %sclick here%s.', 'event_espresso'), '<a href="http://eventespresso.com/about/user-experience-improvement-program-uxip/" traget="_blank">', '</a>', '<a href="' . $settings_url . '" target="_blank">', '</a>'); } }
/** * @return string html for the link to a help tab */ public function get_help_tab_link() { EE_Registry::instance()->load_helper('Template'); return EEH_Template::get_help_tab_link($this->get_help_tab_name()); }
_e('Country Details', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('country_details_info'); ?> </h2> <div id="country-details-dv"><?php echo $country_details_settings; ?> </div> </div> <div id="country-states-settings-dv"> <h2 class="ee-admin-settings-hdr"><?php _e('States/Provinces', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('country_states_info'); ?> </h2> <div id="country-states-dv"><?php echo $country_states_settings; ?> </div> </div> <div class="clear"></div> </div>
<?php } ?> </td> </tr> </tbody> </table> <br/><br/> <h4 class="ee-admin-settings-hdr"> <?php _e('Social Links', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('social_links_info'); ?> </h4> <p class="description"><?php _e('Enter any links to social accounts for your organization here', 'event_espresso'); ?> </p> <table class="form-table"> <tbody> <tr> <th> <label for="organization_facebook"> <?php _e('Facebook', 'event_espresso'); ?>
/** * Gets the form for all the settings related to this payment method type * @return EE_Payment_Method_Form */ public function generate_new_settings_form() { EE_Registry::instance()->load_helper('Template'); $form = new EE_Payment_Method_Form(array('extra_meta_inputs' => array('login_id' => new EE_Text_Input(array('html_label_text' => sprintf(__("Login ID %s", "event_espresso"), EEH_Template::get_help_tab_link(self::help_tab_link))))))); return $form; }
<?php echo EEH_Form_Fields::select_input('use_google_maps', $values, $map_settings->use_google_maps, 'id="ee-display-map-no-shortcodes"'); ?> </td> </tr> </tbody> </table> <h4 class="ee-admin-settings-hdr"> <?php _e('Reg Page Map Settings', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('gmaps_info'); ?> </h4> <table class="form-table"> <tbody> <tr> <th> <label for="event_details_map_width"> <?php _e('Set Map Width', 'event_espresso'); ?> </label> </th> <td>
/** * @return string html for the link to a help tab */ public function get_help_tab_link() { return EEH_Template::get_help_tab_link($this->get_help_tab_name()); }
?> </span></p> <?php } ?> </td> </tr> <tr> <th> <label for="QST_required_text"><?php _e('Required Text', 'event_espresso'); ?> </label> <?php echo EEH_Template::get_help_tab_link('required_text_info'); ?> </th> <td> <input type="text" class="regular-text" id="QST_required_text" name="QST_required_text" value="<?php $question->f('QST_required_text'); ?> "/> </td> </tr> </tbody> </table> <div class="clear"></div>
<p class="description"><?php _e('Show Group Name on Registration Page?', 'event_espresso'); ?> </p> </label> </td> </tr> <tr> <th> <label> <?php _e(' Show Description', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('show_group_description_info'); ?> </label> </th> <td> <label for="QSG_show_group_order"> <?php echo EEH_Form_Fields::select_input('QSG_show_group_desc', $values, $question_group->show_group_desc()); ?> <p class="description"><?php _e(' Show Group Description on Registration Page?', 'event_espresso'); ?> </p> </label> <input type="hidden" name="QSG_system" value="<?php echo $question_group->system_group();
<div class="padding"> <table class="form-table"> <tbody> <tr> <th> <label for="default_reg_status"> <?php _e('Default Registration Status', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('default_settings_status_help_tab'); ?> </label> </th> <td> <p><?php echo EEH_Form_Fields::select_input('default_reg_status', $reg_status_array, $default_reg_status); ?> </p> <p class="description"> <?php _e('This setting allows you to preselect what the default registration status setting is when creating an event. Note that changing this setting does NOT retroactively apply it to existing events.', 'event_espresso'); ?> </p> </td> </tr> <?php do_action('AHEE__event_settings__template', $template_args);
</p> </td> </tr> </tbody> </table> <?php } ?> <h2 class="ee-admin-settings-hdr"> <?php _e('Help Tour Global Activation', 'event_espresso'); ?> <span id="help_tour_activation"><?php echo EEH_Template::get_help_tab_link('help_tour_activation_info'); ?> </span> </h2> <table class="form-table"> <tbody> <tr> <th> <label> <?php _e('This toggles whether the Event Espresso help tours are active globally or not', 'event_espresso'); ?> </label> </th>
<?php echo EEH_Form_Fields::select('use_sortable_display_order', $use_sortable_display_order, $values, 'EED_Events_Single_use_sortable_display_order', 'EED_Events_Single_use_sortable_display_order'); ?> <p class="description "> <?php echo sprintf(__('%1$sPlease Note:%2$s%3$sIf you are currently using filters to customize the display order for elements within the Event Single page display, then you do NOT activate this feature until those filters have been removed or disabled. If this feature is activated while still using such filters, duplicate event content such as the ticket selector, datetimes, or venue information could be displayed on the frontend of the site. Please verify that this is not the case after activating this feature.', 'event_espresso'), '<span class="important-notice">', '</span>', '<br />'); ?> </p> </td> </tr> <tr> <th> <?php _e('Display Order', 'event_espresso'); echo EEH_Template::get_help_tab_link('display_addresses_in_reg_form_info'); ?> </th> <td> <?php wp_nonce_field('espresso_update_event_single_order', 'espresso_update_event_single_order_nonce', false); ?> <?php echo $event_single_display_order; ?> <p class="description"><?php _e('Drag and Drop the above to determine the display order of the Event Description, Date and Times, Ticket Selector, and Venue Information on the single event page.', 'event_espresso'); ?> </p>
protected function _display_settings() { ?> <tr> <th> <label><strong style="color:#F00"><?php _e('Please Note', 'event_espresso'); ?> </strong></label> </th> <td> <?php _e('You will need a PayPal Premier or Business account for the PayPal IPN to work correctly.', 'event_espresso'); ?> </td> </tr> <tr> <th><label for="paypal_id"> <?php _e('PayPal Email', 'event_espresso'); ?> </label></th> <td><input class="regular-text" type="text" name="paypal_id" size="35" id="paypal_id" value="<?php echo $this->_payment_settings['paypal_id']; ?> "> <br /> <span class="description"> <?php _e('Typically payment@yourdomain.com', 'event_espresso'); ?> </span></td> </tr> <tr> <th><label for="currency_format"> <?php _e('Country Currency', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('payment_methods_overview_paypalstandard_help_tab'); ?> </label></th> <td><select name="currency_format" data-placeholder="Choose a currency..."> <?php $currency = $this->_payment_settings['currency_format']; ?> <option value="USD" <?php echo $currency == "USD" ? 'selected="selected"' : ''; ?> > <?php _e('U.S. Dollars ($)', 'event_espresso'); ?> </option> <option value="GBP" <?php echo $currency == "GBP" ? 'selected="selected"' : ''; ?> > <?php _e('Pounds Sterling (£)', 'event_espresso'); ?> </option> <option value="CAD" <?php echo $currency == "CAD" ? 'selected="selected"' : ''; ?> > <?php _e('Canadian Dollars (C $)', 'event_espresso'); ?> </option> <option value="AUD" <?php echo $currency == "AUD" ? 'selected="selected"' : ''; ?> > <?php _e('Australian Dollars (A $)', 'event_espresso'); ?> </option> <option value="BRL" <?php echo $currency == "BRL" ? 'selected="selected"' : ''; ?> > <?php _e('Brazilian Real (only for Brazilian users)', 'event_espresso'); ?> </option> <option value="CHF" <?php echo $currency == "CHF" ? 'selected="selected"' : ''; ?> > <?php _e('Swiss Franc', 'event_espresso'); ?> </option> <option value="CZK" <?php echo $currency == "CZK" ? 'selected="selected"' : ''; ?> > <?php _e('Czech Koruna', 'event_espresso'); ?> </option> <option value="DKK" <?php echo $currency == "DKK" ? 'selected="selected"' : ''; ?> > <?php _e('Danish Krone', 'event_espresso'); ?> </option> <option value="EUR" <?php echo $currency == "EUR" ? 'selected="selected"' : ''; ?> > <?php _e('Euros (€)', 'event_espresso'); ?> </option> <option value="HKD" <?php echo $currency == "HKD" ? 'selected="selected"' : ''; ?> > <?php _e('Hong Kong Dollar ($)', 'event_espresso'); ?> </option> <option value="HUF" <?php echo $currency == "HUF" ? 'selected="selected"' : ''; ?> > <?php _e('Hungarian Forint', 'event_espresso'); ?> </option> <option value="ILS" <?php echo $currency == "ILS" ? 'selected="selected"' : ''; ?> > <?php _e('Israeli Shekel', 'event_espresso'); ?> </option> <option value="JPY" <?php echo $currency == "JPY" ? 'selected="selected"' : ''; ?> > <?php _e('Yen (¥)', 'event_espresso'); ?> </option> <option value="MXN" <?php echo $currency == "MXN" ? 'selected="selected"' : ''; ?> > <?php _e('Mexican Peso', 'event_espresso'); ?> </option> <option value="MYR" <?php echo $currency == "MYR" ? 'selected="selected"' : ''; ?> > <?php _e('Malaysian Ringgits (only for Malaysian users)', 'event_espresso'); ?> </option> <option value="NOK" <?php echo $currency == "NOK" ? 'selected="selected"' : ''; ?> > <?php _e('Norwegian Krone', 'event_espresso'); ?> </option> <option value="NZD" <?php echo $currency == "NZD" ? 'selected="selected"' : ''; ?> > <?php _e('New Zealand Dollar ($)', 'event_espresso'); ?> </option> <option value="PHP" <?php echo $currency == "PHP" ? 'selected="selected"' : ''; ?> > <?php _e('Philippine Pesos', 'event_espresso'); ?> </option> <option value="PLN" <?php echo $currency == "PLN" ? 'selected="selected"' : ''; ?> > <?php _e('Polish Zloty', 'event_espresso'); ?> </option> <option value="SEK" <?php echo $currency == "SEK" ? 'selected="selected"' : ''; ?> > <?php _e('Swedish Krona', 'event_espresso'); ?> </option> <option value="SGD" <?php echo $currency == "SGD" ? 'selected="selected"' : ''; ?> > <?php _e('Singapore Dollar ($)', 'event_espresso'); ?> </option> <option value="THB" <?php echo $currency == "THB" ? 'selected="selected"' : ''; ?> > <?php _e('Thai Baht', 'event_espresso'); ?> </option> <option value="TRY" <?php echo $currency == "TRY" ? 'selected="selected"' : ''; ?> > <?php _e('Turkish Lira (only for Turkish users)', 'event_espresso'); ?> </option> <option value="TWD" <?php echo $currency == "TWD" ? 'selected="selected"' : ''; ?> > <?php _e('Taiwan New Dollars', 'event_espresso'); ?> </option> </select></td> </tr> <tr> <th> <label for="pp_image_url"> <?php _e('Image URL', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('payment_methods_overview_paypalstandard_help_tab'); ?> </label> </th> <td> <span class='ee_media_uploader_area'> <img class="ee_media_image" src="<?php echo $this->_payment_settings['image_url']; ?> " /> <input class="ee_media_url" type="text" name="image_url" size='34' value="<?php echo $this->_payment_settings['image_url']; ?> "> <a href="#" class="ee_media_upload"><img src="images/media-button-image.gif" alt="Add an Image"></a> </span><br/> <span class="description"> <?php _e('Used for your business/personal logo on the PayPal page', 'event_espresso'); ?> </span> </td> </tr> <tr> <th><label for="use_sandbox"> <?php _e('Use the Debugging Feature and the PayPal Sandbox', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('payment_methods_overview_paypalstandard_help_tab'); ?> </label></th> <td><?php echo EEH_Form_Fields::select_input('use_sandbox', $this->_yes_no_options, $this->_payment_settings['use_sandbox']); ?> </td> </tr> <tr> <th> <label for="no_shipping"> <?php _e('Shipping Address Options', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('payment_methods_overview_paypalstandard_help_tab'); ?> </label> </th> <td> <?php $shipping_values = array(array('id' => '1', 'text' => __('Do not prompt for an address', 'event_espresso')), array('id' => '0', 'text' => __('Prompt for an address, but do not require one', 'event_espresso')), array('id' => '2', 'text' => __('Prompt for an address, and require one', 'event_espresso'))); echo EEH_Form_Fields::select_input('no_shipping', $shipping_values, $this->_payment_settings['no_shipping']); ?> </td> </tr> <?php }
protected function _get_dtt_attached_tickets_row($dttrow, $dtt, $datetime_tickets, $all_tickets, $default) { $template_args = array('dtt_row' => $default ? 'DTTNUM' : $dttrow, 'event_datetimes_name' => $default ? 'DTTNAMEATTR' : 'edit_event_datetimes', 'DTT_description' => $default ? '' : $dtt->description(), 'datetime_tickets_list' => $default ? '<li class="hidden"></li>' : '', 'show_tickets_row' => ' style="display:none;"', 'add_new_datetime_ticket_help_link' => EEH_Template::get_help_tab_link('add_new_ticket_via_datetime', $this->_adminpage_obj->page_slug, $this->_adminpage_obj->get_req_action(), FALSE, FALSE), 'DTT_ID' => $default ? '' : $dtt->ID()); //need to setup the list items (but only if this isnt' a default skeleton setup) if (!$default) { $tktrow = 1; foreach ($all_tickets as $ticket) { $template_args['datetime_tickets_list'] .= $this->_get_datetime_tickets_list_item($dttrow, $tktrow, $dtt, $ticket, $datetime_tickets, $default); $tktrow++; } } //filter template args at this point $template_args = apply_filters('FHEE__espresso_events_Pricing_Hooks___get_dtt_attached_ticket_row__template_args', $template_args, $dttrow, $dtt, $datetime_tickets, $all_tickets, $default, $this->_is_creating_event); $template = PRICING_TEMPLATE_PATH . 'event_tickets_datetime_attached_tickets_row.template.php'; return EEH_Template::display_template($template, $template_args, TRUE); }
?> <p class="description"> <?php _e('Send debugging data to the remote URL below.', 'event_espresso'); ?> </p> </td> </tr> <tr> <th> <?php _e('Remote Logging URL', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('remote_logging_url_info'); ?> </th> <td> <input name="remote_logging_url" id="remote_logging_url" size="20" class="regular-text" type="text" value="<?php echo $remote_logging_url; ?> " /> <p class="description"> <?php _e('Example: http://requestb.in/MY_UNIQUE_ID', 'event_espresso'); ?> </p> </td> </tr>
/** * _email_validation_settings_form * * @access protected * @return EE_Form_Section_Proper */ protected function _email_validation_settings_form() { return new EE_Form_Section_Proper(array('name' => 'email_validation_settings', 'html_id' => 'email_validation_settings', 'layout_strategy' => new EE_Admin_Two_Column_Layout(), 'subsections' => array('email_validation_hdr' => new EE_Form_Section_HTML(EEH_HTML::h2(__('Email Validation Settings', 'event_espresso'))), 'email_validation_level' => new EE_Select_Input(array('basic' => __('Basic', 'event_espresso'), 'wp_default' => __('WordPress Default', 'event_espresso'), 'i18n' => __('International', 'event_espresso'), 'i18n_dns' => __('International + DNS Check', 'event_espresso')), array('html_label_text' => __('Email Validation Level', 'event_espresso') . EEH_Template::get_help_tab_link('email_validation_info'), 'html_help_text' => __('These levels range from basic validation ( ie: text@text.text ) to more advanced checks against international email addresses (ie: üñîçøðé@example.com ) with additional MX and A record checks to confirm the domain actually exists. More information on on each level can be found within the help section.', 'event_espresso'), 'default' => isset(EE_Registry::instance()->CFG->registration->email_validation_level) ? EE_Registry::instance()->CFG->registration->email_validation_level : 'wp_default', 'required' => false))))); }
echo EEH_Template::get_help_tab_link('description_field_info'); ?> </th> <td> <textarea class="regular-text" id="PRC_desc" name="PRC_desc" rows="5" ><?php echo $price->desc(); ?> </textarea><br/> </td> </tr> <tr valign="top"> <th><label for="PRC_amount"><?php _e('Amount', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('amount_field_info'); ?> </label></th> <td> <input class="small-text ee-numeric" type="text" id="PRC_amount" name="PRC_amount" value="<?php echo $price->amount(); ?> "/> </td> </tr> </tbody> </table> <div class="clear"></div> </div>
</th> <td> <?php echo EEH_Form_Fields::select('display_venue', $display_venue, $values, 'EED_Events_Archive_display_venue', 'EED_Events_Archive_display_venue'); ?> </td> </tr> <tr> <th> <label for="EED_Events_Archive_display_expired_events"> <?php _e('Display Expired Events', 'event_espresso'); ?> <?php echo EEH_Template::get_help_tab_link('display_expired_events_info'); ?> </label> </th> <td> <?php echo EEH_Form_Fields::select('expired_events', $display_expired_events, $values, 'EED_Events_Archive_display_expired_events', 'EED_Events_Archive_display_expired_events'); ?> </td> </tr> <tr> <th> <label for="EED_Events_Archive_reset_event_list_settings"> <?php _e('Reset Event List Settings', 'event_espresso');
<tr> <th><?php _e("Mijireh Checkout Page Design", 'event_espresso'); echo EEH_Template::get_help_tab_link('ee_mijireh_help_tab'); ?> </th> <td> <a href="?mijireh_edit_slurp_page=true"><?php _e("Edit Slurp Page", 'event_espresso'); ?> </a> </td> </tr>