本文整理汇总了PHP中mdjm_get_label_singular函数的典型用法代码示例。如果您正苦于以下问题:PHP mdjm_get_label_singular函数的具体用法?PHP mdjm_get_label_singular怎么用?PHP mdjm_get_label_singular使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mdjm_get_label_singular函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mdjm_display_event_playlist_page
/**
* Display the event playlist page.
*
* @since 1.3
* @param
* @return str The event playlist page content.
*/
function mdjm_display_event_playlist_page()
{
if (!mdjm_employee_can('read_events') && !mdjm_employee_working_event($_GET['event_id'])) {
wp_die('<h1>' . __('Cheatin’ uh?') . '</h1>' . '<p>' . __('You do not have permission to view this playlist.', 'mobile-dj-manager') . '</p>', 403);
}
if (!class_exists('MDJM_PlayList_Table')) {
require_once MDJM_PLUGIN_DIR . '/includes/admin/events/class-mdjm-playlist-table.php';
}
$playlist_obj = new MDJM_PlayList_Table();
?>
<div class="wrap">
<h1><?php
printf(__('Playlist for %s %s', 'mobile-dj-manager'), mdjm_get_label_singular(), mdjm_get_event_contract_id($_GET['event_id']));
?>
</h1>
<form method="post">
<?php
$playlist_obj->prepare_items();
$playlist_obj->display_header();
if (count($playlist_obj->items) > 0) {
$playlist_obj->views();
}
$playlist_obj->display();
$playlist_obj->entry_form();
?>
</form>
<br class="clear">
</div>
<?php
}
示例2: mdjm_show_upgrade_notice
/**
* Display a notice if an upgrade is required.
*
* @since 1.4
*/
function mdjm_show_upgrade_notice()
{
if (isset($_GET['page']) && $_GET['page'] == 'mdjm-upgrades') {
return;
}
$mdjm_version = get_option('mdjm_version');
$mdjm_version = preg_replace('/[^0-9.].*/', '', $mdjm_version);
// Check if there is an incomplete upgrade routine.
$resume_upgrade = mdjm_maybe_resume_upgrade();
if (!empty($resume_upgrade)) {
$resume_url = add_query_arg($resume_upgrade, admin_url('index.php'));
printf('<div class="notice notice-error"><p>' . __('MDJM Event Management needs to complete an upgrade that was previously started. Click <a href="%s">here</a> to resume the upgrade.', 'mobile-dj-manager') . '</p></div>', esc_url($resume_url));
} else {
if (version_compare($mdjm_version, '1.4', '<') || !mdjm_has_upgrade_completed('upgrade_event_packages')) {
printf('<div class="notice notice-error"><p>' . __('MDJM Event Management needs to perform an upgrade to %s Packages and Add-ons. Click <a href="%s">here</a> to start the upgrade.', 'mobile-dj-manager') . '</p></div>', mdjm_get_label_singular(true), esc_url(admin_url('index.php?page=mdjm-upgrades&mdjm-upgrade=upgrade_event_packages&message=1&redirect=' . mdjm_get_current_page_url())));
}
/*
* NOTICE:
*
* When adding new upgrade notices, please be sure to put the action into the upgrades array during install:
* /includes/install.php @ Appox Line 783
*
*/
}
}
示例3: mdjm_transaction_post_columns
/**
* Define the columns to be displayed for transaction posts
*
* @since 0.5
* @param arr $columns Array of column names
* @return arr $columns Filtered array of column names
*/
function mdjm_transaction_post_columns($columns)
{
$columns = array('cb' => '<input type="checkbox" />', 'title' => __('ID', 'mobile-dj-manager'), 'txn_date' => __('Date', 'mobile-dj-manager'), 'direction' => __('In/Out', 'mobile-dj-manager'), 'payee' => __('To/From', 'mobile-dj-manager'), 'txn_status' => __('Status', 'mobile-dj-manager'), 'detail' => __('Details', 'mobile-dj-manager'), 'event' => sprintf(__('%s', 'mobile-dj-manager'), mdjm_get_label_singular()), 'txn_value' => __('Value', 'mobile-dj-manager'));
if (!mdjm_employee_can('edit_txns') && isset($columns['cb'])) {
unset($columns['cb']);
}
return $columns;
}
示例4: __construct
/**
* Get things started
*
* @since 1.4
* @see WP_List_Table::__construct()
*/
public function __construct()
{
global $status, $page;
// Set parent defaults
parent::__construct(array('singular' => mdjm_get_label_singular(), 'plural' => mdjm_get_label_plural(), 'ajax' => false));
$this->label_single = mdjm_get_label_singular();
$this->label_plural = mdjm_get_label_plural();
}
示例5: mdjm_communication_post_columns
/**
* Define the columns to be displayed for communication posts
*
* @since 0.5
* @param arr $columns Array of column names
* @return arr $columns Filtered array of column names
*/
function mdjm_communication_post_columns($columns)
{
$columns = array('cb' => '<input type="checkbox" />', 'date_sent' => __('Date Sent', 'mobile-dj-manager'), 'title' => __('Email Subject', 'mobile-dj-manager'), 'from' => __('From', 'mobile-dj-manager'), 'recipient' => __('Recipient', 'mobile-dj-manager'), 'event' => sprintf(__('%s', 'mobile-dj-manager'), mdjm_get_label_singular()), 'current_status' => __('Status', 'mobile-dj-manager'), 'source' => __('Source', 'mobile-dj-manager'));
if (!mdjm_is_admin() && isset($columns['cb'])) {
unset($columns['cb']);
}
return $columns;
}
示例6: mdjm_event_add_journal_after_status_change
/**
* Fires after an event's status is updated.
*
* Add journal entry.
*
* @since 1.3
* @param int|bool $result The result of the status change function. False is an unsuccessful status update.
* @param int $event_id The event ID.
* @param str $new_status The new event status.
* @param str $old_status The old event status.
* @param arr $args Arguments passed to the mdjm_update_event_status function
* @return void
*/
function mdjm_event_add_journal_after_status_change($result, $event_id, $new_status, $old_status, $args)
{
if (empty($result)) {
return;
}
$reject_reason = $new_status == 'mdjm-rejected' && !empty($args['reject_reason']) ? '<br />' . $args['reject_reason'] : '';
$comment_args = array('user_id' => is_user_logged_in() ? get_current_user_id() : 1, 'event_id' => $event_id, 'comment_content' => sprintf(__('%s status updated to %s.%s', 'mobile-dj-manager'), mdjm_get_label_singular(), mdjm_get_event_status($event_id), $reject_reason));
mdjm_add_journal($comment_args);
}
示例7: __construct
/**
* Get things started
*
* @since 1.4
* @see WP_List_Table::__construct()
*/
public function __construct()
{
global $status, $page;
// Set parent defaults
parent::__construct(array('singular' => __('Transaction', 'mobile-dj-manager'), 'plural' => __('Transactions', 'mobile-dj-manager'), 'ajax' => false));
$this->label_single = mdjm_get_label_singular();
$this->label_plural = mdjm_get_label_plural();
add_action('mdjm_reports_txn_types_additional_stats', array($this, 'graph_totals'));
}
示例8: __construct
/**
* Get things started
*
* @since 1.4
* @see WP_List_Table::__construct()
*/
public function __construct()
{
global $status, $page;
// Set parent defaults
parent::__construct(array('singular' => mdjm_get_label_singular(), 'plural' => mdjm_get_label_plural(), 'ajax' => false));
$this->label_single = mdjm_get_label_singular();
$this->label_plural = mdjm_get_label_plural();
add_action('mdjm_reports_conversions_graph_additional_stats', array($this, 'graph_totals'));
}
示例9: mdjm_comms_email_contextual_help
/**
* Communications contextual help.
*
* @since 1.3
* @return void
*/
function mdjm_comms_email_contextual_help()
{
$screen = get_current_screen();
if ($screen->id != 'mdjm-event_page_mdjm-comms') {
return;
}
$screen->set_help_sidebar('<p><strong>' . __('For more information:', 'mobile-dj-manager') . '</strong></p>' . '<p>' . sprintf(__('Visit the <a href="%s">documentation</a> on the MDJM Event Management website.', 'mobile-dj-manager'), esc_url('http://mdjm.co.uk/support/')) . '</p>' . '<p>' . sprintf(__('Join our <a href="%s">Facebook Group</a>.', 'mobile-dj-manager'), esc_url('https://www.facebook.com/groups/mobiledjmanager/')) . '</p>' . '<p>' . sprintf(__('<a href="%s">Post an issue</a> on <a href="%s">GitHub</a>.', 'mobile-dj-manager'), esc_url('https://github.com/mdjm/mobile-dj-manager/issues'), esc_url('https://github.com/mdjm/mobile-dj-manager/')) . '</p>' . '<p>' . sprintf(__('View <a href="%s">add-ons</a>.', 'mobile-dj-manager'), esc_url('http://mdjm.co.uk/add-ons/')) . '</p>');
do_action('mdjm_pre_comms_email_contextual_help', $screen);
$screen->add_help_tab(array('id' => 'mdjm-comm-email', 'title' => __('Communications', 'mobile-dj-manager'), 'content' => '<p>' . sprintf(__('<strong>Select a Recipient</strong> - Choose from the dropdown list who your email is to. Users are grouped into Clients and Employees. Once you have selected a recipient the Associated %s list will be updated with their active %s. This is a required field.', 'mobile-dj-manager'), mdjm_get_label_plural(), mdjm_get_label_plural(true)) . '</p>' . '<p>' . __('<strong>Subject</strong> - Enter the subject of your email. If you select a template the subject will be updated to the title of the template. This is a required field.', 'mobile-dj-manager') . '</p>' . '<p>' . __('<strong>Copy Yourself?</strong> - Select this option if you wish to receive a copy of the email. If the settings options have been enabled to copy Admin and/or Employee into Client emails, you may receive a copy regardless of whether or not this option is selected.', 'mobile-dj-manager') . '</p>' . '<p>' . __('<strong>Select a Template</strong> - Choose a pre-defined email or contract template to populate the content field. Anything you have already entered into the content field will be overwritten. If you do not select a template, you will need to manually enter content into the content field.', 'mobile-dj-manager') . '</p>' . '<p>' . sprintf(__('<strong>Associated %s</strong> - If the Client or Employee you have selected within the <strong>Select a Recipient</strong> field has active %s it is displayed here. Select it to tell MDJM that the email you are sending is associated to this %s and %1$s content tags can be used within the email content.', 'mobile-dj-manager'), mdjm_get_label_singular(), mdjm_get_label_plural(true), mdjm_get_label_singular(true)) . '</p>' . '<p>' . __('<strong>Attach a File</strong> - Enables you to select a file from your computer to the email.', 'mobile-dj-manager') . '</p>' . '<p>' . __('<strong>Content</strong> - If you have selected a template within the <strong>Select a Template</strong> field, this field will be populated with that templates content. You can adjust this content as required. Alternatively, if no template is selected, use this as a free text field for your email content. Content tags are supported and can be entered via the <strong>MDJM</strong> button on the text editor toolbar. Remember this field is resizeable. Drag from the bottom right hand corner to make bigger if necessary. This is a required field.', 'mobile-dj-manager') . '</p>'));
do_action('mdjm_post_comms_email_contextual_help', $screen);
}
示例10: create_tasks
public function create_tasks()
{
global $mdjm_options;
$time = current_time('timestamp');
if (isset($mdjm_options['upload_playlists'])) {
$playlist_nextrun = strtotime('+1 day', $time);
} else {
$playlist_nextrun = 'N/A';
}
$mdjm_schedules = array('complete-events' => array('slug' => 'complete-events', 'name' => 'Complete Events', 'active' => 'Y', 'desc' => sprintf(__('Mark %s as completed once the %s date has passed', 'mobile-dj-manager'), mdjm_get_label_plural(true), mdjm_get_label_singular(true)), 'frequency' => 'Daily', 'nextrun' => $time, 'lastran' => 'Never', 'options' => array('email_client' => 'N', 'email_template' => '0', 'email_subject' => sprintf(__('Task Complete %s has finished', 'mobile-dj-manager'), mdjm_get_label_plural()), 'email_from' => 'admin', 'run_when' => 'after_event', 'age' => '1 HOUR', 'notify_admin' => 'Y', 'notify_dj' => 'N'), 'function' => 'complete_event', 'totalruns' => '0', 'default' => 'Y'), 'request-deposit' => array('slug' => 'request-deposit', 'name' => 'Request Deposit', 'active' => 'N', 'desc' => sprintf(__('Send reminder email to client requesting deposit payment if %s status is Approved and deposit has not been received', 'mobile-dj-manager'), mdjm_get_label_singular(true)), 'frequency' => 'Daily', 'nextrun' => 'N/A', 'lastran' => 'Never', 'options' => array('email_client' => 'Y', 'email_template' => '0', 'email_subject' => __('Request Deposit Task Complete', 'mobile-dj-manager'), 'email_from' => 'admin', 'run_when' => 'after_approval', 'age' => '3 DAY', 'notify_admin' => 'Y', 'notify_dj' => 'N'), 'function' => 'request_deposit', 'totalruns' => '0', 'default' => 'Y'), 'balance-reminder' => array('slug' => 'balance-reminder', 'name' => __('Balance Reminder', 'mobile-dj-manager'), 'active' => 'N', 'desc' => sprintf(__('Send email to client requesting they pay remaining balance for %s', 'mobile-dj-manager'), mdjm_get_label_singular(true)), 'frequency' => 'Daily', 'nextrun' => 'N/A', 'lastran' => 'Never', 'options' => array('email_client' => 'Y', 'email_template' => '0', 'email_subject' => __('Balance Reminder Task Complete', 'mobile-dj-manager'), 'email_from' => 'admin', 'run_when' => 'before_event', 'age' => '2 WEEK', 'notify_admin' => 'Y', 'notify_dj' => 'N'), 'function' => 'balance_reminder', 'totalruns' => '0', 'default' => 'Y'), 'fail-enquiry' => array('slug' => 'fail-enquiry', 'name' => __('Fail Enquiry', 'mobile-dj-manager'), 'active' => 'N', 'desc' => __('Automatically fail enquiries that have not been updated within the specified amount of time', 'mobile-dj-manager'), 'frequency' => 'Daily', 'nextrun' => 'N/A', 'lastran' => 'Never', 'options' => array('email_client' => 'N', 'email_template' => '0', 'email_subject' => __('Fail Enquiry Task Complete', 'mobile-dj-manager'), 'email_from' => 'admin', 'run_when' => 'event_created', 'age' => '2 WEEK', 'notify_admin' => 'Y', 'notify_dj' => 'N'), 'function' => 'fail_enquiry', 'totalruns' => '0', 'default' => 'Y'), 'upload-playlists' => array('slug' => 'upload-playlists', 'name' => __('Upload Playlists', 'mobile-dj-manager'), 'active' => 'Y', 'desc' => __('Transmit playlist information back to the MDJM servers to help build an information library. This option is updated the MDJM Settings pages.', 'mobile-dj-manager'), 'frequency' => 'Twice Daily', 'nextrun' => $playlist_nextrun, 'lastran' => 'Never', 'options' => array('email_client' => 'N', 'email_template' => '0', 'email_subject' => '0', 'email_from' => '0', 'run_when' => 'after_event', 'age' => '1 HOUR', 'notify_admin' => 'N', 'notify_dj' => 'N'), 'function' => 'submit_playlist', 'totalruns' => '0', 'default' => 'Y'));
update_option('mdjm_schedules', $mdjm_schedules);
}
示例11: mdjm_contract_contextual_help
/**
* Contracts contextual help.
*
* @since 1.3
* @return void
*/
function mdjm_contract_contextual_help()
{
$screen = get_current_screen();
if ($screen->id != 'contract') {
return;
}
$screen->set_help_sidebar('<p><strong>' . __('For more information:', 'mobile-dj-manager') . '</strong></p>' . '<p>' . sprintf(__('Visit the <a href="%s">documentation</a> on the MDJM Event Management website.', 'mobile-dj-manager'), esc_url('http://mdjm.co.uk/support/')) . '</p>' . '<p>' . sprintf(__('Join our <a href="%s">Facebook Group</a>.', 'mobile-dj-manager'), esc_url('https://www.facebook.com/groups/mobiledjmanager/')) . '</p>' . '<p>' . sprintf(__('<a href="%s">Post an issue</a> on <a href="%s">GitHub</a>.', 'mobile-dj-manager'), esc_url('https://github.com/mdjm/mobile-dj-manager/issues'), esc_url('https://github.com/mdjm/mobile-dj-manager/')) . '</p>' . '<p>' . sprintf(__('View <a href="%s">add-ons</a>.', 'mobile-dj-manager'), esc_url('http://mdjm.co.uk/add-ons/')) . '</p>');
do_action('mdjm_pre_contract_contextual_help', $screen);
$screen->add_help_tab(array('id' => 'mdjm-contract-add', 'title' => __('Add New Template', 'mobile-dj-manager'), 'content' => '<p>' . __('<strong>Title</strong> - Enter a title for your contract. A good title is short but descriptive of the type of contract.', 'mobile-dj-manager') . '</p>' . '<p>' . __('<strong>Content</strong> - Enter the content for your template. HTML, images, and MDJM content tags are supported. Use the MDJM button on the content editor toolbar for easy access to the content tags.', 'mobile-dj-manager') . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-contract-save', 'title' => __('Save Contract', 'mobile-dj-manager'), 'content' => '<p>' . __("Save a draft if you've still got content to add, click preview to see what your contract looks like when formatted and click Save Contract when you are ready to publish.", 'mobile-dj-manager') . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-contract-details', 'title' => sprintf(__('%s Details', 'mobile-dj-manager'), mdjm_get_label_singular()), 'content' => '<p>' . sprintf(__('Displays general information regarding this contract such as Author, whether it is the default contract used for %1$s, and the number of %1$s it is assigned to. Enter a description if necessary to describe the type of contract and for which type of %1$s it should be used. The description will not be seen by clients.', 'mobile-dj-manager'), mdjm_get_label_plural(true)) . '</p>'));
do_action('mdjm_post_contract_contextual_help', $screen);
}
示例12: mdjm_contract_details_metabox
/**
* Output for the Contract Details meta box.
*
* @since 1.3
* @param obj $post The post object (WP_Post).
* @return
*/
function mdjm_contract_details_metabox($post)
{
do_action('mdjm_pre_contract_details_metabox', $post);
wp_nonce_field(basename(__FILE__), 'mdjm-contract' . '_nonce');
$contract_events = get_posts(array('post_type' => 'mdjm-event', 'posts_per_page' => -1, 'meta_key' => '_mdjm_event_contract', 'meta_value_num' => $post->ID, 'post_status' => 'any'));
$event_count = count($contract_events);
$total_events = sprintf(_n(' %s', ' %s', $event_count), mdjm_get_label_singular(), mdjm_get_label_plural());
$default_contract = mdjm_get_option('default_contract') == $post->ID ? __('Yes') : __('No');
?>
<script type="text/javascript">
document.getElementById("title").className += " required";
document.getElementById("content").className += " required";
</script>
<p><?php
printf(__('<strong>Author</strong>: <a href="%s">%s</a>', 'mobile-dj-manager'), admin_url("user-edit.php?user_id={$post->post_author}"), get_the_author_meta('display_name', $post->post_author));
?>
</p>
<p><?php
_e('<strong>Default</strong>?', 'mobile-dj-manager');
echo ' ' . $default_contract;
?>
</p>
<p><?php
_e('<strong>Assigned To</strong>: ', 'mobile-dj-manager');
printf(_n($event_count . ' %1$s', $event_count . ' %2$s', $event_count), mdjm_get_label_singular(), mdjm_get_label_plural());
?>
</p>
<p><?php
_e('<strong>Description</strong>: <span class="description">(optional)</span>', 'mobile-dj-manager');
?>
<br />
<input type="hidden" name="mdjm_update_custom_post" id="mdjm_update_custom_post" value="mdjm_update" />
<textarea name="contract_description" id="contract_description" class="widefat" rows="5" placeholder="<?php
_e('i.e To be used for Pubs/Clubs', 'mobile-dj-manager');
?>
"><?php
echo esc_attr(get_post_meta($post->ID, '_contract_description', true));
?>
</textarea>
</p>
<?php
do_action('mdjm_post_contract_details_metabox', $post);
}
示例13: mdjm_events_contextual_help
/**
* Events contextual help.
*
* @since 1.3
* @return void
*/
function mdjm_events_contextual_help()
{
$screen = get_current_screen();
if ($screen->id != 'mdjm-event') {
return;
}
$screen->set_help_sidebar('<p><strong>' . __('For more information:', 'mobile-dj-manager') . '</strong></p>' . '<p>' . sprintf(__('Visit the <a href="%s">documentation</a> on the MDJM Event Management website.', 'mobile-dj-manager'), esc_url('http://mdjm.co.uk/support/')) . '</p>' . '<p>' . sprintf(__('Join our <a href="%s">Facebook Group</a>.', 'mobile-dj-manager'), esc_url('https://www.facebook.com/groups/mobiledjmanager/')) . '</p>' . '<p>' . sprintf(__('<a href="%s">Post an issue</a> on <a href="%s">GitHub</a>.', 'mobile-dj-manager'), esc_url('https://github.com/mdjm/mobile-dj-manager/issues'), esc_url('https://github.com/mdjm/mobile-dj-manager/')) . '</p>' . '<p>' . sprintf(__('View <a href="%s">add-ons</a>.', 'mobile-dj-manager'), esc_url('http://mdjm.co.uk/add-ons/')) . '</p>');
$screen->add_help_tab(array('id' => 'mdjm-event-options', 'title' => sprintf(__('%s Options', 'mobile-dj-manager'), mdjm_get_label_singular()), 'content' => '<p>' . sprintf(__('<strong>%1$s Status</strong> - Set the status of this %1$s. An description of each status can be found <a href="%2$s" target="_blank">here</a>', 'mobile-dj-manager'), mdjm_get_label_singular(), 'http://mdjm.co.uk/docs/event-statuses/') . '</p>' . '<p>' . sprintf(__('<strong>%1$s Status</strong> - Set the type of %1$s <em>i.e. Wedding or 40th Birthday</em>. You can define the types <a href="%s">here</a>.', 'mobile-dj-manager'), mdjm_get_label_singular(), admin_url('edit-tags.php?taxonomy=event-types&post_type=mdjm-event')) . '</p>' . '<p>' . sprintf(__('<strong>%1$s Contract</strong> - Select the contract associated with this %1$s.', 'mobile-dj-manager'), mdjm_get_label_singular()) . '</p>' . '<p>' . __('<strong>Disable Client Update Emails?</strong> - Selecting this option will stop any emails being sent to the client during update.', 'mobile-dj-manager') . '</p>' . '<p>' . __("<strong>Reset Client Password</strong> - If selected whilst transitioning to enquiry status, the client's password will be reset. If you insert the <code>{client_password}</code> content tag into your email template, the password will be inserted.", 'mobile-dj-manager') . '</p>' . '<p>' . __('<strong>Email Quote Template</strong> - During transition to Enquiry status, select which quote email template should be sent to the client.', 'mobile-dj-manager') . '</p>' . '<p>' . __('<strong>Online Quote Template</strong> - During transition to Enquiry status, select which quote template should be used to generate the page that displays the online quote.', 'mobile-dj-manager') . '</p>' . '<p>' . sprintf(__('<strong>%1$s Paid?</strong> - Select this option if the client has paid their %1$s.', 'mobile-dj-manager'), mdjm_get_deposit_label()) . '</p>' . '<p>' . sprintf(__('<strong>%1$s Paid?</strong> - Select this option if the client has paid their %1$s.', 'mobile-dj-manager'), mdjm_get_balance_label()) . '</p>' . '<p>' . sprintf(__('<strong>Enable %1$s Playlist?</strong> - Toggle whether or not the client can manage the playlist for this %1$s.', 'mobile-dj-manager'), mdjm_get_label_singular()) . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-settings-client-details', 'title' => __('Client Details', 'mobile-dj-manager'), 'content' => '<p>' . sprintf(__("Select a client for this %s. If the client does not exist, you can select <em>Add New Client</em>. In doing so, additional fields will be displayed enabling you to enter the new client's details.", 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-event-details', 'title' => sprintf(__('%s Details', 'mobile-dj-manager'), mdjm_get_label_singular()), 'content' => '<p>' . sprintf(__('<strong>%1$s Name</strong> - Assign a name for this %1$s. Can be viewed and adjusted by the client.', 'mobile-dj-manager'), mdjm_get_label_singular()) . '</p>' . '<p>' . sprintf(__('<strong>Select Primary Employee</strong> - Select the primary employee for this %s.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('<strong>%1$s Date</strong> - Use the datepicker to set the date for this %1s$s.', 'mobile-dj-manager'), mdjm_get_label_singular()) . '</p>' . '<p>' . sprintf(__('<strong>Start Time</strong> - Set the start time of the %s', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('<strong>End Time</strong> - Set the end time of the %', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('<strong>Total Cost</strong> - Enter the total cost of the %s. If using equipment packages and add-ons, selecting these will automatically set this cost.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('<strong>%1$s</strong> - Enter the %1$s that needs to be collected for this %2$s upon contract signing. This field can be auto populated depending on your settings and equipment packages and add-on selections', 'mobile-dj-manager'), mdjm_get_deposit_label(), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('<strong>Select an %1$s Package</strong> - If packages are enabled and defined you can assign one to the %1$s here. Doing so will auto update the <em>Total Cost</em> and <em>%2$s</em> fields. Additionally, the <em>Select Add-ons</em> options will be updated to exclude add-ons included within the selected package.', 'mobile-dj-manager'), mdjm_get_label_singular(), mdjm_get_deposit_label()) . '</p>' . '<p>' . sprintf(__('<strong>Select Add-ons</strong> - If packages are enabled you can assign add-ons to your %s here. The <em>Total Cost</em> and <em>%s</em> fields will be updated automatically to reflect the new costs.', 'mobile-dj-manager'), mdjm_get_label_singular(true), mdjm_get_deposit_label()) . '</p>' . '<p>' . __('<strong>Notes</strong> - Information entered here will be visible to the client and all event employees.', 'mobile-dj-manager') . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-event-employees', 'title' => sprintf(__('%s Employees', 'mobile-dj-manager'), mdjm_get_label_singular()), 'content' => '<p>' . sprintf(__('Employees that are assigned to the %1$s are listed here together with their role and wage. You can add additional employees to the %1$s, select their %1$s role and allocate their wages.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-event-venue-details', 'title' => __('Venue Details', 'mobile-dj-manager'), 'content' => '<p>' . __('Select the venue from the drop down. If the venue does not exist, you can specify it manually by selecting <em>Enter Manually</em> and completing the additional fields that are then displayed.', 'mobile-dj-manager') . '</p>' . '<p>' . __('Check the <em>Save this Venue</em> option to save the venue.', 'mobile-dj-manager') . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-event-transactions', 'title' => __('Transactions', 'mobile-dj-manager'), 'content' => '<p>' . sprintf(__('This section allows you to add transactions associated with the %1$s as well as listing existing associated transactions.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('If transactions already exist, the total amount of income and expenditure is displayed as well as the total overall earnings so far for the %1$s.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>'));
$screen->add_help_tab(array('id' => 'mdjm-event-administration', 'title' => __('Administration', 'mobile-dj-manager'), 'content' => '<p>' . __('<strong>Enquiry Source</strong> - Select how the client heard about your business', 'mobile-dj-manager') . '</p>' . '<p>' . sprintf(__('<strong>Setup Date</strong> - Use the datepicker to select the date that you need to setup for this %s.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . sprintf(__('<strong>Setup Time</strong> - Select the time that you need to setup for this %s.', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>' . '<p>' . __('<strong>Employee Notes</strong> - Enter notes that are only visible by employees. Clients will not see these notes', 'mobile-dj-manager') . '</p>' . '<p>' . sprintf(__('<strong>Admin Notes</strong> - Enter notes that are only visible by admins. Employees and clients will not see these notes', 'mobile-dj-manager'), mdjm_get_label_singular(true)) . '</p>'));
do_action('mdjm_events_contextual_help', $screen);
}
示例14: csv_cols
/**
* Set the CSV columns
*
* @access public
* @since 1.4
* @return arr $cols All the columns
*/
public function csv_cols()
{
if (!empty($_POST['mdjm_export_event'])) {
$cols = array('first_name' => __('First Name', 'mobile-dj-manager'), 'last_name' => __('Last Name', 'mobile-dj-manager'), 'email' => __('Email', 'mobile-dj-manager'), 'date' => sprintf(__('%s Date', 'mobile-dj-manager'), mdjm_get_label_singular()));
} else {
$cols = array();
if ('emails' != $_POST['mdjm_export_option']) {
$cols['name'] = __('Name', 'mobile-dj-manager');
}
$cols['email'] = __('Email', 'mobile-dj-manager');
if ('full' == $_POST['mdjm_export_option']) {
$cols['events'] = sprintf(__('Total %s', 'mobile-dj-manager'), mdjm_get_label_plural());
$cols['amount'] = __('Total Value', 'mobile-dj-manager') . ' (' . html_entity_decode(mdjm_currency_filter('')) . ')';
}
}
return $cols;
}
示例15: mdjm_edit_event_type_fields
/**
* Add an option field to set the default event type when editing a type.
*
* @since 1.3
* @param obj $tag The tag object
* @return str
*/
function mdjm_edit_event_type_fields($tag)
{
?>
<tr class="form-field term-group-wrap">
<th scope="row"><label for="event_type_default"><?php
printf(__('Set as Default %s type?', 'mobile-dj-manager'), mdjm_get_label_singular());
?>
</label></th>
<td><input type="checkbox" id="event_type_default" name="event_type_default" value="<?php
echo $tag->term_id;
?>
" <?php
checked(mdjm_get_option('event_type_default'), $tag->term_id);
?>
></td>
</tr>
<?php
}