} $action_url = admin_url('admin.php?page=oasiswf-admin'); echo "</div>\n\t\t\t\t\t\t\t\t\t</td>"; echo "<td>{$wf->version}</td>"; echo "<td>" . OW_Utility::instance()->format_date_for_display($wf->start_date) . "</td>"; echo "<td>" . OW_Utility::instance()->format_date_for_display($wf->end_date) . "</td>"; echo "<td>{$postcount}</td>"; echo "<td>{$valid}</td>"; echo "</tr>"; } $count++; } } else { $msg = "<label>" . __("You don't have any workflows.", "oasisworkflow") . "</label>"; echo "<tr>"; echo "<td colspan='8' class='no-found-lbl'>{$msg}</td>"; echo "</tr>"; } ?> </tbody> </table> </form> <div class="tablenav"> <div class="tablenav-pages"> <?php OW_Utility::instance()->get_page_link($workflow_count, $pagenum, $per_page); ?> </div> </div> </div> </div>
public function owf_dropdown_post_types_multi($selected_option) { $selected_row = ''; // get all custom types $types = OW_Utility::instance()->owf_get_post_types(); $selected = ''; foreach ($types as $post_type) { // If post type is wordpress builtin then ignore it. if (!empty($selected_option) && $post_type['name'] == $selected_option) { // preselect specified role $selected = " selected='selected' "; } else { $selected = ''; } $selected_row .= "<option value=" . esc_attr($post_type['name']) . $selected . ">"; $selected_row .= $post_type['label']; $selected_row .= "</option>"; } echo $selected_row; }
<?php global $wpdb, $chkResult; $ow_workflow_service = new OW_Workflow_Service(); if (is_admin() && preg_match_all('/page=oasiswf(.*)|post-new\\.(.*)|post\\.(.*)/', $_SERVER['REQUEST_URI'], $matches)) { wp_enqueue_script('owf-workflow-history', OASISWF_URL . 'js/pages/subpages/history-graphic.js', '', OASISWF_VERSION, true); } $workflow = null; $post_id = intval(sanitize_text_field($_GET['post'])); if (is_numeric($chkResult)) { $sql = "SELECT C.ID, C.wf_info\n \t\t\tFROM (\n \t\t\t\t(SELECT * FROM " . OW_Utility::instance()->get_action_history_table_name() . " WHERE ID = {$chkResult}) AS A\n \t\t\t\tLEFT JOIN " . OW_Utility::instance()->get_workflow_steps_table_name() . " AS B\n \t\t\t\tON A.step_id = B.ID\n \t\t\t\tLEFT JOIN " . OW_Utility::instance()->get_workflows_table_name() . " AS C\n \t\t\t\tON B.workflow_id = C.ID\n \t\t\t)"; $workflow = $wpdb->get_row($sql); } if ($workflow) { $sql = "SELECT * FROM " . OW_Utility::instance()->get_action_history_table_name() . " WHERE ID <= {$chkResult} AND (action_status = 'processed' OR action_status = 'assignment') AND post_id = %d ORDER BY ID"; $processes = $wpdb->get_results($wpdb->prepare($sql, $post_id)); if ($processes) { $startid = ""; foreach ($processes as $process) { if ($startid) { $newconns[] = $ow_workflow_service->get_connection($workflow, $startid, $process->step_id); } $startid = $process->step_id; } $current_step_id = $ow_workflow_service->get_gpid_dbid($workflow->wf_info, $startid); $wf_info = $workflow->wf_info; } echo "<script type='text/javascript'>\n\t\t\tvar wfPluginUrl = '" . OASISWF_URL . "' ;\n\t\t\tvar stepinfo='{$wf_info}' ;\n\t\t\tvar currentStepGpId='{$current_step_id}' ;\n\t\t</script>"; } ?> <div id="workflow-area" style="position:relative;width:100%;"></div>
$count++; } } else { echo "<tr>"; echo "<td class='hurry-td' colspan='9'>\n\t\t\t\t\t\t\t\t<label class='hurray-lbl'>"; echo __("Hurray! No assignments", "oasisworkflow"); echo "</label></td>"; echo "</tr>"; } ?> </tbody> </table> <div class="tablenav"> <div class="tablenav-pages"> <?php OW_Utility::instance()->get_page_link($count_posts, $page_number, $per_page); ?> </div> </div> </div> </div> <span id="wf_edit_inline_content"></span> <div id ="step_submit_content"></div> <div id="reassign-div"></div> <div id="post_com_count_content"></div> <input type="hidden" name="owf_claim_process_ajax_nonce" id="owf_claim_process_ajax_nonce" value="<?php echo wp_create_nonce('owf_claim_process_ajax_nonce'); ?> " /> <input type="hidden" name="owf_inbox_ajax_nonce" id="owf_inbox_ajax_nonce" value="<?php echo wp_create_nonce('owf_inbox_ajax_nonce');
private function validate_dates($start_date, $end_date, $wf_id) { global $wpdb; $error_messages = ""; // start date is required if (empty($start_date) || $start_date == "0000-00-00") { $error_messages .= __("Start date is required.", "oasisworkflow"); $error_messages .= "<br>"; // add new line for new messages to append on new line } if (!empty($start_date) && $start_date != "0000-00-00") { $start_date_int = 0; $end_date_int = 0; $start_date = OW_Utility::instance()->format_date_for_db_wp_default($start_date); $start_date_int = OW_Utility::instance()->get_date_int($start_date); // if end date is not empty, end date cannot be greater than start date if (!empty($end_date)) { $end_date = OW_Utility::instance()->format_date_for_db_wp_default($end_date); $end_date_int = OW_Utility::instance()->get_date_int($end_date); if ($start_date_int > $end_date_int) { $error_messages .= __("End date should be greater than the start date.", "oasisworkflow"); $error_messages .= "<br>"; // add new line for new messages to append on new line } } } //TODO : revisit this validation /* if ( ! empty( $start_date ) && $start_date != "0000-00-00" ) { // start date or end date of new version cannot be between the old version $workflow = FCWorkflowCRUD::get_workflow_by_id( $wf_id ) ; if ( ! empty ( $end_date ) ) { $condition = "((start_date <= %s && end_date >= %s) OR (start_date <= %s && end_date >= %s))"; $format = array($workflow->parent_id, $workflow->parent_id, $wf_id, $start_date, $start_date, $end_date, $end_date); } else { $condition = "start_date <= %s && end_date >= %s"; $format = array($workflow->parent_id, $workflow->parent_id, $wf_id, $start_date, $start_date); } $where_clause = "ID <> %d && $condition"; $result = ""; if( $workflow->parent_id ) { $sql = "SELECT * FROM " . OW_Utility::instance()->get_workflows_table_name() . " WHERE (ID = %d || parent_id = %d) && $where_clause " ; $result = $wpdb->get_row( $wpdb->prepare( $sql, $format)); } else { $sql = "SELECT * FROM " . OW_Utility::instance()->get_workflows_table_name() . " WHERE (parent_id = %d) && $where_clause " ; $result = $wpdb->get_row( $wpdb->prepare( $sql, $format)); } if( count( $result ) ){ $error_messages .= __( "The start date or end date is between ", "oasisworkflow" ) . $result->name . "(" . $result->version . ")" ; $error_messages .= "<br>"; // add new line for new messages to append on new line } } */ return $error_messages; }
/** * generate the page * * @since 2.0 */ public function add_settings_page() { $is_activated_workflow = get_option($this->ow_activate_workflow); $default_due_days = get_option($this->ow_default_due_days_option_name); $show_wfsettings_on_post_types = get_option($this->ow_show_wfsettings_on_post_types_option_name); $review_process_setting = get_option($this->ow_review_process_setting_option_name); ?> <form id="wf_settings_form" method="post" action="options.php"> <?php settings_fields($this->ow_workflow_group_name); // adds nonce for current settings page ?> <div id="workflow-setting"> <div id="settingstuff"> <div class="select-info"> <label class="settings-title"><input type="checkbox" name="<?php echo $this->ow_activate_workflow; ?> " value="active" <?php echo $is_activated_workflow == 'active' ? 'checked' : ''; ?> /> <?php echo __("Activate Workflow process ?", "oasisworkflow"); ?> </label> <br /> <span class="description"> <?php echo __("(After you are done setting up your editorial workflow, make it available for use by activating the workflow process.)", "oasisworkflow"); ?> </span> </div> <div class="select-info"> <label class="settings-title"> <input type="checkbox" id="chk_default_due_days" <?php echo $default_due_days ? 'checked' : ''; ?> /> <?php echo __("Set default Due date as CURRENT DATE + ", "oasisworkflow"); ?> </label> <input type="text" id="default_due_days" name="<?php echo $this->ow_default_due_days_option_name; ?> " size="4" class="default_due_days" value="<?php echo esc_attr($default_due_days); ?> " maxlength=2 /> <label class="settings-title"><?php echo __("day(s).", "oasisworkflow"); ?> </label> </div> <div class="select-info"> <div class="list-section-heading"> <label> <?php echo __("Show Workflow options for the following post/page types:", "oasisworkflow"); ?> </label> </div> <?php OW_Utility::instance()->owf_checkbox_post_types_multi($this->ow_show_wfsettings_on_post_types_option_name . '[]', $show_wfsettings_on_post_types); ?> </div> <div class="select-info"> <div class="list-section-heading"> <label> <?php echo __("Set your review setting to dictate how and when item moves to the success step:", "oasisworkflow"); ?> </label> </div> <label for="everyone" class="full-width"> <input type="radio" id="everyone" id="<?php echo $this->ow_review_process_setting_option_name; ?> " name="<?php echo $this->ow_review_process_setting_option_name; ?> " value="everyone" <?php echo $review_process_setting == 'everyone' ? 'checked="checked"' : ''; ?> /> <?php _e('Everyone should approve', 'oasisworkflow'); ?> </label> <label for="more_than_50" class="full-width"> <input type="radio" id="more_than_50" name="<?php echo $this->ow_review_process_setting_option_name; ?> " value="more_than_50" <?php echo $review_process_setting == 'more_than_50' ? 'checked="checked"' : ''; ?> /> <?php _e('More than 50% should approve', 'oasisworkflow'); ?> </label> <label for="anyone" class="full-width"> <input type="radio" id="anyone" name="<?php echo $this->ow_review_process_setting_option_name; ?> " value="anyone" <?php echo $review_process_setting == 'anyone' ? 'checked="checked"' : ''; ?> /> <?php _e('Anyone should approve', 'oasisworkflow'); ?> </label> </div> <div class="select-info full-width"> <div id="owf_settings_button_bar"> <input type="submit" id="settingSave" class="button button-primary button-large" value="<?php echo __("Save", "oasisworkflow"); ?> " /> </div> </div> </div> </div> </form> <?php }
/** * load/enqueue javascripts as part of the footer */ public function load_js_files_footer() { // ONLY load OWF scripts on OWF plugin pages if (is_admin() && preg_match_all('/page=oasiswf(.*)|post-new\\.(.*)|post\\.(.*)/', $_SERVER['REQUEST_URI'], $matches)) { //wp_enqueue_script( 'thickbox' ); wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-widget'); wp_enqueue_script('jquery-ui-mouse'); wp_enqueue_script('jquery-ui-sortable'); wp_enqueue_script('jquery-ui-datepicker'); wp_enqueue_script('jquery-json', OASISWF_URL . 'js/lib/jquery.json.js', '', '2.3', true); wp_enqueue_script('jquery-ui-draggable'); wp_enqueue_script('jquery-ui-droppable'); } if (is_admin() && (isset($_GET['page']) && ($_GET["page"] == "oasiswf-admin" || $_GET["page"] == "oasiswf-add"))) { wp_enqueue_style('select2-style', OASISWF_URL . 'css/lib/select2/select2.css', false, OASISWF_VERSION, 'all'); wp_enqueue_script('jsPlumb', OASISWF_URL . 'js/lib/jquery.jsPlumb-all-min.js', array('jquery-ui-core', 'jquery-ui-draggable', 'jquery-ui-droppable'), '1.4.1', true); wp_enqueue_script('drag-drop-jsplumb', OASISWF_URL . 'js/pages/drag-drop-jsplumb.js', array('jsPlumb'), OASISWF_VERSION, true); wp_enqueue_script('select2-js', OASISWF_URL . 'js/lib/select2/select2.min.js', array('jquery'), OASISWF_VERSION, true); wp_localize_script('drag-drop-jsplumb', 'drag_drop_jsplumb_vars', array('clearAllSteps' => __('Do you really want to clear all the steps?', 'oasisworkflow'), 'removeStep' => __('This step is already defined. Do you really want to remove this step?', 'oasisworkflow'), 'pathBetween' => __('The path between', 'oasisworkflow'), 'stepAnd' => __('step and', 'oasisworkflow'), 'incorrect' => __('step is incorrect.', 'oasisworkflow'), 'stepHelp' => __('To edit/delete the step, right click on the step to access the step menu.', 'oasisworkflow'), 'connectionHelp' => __('To connect to another step drag a line from the "dot" to the next step.', 'oasisworkflow'))); } if (is_admin() && preg_match_all('/page=oasiswf(.*)|post-new\\.(.*)|post\\.(.*)/', $_SERVER['REQUEST_URI'], $matches)) { wp_enqueue_script('owf-workflow-create', OASISWF_URL . 'js/pages/workflow-create.js', '', OASISWF_VERSION, true); wp_localize_script('owf-workflow-create', 'owf_workflow_create_vars', array('alreadyExistWorkflow' => __('There is an existing workflow with the same name. Please choose another name.', 'oasisworkflow'), 'unsavedChanges' => __('You have unsaved changes.', 'oasisworkflow'), 'dateFormat' => OW_Utility::instance()->owf_date_format_to_jquery_ui_format(get_option('date_format')), 'editDateFormat' => OW_Utility::instance()->owf_date_format_to_jquery_ui_format(OASISWF_EDIT_DATE_FORMAT))); wp_enqueue_script('jquery-simplemodal', OASISWF_URL . 'js/lib/modal/jquery.simplemodal.js', '', '1.4.6', true); wp_enqueue_script('owf-workflow-util', OASISWF_URL . 'js/pages/workflow-util.js', '', OASISWF_VERSION, true); wp_localize_script('owf-workflow-util', 'owf_workflow_util_vars', array('dueDateInPast' => __('Due date cannot be in the past.', 'oasisworkflow'))); wp_enqueue_script('text-edit-whizzywig', OASISWF_URL . 'js/lib/textedit/whizzywig63.js', '', '63', true); wp_enqueue_script('owf-workflow-step-info', OASISWF_URL . 'js/pages/subpages/step-info.js', array('text-edit-whizzywig'), OASISWF_VERSION, true); wp_enqueue_script('owf-workflow-step-info', OASISWF_URL . 'js/pages/subpages/step-info.js', '', OASISWF_VERSION, true); wp_localize_script('owf-workflow-step-info', 'owf_workflow_step_info_vars', array('stepNameRequired' => __('Step name is required.', 'oasisworkflow'), 'stepNameAlreadyExists' => __('Step name already exists. Please use a different name.', 'oasisworkflow'), 'selectAssignees' => __('Please select assignee(s).', 'oasisworkflow'), 'statusOnSuccess' => __('Please select status on success.', 'oasisworkflow'), 'statusOnFailure' => __('Please select status on failure.', 'oasisworkflow'), 'selectPlaceholder' => __('Please select a placeholder.', 'oasisworkflow'))); } if (is_admin() && preg_match_all('/edit\\.(.*)/', $_SERVER['REQUEST_URI'], $matches)) { wp_enqueue_style('owf-oasis-workflow-css', OASISWF_URL . 'css/pages/oasis-workflow.css', false, OASISWF_VERSION, 'all'); OW_Plugin_Init::enqueue_and_localize_simple_modal_script(); } if (is_admin() && preg_match_all('/page=ow-settings&tab=email_settings(.*)/', $_SERVER['REQUEST_URI'], $matches)) { wp_enqueue_script('owf-email-settings', OASISWF_URL . 'js/pages/email-settings.js', array('jquery'), OASISWF_VERSION); } }
?> </h3> </div> <div class="ow-modal-body"> <div class="ow-textarea"> <div id="ow-scrollbar" class="ow-comment-popup-scrollbar"> <?php if ($comments) { foreach ($comments as $object) { if ($object) { foreach ($object as $comment) { $send_id = $comment->send_id; $user = OW_Utility::instance()->get_user_role_and_name($send_id); $timestamp = ""; if (!empty($comment->comment_timestamp)) { $timestamp = OW_Utility::instance()->format_date_for_display($comment->comment_timestamp, '-', 'datetime'); } ?> <ul id="readonly-comments"> <li> <?php echo get_avatar($send_id, 64); ?> <p class="author-name"><?php echo $user->username; ?> </p> <p class="author-role"><?php echo $user->role; ?> </p>
$wf_editable = $workflow_service->is_workflow_editable($wf_id); // check if editable. } $workflow_info = ""; if (is_object($workflow)) { $workflow_info = addslashes($workflow->wf_info); } $title = ""; $workflow_description = ""; $start_date = ""; $end_date = ""; if ($workflow) { $title = $workflow->name; $workflow_description = $workflow->description; $start_date = OW_Utility::instance()->format_date_for_display_and_edit($workflow->start_date); $end_date = OW_Utility::instance()->format_date_for_display_and_edit($workflow->end_date); } echo "<script type='text/javascript'>\n\t\t wf_structure_data = '{$workflow_info}';\n\t\t wfeditable = '{$wf_editable}' ;\n\t </script>"; ?> <div class="wrap"> <div id="workflow-edit-icon" class="icon32"><br></div> <?php if (is_object($workflow)) { ?> <h2><label id="page_top_lbl"><?php echo $workflow->name . " (" . $workflow->version . ")"; ?> </label></h2> <?php } ?>
private function get_next_version_number($workflow_id) { global $wpdb; $row = $wpdb->get_row($wpdb->prepare("SELECT max(version) as current_max_version FROM " . OW_Utility::instance()->get_workflows_table_name() . " WHERE parent_id = %s OR ID = %s", $workflow_id, $workflow_id)); $current_version = $row->current_max_version; return $current_version + 1; }
/** * Notice: Custom status updated successfully. * * @since 2.0 */ public function custom_status_updated() { echo OW_Utility::instance()->admin_notice(array('type' => 'update', 'message' => 'Custom status has been updated successfully.')); }
public function purge_history() { global $wpdb; check_ajax_referer('owf-workflow-history', 'security'); if (!current_user_can('ow_delete_workflow_history')) { wp_die(__('You are not allowed to delete workflow history.')); } $period = sanitize_text_field($_POST["range"]); switch ($period) { case 'one-month-ago': $range = " AND posts.post_modified < DATE(curdate() - INTERVAL 1 MONTH) "; break; case 'three-month-ago': $range = " AND posts.post_modified < DATE(curdate() - INTERVAL 3 MONTH) "; break; case 'six-month-ago': $range = " AND posts.post_modified < DATE(curdate() - INTERVAL 6 MONTH) "; break; case 'twelve-month-ago': $range = " AND posts.post_modified < DATE(curdate() - INTERVAL 12 MONTH) "; break; case 'everything': $range = " "; break; default: return "not a valid period specified"; } $sql = "SELECT posts.ID from " . $wpdb->posts . " AS posts WHERE 1=1 " . $range . " AND posts.id NOT IN " . "(SELECT A.post_id FROM\n\t\t\t\t\t\t\t(SELECT * FROM " . OW_Utility::instance()->get_action_history_table_name() . " WHERE action_status = 'assignment') as A\n\t\t\t\t\t\t\tLEFT OUTER JOIN\n\t\t\t\t\t\t\t(SELECT * FROM " . OW_Utility::instance()->get_action_table_name() . " WHERE review_status = 'assignment') as B\n\t\t\t\t\t\t\tON A.ID = B.action_history_id)"; $posts_not_in_workflow_array = array(); $posts_not_in_workflow_results = $wpdb->get_results($sql); if (empty($posts_not_in_workflow_results)) { echo "success"; die; } foreach ($posts_not_in_workflow_results as $post_not_in_workflow) { array_push($posts_not_in_workflow_array, $post_not_in_workflow->ID); } $int_place_holders = array_fill(0, count($posts_not_in_workflow_array), '%d'); $place_holders_for_post_ids = implode(",", $int_place_holders); $sql = "SELECT ID FROM " . OW_Utility::instance()->get_action_history_table_name() . " WHERE 1=1 AND post_id in (" . $place_holders_for_post_ids . ")"; $history_results = $wpdb->get_results($wpdb->prepare($sql, $posts_not_in_workflow_array)); // first delete any records from fc_action table if (empty($history_results)) { echo "success"; die; } $history_id_array = array(); foreach ($history_results as $history) { array_push($history_id_array, $history->ID); } $int_place_holders = array_fill(0, count($history_id_array), '%d'); $place_holders_for_history_ids = implode(",", $int_place_holders); // delete workflow history from action table $sql = "DELETE from " . OW_Utility::instance()->get_action_table_name() . " WHERE action_history_id in (" . $place_holders_for_history_ids . ")"; $wpdb->get_results($wpdb->prepare($sql, $history_id_array)); // delete workflow history from action history table $sql = "DELETE from " . OW_Utility::instance()->get_action_history_table_name() . " WHERE id in (" . $place_holders_for_history_ids . ")"; $wpdb->get_results($wpdb->prepare($sql, $history_id_array)); echo "success"; die; }
public function send_reminder_email() { global $wpdb; $emails_table = OW_Utility::instance()->get_emails_table_name(); $email_settings = get_option('oasiswf_email_settings'); if ($email_settings['reminder_emails'] == "yes") { $ddate = gmdate('Y-m-d'); $rows = $wpdb->get_results($wpdb->prepare("SELECT * FROM " . OW_Utility::instance()->get_emails_table_name() . " WHERE action = 1 AND send_date = %s", $ddate)); foreach ($rows as $row) { $this->send_mail($row->to_user, $row->subject, $row->message); $wpdb->update($emails_table, array("action" => 0), array("ID" => $row->ID)); } } }
</strong></div> <br class="clear"> <div class="owf-text-info left full-width"> <div class="left"> <label><?php echo __("Select a User: "******"oasisworkflow"); ?> </label> </div> <div class="left"> <select id="reassign_actors" style="width:200px;"> <option value=""></option> <?php foreach ($users as $user) { //$lblNm = ( $user->nicename ) ? $user->nicename : $user->user_login ; $lblNm = OW_Utility::instance()->get_user_name($user->ID); if ($task_user != $user->ID) { echo "<option value={$user->ID}>{$lblNm}</option>"; } } ?> </select> </div> </div> <div class="owf-text-info left full-width"> <div class="left"> <label><?php echo __('Comments:', 'oasisworkflow'); ?> </label> </div>
<div class="step-assignee" style="height:120px;"> <div style="margin-left:0px;"> <label><?php echo __("Assignee(s) :", "oasisworkflow"); ?> </label> </div> <div class="step-assignee-list" > <label><?php echo __("Available", "oasisworkflow"); ?> </label><br class="clear"> <p> <select id="step-role-list" name="step-role-list" size=10> <?php OW_Utility::instance()->owf_dropdown_roles_multi(); echo "<option value='owfpostauthor'>"; echo __("Post Author", "oasisworkflow"); echo "</option>"; ?> </select> </p> </div> <div class="step-assignee-point"> <a href="#" id="step-assignee-set-point"><img src="<?php echo OASISWF_URL . "img/role-set.png"; ?> " style="border:0px;" /></a><br> <a href="#" id="step-assignee-unset-point"><img src="<?php echo OASISWF_URL . "img/role-unset.png"; ?>
public function enqueue_and_localize_submit_step_script() { wp_nonce_field('owf_workflow_abort_nonce', 'owf_workflow_abort_nonce'); wp_nonce_field('owf_check_claim_nonce', 'owf_check_claim_nonce'); // enqueue js file if advanced custom fields plugin active $this->enqueue_acf_validator_script(); wp_enqueue_script('owf_submit_step', OASISWF_URL . 'js/pages/subpages/submit-step.js', array('jquery'), OASISWF_VERSION, true); $workflow_terminology_options = get_option('oasiswf_custom_workflow_terminology'); $sign_off_label = !empty($workflow_terminology_options['signOffText']) ? $workflow_terminology_options['signOffText'] : __('Sign Off', 'oasisworkflow'); wp_localize_script('owf_submit_step', 'owf_submit_step_vars', array('clickHereText' => __('click here', 'oasisworkflow'), 'signOffButton' => $sign_off_label, 'claimButton' => __('Claim', 'oasisworkflow'), 'inboxButton' => __('Go to Workflow Inbox', 'oasisworkflow'), 'firstStepMessage' => __('This is the first step in the workflow.</br> Do you really want to cancel the post/page from the workflow?', 'oasisworkflow'), 'lastStepMessage' => __('This is the last step in the workflow. Are you sure to complete the workflow?', 'oasisworkflow'), 'noUsersFound' => __('No users found for the given role.', 'oasisworkflow'), 'decisionSelectMessage' => __('Please select an action.', 'oasisworkflow'), 'selectStep' => __('Please select a step.', 'oasisworkflow'), 'dueDateRequired' => __('Please enter a due date.', 'oasisworkflow'), 'noAssignedActors' => __('No assigned actor(s).', 'oasisworkflow'), 'multipleUsers' => __('You can select multiple users only for review step. Selected step is', 'oasisworkflow'), 'step' => __('step.', 'oasisworkflow'), 'drdb' => get_option('oasiswf_reminder_days'), 'drda' => get_option('oasiswf_reminder_days_after'), 'dateFormat' => OW_Utility::instance()->owf_date_format_to_jquery_ui_format(get_option('date_format')), 'editDateFormat' => OW_Utility::instance()->owf_date_format_to_jquery_ui_format(OASISWF_EDIT_DATE_FORMAT), 'defaultDueDays' => get_option('oasiswf_default_due_days'), 'absoluteURL' => get_admin_url())); }