• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP epl__函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中epl__函数的典型用法代码示例。如果您正苦于以下问题:PHP epl__函数的具体用法?PHP epl__怎么用?PHP epl__使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了epl__函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: _express_checkout_redirect

 function _express_checkout_redirect()
 {
     global $event_details;
     $event_id = $event_details['ID'];
     //key( ( array ) $_SESSION['__epl'][$regis_id]['events'] );
     if (is_null($event_id)) {
         return false;
     }
     $this->epl->load_file('libraries/gateways/paypal/paypal.php');
     $url = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443 ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
     //echo "<pre class='prettyprint'>" . print_r( $_SESSION, true ) . "</pre>";
     $regis_id = $this->erm->get_regis_id();
     $gateway_info = $this->erm->get_gateway_info();
     $tickets = $_SESSION['__epl'][$regis_id]['_dates']['_att_quantity'];
     $post_ID = $_SESSION['__epl']['post_ID'];
     //echo "<pre class='prettyprint'>" . print_r($post_ID, true). "</pre>";
     $this->ecm->setup_event_details($event_id);
     $_totals = $this->erm->calculate_totals();
     $requestParams = array('RETURNURL' => esc_url_raw(add_query_arg(array('cart_action' => '', 'p_ID' => $post_ID, 'regis_id' => $regis_id, 'epl_action' => '_exp_checkout_payment_success'), $url)), 'CANCELURL' => esc_url_raw(add_query_arg(array('cart_action' => '', 'p_ID' => $post_ID, 'regis_id' => $regis_id, 'epl_action' => '_exp_checkout_payment_cancel'), $url)), "SOLUTIONTYPE" => 'Sole', "LANDINGPAGE" => epl_nz($gateway_info['_epl_pp_landing_page'], 'Login'));
     $orderParams = array('PAYMENTREQUEST_0_AMT' => $_totals['money_totals']['grand_total'], 'PAYMENTREQUEST_0_SHIPPINGAMT' => 0, 'PAYMENTREQUEST_0_CURRENCYCODE' => epl_nz(epl_get_general_setting('epl_currency_code'), 'USD'), 'PAYMENTREQUEST_0_ITEMAMT' => $_totals['money_totals']['grand_total']);
     $item = array('L_PAYMENTREQUEST_0_NAME0' => epl__('Registration'), 'L_PAYMENTREQUEST_0_DESC0' => $event_details['post_title'] . ', ' . $_totals['_att_quantity']['total'][$event_details['ID']] . ' ' . epl__('attendees'), 'L_PAYMENTREQUEST_0_AMT0' => $_totals['money_totals']['grand_total'], 'L_PAYMENTREQUEST_0_QTY0' => 1);
     /*
              $counter = 0;
             $item = array( );
             foreach ( $tickets as $event_id => $ind_tickets ) {
     
                 foreach ( $ind_tickets as $ticket_id => $ticket_qty ) {
     
                     $ticket_name = epl_get_element( $ticket_id, $event_details['_epl_price_name'] );
                     $ticket_price = epl_get_element( $ticket_id, $event_details['_epl_price'] );
                     $qty = (is_array( $ticket_qty )) ? array_sum( $ticket_qty ) : $ticket_qty;
     
                     if ( $qty > 0 ) {
                         $item['L_PAYMENTREQUEST_0_NAME' . $counter] = substr( $event_details['post_title'], 0, 126 );
                         $item['L_PAYMENTREQUEST_0_DESC' . $counter] = $ticket_name;
                         //$item['L_PAYMENTREQUEST_0_NUMBER' . $counter] = $ticket_id;
                         $item['L_PAYMENTREQUEST_0_AMT' . $counter] = $ticket_price;
                         $item['L_PAYMENTREQUEST_0_QTY' . $counter] = $qty;
     
                         $counter++;
                     }
                 }
             }
     */
     //echo "<pre class='prettyprint'>" . print_r( $requestParams + $orderParams + $item, true ) . "</pre>";
     $paypal = new EPL_Paypal();
     $response = $paypal->request('SetExpressCheckout', $requestParams + $orderParams + $item);
     if (is_array($response) && $response['ACK'] == 'Success') {
         //Request successful
         $token = $response['TOKEN'];
         if ($gateway_info['_epl_sandbox'] == 10) {
             header('Location: https://www.sandbox.paypal.com/webscr?cmd=_express-checkout&token=' . urlencode($token));
         } else {
             header('Location: https://www.paypal.com/webscr?cmd=_express-checkout&token=' . urlencode($token));
         }
     } else {
         $error = 'ERROR: ' . $response['L_SHORTMESSAGE0'] . '. ' . $response['L_LONGMESSAGE0'];
         echo EPL_Util::get_instance()->epl_invoke_error(0, $error, false);
     }
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:60,代码来源:epl-gateway-model.php


示例2: form

 function form($instance)
 {
     $defaults = array('title' => epl__('Events'), 'exclude_past_events' => epl__('Exclude Past Events'));
     $instance = wp_parse_args((array) $instance, $defaults);
     $title = $instance['title'];
     $show_past_events = epl_get_element('show_past_events', $instance);
     $data = array();
     $data += $instance;
     $data['w'] = $this;
     $this->epl->load_view('widgets/advanced-cal/form', $data);
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:11,代码来源:epl-advanced-cal-widget.php


示例3: add_new_columns

 function add_new_columns($current_columns)
 {
     $new_columns['cb'] = '<input type="checkbox" />';
     //$new_columns['id'] = __( 'ID' );
     $new_columns['title'] = _x('Setting', 'column name');
     //$new_columns['type'] = epl__( 'Type' );
     //$new_columns['images'] = __( 'Images' );
     $new_columns['author'] = epl__('Created By');
     //$new_columns['categories'] = __( 'Categories' );
     //$new_columns['events_planner_categories'] = __( 'Categories' );
     //$new_columns['tags'] = __( 'Tags' );
     //$new_columns['date'] = _x( 'Date', 'column name' );
     return $new_columns;
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:14,代码来源:epl-org-manager.php


示例4: settings_page

 function settings_page()
 {
     if ($_POST) {
         $this->set_options();
     }
     $v = $this->get_options();
     $data['epl_fields'] = $this->fields;
     $data['tabs'] = array('general' => epl__('General'), 'registrations' => epl__('Registrations'), 'event-management' => epl__('Event Management'), 'fullcalendar-settings' => epl__('Calendar'), 'api-settings' => epl__('Advanced'));
     $_field_args = array('section' => $this->fields['epl_general_options'], 'fields_to_display' => array_keys($this->fields['epl_general_options']), 'meta' => array('_view' => 3, 'value' => $v['epl_general_options']));
     $data['epl_general_option_fields'] = $this->epl_util->render_fields($_field_args);
     $data['settings_updated'] = '';
     $_field_args = array('section' => $this->fields['epl_registration_options'], 'fields_to_display' => array_keys($this->fields['epl_registration_options']), 'meta' => array('_view' => 3, 'value' => $v['epl_registration_options']));
     $data['epl_registration_options'] = $this->epl_util->render_fields($_field_args);
     $_field_args = array('section' => $this->fields['epl_event_options'], 'fields_to_display' => array_keys($this->fields['epl_event_options']), 'meta' => array('_view' => 3, 'value' => $v['epl_event_options']));
     $data['epl_event_options'] = $this->epl_util->render_fields($_field_args);
     if (apply_filters('epl_enable_feature_override', false)) {
         $data['tabs']['feature-override'] = epl__('Override');
     }
     if (epl_is_addon_active('ETDFGWETSDFGR')) {
         $data['tabs']['shopping-cart'] = epl__('Event Cart');
         epl_sort_array_by_array($this->fields['epl_sc_options']['epl_sc_primary_regis_forms']['options'], $v['epl_sc_options']['epl_sc_primary_regis_forms']);
         epl_sort_array_by_array($this->fields['epl_sc_options']['epl_sc_addit_regis_forms']['options'], $v['epl_sc_options']['epl_sc_addit_regis_forms']);
         epl_sort_array_by_array($this->fields['epl_sc_options']['epl_sc_payment_choices']['options'], $v['epl_sc_options']['epl_sc_payment_choices']);
         $_field_args = array('section' => $this->fields['epl_sc_options'], 'fields_to_display' => array_keys($this->fields['epl_sc_options']), 'meta' => array('_view' => 3, 'value' => $v['epl_sc_options']));
         $data['epl_sc_options'] = $this->epl_util->render_fields($_field_args);
     }
     unset($this->fields['epl_fullcalendar_options']['epl_fullcalendar_tax_bcg_color']);
     unset($this->fields['epl_fullcalendar_options']['epl_fullcalendar_tax_font_color']);
     $terms = epl_object_to_array(get_terms('epl_event_categories', array('hide_empty' => false)));
     if (!epl_is_empty_array($terms)) {
         $vals = epl_get_element('epl_fullcalendar_options', $v, array());
         foreach ($terms as $k => $_v) {
             $_bcg_val = epl_get_element($_v['slug'], epl_get_element('epl_fullcalendar_tax_bcg_color', $vals), '#ffffff');
             $_font_val = epl_get_element($_v['slug'], epl_get_element('epl_fullcalendar_tax_font_color', $vals), 'blue');
             $_d = array('input_type' => 'text', 'label' => $_v['name'], 'class' => 'epl_w80');
             $f = $_d + array('input_name' => 'epl_fullcalendar_tax_bcg_color[' . $_v['slug'] . ']', 'value' => $_bcg_val, 'style' => 'background-color:' . $_bcg_val);
             $data['_tax_color'][$_v['slug']] = $this->epl_util->create_element($f, 0);
             $f = $_d + array('input_name' => 'epl_fullcalendar_tax_font_color[' . $_v['slug'] . ']', 'value' => $_font_val, 'style' => 'background-color:' . $_font_val);
             $data['_font_color'][$_v['slug']] = $this->epl_util->create_element($f, 0);
         }
     }
     $_field_args = array('section' => $this->fields['epl_fullcalendar_options'], 'fields_to_display' => array_keys($this->fields['epl_fullcalendar_options']), 'meta' => array('_view' => 3, 'value' => $v['epl_fullcalendar_options']));
     $data['epl_fullcalendar_options'] = $this->epl_util->render_fields($_field_args);
     if (epl_check_for_it()) {
         $_field_args = array('section' => $this->fields['epl_api_option_fields'], 'fields_to_display' => array_keys($this->fields['epl_api_option_fields']), 'meta' => array('_view' => 3, 'value' => $v['epl_api_option_fields']));
         $data['epl_api_options'] = $this->epl_util->render_fields($_field_args);
     }
     $this->epl->load_view('admin/settings/settings-page', $data);
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:49,代码来源:epl-settings-manager.php


示例5: form

 function form($instance)
 {
     $defaults = array('title' => epl__('Events'));
     $instance = wp_parse_args((array) $instance, $defaults);
     $title = $instance['title'];
     $title_url = $instance['title_url'];
     $css_class = $instance['css_class'];
     $num_events_to_show = $instance['num_events_to_show'];
     $exclude_event_ids = $instance['exclude_event_ids'];
     $enable_tooltip = $instance['enable_tooltip'];
     $template = $instance['template'];
     $thumbnail_size = $instance['thumbnail_size'];
     $class_display_type = epl_get_element('class_display_type', $instance);
     $num_words_to_show = epl_get_element('num_words_to_show', $instance);
     $content_to_show = epl_get_element('content_to_show', $instance);
     $days_to_show = $instance['days_to_show'];
     $tax_filter = $instance['tax_filter'];
     $tax_filter_field = $this->get_field_name('tax_filter');
     //send name and value
     $args = array('name' => $tax_filter_field . '[]', 'value' => $tax_filter);
     $r = $this->epl->epl_util->epl_terms_field($args);
     $data = array();
     //send the checkbox array as a separate var
     $data['tax_filter'] = $r['field'];
     $_f = array('input_type' => 'select', 'input_name' => $this->get_field_name('enable_tooltip'), 'options' => epl_yes_no(), 'value' => $enable_tooltip);
     $r = $this->epl->epl_util->create_element($_f);
     $data['enable_tooltip'] = $r['field'];
     $_f = array('input_type' => 'select', 'input_name' => $this->get_field_name('class_display_type'), 'options' => array(1 => epl__('First Date Only'), 2 => epl__('Each Date Individually')), 'value' => $class_display_type);
     $r = $this->epl->epl_util->create_element($_f);
     $data['class_display_type'] = $r['field'];
     $template_options = apply_filters('epl_ue_available_templates', array('template-1' => epl__('Template 1'), 'template-2' => epl__('Template 2'), 'template-1-loc' => epl__('Template 1 + location'), 'template-2-loc' => epl__('Template 2 + location')));
     $_f = array('input_type' => 'select', 'input_name' => $this->get_field_name('template'), 'options' => $template_options, 'value' => $template);
     $r = $this->epl->epl_util->create_element($_f);
     $data['template'] = $r['field'];
     $_f = array('input_type' => 'select', 'input_name' => $this->get_field_name('thumbnail_size'), 'options' => get_intermediate_image_sizes(), 'value' => $thumbnail_size);
     $r = $this->epl->epl_util->create_element($_f);
     $data['thumbnail_size'] = $r['field'];
     $_f = array('input_type' => 'select', 'input_name' => $this->get_field_name('content_to_show'), 'options' => array('content' => epl__('Content'), 'excerpt' => epl__('Excerpt')), 'value' => $content_to_show);
     $r = $this->epl->epl_util->create_element($_f);
     $data['content_to_show'] = $r['field'];
     $data += $instance;
     $data['w'] = $this;
     $this->epl->load_view('widgets/upcoming-events/form', $data);
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:44,代码来源:epl-upcoming-events-widget.php


示例6: run

 function run()
 {
     if (isset($_REQUEST['epl_action'])) {
         //POST has higher priority
         $epl_action = esc_attr(isset($_REQUEST['epl_action']) ? $_REQUEST['epl_action'] : $_REQUEST['epl_action']);
         if (method_exists($this, $epl_action)) {
             $epl_current_step = $epl_action;
             $r = $this->{$epl_action}();
         } else {
             $r = epl__('Error');
         }
     } else {
     }
     if (isset($GLOBALS['epl_ajax']) && $GLOBALS['epl_ajax'] == true) {
         echo $this->epl_util->epl_response(array('html' => $r));
         exit;
     }
     return $r;
     die($r);
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:20,代码来源:epl-user-self-pages-manager.php


示例7: load_view

 /**
  * Load a view file from applicaiton/views folder
  *
  * @since 1.0.0
  * @param string $file_name (e.g. 'admin/view_name')
  * @param array  $data - data to be used in the view, is appended to _cached_vars (to be shared between views) then extracted into variables.
  * @param bool  $return - if false, echo
  * @return string content of view file
  */
 function load_view($file_name, $data = NULL, $return = FALSE)
 {
     if (is_array($data) || is_object($data)) {
         $this->_cached_vars = array_merge((array) $this->_cached_vars, $data);
     }
     $file_name = str_replace('.php', '', $file_name);
     //check for the file first in the theme directory
     $r = $this->load_template_file($file_name . '.php');
     if (is_null($r)) {
         extract($this->_cached_vars);
         ob_start();
         if (file_exists(EPL_APPLICATION_FOLDER . 'views/' . $file_name . '.php')) {
             include EPL_APPLICATION_FOLDER . 'views/' . $file_name . '.php';
         } else {
             echo epl__('Missing file') . ': ' . $file_name . '.php';
         }
         $r = ob_get_contents();
         @ob_end_clean();
     }
     if ($return) {
         return $r;
     }
     echo $r;
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:33,代码来源:epl-base.php


示例8: send_confirmation_email

 function send_confirmation_email($data)
 {
     global $organization_details, $customer_email, $event_details;
     $data['eb'] = '';
     $default_email_body = $this->epl->load_view('front/registration/regis-confirm-email', $data, true);
     $_notif = epl_get_element('_epl_event_notification', $event_details);
     $_notif_data = array();
     if ($_notif && (!epl_is_empty_array($_notif) || $_notif != '')) {
         $id = is_array($_notif) ? current($_notif) : $_notif;
         $_notif_data = get_post($id, ARRAY_A) + (array) $this->ecm->get_post_meta_all($id);
         $data['eb'] = nl2br($this->notif_tags(stripslashes_deep(html_entity_decode($_notif_data['post_content'], ENT_QUOTES))));
     }
     if (epl_is_empty_array($_notif) || $_notif == '' || epl_get_element('_epl_notification_replace', $event_details, 0) == 0) {
         $email_body = $this->epl->load_view('front/registration/regis-confirm-email', $data, true);
     } else {
         $email_body = $data['eb'];
     }
     $email_body = preg_replace('/<div class=\'epl_(.*?)_message\'>(.*?)<\\/div>/', '', $email_body);
     $from_name = html_entity_decode(epl_get_element('_epl_email_from_name', $_notif_data, get_bloginfo('name')), ENT_QUOTES);
     $from_email = epl_get_element('_epl_from_email', $_notif_data, get_bloginfo('admin_email'));
     $subject = html_entity_decode(epl_get_element('_epl_email_subject', $_notif_data, epl__('Registration Confirmation')), ENT_QUOTES);
     $headers = "From: \"" . $from_name . "\" <{$from_email}> \r\n";
     $headers .= 'Reply-To: ' . $from_email . "\r\n";
     $headers .= 'X-Mailer: PHP/' . phpversion();
     $headers .= "MIME-Version: 1.0\r\n";
     $headers .= "Content-Type: text/html; charset=UTF-8\r\n";
     if (isset($customer_email) && $customer_email != '') {
         @wp_mail($customer_email, $subject, $email_body, $headers);
     }
     //admin email
     $_email = epl_get_event_property('_epl_alt_admin_email');
     if ($_email == '') {
         $_email = epl_nz(epl_get_event_option('epl_default_notification_email'), get_bloginfo('admin_email'));
     }
     @wp_mail($_email, epl__('New Registration') . ': ' . get_the_event_title(), $default_email_body, $headers);
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:36,代码来源:epl-email.php


示例9: epl_e

<table class="epl_prices_table">
    <tr>
        <th>
            <?php 
epl_e('Type');
?>
        </th>

        <th>
            <?php 
epl_e('Price');
?>
        </th>
        <th>
            <?php 
echo apply_filters('epl_cart_prices_quanitity_label', epl__('Quantity'));
?>
        </th>
        <?php 
if (epl_is_addon_active('_epl_atp') && $mode != 'overview' && $has_date_limit) {
    //do not deacitvate, will not work
    ?>
                <th>
            <?php 
    epl_e('Ends');
    ?>
            </th>
        <?php 
}
?>
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:30,代码来源:cart-prices.php


示例10: array

<?php

global $epl_fields;
$epl_fields['epl_fields'] = array('input_name' => array('input_type' => 'hidden', 'input_name' => 'input_name'), 'label' => array('input_type' => 'text', 'input_name' => 'label', 'label' => 'Field Label', 'description' => epl__('Will be used in the field label.'), 'required' => true, 'class' => 'epl_w300'), 'input_slug' => array('input_type' => 'text', 'input_name' => 'input_slug', 'label' => epl__('Input Slug'), 'description' => epl__('Will be used in email templates. Ex. your_city, your_weight, height...'), 'required' => true, 'class' => 'epl_w300 input_name'), 'input_type' => array('input_type' => 'select', 'input_name' => 'input_type', 'options' => array('text' => 'Text', 'textarea' => 'Textarea', 'select' => 'Dropdown', 'radio' => 'Radio', 'checkbox' => 'Checkbox', 'hidden' => 'Hidden'), 'id' => 'input_type', 'label' => 'Field Type', 'description' => '', 'style' => '', 'class' => 'epl_field_type', 'default_value' => 'text'), 'epl_field_choices' => array('input_type' => 'section', 'class' => 'epl_field_choices'), 'epl_field_choice_default' => array('return' => 0, 'input_name' => 'epl_field_choice_default[]'), 'epl_field_choice_text' => array('return' => 0, 'input_name' => 'epl_field_choice_text[]'), 'epl_field_choice_value' => array('return' => 0, 'input_name' => 'epl_field_choice_value[]'), 'description' => array('input_type' => 'textarea', 'input_name' => 'description', 'label' => 'Field Description', 'description' => epl__('Will be displayed below the field.  Can be used as help text.'), 'class' => 'epl_w300'), 'required' => array('input_type' => 'select', 'input_name' => 'required', 'label' => 'Required', 'options' => epl_yes_no(), 'default_value' => 0, 'display_inline' => true), 'default_value' => array('input_type' => 'text', 'input_name' => 'default_value', 'label' => 'Default Value', 'description' => epl__('Default value for the field, ONLY FOR Text, Hidden, Textarea (for now).'), 'class' => 'epl_w300'), 'validation' => array('input_type' => 'select', 'input_name' => 'validation', 'options' => array('email' => 'Email'), 'empty_row' => true, 'id' => 'input_type', 'label' => 'Validation', 'description' => epl__('More Coming Soon.'), 'style' => '', 'class' => 'epl_field_type', 'default_value' => 'text'), 'epl_controller' => array('input_type' => 'hidden', 'input_name' => 'epl_controller', 'default_value' => 'epl_form_manager'), 'epl_system' => array('input_type' => 'hidden', 'input_name' => 'epl_system', 'value' => 1));
$epl_fields['epl_fields_choices'] = array('epl_field_choice_text' => array('input_type' => 'text', 'input_name' => 'epl_field_choice_text[]'), 'epl_field_choice_value' => array('input_type' => 'text', 'input_name' => 'epl_field_choice_value[]'));
$epl_fields['epl_forms'] = array('epl_form_id' => array('input_type' => 'hidden', 'input_name' => 'epl_form_id'), 'epl_form_label' => array('input_type' => 'text', 'input_name' => 'epl_form_label', 'id' => 'epl_form_label', 'label' => 'Form Label', 'description' => 'Displayed form identifier', 'class' => 'epl_w300', 'required' => true), 'epl_form_slug' => array('input_type' => 'text', 'input_name' => 'epl_form_slug', 'label' => 'Form Slug', 'description' => epl__('Will be used in emails.'), 'class' => 'epl_w300 make_slug', 'required' => true), 'epl_form_descritption' => array('input_type' => 'textarea', 'input_name' => 'epl_form_descritption', 'label' => 'Form Description', 'description' => 'If you would like to give some form instructions, you can type them here. ', 'class' => 'epl_w300'), 'epl_form_options' => array('input_type' => 'checkbox', 'input_name' => 'epl_form_options[]', 'label' => 'On the registration form:', 'description' => '', 'options' => array(0 => 'Show Form Name.', 10 => 'Show Form Description.'), 'class' => ''), 'epl_form_fields' => array('return' => 0, 'input_name' => 'epl_form_fields'), 'epl_controller' => array('input_type' => 'hidden', 'input_name' => 'epl_controller', 'default_value' => 'epl_form_manager'), 'epl_system' => array('input_type' => 'hidden', 'input_name' => 'epl_system', 'value' => 1));
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:6,代码来源:form-fields.php


示例11: get_day_names

 /**
  * Get Day Names
  *
  * Returns an array of day names (Sunday, Monday, etc.) based
  * on the type.  Options: long, short, abrev
  *
  * @access	public
  * @param	string
  * @return	array
  */
 function get_day_names($day_type = '')
 {
     if ($day_type != '') {
         $this->day_type = $day_type;
     }
     if ($this->day_type == 'long') {
         $day_names = array(epl__('Sunday'), epl__('Monday'), epl__('Tuesday'), epl__('Wednesday'), epl__('Thursday'), epl__('Friday'), epl__('Saturday'));
     } elseif ($this->day_type == 'short') {
         $day_names = array('sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat');
     } else {
         $day_names = array(epl__('Su'), epl__('Mo'), epl__('Tu'), epl__('We'), epl__('Th'), epl__('Fr'), epl__('Sa'));
     }
     $days = array();
     foreach ($day_names as $val) {
         //$days[] = ($this->CI->lang->line('cal_'.$val) === FALSE) ? ucfirst($val) : $this->CI->lang->line('cal_'.$val);
         $days[] = ucfirst($val);
     }
     return $days;
 }
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:29,代码来源:epl-calendar.php


示例12: epl__

<div id="" class="epl_event_section" style="padding: 10px;">

    <?php 
if (isset($ticket_number)) {
    ?>

        <b><?php 
    echo epl__('Attendee #') . $ticket_number;
    ?>
: <?php 
    echo $price_name;
    ?>
</b>

    <?php 
}
?>
    <?php 
if (isset($form_label) && $form_label != '') {
    ?>

            <b><?php 
    echo $form_label;
    ?>
</b>

    <?php 
}
?>

    <?php 
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:31,代码来源:regis-form-wrap.php


示例13: array

<?php

global $epl_fields;
$epl_fields['epl_global_discount_type'] = array('_epl_global_discount_type' => array('input_type' => 'select', 'input_name' => '_epl_global_discount_type', 'label' => epl__('Discount Type'), 'id' => 'epl_global_discount_type', 'empty_row' => true, 'options' => array('global' => epl__('Internal'))));
$epl_fields['epl_global_discount_type'] = apply_filters('epl_global_discount_type', $epl_fields['epl_global_discount_type']);
$epl_fields['epl_global_discount_fields'] = array('_epl_discount_method' => array('input_type' => 'select', 'input_name' => '_epl_discount_method[]', 'options' => array(5 => epl__('Code'), 10 => epl__('Automatic')), 'label' => epl__('Discount Method'), 'class' => '', 'parent_keys' => true), '_epl_discount_code' => array('input_type' => 'text', 'input_name' => '_epl_discount_code[]', 'label' => epl__('Discount Code'), 'class' => 'epl_w80'), '_epl_discount_amount' => array('input_type' => 'text', 'input_name' => '_epl_discount_amount[]', 'label' => epl__('Amount'), 'class' => 'epl_w70'), '_epl_discount_type' => array('input_type' => 'select', 'input_name' => '_epl_discount_type[]', 'label' => epl__('Discount Type'), 'options' => array(5 => epl__('Fixed'), 10 => epl__('Percent')), 'class' => ''), '_epl_discount_max_usage' => array('input_type' => 'text', 'input_name' => '_epl_discount_max_usage[]', 'label' => epl__('Max Use'), 'class' => 'epl_w50'), '_epl_discount_end_date' => array('input_type' => 'text', 'input_name' => '_epl_discount_end_date[]', 'label' => epl__('Until'), 'class' => 'datepicker epl_w100', 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_discount_description' => array('input_type' => 'text', 'input_name' => '_epl_discount_description[]', 'placeholder' => epl__('Discount Description (optional)'), 'class' => 'epl_w100pct', 'help_text' => epl__('This label will appear in the total section as the discount description.')), '_epl_discount_active' => array('input_type' => 'select', 'input_name' => '_epl_discount_active[]', 'label' => epl__('Active'), 'options' => epl_yes_no(), 'default_value' => 0), '_epl_discount_cat_include' => array('input_type' => 'checkbox', 'input_name' => '_epl_discount_cat_include[]', 'label' => epl__('Include Only Categories'), 'options' => epl_term_list(), 'auto_key' => false, 'second_key' => '[]', 'display_inline' => true), '_epl_discount_condition' => array('input_type' => 'select', 'input_name' => '_epl_discount_condition[]', 'options' => array(0 => '', 5 => epl__('Total Amount'), 6 => epl__('Total Quantity'), 7 => epl__('Number of Events')), 'class' => ''), '_epl_discount_condition_logic' => array('input_type' => 'select', 'input_name' => '_epl_discount_condition_logic[]', 'options' => array('=' => '=', '>' => '>', '>=' => '>=', '<=' => '<=', 'between' => epl__('Between')), 'class' => ''), '_epl_discount_condition_value' => array('input_type' => 'text', 'input_name' => '_epl_discount_condition_value[]', 'class' => 'epl_w70'), '_epl_discount_condition_value2' => array('input_type' => 'text', 'input_name' => '_epl_discount_condition_value2[]', 'class' => 'epl_w70'), '_epl_discount_target' => array('input_type' => 'select', 'input_name' => '_epl_discount_target[]', 'options' => array(5 => epl__('Total Amount')), 'class' => ''), '_epl_discount_target_price_id' => array('input_type' => 'select', 'input_name' => '_epl_discount_target_price_id[]', 'options' => array(), 'class' => ''), '_epl_discount_forms' => array('weight' => 60, 'input_type' => 'checkbox', 'input_name' => '_epl_discount_forms[]', 'label' => epl__('Discount Specific Form'), 'options' => array(), 'second_key' => '[]'), '_epl_discount_forms_per' => array('weight' => 65, 'input_type' => 'select', 'input_name' => '_epl_discount_forms_per[]', 'label' => epl__('Display the form '), 'options' => array(1 => epl__('For each Attendee'), 2 => epl__('Only Once'), 3 => epl__('Do not show any attendee forms'))));
$epl_fields['epl_global_discount_fields'] = apply_filters('epl_global_discount_fields', $epl_fields['epl_global_discount_fields']);
//uasort( $epl_fields['epl_discount_fields'], 'epl_sort_by_weight' );
$epl_fields['epl_global_discount_rule_fields'] = array('_epl_discount_trigger' => array('input_type' => 'select', 'input_name' => '_epl_discount_trigger[]', 'options' => array(0 => '', 5 => epl__('Total Amount'), 6 => epl__('Total Quantity')), 'class' => ''), '_epl_discount_amount' => array('input_type' => 'text', 'input_name' => '_epl_discount_amount[]', 'label' => epl__('Amount'), 'class' => 'epl_w70'), '_epl_discount_type' => array('input_type' => 'select', 'input_name' => '_epl_discount_type[]', 'label' => epl__('Discount Type'), 'options' => array(5 => epl__('Fixed'), 10 => epl__('Percent')), 'class' => ''), '_epl_discount_max_usage' => array('input_type' => 'text', 'input_name' => '_epl_discount_max_usage[]', 'label' => epl__('Max Use'), 'class' => 'epl_w50'), '_epl_discount_end_date' => array('input_type' => 'text', 'input_name' => '_epl_discount_end_date[]', 'label' => epl__('Until'), 'class' => 'datepicker epl_w80', 'data_type' => 'unix_time'), '_epl_discount_active' => array('input_type' => 'select', 'input_name' => '_epl_discount_active[]', 'label' => epl__('Until'), 'options' => epl_yes_no(), 'default_value' => 0));
$epl_fields['epl_global_discount_rule_fields'] = apply_filters('epl_global_discount_rule_fields', $epl_fields['epl_global_discount_rule_fields']);
$epl_fields['epl_social_discount_fields'] = array('_epl_discount_code' => array('input_type' => 'text', 'input_name' => '_epl_discount_code[]', 'label' => epl__('Discount Code'), 'parent_keys' => true), '_epl_discount_buyer' => array('input_type' => 'text', 'input_name' => '_epl_discount_buyer[]', 'label' => epl__('Buyer')), '_epl_discount_amount' => array('input_type' => 'text', 'input_name' => '_epl_discount_amount[]', 'label' => epl__('Amount'), 'class' => 'epl_w70'), '_epl_discount_type' => array('input_type' => 'select', 'input_name' => '_epl_discount_type[]', 'label' => epl__('Discount Type'), 'options' => array(5 => epl__('Fixed'), 10 => epl__('Percent')), 'class' => ''), '_epl_discount_max_usage' => array('input_type' => 'text', 'input_name' => '_epl_discount_max_usage[]', 'label' => epl__('Max Use'), 'class' => 'epl_w40'), '_epl_discount_status' => array('input_type' => 'text', 'input_name' => '_epl_discount_Status[]', 'label' => epl__('Status'), 'class' => ''), '_epl_discount_end_date' => array('input_type' => 'text', 'input_name' => '_epl_discount_end_date[]', 'label' => epl__('Until'), 'class' => '', 'data_type' => 'unix_time', '__func' => 'epl_admin_date_display'), '_epl_discount_active' => array('input_type' => 'select', 'input_name' => '_epl_discount_active[]', 'label' => epl__('Active'), 'options' => epl_yes_no(), 'default_value' => 0));
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:11,代码来源:global-discount-fields.php


示例14: array

<?php

global $epl_fields;
$epl_fields['epl_general_options'] = array('epl_currency_code' => array('input_type' => 'select', 'input_name' => 'epl_currency_code', 'label' => epl__('Currency Code'), 'description' => epl__('This will be used in payment gateways. '), 'options' => array('AUD' => 'AUD', 'CAD' => 'CAD', 'EUR' => 'EUR', 'GBP' => 'GBP', 'NOK' => 'NOK', 'USD' => 'USD')), 'epl_currency_symbol' => array('input_type' => 'text', 'input_name' => 'epl_currency_symbol', 'label' => epl__('Currency Symbol'), 'description' => epl__('This will appear next to all the currency figures on the website.  Ex. $, USD, €... '), 'class' => 'epl_w50'), 'epl_currency_display_format' => array('input_type' => 'select', 'input_name' => 'epl_currency_display_format', 'options' => array(1 => '1,234.56', 2 => '1,234', 3 => '1234', 4 => '1234.56', 5 => '1 234,00'), 'default_value' => 1, 'label' => epl__('Currency display format'), 'description' => epl__('This determines how your currency is displayed.  Ex. 1,234.56 or 1,200 or 1200.')));
$epl_fields['epl_registration_options'] = array('epl_regis_id_length' => array('input_type' => 'select', 'input_name' => 'epl_regis_id_length', 'label' => epl__('Registration ID length?'), 'description' => epl__('This will be an alphanumeric string.'), 'options' => epl_make_array(10, 40), 'default_value' => 10));
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:5,代码来源:settings-fields.php


示例15: get_the_location_city

                <?php 
    echo get_the_location_city();
    ?>
 <?php 
    echo get_the_location_state();
    ?>
 <?php 
    echo get_the_location_zip();
    ?>
<br />
                <?php 
    echo get_the_location_phone();
    ?>
<br />
                <?php 
    echo get_the_location_website() ? epl_anchor(get_the_location_website(), epl__('Visit Website') . '<br />') : '';
    ?>
                <?php 
    echo get_the_location_gmap_icon();
    ?>

            <?php 
} elseif (epl_is_multi_location()) {
    ?>

                <?php 
    epl_e('Multiple locations');
    ?>

            <?php 
}
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:31,代码来源:single-epl_event.php


示例16: array

</td>


                                <td>


<?php 
        if ($time_data['regis']) {
            $dt_array = array('date_id' => $date_id, 'time_id' => $time_id);
            $table_link_arr = array_merge($table_link_arr, $dt_array);
            $csv_link_arr += $dt_array;
            $send_email_arr = array('epl_action' => 'get_the_email_form', 'epl_controller' => 'epl_registration', 'event_id' => $event_id, 'post_type' => false);
            echo epl_anchor(add_query_arg(array_merge($table_link_arr, $dt_array) + array('names_only' => 1), $base_url), epl__('View Names'), null, 'class="epl_view_attendee_list_table button-secondary"');
            echo epl_anchor(add_query_arg($table_link_arr, $base_url), epl__('View Full Data'), null, 'class="epl_view_attendee_list_table button-secondary"');
            echo epl_anchor(add_query_arg(array_merge($csv_link_arr, $dt_array), $base_url), epl__('Export CSV'), null, 'class="button-secondary"');
            echo epl_anchor(add_query_arg($send_email_arr + $dt_array, $base_url), epl__('Send Email'), null, "class='epl_send_email_form_link button-secondary' data-post_ID='{$post_ID}' data-event_id='{$event_id}'");
        }
        ?>
                            </td>
                        </tr>

<?php 
    }
    ?>



<?php 
}
?>
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:30,代码来源:event-snapshot_1.php


示例17: epl_e

        <h2><?php 
epl_e('Events Planner Settings');
?>
</h2>

        <div id="icon-options-general" class="icon32"><br></div>
        <h2 class="nav-tab-wrapper">

            <?php 
$current = 'general';
if (isset($_GET['tab'])) {
    $current = $_GET['tab'];
}
if ('true' == esc_attr($_GET['updated'])) {
    echo '<div class="updated" ><p>' . epl__('Settings updated.') . '</p></div>';
}
$base_url = epl_get_url();
foreach ($tabs as $tab => $name) {
    $class = $tab == $current ? ' nav-tab-active' : '';
    echo "<a class='nav-tab{$class}' href='" . add_query_arg(array('tab' => $tab), $base_url) . "'>{$name}</a>";
}
?>
        </h2>

        <div id="poststuff">
            <form action="<?php 
echo epl_get_url();
?>
" method="post">
                <?php 
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:30,代码来源:settings-page.php


示例18: epl_e

    <?php 
if (epl_sc_is_enabled()) {
    ?>
    <div class="epl_error"><?php 
    epl_e('Events specific discounts are not available when event cart is enabled.  Please use global discounts instead.');
    ?>
</div>
    <?php 
}
?>
    <?php 
if (!isset($_POST['event_list_discount_import_dd'])) {
    ?>
        <div class="epl_info">
            <?php 
    echo epl__('Import') . ' ' . epl__('and') . ' ' . $discount_import_action['field'] . ' ' . epl__('from') . ' ' . $event_list_discount_import_dd['field'];
    ?>

        </div>



        <table class="epl_form_data_table" cellspacing ="0">
            <thead>

            <th colspan="2"></th>
            </thead>
            <?php 
    echo current($epl_discount_option_fields);
    ?>
        </table>   
开发者ID:Kemitestech,项目名称:WordPress-Skeleton,代码行数:31,代码来源:discounts-meta-box.php


示例19: array

<?php

global $epl_fields;
$epl_fields['epl_org_fields'] = array('_epl_org_address' => array('weight' => 5, 'input_type' => 'text', 'input_name' => '_epl_org_address', 'label' => epl__('Address'), 'class' => 'epl_w300'), '_epl_org_address2' => array('weight' => 10, 'input_type' => 'text', 'input_name' => '_epl_org_address2', 'label' => epl__('Address 2'), 'class' => 'epl_w300'), '_epl_org_city' => array('weight' => 15, 'input_type' => 'text', 'input_name' => '_epl_org_city', 'label' => epl__('Zip'), 'class' => 'epl_w300'), '_epl_org_state' => array('weight' => 20, 'input_type' => 'text', 'input_name' => '_epl_org_state', 'label' => epl__('State'), 'class' => 'epl_w300'), '_epl_org_city' => array('weight' => 25, 'input_type' => 'text', 'input_name' => '_epl_org_city', 'label' => epl__('City'), 'class' => 'epl_w300'), '_epl_org_zip' => array('weight' => 30, 'input_type' => 'text 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP epl_e函数代码示例发布时间:2022-05-15
下一篇:
PHP epIsWebRun函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap