当前位置: 首页>>代码示例>>PHP>>正文


PHP Ai1ec_I18n::__方法代码示例

本文整理汇总了PHP中Ai1ec_I18n::__方法的典型用法代码示例。如果您正苦于以下问题:PHP Ai1ec_I18n::__方法的具体用法?PHP Ai1ec_I18n::__怎么用?PHP Ai1ec_I18n::__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Ai1ec_I18n的用法示例。


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

示例1: add_tabs

 /**
  * Add the extension tab if not present
  *
  * @param array $tabs
  * @return array
  */
 public function add_tabs(array $tabs)
 {
     if (!isset($tabs['extensions'])) {
         $tabs['extensions'] = array('name' => Ai1ec_I18n::__('Add-ons'), 'items' => array());
     }
     return $tabs;
 }
开发者ID:sedici,项目名称:wpmu-istec,代码行数:13,代码来源:extension-license.php

示例2: get_content

 public function get_content(array $view_args)
 {
     $date_system = $this->_registry->get('date.system');
     $settings = $this->_registry->get('model.settings');
     $defaults = array('oneday_offset' => 0, 'cat_ids' => array(), 'tag_ids' => array(), 'auth_ids' => array(), 'post_ids' => array(), 'instance_ids' => array(), 'exact_date' => $date_system->current_time());
     $args = wp_parse_args($view_args, $defaults);
     $local_date = $this->_registry->get('date.time', $args['exact_date'], 'sys.default')->adjust_day(0 + $args['oneday_offset'])->set_time(0, 0, 0);
     $cell_array = $this->get_oneday_cell_array($local_date, apply_filters('ai1ec_get_events_relative_to_filter', array('cat_ids' => $args['cat_ids'], 'tag_ids' => $args['tag_ids'], 'post_ids' => $args['post_ids'], 'auth_ids' => $args['auth_ids'], 'instance_ids' => $args['instance_ids']), $view_args, apply_filters('ai1ec_show_unique_events', false)));
     // Create pagination links.
     $title = $local_date->format_i18n($this->_registry->get('model.option')->get('date_format', 'l, M j, Y'));
     $pagination_links = $this->_get_pagination($args, $title);
     // Calculate today marker's position.
     $midnight = $this->_registry->get('date.time', 'now', 'sys.default')->set_time(0, 0, 0);
     $now = $this->_registry->get('date.time', 'now', 'sys.default');
     $now_text = $this->_registry->get('view.event.time')->get_short_time($now);
     $now = (int) ($now->diff_sec($midnight) / 60);
     $is_ticket_button_enabled = apply_filters('ai1ec_oneday_ticket_button', false);
     $show_reveal_button = apply_filters('ai1ec_oneday_reveal_button', false);
     $time_format = $this->_registry->get('model.option')->get('time_format', Ai1ec_I18n::__('g a'));
     $hours = array();
     $today = $this->_registry->get('date.time', 'now', 'sys.default');
     for ($hour = 0; $hour < 24; $hour++) {
         $hours[] = $today->set_time($hour, 0, 0)->format_i18n($time_format);
     }
     $view_args = array('title' => $title, 'type' => 'oneday', 'cell_array' => $cell_array, 'show_location_in_title' => $settings->get('show_location_in_title'), 'now_top' => $now, 'now_text' => $now_text, 'time_format' => $time_format, 'done_allday_label' => false, 'done_grid' => false, 'data_type' => $args['data_type'], 'is_ticket_button_enabled' => $is_ticket_button_enabled, 'show_reveal_button' => $show_reveal_button, 'text_full_day' => __('Reveal full day', AI1EC_PLUGIN_NAME), 'text_all_day' => __('All-day', AI1EC_PLUGIN_NAME), 'text_now_label' => __('Now:', AI1EC_PLUGIN_NAME), 'text_venue_separator' => __('@ %s', AI1EC_PLUGIN_NAME), 'hours' => $hours, 'indent_multiplier' => 16, 'indent_offset' => 54, 'pagination_links' => $pagination_links);
     $view_args = $this->get_extra_template_arguments($view_args);
     // Add navigation if requested.
     $view_args['navigation'] = $this->_get_navigation(array('no_navigation' => $args['no_navigation'], 'pagination_links' => $pagination_links, 'views_dropdown' => $args['views_dropdown'], 'below_toolbar' => apply_filters('ai1ec_below_toolbar', '', $this->get_name(), $args)));
     return $this->_registry->get('http.request')->is_json_required($args['request_format'], 'oneday') ? $this->_apply_filters_to_args($view_args) : $this->_get_view($view_args);
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:30,代码来源:oneday.php

示例3: display_page

 /**
  * Display the page html
  */
 public function display_page()
 {
     $api = $this->_registry->get('model.api');
     $ticketing_enabled = $api->is_signed();
     $ticketing_message = $api->get_sign_message();
     $loader = $this->_registry->get('theme.loader');
     if (!$ticketing_enabled) {
         if (false === ai1ec_is_blank($ticketing_message)) {
             $api->clear_sign_message();
         }
         $args = array('title' => Ai1ec_I18n::__('Time.ly Ticketing<sup>beta</sup>'), 'sign_up_text' => 'Please, <a href="edit.php?post_type=ai1ec_event&page=all-in-one-event-calendar-settings">Sign Up for a Timely Network account</a> to use Ticketing.');
         $file = $loader->get_file('ticketing/signup.twig', $args, true);
     } else {
         $response = $api->get_payment_preferences();
         $purchases = $api->get_purchases();
         $args = array('title' => Ai1ec_I18n::__('Time.ly Ticketing<sup>beta</sup>'), 'settings_text' => Ai1ec_I18n::__('Settings'), 'sales_text' => Ai1ec_I18n::__('Sales'), 'select_payment_text' => Ai1ec_I18n::__('How do you want the tickets revenue to be sent to you?'), 'select_payment_description_text' => Ai1ec_I18n::__('If no payout method is selected, Time.ly will collect the revenue on behalf of you. Please contact payouts@time.ly for any outstanding payouts.'), 'cheque_text' => Ai1ec_I18n::__('Cheque'), 'paypal_text' => Ai1ec_I18n::__('Paypal'), 'required_text' => Ai1ec_I18n::__('This field is required.'), 'save_changes_text' => Ai1ec_I18n::__('Save Changes'), 'date_text' => Ai1ec_I18n::__('Date'), 'event_text' => Ai1ec_I18n::__('Event'), 'purchaser_text' => Ai1ec_I18n::__('Purchaser'), 'tickets_text' => Ai1ec_I18n::__('Tickets'), 'email_text' => Ai1ec_I18n::__('Email'), 'status_text' => Ai1ec_I18n::__('Status'), 'total_text' => Ai1ec_I18n::__('Total'), 'sign_out_button_text' => Ai1ec_I18n::__('Sign Out'), 'payment_method' => $response->payment_method, 'paypal_email' => $response->paypal_email, 'first_name' => $response->first_name, 'last_name' => $response->last_name, 'street' => $response->street, 'city' => $response->city, 'state' => $response->state, 'postcode' => $response->postcode, 'country' => $response->country, 'nonce' => array('action' => self::NONCE_ACTION, 'name' => self::NONCE_NAME, 'referrer' => false), 'action' => '?controller=front&action=ai1ec_api_ticketing_signup&plugin=' . AI1EC_PLUGIN_NAME, 'purchases' => $purchases);
         $file = $loader->get_file('ticketing/manage.twig', $args, true);
     }
     $this->_registry->get('css.admin')->admin_enqueue_scripts('ai1ec_event_page_all-in-one-event-calendar-settings');
     $this->_registry->get('css.admin')->process_enqueue(array(array('style', 'ticketing.css')));
     if (isset($_POST['ai1ec_save_settings'])) {
         $response = $api->save_payment_preferences();
         // this redirect makes sure that the error messages appear on the screen
         header("Location: " . $_SERVER['HTTP_REFERER']);
     }
     return $file->render();
 }
开发者ID:andyUA,项目名称:kabmin-new,代码行数:30,代码来源:tickets.php

示例4: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"ai1ec-modal-header\">\n\t<button type=\"button\" class=\"ai1ec-close\" data-dismiss=\"ai1ec-modal\">×</button>\n\t<h2>";
     // line 3
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Post Your Event"), "html", null, true);
     echo "</h2>\n</div>\n\n<div class=\"ai1ec-modal-body\">\n\t";
     // line 7
     if ((isset($context["message_type"]) ? $context["message_type"] : null) != "success") {
         // line 8
         echo "\t\t<div class=\"ai1ec-alert ai1ec-alert-";
         echo twig_escape_filter($this->env, isset($context["message_type"]) ? $context["message_type"] : null, "html", null, true);
         echo "\">\n\t\t\t";
         // line 9
         echo isset($context["message"]) ? $context["message"] : null;
         echo "\n\t\t</div>\n\t";
     } else {
         // line 12
         echo "\t\t";
         echo isset($context["message"]) ? $context["message"] : null;
         echo "\n\t";
     }
     // line 14
     echo "</div>\n\n<div class=\"ai1ec-modal-footer\">\n\t<a href=\"#\" class=\"ai1ec-btn ai1ec-btn-lg ai1ec-btn-primary ai1ec-pull-left ai1ec-post-another\">\n\t\t<i class=\"ai1ec-fa ai1ec-fa-plus\"></i>\n\t\t";
     // line 19
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Post Another"), "html", null, true);
     echo "\n\t</a>\n\t<a href=\"";
     // line 21
     echo twig_escape_filter($this->env, isset($context["link_url"]) ? $context["link_url"] : null, "html_attr");
     echo "\"\n\t\tclass=\"ai1ec-btn ai1ec-btn-lg ai1ec-btn-primary\">\n\t\t";
     // line 23
     echo twig_escape_filter($this->env, isset($context["link_text"]) ? $context["link_text"] : null, "html", null, true);
     echo "\n\t\t<i class=\"ai1ec-fa ai1ec-fa-arrow-right\"></i>\n\t</a>\n</div>\n";
 }
开发者ID:USSLomaPrieta,项目名称:usslomaprieta.org,代码行数:34,代码来源:5bd0aae3cdc2eb247965d6758532defae4940dfe30c68378e622f1d1148c.php

示例5: run_checks

 /**
  * Runs checks for necessary config options.
  *
  * @return void Method does not return.
  */
 public function run_checks()
 {
     $role = get_role('administrator');
     $current_user = get_userdata(get_current_user_id());
     if (!is_object($role) || !is_object($current_user) || !$role->has_cap('manage_ai1ec_options') || defined('DOING_AJAX') && DOING_AJAX) {
         return;
     }
     global $plugin_page;
     $settings = $this->_registry->get('model.settings');
     $notification = $this->_registry->get('notification.admin');
     $notifications = array();
     // check if is set calendar page
     if (!$settings->get('calendar_page_id')) {
         $msg = Ai1ec_I18n::__('Select an option in the <strong>Calendar page</strong> dropdown list.');
         $notifications[] = $msg;
     }
     if ($plugin_page !== AI1EC_PLUGIN_NAME . '-settings' && !empty($notifications)) {
         if ($current_user->has_cap('manage_ai1ec_options')) {
             $msg = sprintf(Ai1ec_I18n::__('The plugin is installed, but has not been configured. <a href="%s">Click here to set it up now &raquo;</a>'), admin_url(AI1EC_SETTINGS_BASE_URL));
             $notification->store($msg, 'updated', 2, array(Ai1ec_Notification_Admin::RCPT_ADMIN));
         } else {
             $msg = Ai1ec_I18n::__('The plugin is installed, but has not been configured. Please log in as an Administrator to set it up.');
             $notification->store($msg, 'updated', 2, array(Ai1ec_Notification_Admin::RCPT_ALL));
         }
         return;
     }
     foreach ($notifications as $msg) {
         $notification->store($msg, 'updated', 2, array(Ai1ec_Notification_Admin::RCPT_ADMIN));
     }
 }
开发者ID:newmight2015,项目名称:psmpsm,代码行数:35,代码来源:check.php

示例6: display_page

 /**
  * Display the page html
  */
 public function display_page()
 {
     $signed_to_api = $this->_api_registration->is_signed();
     $signup_available = $this->_api_registration->is_api_sign_up_available();
     $ticketing_available = $this->_api_registration->is_ticket_available();
     $ticketing_message = $this->_api_registration->get_sign_message();
     $loader = $this->_registry->get('theme.loader');
     if (!$signed_to_api) {
         if (false === ai1ec_is_blank($ticketing_message)) {
             $this->_api_registration->clear_sign_message();
         }
         $args = array('title' => Ai1ec_I18n::__('Time.ly Ticketing'), 'sign_up_text' => 'Please, <a href="edit.php?post_type=ai1ec_event&page=all-in-one-event-calendar-settings">Sign Up for a Timely Network account</a> to use Ticketing.', 'signup_form' => Ai1ec_I18n::__('You need to sign up for a Timely Network account in order to use Ticketing<br /><br />') . ($signup_available ? Ai1ec_I18n::__('<a href="edit.php?post_type=ai1ec_event&page=all-in-one-event-calendar-settings" class="ai1ec-btn ai1ec-btn-primary ai1ec-btn-lg">Sign In to Timely Network</a>') : Ai1ec_I18n::__('<b>Signing up for a Timely Network account is currently unavailable. Please, try again later.</b>')));
         $file = $loader->get_file('ticketing/signup.twig', $args, true);
     } elseif (!$ticketing_available) {
         $args = array('title' => Ai1ec_I18n::__('Time.ly Ticketing'), 'sign_up_text' => '', 'signup_form' => 'Ticketing is currently not available for this website. Please, try again later.');
         $file = $loader->get_file('ticketing/signup.twig', $args, true);
     } else {
         $response = $this->_api_registration->get_payment_preferences();
         $purchases = $this->_api_registration->get_purchases();
         $args = array('title' => Ai1ec_I18n::__('Time.ly Ticketing'), 'settings_text' => Ai1ec_I18n::__('Settings'), 'sales_text' => Ai1ec_I18n::__('Sales'), 'select_payment_text' => Ai1ec_I18n::__('Please provide your PayPal details.'), 'cheque_text' => Ai1ec_I18n::__('Cheque'), 'paypal_text' => Ai1ec_I18n::__('PayPal'), 'currency_text' => Ai1ec_I18n::__('Preferred currency for tickets:'), 'required_text' => Ai1ec_I18n::__('This field is required.'), 'save_changes_text' => Ai1ec_I18n::__('Save Changes'), 'date_text' => Ai1ec_I18n::__('Date'), 'event_text' => Ai1ec_I18n::__('Event'), 'purchaser_text' => Ai1ec_I18n::__('Purchaser'), 'tickets_text' => Ai1ec_I18n::__('Tickets'), 'email_text' => Ai1ec_I18n::__('Email'), 'status_text' => Ai1ec_I18n::__('Status'), 'total_text' => Ai1ec_I18n::__('Total'), 'sign_out_button_text' => Ai1ec_I18n::__('Sign Out'), 'payment_method' => $response->payment_method, 'paypal_email' => $response->paypal_email, 'first_name' => $response->first_name, 'last_name' => $response->last_name, 'currency' => $response->currency, 'nonce' => array('action' => self::NONCE_ACTION, 'name' => self::NONCE_NAME, 'referrer' => false), 'action' => '?controller=front&action=ai1ec_api_ticketing_signup&plugin=' . AI1EC_PLUGIN_NAME, 'purchases' => $purchases, 'paypal_currencies' => array(array('description' => Ai1ec_I18n::__('United States Dollar'), 'code' => 'USD'), array('description' => Ai1ec_I18n::__('Canadian Dollar'), 'code' => 'CAD'), array('description' => Ai1ec_I18n::__('Australian Dollar'), 'code' => 'AUD'), array('description' => Ai1ec_I18n::__('Brazilian Real'), 'code' => 'BRL', 'note' => Ai1ec_I18n::__('Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.')), array('description' => Ai1ec_I18n::__('Czech Koruna'), 'code' => 'CZK'), array('description' => Ai1ec_I18n::__('Danish Krone'), 'code' => 'DKK'), array('description' => Ai1ec_I18n::__('Euro'), 'code' => 'EUR'), array('description' => Ai1ec_I18n::__('Hong Kong Dollar'), 'code' => 'HKD'), array('description' => Ai1ec_I18n::__('Hungarian Forint'), 'code' => 'HUF', 'note' => Ai1ec_I18n::__('Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.')), array('description' => Ai1ec_I18n::__('Israeli New Sheqel'), 'code' => 'ILS'), array('description' => Ai1ec_I18n::__('Japanese Yen'), 'code' => 'JPY', 'note' => Ai1ec_I18n::__('Note: This currency does not support decimals. Passing a decimal amount will throw an error. 1,000,000')), array('description' => Ai1ec_I18n::__('Malaysian Ringgit'), 'code' => 'MYR', 'note' => Ai1ec_I18n::__('Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.')), array('description' => Ai1ec_I18n::__('Mexican Peso'), 'code' => 'MXN'), array('description' => Ai1ec_I18n::__('Norwegian Krone'), 'code' => 'NOK'), array('description' => Ai1ec_I18n::__('New Zealand Dollar'), 'code' => 'NZD'), array('description' => Ai1ec_I18n::__('Philippine Peso'), 'code' => 'PHP'), array('description' => Ai1ec_I18n::__('Polish Zloty'), 'code' => 'PLN'), array('description' => Ai1ec_I18n::__('Pound Sterling'), 'code' => 'GBP'), array('description' => Ai1ec_I18n::__('Russian Ruble'), 'code' => 'RUB', 'note' => Ai1ec_I18n::__('For in-border payments (payments made within Russia), the Russian Ruble is the only accepted currency. If you use another currency for in-border payments, the transaction will fail')), array('description' => Ai1ec_I18n::__('Singapore Dollar'), 'code' => 'SGD'), array('description' => Ai1ec_I18n::__('Swedish Krona'), 'code' => 'SEK'), array('description' => Ai1ec_I18n::__('Swiss Franc'), 'code' => 'CHF'), array('description' => Ai1ec_I18n::__('Taiwan New Dollar'), 'code' => 'TWD', 'note' => Ai1ec_I18n::__('Note: Decimal amounts are not supported for this currency. Passing a decimal amount will throw an error.')), array('description' => Ai1ec_I18n::__('Thai Baht'), 'code' => 'THB'), array('description' => Ai1ec_I18n::__('Turkish Lira'), 'code' => 'TRY', 'note' => Ai1ec_I18n::__('Note: This currency is supported as a payment currency and a currency balance for in-country PayPal accounts only.'))));
         $file = $loader->get_file('ticketing/manage.twig', $args, true);
     }
     $this->_registry->get('css.admin')->admin_enqueue_scripts('ai1ec_event_page_all-in-one-event-calendar-settings');
     $this->_registry->get('css.admin')->process_enqueue(array(array('style', 'ticketing.css')));
     if (isset($_POST['ai1ec_save_settings'])) {
         $response = $this->_api_registration->save_payment_preferences();
         // this redirect makes sure that the error messages appear on the screen
         header("Location: " . $_SERVER['HTTP_REFERER']);
     }
     return $file->render();
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:34,代码来源:tickets.php

示例7: get_content

 public function get_content(array $view_args)
 {
     $date_system = $this->_registry->get('date.system');
     $settings = $this->_registry->get('model.settings');
     $defaults = array('oneday_offset' => 0, 'cat_ids' => array(), 'tag_ids' => array(), 'auth_ids' => array(), 'post_ids' => array(), 'exact_date' => $date_system->current_time());
     $args = wp_parse_args($view_args, $defaults);
     $local_date = $this->_registry->get('date.time', $args['exact_date'], 'sys.default')->adjust_day(0 + $args['oneday_offset'])->set_time(0, 0, 0);
     $cell_array = $this->get_oneday_cell_array($local_date, array('cat_ids' => $args['cat_ids'], 'tag_ids' => $args['tag_ids'], 'post_ids' => $args['post_ids'], 'auth_ids' => $args['auth_ids']));
     // Create pagination links.
     $pagination_links = $this->_get_pagination($args);
     $title = $local_date->format_i18n($this->_registry->get('model.option')->get('date_format', 'l, M j, Y'));
     // Calculate today marker's position.
     $now = $date_system->current_time();
     $midnight = $this->_registry->get('date.time', $now)->set_time(0, 0, 0);
     $now = $this->_registry->get('date.time', $now);
     $now_text = $this->_registry->get('view.event.time')->get_short_time($now);
     $now = $now->diff_sec($midnight);
     $is_ticket_button_enabled = apply_filters('ai1ec_oneday_ticket_button', false);
     $show_reveal_button = apply_filters('ai1ec_oneday_reveal_button', false);
     $time_format = $this->_registry->get('model.option')->get('time_format', Ai1ec_I18n::__('g a'));
     $view_args = array('title' => $title, 'type' => 'oneday', 'cell_array' => $cell_array, 'show_location_in_title' => $settings->get('show_location_in_title'), 'now_top' => $now, 'now_text' => $now_text, 'pagination_links' => $pagination_links, 'time_format' => $time_format, 'done_allday_label' => false, 'done_grid' => false, 'data_type' => $args['data_type'], 'data_type_events' => '', 'is_ticket_button_enabled' => $is_ticket_button_enabled, 'show_reveal_button' => $show_reveal_button, 'text_full_day' => __('Reveal full day', AI1EC_PLUGIN_NAME), 'text_all_day' => __('All-day', AI1EC_PLUGIN_NAME), 'text_now_label' => __('Now:', AI1EC_PLUGIN_NAME), 'text_venue_separator' => __('@ %s', AI1EC_PLUGIN_NAME));
     // Add navigation if requested.
     $view_args['pagination_links'] = $pagination_links;
     // Add navigation if requested.
     $view_args['navigation'] = $this->_get_navigation($args['no_navigation'], $view_args);
     return $this->_get_view($view_args);
 }
开发者ID:newmight2015,项目名称:psmpsm,代码行数:27,代码来源:oneday.php

示例8: ai1ec_settings_observer

 /**
  * Observes settings changes.
  *
  * If setting ai1ec_use_frontend_rendering is changed and set to true
  * perfoms theme check.
  *
  * Checks if Date format was changed, and update dates to the new format
  *
  * @param array $old_options Old options array.
  * @param array $new_options New options array.
  *
  * @return void Method does not return.
  *
  * @throws Ai1ec_Bootstrap_Exception
  */
 public function ai1ec_settings_observer($old_options, $new_options)
 {
     // Date format change checker
     $old_date_format_value = isset($old_options['input_date_format']) ? $old_options['input_date_format']['value'] : null;
     $new_date_format_value = isset($new_options['input_date_format']) ? $new_options['input_date_format']['value'] : null;
     if (null !== $old_date_format_value && null !== $new_date_format_value && $old_date_format_value !== $new_date_format_value) {
         // Get "Default calendar start date"
         $exact_date = isset($old_options['exact_date']) ? $old_options['exact_date']['value'] : '';
         if ('' !== $exact_date) {
             $date_system = $this->_registry->get('date.system');
             // Change "Default calendar start date" format
             $new_exact_date = $date_system->convert_date_format($exact_date, $old_date_format_value, $new_date_format_value);
             // Save new value
             $settings = $this->_registry->get('model.settings');
             $settings->set('exact_date', $new_exact_date);
         }
     }
     // Frontend rendering checker
     $old_value = isset($old_options['ai1ec_use_frontend_rendering']) ? (bool) $old_options['ai1ec_use_frontend_rendering']['value'] : null;
     $new_value = isset($new_options['ai1ec_use_frontend_rendering']) ? (bool) $new_options['ai1ec_use_frontend_rendering']['value'] : null;
     if ($old_value === $new_value || !$new_value) {
         return;
     }
     if ($this->is_current_theme_outside_core()) {
         $this->_registry->get('notification.admin')->store(Ai1ec_I18n::__('You have turned on Frontend Rendering and you are using a custom calendar theme. If your theme does not support Frontend Rendering, your calendar may not work correctly.'), 'error', 0, array(Ai1ec_Notification_Admin::RCPT_ADMIN), true);
     }
 }
开发者ID:uwmadisoncals,项目名称:Cluster-Plugins,代码行数:42,代码来源:check.php

示例9: add_page

 /**
  * Adds page to the menu.
  *
  * @wp_hook admin_menu
  *
  * @return void
  */
 public function add_page()
 {
     // =======================
     // = Calendar Feeds Page =
     // =======================
     $calendar_feeds = add_submenu_page(AI1EC_ADMIN_BASE_URL, Ai1ec_I18n::__('Calendar Feeds'), Ai1ec_I18n::__('Calendar Feeds'), 'manage_ai1ec_feeds', AI1EC_PLUGIN_NAME . '-feeds', array($this, 'display_page'));
     $this->_registry->get('model.settings')->set('feeds_page', $calendar_feeds);
 }
开发者ID:sedici,项目名称:wpmu-istec,代码行数:15,代码来源:calendar-feeds.php

示例10: get_footer

 /**
  * @param Ai1ec_Event $event
  *
  * @return The html of the footer
  */
 public function get_footer(Ai1ec_Event $event)
 {
     $text_calendar_feed = Ai1ec_I18n::__('This post was replicated from another site\'s <a href="%s" title="iCalendar feed"><i class="ai1ec-fa ai1ec-fa-calendar"></i> calendar feed</a>.');
     $loader = $this->_registry->get('theme.loader');
     $text_calendar_feed = sprintf($text_calendar_feed, esc_attr(str_replace('http://', 'webcal://', $event->get('ical_feed_url'))));
     $args = array('event' => $event, 'text_calendar_feed' => $text_calendar_feed, 'text_view_post' => Ai1ec_I18n::__('View original'));
     return $loader->get_file('event-single-footer.twig', $args, false)->get_content();
 }
开发者ID:piratas,项目名称:piratas-site,代码行数:13,代码来源:single.php

示例11: add_page

 public function add_page()
 {
     global $submenu;
     // ===============
     // = Themes Page =
     // ===============
     $themes_page = add_submenu_page(AI1EC_ADMIN_BASE_URL, Ai1ec_I18n::__('Calendar Themes'), Ai1ec_I18n::__('Calendar Themes'), 'switch_ai1ec_themes', AI1EC_PLUGIN_NAME . '-themes', array($this, 'display_page'));
 }
开发者ID:sedici,项目名称:wpmu-istec,代码行数:8,代码来源:theme-switching.php

示例12: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<select class=\"ai1ec-categories-selector ai1ec-select2-multiselect-selector\"\n\tid=\"";
     // line 2
     echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
     echo "\" name=\"";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : null, "html", null, true);
     echo "\"\n\tplaceholder=\"";
     // line 3
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Categories"), "html_attr");
     echo "\"\n\tdata-placeholder=\"";
     // line 4
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Categories"), "html_attr");
     echo "\"\n\tmultiple=\"multiple\">\n\t";
     // line 6
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["categories"]) ? $context["categories"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["term"]) {
         // line 7
         echo "\t\t<option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), "html", null, true);
         echo "\"\n\t\t\t";
         // line 8
         if (twig_in_filter($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), isset($context["selected_cat_ids"]) ? $context["selected_cat_ids"] : null)) {
             // line 9
             echo "      \tselected=\"selected\"\n      ";
         }
         // line 11
         echo "\t\t\t";
         if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"))) {
             // line 12
             echo "\t\t\t\tdata-description=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"), "html_attr");
             echo "\"\n\t\t\t";
         }
         // line 14
         echo "\t\t\t";
         if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "color"))) {
             // line 15
             echo "\t\t\t\tdata-color=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "color"), "html_attr");
             echo "\"\n\t\t\t";
         }
         // line 17
         echo "\t\t\t>\n\t\t\t";
         // line 18
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "name"), "html", null, true);
         echo "\n\t\t</option>\n\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['term'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 21
     echo "</select>\n";
 }
开发者ID:USSLomaPrieta,项目名称:usslomaprieta.org,代码行数:56,代码来源:fa01bbe4d4ffa4f03a4cba6fb9acbd490824785b969c9e705534675c60f5.php

示例13: plugin_action_links

 /**
  * Adds a link to Settings page in plugin list page.
  *
  * @param  array $links List of available links.
  *
  * @return array Modified links list.
  */
 public function plugin_action_links($links)
 {
     $settings_link = sprintf(Ai1ec_I18n::__('<a href="%s">Settings</a>'), ai1ec_admin_url(AI1EC_SETTINGS_BASE_URL));
     array_unshift($links, $settings_link);
     if (current_user_can('activate_plugins')) {
         $updates_link = sprintf(Ai1ec_I18n::__('<a href="%s">Check for updates</a>'), ai1ec_admin_url(AI1EC_FORCE_UPDATES_URL));
         array_push($links, $updates_link);
     }
     return $links;
 }
开发者ID:sedici,项目名称:wpmu-istec,代码行数:17,代码来源:nav.php

示例14: display_page

 /**
  * Display the page html
  */
 public function display_page()
 {
     $settings = $this->_registry->get('model.settings');
     $args = array('title' => Ai1ec_I18n::__('Time.ly Ticketing beta'), 'nonce' => array('action' => self::NONCE_ACTION, 'name' => self::NONCE_NAME, 'referrer' => false), 'metabox' => array('screen' => $settings->get('enabling_ticket_invitation_page'), 'action' => 'left', 'object' => null), 'action' => ai1ec_admin_url('?controller=front&action=ai1ec_ticketing_invitation_save&plugin=' . AI1EC_PLUGIN_NAME));
     $loader = $this->_registry->get('theme.loader');
     $file = $loader->get_file('ticketing-invitation/page.twig', $args, true);
     $this->_registry->get('css.admin')->admin_enqueue_scripts('ai1ec_event_page_all-in-one-event-calendar-settings');
     $this->_registry->get('css.admin')->process_enqueue(array(array('style', 'ticketing.css')));
     return $file->render();
 }
开发者ID:andyUA,项目名称:kabmin-new,代码行数:13,代码来源:ticketing-invitation.php

示例15: doDisplay

 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<li>";
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Posterboard view:"), "html", null, true);
     echo " <code class=\"ai1ec-autoselect\">[ai1ec view=\"posterboard\"]</code></li>\n<li>";
     // line 2
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Stream view:"), "html", null, true);
     echo " <code class=\"ai1ec-autoselect\">[ai1ec view=\"stream\"]</code></li>";
 }
开发者ID:USSLomaPrieta,项目名称:usslomaprieta.org,代码行数:10,代码来源:85a17f9b9e35d729b272a84af56351043ae57c0e25ae062d84849d0350cc.php


注:本文中的Ai1ec_I18n::__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。