Changeset 3234219
- Timestamp:
- 02/03/2025 07:26:07 PM (13 months ago)
- Location:
- sign-up-sheets
- Files:
-
- 7 added
- 1 deleted
- 63 edited
- 4 copied
-
tags/2.3.0 (deleted)
-
trunk/build/index.css.map (copied) (copied from sign-up-sheets/tags/2.2.14/build/index.css.map)
-
trunk/controller/admin.php (modified) (10 diffs)
-
trunk/controller/admin/edit-sheet.php (modified) (2 diffs)
-
trunk/controller/admin/edit-signup-page.php (modified) (17 diffs)
-
trunk/controller/admin/export.php (modified) (7 diffs)
-
trunk/controller/admin/help.php (modified) (7 diffs)
-
trunk/controller/admin/manage-signups.php (modified) (9 diffs)
-
trunk/controller/admin/meta-box.php (modified) (2 diffs)
-
trunk/controller/admin/settings.php (modified) (9 diffs)
-
trunk/controller/admin/site-health.php (modified) (2 diffs)
-
trunk/controller/ajax.php (modified) (1 diff)
-
trunk/controller/base.php (modified) (2 diffs)
-
trunk/controller/captcha.php (modified) (5 diffs)
-
trunk/controller/mail.php (modified) (2 diffs)
-
trunk/controller/migrate.php (modified) (15 diffs)
-
trunk/controller/post-type-base.php (modified) (1 diff)
-
trunk/controller/privacy.php (modified) (5 diffs)
-
trunk/controller/scode/sign-up-form.php (modified) (21 diffs)
-
trunk/controller/scode/sign-up-sheet.php (modified) (2 diffs)
-
trunk/controller/scode/user-sign-ups.php (modified) (4 diffs)
-
trunk/controller/sheet.php (modified) (4 diffs)
-
trunk/controller/task-table.php (modified) (18 diffs)
-
trunk/css/admin.css (modified) (1 diff)
-
trunk/css/admin.css.map (copied) (copied from sign-up-sheets/tags/2.2.14/css/admin.css.map)
-
trunk/css/sass/admin.scss (modified) (1 diff)
-
trunk/css/sass/style/_common.scss (modified) (1 diff)
-
trunk/css/style.css (modified) (1 diff)
-
trunk/css/style.css.map (copied) (copied from sign-up-sheets/tags/2.2.14/css/style.css.map)
-
trunk/id.php (modified) (6 diffs)
-
trunk/images (added)
-
trunk/images/admin-icon.png (added)
-
trunk/images/dls-sus-content-button.png (added)
-
trunk/images/icon-alert.png (added)
-
trunk/images/icon-check.gif (added)
-
trunk/images/icon-drag-y.png (added)
-
trunk/js/dist/main.js (modified) (1 diff)
-
trunk/js/dist/main.min.js (modified) (1 diff)
-
trunk/js/src/main.js (modified) (1 diff)
-
trunk/languages/sign-up-sheets.pot (modified) (36 diffs)
-
trunk/lib/dls/meta-boxes/assets/admin.js (modified) (1 diff)
-
trunk/lib/dls/meta-boxes/assets/style.css (modified) (1 diff)
-
trunk/lib/dls/meta-boxes/meta-boxes.php (modified) (5 diffs)
-
trunk/lib/fetch (added)
-
trunk/loco.xml (copied) (copied from sign-up-sheets/tags/2.2.14/loco.xml)
-
trunk/main.php (modified) (11 diffs)
-
trunk/model/base.php (modified) (1 diff)
-
trunk/model/db-update.php (modified) (2 diffs)
-
trunk/model/meta-boxes.php (modified) (20 diffs)
-
trunk/model/settings-meta-boxes.php (modified) (28 diffs)
-
trunk/model/settings.php (modified) (5 diffs)
-
trunk/model/settings/sheet-order.php (modified) (4 diffs)
-
trunk/model/sheet-base.php (modified) (8 diffs)
-
trunk/model/sheet-collection.php (modified) (1 diff)
-
trunk/model/sheet.php (modified) (1 diff)
-
trunk/model/signup-collection.php (modified) (1 diff)
-
trunk/model/signup-form-initial-values.php (modified) (2 diffs)
-
trunk/model/signup.php (modified) (11 diffs)
-
trunk/model/task-base.php (modified) (7 diffs)
-
trunk/model/task-table.php (modified) (4 diffs)
-
trunk/model/task.php (modified) (1 diff)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/sign-up-sheets.php (modified) (2 diffs)
-
trunk/src/block.json (modified) (2 diffs)
-
trunk/template-tags.php (modified) (1 diff)
-
trunk/theme-files/archive-dlssus_sheet.php (modified) (1 diff)
-
trunk/theme-files/content-dlssus_sheet.php (modified) (1 diff)
-
trunk/theme-files/fdsus/parts/captcha-simple.php (modified) (1 diff)
-
trunk/theme-files/fdsus/sheet-list.php (modified) (4 diffs)
-
trunk/theme-files/fdsus/sheet-none.php (modified) (1 diff)
-
trunk/theme-files/fdsus/sheet.php (modified) (1 diff)
-
trunk/theme-files/fdsus/sign-up-form-header.php (modified) (1 diff)
-
trunk/theme-files/fdsus/sign-up-form.php (modified) (11 diffs)
-
trunk/theme-files/fdsus/user_sign_ups.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sign-up-sheets/trunk/controller/admin.php
r3233567 r3234219 87 87 $status = $migrate->getStatus(); 88 88 if (!in_array($status['state'], array('running', 'rerun'))) return; 89 Notice::add('info', esc_html__('Sign-up sheets database upgrade is processing.', ' sign-up-sheets'), false, Id::PREFIX . '-migrate-status');89 Notice::add('info', esc_html__('Sign-up sheets database upgrade is processing.', 'fdsus'), false, Id::PREFIX . '-migrate-status'); 90 90 } 91 91 … … 100 100 unset($columns['date']); 101 101 return array_merge($columns, array( 102 'task_date' => esc_html__('Sheet Date', ' sign-up-sheets'),103 'total_tasks' => esc_html__('# of Tasks', ' sign-up-sheets'),104 'total_spots' => esc_html__('Total Spots', ' sign-up-sheets'),105 'filled_spots' => esc_html__('Filled Spots', ' sign-up-sheets'))102 'task_date' => esc_html__('Sheet Date', 'fdsus'), 103 'total_tasks' => esc_html__('# of Tasks', 'fdsus'), 104 'total_spots' => esc_html__('Total Spots', 'fdsus'), 105 'filled_spots' => esc_html__('Filled Spots', 'fdsus')) 106 106 ); 107 107 } … … 158 158 159 159 if (empty($_GET['sheet_id'])) { 160 wp_die(esc_html__('No sheet ID found.', ' sign-up-sheets'));160 wp_die(esc_html__('No sheet ID found.', 'fdsus')); 161 161 } 162 162 163 163 if (!wp_verify_nonce($_GET['_fdsus-nonce'], 'fdsus-copysheet-' . $_GET['sheet_id'])) { 164 wp_die(esc_html__('Copy action failed. Please try again.', ' sign-up-sheets'));164 wp_die(esc_html__('Copy action failed. Please try again.', 'fdsus')); 165 165 } 166 166 167 167 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 168 168 if (!current_user_can($sheetCaps->get('edit_post'))) { 169 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));169 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 170 170 } 171 171 … … 185 185 public function head() 186 186 { 187 // Pull pro or free188 $pluginPath = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . (Id::isPro() ? Id::PRO_PLUGIN_BASENAME189 : Id::FREE_PLUGIN_BASENAME);190 191 187 // Dequeue meta library scripts for now 192 188 if (wp_script_is('dlsmb-main', $list = 'enqueued')) { … … 207 203 wp_enqueue_style( 208 204 Id::PREFIX . '-admin', 209 plugins_url('css/admin.css', $pluginPath),205 plugins_url('css/admin.css', dirname(__FILE__)), 210 206 array(), 211 207 Id::version() … … 296 292 297 293 $id = array('fdsus-id' => sprintf( 298 '<span class="fdsus-id-value">' . esc_html__('ID', ' sign-up-sheets') . ': %s</span>',294 '<span class="fdsus-id-value">' . esc_html__('ID', 'fdsus') . ': %s</span>', 299 295 $post->ID 300 296 )); … … 305 301 '<a href="%s" title="" rel="permalink">%s</a>', 306 302 esc_url(Settings::getManageSignupsPageUrl($post->ID)), 307 esc_html__('Manage Sign-ups', ' sign-up-sheets')303 esc_html__('Manage Sign-ups', 'fdsus') 308 304 ); 309 305 … … 324 320 '_fdsus-nonce' 325 321 )), 326 esc_html__('Copy', ' sign-up-sheets')322 esc_html__('Copy', 'fdsus') 327 323 ); 328 324 } … … 374 370 <footer class="fdsus-footer" aria-label="Sign-up Sheet"> 375 371 <p> 376 <?php esc_html_e('Made by', ' sign-up-sheets'); ?> Fetch Designs372 <?php esc_html_e('Made by', 'fdsus'); ?> Fetch Designs 377 373 <span class="fdsus-footer-getpro"></span> 378 374 <?php if (!Id::isPro()): ?> 379 <a href="https://www.fetchdesigns.com/sign-up-sheets-wordpress-plugin/"><?php esc_html_e('Get Pro', ' sign-up-sheets'); ?></a>375 <a href="https://www.fetchdesigns.com/sign-up-sheets-wordpress-plugin/"><?php esc_html_e('Get Pro', 'fdsus'); ?></a> 380 376 | 381 377 <?php endif; ?> 382 378 <a href="<?php echo esc_url($supportUrl); ?>"> 383 <span><?php esc_html_e('Need help? Get Support »', ' sign-up-sheets'); ?></span>379 <span><?php esc_html_e('Need help? Get Support »', 'fdsus'); ?></span> 384 380 </a> 385 381 </p> … … 400 396 $settingsLink = sprintf( '<a href="%s">%s</a>', 401 397 esc_url($this->data->getSettingsUrl()), 402 esc_html__('Settings', ' sign-up-sheets')398 esc_html__('Settings', 'fdsus') 403 399 ); 404 400 array_unshift($links, $settingsLink); -
sign-up-sheets/trunk/controller/admin/edit-sheet.php
r3233567 r3234219 64 64 65 65 $actions['copy'] = array( 66 'title' => esc_html__('Copy Row', ' sign-up-sheets'),66 'title' => esc_html__('Copy Row', 'fdsus'), 67 67 'icon' => 'dashicons dashicons-admin-page', 68 68 ); … … 140 140 if ($post->post_type == SheetModel::POST_TYPE && !empty($_GET['action']) && $_GET['action'] === 'edit') { 141 141 ?> 142 <div class="fdsus-edit-quick-info" role="group" aria-label="<?php esc_attr_e('Sheet Quick Info', ' sign-up-sheets') ?>">143 <span class="quick-info-item quick-info-id"><strong><?php esc_html_e('Sheet ID', ' sign-up-sheets') ?>: </strong> <code><?php echo $post->ID ?></code></span>142 <div class="fdsus-edit-quick-info" role="group" aria-label="<?php esc_attr_e('Sheet Quick Info', 'fdsus') ?>"> 143 <span class="quick-info-item quick-info-id"><strong><?php esc_html_e('Sheet ID', 'fdsus') ?>: </strong> <code><?php echo $post->ID ?></code></span> 144 144 <?php do_action('fdsus_edit_sheet_quick_info', $post); ?> 145 145 </div> -
sign-up-sheets/trunk/controller/admin/edit-signup-page.php
r3233567 r3234219 46 46 add_submenu_page( 47 47 '', 48 esc_html__('Edit Sign-up', ' sign-up-sheets'),48 esc_html__('Edit Sign-up', 'fdsus'), 49 49 '', 50 50 $sheetCaps->get('edit_posts'), … … 69 69 $signup = new SignupModel($_GET['signup']); 70 70 if (!$signup->isValid()) { 71 wp_die(__('Sign-up invalid', ' sign-up-sheets'));71 wp_die(__('Sign-up invalid', 'fdsus')); 72 72 } 73 73 } … … 75 75 $task = new TaskModel(!empty($_GET['task']) ? $_GET['task'] : $signup->post_parent); 76 76 if (!$task->isValid()) { 77 wp_die(__('Task invalid', ' sign-up-sheets'));77 wp_die(__('Task invalid', 'fdsus')); 78 78 } 79 79 80 80 $sheet = new SheetModel($task->post_parent); 81 81 if (!$sheet->isValid()) { 82 wp_die(__('Sheet invalid', ' sign-up-sheets'));82 wp_die(__('Sheet invalid', 'fdsus')); 83 83 } 84 84 ?> … … 87 87 <h1 class="wp-heading-inline"> 88 88 <?php echo $_GET['action'] === 'add' 89 ? esc_html__('Add Sign-up', ' sign-up-sheets')90 : esc_html__('Edit Sign-up', ' sign-up-sheets');89 ? esc_html__('Add Sign-up', 'fdsus') 90 : esc_html__('Edit Sign-up', 'fdsus'); 91 91 ?> 92 92 </h1> … … 108 108 'multi_tag' => '', 109 109 'states' => $states->get(), 110 'submit_button_text' => __('Submit', ' sign-up-sheets'),110 'submit_button_text' => __('Submit', 'fdsus'), 111 111 'go_back_url' => '', 112 112 'signup_link_hash' => '' … … 119 119 <div id="postbox-container-1" class="postbox-container"> 120 120 <div class="fdsus-edit-quick-info" role="group" 121 aria-label="<?php esc_attr_e('Sheet Quick Info', ' sign-up-sheets') ?>">121 aria-label="<?php esc_attr_e('Sheet Quick Info', 'fdsus') ?>"> 122 122 <span class="quick-info-item quick-info-id"><strong><?php esc_html_e( 123 'Sheet ID', ' sign-up-sheets'123 'Sheet ID', 'fdsus' 124 124 ) ?>: </strong> <code><?php echo $sheet->ID ?></code></span> 125 125 <?php do_action('fdsus_edit_sheet_quick_info', $sheet->getData()); ?> … … 130 130 <div class="inside"> 131 131 <dl> 132 <dt><?php _e('Sheet', ' sign-up-sheets'); ?>:</dt>132 <dt><?php _e('Sheet', 'fdsus'); ?>:</dt> 133 133 <dd><?php echo wp_kses_post($sheet->post_title); ?></dd> 134 134 135 <dt><?php esc_html_e('Date', ' sign-up-sheets'); ?>:</dt>135 <dt><?php esc_html_e('Date', 'fdsus'); ?>:</dt> 136 136 <dd> 137 137 <?php echo(empty($sheet->dlssus_date) 138 ? esc_html__('N/A', ' sign-up-sheets')138 ? esc_html__('N/A', 'fdsus') 139 139 : date(get_option('date_format'), strtotime($sheet->dlssus_date)) 140 140 ); ?> 141 141 </dd> 142 142 143 <dt><?php _e('Task', ' sign-up-sheets'); ?>:</dt>143 <dt><?php _e('Task', 'fdsus'); ?>:</dt> 144 144 <dd><?php esc_html_e($task->post_title); ?></dd> 145 145 </dl> … … 171 171 switch($_GET['notice']) { 172 172 case 'edited': 173 Notice::add('success', esc_html__('Sign-up updated.', ' sign-up-sheets'));173 Notice::add('success', esc_html__('Sign-up updated.', 'fdsus')); 174 174 break; 175 175 case 'added': 176 Notice::add('success', esc_html__('Sign-up added.', ' sign-up-sheets'));176 Notice::add('success', esc_html__('Sign-up added.', 'fdsus')); 177 177 break; 178 178 } … … 195 195 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 196 196 if (!current_user_can($sheetCaps->get('edit_posts'))) { 197 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));197 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 198 198 } 199 199 200 200 if (empty($_GET['signup'])) { 201 wp_die(esc_html__('Sign-up ID missing', ' sign-up-sheets'));201 wp_die(esc_html__('Sign-up ID missing', 'fdsus')); 202 202 } 203 203 … … 207 207 || !wp_verify_nonce($_POST['signup_nonce'], 'fdsus_signup_submit') 208 208 ) { 209 wp_die(esc_html__('Sign-up nonce not valid.', ' sign-up-sheets'));209 wp_die(esc_html__('Sign-up nonce not valid.', 'fdsus')); 210 210 } 211 211 … … 216 216 217 217 if (!$signup->isValid()) { 218 Notice::add('error', esc_html__('Sign-up not found.', ' sign-up-sheets'));218 Notice::add('error', esc_html__('Sign-up not found.', 'fdsus')); 219 219 return; 220 220 } … … 231 231 sprintf( 232 232 /* translators: %s is replaced with a comma separated list of all missing required fields */ 233 esc_html__('Please complete the following required fields: %s', ' sign-up-sheets'),233 esc_html__('Please complete the following required fields: %s', 'fdsus'), 234 234 implode(', ', $missingFieldNames) 235 235 ) … … 262 262 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 263 263 if (!current_user_can($sheetCaps->get('edit_posts'))) { 264 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));264 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 265 265 } 266 266 … … 268 268 269 269 if (empty($_GET['task'])) { 270 wp_die(esc_html__('Task-up ID missing', ' sign-up-sheets'));270 wp_die(esc_html__('Task-up ID missing', 'fdsus')); 271 271 } 272 272 … … 276 276 || !wp_verify_nonce($_POST['signup_nonce'], 'fdsus_signup_submit') 277 277 ) { 278 wp_die(esc_html__('Sign-up nonce not valid.', ' sign-up-sheets'));278 wp_die(esc_html__('Sign-up nonce not valid.', 'fdsus')); 279 279 } 280 280 … … 293 293 sprintf( 294 294 /* translators: %s is replaced with a comma separated list of all missing required fields */ 295 esc_html__('Please complete the following required fields: %s', ' sign-up-sheets'),295 esc_html__('Please complete the following required fields: %s', 'fdsus'), 296 296 implode(', ', $missingFieldNames) 297 297 ) … … 328 328 <p class="fdsus-user"> 329 329 <label for="signup_user_id" class="signup_user_id"> 330 <?php esc_html_e('Linked User', ' sign-up-sheets'); ?>330 <?php esc_html_e('Linked User', 'fdsus'); ?> 331 331 </label> 332 332 <select id="signup_user_id" class="signup_user_id" name="signup_user_id"> -
sign-up-sheets/trunk/controller/admin/export.php
r3233567 r3234219 56 56 ) 57 57 )), 58 esc_html__('Export All as CSV', ' sign-up-sheets')58 esc_html__('Export All as CSV', 'fdsus') 59 59 ); 60 60 return $views; … … 81 81 '<a href="%s" id="dls-sus-export-sheet" class="quick-info-item">%s</a>', 82 82 esc_url($this->getExportUrl($post)), 83 esc_html__('Export as CSV', ' sign-up-sheets')83 esc_html__('Export as CSV', 'fdsus') 84 84 ); 85 85 } … … 95 95 '<a href="%s" class="add-new-h2 page-title-action"><span class="dashicons dashicons-download"></span> %s</a>', 96 96 esc_url($this->getExportUrl($sheet)), 97 esc_html__('Export as CSV', ' sign-up-sheets')97 esc_html__('Export as CSV', 'fdsus') 98 98 ); 99 99 } … … 119 119 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 120 120 if (!current_user_can('manage_options') && !current_user_can($sheetCaps->get('read_post'))) { 121 wp_die(esc_html__('You do not have sufficient permissions to export.', ' sign-up-sheets'));121 wp_die(esc_html__('You do not have sufficient permissions to export.', 'fdsus')); 122 122 } 123 123 124 124 if (isset($_GET['sheet_id']) && !is_numeric($_GET['sheet_id'])) { 125 wp_die(esc_html__('Invalid sheet ID.', ' sign-up-sheets'));125 wp_die(esc_html__('Invalid sheet ID.', 'fdsus')); 126 126 } 127 127 … … 266 266 267 267 $headersArray = array(); 268 $headersArray[] = esc_html__('Sheet ID', ' sign-up-sheets');269 $headersArray[] = esc_html__('Sheet Title', ' sign-up-sheets');270 $headersArray[] = esc_html__('Sheet Date', ' sign-up-sheets');268 $headersArray[] = esc_html__('Sheet ID', 'fdsus'); 269 $headersArray[] = esc_html__('Sheet Title', 'fdsus'); 270 $headersArray[] = esc_html__('Sheet Date', 'fdsus'); 271 271 272 272 /** … … 281 281 $headersArray = apply_filters('fdsus_export_headers_after_sheet', $headersArray, $sheets); 282 282 283 $headersArray[] = esc_html__('Task ID', ' sign-up-sheets');284 $headersArray[] = esc_html__('Task Title', ' sign-up-sheets');283 $headersArray[] = esc_html__('Task ID', 'fdsus'); 284 $headersArray[] = esc_html__('Task Title', 'fdsus'); 285 285 286 286 /** … … 295 295 $headersArray = apply_filters('fdsus_export_headers_after_task', $headersArray, $sheets); 296 296 297 $headersArray[] = esc_html__('Sign-up ID', ' sign-up-sheets');298 $headersArray[] = esc_html__('Sign-up First Name', ' sign-up-sheets');299 $headersArray[] = esc_html__('Sign-up Last Name', ' sign-up-sheets');300 $headersArray[] = esc_html__('Sign-up Phone', ' sign-up-sheets');301 $headersArray[] = esc_html__('Sign-up Email', ' sign-up-sheets');302 $headersArray[] = esc_html__('Address', ' sign-up-sheets');303 $headersArray[] = esc_html__('City', ' sign-up-sheets');304 $headersArray[] = esc_html__('State', ' sign-up-sheets');305 $headersArray[] = esc_html__('Zip', ' sign-up-sheets');306 $headersArray[] = esc_html__('User ID', ' sign-up-sheets');297 $headersArray[] = esc_html__('Sign-up ID', 'fdsus'); 298 $headersArray[] = esc_html__('Sign-up First Name', 'fdsus'); 299 $headersArray[] = esc_html__('Sign-up Last Name', 'fdsus'); 300 $headersArray[] = esc_html__('Sign-up Phone', 'fdsus'); 301 $headersArray[] = esc_html__('Sign-up Email', 'fdsus'); 302 $headersArray[] = esc_html__('Address', 'fdsus'); 303 $headersArray[] = esc_html__('City', 'fdsus'); 304 $headersArray[] = esc_html__('State', 'fdsus'); 305 $headersArray[] = esc_html__('Zip', 'fdsus'); 306 $headersArray[] = esc_html__('User ID', 'fdsus'); 307 307 308 308 /** -
sign-up-sheets/trunk/controller/admin/help.php
r3233567 r3234219 40 40 add_submenu_page( 41 41 'edit.php?post_type=' . SheetModel::POST_TYPE, 42 esc_html__('Sign-up Sheets Help', ' sign-up-sheets'),43 esc_html__('Help', ' sign-up-sheets'),42 esc_html__('Sign-up Sheets Help', 'fdsus'), 43 esc_html__('Help', 'fdsus'), 44 44 $sheetCaps->get('read_post'), 45 45 Id::PREFIX . '-help', … … 62 62 echo ' 63 63 <div class="wrap dls_sus"> 64 <h1 class="wp-heading-inline">' . esc_html__('Sign-up Sheets', ' sign-up-sheets') . (Id::isPro() ? ' <sup class="dls-sus-pro">Pro</sup>' : '') . ' ' . esc_html__('Help', 'sign-up-sheets') . '</h1>64 <h1 class="wp-heading-inline">' . esc_html__('Sign-up Sheets', 'fdsus') . (Id::isPro() ? ' <sup class="dls-sus-pro">Pro</sup>' : '') . ' ' . esc_html__('Help', 'fdsus') . '</h1> 65 65 '; 66 66 … … 70 70 . '</p></div>'; 71 71 } elseif ($mail_result === true) { 72 echo '<div class="updated"><p>' . esc_html__('Test email successfully sent by WordPress.', ' sign-up-sheets') . '</p></div>';72 echo '<div class="updated"><p>' . esc_html__('Test email successfully sent by WordPress.', 'fdsus') . '</p></div>'; 73 73 } 74 74 ?> … … 139 139 ?> 140 140 141 <h3><?php esc_html_e('System Information', ' sign-up-sheets') ?></h3>141 <h3><?php esc_html_e('System Information', 'fdsus') ?></h3> 142 142 <p><?php echo sprintf('%s <strong><a href="%s">%s</a></strong>', 143 143 esc_html__( 144 144 'We may request this information to help us troubleshoot your support request. You can now find this under', 145 ' sign-up-sheets'145 'fdsus' 146 146 ), 147 147 esc_url(admin_url('site-health.php?tab=debug')), 148 esc_html__('Tools > Site Health > Info', ' sign-up-sheets')148 esc_html__('Tools > Site Health > Info', 'fdsus') 149 149 ) ?></p> 150 <textarea readonly="readonly" class="dls-sus-system-info" rows="1" onclick="this.focus(); this.select();"><?php esc_html_e('System information has moved to Tools > Site Health > Info', ' sign-up-sheets') ?></textarea>150 <textarea readonly="readonly" class="dls-sus-system-info" rows="1" onclick="this.focus(); this.select();"><?php esc_html_e('System information has moved to Tools > Site Health > Info', 'fdsus') ?></textarea> 151 151 152 152 <?php … … 156 156 } 157 157 ?> 158 <h3><?php esc_html_e('Email Test', ' sign-up-sheets') ?></h3>159 <p><?php esc_html_e('Having trouble with emails sending on your site? Use this quick for to test your site with sending emails to different recipients.', ' sign-up-sheets') ?></p>160 <p><?php esc_html_e('If the test email is successfully sent by WordPress, but still not being received...', ' sign-up-sheets') ?></p>158 <h3><?php esc_html_e('Email Test', 'fdsus') ?></h3> 159 <p><?php esc_html_e('Having trouble with emails sending on your site? Use this quick for to test your site with sending emails to different recipients.', 'fdsus') ?></p> 160 <p><?php esc_html_e('If the test email is successfully sent by WordPress, but still not being received...', 'fdsus') ?></p> 161 161 <ol> 162 <li><?php esc_html_e('Ask the recipient to check their SPAM mailbox or SPAM filters. Your "From" address may need to be added to their list of safe senders.', ' sign-up-sheets') ?></li>163 <li><?php esc_html_e('Check with your host to see if they can trace emails being sent from your site. It is possible your emails are being delayed or blacklisted by your recipient\'s mail host.', ' sign-up-sheets') ?></li>162 <li><?php esc_html_e('Ask the recipient to check their SPAM mailbox or SPAM filters. Your "From" address may need to be added to their list of safe senders.', 'fdsus') ?></li> 163 <li><?php esc_html_e('Check with your host to see if they can trace emails being sent from your site. It is possible your emails are being delayed or blacklisted by your recipient\'s mail host.', 'fdsus') ?></li> 164 164 <li><?php echo sprintf( 165 165 /* translators: %s is replaced with a link to an SMTP plugin */ 166 esc_html__('Try sending email via SMTP instead by using a plugin like %s.', ' sign-up-sheets'),166 esc_html__('Try sending email via SMTP instead by using a plugin like %s.', 'fdsus'), 167 167 '<a href="https://wordpress.org/plugins/easy-wp-smtp/">Easy WP SMTP</a>' 168 168 ) ?></li> 169 169 <li><?php echo sprintf( 170 170 /* translators: %1$s is replaced with a link to Mailgun and %2$s is replaced with a link to the Mailgun WordPress plugin */ 171 esc_html__('Try sending email via a 3rd party service like %1$s with the %2$s', ' sign-up-sheets'),171 esc_html__('Try sending email via a 3rd party service like %1$s with the %2$s', 'fdsus'), 172 172 '<a href="https://www.mailgun.com/">Mailgun</a>', 173 173 '<a href="https://wordpress.org/plugins/mailgun/">Mailgun for WordPress plugin</a>' … … 177 177 <fieldset> 178 178 <p> 179 <label for="from"><?php esc_html_e('From', ' sign-up-sheets') ?></label><br />179 <label for="from"><?php esc_html_e('From', 'fdsus') ?></label><br /> 180 180 <input type="email" name="from" id="from" value="<?php echo esc_attr($from) ?>" /> 181 181 </p> 182 182 <p> 183 <label for="recipient"><?php esc_html_e('To', ' sign-up-sheets') ?></label><br />183 <label for="recipient"><?php esc_html_e('To', 'fdsus') ?></label><br /> 184 184 <input type="email" name="recipient" id="recipient" value="" /> 185 185 </p> 186 186 <p> 187 <label><?php esc_html_e('Message', ' sign-up-sheets') ?></label><br />188 <textarea name="message" rows="3"><?php esc_html_e('This is a test email.', ' sign-up-sheets') ?></textarea>187 <label><?php esc_html_e('Message', 'fdsus') ?></label><br /> 188 <textarea name="message" rows="3"><?php esc_html_e('This is a test email.', 'fdsus') ?></textarea> 189 189 </p> 190 190 <p> 191 191 <input type="checkbox" name="return_path" id="return_path" value="true" checked="checked" /> 192 <label for="return_path"><?php esc_html_e('Send bounced messages to "From" address', ' sign-up-sheets') ?></label>192 <label for="return_path"><?php esc_html_e('Send bounced messages to "From" address', 'fdsus') ?></label> 193 193 </p> 194 194 <input type="hidden" name="mode" value="submitted" /> 195 <input type="submit" value="<?php esc_attr_e('Send', ' sign-up-sheets') ?>" class="button" />195 <input type="submit" value="<?php esc_attr_e('Send', 'fdsus') ?>" class="button" /> 196 196 </fieldset> 197 197 </form> … … 231 231 return new WP_Error( 232 232 Id::PREFIX . 'test_email_error', 233 esc_html__('Error sending email.', ' sign-up-sheets')233 esc_html__('Error sending email.', 'fdsus') 234 234 . '.. ' . implode(' --- ', $ts_mail_errors) 235 235 ); -
sign-up-sheets/trunk/controller/admin/manage-signups.php
r3233567 r3234219 36 36 add_submenu_page( 37 37 '', 38 esc_html__('Manage Sign-ups', ' sign-up-sheets'),39 esc_html__('Manage Sign-ups', ' sign-up-sheets'),38 esc_html__('Manage Sign-ups', 'fdsus'), 39 esc_html__('Manage Sign-ups', 'fdsus'), 40 40 $sheetCaps->get('read_post'), 41 41 $this->menuSlug, … … 51 51 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 52 52 if (!current_user_can($sheetCaps->get('read_post'))) { 53 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));53 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 54 54 } 55 55 56 56 if (empty($_GET['sheet_id']) || !is_numeric($_GET['sheet_id'])) { 57 wp_die(esc_html__('Missing or invalid sheet ID.', ' sign-up-sheets'));57 wp_die(esc_html__('Missing or invalid sheet ID.', 'fdsus')); 58 58 } 59 59 60 60 $sheet = new SheetModel((int)$_GET['sheet_id']); 61 61 if (!is_object($sheet)) { 62 wp_die(esc_html__('No sign-up sheet found.', ' sign-up-sheets'));62 wp_die(esc_html__('No sign-up sheet found.', 'fdsus')); 63 63 } 64 64 ?> … … 66 66 <div class="wrap dls_sus"> 67 67 <h1> 68 <?php esc_html_e('Manage Sign-ups', ' sign-up-sheets'); ?>68 <?php esc_html_e('Manage Sign-ups', 'fdsus'); ?> 69 69 <span class="fdsus-manage-h1-suffix"> 70 <a href="<?php echo esc_attr(get_permalink($sheet->getData())); ?>" class="add-new-h2 page-title-action"><?php esc_html_e('View Sheet', ' sign-up-sheets'); ?></a>71 <a href="<?php echo esc_attr(get_edit_post_link($sheet->getData())); ?>" class="add-new-h2 page-title-action"><?php esc_html_e('Edit Sheet', ' sign-up-sheets'); ?></a>70 <a href="<?php echo esc_attr(get_permalink($sheet->getData())); ?>" class="add-new-h2 page-title-action"><?php esc_html_e('View Sheet', 'fdsus'); ?></a> 71 <a href="<?php echo esc_attr(get_edit_post_link($sheet->getData())); ?>" class="add-new-h2 page-title-action"><?php esc_html_e('Edit Sheet', 'fdsus'); ?></a> 72 72 <?php do_action('fdsus_manage_signup_h1_suffix', $sheet); ?> 73 73 </span> … … 76 76 <h3><?php echo wp_kses_post($sheet->post_title); ?></h3> 77 77 <p> 78 <?php esc_html_e('Date', ' sign-up-sheets'); ?>:78 <?php esc_html_e('Date', 'fdsus'); ?>: 79 79 <?php echo(empty($sheet->dlssus_date) 80 ? esc_html__('N/A', ' sign-up-sheets')80 ? esc_html__('N/A', 'fdsus') 81 81 : date(get_option('date_format'), strtotime($sheet->dlssus_date)) 82 82 ); ?> … … 85 85 <div class="dls-sus-sheet-details"><?php echo nl2br(wp_kses_post($sheet->post_content)); ?></div> 86 86 87 <h4><?php esc_html_e('Sign-ups', ' sign-up-sheets'); ?></h4>87 <h4><?php esc_html_e('Sign-ups', 'fdsus'); ?></h4> 88 88 89 89 <?php … … 133 133 ) { 134 134 Notice::add( 135 'error', esc_html__('Manage sign-up sheet nonce not valid', ' sign-up-sheets'), false,135 'error', esc_html__('Manage sign-up sheet nonce not valid', 'fdsus'), false, 136 136 Id::PREFIX . '-manage-signup-nonce-invalid' 137 137 ); … … 142 142 $sheet = new SheetModel($sheetId); 143 143 if (!$sheet->isValid()) { 144 Notice::add('error', esc_html__('Invalid Sheet', ' sign-up-sheets'), false, Id::PREFIX . '-sheet-invalid');144 Notice::add('error', esc_html__('Invalid Sheet', 'fdsus'), false, Id::PREFIX . '-sheet-invalid'); 145 145 return; 146 146 } … … 148 148 $result = $sheet->deleteSignups($idsToClear); 149 149 if ($result) { 150 Notice::add('success', esc_html__('Spot(s) cleared.', ' sign-up-sheets'), false, Id::PREFIX . '-clear-success');150 Notice::add('success', esc_html__('Spot(s) cleared.', 'fdsus'), false, Id::PREFIX . '-clear-success'); 151 151 } else { 152 152 /* translators: %d is replaced with the sheet ID */ 153 Notice::add('success', sprintf(esc_html__('Error clearing a spot (Sheet ID #%d)', ' sign-up-sheets'), $_GET['sheet_id']), false, Id::PREFIX . '-clear-error');153 Notice::add('success', sprintf(esc_html__('Error clearing a spot (Sheet ID #%d)', 'fdsus'), $_GET['sheet_id']), false, Id::PREFIX . '-clear-error'); 154 154 } 155 155 } … … 173 173 ) 174 174 )), 175 esc_html__('Manage Sign-ups', ' sign-up-sheets')175 esc_html__('Manage Sign-ups', 'fdsus') 176 176 ); 177 177 } -
sign-up-sheets/trunk/controller/admin/meta-box.php
r3233567 r3234219 14 14 * $metabox->add(array( 15 15 * 'id' => 'sheet', 16 * 'title' => esc_html__('Sign-up Sheet', ' sign-up-sheets'),16 * 'title' => esc_html__('Sign-up Sheet', 'fdsus'), 17 17 * 'order' => 10, 18 18 * 'options' => array( … … 29 29 * 'aria-labelledby' => 'my-label-id', // Default is '<name>-label' so only need to set this to change it or set to `false` to unset the aria-labelledby 30 30 * 'aria-describedby' => 'my-description-id', // Default is not set 31 * 'note' => '<span id="my-description-id">' . esc_html__('Some description', ' sign-up-sheets') . '</span>',31 * 'note' => '<span id="my-description-id">' . esc_html__('Some description', 'fdsus') . '</span>', 32 32 * 'pro' => true 33 33 * )); -
sign-up-sheets/trunk/controller/admin/settings.php
r3233567 r3234219 49 49 add_submenu_page( 50 50 'edit.php?post_type=' . SheetModel::POST_TYPE, 51 esc_html__('Sign-up Sheets Settings', ' sign-up-sheets'),52 esc_html__('Settings', ' sign-up-sheets'),51 esc_html__('Sign-up Sheets Settings', 'fdsus'), 52 esc_html__('Settings', 'fdsus'), 53 53 'manage_options', 54 54 SettingsModel::$menuSlug, … … 64 64 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 65 65 if (!current_user_can('manage_options') && !current_user_can($sheetCaps->get('read_post'))) { 66 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));66 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 67 67 } 68 68 ?> 69 69 <div class="wrap dls_sus metabox-holder"> 70 70 <h1 class="wp-heading-inline"> 71 <?php esc_html_e('Sign-up Sheets', ' sign-up-sheets'); ?>71 <?php esc_html_e('Sign-up Sheets', 'fdsus'); ?> 72 72 <?php if (Id::isPro()): ?><sup class="dls-sus-pro">Pro</sup><?php endif; ?> 73 <?php esc_html_e('Settings', ' sign-up-sheets'); ?>73 <?php esc_html_e('Settings', 'fdsus'); ?> 74 74 </h1> 75 <p style="text-align: right;"><a href="#" class="dls-sus-expand-all-postbox"><?php esc_html_e('+ Expand All', ' sign-up-sheets'); ?></a></p>75 <p style="text-align: right;"><a href="#" class="dls-sus-expand-all-postbox"><?php esc_html_e('+ Expand All', 'fdsus'); ?></a></p> 76 76 <form name="dls-sus-form" class="dls-sus-settings" method="post" action="<?php echo esc_url($this->data->getSettingsUrl()) ?>"> 77 77 … … 93 93 ?> 94 94 <input type="hidden" name="<?php echo esc_attr($this->hiddenFieldName); ?>" value="<?php echo esc_attr($this->hiddenFieldValue) ?>"> 95 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes', ' sign-up-sheets'); ?>" />95 <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Save Changes', 'fdsus'); ?>" /> 96 96 </p> 97 97 … … 117 117 if (FDSUS_DISABLE_MIGRATE_2_0_to_2_1) { 118 118 Notice::add( 119 'warning', esc_html__('Sorry, I cannot rerun migration. The migration logic is currently disabled with the FDSUS_DISABLE_MIGRATE_2_0_to_2_1 configuration.', ' sign-up-sheets'), false,119 'warning', esc_html__('Sorry, I cannot rerun migration. The migration logic is currently disabled with the FDSUS_DISABLE_MIGRATE_2_0_to_2_1 configuration.', 'fdsus'), false, 120 120 'dlssus-migrate-disabled' 121 121 ); … … 132 132 133 133 Notice::add( 134 'info', esc_html__('Sign-up Sheets database upgrade has been triggered.', ' sign-up-sheets'), false,134 'info', esc_html__('Sign-up Sheets database upgrade has been triggered.', 'fdsus'), false, 135 135 'dlssus-migrate-status' 136 136 ); … … 150 150 151 151 if (!isset($_GET['_fdsus-nonce']) || !wp_verify_nonce($_GET['_fdsus-nonce'], 'fdsus-settings-reset')) { 152 wp_die(esc_html__('Invalid request.', ' sign-up-sheets'));152 wp_die(esc_html__('Invalid request.', 'fdsus')); 153 153 } 154 154 155 155 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 156 156 if (!current_user_can('manage_options') && !current_user_can($sheetCaps->get('read_post'))) { 157 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));157 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 158 158 } 159 159 … … 206 206 Notice::add( 207 207 'success', 208 esc_html__('Sign-up Sheet settings have been successfully reset to default values.', ' sign-up-sheets')208 esc_html__('Sign-up Sheet settings have been successfully reset to default values.', 'fdsus') 209 209 ); 210 210 } … … 227 227 228 228 if (!isset($_POST['_fdsus-nonce']) || !wp_verify_nonce($_POST['_fdsus-nonce'], 'fdsus-settings-update')) { 229 wp_die(esc_html__('Invalid request.', ' sign-up-sheets'));229 wp_die(esc_html__('Invalid request.', 'fdsus')); 230 230 } 231 231 232 232 $sheetCaps = new Capabilities(SheetModel::POST_TYPE); 233 233 if (!current_user_can('manage_options') && !current_user_can($sheetCaps->get('read_post'))) { 234 wp_die(esc_html__('You do not have sufficient permissions to access this page.', ' sign-up-sheets'));234 wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'fdsus')); 235 235 } 236 236 … … 283 283 284 284 if ($numberSaved === 1) { 285 Notice::add('success', esc_html__('Settings saved.', ' sign-up-sheets'));285 Notice::add('success', esc_html__('Settings saved.', 'fdsus')); 286 286 } 287 287 } -
sign-up-sheets/trunk/controller/admin/site-health.php
r3233567 r3234219 28 28 { 29 29 $info['wp-core']['fields']['fdsus_date_format'] = array( 30 'label' => esc_html__('Date Format', ' sign-up-sheets'),30 'label' => esc_html__('Date Format', 'fdsus'), 31 31 'value' => esc_html(get_option('date_format')), 32 32 ); 33 33 $info['wp-core']['fields']['fdsus_time_format'] = array( 34 'label' => esc_html__('Time Format', ' sign-up-sheets'),34 'label' => esc_html__('Time Format', 'fdsus'), 35 35 'value' => esc_html(get_option('time_format')), 36 36 ); 37 37 $info['wp-core']['fields']['fdsus_admin_email'] = array( 38 'label' => esc_html__('Admin Email', ' sign-up-sheets'),38 'label' => esc_html__('Admin Email', 'fdsus'), 39 39 'value' => esc_html(get_option('admin_email')), 40 40 ); 41 41 $info['wp-server']['fields']['fdsus_server_max_execution_time'] = array( 42 'label' => esc_html__('Max Execution Time', ' sign-up-sheets'),42 'label' => esc_html__('Max Execution Time', 'fdsus'), 43 43 'value' => ini_get('max_execution_time') . ' seconds', 44 44 ); 45 45 $info['wp-server']['fields']['fdsus_user_agent_string'] = array( 46 'label' => esc_html__('User Agent String', ' sign-up-sheets'),46 'label' => esc_html__('User Agent String', 'fdsus'), 47 47 'value' => $_SERVER['HTTP_USER_AGENT'], 48 48 ); 49 49 $info['sign-up-sheets'] = array( 50 'label' => esc_html__('Sign-up Sheets', ' sign-up-sheets'),50 'label' => esc_html__('Sign-up Sheets', 'fdsus'), 51 51 'fields' => $this->getFields(), 52 52 ); … … 67 67 $dataPrimary = array( 68 68 'version' => array( 69 'label' => esc_html__('Version', ' sign-up-sheets'),69 'label' => esc_html__('Version', 'fdsus'), 70 70 'value' => Id::version(), 71 71 ), 72 72 'db_version_type' => array( 73 'label' => esc_html__('Version Type', ' sign-up-sheets'),73 'label' => esc_html__('Version Type', 'fdsus'), 74 74 'value' => $allOptions['dls_sus_db_version_type'], 75 75 ), 76 76 'primary_db_version' => array( 77 'label' => esc_html__('DB Version', ' sign-up-sheets'),77 'label' => esc_html__('DB Version', 'fdsus'), 78 78 'value' => $allOptions['dls_sus_db_version'], 79 79 ), -
sign-up-sheets/trunk/controller/ajax.php
r3233567 r3234219 52 52 $restartButton = sprintf(' <a href="%s" class="button">%s</a>', 53 53 esc_url(add_query_arg('migrate', 'rerun-2.1', $this->data->getSettingsUrl())), 54 esc_html__('Restart Upgrade', ' sign-up-sheets')54 esc_html__('Restart Upgrade', 'fdsus') 55 55 ); 56 56 if ($status['state'] == 'complete') { -
sign-up-sheets/trunk/controller/base.php
r3233567 r3234219 47 47 $templateName = str_replace('/', DIRECTORY_SEPARATOR, $templateName); 48 48 49 $stylesheetPathFile = get_stylesheet_directory() . DIRECTORY_SEPARATOR . $templateName; // child 50 $templatePathFile = get_template_directory() . DIRECTORY_SEPARATOR . $templateName; // parent 51 $proPluginFile = Id::isPro() 52 ? FDSUS_PRO_PLUGIN_DIR_PATH . $this->themeFilesDir . DIRECTORY_SEPARATOR . $templateName 53 : ''; 54 $freePluginFile = FDSUS_FREE_PLUGIN_DIR_PATH . $this->themeFilesDir . DIRECTORY_SEPARATOR . $templateName; 49 $stylesheetPathFile = STYLESHEETPATH . DIRECTORY_SEPARATOR . $templateName; // child 50 $templatePathFile = TEMPLATEPATH . DIRECTORY_SEPARATOR . $templateName; // parent 51 $pluginFile = Id::getPluginPath() . $this->themeFilesDir . DIRECTORY_SEPARATOR . $templateName; // plugin 55 52 56 53 if (file_exists($stylesheetPathFile)) { … … 60 57 $located = $templatePathFile; 61 58 break; 62 } elseif (file_exists($proPluginFile)) { 63 $located = $proPluginFile; 64 break; 65 } elseif (file_exists($freePluginFile)) { 66 $located = $freePluginFile; 59 } elseif (file_exists($pluginFile)) { 60 $located = $pluginFile; 67 61 break; 68 62 } 69 63 } 70 64 71 if ((true == =$load) && !empty($located)) {65 if ((true == $load) && !empty($located)) { 72 66 load_template($located, $requireOnce, $args); 73 67 } -
sign-up-sheets/trunk/controller/captcha.php
r3233567 r3234219 9 9 use FDSUS\Model\Settings; 10 10 use FDSUS\Lib\ReCaptcha\ReCaptcha; 11 use FDSUS\Model\Sheet as SheetModel;12 11 use WP_Error; 13 12 … … 22 21 add_action('fdsus_enqueue_scripts_styles_on_signup', array(&$this, 'enqueue'), 10, 0); 23 22 add_filter('fdsus_error_before_add_signup', array(&$this, 'signupValidation'), 10, 3); 24 add_filter('fdsus_sign_up_form_errors_required_fields', array(&$this, 'updateRequiredFields'), 10, 3);25 23 } 26 24 … … 45 43 wp_enqueue_script('fdsus-recaptcha'); 46 44 } 47 }48 49 /**50 * Adjust required fields51 *52 * @param array $missingFieldNames53 * @param SheetModel $sheet54 * @param array $fields55 *56 * @return array57 */58 public function updateRequiredFields($missingFieldNames, $sheet, $fields)59 {60 if (!is_admin()61 && !Settings::isAllCaptchaDisabled()62 && !Settings::isRecaptchaEnabled()63 && empty($fields['spam_check'])64 ) {65 $missingFieldNames['simple_captcha'] = esc_html__('Math Question', 'sign-up-sheets');66 }67 68 return $missingFieldNames;69 45 } 70 46 … … 95 71 return new WP_Error( 96 72 'fdsus-captcha-error', 97 __('Please check that the reCAPTCHA field is valid.', ' sign-up-sheets')73 __('Please check that the reCAPTCHA field is valid.', 'fdsus') 98 74 ); 99 75 } … … 105 81 'fdsus-captcha-error', sprintf( 106 82 /* translators: %s is replaced with the users response to the simple captcha */ 107 esc_html__('Oh dear, 7 + 1 does not equal %s. Please try again.', ' sign-up-sheets'),83 esc_html__('Oh dear, 7 + 1 does not equal %s. Please try again.', 'fdsus'), 108 84 esc_attr($_POST['spam_check']) 109 85 ) -
sign-up-sheets/trunk/controller/mail.php
r3233567 r3234219 128 128 return new WP_Error( 129 129 'fdsus_mail_send', 130 esc_html__('Error sending email.', ' sign-up-sheets')130 esc_html__('Error sending email.', 'fdsus') 131 131 . (Settings::isDetailedErrors() ? '.. ' . implode(' --- ', $ts_mail_errors) : '') 132 132 ); … … 172 172 173 173 // Build initial signup details 174 $signupDetails = (!empty($signupDate) ? esc_html__('Date', ' sign-up-sheets') . ': ' . date(get_option('date_format'), strtotime($signupDate)) . PHP_EOL : null)175 . esc_html__('Event', ' sign-up-sheets') . ': ' . wp_kses_post($args['sheet']->post_title) . PHP_EOL174 $signupDetails = (!empty($signupDate) ? esc_html__('Date', 'fdsus') . ': ' . date(get_option('date_format'), strtotime($signupDate)) . PHP_EOL : null) 175 . esc_html__('Event', 'fdsus') . ': ' . wp_kses_post($args['sheet']->post_title) . PHP_EOL 176 176 . esc_html(Settings::$text['task_title_label']['value']) 177 177 . ': ' . wp_kses_post($args['task']->post_title); -
sign-up-sheets/trunk/controller/migrate.php
r3233567 r3234219 21 21 22 22 if (Id::isPro()) { 23 class MigrateParent extends \FDSUSPRO\Controller\Pro\Migrate {}23 class MigrateParent extends Pro\Migrate {} 24 24 } else { 25 25 class MigrateParent extends Base {} … … 79 79 $output = sprintf( 80 80 /* translators: %1$s is replaced with the URL to retry */ 81 esc_html__('Migration has already been completed. <a href="%1$s" class="button">Run Migration Again</a>', ' sign-up-sheets'),81 esc_html__('Migration has already been completed. <a href="%1$s" class="button">Run Migration Again</a>', 'fdsus'), 82 82 esc_url(add_query_arg('retry', 'true', $this->data->getCurrentUrl())) 83 83 ); … … 603 603 'group' => 'settings', 604 604 'options' => null, 605 'note' => esc_html__('(comma-separated list of emails to be copied on sign-up confirmations/removals for this sheet)', ' sign-up-sheets'),605 'note' => esc_html__('(comma-separated list of emails to be copied on sign-up confirmations/removals for this sheet)', 'fdsus'), 606 606 ), 607 607 array( … … 611 611 'group' => 'settings', 612 612 'options' => $true_false, 613 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),613 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 614 614 ), 615 615 array( … … 619 619 'group' => 'settings', 620 620 'options' => $true_false, 621 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),621 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 622 622 ), 623 623 array( … … 627 627 'group' => 'settings', 628 628 'options' => $true_false, 629 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),629 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 630 630 ), 631 631 array( … … 635 635 'group' => 'settings', 636 636 'options' => $true_false, 637 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),637 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 638 638 ), 639 639 array( … … 643 643 'group' => 'settings', 644 644 'options' => array( 645 '' => esc_html__('Global', ' sign-up-sheets'),646 'false' => esc_html__('Disabled', ' sign-up-sheets'),647 'true' => esc_html__('Enabled', ' sign-up-sheets'),648 'semi' => esc_html__('Semi-Compact', ' sign-up-sheets'),645 '' => esc_html__('Global', 'fdsus'), 646 'false' => esc_html__('Disabled', 'fdsus'), 647 'true' => esc_html__('Enabled', 'fdsus'), 648 'semi' => esc_html__('Semi-Compact', 'fdsus'), 649 649 ), 650 'note' => esc_html__('Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming "Front-end Display Names" is not set to "anonymous"', ' sign-up-sheets'),650 'note' => esc_html__('Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming "Front-end Display Names" is not set to "anonymous"', 'fdsus'), 651 651 ), 652 652 array( … … 664 664 'group' => 'settings', 665 665 'options' => $true_false, 666 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),666 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 667 667 ), 668 668 array( … … 672 672 'group' => 'settings', 673 673 'options' => $true_false, 674 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),674 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 675 675 ), 676 676 array( … … 680 680 'group' => 'settings', 681 681 'options' => $true_false, 682 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', ' sign-up-sheets'),682 'note' => esc_html__('(Global setting in Settings > Sign-up Sheets)', 'fdsus'), 683 683 ), 684 684 array( … … 687 687 'type' => 'text', 688 688 'group' => 'settings', 689 'note' => '<br><em>' . esc_html__('Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use...', ' sign-up-sheets') . ' <code>1</code> ' . esc_html__('(If this is blank Global setting is used. Global setting in Settings > Sign-up Sheets.)', 'sign-up-sheets') . '</em>',689 'note' => '<br><em>' . esc_html__('Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use...', 'fdsus') . ' <code>1</code> ' . esc_html__('(If this is blank Global setting is used. Global setting in Settings > Sign-up Sheets.)', 'fdsus') . '</em>', 690 690 'options' => null, 691 691 ), … … 695 695 'type' => 'textarea', 696 696 'group' => 'settings', 697 'note' => '<br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', ' sign-up-sheets') . '</em>',697 'note' => '<br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', 'fdsus') . '</em>', 698 698 'options' => null, 699 699 ), … … 703 703 'type' => 'textarea', 704 704 'group' => 'settings', 705 'note' => '<br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', ' sign-up-sheets') . '</em>',705 'note' => '<br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', 'fdsus') . '</em>', 706 706 'options' => null, 707 707 ), … … 809 809 } 810 810 811 return new WP_Error(Id::PREFIX . '_migrate_timeout', esc_html__('Sign-up Sheets migration timed out.', ' sign-up-sheets'));811 return new WP_Error(Id::PREFIX . '_migrate_timeout', esc_html__('Sign-up Sheets migration timed out.', 'fdsus')); 812 812 } 813 813 -
sign-up-sheets/trunk/controller/post-type-base.php
r3233567 r3234219 90 90 'name' => $plural, 91 91 'singular_name' => $singular, 92 'all_items' => __('All', ' sign-up-sheets') . ' ' . $plural,93 'add_new' => __('Add New', ' sign-up-sheets'),94 'add_new_item' => __('Add New', ' sign-up-sheets') . ' ' . $singular,95 'edit_item' => __('Edit', ' sign-up-sheets') . ' ' . $singular,96 'new_item' => __('New', ' sign-up-sheets') . ' ' . $singular,97 'view_item' => __('View', ' sign-up-sheets') . ' ' . $singular,98 'search_items' => __('Search', ' sign-up-sheets') . ' ' . $plural,92 'all_items' => __('All', 'fdsus') . ' ' . $plural, 93 'add_new' => __('Add New', 'fdsus'), 94 'add_new_item' => __('Add New', 'fdsus') . ' ' . $singular, 95 'edit_item' => __('Edit', 'fdsus') . ' ' . $singular, 96 'new_item' => __('New', 'fdsus') . ' ' . $singular, 97 'view_item' => __('View', 'fdsus') . ' ' . $singular, 98 'search_items' => __('Search', 'fdsus') . ' ' . $plural, 99 99 /* translators: %s is replaced with the plural post type name */ 100 'not_found' => sprintf(__('No %s found', ' sign-up-sheets'), $plural),100 'not_found' => sprintf(__('No %s found', 'fdsus'), $plural), 101 101 /* translators: %s is replaced with the plural post type name */ 102 'not_found_in_trash' => sprintf(__('No %s found in Trash', ' sign-up-sheets'), $plural),102 'not_found_in_trash' => sprintf(__('No %s found in Trash', 'fdsus'), $plural), 103 103 /* translators: %s is replaced with the singluar post type name */ 104 'parent_item_colon' => sprintf(__('Parent %s Record:', ' sign-up-sheets'), $singular),104 'parent_item_colon' => sprintf(__('Parent %s Record:', 'fdsus'), $singular), 105 105 'menu_name' => $plural, 106 106 ); -
sign-up-sheets/trunk/controller/privacy.php
r3233567 r3234219 17 17 { 18 18 $this->fields = array( 19 'dlssus_email' => __('Email', ' sign-up-sheets'),20 'dlssus_firstname' => __('First Name', ' sign-up-sheets'),21 'dlssus_lastname' => __('Last Name', ' sign-up-sheets'),22 'dlssus_phone' => __('Phone', ' sign-up-sheets'),23 'dlssus_address' => __('Address', ' sign-up-sheets'),24 'dlssus_city' => __('City', ' sign-up-sheets'),25 'dlssus_state' => __('State', ' sign-up-sheets'),26 'dlssus_zip' => __('Zip', ' sign-up-sheets'),19 'dlssus_email' => __('Email', 'fdsus'), 20 'dlssus_firstname' => __('First Name', 'fdsus'), 21 'dlssus_lastname' => __('Last Name', 'fdsus'), 22 'dlssus_phone' => __('Phone', 'fdsus'), 23 'dlssus_address' => __('Address', 'fdsus'), 24 'dlssus_city' => __('City', 'fdsus'), 25 'dlssus_state' => __('State', 'fdsus'), 26 'dlssus_zip' => __('Zip', 'fdsus'), 27 27 ); 28 28 … … 42 42 { 43 43 $exporters['sign-up-sheets'] = array( 44 'exporter_friendly_name' => __('Sign-up Sheets Plugin', ' sign-up-sheets'),44 'exporter_friendly_name' => __('Sign-up Sheets Plugin', 'fdsus'), 45 45 'callback' => array(&$this, 'exportUserDataByEmail'), 46 46 ); … … 58 58 { 59 59 $erasers['sign-up-sheets'] = array( 60 'eraser_friendly_name' => __('Sign-up Sheets Plugin', ' sign-up-sheets'),60 'eraser_friendly_name' => __('Sign-up Sheets Plugin', 'fdsus'), 61 61 'callback' => array(&$this, 'removeUserDataByEmail'), 62 62 ); … … 79 79 $exportItems = array(); 80 80 81 $fields = array('ID' => __('Sign-up ID', ' sign-up-sheets')) + $this->fields;81 $fields = array('ID' => __('Sign-up ID', 'fdsus')) + $this->fields; 82 82 83 83 $signupCollection = new SignupCollection(); … … 94 94 $itemId = SignupModel::POST_TYPE . '-' . $signup->ID; 95 95 $groupId = 'fdsus-signups'; 96 $groupLabel = __('Sign-ups', ' sign-up-sheets');96 $groupLabel = __('Sign-ups', 'fdsus'); 97 97 98 98 foreach ($fields as $key => $name) { -
sign-up-sheets/trunk/controller/scode/sign-up-form.php
r3233567 r3234219 82 82 83 83 if (empty($task_id)) { 84 echo '<p>' . esc_html__('Task not found.', ' sign-up-sheets') . '</p>';84 echo '<p>' . esc_html__('Task not found.', 'fdsus') . '</p>'; 85 85 return ob_get_clean(); 86 86 } … … 88 88 $task = new TaskModel($task_id); 89 89 if (empty($task) || empty($task->post_parent)) { 90 echo '<p>' . esc_html__('No Sign-up Form Found.', ' sign-up-sheets') . '</p>';90 echo '<p>' . esc_html__('No Sign-up Form Found.', 'fdsus') . '</p>'; 91 91 return ob_get_clean(); 92 92 } … … 94 94 $sheet = $task->getSheet(); 95 95 if (empty($sheet)) { 96 echo '<p>' . esc_html__('No Sign-up Sheet Found.', ' sign-up-sheets') . '</p>';96 echo '<p>' . esc_html__('No Sign-up Sheet Found.', 'fdsus') . '</p>'; 97 97 return ob_get_clean(); 98 98 } … … 121 121 $date_display = null; 122 122 if ($date = $task->getDate()) { 123 $date_display = ' ' . esc_html__('on', ' sign-up-sheets')123 $date_display = ' ' . esc_html__('on', 'fdsus') 124 124 . sprintf(' <em class="dls-sus-task-date">%s</em>', 125 125 date(get_option('date_format'), strtotime($date)) … … 133 133 } else { // no task checkbox 134 134 if ($date = $task->getDate()) { 135 $date_display = ' ' . esc_html__('on', ' sign-up-sheets')135 $date_display = ' ' . esc_html__('on', 'fdsus') 136 136 . sprintf( 137 137 ' <em class="dls-sus-task-date">%s</em>', … … 178 178 $states = new StatesModel; 179 179 180 $submitButtonText = __('Sign me up!', ' sign-up-sheets');180 $submitButtonText = __('Sign me up!', 'fdsus'); 181 181 /** 182 182 * Filter for submit button text on sign-up form … … 235 235 || !wp_verify_nonce($_POST['signup_nonce'], 'fdsus_signup_submit') 236 236 ) { 237 Notice::add('error', esc_html__('Sign-up nonce not valid.', ' sign-up-sheets'), false, Id::PREFIX . '-signup-nonce-invalid');237 Notice::add('error', esc_html__('Sign-up nonce not valid.', 'fdsus'), false, Id::PREFIX . '-signup-nonce-invalid'); 238 238 return false; 239 239 } … … 248 248 if (!$task->isValid()) { 249 249 Notice::add( 250 'error', esc_html__('Hmm... we could not find the task for this sign-up.', ' sign-up-sheets'),250 'error', esc_html__('Hmm... we could not find the task for this sign-up.', 'fdsus'), 251 251 true, 'fdsus-task-invalid' 252 252 ); … … 257 257 if ($task->isExpired()) { 258 258 Notice::add( 259 'error', esc_html__('Sign-ups on this sheet can no longer be edited.', ' sign-up-sheets'),259 'error', esc_html__('Sign-ups on this sheet can no longer be edited.', 'fdsus'), 260 260 true, 'fdsus-sheet-expired' 261 261 ); … … 268 268 if ($sheet->isExpired()) { 269 269 Notice::add( 270 'error', esc_html__('Sign-ups on this task can no longer be edited.', ' sign-up-sheets'),270 'error', esc_html__('Sign-ups on this task can no longer be edited.', 'fdsus'), 271 271 true, 'fdsus-task-expired' 272 272 ); … … 276 276 if (!$sheet->dlssus_is_active) { 277 277 Notice::add( 278 'error', esc_html__('Sign-ups are no longer being accepted for this sheet.', ' sign-up-sheets'),278 'error', esc_html__('Sign-ups are no longer being accepted for this sheet.', 'fdsus'), 279 279 true, 'fdsus-signup-sheet-inactive' 280 280 ); … … 283 283 } else if ($sheet->ID != $task->post_parent) { 284 284 Notice::add( 285 'error', esc_html__('Signing up for more than one sheet is not currently supported.', ' sign-up-sheets'),285 'error', esc_html__('Signing up for more than one sheet is not currently supported.', 'fdsus'), 286 286 true, 'fdsus-multiple-sheet-signups-not-support' 287 287 ); … … 291 291 if (!$sheet->isValid()) { 292 292 Notice::add( 293 'error', esc_html__('Hmm... we could not find the sheet for this sign-up.', ' sign-up-sheets'),293 'error', esc_html__('Hmm... we could not find the sheet for this sign-up.', 'fdsus'), 294 294 true, 'fdsus-sheet-invalid' 295 295 ); … … 299 299 if (!$task->dlssus_is_active) { 300 300 Notice::add( 301 'error', esc_html__('Sign-ups are no longer being accepted for this task.', ' sign-up-sheets'),301 'error', esc_html__('Sign-ups are no longer being accepted for this task.', 'fdsus'), 302 302 true, 'fdsus-signup-task-inactive' 303 303 ); … … 309 309 if (empty($tasks)) { 310 310 Notice::add( 311 'error', esc_html__('No valid task was found for this sign-up.', ' sign-up-sheets'),311 'error', esc_html__('No valid task was found for this sign-up.', 'fdsus'), 312 312 true, 'fdsus-all-tasks-invalid' 313 313 ); … … 320 320 'warn', sprintf( 321 321 /* translators: %s is replaced with a comma separated list of all missing required fields */ 322 esc_html__('Please complete the following required fields: %s', ' sign-up-sheets'),322 esc_html__('Please complete the following required fields: %s', 'fdsus'), 323 323 implode(', ', $missingFieldNames) 324 324 ), false, 'fdsus-missing-fields' … … 327 327 } 328 328 329 if ( $sheet->showEmail() && !empty($_POST['signup_email']) &&Settings::isEmailValidationEnabled() && (!filter_var($_POST['signup_email'], FILTER_VALIDATE_EMAIL))) {329 if (Settings::isEmailValidationEnabled() && (!filter_var($_POST['signup_email'], FILTER_VALIDATE_EMAIL))) { 330 330 Notice::add( 331 'warn', esc_html__('Please check that your email address is properly formatted', ' sign-up-sheets'),331 'warn', esc_html__('Please check that your email address is properly formatted', 'fdsus'), 332 332 false, 'fdsus-invalid-email' 333 333 ); … … 335 335 } 336 336 337 if ( $sheet->showEmail() && !empty($_POST['signup_email']) &&Settings::isEmailValidationEnabled()337 if (Settings::isEmailValidationEnabled() 338 338 && !checkdnsrr( 339 339 substr($_POST['signup_email'], strpos($_POST['signup_email'], '@') + 1), 'MX' … … 341 341 ) { 342 342 Notice::add( 343 'warn', esc_html__('Whoops, it looks like your email domain may not be valid.', ' sign-up-sheets'),343 'warn', esc_html__('Whoops, it looks like your email domain may not be valid.', 'fdsus'), 344 344 false, 'fdsus-email-checkdnsrr' 345 345 ); … … 349 349 if ($this->data->is_honeypot_enabled() && !empty($_POST['website'])) { 350 350 Notice::add( 351 'warn', esc_html__('Sorry, your submission has been blocked.', ' sign-up-sheets'),351 'warn', esc_html__('Sorry, your submission has been blocked.', 'fdsus'), 352 352 false, 'fdsus-signup-form-honeypot' 353 353 ); … … 446 446 ); 447 447 448 if ( !empty($_POST['signup_email']) &&$sendSignupConfirmationEmail) {448 if ($sendSignupConfirmationEmail) { 449 449 $this->mail->send($_POST['signup_email'], $sheet, $task, $signupId, 'signup'); 450 450 } -
sign-up-sheets/trunk/controller/scode/sign-up-sheet.php
r3233567 r3234219 68 68 array( 69 69 'id' => false, 70 'list_title' => esc_html__('Current Sign-up Sheets', ' sign-up-sheets'),70 'list_title' => esc_html__('Current Sign-up Sheets', 'fdsus'), 71 71 'category_id' => false, // Pro only - deprecated as of v2.1 72 72 'category_slug' => false, // Pro only - allows comma-separated string … … 79 79 $dbVersion = get_option('dls_sus_db_version'); 80 80 if (strpos($dbVersion, '1.0') === 0 || strpos($dbVersion, '2.0') === 0) { 81 Notice::add('info', esc_html__('No sheet found, please contact the webmaster.', ' sign-up-sheets'), true);81 Notice::add('info', esc_html__('No sheet found, please contact the webmaster.', 'fdsus'), true); 82 82 } 83 83 -
sign-up-sheets/trunk/controller/scode/user-sign-ups.php
r3233567 r3234219 69 69 $user = wp_get_current_user(); 70 70 if (!$user->exists()) { 71 Notice::add('info', esc_html__('You must be logged in to view your sign-ups.', ' sign-up-sheets'), true);71 Notice::add('info', esc_html__('You must be logged in to view your sign-ups.', 'fdsus'), true); 72 72 return apply_filters(Id::PREFIX . '_notices', null); 73 73 } … … 127 127 if ($sheet->showEmail()) { 128 128 $row['signup_additional']['email'] = array( 129 'label' => __('Email', ' sign-up-sheets'),129 'label' => __('Email', 'fdsus'), 130 130 'value' => $signup->dlssus_email, 131 131 ); … … 134 134 if ($sheet->showPhone()) { 135 135 $row['signup_additional']['phone'] = array( 136 'label' => __('Phone', ' sign-up-sheets'),136 'label' => __('Phone', 'fdsus'), 137 137 'value' => $signup->dlssus_phone, 138 138 ); … … 141 141 if ($sheet->showAddress()) { 142 142 $row['signup_additional']['phone'] = array( 143 'label' => __('Address', ' sign-up-sheets'),143 'label' => __('Address', 'fdsus'), 144 144 'value' => $signup->dlssus_address . ', ' . $signup->dlssus_city . ', ' . $signup->dlssus_state 145 145 . ' ' . $signup->dlssus_zip, -
sign-up-sheets/trunk/controller/sheet.php
r3233567 r3234219 151 151 sprintf( 152 152 /* translators: %1$s is replaced with task name, %2$d is replaced with the current number of signups on that task, %3$s is replaced with "person" or "people" depending on the number of signups */ 153 esc_html__('The number of spots for task "%1$s" cannot be set below %2$d because it currently has %2$d %3$s signed up. Please clear some spots first before updating this task.', ' sign-up-sheets'),153 esc_html__('The number of spots for task "%1$s" cannot be set below %2$d because it currently has %2$d %3$s signed up. Please clear some spots first before updating this task.', 'fdsus'), 154 154 esc_html($data['title']), 155 155 $signupCount, … … 178 178 sprintf( 179 179 /* translators: %1$s is replaced with task name, %2$d is replaced with the current number of signups on that task, %3$s is replaced with "person" or "people" depending on the number of signups */ 180 esc_html__('The task "%1$s" cannot be removed because it has %2$d %3$s signed up. Please clear all spots first before removing this task.', ' sign-up-sheets'),180 esc_html__('The task "%1$s" cannot be removed because it has %2$d %3$s signed up. Please clear all spots first before removing this task.', 'fdsus'), 181 181 $task->post_title, 182 182 $signupCount, … … 330 330 function modifyTheContent($content) 331 331 { 332 if (post_password_required(get_the_ID()) 333 || !is_singular() 334 || !is_main_query() 335 || get_post_type() !== SheetModel::POST_TYPE 336 ) { 337 return $content; 338 } 339 340 // Before 341 ob_start(); 342 fdsus_the_signup_form_response(); 343 if (dlssus_has_sheet_date() && empty($_GET['task_id'])): ?> 344 <p class="dls-sus-sheet-date"> 345 <?php esc_html_e('Date', 'sign-up-sheets'); ?>: 346 <?php echo dlssus_field('date'); ?> 347 </p> 348 <?php endif; 349 $before = ob_get_clean(); 350 351 // After 352 ob_start(); 353 dlssus_get_template_part('content'); 354 $after = ob_get_clean(); 355 356 // Hide normal sheet page content if displaying signup 357 if (!empty($_GET['task_id'])) { 358 $content = ''; 359 } 360 332 $before = ''; 333 $after = ''; 334 335 if (is_singular() && is_main_query() && get_post_type() === SheetModel::POST_TYPE) { 336 // Before 337 ob_start(); 338 fdsus_the_signup_form_response(); 339 if (dlssus_has_sheet_date() && empty($_GET['task_id'])): ?> 340 <p class="dls-sus-sheet-date"> 341 <?php esc_html_e('Date', 'fdsus'); ?>: 342 <?php echo dlssus_field('date'); ?> 343 </p> 344 <?php endif; 345 $before = ob_get_clean(); 346 347 // After 348 ob_start(); 349 dlssus_get_template_part('content'); 350 $after = ob_get_clean(); 351 352 // Hide normal sheet page content if displaying signup 353 if (!empty($_GET['task_id'])) { 354 $content = ''; 355 } 356 } 361 357 return $before . $content . $after; 362 358 } … … 422 418 $successMsg = sprintf( 423 419 /* translators: %s is replaced with the task title */ 424 esc_html__('You have been signed up for %s!', ' sign-up-sheets'),420 esc_html__('You have been signed up for %s!', 'fdsus'), 425 421 '<em>' . wp_kses_post($task->post_title) . '</em>' 426 422 ); -
sign-up-sheets/trunk/controller/task-table.php
r3233567 r3234219 50 50 /** 51 51 * @var bool $showSignupLink 52 * @var bool $emailSimplified53 52 */ 54 53 extract(shortcode_atts(array( 55 54 'showSignupLink' => false, 56 'emailSimplified' => false,57 55 ), $atts)); 58 56 $this->config['showSignupLink'] = $showSignupLink; 59 $this->config['emailSimplified'] = $emailSimplified;60 57 61 58 $this->tasks = $this->sheet->getTasks(); 62 $this->table = new TaskTableModel($sheet, $this->config); 63 64 $this->setVariables($atts); 59 $this->table = new TaskTableModel($sheet); 65 60 66 61 parent::__construct(); … … 70 65 * Set variables 71 66 */ 72 private function setVariables( $excludedAtts = array())73 { 74 $this->config['isFullCompact'] = $this->sheet->isFullCompact() && !is_admin() && !$this->config['emailSimplified'];75 $this->config['displayAll'] = Settings::isDisplayAllSignupDataEnabled() || is_admin() || $this->config['emailSimplified'];67 private function setVariables() 68 { 69 $this->config['isFullCompact'] = $this->sheet->isFullCompact() && !is_admin(); 70 $this->config['displayAll'] = Settings::isDisplayAllSignupDataEnabled() || is_admin(); 76 71 77 72 /** … … 115 110 $out = ''; 116 111 foreach ($this->table->rows as $row) { 117 $out .= sprintf( 118 '<tr class="%s" %s>', 119 $row->class ? $row->class : '', 120 $this->config['emailSimplified'] ? 'valign="top" align="left"' : '' 121 ); 112 $out .= sprintf('<tr class="%s">', $row->class ? $row->class : ''); 122 113 foreach ($row->cells as $cell) { 123 114 $scope = ''; … … 150 141 // Remaining empty spots 151 142 if ($this->config['displayAll'] && !$this->config['isFullCompact']) { 152 $this->config['emptySignupColspan'] += 6; 153 if ($this->sheet->showEmail()) { 154 $this->config['emptySignupColspan']++; 155 } 143 $this->config['emptySignupColspan'] += 7; 156 144 if ($this->sheet->showPhone()) { 157 145 $this->config['emptySignupColspan']++; … … 192 180 $this->table = apply_filters('fdsus_tasktable-table-header_data_after_task_title', $this->table, $this->sheet, $this->config); 193 181 194 $this->table->addHeaderCell('name', esc_html__('Name', ' sign-up-sheets'));182 $this->table->addHeaderCell('name', esc_html__('Name', 'fdsus')); 195 183 196 184 if ($this->config['displayAll']) { 197 if ($this->sheet->showEmail()) { 198 $this->table->addHeaderCell('email', esc_html__('E-mail', 'sign-up-sheets')); 199 } 185 $this->table->addHeaderCell('email', esc_html__('E-mail', 'fdsus')); 200 186 if ($this->sheet->showPhone()) { 201 $this->table->addHeaderCell('phone', esc_html__('Phone', ' sign-up-sheets'));187 $this->table->addHeaderCell('phone', esc_html__('Phone', 'fdsus')); 202 188 } 203 189 if ($this->sheet->showAddress()) { 204 $this->table->addHeaderCell('address', esc_html__('Address', ' sign-up-sheets'));205 $this->table->addHeaderCell('city', esc_html__('City', ' sign-up-sheets'));206 $this->table->addHeaderCell('state', esc_html__('State', ' sign-up-sheets'));207 $this->table->addHeaderCell('zip', esc_html__('Zip', ' sign-up-sheets'));190 $this->table->addHeaderCell('address', esc_html__('Address', 'fdsus')); 191 $this->table->addHeaderCell('city', esc_html__('City', 'fdsus')); 192 $this->table->addHeaderCell('state', esc_html__('State', 'fdsus')); 193 $this->table->addHeaderCell('zip', esc_html__('Zip', 'fdsus')); 208 194 } 209 195 } … … 226 212 'clear-checkbox', 227 213 '<label> 228 <span class="s creen-reader-text">' . esc_html__('Select all spots to Clear', 'sign-up-sheets') . '</span>214 <span class="sr-only">' . __('Select all spots to Clear', 'fdsus') . '</span> 229 215 <input type="checkbox" value="" id="select-all-clear"> 230 216 </label> 231 <input name="multi_submit" type="submit" class="button" value="' . esc_html__('Clear Selected', ' sign-up-sheets') . '" onclick="return confirm(\'' . esc_html__('This will permanently remove all selected sign-ups for this sheet.', 'sign-up-sheets') . '\');">',217 <input name="multi_submit" type="submit" class="button" value="' . esc_html__('Clear Selected', 'fdsus') . '" onclick="return confirm(\'' . esc_html__('This will permanently remove all selected sign-ups for this sheet.', 'fdsus') . '\');">', 232 218 'fdsus-col-clear' 233 219 ); … … 298 284 299 285 $signupIndex = 0; 300 if (!$this->config['isFullCompact'] || $this->config['emailSimplified']) {286 if (!$this->config['isFullCompact']) { 301 287 if (!empty($signups) && is_array($signups)) { 302 288 foreach ($signups AS $signup) { … … 375 361 '<span class="dls-sus-spot-num">%s</span> <span>%s</span>', 376 362 /* translators: %d is replaced with the spot number */ 377 sprintf(esc_html__('#%d:', ' sign-up-sheets'), (int)$this->config['spotIndex']),363 sprintf(esc_html__('#%d:', 'fdsus'), (int)$this->config['spotIndex']), 378 364 $name 379 365 ); … … 381 367 382 368 if ($this->config['displayAll']) { 383 if ($this->sheet->showEmail()) { 384 $this->table->addRowCell('auto', 'email', esc_html($signup->dlssus_email)); 385 } 369 $this->table->addRowCell('auto', 'email', esc_html($signup->dlssus_email)); 386 370 if ($this->sheet->showPhone()) { 387 371 $this->table->addRowCell('auto', 'phone', esc_html($signup->dlssus_phone)); … … 424 408 <span class="delete"> 425 409 <label> 426 <span class="s creen-reader-text">'410 <span class="sr-only">' 427 411 . /* translators: %s is replaced with the index of the spot within the current task */ 428 sprintf(__('Select spot #%s to clear', ' sign-up-sheets'), (int)$this->config['spotIndex']) . '</span>412 sprintf(__('Select spot #%s to clear', 'fdsus'), (int)$this->config['spotIndex']) . '</span> 429 413 <input type="checkbox" name="clear[]" value="' . (int)$signup->ID . '" class="clear-checkbox"> 430 414 </label> … … 434 418 </span> 435 419 <a href="' . esc_url(Settings::getAdminEditSignupPageUrl($signup->ID, $_GET['sheet_id'])) . '"> 436 <span class="s creen-reader-text">' . esc_html__('Edit', 'sign-up-sheets') . '</span>420 <span class="sr-only">' . __('Edit', 'fdsus') . '</span> 437 421 <i class="dashicons dashicons-edit" aria-hidden="true"></i> 438 422 </a> … … 441 425 id="fdsus-signup-metadata-control-' . (int)$signup->ID . '" 442 426 aria-controls="fdsus-signup-metadata-detail-' . (int)$signup->ID . '"> 443 <span class="s creen-reader-text">' . esc_html__('Additional Details', 'sign-up-sheets') . '</span>427 <span class="sr-only">' . __('Additional Details', 'fdsus') . '</span> 444 428 <i class="dashicons dashicons-info" aria-hidden="true"></i> 445 429 </a> … … 448 432 aria-labelledby="fdsus-signup-metadata-control-' . (int)$signup->ID . '"> 449 433 <ul class="fdsus-signup-metadata"> 450 <li>' . esc_html__('Added', 'sign-up-sheets') . ': %3$s</li>451 <li>' . esc_html__('Updated', 'sign-up-sheets') . ': %4$s</li>452 <li>' . esc_html__('Linked user', 'sign-up-sheets') . ': %5$s</li>434 <li>' . __('Added', 'fdsus') . ': %3$s</li> 435 <li>' . __('Updated', 'fdsus') . ': %4$s</li> 436 <li>' . __('Linked user', 'fdsus') . ': %5$s</li> 453 437 </ul> 454 438 </div> 455 439 </div> 456 440 ', 457 esc_html__('Clear Spot Now', ' sign-up-sheets'),458 'onclick="return confirm(\'' . esc_html__('This will permanently remove this sign-up.', ' sign-up-sheets') . '\');"',441 esc_html__('Clear Spot Now', 'fdsus'), 442 'onclick="return confirm(\'' . esc_html__('This will permanently remove this sign-up.', 'fdsus') . '\');"', 459 443 date('Y-m-d ' . get_option('time_format'), strtotime($signup->post_date)), 460 444 date('Y-m-d ' . get_option('time_format'), strtotime($signup->post_modified)), … … 526 510 $signupLink = $task->getSignupLink(); 527 511 } else { 528 $signupLink = esc_html__('(empty)', ' sign-up-sheets');512 $signupLink = esc_html__('(empty)', 'fdsus'); 529 513 if (is_admin()) { 530 514 $signupLink .= ' 531 515 <a href="' . esc_url(Settings::getAdminEditSignupPageUrl($task->ID, $_GET['sheet_id'], 'add')) . '"> 532 <span class="s creen-reader-text">' . esc_html__('Add Sign-up', 'sign-up-sheets') . '</span>516 <span class="sr-only">' . __('Add Sign-up', 'fdsus') . '</span> 533 517 <i class="dashicons dashicons-plus" aria-hidden="true"></i> 534 518 </a>'; … … 536 520 } 537 521 if ($this->sheet->isExpired() || $task->isExpired()) { 538 $signupLink .= esc_html__(' - sign-ups closed', ' sign-up-sheets');522 $signupLink .= esc_html__(' - sign-ups closed', 'fdsus'); 539 523 } 540 524 … … 564 548 /** 565 549 * Get display code for tasks table (back and front-end) 566 * 567 * @param bool $echo 568 * @param bool $emailSimplified 569 * 570 * @return string|void 571 */ 572 public function output($echo = true, $emailSimplified = false) 573 { 574 ob_start(); 575 550 */ 551 public function output() 552 { 576 553 if (empty($this->tasks)) : ?> 577 <p><?php esc_html_e('No tasks were found.', ' sign-up-sheets'); ?></p>554 <p><?php esc_html_e('No tasks were found.', 'fdsus'); ?></p> 578 555 <?php 579 if ($echo) { 580 echo ob_get_clean(); 581 return; 582 } 583 return ob_get_clean(); 556 return; 584 557 endif; 558 559 $this->setVariables(); 585 560 586 561 // Header … … 600 575 // Build Table 601 576 ?> 602 < ?php if (!$emailSimplified) : ?><form action="<?php echo esc_url($formUrl); ?>" method="post" id="sus_form" class="fdsus-form"><?php endif; ?>603 <table class="dls-sus-tasks <?php echo is_admin() ? 'wp-list-table widefat' : null; ?>" <?php if ($emailSimplified) : ?>cellspacing="0" cellpadding="5" border="1"<?php endif; ?>>577 <form action="<?php echo esc_url($formUrl); ?>" method="post" id="sus_form" class="fdsus-form"> 578 <table class="dls-sus-tasks <?php echo is_admin() ? 'wp-list-table widefat' : null; ?>"> 604 579 <thead><?php echo $header; ?></thead> 605 < ?php if (!$emailSimplified) : ?><tfoot><?php echo $header; ?></tfoot><?php endif; ?>580 <tfoot><?php echo $header; ?></tfoot> 606 581 <tbody><?php echo $body; ?></tbody> 607 582 </table> … … 611 586 * 612 587 * @param SheetModel $sheet 613 * @param array $config614 588 * 615 589 * @since 2.2 616 590 */ 617 do_action('fdsus_tasktable_after_table', $this->sheet , $this->config);591 do_action('fdsus_tasktable_after_table', $this->sheet); 618 592 619 593 wp_nonce_field('clear-multiple-signups', 'manage_signup_nonce', true, false); 620 594 ?> 621 < ?php if (!$emailSimplified) : ?></form><?php endif; ?>595 </form> 622 596 <?php 623 624 if ($echo) {625 echo ob_get_clean();626 return;627 }628 return ob_get_clean();629 597 } 630 598 -
sign-up-sheets/trunk/css/admin.css
r3233567 r3234219 1 @font-face{font-family:"fdsus";src:url("font/fdsus/fonts/fdsus.ttf?jfroy1") format("truetype"),url("font/fdsus/fonts/fdsus.woff?jfroy1") format("woff"),url("font/fdsus/fonts/fdsus.svg?jfroy1#fdsus") format("svg");font-weight:normal;font-style:normal;font-display:block}[class^=fdsus-icon-],[class*=" fdsus-icon-"]{font-family:"fdsus" !important;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fdsus-icon-cursor-move:before{content:""}.fdsus-icon-arrow-horizontal:before{content:""}.fdsus-icon-arrow-vertical:before{content:""}.fdsus-icon-cursor-move-two:before{content:""}.fdsus-icon-plus:before{content:""}.fdsus-icon-remove:before{content:""}.fdsus-icon-star:before{content:""}.fdsus-icon-checkbox:before{content:""}.fdsus-icon-clipboard-notes:before{content:""}.fdsus-icon-clipboard:before{content:""}.fdsus-icon-sus:before{content:""}.wp-list-table .fdsus-id-value{color:#50575e}.post-type-dlssus_sheet .fdsus-edit-quick-info{margin-bottom:1em;text-align:center}.post-type-dlssus_sheet .fdsus-edit-quick-info .quick-info-item{display:inline-block;margin:0 .6em .6em}.post-type-dlssus_sheet .fdsus-edit-quick-info .quick-info-id{display:block}.post-type-dlssus_sheet #dlssus_sheet-settings-meta .dls-sus-pro{font-size:.8em}.post-type-dlssus_sheet #dlssus_sheet-settings-meta .fdsus-pro-setting{padding:1%}.post-type-dlssus_sheet .dlsmb-main-label{margin-bottom:2px}@media screen and (min-width: 601px){#dlssus_sheet-settings-meta .inside{display:flex;flex-wrap:wrap;gap:3%}#dlssus_sheet-settings-meta .dlsmb-field{width:31.33%}#dlssus_sheet-settings-meta .dlsmb-field.fdsus-pro-setting{width:29.33%}#dlssus_sheet-settings-meta .dlsmb-field-col-6{width:48.5%}#dlssus_sheet-settings-meta .dlsmb-field-col-6.fdsus-pro-setting{width:46.5%}#dlssus_sheet-settings-meta .dlsmb-field-col-12{width:100%}#dlssus_sheet-settings-meta .dlsmb-field-col-12.fdsus-pro-setting{width:100%}#dlssus_sheet-settings-meta .dlsmb-field-type-checkboxes{display:flex;flex-wrap:wrap;gap:.6em}#dlssus_sheet-settings-meta .dlsmb-field-type-checkboxes .dlsmb-main-label{width:100%}}@media screen and (max-width: 600px){#dlssus_sheet-settings-meta .dlsmb-field-type-checkboxes label:not(.dlsmb-main-label){line-height:2.4}}.dlssus_sheet_page_fdsus-manage .page-title-action .dashicons{vertical-align:middle}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip{display:inline-block;position:relative}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip>a::after{content:"";font-family:"dashicons";vertical-align:middle;margin-left:-4px}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip>a[aria-expanded=true]::after{content:""}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip>a[aria-expanded=true] .dashicons{background:#fff;border:1px solid #c3c4c7;border-radius:2em 2em 0 0;border-bottom-color:#fff;margin-top:-1px;margin-left:-1px;position:relative;z-index:20}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip div[role=region]{background:#fff;border:1px solid #c3c4c7;margin-top:-1px;min-width:13em;padding:1em;position:absolute;right:0;z-index:10}.dlssus_sheet_page_fdsus-manage .fdsus-signup-metadata{font-size:.8em;list-style-type:none;margin:0;padding:0}.dlssus_sheet_page_fdsus-manage .fdsus-signup-metadata li{margin:0;padding:0}.dlssus_sheet_page_fdsus-manage #select-all-clear{margin-right:.6em}.dlssus_sheet_page_fdsus-manage .button{vertical-align:middle}.fdsus-pro-setting{background-color:#ebf9f6;background:-o-repeating-linear-gradient(left, #ebf9f6, #ebf9f6 10px, #e0f5f0 10px, #e0f5f0 12px);background:repeating-linear-gradient(90deg, #ebf9f6, #ebf9f6 10px, #e0f5f0 10px, #e0f5f0 12px)}.fdsus-pro-setting th{padding-left:10px}.fdsus-pro-setting .dls-sus-pro{font-size:.8em}.dls_sus .dls-sus-settings .dls-sus-pro{font-size:.8em}.dls-sus-signup-form label{display:block}.dls-sus-signup-form label.dls-sus-inline-label{display:inline}.dls-sus-signup-form input[type=text],.dls-sus-signup-form input[type=email]{width:100%}.dls -sus-pro{background-color:#47c9af;color:#fff;font-size:.4em;font-weight:bold;padding:.2em .6em;-webkit-border-radius:1em;border-radius:1em}.dls-sus-repeater td{vertical-align:top}.dls-sus-repeater textarea{height:60px}.js .dls_sus .postbox H3{cursor:pointer}.dls_sus .postbox H3.hndle{padding:8px 12px;margin:0}.dls_sus form.dls-sus-settings{margin-top:1em}.dls-sus-system-info,.dls-sus-system-info[readonly=readonly]{width:100%;overflow:auto;background:#222;color:#bbb;padding:1em;white-space:pre;font-family:Menlo,Monaco,monospace}#dlssus_sheet-general-meta .dlsmb-field-key-datepicker-dlssus_date,#dlssus_sheet-general-meta .dlsmb-field-key-checkbox-dlssus_use_task_dates{display:inline-block;margin-right:1em}.dlssus_sheet-settings-meta .dlsmb-field LABEL.dlsmb-main-label{display:inline-block;width:30%;max-width:300px}#dlssus_sheet-general-meta .dlsmb-field-key-datepicker-dlssus_date,#dlssus_sheet-general-meta .dlsmb-field-key-checkbox-dlssus_use_task_dates{display:inline-block;margin-right:1em}.dlssus_sheet-settings-meta .dlsmb-field LABEL.dlsmb-main-label{display:inline-block;width:30%;max-width:300px}.dlssus_tasks-row .add-task-after,.dlssus_tasks-row .remove-task{display:inline-block;border:2px solid #fff;color:#fff;width:1.4em;height:1.4em;line-height:1.4em;text-align:center;text-decoration:none;-webkit-border-radius:999em;-moz-border-radius:999em;border-radius:999em}.dlssus_tasks-row .add-task-after{background-color:#6f9f44}.dlssus_tasks-row .remove-task{background-color:#bf212e}.dlsmb-repeater-dlssus_tasks-row .dlsmb-field-key-textarea-filled_spots .dlsmb-field-element{line-height:2;margin:0;padding:0 8px;vertical-align:middle}.dlsmb-field-key-textarea-dlssus_sheet_email_conf_message textarea{height:11.5em}.dlsmb-field-key-textarea-dlssus_sheet_email_message textarea{height:11.5em}.dls-sus-task-header-row .dashicons{width:auto;height:auto;line-height:1.6em}.dlsmb-field-type-hidden{display:none}@media only screen and (max-width: 760px){#dlssus_sheet-tasks-meta table,#dlssus_sheet-tasks-meta thead,#dlssus_sheet-tasks-meta tbody,#dlssus_sheet-tasks-meta td,#dlssus_sheet-tasks-meta tr.dlsmb-repeater-dlssus_tasks-row,#dlssus_sheet-tasks-meta th{display:block}#dlssus_sheet-tasks-meta tr.dlsmb-blank-repeater,#dlssus_sheet-tasks-meta thead tr{display:none}#dlssus_sheet-tasks-meta tr{margin:0 0 1rem 0}#dlssus_sheet-tasks-meta td{border:none;border-bottom:1px solid #eee;position:relative;padding-left:5%}#dlssus_sheet-tasks-meta td{border:0}#dlssus_sheet-tasks-meta td:nth-of-type(1){min-height:30px}#dlssus_sheet-tasks-meta tr.dlsmb-repeater-dlssus_tasks-row td .dlsmb-main-label-mobile{display:block !important;margin-bottom:10px;font-weight:bold}.dlsmb-field-type-repeater LABEL.dlsmb-main-label{display:block;font-weight:bold;margin-bottom:.6em}}.dlssus-email-test fieldset{background-color:#e2e2e2;padding:2em;max-width:40em}.dlssus-email-test fieldset input[type=email],.dlssus-email-test fieldset textarea{width:100%}.dlssus-email-test fieldset p:first-child{margin-right:2%}.dlssus-email-test fieldset p:first-child,.dlssus-email-test fieldset p:nth-child(2){margin-top:0;width:49%;float:left}.dlssus-email-test fieldset p:nth-child(2){margin-top:0}.dlssus-email-test fieldset p:nth-child(3){clear:both}.dlssus-email-test fieldset p:last-child{margin-bottom:0}.fdsus-footer{text-align:center}.fdsus-footer hr{margin:2em 0 1em}.fdsus-footer-getpro{display:inline-block;text-decoration:none;vertical-align:middle}.fdsus-footer-getpro::before{font-family:"fdsus";content:"";vertical-align:middle;margin:0 .5em;font-size:1.4em}.fdsus-footer-getpro span{text-decoration:underline}.post-type-dlssus_sheet #wpbody-content,.post-type-dlssus_task #wpbody-content,.post-type-dlssus_signup #wpbody-content{padding-bottom:7rem}#dashboard_right_now li.dlssus_sheet-count a:before{content:"";font-family:"fdsus"}/*# sourceMappingURL=admin.css.map */1 @font-face{font-family:"fdsus";src:url("font/fdsus/fonts/fdsus.ttf?jfroy1") format("truetype"),url("font/fdsus/fonts/fdsus.woff?jfroy1") format("woff"),url("font/fdsus/fonts/fdsus.svg?jfroy1#fdsus") format("svg");font-weight:normal;font-style:normal;font-display:block}[class^=fdsus-icon-],[class*=" fdsus-icon-"]{font-family:"fdsus" !important;speak:never;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fdsus-icon-cursor-move:before{content:""}.fdsus-icon-arrow-horizontal:before{content:""}.fdsus-icon-arrow-vertical:before{content:""}.fdsus-icon-cursor-move-two:before{content:""}.fdsus-icon-plus:before{content:""}.fdsus-icon-remove:before{content:""}.fdsus-icon-star:before{content:""}.fdsus-icon-checkbox:before{content:""}.fdsus-icon-clipboard-notes:before{content:""}.fdsus-icon-clipboard:before{content:""}.fdsus-icon-sus:before{content:""}.wp-list-table .fdsus-id-value{color:#50575e}.post-type-dlssus_sheet .fdsus-edit-quick-info{margin-bottom:1em;text-align:center}.post-type-dlssus_sheet .fdsus-edit-quick-info .quick-info-item{display:inline-block;margin:0 .6em .6em}.post-type-dlssus_sheet .fdsus-edit-quick-info .quick-info-id{display:block}.post-type-dlssus_sheet #dlssus_sheet-settings-meta .dls-sus-pro{font-size:.8em}.post-type-dlssus_sheet #dlssus_sheet-settings-meta .fdsus-pro-setting{padding:1%}.post-type-dlssus_sheet .dlsmb-main-label{margin-bottom:2px}@media screen and (min-width: 601px){#dlssus_sheet-settings-meta .inside{display:flex;flex-wrap:wrap;gap:3%}#dlssus_sheet-settings-meta .dlsmb-field{width:31.33%}#dlssus_sheet-settings-meta .dlsmb-field.fdsus-pro-setting{width:29.33%}#dlssus_sheet-settings-meta .dlsmb-field-col-6{width:48.5%}#dlssus_sheet-settings-meta .dlsmb-field-col-6.fdsus-pro-setting{width:46.5%}#dlssus_sheet-settings-meta .dlsmb-field-col-12{width:100%}#dlssus_sheet-settings-meta .dlsmb-field-col-12.fdsus-pro-setting{width:100%}#dlssus_sheet-settings-meta .dlsmb-field-type-checkboxes{display:flex;flex-wrap:wrap;gap:.6em}#dlssus_sheet-settings-meta .dlsmb-field-type-checkboxes .dlsmb-main-label{width:100%}}@media screen and (max-width: 600px){#dlssus_sheet-settings-meta .dlsmb-field-type-checkboxes label:not(.dlsmb-main-label){line-height:2.4}}.dlssus_sheet_page_fdsus-manage .page-title-action .dashicons{vertical-align:middle}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip{display:inline-block;position:relative}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip>a::after{content:"";font-family:"dashicons";vertical-align:middle;margin-left:-4px}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip>a[aria-expanded=true]::after{content:""}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip>a[aria-expanded=true] .dashicons{background:#fff;border:1px solid #c3c4c7;border-radius:2em 2em 0 0;border-bottom-color:#fff;margin-top:-1px;margin-left:-1px;position:relative;z-index:20}.dlssus_sheet_page_fdsus-manage .fdsus-toggletip div[role=region]{background:#fff;border:1px solid #c3c4c7;margin-top:-1px;min-width:13em;padding:1em;position:absolute;right:0;z-index:10}.dlssus_sheet_page_fdsus-manage .fdsus-signup-metadata{font-size:.8em;list-style-type:none;margin:0;padding:0}.dlssus_sheet_page_fdsus-manage .fdsus-signup-metadata li{margin:0;padding:0}.dlssus_sheet_page_fdsus-manage #select-all-clear{margin-right:.6em}.dlssus_sheet_page_fdsus-manage .button{vertical-align:middle}.fdsus-pro-setting{background-color:#ebf9f6;background:-o-repeating-linear-gradient(left, #ebf9f6, #ebf9f6 10px, #e0f5f0 10px, #e0f5f0 12px);background:repeating-linear-gradient(90deg, #ebf9f6, #ebf9f6 10px, #e0f5f0 10px, #e0f5f0 12px)}.fdsus-pro-setting th{padding-left:10px}.fdsus-pro-setting .dls-sus-pro{font-size:.8em}.dls_sus .dls-sus-settings .dls-sus-pro{font-size:.8em}.dls-sus-signup-form label{display:block}.dls-sus-signup-form label.dls-sus-inline-label{display:inline}.dls-sus-signup-form input[type=text],.dls-sus-signup-form input[type=email]{width:100%}.dls_sus .sr-only:not(:focus):not(:active){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.dls_sus .dashicons-trash:before{color:#e22f2e}.dls_sus a:hover .dashicons-trash:before,.dls_sus a:focus .dashicons-trash:before{color:#ff5348}.dls_sus .fixed .column-task_num,.dls_sus .fixed .column-spot_num,.dls_sus .fixed .column-filled_spot_num{width:10%}.dls_sus .fixed .column-id{width:5%}.dls_sus .tasks{margin-bottom:3em}.dls_sus .tasks LI{background:rgba(0,0,0,0) url("../images/icon-drag-y.png") no-repeat scroll left center;padding-left:16px;min-height:20px}.dls_sus .tasks LI:hover{cursor:move}.dls_sus .tasks LI.ui-sortable-helper{cursor:move}.dls_sus .tasks .add-task-after,.dls_sus .tasks .remove-task{display:inline-block;border:2px solid #fff;color:#fff;width:1.4em;height:1.4em;line-height:1.4em;text-align:center;text-decoration:none;-webkit-border-radius:999em;-moz-border-radius:999em;border-radius:999em}.dls_sus .tasks .add-task-after{background-color:#6f9f44}.dls_sus .tasks .remove-task{background-color:#bf212e}.dls_sus .dls-sus-tasks tfoot .fdsus-col-clear *{display:none}.dls_sus .dls-sus-tasks .fdsus-col-clear input[type=checkbox]{margin-left:0}.dls-sus-tasks tbody th{vertical-align:top}.dls-sus-pro{background-color:#47c9af;color:#fff;font-size:.4em;font-weight:bold;padding:.2em .6em;-webkit-border-radius:1em;border-radius:1em}.dls-sus-repeater td{vertical-align:top}.dls-sus-repeater textarea{height:60px}.js .dls_sus .postbox H3{cursor:pointer}.dls_sus .postbox H3.hndle{padding:8px 12px;margin:0}.dls_sus form.dls-sus-settings{margin-top:1em}.dls-sus-system-info,.dls-sus-system-info[readonly=readonly]{width:100%;overflow:auto;background:#222;color:#bbb;padding:1em;white-space:pre;font-family:Menlo,Monaco,monospace}#dlssus_sheet-general-meta .dlsmb-field-key-datepicker-dlssus_date,#dlssus_sheet-general-meta .dlsmb-field-key-checkbox-dlssus_use_task_dates{display:inline-block;margin-right:1em}.dlssus_sheet-settings-meta .dlsmb-field LABEL.dlsmb-main-label{display:inline-block;width:30%;max-width:300px}#dlssus_sheet-general-meta .dlsmb-field-key-datepicker-dlssus_date,#dlssus_sheet-general-meta .dlsmb-field-key-checkbox-dlssus_use_task_dates{display:inline-block;margin-right:1em}.dlssus_sheet-settings-meta .dlsmb-field LABEL.dlsmb-main-label{display:inline-block;width:30%;max-width:300px}.dlssus_tasks-row .add-task-after,.dlssus_tasks-row .remove-task{display:inline-block;border:2px solid #fff;color:#fff;width:1.4em;height:1.4em;line-height:1.4em;text-align:center;text-decoration:none;-webkit-border-radius:999em;-moz-border-radius:999em;border-radius:999em}.dlssus_tasks-row .add-task-after{background-color:#6f9f44}.dlssus_tasks-row .remove-task{background-color:#bf212e}.dlsmb-repeater-dlssus_tasks-row .dlsmb-field-key-textarea-filled_spots .dlsmb-field-element{line-height:2;margin:0;padding:0 8px;vertical-align:middle}.dlsmb-field-key-textarea-dlssus_sheet_email_conf_message textarea{height:11.5em}.dlsmb-field-key-textarea-dlssus_sheet_email_message textarea{height:11.5em}.dls-sus-task-header-row .dashicons{width:auto;height:auto;line-height:1.6em}.dlsmb-field-type-hidden{display:none}@media only screen and (max-width: 760px){#dlssus_sheet-tasks-meta table,#dlssus_sheet-tasks-meta thead,#dlssus_sheet-tasks-meta tbody,#dlssus_sheet-tasks-meta td,#dlssus_sheet-tasks-meta tr.dlsmb-repeater-dlssus_tasks-row,#dlssus_sheet-tasks-meta th{display:block}#dlssus_sheet-tasks-meta tr.dlsmb-blank-repeater,#dlssus_sheet-tasks-meta thead tr{display:none}#dlssus_sheet-tasks-meta tr{margin:0 0 1rem 0}#dlssus_sheet-tasks-meta td{border:none;border-bottom:1px solid #eee;position:relative;padding-left:5%}#dlssus_sheet-tasks-meta td{border:0}#dlssus_sheet-tasks-meta td:nth-of-type(1){min-height:30px}#dlssus_sheet-tasks-meta tr.dlsmb-repeater-dlssus_tasks-row td .dlsmb-main-label-mobile{display:block !important;margin-bottom:10px;font-weight:bold}.dlsmb-field-type-repeater LABEL.dlsmb-main-label{display:block;font-weight:bold;margin-bottom:.6em}}.dlssus-email-test fieldset{background-color:#e2e2e2;padding:2em;max-width:40em}.dlssus-email-test fieldset input[type=email],.dlssus-email-test fieldset textarea{width:100%}.dlssus-email-test fieldset p:first-child{margin-right:2%}.dlssus-email-test fieldset p:first-child,.dlssus-email-test fieldset p:nth-child(2){margin-top:0;width:49%;float:left}.dlssus-email-test fieldset p:nth-child(2){margin-top:0}.dlssus-email-test fieldset p:nth-child(3){clear:both}.dlssus-email-test fieldset p:last-child{margin-bottom:0}.fdsus-footer{text-align:center}.fdsus-footer hr{margin:2em 0 1em}.fdsus-footer-getpro{display:inline-block;text-decoration:none;vertical-align:middle}.fdsus-footer-getpro::before{font-family:"fdsus";content:"";vertical-align:middle;margin:0 .5em;font-size:1.4em}.fdsus-footer-getpro span{text-decoration:underline}.post-type-dlssus_sheet #wpbody-content,.post-type-dlssus_task #wpbody-content,.post-type-dlssus_signup #wpbody-content{padding-bottom:7rem}#dashboard_right_now li.dlssus_sheet-count a:before{content:"";font-family:"fdsus"}/*# sourceMappingURL=admin.css.map */ -
sign-up-sheets/trunk/css/sass/admin.scss
r3233567 r3234219 5 5 @import "admin/settings-page"; 6 6 @import "admin/signup-edit"; 7 8 .dls_sus { 9 .sr-only:not(:focus):not(:active) { 10 clip: rect(0 0 0 0); 11 clip-path: inset(50%); 12 height: 1px; 13 overflow: hidden; 14 position: absolute; 15 white-space: nowrap; 16 width: 1px; 17 } 18 19 .dashicons-trash:before { 20 color: #e22f2e; 21 } 22 23 a:hover, 24 a:focus { 25 .dashicons-trash:before { 26 color: #ff5348; 27 } 28 } 29 } 30 31 .dls_sus .fixed .column-task_num, 32 .dls_sus .fixed .column-spot_num, 33 .dls_sus .fixed .column-filled_spot_num { 34 width: 10%; 35 } 36 .dls_sus .fixed .column-id { 37 width: 5%; 38 } 39 .dls_sus .tasks { 40 margin-bottom: 3em; 41 } 42 .dls_sus .tasks LI { 43 background: transparent url("../images/icon-drag-y.png") no-repeat scroll left center; 44 padding-left: 16px; 45 min-height: 20px; 46 } 47 .dls_sus .tasks LI:hover { 48 cursor: move; 49 } 50 .dls_sus .tasks LI.ui-sortable-helper{ 51 cursor: move; 52 } 53 .dls_sus .tasks .add-task-after, 54 .dls_sus .tasks .remove-task { 55 display: inline-block; 56 border: 2px solid #fff; 57 color: #fff; 58 width: 1.4em; 59 height: 1.4em; 60 line-height: 1.4em; 61 text-align: center; 62 text-decoration: none; 63 -webkit-border-radius: 999em; 64 -moz-border-radius: 999em; 65 border-radius: 999em; 66 } 67 .dls_sus .tasks .add-task-after { 68 background-color: #6f9f44; 69 } 70 .dls_sus .tasks .remove-task { 71 background-color: #bf212e; 72 } 73 74 .dls_sus .dls-sus-tasks tfoot .fdsus-col-clear * { 75 display: none; 76 } 77 78 .dls_sus .dls-sus-tasks .fdsus-col-clear input[type=checkbox] { 79 margin-left: 0; 80 } 81 82 .dls-sus-tasks { 83 tbody th { 84 vertical-align: top; 85 } 86 } 7 87 8 88 .dls-sus-pro { -
sign-up-sheets/trunk/css/sass/style/_common.scss
r3233567 r3234219 1 1 .dls-sus-sheets, 2 2 .dls-sus-sheet { 3 .s creen-reader-text:not(:focus):not(:active) {3 .sr-only:not(:focus):not(:active) { 4 4 clip: rect(0 0 0 0); 5 5 clip-path: inset(50%); -
sign-up-sheets/trunk/css/style.css
r3233567 r3234219 1 :root{--fdsus-filled--background: #eee;--fdsus-filled--color: #4f4f4f;--fdsus-expired--background: var(--fdsus-filled--background);--fdsus-expired--color: var(--fdsus-filled--color)}.dls-sus-sheets .s creen-reader-text:not(:focus):not(:active),.dls-sus-sheet .screen-reader-text:not(:focus):not(:active){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.dls-sus-sheet .fdsus-form{overflow-x:auto}table.dls-sus-tasks,table.dls-sus-sheets,.fdsus-user-sign-ups-table{border-collapse:collapse}table.dls-sus-tasks td,table.dls-sus-tasks th,table.dls-sus-sheets td,table.dls-sus-sheets th,.fdsus-user-sign-ups-table td,.fdsus-user-sign-ups-table th{border-bottom:1px solid #ccc;padding:.2em .6em;text-align:left;vertical-align:top}table.dls-sus-sheets{width:100%}table.dls-sus-sheets tr.filled{background:var(--fdsus-filled--background);color:var(--fdsus-filled--color)}table.dls-sus-sheets .column-open_spots{text-align:center}table.dls-sus-sheets .column-open_spots{text-align:center}table.dls-sus-sheets .column-view_link a::after{display:inline-block;margin-left:.2em}@supports(content: "x"/"y"){table.dls-sus-sheets .column-view_link a::after{content:"»"/""}}@supports not (content: "x"/"y"){table.dls-sus-sheets .column-view_link a::after{content:"»";alt:""}}@media(min-width: 400px){table.dls-sus-sheets .column-view_link{white-space:nowrap}}table.dls-sus-tasks{border-bottom:1px solid #ccc}table.dls-sus-tasks td,table.dls-sus-tasks th{border-bottom:0}table.dls-sus-tasks tbody th{font-weight:normal}table.dls-sus-tasks .fdsus-task-first-row th,table.dls-sus-tasks .fdsus-task-first-row td{border-top:1px solid #ccc}table.dls-sus-tasks tfoot{display:none}table.dls-sus-tasks .dls-sus-task-expired th,table.dls-sus-tasks .dls-sus-task-expired td{background:#f2f2f2;color:#000}table.dls-sus-tasks .fdsus-name{font-style:italic}.fdsus-signup-availability{font-size:.8em}.fdsus-user-sign-ups-table dl{font-size:.8em}.fdsus-user-sign-ups-table dd{margin:0;display:inline}.fdsus-user-sign-ups-table dt{display:inline-block;margin:0 .4em 0 0}.fdsus-user-sign-ups-table dd:after{content:"\a";white-space:pre}.fdsus-user-sign-ups-table .dls-sus-task-expired th,.fdsus-user-sign-ups-table .dls-sus-task-expired td{background:var(--fdsus-expired--background);color:var(--fdsus-expired--color)}.fdsus-user-sign-ups-table .fdsus-task-date,.fdsus-user-sign-ups-table .fdsus-signups-closed{font-size:.8em}.fdsus-user-sign-ups-table .fdsus-actions{float:right}tr.dls-sus-row-header td{font-size:larger;font-weight:bolder}.dlsntc-notice{display:block;padding:0;background-color:#f2f2f2;color:#000;margin:1em auto}.dlsntc-notice svg{display:inline-block;vertical-align:middle;margin-right:.4em}.dlsntc-notice svg path{fill:#000}.dlsntc-notice p,.dlsntc-notice .dlsntc-message{border-bottom:1px solid #fff;margin:0;padding:.4em .8em}.dlsntc-notice .fdsus-receipt{border:1px dashed;padding:1em;margin:.4em 0}.dlsntc-notice .fdsus-receipt .fdsus-receipt-title{margin-top:0}.dlsntc-notice .fdsus-receipt .fdsus-receipt-signed-up-date{text-align:center;display:block;margin-top:1em;font-size:.9em}.dlsntc-notice .fdsus-receipt dl{margin:0}.dlsntc-notice .fdsus-receipt dd+dt,.dlsntc-notice .fdsus-receipt dt+dd{margin-top:0;margin-left:0}.dlsntc-notice .fdsus-receipt dt{float:left;clear:left;margin-right:.6em}.dlsntc-notice .fdsus-receipt dt:after{content:":"}.dlsntc-error{background-color:#ffbaba;color:#470004}.dlsntc-error svg path{fill:#470004}.dlsntc-warn{background-color:#feefb3;color:#523100}.dlsntc-warn svg path{fill:#523100}.dlsntc-info{background-color:#bde5f8;color:#002e57}.dlsntc-info svg path{fill:#223b07}.dlsntc-success{background-color:#dff2c0;color:#223b07}.dlsntc-success svg path{fill:#223b07}.dls-sus-signup-form p{margin:0 0 1em 0}.dls-sus-signup-form label{display:block}.dls-sus-signup-form input[type=text],.dls-sus-signup-form input[type=email],.dls-sus-signup-form input[type=date],.dls-sus-signup-form select{width:98%}.dls-sus-signup-form .dls-sus-city,.dls-sus-signup-form .dls-sus-state,.dls-sus-signup-form .dls-sus-zip{display:inline-block;vertical-align:top;margin-right:2%}.dls-sus-signup-form .dls-sus-city label,.dls-sus-signup-form .dls-sus-state label,.dls-sus-signup-form .dls-sus-zip label{white-space:nowrap}.dls-sus-signup-form .dls-sus-city{width:50%}.dls-sus-signup-form .dls-sus-state{width:20%}.dls-sus-signup-form .dls-sus-zip{width:22%;margin-right:0}.dls-sus-signup-form .dls-sus-remember label{display:inline}.dls-sus-signup-form label.dls-sus-inline-label{display:inline}.dls-sus-signup-form .dls-sus-note{font-style:italic;font-size:.8em;display:block}.dls-sus-signup-form #dls-sus-website{display:none}@media(max-width: 400px){.dls-sus-signup-form .dls-sus-state,.dls-sus-signup-form .dls-sus-zip{display:block;width:50%}}#dls-sus-mailcheck-suggestion{margin:0;padding:0}#dls-sus-mailcheck-suggestion::before{display:none}tr.dls-sus-header-row td{border-top:1px solid #ccc;font-size:larger;font-weight:bolder}.single-dlssus_sheet .pagination-single,.single-dlssus_sheet .post-meta-wrapper,.single-dlssus_sheet .post-meta{display:none}1 :root{--fdsus-filled--background: #eee;--fdsus-filled--color: #4f4f4f;--fdsus-expired--background: var(--fdsus-filled--background);--fdsus-expired--color: var(--fdsus-filled--color)}.dls-sus-sheets .sr-only:not(:focus):not(:active),.dls-sus-sheet .sr-only:not(:focus):not(:active){clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}.dls-sus-sheet .fdsus-form{overflow-x:auto}table.dls-sus-tasks,table.dls-sus-sheets,.fdsus-user-sign-ups-table{border-collapse:collapse}table.dls-sus-tasks td,table.dls-sus-tasks th,table.dls-sus-sheets td,table.dls-sus-sheets th,.fdsus-user-sign-ups-table td,.fdsus-user-sign-ups-table th{border-bottom:1px solid #ccc;padding:.2em .6em;text-align:left;vertical-align:top}table.dls-sus-sheets{width:100%}table.dls-sus-sheets tr.filled{background:var(--fdsus-filled--background);color:var(--fdsus-filled--color)}table.dls-sus-sheets .column-open_spots{text-align:center}table.dls-sus-sheets .column-open_spots{text-align:center}table.dls-sus-sheets .column-view_link a::after{display:inline-block;margin-left:.2em}@supports(content: "x"/"y"){table.dls-sus-sheets .column-view_link a::after{content:"»"/""}}@supports not (content: "x"/"y"){table.dls-sus-sheets .column-view_link a::after{content:"»";alt:""}}@media(min-width: 400px){table.dls-sus-sheets .column-view_link{white-space:nowrap}}table.dls-sus-tasks{border-bottom:1px solid #ccc}table.dls-sus-tasks td,table.dls-sus-tasks th{border-bottom:0}table.dls-sus-tasks tbody th{font-weight:normal}table.dls-sus-tasks .fdsus-task-first-row th,table.dls-sus-tasks .fdsus-task-first-row td{border-top:1px solid #ccc}table.dls-sus-tasks tfoot{display:none}table.dls-sus-tasks .dls-sus-task-expired th,table.dls-sus-tasks .dls-sus-task-expired td{background:#f2f2f2;color:#000}table.dls-sus-tasks .fdsus-name{font-style:italic}.fdsus-signup-availability{font-size:.8em}.fdsus-user-sign-ups-table dl{font-size:.8em}.fdsus-user-sign-ups-table dd{margin:0;display:inline}.fdsus-user-sign-ups-table dt{display:inline-block;margin:0 .4em 0 0}.fdsus-user-sign-ups-table dd:after{content:"\a";white-space:pre}.fdsus-user-sign-ups-table .dls-sus-task-expired th,.fdsus-user-sign-ups-table .dls-sus-task-expired td{background:var(--fdsus-expired--background);color:var(--fdsus-expired--color)}.fdsus-user-sign-ups-table .fdsus-task-date,.fdsus-user-sign-ups-table .fdsus-signups-closed{font-size:.8em}.fdsus-user-sign-ups-table .fdsus-actions{float:right}tr.dls-sus-row-header td{font-size:larger;font-weight:bolder}.dlsntc-notice{display:block;padding:0;background-color:#f2f2f2;color:#000;margin:1em auto}.dlsntc-notice svg{display:inline-block;vertical-align:middle;margin-right:.4em}.dlsntc-notice svg path{fill:#000}.dlsntc-notice p,.dlsntc-notice .dlsntc-message{border-bottom:1px solid #fff;margin:0;padding:.4em .8em}.dlsntc-notice .fdsus-receipt{border:1px dashed;padding:1em;margin:.4em 0}.dlsntc-notice .fdsus-receipt .fdsus-receipt-title{margin-top:0}.dlsntc-notice .fdsus-receipt .fdsus-receipt-signed-up-date{text-align:center;display:block;margin-top:1em;font-size:.9em}.dlsntc-notice .fdsus-receipt dl{margin:0}.dlsntc-notice .fdsus-receipt dd+dt,.dlsntc-notice .fdsus-receipt dt+dd{margin-top:0;margin-left:0}.dlsntc-notice .fdsus-receipt dt{float:left;clear:left;margin-right:.6em}.dlsntc-notice .fdsus-receipt dt:after{content:":"}.dlsntc-error{background-color:#ffbaba;color:#470004}.dlsntc-error svg path{fill:#470004}.dlsntc-warn{background-color:#feefb3;color:#523100}.dlsntc-warn svg path{fill:#523100}.dlsntc-info{background-color:#bde5f8;color:#002e57}.dlsntc-info svg path{fill:#223b07}.dlsntc-success{background-color:#dff2c0;color:#223b07}.dlsntc-success svg path{fill:#223b07}.dls-sus-signup-form p{margin:0 0 1em 0}.dls-sus-signup-form label{display:block}.dls-sus-signup-form input[type=text],.dls-sus-signup-form input[type=email],.dls-sus-signup-form input[type=date],.dls-sus-signup-form select{width:98%}.dls-sus-signup-form .dls-sus-city,.dls-sus-signup-form .dls-sus-state,.dls-sus-signup-form .dls-sus-zip{display:inline-block;vertical-align:top;margin-right:2%}.dls-sus-signup-form .dls-sus-city label,.dls-sus-signup-form .dls-sus-state label,.dls-sus-signup-form .dls-sus-zip label{white-space:nowrap}.dls-sus-signup-form .dls-sus-city{width:50%}.dls-sus-signup-form .dls-sus-state{width:20%}.dls-sus-signup-form .dls-sus-zip{width:22%;margin-right:0}.dls-sus-signup-form .dls-sus-remember label{display:inline}.dls-sus-signup-form label.dls-sus-inline-label{display:inline}.dls-sus-signup-form .dls-sus-note{font-style:italic;font-size:.8em;display:block}.dls-sus-signup-form #dls-sus-website{display:none}@media(max-width: 400px){.dls-sus-signup-form .dls-sus-state,.dls-sus-signup-form .dls-sus-zip{display:block;width:50%}}#dls-sus-mailcheck-suggestion{margin:0;padding:0}#dls-sus-mailcheck-suggestion::before{display:none}.fdsus-removal-link a,.fdsus-edit-link a{margin-left:.4em}.fdsus-removal-link a svg,.fdsus-edit-link a svg{display:inline-block;fill:currentColor;margin-bottom:-0.15em}tr.dls-sus-header-row td{border-top:1px solid #ccc;font-size:larger;font-weight:bolder}.single-dlssus_sheet .pagination-single,.single-dlssus_sheet .post-meta-wrapper,.single-dlssus_sheet .post-meta{display:none} -
sign-up-sheets/trunk/id.php
r3233567 r3234219 2 2 3 3 namespace FDSUS; 4 5 use function is_plugin_active;6 7 if (!function_exists('is_plugin_active')) {8 require_once(ABSPATH . 'wp-admin/includes/plugin.php');9 }10 4 11 5 if (!class_exists('\\' . __NAMESPACE__ . '\Id')): … … 13 7 class Id 14 8 { 9 15 10 const PREFIX = 'dlssus'; 16 11 const NAME = 'Sign-up Sheets - WordPress Plugin'; … … 31 26 * Get version from main PHP file `Version:` comment header 32 27 * 33 * @param string $type 'pro', 'free' (not fallback) or '' for the current type34 *35 28 * @return string version number 36 29 */ 37 public static function version( $type = '')30 public static function version() 38 31 { 39 32 if (!function_exists('get_plugin_data')) { 40 require_once(ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR . 'plugin.php'); 33 require_once(ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR 34 . 'plugin.php'); 41 35 } 42 36 43 switch ($type) { 44 case 'pro': 45 $pluginBasename = self::PRO_PLUGIN_BASENAME; 46 break; 47 case 'free': 48 $pluginBasename = self::FREE_PLUGIN_BASENAME; 49 break; 50 default: 51 $pluginBasename = self::isPro() ? self::PRO_PLUGIN_BASENAME : self::FREE_PLUGIN_BASENAME; 52 } 53 54 if (!file_exists(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $pluginBasename)) { 55 return ''; 56 } 57 58 $pluginData = get_plugin_data(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $pluginBasename, false, false); 37 $baseName = self::isPro() ? self::PRO_PLUGIN_BASENAME : self::FREE_PLUGIN_BASENAME; 38 $pluginData = get_plugin_data(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . $baseName, false); 59 39 60 40 return $pluginData && $pluginData['Version'] ? $pluginData['Version'] : ''; … … 64 44 * Log 65 45 * 66 * @param string $msg46 * @param string $msg 67 47 * @param string|null $filename 68 * @param string $emailSubject Leave blank to prevent email from sending48 * @param string $emailSubject Leave blank to prevent email from sending 69 49 */ 70 50 public static function log($msg, $filename = null, $emailSubject = '') … … 167 147 public static function getPluginPath() 168 148 { 169 return dirname(__FILE__) . DIRECTORY_SEPARATOR;149 return dirname(__FILE__) . '/'; 170 150 } 171 151 … … 175 155 public static function isPro() 176 156 { 177 if (self::isProActivating()) { 178 return true; 179 } 180 181 return is_plugin_active(self::PRO_PLUGIN_BASENAME); 157 return is_file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pro.php'); 182 158 } 183 159 184 /**185 * Is the pro version currently activating?186 *187 * @return bool188 */189 public static function isProActivating()190 {191 if (!empty($_GET['action']) && $_GET['action'] === 'activate'192 && !empty($_GET['plugin'])193 && $_GET['plugin'] === Id::PRO_PLUGIN_BASENAME194 ) {195 return true;196 }197 198 return false;199 }200 160 } 201 161 -
sign-up-sheets/trunk/js/dist/main.js
r3233567 r3234219 37 37 // Standard general format check 38 38 function fdsusValidateEmail(email) { 39 if (email === '') return true;40 39 const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; 41 40 return re.test(String(email).toLowerCase()); -
sign-up-sheets/trunk/js/dist/main.min.js
r3233567 r3234219 1 1 /*! main.min.js file */ 2 function fdsusExistsInQueryString(e,t){return new RegExp("[?&]"+e).test(t)}function fdsusRemoveUrlParam(t,e){let s=e.split("?")[0],i=[],n=-1!==e.indexOf("?")?e.split("?")[1]:"";if(""!==n){for(let e=(i=n.split("&")).length-1;0<=e;--e)i[e].split("=")[0]===t&&i.splice(e,1);i.length&&(s=s+"?"+i.join("&"))}return s}function fdsusIsValidDate(e){var t,s;return!(!e.match(/^\d{4}-\d{2}-\d{2}$/)||!(s=(t=new Date(e)).getTime())&&0!==s||t.toISOString().slice(0,10)!==e)}function fdsusSignupFormSubmit(e){document.getElementById("fdsus-signup-form").submit()}jQuery(document).ready(function(t){t.extend({getUrlVars:function(){for(var e,t=[],s=window.location.href.split("#")[0].slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<s.length;i++)e=s[i].split("="),t.push(e[0]),t[e[0]]=e[1];return t},getUrlVar:function(e){return t.getUrlVars()[e]}}),FDSUS.dlssus_validate_email.disable||t(".dls-sus-signup-form #signup_email").on("blur",function(e){let s='<div role="alertdialog" class="dlsntc-notice dlsntc-warn"><p class="dlsntc-message"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false" width="1em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><title>Warning</title><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66a3 3 0 0 0-.05-3.04zM12 17a1 1 0 1 1 1-1a1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></svg> ',i="</p></div>",n=t(".dls-sus-signup-form #dls-sus-mailcheck-suggestion");t(this).mailcheck({suggested:function(e,t){n.html(s+"Did you mean <b><i>"+t.full+"</b></i>?"+i)},empty:function(e){var t;n.html(""), ""===(t=document.getElementById("signup_email").value)||/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())?n.html(""):n.html(s+"Please make sure your email is valid"+i)}})}),t(".dls-sus-signup-form input[type=date]").on("blur",function(e){t(".fdsus-date-check").remove(),t(this).val()&&!fdsusIsValidDate(t(this).val())&&t(this).after('<div role="alertdialog" class="dlsntc-notice dlsntc-warn fdsus-date-check"><p class="dlsntc-message"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false" width="1em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><title>Warning</title><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66a3 3 0 0 0-.05-3.04zM12 17a1 1 0 1 1 1-1a1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></svg> Please make sure date is in <strong>YYYY-MM-DD</strong> format</p></div>')})}),document.addEventListener("DOMContentLoaded",function(){let n=document.getElementById("fdsus-signup-form");if(null!==n){let i=!1;n.addEventListener("submit",e=>{let t=n.querySelector("[type=submit]");var s;i||(i=!0,t.disabled=!0,setTimeout(()=>{i=!1,t.disabled=!1},3e3)),"v2-checkbox"===FDSUS.dls_sus_recaptcha_version&&null!==(s=document.querySelector("#fdsus-signup-form #g-recaptcha-response"))&&""===s.value&&(e.preventDefault(),alert("Please check the reCAPTCHA to submit the form."))})}var t=window.location.toString();if(0<t.indexOf("?")){let e=t;(fdsusExistsInQueryString("action=removed",e)||fdsusExistsInQueryString("action=signup",e)||fdsusExistsInQueryString("action=updated",e))&&fdsusExistsInQueryString("status=success",e)&&(e=fdsusRemoveUrlParam("action",e),e=fdsusRemoveUrlParam("status",e)),e!==t&&window.history.replaceState({},document.title,e)}},!1);2 function fdsusExistsInQueryString(e,t){return new RegExp("[?&]"+e).test(t)}function fdsusRemoveUrlParam(t,e){let s=e.split("?")[0],i=[],n=-1!==e.indexOf("?")?e.split("?")[1]:"";if(""!==n){for(let e=(i=n.split("&")).length-1;0<=e;--e)i[e].split("=")[0]===t&&i.splice(e,1);i.length&&(s=s+"?"+i.join("&"))}return s}function fdsusIsValidDate(e){var t,s;return!(!e.match(/^\d{4}-\d{2}-\d{2}$/)||!(s=(t=new Date(e)).getTime())&&0!==s||t.toISOString().slice(0,10)!==e)}function fdsusSignupFormSubmit(e){document.getElementById("fdsus-signup-form").submit()}jQuery(document).ready(function(t){t.extend({getUrlVars:function(){for(var e,t=[],s=window.location.href.split("#")[0].slice(window.location.href.indexOf("?")+1).split("&"),i=0;i<s.length;i++)e=s[i].split("="),t.push(e[0]),t[e[0]]=e[1];return t},getUrlVar:function(e){return t.getUrlVars()[e]}}),FDSUS.dlssus_validate_email.disable||t(".dls-sus-signup-form #signup_email").on("blur",function(e){let s='<div role="alertdialog" class="dlsntc-notice dlsntc-warn"><p class="dlsntc-message"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false" width="1em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><title>Warning</title><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66a3 3 0 0 0-.05-3.04zM12 17a1 1 0 1 1 1-1a1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></svg> ',i="</p></div>",n=t(".dls-sus-signup-form #dls-sus-mailcheck-suggestion");t(this).mailcheck({suggested:function(e,t){n.html(s+"Did you mean <b><i>"+t.full+"</b></i>?"+i)},empty:function(e){var t;n.html(""),t=document.getElementById("signup_email").value,/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())?n.html(""):n.html(s+"Please make sure your email is valid"+i)}})}),t(".dls-sus-signup-form input[type=date]").on("blur",function(e){t(".fdsus-date-check").remove(),t(this).val()&&!fdsusIsValidDate(t(this).val())&&t(this).after('<div role="alertdialog" class="dlsntc-notice dlsntc-warn fdsus-date-check"><p class="dlsntc-message"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" focusable="false" width="1em" height="1em" style="-ms-transform: rotate(360deg); -webkit-transform: rotate(360deg); transform: rotate(360deg);" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><title>Warning</title><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66a3 3 0 0 0-.05-3.04zM12 17a1 1 0 1 1 1-1a1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></svg> Please make sure date is in <strong>YYYY-MM-DD</strong> format</p></div>')})}),document.addEventListener("DOMContentLoaded",function(){let n=document.getElementById("fdsus-signup-form");if(null!==n){let i=!1;n.addEventListener("submit",e=>{let t=n.querySelector("[type=submit]");var s;i||(i=!0,t.disabled=!0,setTimeout(()=>{i=!1,t.disabled=!1},3e3)),"v2-checkbox"===FDSUS.dls_sus_recaptcha_version&&null!==(s=document.querySelector("#fdsus-signup-form #g-recaptcha-response"))&&""===s.value&&(e.preventDefault(),alert("Please check the reCAPTCHA to submit the form."))})}var t=window.location.toString();if(0<t.indexOf("?")){let e=t;(fdsusExistsInQueryString("action=removed",e)||fdsusExistsInQueryString("action=signup",e)||fdsusExistsInQueryString("action=updated",e))&&fdsusExistsInQueryString("status=success",e)&&(e=fdsusRemoveUrlParam("action",e),e=fdsusRemoveUrlParam("status",e)),e!==t&&window.history.replaceState({},document.title,e)}},!1); -
sign-up-sheets/trunk/js/src/main.js
r3233567 r3234219 37 37 // Standard general format check 38 38 function fdsusValidateEmail(email) { 39 if (email === '') return true;40 39 const re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; 41 40 return re.test(String(email).toLowerCase()); -
sign-up-sheets/trunk/languages/sign-up-sheets.pot
r3233567 r3234219 1 # Copyright (C) 202 5Fetch Designs1 # Copyright (C) 2024 Fetch Designs 2 2 # This file is distributed under the GPL2. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Sign-up Sheets 2. 3.0\n"5 "Project-Id-Version: Sign-up Sheets 2.2.14\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sign-up-sheets\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 5-02-02T21:36:59+00:00\n"12 "POT-Creation-Date: 2024-10-08T02:01:29+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 "X-Generator: WP-CLI 2. 11.0\n"15 "X-Domain: sign-up-sheets\n"14 "X-Generator: WP-CLI 2.6.0\n" 15 "X-Domain: fdsus\n" 16 16 17 17 #. Plugin Name of the plugin 18 #: sign-up-sheets.php19 18 #: controller/admin/help.php:64 20 19 #: controller/admin/settings.php:71 21 20 #: controller/admin/site-health.php:50 22 #: model/sheet-base.php:21 121 #: model/sheet-base.php:210 23 22 msgid "Sign-up Sheets" 24 23 msgstr "" 25 24 26 25 #. Plugin URI of the plugin 27 #: sign-up-sheets.php28 26 msgid "https://www.fetchdesigns.com/sign-up-sheets-wordpress-plugin/" 29 27 msgstr "" 30 28 31 29 #. Description of the plugin 32 #: sign-up-sheets.php33 30 msgid "An online sign-up sheet manager where your users/volunteers can sign up for tasks" 34 31 msgstr "" 35 32 36 33 #. Author of the plugin 37 #: sign-up-sheets.php38 34 msgid "Fetch Designs" 39 35 msgstr "" 40 36 41 37 #. Author URI of the plugin 42 #: sign-up-sheets.php43 38 msgid "https://www.fetchdesigns.com/" 44 39 msgstr "" … … 83 78 msgstr "" 84 79 85 #: controller/admin.php:29 880 #: controller/admin.php:294 86 81 msgid "ID" 87 82 msgstr "" 88 83 89 #: controller/admin.php:30 784 #: controller/admin.php:303 90 85 #: controller/admin/manage-signups.php:38 91 86 #: controller/admin/manage-signups.php:39 … … 95 90 msgstr "" 96 91 97 #: controller/admin.php:32 692 #: controller/admin.php:322 98 93 msgid "Copy" 99 94 msgstr "" 100 95 101 #: controller/admin.php:37 696 #: controller/admin.php:372 102 97 msgid "Made by" 103 98 msgstr "" 104 99 100 #: controller/admin.php:375 101 msgid "Get Pro" 102 msgstr "" 103 105 104 #: controller/admin.php:379 106 msgid "Get Pro"107 msgstr ""108 109 #: controller/admin.php:383110 105 msgid "Need help? Get Support »" 111 106 msgstr "" 112 107 113 #: controller/admin.php: 402108 #: controller/admin.php:398 114 109 #: controller/admin/settings.php:52 115 110 #: controller/admin/settings.php:73 … … 150 145 151 146 #: controller/admin/edit-signup-page.php:89 152 #: controller/task-table.php:5 32147 #: controller/task-table.php:516 153 148 msgid "Add Sign-up" 154 149 msgstr "" … … 165 160 #: controller/admin/manage-signups.php:78 166 161 #: controller/mail.php:174 167 #: controller/sheet.php:34 5162 #: controller/sheet.php:341 168 163 #: model/meta-boxes.php:42 169 164 #: theme-files/fdsus/sheet-list.php:35 … … 179 174 180 175 #: controller/admin/edit-signup-page.php:143 181 #: model/task-base.php:9 2176 #: model/task-base.php:94 182 177 msgid "Task" 183 178 msgstr "" … … 273 268 #: controller/privacy.php:23 274 269 #: controller/scode/user-sign-ups.php:143 275 #: controller/task-table.php: 204276 #: model/signup.php:5 29277 #: theme-files/fdsus/sign-up-form.php:8 7270 #: controller/task-table.php:190 271 #: model/signup.php:530 272 #: theme-files/fdsus/sign-up-form.php:85 278 273 msgid "Address" 279 274 msgstr "" … … 281 276 #: controller/admin/export.php:303 282 277 #: controller/privacy.php:24 283 #: controller/task-table.php: 205284 #: theme-files/fdsus/sign-up-form.php:9 9278 #: controller/task-table.php:191 279 #: theme-files/fdsus/sign-up-form.php:97 285 280 msgid "City" 286 281 msgstr "" … … 288 283 #: controller/admin/export.php:304 289 284 #: controller/privacy.php:25 290 #: controller/task-table.php: 206291 #: theme-files/fdsus/sign-up-form.php:1 11285 #: controller/task-table.php:192 286 #: theme-files/fdsus/sign-up-form.php:109 292 287 msgid "State" 293 288 msgstr "" … … 295 290 #: controller/admin/export.php:305 296 291 #: controller/privacy.php:26 297 #: controller/task-table.php: 207298 #: theme-files/fdsus/sign-up-form.php:12 8292 #: controller/task-table.php:193 293 #: theme-files/fdsus/sign-up-form.php:126 299 294 msgid "Zip" 300 295 msgstr "" … … 372 367 373 368 #: controller/admin/help.php:187 374 #: model/settings-meta-boxes.php:39 6375 #: model/settings-meta-boxes.php:43 7376 #: model/settings-meta-boxes.php:5 15369 #: model/settings-meta-boxes.php:390 370 #: model/settings-meta-boxes.php:431 371 #: model/settings-meta-boxes.php:509 377 372 msgid "Message" 378 373 msgstr "" … … 413 408 #: controller/admin/manage-signups.php:87 414 409 #: controller/privacy.php:96 415 #: model/signup.php:10 3410 #: model/signup.php:105 416 411 msgid "Sign-ups" 417 412 msgstr "" … … 503 498 msgstr "" 504 499 505 #: controller/captcha.php:65 506 msgid "Math Question" 507 msgstr "" 508 509 #: controller/captcha.php:97 500 #: controller/captcha.php:73 510 501 msgid "Please check that the reCAPTCHA field is valid." 511 502 msgstr "" 512 503 513 504 #. translators: %s is replaced with the users response to the simple captcha 514 #: controller/captcha.php: 107505 #: controller/captcha.php:83 515 506 msgid "Oh dear, 7 + 1 does not equal %s. Please try again." 516 507 msgstr "" … … 541 532 #: controller/migrate.php:645 542 533 #: model/meta-boxes.php:26 543 #: model/meta-boxes.php:16 9534 #: model/meta-boxes.php:162 544 535 msgid "Global" 545 536 msgstr "" 546 537 547 538 #: controller/migrate.php:646 548 #: model/meta-boxes.php:1 70539 #: model/meta-boxes.php:163 549 540 #: model/settings-meta-boxes.php:138 550 541 msgid "Disabled" … … 552 543 553 544 #: controller/migrate.php:647 554 #: model/meta-boxes.php:1 71545 #: model/meta-boxes.php:164 555 546 #: model/settings-meta-boxes.php:139 556 547 msgid "Enabled" … … 558 549 559 550 #: controller/migrate.php:648 560 #: model/meta-boxes.php:1 72551 #: model/meta-boxes.php:165 561 552 #: model/settings-meta-boxes.php:140 562 553 msgid "Semi-Compact" … … 564 555 565 556 #: controller/migrate.php:650 566 #: model/meta-boxes.php:1 74557 #: model/meta-boxes.php:167 567 558 #: model/settings-meta-boxes.php:136 568 559 msgid "Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming \"Front-end Display Names\" is not set to \"anonymous\"" … … 570 561 571 562 #: controller/migrate.php:689 572 #: model/meta-boxes.php:1 56573 #: model/settings-meta-boxes.php:48 9563 #: model/meta-boxes.php:149 564 #: model/settings-meta-boxes.php:483 574 565 msgid "Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use..." 575 566 msgstr "" 576 567 577 568 #: controller/migrate.php:689 578 #: model/meta-boxes.php:15 8569 #: model/meta-boxes.php:151 579 570 msgid "(If this is blank Global setting is used. Global setting in Settings > Sign-up Sheets.)" 580 571 msgstr "" … … 582 573 #: controller/migrate.php:697 583 574 #: controller/migrate.php:705 584 #: model/meta-boxes.php:21 9585 #: model/meta-boxes.php:22 8575 #: model/meta-boxes.php:212 576 #: model/meta-boxes.php:221 586 577 msgid "Global setting in Settings > Sign-up Sheets" 587 578 msgstr "" … … 602 593 603 594 #: controller/post-type-base.php:95 604 #: controller/task-table.php:4 36595 #: controller/task-table.php:420 605 596 #: lib/dls/meta-boxes/meta-boxes.php:775 606 597 msgid "Edit" … … 640 631 641 632 #: controller/privacy.php:20 642 #: model/signup.php:51 2633 #: model/signup.php:513 643 634 #: theme-files/fdsus/sign-up-form.php:33 644 635 msgid "First Name" … … 646 637 647 638 #: controller/privacy.php:21 648 #: model/signup.php:51 5639 #: model/signup.php:516 649 640 #: theme-files/fdsus/sign-up-form.php:43 650 641 msgid "Last Name" … … 653 644 #: controller/privacy.php:22 654 645 #: controller/scode/user-sign-ups.php:136 655 #: controller/task-table.php: 201656 #: model/signup.php:52 1657 #: theme-files/fdsus/sign-up-form.php:7 2646 #: controller/task-table.php:187 647 #: model/signup.php:522 648 #: theme-files/fdsus/sign-up-form.php:70 658 649 msgid "Phone" 659 650 msgstr "" … … 752 743 753 744 #. translators: %s is replaced with the task title 754 #: controller/sheet.php:42 4745 #: controller/sheet.php:420 755 746 msgid "You have been signed up for %s!" 756 747 msgstr "" 757 748 758 #: controller/task-table.php:1 94749 #: controller/task-table.php:182 759 750 msgid "Name" 760 751 msgstr "" 761 752 762 #: controller/task-table.php:1 98763 #: model/signup.php:51 8753 #: controller/task-table.php:185 754 #: model/signup.php:519 764 755 #: theme-files/fdsus/sign-up-form.php:54 765 756 msgid "E-mail" 766 757 msgstr "" 767 758 768 #: controller/task-table.php:2 28759 #: controller/task-table.php:214 769 760 msgid "Select all spots to Clear" 770 761 msgstr "" 771 762 772 #: controller/task-table.php:2 31763 #: controller/task-table.php:217 773 764 msgid "Clear Selected" 774 765 msgstr "" 775 766 776 #: controller/task-table.php:2 31767 #: controller/task-table.php:217 777 768 msgid "This will permanently remove all selected sign-ups for this sheet." 778 769 msgstr "" 779 770 780 771 #. translators: %d is replaced with the spot number 781 #: controller/task-table.php:3 77772 #: controller/task-table.php:363 782 773 msgid "#%d:" 783 774 msgstr "" 784 775 785 776 #. translators: %s is replaced with the index of the spot within the current task 786 #: controller/task-table.php:4 28777 #: controller/task-table.php:412 787 778 msgid "Select spot #%s to clear" 788 779 msgstr "" 789 780 790 #: controller/task-table.php:4 43781 #: controller/task-table.php:427 791 782 msgid "Additional Details" 792 783 msgstr "" 793 784 794 #: controller/task-table.php:4 50785 #: controller/task-table.php:434 795 786 msgid "Added" 796 787 msgstr "" 797 788 798 #: controller/task-table.php:4 51789 #: controller/task-table.php:435 799 790 msgid "Updated" 800 791 msgstr "" 801 792 802 #: controller/task-table.php:4 52793 #: controller/task-table.php:436 803 794 msgid "Linked user" 804 795 msgstr "" 805 796 806 #: controller/task-table.php:4 57797 #: controller/task-table.php:441 807 798 msgid "Clear Spot Now" 808 799 msgstr "" 809 800 810 #: controller/task-table.php:4 58801 #: controller/task-table.php:442 811 802 msgid "This will permanently remove this sign-up." 812 803 msgstr "" 813 804 814 #: controller/task-table.php:5 28805 #: controller/task-table.php:512 815 806 msgid "(empty)" 816 807 msgstr "" 817 808 818 #: controller/task-table.php:5 38809 #: controller/task-table.php:522 819 810 msgid " - sign-ups closed" 820 811 msgstr "" 821 812 822 #: controller/task-table.php:5 77813 #: controller/task-table.php:554 823 814 msgid "No tasks were found." 824 815 msgstr "" … … 849 840 msgstr "" 850 841 842 #. translators: %1$s is replaced with the pro plugin version number, %2$s is replaced with the free plugin version number 843 #: main.php:272 844 msgid "The <strong>Sign-up Sheets Pro</strong> plugin version (%1$s) does not match the version number of the main <strong>Sign-up Sheets</strong> plugin (%2$s). Please update so both version numbers match to prevent possible conflicts." 845 msgstr "" 846 851 847 #: model/base.php:305 852 848 msgid "Sunday" … … 886 882 887 883 #: model/meta-boxes.php:53 888 #: model/task-base.php:9 2884 #: model/task-base.php:94 889 885 msgid "Tasks" 890 886 msgstr "" … … 910 906 911 907 #: model/meta-boxes.php:115 912 #: model/settings-meta-boxes.php:265913 msgid "Set Email as Optional"914 msgstr ""915 916 #: model/meta-boxes.php:122917 908 #: model/settings-meta-boxes.php:271 918 909 msgid "Hide Phone Field" 919 910 msgstr "" 920 911 921 #: model/meta-boxes.php:12 9912 #: model/meta-boxes.php:122 922 913 #: model/settings-meta-boxes.php:277 923 914 msgid "Hide Address Fields" 924 915 msgstr "" 925 916 917 #: model/meta-boxes.php:129 918 #: model/settings-meta-boxes.php:265 919 msgid "Hide Email Field" 920 msgstr "" 921 926 922 #: model/meta-boxes.php:136 927 #: model/settings-meta-boxes.php:283928 msgid "Hide Email Field"929 msgstr ""930 931 #: model/meta-boxes.php:143932 923 msgid "Sheet Specific BCC" 933 924 msgstr "" 934 925 935 #: model/meta-boxes.php:1 46926 #: model/meta-boxes.php:139 936 927 msgid "Comma-separated list of emails to be copied on confirmations/removals" 937 928 msgstr "" 938 929 939 #: model/meta-boxes.php:1 52940 #: model/settings-meta-boxes.php:48 6930 #: model/meta-boxes.php:145 931 #: model/settings-meta-boxes.php:480 941 932 msgid "Reminder Schedule" 942 933 msgstr "" 943 934 944 #: model/meta-boxes.php:1 65935 #: model/meta-boxes.php:158 945 936 #: model/settings-meta-boxes.php:133 946 937 msgid "Compact Sign-up Mode" 947 938 msgstr "" 948 939 949 #: model/meta-boxes.php:1 80940 #: model/meta-boxes.php:173 950 941 #: model/settings-meta-boxes.php:162 951 942 msgid "Enable Task Checkboxes" 952 943 msgstr "" 953 944 954 #: model/meta-boxes.php:18 8945 #: model/meta-boxes.php:181 955 946 #: model/settings-meta-boxes.php:146 956 947 msgid "Enable task sign-up limit" 957 948 msgstr "" 958 949 959 #: model/meta-boxes.php:1 96950 #: model/meta-boxes.php:189 960 951 #: model/settings-meta-boxes.php:154 961 952 msgid "Enable contiguous task sign-up limit" 962 953 msgstr "" 963 954 964 #: model/meta-boxes.php: 204955 #: model/meta-boxes.php:197 965 956 msgid "Auto-clear Schedule" 966 957 msgstr "" 967 958 959 #: model/meta-boxes.php:202 960 msgid "Auto-clear is not currently allowed globally under \"Sign-up Sheets > Settings\". Enable it for this setting to take effect." 961 msgstr "" 962 968 963 #: model/meta-boxes.php:209 969 msgid "Auto-clear is not currently allowed globally under \"Sign-up Sheets > Settings\". Enable it for this setting to take effect."970 msgstr ""971 972 #: model/meta-boxes.php:216973 964 msgid "Confirmation Email Message" 974 965 msgstr "" 975 966 976 #: model/meta-boxes.php:2 25967 #: model/meta-boxes.php:218 977 968 msgid "Reminder Email Message" 978 969 msgstr "" 979 970 980 971 #: model/settings-meta-boxes.php:84 981 #: model/sheet-base.php:21 1972 #: model/sheet-base.php:210 982 973 msgid "Sign-up Sheet" 983 974 msgstr "" … … 1081 1072 #. translators: %s is replaced with the timestamp of the next cron scheduled 1082 1073 #: model/settings-meta-boxes.php:207 1083 #: model/settings-meta-boxes.php:4 731074 #: model/settings-meta-boxes.php:467 1084 1075 msgid "Next scheduled check: %s" 1085 1076 msgstr "" … … 1094 1085 1095 1086 #: model/settings-meta-boxes.php:214 1096 #: model/settings-meta-boxes.php:47 81087 #: model/settings-meta-boxes.php:472 1097 1088 msgid "WordPress Cron" 1098 1089 msgstr "" 1099 1090 1100 1091 #: model/settings-meta-boxes.php:216 1101 #: model/settings-meta-boxes.php:4 801092 #: model/settings-meta-boxes.php:474 1102 1093 msgid "If you just enabled/disabled this, you may need to refresh this page to see the updated \"Next scheduled check\"" 1103 1094 msgstr "" … … 1115 1106 msgstr "" 1116 1107 1117 #: model/settings-meta-boxes.php:28 91108 #: model/settings-meta-boxes.php:283 1118 1109 msgid "Disable User Auto-populate" 1119 1110 msgstr "" 1120 1111 1121 #: model/settings-meta-boxes.php:2 921112 #: model/settings-meta-boxes.php:286 1122 1113 msgid "By default, for users that are logged in, their name and email auto-populates on sign-up form when available. This option disables that behavior." 1123 1114 msgstr "" 1124 1115 1125 #: model/settings-meta-boxes.php:29 61116 #: model/settings-meta-boxes.php:290 1126 1117 msgid "Disable Mail Check Validation" 1127 1118 msgstr "" 1128 1119 1129 #: model/settings-meta-boxes.php:29 91120 #: model/settings-meta-boxes.php:293 1130 1121 msgid "Validation includes a JS check for standard email formatting, possible incorrect domains with suggestions as well as an MX record check on the domain to confirm it is setup to receive emails" 1131 1122 msgstr "" 1132 1123 1133 #: model/settings-meta-boxes.php: 3031124 #: model/settings-meta-boxes.php:297 1134 1125 msgid "Disable sign-up link auto-scroll to sheet (hash in sign-up link)" 1135 1126 msgstr "" 1136 1127 1137 #: model/settings-meta-boxes.php:30 61128 #: model/settings-meta-boxes.php:300 1138 1129 msgid "The hash on the sign-up link is useful especially on longer pages where sheets are embedded further down the page or where the sheet description is longer. When the feature is enabled and the user clicks the sign-up link, it includes a `#` hash to and ID pointing to that same location where the sign-up form will appear on the next page." 1139 1130 msgstr "" 1140 1131 1141 #: model/settings-meta-boxes.php:3 101132 #: model/settings-meta-boxes.php:304 1142 1133 msgid "Sign-up Success Message Receipt" 1143 1134 msgstr "" 1144 1135 1145 #: model/settings-meta-boxes.php:3 131136 #: model/settings-meta-boxes.php:307 1146 1137 msgid "Displays a receipt below the sign-up success message which includes a copy of all the task details and all fields they entered in the sign-up form. Default: `unchecked`" 1147 1138 msgstr "" 1148 1139 1149 #: model/settings-meta-boxes.php:31 81140 #: model/settings-meta-boxes.php:312 1150 1141 msgid "Custom Sign-up Fields" 1151 1142 msgstr "" 1152 1143 1153 #: model/settings-meta-boxes.php:33 91144 #: model/settings-meta-boxes.php:333 1154 1145 msgid "Captcha and Spam Prevention" 1155 1146 msgstr "" 1156 1147 1148 #: model/settings-meta-boxes.php:337 1149 msgid "Disable honeypot" 1150 msgstr "" 1151 1152 #: model/settings-meta-boxes.php:340 1153 msgid "A honeypot is a less-invasive technique to reduce SPAM submission using a hidden field on the sign-up form. It can be used in place of or alongside the captcha." 1154 msgstr "" 1155 1157 1156 #: model/settings-meta-boxes.php:343 1158 msgid "Disable honeypot" 1157 msgid "Disable all Captcha" 1158 msgstr "" 1159 1160 #: model/settings-meta-boxes.php:345 1161 msgid "Will disable all captcha even if you have reCAPTCHA enabled below" 1159 1162 msgstr "" 1160 1163 1161 1164 #: model/settings-meta-boxes.php:346 1162 msgid "A honeypot is a less-invasive technique to reduce SPAM submission using a hidden field on the sign-up form. It can be used in place of or alongside the captcha."1163 msgstr ""1164 1165 #: model/settings-meta-boxes.php:3491166 msgid "Disable all Captcha"1167 msgstr ""1168 1169 #: model/settings-meta-boxes.php:3511170 msgid "Will disable all captcha even if you have reCAPTCHA enabled below"1171 msgstr ""1172 1173 #: model/settings-meta-boxes.php:3521174 1165 msgid "Will replace the default simple captcha validation" 1175 1166 msgstr "" 1176 1167 1177 #: model/settings-meta-boxes.php:3 531178 #: model/settings-meta-boxes.php:3 541168 #: model/settings-meta-boxes.php:347 1169 #: model/settings-meta-boxes.php:348 1179 1170 msgid "From your account at https://www.google.com/recaptcha/" 1180 1171 msgstr "" 1181 1172 1182 #: model/settings-meta-boxes.php:3 611173 #: model/settings-meta-boxes.php:355 1183 1174 msgid "Confirmation E-mail" 1184 1175 msgstr "" 1185 1176 1186 #: model/settings-meta-boxes.php:3 651187 #: model/settings-meta-boxes.php:42 91177 #: model/settings-meta-boxes.php:359 1178 #: model/settings-meta-boxes.php:423 1188 1179 msgid "Enable" 1189 1180 msgstr "" 1190 1181 1191 #: model/settings-meta-boxes.php:3 731192 #: model/settings-meta-boxes.php:4 931193 #: model/settings-meta-boxes.php:5 521182 #: model/settings-meta-boxes.php:367 1183 #: model/settings-meta-boxes.php:487 1184 #: model/settings-meta-boxes.php:546 1194 1185 msgid "Subject" 1195 1186 msgstr "" 1196 1187 1197 1188 #. translators: %s is replaced with the default subject 1198 #: model/settings-meta-boxes.php:37 71199 #: model/settings-meta-boxes.php:49 71200 #: model/settings-meta-boxes.php:55 61189 #: model/settings-meta-boxes.php:371 1190 #: model/settings-meta-boxes.php:491 1191 #: model/settings-meta-boxes.php:550 1201 1192 msgid "If blank, defaults to... \"%s\"" 1202 1193 msgstr "" 1203 1194 1204 #: model/settings-meta-boxes.php:3 811205 #: model/settings-meta-boxes.php: 5011206 #: model/settings-meta-boxes.php:5 601195 #: model/settings-meta-boxes.php:375 1196 #: model/settings-meta-boxes.php:495 1197 #: model/settings-meta-boxes.php:554 1207 1198 msgid "From E-mail Address" 1208 1199 msgstr "" 1209 1200 1210 #: model/settings-meta-boxes.php:3 841211 #: model/settings-meta-boxes.php: 5041212 #: model/settings-meta-boxes.php:5 631201 #: model/settings-meta-boxes.php:378 1202 #: model/settings-meta-boxes.php:498 1203 #: model/settings-meta-boxes.php:557 1213 1204 msgid "If blank, defaults to WordPress email on file under Settings > General" 1214 1205 msgstr "" 1215 1206 1216 #: model/settings-meta-boxes.php:38 81217 #: model/settings-meta-boxes.php:50 81207 #: model/settings-meta-boxes.php:382 1208 #: model/settings-meta-boxes.php:502 1218 1209 msgid "BCC" 1219 1210 msgstr "" 1220 1211 1221 #: model/settings-meta-boxes.php:3 911222 #: model/settings-meta-boxes.php:5 111212 #: model/settings-meta-boxes.php:385 1213 #: model/settings-meta-boxes.php:505 1223 1214 msgid "Comma separate for multiple email addresses" 1215 msgstr "" 1216 1217 #: model/settings-meta-boxes.php:402 1218 #: model/settings-meta-boxes.php:442 1219 #: model/settings-meta-boxes.php:520 1220 msgid "Variables that can be used in template..." 1221 msgstr "" 1222 1223 #: model/settings-meta-boxes.php:403 1224 #: model/settings-meta-boxes.php:443 1225 #: model/settings-meta-boxes.php:521 1226 msgid "Multi-line list of sign-up details such as date, sheet title, task title" 1227 msgstr "" 1228 1229 #: model/settings-meta-boxes.php:404 1230 #: model/settings-meta-boxes.php:444 1231 #: model/settings-meta-boxes.php:522 1232 msgid "First name of user that signed up" 1233 msgstr "" 1234 1235 #: model/settings-meta-boxes.php:405 1236 #: model/settings-meta-boxes.php:445 1237 #: model/settings-meta-boxes.php:523 1238 msgid "Last name of user that signed up" 1239 msgstr "" 1240 1241 #: model/settings-meta-boxes.php:406 1242 #: model/settings-meta-boxes.php:446 1243 #: model/settings-meta-boxes.php:524 1244 msgid "Email of user that signed up" 1245 msgstr "" 1246 1247 #: model/settings-meta-boxes.php:407 1248 #: model/settings-meta-boxes.php:447 1249 #: model/settings-meta-boxes.php:525 1250 msgid "Name of site as defined in Settings > General > Site Title" 1224 1251 msgstr "" 1225 1252 … … 1227 1254 #: model/settings-meta-boxes.php:448 1228 1255 #: model/settings-meta-boxes.php:526 1229 msgid " Variables that can be used in template..."1256 msgid "URL of site" 1230 1257 msgstr "" 1231 1258 1232 1259 #: model/settings-meta-boxes.php:409 1233 #: model/settings-meta-boxes.php:4491234 #: model/settings-meta-boxes.php:5271235 msgid "Multi-line list of sign-up details such as date, sheet title, task title"1236 msgstr ""1237 1238 #: model/settings-meta-boxes.php:4101239 #: model/settings-meta-boxes.php:4501240 #: model/settings-meta-boxes.php:5281241 msgid "First name of user that signed up"1242 msgstr ""1243 1244 #: model/settings-meta-boxes.php:4111245 #: model/settings-meta-boxes.php:4511246 #: model/settings-meta-boxes.php:5291247 msgid "Last name of user that signed up"1248 msgstr ""1249 1250 #: model/settings-meta-boxes.php:4121251 #: model/settings-meta-boxes.php:4521252 #: model/settings-meta-boxes.php:5301253 msgid "Email of user that signed up"1254 msgstr ""1255 1256 #: model/settings-meta-boxes.php:4131257 #: model/settings-meta-boxes.php:4531258 #: model/settings-meta-boxes.php:5311259 msgid "Name of site as defined in Settings > General > Site Title"1260 msgstr ""1261 1262 #: model/settings-meta-boxes.php:4141263 #: model/settings-meta-boxes.php:4541264 #: model/settings-meta-boxes.php:5321265 msgid "URL of site"1266 msgstr ""1267 1268 #: model/settings-meta-boxes.php:4151269 1260 msgid "Link to remove sign-up" 1270 1261 msgstr "" 1271 1262 1272 #: model/settings-meta-boxes.php:4 251263 #: model/settings-meta-boxes.php:419 1273 1264 msgid "Removal Confirmation E-mail" 1274 1265 msgstr "" 1275 1266 1276 #: model/settings-meta-boxes.php:4 641267 #: model/settings-meta-boxes.php:458 1277 1268 msgid "Reminder E-mail" 1278 1269 msgstr "" 1279 1270 1280 #: model/settings-meta-boxes.php:4 641271 #: model/settings-meta-boxes.php:458 1281 1272 msgid "Pro Feature" 1282 1273 msgstr "" 1283 1274 1284 #: model/settings-meta-boxes.php:4 641275 #: model/settings-meta-boxes.php:458 1285 1276 msgid "Pro" 1286 1277 msgstr "" 1287 1278 1288 #: model/settings-meta-boxes.php:46 81279 #: model/settings-meta-boxes.php:462 1289 1280 msgid "Enable Reminders" 1290 1281 msgstr "" 1291 1282 1292 #: model/settings-meta-boxes.php:47 71283 #: model/settings-meta-boxes.php:471 1293 1284 msgid "Your site will check hourly to see if there are reminders that need to be sent using the" 1294 1285 msgstr "" 1295 1286 1296 #: model/settings-meta-boxes.php:48 91287 #: model/settings-meta-boxes.php:483 1297 1288 msgid "This field is required." 1298 1289 msgstr "" 1299 1290 1300 #: model/settings-meta-boxes.php:5 411291 #: model/settings-meta-boxes.php:535 1301 1292 msgid "Status E-mail" 1302 1293 msgstr "" 1303 1294 1304 #: model/settings-meta-boxes.php:5 451295 #: model/settings-meta-boxes.php:539 1305 1296 msgid "Enable Status E-mail" 1306 1297 msgstr "" 1307 1298 1308 #: model/settings-meta-boxes.php:54 81299 #: model/settings-meta-boxes.php:542 1309 1300 msgid "Shows all signups for a sheet. Sent when a user adds or removes a signup from the frontend." 1310 1301 msgstr "" 1311 1302 1312 #: model/settings-meta-boxes.php:56 71303 #: model/settings-meta-boxes.php:561 1313 1304 msgid "Send to main admin emails" 1314 1305 msgstr "" 1315 1306 1316 #: model/settings-meta-boxes.php:5 701307 #: model/settings-meta-boxes.php:564 1317 1308 msgid "E-mail address specified under Settings > General" 1318 1309 msgstr "" 1319 1310 1320 #: model/settings-meta-boxes.php:5 741311 #: model/settings-meta-boxes.php:568 1321 1312 msgid "Send to \"Sheet BCC\" recipients" 1322 1313 msgstr "" 1323 1314 1324 #: model/settings-meta-boxes.php:57 71315 #: model/settings-meta-boxes.php:571 1325 1316 msgid "These addresses will be added as a recipient only for sheets on which they are assigned." 1326 1317 msgstr "" 1327 1318 1328 #: model/settings-meta-boxes.php:5 851319 #: model/settings-meta-boxes.php:579 1329 1320 msgid "Advanced" 1330 1321 msgstr "" 1331 1322 1332 #: model/settings-meta-boxes.php:5 941323 #: model/settings-meta-boxes.php:588 1333 1324 msgid "Reset All Settings" 1334 1325 msgstr "" 1335 1326 1327 #: model/settings-meta-boxes.php:591 1336 1328 #: model/settings-meta-boxes.php:597 1337 #: model/settings-meta-boxes.php:6031338 1329 msgid "This will erase any custom configurations you have made on this page and reset them back to the defaults. This action cannot be undone." 1339 1330 msgstr "" 1340 1331 1341 #: model/settings-meta-boxes.php: 6021332 #: model/settings-meta-boxes.php:596 1342 1333 msgid "Are you sure?" 1343 1334 msgstr "" 1344 1335 1345 #: model/settings-meta-boxes.php:6 121336 #: model/settings-meta-boxes.php:606 1346 1337 msgid "Text Overrides" 1347 1338 msgstr "" … … 1387 1378 msgstr "" 1388 1379 1389 #: model/sheet-base.php:28 11380 #: model/sheet-base.php:280 1390 1381 msgid " (Copy)" 1391 1382 msgstr "" 1392 1383 1393 #: model/signup.php:10 31384 #: model/signup.php:105 1394 1385 msgid "Sign-up" 1395 1386 msgstr "" 1396 1387 1397 1388 #. translators: %1$s is replaced with task title and %2$s is replaced with optional detailed errors if enabled 1398 #: model/signup.php:1 481389 #: model/signup.php:150 1399 1390 msgid "Error adding signup for %1$s. All spots are filled. %2$s" 1400 1391 msgstr "" 1401 1392 1402 #: model/signup.php:18 31393 #: model/signup.php:184 1403 1394 msgid "You have already signed up for this task. Do you want to sign up again?" 1404 1395 msgstr "" 1405 1396 1406 #: model/signup.php:20 81397 #: model/signup.php:209 1407 1398 msgid "Yes, sign me up" 1408 1399 msgstr "" 1409 1400 1410 #: model/signup.php:2 091401 #: model/signup.php:210 1411 1402 msgid "No, thanks" 1412 1403 msgstr "" 1413 1404 1414 1405 #. translators: %s is replaced with the sign-up email 1415 #: model/signup.php:23 61416 #: model/signup.php:34 31406 #: model/signup.php:237 1407 #: model/signup.php:344 1417 1408 msgid "Error adding the sign-up for \"%s\"" 1418 1409 msgstr "" 1419 1410 1411 #: model/signup.php:546 1412 msgid "Math Question" 1413 msgstr "" 1414 1420 1415 #. translators: %s is replaced with the task title 1421 #: model/task-base.php:15 51416 #: model/task-base.php:157 1422 1417 msgid "Error adding the task \"%s\"" 1423 1418 msgstr "" 1424 1419 1425 #: model/task-base.php:19 01420 #: model/task-base.php:192 1426 1421 msgid "Error adding additional fields to task." 1427 1422 msgstr "" 1428 1423 1429 1424 #. translators: %s is replaced with the task title 1430 #: model/task-base.php:2 391425 #: model/task-base.php:241 1431 1426 msgid "Error updating the task \"%s\"" 1432 1427 msgstr "" 1433 1428 1434 #: model/task-base.php:28 31429 #: model/task-base.php:285 1435 1430 msgid "Error deleting task." 1436 1431 msgstr "" 1437 1432 1438 #: model/task-base.php:49 51433 #: model/task-base.php:497 1439 1434 msgid "Sign up »" 1440 1435 msgstr "" … … 1493 1488 msgstr "" 1494 1489 1495 #: theme-files/fdsus/sign-up-form.php:14 71490 #: theme-files/fdsus/sign-up-form.php:145 1496 1491 msgid "required" 1497 1492 msgstr "" 1498 1493 1494 #: theme-files/fdsus/sign-up-form.php:161 1495 msgid "or" 1496 msgstr "" 1497 1499 1498 #: theme-files/fdsus/sign-up-form.php:163 1500 msgid "or"1501 msgstr ""1502 1503 #: theme-files/fdsus/sign-up-form.php:1651504 1499 msgid "« go back to the Sign-Up Sheet" 1505 1500 msgstr "" … … 1517 1512 msgstr "" 1518 1513 1514 #: build/block.json 1519 1515 #: src/block.json 1520 1516 msgctxt "block title" … … 1522 1518 msgstr "" 1523 1519 1520 #: build/block.json 1524 1521 #: src/block.json 1525 1522 msgctxt "block description" -
sign-up-sheets/trunk/lib/dls/meta-boxes/assets/admin.js
r3233567 r3234219 155 155 }); 156 156 157 $('.dlsmb-field-type-repeater T BODY').sortable({157 $('.dlsmb-field-type-repeater TABLE').sortable({ 158 158 distance: 5, 159 159 opacity: 0.6, 160 160 cursor: 'move', 161 handle: '.dlsmb-sort',162 items: 't r'161 toleranceElement: '.dlsmb-sort', 162 items: 'tbody > tr' 163 163 }); 164 164 -
sign-up-sheets/trunk/lib/dls/meta-boxes/assets/style.css
r3233567 r3234219 183 183 } 184 184 185 .dlsmb-field-type-repeater TBODY .dlsmb-sort:hover {185 .dlsmb-field-type-repeater TBODY TR:hover { 186 186 cursor: move; 187 187 } -
sign-up-sheets/trunk/lib/dls/meta-boxes/meta-boxes.php
r3233567 r3234219 259 259 </li> 260 260 <li class="hide-if-no-js"> 261 <a href="#<?php echo esc_url($taxonomy); ?>-pop" tabindex="3"><?php esc_html_e('Most Used', ' sign-up-sheets'); ?></a>261 <a href="#<?php echo esc_url($taxonomy); ?>-pop" tabindex="3"><?php esc_html_e('Most Used', 'fdsus'); ?></a> 262 262 </li> 263 263 </ul> … … 722 722 case 'checkbox': 723 723 $checked = ($value === 'true') ? ' checked="checked"' : null; 724 $boxLabel = empty($field['box_label_override']) ? esc_html__('True', ' sign-up-sheets') : $field['box_label_override'];724 $boxLabel = empty($field['box_label_override']) ? esc_html__('True', 'fdsus') : $field['box_label_override']; 725 725 echo '<input type="checkbox" name="' . $field_name . '" value="true" class="dlsmb-field-element" id="' . $id . '"' . $checked . '> <label for="' . $id . '" class="dlsmb-checkbox">' . $boxLabel . '</label><br />'; 726 726 break; … … 773 773 <div class="dlsmb-image-hover"> 774 774 <ul> 775 <li class="dlsmb-image-hover-icon dlsmb-image-hover-edit"><a href="#" title="' . esc_html__('Edit', ' sign-up-sheets') . '"></a></li>776 <li class="dlsmb-image-hover-icon dlsmb-image-hover-remove"><a href="#" title="' . esc_html__('Remove', ' sign-up-sheets') . '"></a></li>775 <li class="dlsmb-image-hover-icon dlsmb-image-hover-edit"><a href="#" title="' . esc_html__('Edit', 'fdsus') . '"></a></li> 776 <li class="dlsmb-image-hover-icon dlsmb-image-hover-remove"><a href="#" title="' . esc_html__('Remove', 'fdsus') . '"></a></li> 777 777 </ul> 778 778 </div> … … 924 924 if (empty($field['map_api_key'])) { 925 925 $error_class = 'map-not-loaded'; 926 $msg = '<p>' .esc_html__('Map not loaded. Check your api key.', ' sign-up-sheets') . '</p>';926 $msg = '<p>' .esc_html__('Map not loaded. Check your api key.', 'fdsus') . '</p>'; 927 927 } else { 928 928 $error_class = ''; … … 961 961 $actions = array( 962 962 'add' => array( 963 'title' => esc_html__('Add Row', ' sign-up-sheets'),963 'title' => esc_html__('Add Row', 'fdsus'), 964 964 'icon' => 'dashicons dashicons-plus-alt', 965 965 ), 966 966 'remove' => array( 967 'title' => esc_html__('Delete Row', ' sign-up-sheets'),967 'title' => esc_html__('Delete Row', 'fdsus'), 968 968 'icon' => 'dashicons dashicons-trash', 969 969 ), -
sign-up-sheets/trunk/main.php
r3233567 r3234219 22 22 function fdsusAutoloader($className) 23 23 { 24 $classesDir = ''; 25 $classFile = ''; 26 27 if (0 === strpos($className, __NAMESPACE__ . '\\') && !in_array($className, array(__NAMESPACE__ . '\Main'))) { 24 if (false !== strpos($className, __NAMESPACE__) && !in_array($className, array(__NAMESPACE__ . '\Main'))) { 28 25 $classesDir = realpath(plugin_dir_path(__FILE__)) . DIRECTORY_SEPARATOR; 29 26 $classFile = str_replace(__NAMESPACE__ . '/', '', str_replace('\\', '/', $className)) . '.php'; 30 27 $classFile = strtolower(preg_replace('/\B([A-Z])/', '-$1', $classFile)); // add hyphen before uppercase classes then convert to all lowercase 31 } elseif (0 === strpos($className, 'FDSUSPRO\\') && Id::isProActivating()) {32 // Autoload Pro if it's in the process of activating33 $classesDir = dirname(realpath(plugin_dir_path(__FILE__))) . DIRECTORY_SEPARATOR . dirname(Id::PRO_PLUGIN_BASENAME) . DIRECTORY_SEPARATOR;34 $classFile = str_replace('FDSUSPRO/', '', str_replace('\\', '/', $className)) . '.php';35 $classFile = strtolower(preg_replace('/\B([A-Z])/', '-$1', $classFile)); // add hyphen before uppercase classes then convert to all lowercase36 }37 38 if ($classesDir && $classFile) {39 if (!file_exists($classesDir . $classFile)) {40 error_log('Autoloader tried to load a file that did not exist... ' . $classesDir . $classFile);41 return;42 }43 28 require_once $classesDir . $classFile; 44 29 } … … 48 33 endif; 49 34 50 if (!function_exists('\FDSUS\fdsusIsFallbackPlugin')): 51 function fdsusIsFallbackPlugin() 52 { 53 return dirname(__FILE__) !== dirname(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . Id::FREE_PLUGIN_BASENAME); 54 } 55 endif; 56 57 Notice::instance(array('frontendFilter' => Id::PREFIX . '_notices')); 58 Settings::instance(); 59 60 if ( 61 ( 62 fdsusIsFallbackPlugin() 63 || (!empty(Id::version('free')) && !empty(Id::version('pro')) 64 && version_compare(Id::version('free'), Id::version('pro'), '==') 65 && !class_exists('\FDSUS\Main') 66 ) 67 ) 68 && !class_exists('\FDSUS\Main') 69 ): 35 if (!class_exists('\FDSUS\Main')): 70 36 71 37 class Main { … … 98 64 99 65 global $wpdb; 66 Notice::instance(array('frontendFilter' => Id::PREFIX . '_notices')); 67 Settings::instance(); 100 68 $this->wpdb = $wpdb; 101 69 $this->data = new Data(); … … 133 101 } 134 102 135 register_activation_hook( FDSUS_FREE_PLUGIN_BASENAME, array(&$this, 'activate'));136 register_deactivation_hook( FDSUS_FREE_PLUGIN_BASENAME, array(&$this, 'deactivate'));103 register_activation_hook(Settings::getCurrentPluginBasename(), array(&$this, 'activate')); 104 register_deactivation_hook(Settings::getCurrentPluginBasename(), array(&$this, 'deactivate')); 137 105 138 106 add_action('wp_enqueue_scripts', array(&$this, 'add_css_and_js_to_frontend')); 139 107 add_action('init', array(&$this, 'setDefaultOptions'), 0); 140 108 add_action('init', array(&$this, 'flushIfNeeded'), 0); 109 add_action('admin_init', array(&$this, 'dupPluginVersionCheck')); 141 110 142 111 add_filter('rewrite_rules_array', array(&$this, 'add_rewrite_rules')); … … 177 146 function add_css_and_js_to_frontend() 178 147 { 179 // Pull pro or free180 $pluginPath = WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . (Id::isPro() ? Id::PRO_PLUGIN_BASENAME181 : Id::FREE_PLUGIN_BASENAME);182 183 148 wp_enqueue_script('jquery'); 184 149 … … 186 151 wp_register_script( 187 152 Id::PREFIX . '-mailcheck', 188 plugins_url('js/mailcheck.min.js', __FILE__),153 esc_url(plugins_url('js/mailcheck.min.js', __FILE__)), 189 154 array(), 190 155 '1.1.2' … … 194 159 wp_register_style( 195 160 Id::PREFIX . '-style', 196 plugins_url('css/style.css', $pluginPath),161 plugins_url('css/style.css', __FILE__), 197 162 array(), 198 163 Id::version() … … 207 172 wp_register_script( 208 173 'dlssus-js', 209 plugins_url('js/dist/main.min.js', $pluginPath),174 plugins_url('js/dist/main.min.js', __FILE__), 210 175 $mainSusDeps, 211 176 Id::version() … … 273 238 274 239 /** 240 * Duplicate plugin version check 241 */ 242 public function dupPluginVersionCheck() 243 { 244 if ((Id::isPro() && is_plugin_active(Id::FREE_PLUGIN_BASENAME)) 245 || (!Id::isPro() && is_plugin_active(Id::PRO_PLUGIN_BASENAME)) 246 ) { 247 $pluginFileRequire = ABSPATH . 'wp-admin' . DIRECTORY_SEPARATOR . 'includes' . DIRECTORY_SEPARATOR 248 . 'plugin.php'; 249 if (!function_exists('get_plugins')) { 250 require_once($pluginFileRequire); 251 } 252 253 $plugins = get_plugins(); 254 255 if ($plugins[Id::FREE_PLUGIN_BASENAME]['Version'] 256 <> $plugins[Id::PRO_PLUGIN_BASENAME]['Version'] 257 ) { 258 if (!function_exists('get_plugins')) { 259 require_once($pluginFileRequire); 260 } 261 $plugins = get_plugins(); 262 $versionFree = $plugins[Id::FREE_PLUGIN_BASENAME]['Version']; 263 $versionPro = $plugins[Id::PRO_PLUGIN_BASENAME]['Version']; 264 $allowedHtml = array( 265 'strong' => array(), 266 ); 267 268 Notice::add( 269 'error', sprintf( 270 wp_kses( 271 /* translators: %1$s is replaced with the pro plugin version number, %2$s is replaced with the free plugin version number */ 272 __( 273 'The <strong>Sign-up Sheets Pro</strong> plugin version (%1$s) does not match the version number of the main <strong>Sign-up Sheets</strong> plugin (%2$s). Please update so both version numbers match to prevent possible conflicts.', 274 'fdsus' 275 ), 276 $allowedHtml 277 ), 278 esc_html($versionPro), esc_html($versionFree) 279 ) 280 ); 281 } 282 } 283 } 284 285 /** 275 286 * Check if we need to flush rewrites (like if slug was changed in Settings) 276 287 */ … … 318 329 319 330 // Crons 320 wp_clear_scheduled_hook( 'fdsus_dbupdate_action');331 wp_clear_scheduled_hook(Id::PREFIX . '_dbupdate_action'); 321 332 322 333 /** … … 330 341 $fdsus = new Main(); 331 342 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'template-tags.php'; 343 is_file(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'pro.php') and include 'pro.php'; 332 344 333 345 endif; -
sign-up-sheets/trunk/model/base.php
r3233567 r3234219 303 303 { 304 304 return array( 305 '0' => __('Sunday', ' sign-up-sheets'),306 '1' => __('Monday', ' sign-up-sheets'),307 '2' => __('Tuesday', ' sign-up-sheets'),308 '3' => __('Wednesday', ' sign-up-sheets'),309 '4' => __('Thursday', ' sign-up-sheets'),310 '5' => __('Friday', ' sign-up-sheets'),311 '6' => __('Saturday', ' sign-up-sheets'),305 '0' => __('Sunday', 'fdsus'), 306 '1' => __('Monday', 'fdsus'), 307 '2' => __('Tuesday', 'fdsus'), 308 '3' => __('Wednesday', 'fdsus'), 309 '4' => __('Thursday', 'fdsus'), 310 '5' => __('Friday', 'fdsus'), 311 '6' => __('Saturday', 'fdsus'), 312 312 ); 313 313 } -
sign-up-sheets/trunk/model/db-update.php
r3233567 r3234219 28 28 $this->data = new Data(); 29 29 30 add_action(' wp_loaded', array(&$this, 'check'));31 add_action( 'fdsus_dbupdate_action', array(&$this, 'asyncUpdate'));30 add_action('init', array(&$this, 'check')); 31 add_action(Id::PREFIX . '_dbupdate_action', array(&$this, 'asyncUpdate')); 32 32 } 33 33 … … 49 49 public function scheduleAsyncUpdate() 50 50 { 51 wp_schedule_single_event(time(), 'fdsus_dbupdate_action');51 wp_schedule_single_event(time(), Id::PREFIX . '_dbupdate_action'); 52 52 } 53 53 -
sign-up-sheets/trunk/model/meta-boxes.php
r3233567 r3234219 24 24 { 25 25 $trueFalse = array( 26 '' => esc_html__('Global', ' sign-up-sheets'),27 'true' => esc_html__('True', ' sign-up-sheets'),28 'false' => esc_html__('False', ' sign-up-sheets'),26 '' => esc_html__('Global', 'fdsus'), 27 'true' => esc_html__('True', 'fdsus'), 28 'false' => esc_html__('False', 'fdsus'), 29 29 ); 30 30 … … 34 34 'general' => array( 35 35 'id' => SheetModel::POST_TYPE . '-general-meta', 36 'title' => esc_html__('General', ' sign-up-sheets'),36 'title' => esc_html__('General', 'fdsus'), 37 37 'post_type' => SheetModel::POST_TYPE, 38 38 'context' => 'normal', … … 40 40 'fields' => array( 41 41 array( 42 'label' => esc_html__('Date', ' sign-up-sheets'),42 'label' => esc_html__('Date', 'fdsus'), 43 43 'key' => 'dlssus_date', 44 44 'type' => 'datepicker', … … 51 51 'tasks' => array( 52 52 'id' => SheetModel::POST_TYPE . '-tasks-meta', 53 'title' => esc_html__('Tasks', ' sign-up-sheets'),53 'title' => esc_html__('Tasks', 'fdsus'), 54 54 'post_type' => SheetModel::POST_TYPE, 55 55 'context' => 'normal', … … 62 62 'fields' => array( 63 63 array( 64 'label' => esc_html__('What', ' sign-up-sheets'),64 'label' => esc_html__('What', 'fdsus'), 65 65 'key' => 'title', 66 66 'type' => 'text', … … 68 68 ), 69 69 array( 70 'label' => esc_html__('# of Spots', ' sign-up-sheets'),70 'label' => esc_html__('# of Spots', 'fdsus'), 71 71 'key' => 'qty', 72 72 'type' => 'text', … … 99 99 'fields' => array( 100 100 array( 101 'label' => esc_html__('Set Phone as Optional', ' sign-up-sheets'),101 'label' => esc_html__('Set Phone as Optional', 'fdsus'), 102 102 'key' => Id::PREFIX . '_optional_phone', 103 103 'type' => 'select', … … 106 106 ), 107 107 array( 108 'label' => esc_html__('Set Address as Optional', ' sign-up-sheets'),108 'label' => esc_html__('Set Address as Optional', 'fdsus'), 109 109 'key' => Id::PREFIX . '_optional_address', 110 110 'type' => 'select', … … 113 113 ), 114 114 array( 115 'label' => esc_html__('Set Email as Optional', 'sign-up-sheets'), 116 'key' => 'fdsus_optional_email', 117 'type' => 'select', 118 'options' => $trueFalse, 119 'order' => 22, 120 ), 121 array( 122 'label' => esc_html__('Hide Phone Field', 'sign-up-sheets'), 115 'label' => esc_html__('Hide Phone Field', 'fdsus'), 123 116 'key' => Id::PREFIX . '_hide_phone', 124 117 'type' => 'select', … … 127 120 ), 128 121 array( 129 'label' => esc_html__('Hide Address Fields', ' sign-up-sheets'),122 'label' => esc_html__('Hide Address Fields', 'fdsus'), 130 123 'key' => Id::PREFIX . '_hide_address', 131 124 'type' => 'select', … … 134 127 ), 135 128 array( 136 'label' => esc_html__('Hide Email Field', ' sign-up-sheets'),129 'label' => esc_html__('Hide Email Field', 'fdsus'), 137 130 'key' => Id::PREFIX . '_hide_email', 138 131 'type' => 'select', … … 141 134 ), 142 135 array( 143 'label' => esc_html__('Sheet Specific BCC', ' sign-up-sheets'),136 'label' => esc_html__('Sheet Specific BCC', 'fdsus'), 144 137 'key' => Id::PREFIX . '_sheet_bcc', 145 138 'type' => 'text', 146 'append' => ' <em>' . esc_html__('Comma-separated list of emails to be copied on confirmations/removals', ' sign-up-sheets') . '</em>',139 'append' => ' <em>' . esc_html__('Comma-separated list of emails to be copied on confirmations/removals', 'fdsus') . '</em>', 147 140 'order' => 50, 148 141 'wrap_class' => 'dlsmb-field-col-12', … … 150 143 ), 151 144 array( 152 'label' => esc_html__('Reminder Schedule', ' sign-up-sheets'),145 'label' => esc_html__('Reminder Schedule', 'fdsus'), 153 146 'key' => Id::PREFIX . '_sheet_reminder_days', 154 147 'type' => 'text', 155 148 'append' => ' <br><em>' 156 . esc_html__('Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use...', ' sign-up-sheets')149 . esc_html__('Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use...', 'fdsus') 157 150 . ' <code>1</code> ' 158 . esc_html__('(If this is blank Global setting is used. Global setting in Settings > Sign-up Sheets.)', ' sign-up-sheets')151 . esc_html__('(If this is blank Global setting is used. Global setting in Settings > Sign-up Sheets.)', 'fdsus') 159 152 . '</em>', 160 153 'order' => 60, … … 163 156 ), 164 157 array( 165 'label' => esc_html__('Compact Sign-up Mode', ' sign-up-sheets'),158 'label' => esc_html__('Compact Sign-up Mode', 'fdsus'), 166 159 'key' => Id::PREFIX . '_compact_signups', 167 160 'type' => 'select', 168 161 'options' => array( 169 '' => esc_html__('Global', ' sign-up-sheets'),170 'false' => esc_html__('Disabled', ' sign-up-sheets'),171 'true' => esc_html__('Enabled', ' sign-up-sheets'),172 'semi' => esc_html__('Semi-Compact', ' sign-up-sheets'),162 '' => esc_html__('Global', 'fdsus'), 163 'false' => esc_html__('Disabled', 'fdsus'), 164 'true' => esc_html__('Enabled', 'fdsus'), 165 'semi' => esc_html__('Semi-Compact', 'fdsus'), 173 166 ), 174 'append' => ' <em>' . esc_html__('Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming "Front-end Display Names" is not set to "anonymous"', ' sign-up-sheets') . '</em>',167 'append' => ' <em>' . esc_html__('Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming "Front-end Display Names" is not set to "anonymous"', 'fdsus') . '</em>', 175 168 'order' => 70, 176 169 'wrap_class' => 'dlsmb-field-col-12', … … 178 171 ), 179 172 array( 180 'label' => esc_html__('Enable Task Checkboxes', ' sign-up-sheets'),173 'label' => esc_html__('Enable Task Checkboxes', 'fdsus'), 181 174 'key' => Id::PREFIX . '_use_task_checkboxes', 182 175 'type' => 'select', … … 186 179 ), 187 180 array( 188 'label' => esc_html__('Enable task sign-up limit', ' sign-up-sheets'),181 'label' => esc_html__('Enable task sign-up limit', 'fdsus'), 189 182 'key' => Id::PREFIX . '_task_signup_limit', 190 183 'type' => 'select', … … 194 187 ), 195 188 array( 196 'label' => esc_html__('Enable contiguous task sign-up limit', ' sign-up-sheets'),189 'label' => esc_html__('Enable contiguous task sign-up limit', 'fdsus'), 197 190 'key' => Id::PREFIX . '_contiguous_task_signup_limit', 198 191 'type' => 'select', … … 202 195 ), 203 196 array( 204 'label' => esc_html__('Auto-clear Schedule', ' sign-up-sheets'),197 'label' => esc_html__('Auto-clear Schedule', 'fdsus'), 205 198 'key' => 'fdsus_autoclear', 206 199 'type' => 'checkboxes', 207 200 'options' => $this->getDaysOfWeekArray(), 208 201 'append' => Id::isPro() && !Settings::isAutoclearSignupsAllowed() 209 ? ' <em>' . esc_html__('Auto-clear is not currently allowed globally under "Sign-up Sheets > Settings". Enable it for this setting to take effect.', ' sign-up-sheets') . '</em>'202 ? ' <em>' . esc_html__('Auto-clear is not currently allowed globally under "Sign-up Sheets > Settings". Enable it for this setting to take effect.', 'fdsus') . '</em>' 210 203 : '', 211 204 'order' => 110, … … 214 207 ), 215 208 array( 216 'label' => esc_html__('Confirmation Email Message', ' sign-up-sheets'),209 'label' => esc_html__('Confirmation Email Message', 'fdsus'), 217 210 'key' => Id::PREFIX . '_sheet_email_conf_message', 218 211 'type' => 'textarea', 219 'append' => ' <br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', ' sign-up-sheets') . '</em>',212 'append' => ' <br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', 'fdsus') . '</em>', 220 213 'order' => 130, 221 214 'wrap_class' => 'dlsmb-field-col-6', … … 223 216 ), 224 217 array( 225 'label' => esc_html__('Reminder Email Message', ' sign-up-sheets'),218 'label' => esc_html__('Reminder Email Message', 'fdsus'), 226 219 'key' => Id::PREFIX . '_sheet_email_message', 227 220 'type' => 'textarea', 228 'append' => ' <br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', ' sign-up-sheets') . '</em>',221 'append' => ' <br><em>' . esc_html__('Global setting in Settings > Sign-up Sheets', 'fdsus') . '</em>', 229 222 'order' => 140, 230 223 'wrap_class' => 'dlsmb-field-col-6', -
sign-up-sheets/trunk/model/settings-meta-boxes.php
r3233567 r3234219 28 28 * $options = array( 29 29 * 'id' => 'sheet', 30 * 'title' => esc_html__('Sign-up Sheet', ' sign-up-sheets'),30 * 'title' => esc_html__('Sign-up Sheet', 'fdsus'), 31 31 * 'order' => 10, 32 32 * 'options' => array( … … 55 55 56 56 // Sheets Listing 57 $sheetSelection = array('' => esc_html__('All', ' sign-up-sheets'));57 $sheetSelection = array('' => esc_html__('All', 'fdsus')); 58 58 if (Id::isPro()) { 59 59 $sheetCollection = new SheetCollectionModel(); … … 82 82 $options['sheet'] = array( 83 83 'id' => 'sheet', 84 'title' => esc_html__('Sign-up Sheet', ' sign-up-sheets'),84 'title' => esc_html__('Sign-up Sheet', 'fdsus'), 85 85 'order' => 10, 86 86 'options' => array( 87 87 array( 88 'label' => esc_html__('Sheet order on Front-end', ' sign-up-sheets'),88 'label' => esc_html__('Sheet order on Front-end', 'fdsus'), 89 89 'name' => 'dls_sus_sheet_order', 90 90 'type' => 'dropdown', … … 93 93 ), 94 94 array( 95 'label' => esc_html__('Show All Sign-up Data Fields on Front-end', ' sign-up-sheets'),95 'label' => esc_html__('Show All Sign-up Data Fields on Front-end', 'fdsus'), 96 96 'name' => 'dls_sus_display_all', 97 97 'type' => 'checkbox', 98 'note' => esc_html__('WARNING: Sign-up sheet table will appear much like the table when sign-ups are viewed via the admin. This option will potentially display personal user information on the frontend like email address and phone. This option is best used if you are using the [sign_up_sheet] short code within a password protected area. (This also overrides the "Front-end Display Names" option and displays all as full names.)', ' sign-up-sheets'),98 'note' => esc_html__('WARNING: Sign-up sheet table will appear much like the table when sign-ups are viewed via the admin. This option will potentially display personal user information on the frontend like email address and phone. This option is best used if you are using the [sign_up_sheet] short code within a password protected area. (This also overrides the "Front-end Display Names" option and displays all as full names.)', 'fdsus'), 99 99 'order' => 20 100 100 ), 101 101 array( 102 'label' => esc_html__('Front-end Display Names', ' sign-up-sheets'),102 'label' => esc_html__('Front-end Display Names', 'fdsus'), 103 103 'name' => 'dls_sus_display_name', 104 104 'type' => 'dropdown', 105 'note' => esc_html__('How the user\'s name should be displayed on the front-end after they sign-up', ' sign-up-sheets'),105 'note' => esc_html__('How the user\'s name should be displayed on the front-end after they sign-up', 'fdsus'), 106 106 'options' => array( 107 107 'default' => '"John S." - first name plus first letter of last name', 108 108 'full' => '"John Smith" - full name', 109 'anonymous' => '"' . esc_html__('Filled', ' sign-up-sheets') . '" - ' . esc_html__('anonymous', 'sign-up-sheets'),109 'anonymous' => '"' . esc_html__('Filled', 'fdsus') . '" - ' . esc_html__('anonymous', 'fdsus'), 110 110 ), 111 111 'th-rowspan' => 2, … … 118 118 'type' => 'dropdown', 119 119 'note' => '<span id="fdsus_display_name_username_override-label">' . esc_html__( 120 'For logged in users, override the Front-end Display Name with their WP username on their sign-ups.', ' sign-up-sheets'120 'For logged in users, override the Front-end Display Name with their WP username on their sign-ups.', 'fdsus' 121 121 ) . '</span>', 122 122 'options' => array( 123 '' => esc_html__('Not Enabled', ' sign-up-sheets'),124 'display_name' => esc_html__('Public Display Name', ' sign-up-sheets'),125 'nickname' => esc_html__('Nickname', ' sign-up-sheets'),126 'user_login' => esc_html__('Username', ' sign-up-sheets'),123 '' => esc_html__('Not Enabled', 'fdsus'), 124 'display_name' => esc_html__('Public Display Name', 'fdsus'), 125 'nickname' => esc_html__('Nickname', 'fdsus'), 126 'user_login' => esc_html__('Username', 'fdsus'), 127 127 ), 128 128 'aria-labelledby' => 'fdsus_display_name_username_override-label', … … 131 131 ), 132 132 array( 133 'label' => esc_html__('Compact Sign-up Mode', ' sign-up-sheets'),133 'label' => esc_html__('Compact Sign-up Mode', 'fdsus'), 134 134 'name' => 'dls_sus_compact_signups', 135 135 'type' => 'dropdown', 136 'note' => esc_html__('Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming "Front-end Display Names" is not set to "anonymous"', ' sign-up-sheets'),136 'note' => esc_html__('Show sign-up spots on one line with just # of open spots and a link to sign-up if open. Semi-Compact will also include the names of those who already signed up (assuming "Front-end Display Names" is not set to "anonymous"', 'fdsus'), 137 137 'options' => array( 138 'false' => esc_html__('Disabled', ' sign-up-sheets'),139 'true' => esc_html__('Enabled', ' sign-up-sheets'),140 'semi' => esc_html__('Semi-Compact', ' sign-up-sheets'),138 'false' => esc_html__('Disabled', 'fdsus'), 139 'true' => esc_html__('Enabled', 'fdsus'), 140 'semi' => esc_html__('Semi-Compact', 'fdsus'), 141 141 ), 142 142 'order' => 40, … … 144 144 ), 145 145 array( 146 'label' => esc_html__('Enable task sign-up limit', ' sign-up-sheets'),146 'label' => esc_html__('Enable task sign-up limit', 'fdsus'), 147 147 'name' => 'dls_sus_task_signup_limit', 148 148 'type' => 'checkbox', 149 'note' => esc_html__('Prevent users from being able to sign-up for a task more than once. This is checked by email address.', ' sign-up-sheets'),149 'note' => esc_html__('Prevent users from being able to sign-up for a task more than once. This is checked by email address.', 'fdsus'), 150 150 'order' => 50, 151 151 'pro' => true 152 152 ), 153 153 array( 154 'label' => esc_html__('Enable contiguous task sign-up limit', ' sign-up-sheets'),154 'label' => esc_html__('Enable contiguous task sign-up limit', 'fdsus'), 155 155 'name' => 'dls_sus_contiguous_task_signup_limit', 156 156 'type' => 'checkbox', 157 'note' => esc_html__('Prevent users from being able to sign-up for a task directly before or after a task for which they have already signed up. This is checked by email address.', ' sign-up-sheets'),157 'note' => esc_html__('Prevent users from being able to sign-up for a task directly before or after a task for which they have already signed up. This is checked by email address.', 'fdsus'), 158 158 'order' => 60, 159 159 'pro' => true 160 160 ), 161 161 array( 162 'label' => esc_html__('Enable Task Checkboxes', ' sign-up-sheets'),162 'label' => esc_html__('Enable Task Checkboxes', 'fdsus'), 163 163 'name' => 'dls_sus_enable_task_checkbox', 164 164 'type' => 'checkbox', 165 'note' => esc_html__('Allow check boxes on signup line items that allow user to sign up for multiple tasks.', ' sign-up-sheets'),165 'note' => esc_html__('Allow check boxes on signup line items that allow user to sign up for multiple tasks.', 'fdsus'), 166 166 'order' => 70, 167 167 'pro' => true 168 168 ), 169 169 array( 170 'label' => esc_html__('Enable Spot Lock', ' sign-up-sheets'),170 'label' => esc_html__('Enable Spot Lock', 'fdsus'), 171 171 'name' => 'dls_sus_spot_lock', 172 172 'type' => 'checkbox', 173 'note' => esc_html__('Spot will be locked and held for current user for 3 minutes when they access the sign-up form page. Spot Lock is available when signing up for a single task at a time.', ' sign-up-sheets'),173 'note' => esc_html__('Spot will be locked and held for current user for 3 minutes when they access the sign-up form page. Spot Lock is available when signing up for a single task at a time.', 'fdsus'), 174 174 'order' => 80, 175 175 'pro' => true 176 176 ), 177 177 array( 178 'label' => esc_html__('Hide self-removal from Sign-up Sheet', ' sign-up-sheets'),178 'label' => esc_html__('Hide self-removal from Sign-up Sheet', 'fdsus'), 179 179 'name' => 'dls_sus_hide_removal', 180 180 'type' => 'checkbox', 181 'note' => esc_html__('Hides the "Remove" link from the sign-up form if users were logged in when they signed up. This is always hidden if "Front-end Display Names" is set to "anonymous".', ' sign-up-sheets'),181 'note' => esc_html__('Hides the "Remove" link from the sign-up form if users were logged in when they signed up. This is always hidden if "Front-end Display Names" is set to "anonymous".', 'fdsus'), 182 182 'order' => 85, 183 183 'pro' => true 184 184 ), 185 185 array( 186 'label' => esc_html__('Number of days before sheet/task date to allow users to edit their own sign-ups', ' sign-up-sheets'),186 'label' => esc_html__('Number of days before sheet/task date to allow users to edit their own sign-ups', 'fdsus'), 187 187 'name' => 'fdsus_user_editable_signups', 188 188 'type' => 'number', 189 'note' => esc_html__('Leave blank to disable the user edit feature. Number entered will calculate based on the task date, if set, otherwise it will use the sheet date. If no sheet and task date is set, editing will be allowed indefinitely. Use negative numbers to allow editing after the date has passed', ' sign-up-sheets'),189 'note' => esc_html__('Leave blank to disable the user edit feature. Number entered will calculate based on the task date, if set, otherwise it will use the sheet date. If no sheet and task date is set, editing will be allowed indefinitely. Use negative numbers to allow editing after the date has passed', 'fdsus'), 190 190 'order' => 88, 191 191 'pro' => true 192 192 ), 193 193 array( 194 'label' => esc_html__('Show Filled Spots in Admin Edit Sheet', ' sign-up-sheets'),194 'label' => esc_html__('Show Filled Spots in Admin Edit Sheet', 'fdsus'), 195 195 'name' => 'dls_sus_show_filled_spots_admin_edit', 196 196 'type' => 'checkbox', 197 'note' => esc_html__('Show names and count of filled spots in the admin Edit Sheet screen.', ' sign-up-sheets'),197 'note' => esc_html__('Show names and count of filled spots in the admin Edit Sheet screen.', 'fdsus'), 198 198 'order' => 90, 199 199 'pro' => true 200 200 ), 201 201 array( 202 'label' => esc_html__('Allow Auto-Clearing Sign-ups Per Sheet', ' sign-up-sheets'),202 'label' => esc_html__('Allow Auto-Clearing Sign-ups Per Sheet', 'fdsus'), 203 203 'name' => 'fdsus_allow_autoclear_signups', 204 204 'type' => 'checkbox', 205 205 'note' => 206 206 /* translators: %s is replaced with the timestamp of the next cron scheduled */ 207 sprintf(esc_html__('Next scheduled check: %s', ' sign-up-sheets'),207 sprintf(esc_html__('Next scheduled check: %s', 'fdsus'), 208 208 Settings::getNextScheduledCronCheck('fdsus_autoclear')) 209 209 . '<ul>' 210 210 . '<li>' 211 . esc_html__('Enabling this activates the optional setting on each Sheet under "Additional Settings" which provides the ability auto-clear all sign-ups for that sheet on a schedule.', ' sign-up-sheets')211 . esc_html__('Enabling this activates the optional setting on each Sheet under "Additional Settings" which provides the ability auto-clear all sign-ups for that sheet on a schedule.', 'fdsus') 212 212 . '</li><li>' 213 . esc_html__('Your site will check if there are sheets that need to be cleared that need to be sent using the', ' sign-up-sheets')214 . ' <a href="https://developer.wordpress.org/plugins/cron/">' . esc_html__('WordPress Cron', ' sign-up-sheets') . '</a>'213 . esc_html__('Your site will check if there are sheets that need to be cleared that need to be sent using the', 'fdsus') 214 . ' <a href="https://developer.wordpress.org/plugins/cron/">' . esc_html__('WordPress Cron', 'fdsus') . '</a>' 215 215 . '</li><li>' 216 . esc_html__('If you just enabled/disabled this, you may need to refresh this page to see the updated "Next scheduled check"', ' sign-up-sheets')216 . esc_html__('If you just enabled/disabled this, you may need to refresh this page to see the updated "Next scheduled check"', 'fdsus') 217 217 . '</li>' 218 218 . '</ul>', … … 221 221 ), 222 222 array( 223 'label' => esc_html__('Custom Task Fields', ' sign-up-sheets'),223 'label' => esc_html__('Custom Task Fields', 'fdsus'), 224 224 'name' => 'dls_sus_custom_task_fields', 225 225 'type' => 'repeater', … … 240 240 $options['form'] = array( 241 241 'id' => 'form', 242 'title' => esc_html__('Sign-up Form', ' sign-up-sheets'),242 'title' => esc_html__('Sign-up Form', 'fdsus'), 243 243 'order' => 20, 244 244 'options' => array( 245 245 array( 246 'label' => esc_html__('Show "Remember Me" checkbox', ' sign-up-sheets'),246 'label' => esc_html__('Show "Remember Me" checkbox', 'fdsus'), 247 247 'name' => 'dls_sus_remember', 248 248 'type' => 'checkbox', … … 251 251 ), 252 252 array( 253 'label' => esc_html__('Set Phone as Optional', ' sign-up-sheets'),253 'label' => esc_html__('Set Phone as Optional', 'fdsus'), 254 254 'name' => 'dls_sus_optional_phone', 255 255 'type' => 'checkbox', … … 257 257 ), 258 258 array( 259 'label' => esc_html__('Set Address as Optional', ' sign-up-sheets'),259 'label' => esc_html__('Set Address as Optional', 'fdsus'), 260 260 'name' => 'dls_sus_optional_address', 261 261 'type' => 'checkbox', … … 263 263 ), 264 264 array( 265 'label' => esc_html__(' Set Email as Optional', 'sign-up-sheets'),266 'name' => 'fdsus_optional_email',267 'type' => 'checkbox',268 'order' => 22269 ), 270 array( 271 'label' => esc_html__('Hide Phone Field', ' sign-up-sheets'),265 'label' => esc_html__('Hide Email Field', 'fdsus'), 266 'name' => 'dls_sus_hide_email', 267 'type' => 'checkbox', 268 'order' => 30 269 ), 270 array( 271 'label' => esc_html__('Hide Phone Field', 'fdsus'), 272 272 'name' => 'dls_sus_hide_phone', 273 273 'type' => 'checkbox', … … 275 275 ), 276 276 array( 277 'label' => esc_html__('Hide Address Fields', ' sign-up-sheets'),277 'label' => esc_html__('Hide Address Fields', 'fdsus'), 278 278 'name' => 'dls_sus_hide_address', 279 279 'type' => 'checkbox', … … 281 281 ), 282 282 array( 283 'label' => esc_html__('Hide Email Field', 'sign-up-sheets'), 284 'name' => 'dls_sus_hide_email', 285 'type' => 'checkbox', 286 'order' => 42 287 ), 288 array( 289 'label' => esc_html__('Disable User Auto-populate', 'sign-up-sheets'), 283 'label' => esc_html__('Disable User Auto-populate', 'fdsus'), 290 284 'name' => 'dls_sus_disable_user_autopopulate', 291 285 'type' => 'checkbox', 292 'note' => esc_html__('By default, for users that are logged in, their name and email auto-populates on sign-up form when available. This option disables that behavior.', ' sign-up-sheets'),286 'note' => esc_html__('By default, for users that are logged in, their name and email auto-populates on sign-up form when available. This option disables that behavior.', 'fdsus'), 293 287 'order' => 45 294 288 ), 295 289 array( 296 'label' => esc_html__('Disable Mail Check Validation', ' sign-up-sheets'),290 'label' => esc_html__('Disable Mail Check Validation', 'fdsus'), 297 291 'name' => 'dls_sus_deactivate_email_validation', 298 292 'type' => 'checkbox', 299 'note' => esc_html__('Validation includes a JS check for standard email formatting, possible incorrect domains with suggestions as well as an MX record check on the domain to confirm it is setup to receive emails', ' sign-up-sheets'),293 'note' => esc_html__('Validation includes a JS check for standard email formatting, possible incorrect domains with suggestions as well as an MX record check on the domain to confirm it is setup to receive emails', 'fdsus'), 300 294 'order' => 50 301 295 ), 302 296 array( 303 'label' => esc_html__('Disable sign-up link auto-scroll to sheet (hash in sign-up link)', ' sign-up-sheets'),297 'label' => esc_html__('Disable sign-up link auto-scroll to sheet (hash in sign-up link)', 'fdsus'), 304 298 'name' => 'fdsus_disable_signup_link_hash', 305 299 'type' => 'checkbox', 306 'note' => esc_html__('The hash on the sign-up link is useful especially on longer pages where sheets are embedded further down the page or where the sheet description is longer. When the feature is enabled and the user clicks the sign-up link, it includes a `#` hash to and ID pointing to that same location where the sign-up form will appear on the next page.', ' sign-up-sheets'),300 'note' => esc_html__('The hash on the sign-up link is useful especially on longer pages where sheets are embedded further down the page or where the sheet description is longer. When the feature is enabled and the user clicks the sign-up link, it includes a `#` hash to and ID pointing to that same location where the sign-up form will appear on the next page.', 'fdsus'), 307 301 'order' => 55 308 302 ), 309 303 array( 310 'label' => esc_html__('Sign-up Success Message Receipt', ' sign-up-sheets'),304 'label' => esc_html__('Sign-up Success Message Receipt', 'fdsus'), 311 305 'name' => 'dls_sus_signup_receipt', 312 306 'type' => 'checkbox', 313 'note' => esc_html__('Displays a receipt below the sign-up success message which includes a copy of all the task details and all fields they entered in the sign-up form. Default: `unchecked`', ' sign-up-sheets'),307 'note' => esc_html__('Displays a receipt below the sign-up success message which includes a copy of all the task details and all fields they entered in the sign-up form. Default: `unchecked`', 'fdsus'), 314 308 'order' => 60, 315 309 'pro' => true 316 310 ), 317 311 array( 318 'label' => esc_html__('Custom Sign-up Fields', ' sign-up-sheets'),312 'label' => esc_html__('Custom Sign-up Fields', 'fdsus'), 319 313 'name' => 'dls_sus_custom_fields', 320 314 'type' => 'repeater', … … 337 331 $options['spam'] = array( 338 332 'id' => 'spam', 339 'title' => esc_html__('Captcha and Spam Prevention', ' sign-up-sheets'),333 'title' => esc_html__('Captcha and Spam Prevention', 'fdsus'), 340 334 'order' => 30, 341 335 'options' => array( 342 336 array( 343 'label' => esc_html__('Disable honeypot', ' sign-up-sheets'),337 'label' => esc_html__('Disable honeypot', 'fdsus'), 344 338 'name' => 'dls_sus_disable_honeypot', 345 339 'type' => 'checkbox', 346 'note' => esc_html__('A honeypot is a less-invasive technique to reduce SPAM submission using a hidden field on the sign-up form. It can be used in place of or alongside the captcha.', ' sign-up-sheets')347 ), 348 array( 349 'label' => esc_html__('Disable all Captcha', ' sign-up-sheets'),340 'note' => esc_html__('A honeypot is a less-invasive technique to reduce SPAM submission using a hidden field on the sign-up form. It can be used in place of or alongside the captcha.', 'fdsus') 341 ), 342 array( 343 'label' => esc_html__('Disable all Captcha', 'fdsus'), 350 344 'name' => 'dls_sus_disable_captcha', 351 'type' => 'checkbox', esc_html__('Will disable all captcha even if you have reCAPTCHA enabled below', ' sign-up-sheets')),352 array('Use reCAPTCHA', 'dls_sus_recaptcha', 'checkbox', esc_html__('Will replace the default simple captcha validation', ' sign-up-sheets')),353 array('reCAPTCHA Public Key', 'dls_sus_recaptcha_public_key', 'text', esc_html__('From your account at https://www.google.com/recaptcha/', ' sign-up-sheets')),354 array('reCAPTCHA Private Key', 'dls_sus_recaptcha_private_key', 'text', esc_html__('From your account at https://www.google.com/recaptcha/', ' sign-up-sheets')),345 'type' => 'checkbox', esc_html__('Will disable all captcha even if you have reCAPTCHA enabled below', 'fdsus')), 346 array('Use reCAPTCHA', 'dls_sus_recaptcha', 'checkbox', esc_html__('Will replace the default simple captcha validation', 'fdsus')), 347 array('reCAPTCHA Public Key', 'dls_sus_recaptcha_public_key', 'text', esc_html__('From your account at https://www.google.com/recaptcha/', 'fdsus')), 348 array('reCAPTCHA Private Key', 'dls_sus_recaptcha_private_key', 'text', esc_html__('From your account at https://www.google.com/recaptcha/', 'fdsus')), 355 349 array('reCAPTCHA Version', 'dls_sus_recaptcha_version', 'dropdown', '', array('v3' => 'v3', 'v2-checkbox' => 'v2 Checkbox', 'v2-invisible' => 'v2 Invisible')), 356 350 ) … … 359 353 $options['confirmation_email'] = array( 360 354 'id' => 'confirmation_email', 361 'title' => esc_html__('Confirmation E-mail', ' sign-up-sheets'),355 'title' => esc_html__('Confirmation E-mail', 'fdsus'), 362 356 'order' => 40, 363 357 'options' => array( 364 358 array( 365 'label' => esc_html__('Enable', ' sign-up-sheets'),359 'label' => esc_html__('Enable', 'fdsus'), 366 360 'name' => 'fdsus_enable_confirmation_email', 367 361 'type' => 'checkbox', … … 371 365 ), 372 366 array( 373 'label' => esc_html__('Subject', ' sign-up-sheets'),367 'label' => esc_html__('Subject', 'fdsus'), 374 368 'name' => 'dls_sus_email_subject', 375 369 'type' => 'text', 376 370 /* translators: %s is replaced with the default subject */ 377 'note' => esc_html(sprintf(__('If blank, defaults to... "%s"', ' sign-up-sheets'), Settings::$defaultMailSubjects['signup'])),371 'note' => esc_html(sprintf(__('If blank, defaults to... "%s"', 'fdsus'), Settings::$defaultMailSubjects['signup'])), 378 372 'order' => 20 379 373 ), 380 374 array( 381 'label' => esc_html__('From E-mail Address', ' sign-up-sheets'),375 'label' => esc_html__('From E-mail Address', 'fdsus'), 382 376 'name' => 'dls_sus_email_from', 383 377 'type' => 'text', 384 'note' => esc_html__('If blank, defaults to WordPress email on file under Settings > General', ' sign-up-sheets'),378 'note' => esc_html__('If blank, defaults to WordPress email on file under Settings > General', 'fdsus'), 385 379 'order' => 30 386 380 ), 387 381 array( 388 'label' => esc_html__('BCC', ' sign-up-sheets'),382 'label' => esc_html__('BCC', 'fdsus'), 389 383 'name' => 'dls_sus_email_bcc', 390 384 'type' => 'text', 391 'note' => esc_html__('Comma separate for multiple email addresses', ' sign-up-sheets'),385 'note' => esc_html__('Comma separate for multiple email addresses', 'fdsus'), 392 386 'order' => 40, 393 387 'pro' => true 394 388 ), 395 389 array( 396 'label' => esc_html__('Message', ' sign-up-sheets'),390 'label' => esc_html__('Message', 'fdsus'), 397 391 'name' => 'dls_sus_email_message', 398 392 'type' => 'textarea', … … 406 400 <code>{site_url}</code> - %s<br> 407 401 <code>{removal_link}</code> - %s', 408 esc_html__('Variables that can be used in template...', ' sign-up-sheets'),409 esc_html__('Multi-line list of sign-up details such as date, sheet title, task title', ' sign-up-sheets'),410 esc_html__('First name of user that signed up', ' sign-up-sheets'),411 esc_html__('Last name of user that signed up', ' sign-up-sheets'),412 esc_html__('Email of user that signed up', ' sign-up-sheets'),413 esc_html__('Name of site as defined in Settings > General > Site Title', ' sign-up-sheets'),414 esc_html__('URL of site', ' sign-up-sheets'),415 esc_html__('Link to remove sign-up', ' sign-up-sheets')402 esc_html__('Variables that can be used in template...', 'fdsus'), 403 esc_html__('Multi-line list of sign-up details such as date, sheet title, task title', 'fdsus'), 404 esc_html__('First name of user that signed up', 'fdsus'), 405 esc_html__('Last name of user that signed up', 'fdsus'), 406 esc_html__('Email of user that signed up', 'fdsus'), 407 esc_html__('Name of site as defined in Settings > General > Site Title', 'fdsus'), 408 esc_html__('URL of site', 'fdsus'), 409 esc_html__('Link to remove sign-up', 'fdsus') 416 410 ), 417 411 'order' => 50, … … 423 417 $options['removal_confirmation_email'] = array( 424 418 'id' => 'removal_confirmation_email', 425 'title' => esc_html__('Removal Confirmation E-mail', ' sign-up-sheets') . (!Id::isPro() ? ' <span class="dls-sus-pro" title="Pro Feature">Pro</span>' : ''),419 'title' => esc_html__('Removal Confirmation E-mail', 'fdsus') . (!Id::isPro() ? ' <span class="dls-sus-pro" title="Pro Feature">Pro</span>' : ''), 426 420 'order' => 50, 427 421 'options' => array( 428 422 array( 429 'label' => esc_html__('Enable', ' sign-up-sheets'),423 'label' => esc_html__('Enable', 'fdsus'), 430 424 'name' => 'fdsus_enable_removal_confirmation_email', 431 425 'type' => 'checkbox', … … 435 429 ), 436 430 array( 437 'label' => esc_html__('Message', ' sign-up-sheets'),431 'label' => esc_html__('Message', 'fdsus'), 438 432 'name' => 'dls_sus_removed_email_message', 439 433 'type' => 'textarea', … … 446 440 <code>{site_name}</code> - %s<br> 447 441 <code>{site_url}</code> - %s', 448 esc_html__('Variables that can be used in template...', ' sign-up-sheets'),449 esc_html__('Multi-line list of sign-up details such as date, sheet title, task title', ' sign-up-sheets'),450 esc_html__('First name of user that signed up', ' sign-up-sheets'),451 esc_html__('Last name of user that signed up', ' sign-up-sheets'),452 esc_html__('Email of user that signed up', ' sign-up-sheets'),453 esc_html__('Name of site as defined in Settings > General > Site Title', ' sign-up-sheets'),454 esc_html__('URL of site', ' sign-up-sheets')442 esc_html__('Variables that can be used in template...', 'fdsus'), 443 esc_html__('Multi-line list of sign-up details such as date, sheet title, task title', 'fdsus'), 444 esc_html__('First name of user that signed up', 'fdsus'), 445 esc_html__('Last name of user that signed up', 'fdsus'), 446 esc_html__('Email of user that signed up', 'fdsus'), 447 esc_html__('Name of site as defined in Settings > General > Site Title', 'fdsus'), 448 esc_html__('URL of site', 'fdsus') 455 449 ), 456 450 'order' => 20, … … 462 456 $options['reminder_email'] = array( 463 457 'id' => 'reminder_email', 464 'title' => esc_html__('Reminder E-mail', ' sign-up-sheets') . (!Id::isPro() ? ' <span class="dls-sus-pro" title="' . esc_html__('Pro Feature', 'sign-up-sheets') . '">' . esc_html__('Pro', 'sign-up-sheets') . '</span>' : ''),458 'title' => esc_html__('Reminder E-mail', 'fdsus') . (!Id::isPro() ? ' <span class="dls-sus-pro" title="' . esc_html__('Pro Feature', 'fdsus') . '">' . esc_html__('Pro', 'fdsus') . '</span>' : ''), 465 459 'order' => 60, 466 460 'options' => array( 467 461 array( 468 'label' => esc_html__('Enable Reminders', ' sign-up-sheets'),462 'label' => esc_html__('Enable Reminders', 'fdsus'), 469 463 'name' => 'dls_sus_reminder_email', 470 464 'type' => 'checkbox', 471 465 'note' => 472 466 /* translators: %s is replaced with the timestamp of the next cron scheduled */ 473 sprintf(esc_html__('Next scheduled check: %s', ' sign-up-sheets'),467 sprintf(esc_html__('Next scheduled check: %s', 'fdsus'), 474 468 Settings::getNextScheduledCronCheck('dls_sus_send_reminders')) 475 469 . '<ul>' 476 470 . '<li>' 477 . esc_html__('Your site will check hourly to see if there are reminders that need to be sent using the', ' sign-up-sheets')478 . ' <a href="https://developer.wordpress.org/plugins/cron/">' . esc_html__('WordPress Cron', ' sign-up-sheets') . '</a>'471 . esc_html__('Your site will check hourly to see if there are reminders that need to be sent using the', 'fdsus') 472 . ' <a href="https://developer.wordpress.org/plugins/cron/">' . esc_html__('WordPress Cron', 'fdsus') . '</a>' 479 473 . '</li><li>' 480 . esc_html__('If you just enabled/disabled this, you may need to refresh this page to see the updated "Next scheduled check"', ' sign-up-sheets')474 . esc_html__('If you just enabled/disabled this, you may need to refresh this page to see the updated "Next scheduled check"', 'fdsus') 481 475 . '</li>' 482 476 . '</ul>', … … 484 478 ), 485 479 array( 486 'label' => esc_html__('Reminder Schedule', ' sign-up-sheets'),480 'label' => esc_html__('Reminder Schedule', 'fdsus'), 487 481 'name' => 'dls_sus_reminder_email_days_before', 488 482 'type' => 'text', 489 'note' => esc_html__('Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use...', ' sign-up-sheets') . ' <code>1</code> ' . esc_html__('This field is required.', 'sign-up-sheets'),483 'note' => esc_html__('Number of days before the date on the sign-up sheet that the email should be sent. Use whole numbers, for example, to remind one day before use...', 'fdsus') . ' <code>1</code> ' . esc_html__('This field is required.', 'fdsus'), 490 484 'pro' => true 491 485 ), 492 486 array( 493 'label' => esc_html__('Subject', ' sign-up-sheets'),487 'label' => esc_html__('Subject', 'fdsus'), 494 488 'name' => 'dls_sus_reminder_email_subject', 495 489 'type' => 'text', 496 490 /* translators: %s is replaced with the default subject */ 497 'note' => esc_html(sprintf(__('If blank, defaults to... "%s"', ' sign-up-sheets'), Settings::$defaultMailSubjects['reminder'])),491 'note' => esc_html(sprintf(__('If blank, defaults to... "%s"', 'fdsus'), Settings::$defaultMailSubjects['reminder'])), 498 492 'pro' => true 499 493 ), 500 494 array( 501 'label' => esc_html__('From E-mail Address', ' sign-up-sheets'),495 'label' => esc_html__('From E-mail Address', 'fdsus'), 502 496 'name' => 'dls_sus_reminder_email_from', 503 497 'type' => 'text', 504 'note' => esc_html__('If blank, defaults to WordPress email on file under Settings > General', ' sign-up-sheets'),498 'note' => esc_html__('If blank, defaults to WordPress email on file under Settings > General', 'fdsus'), 505 499 'pro' => true 506 500 ), 507 501 array( 508 'label' => esc_html__('BCC', ' sign-up-sheets'),502 'label' => esc_html__('BCC', 'fdsus'), 509 503 'name' => 'dls_sus_reminder_email_bcc', 510 504 'type' => 'text', 511 'note' => esc_html__('Comma separate for multiple email addresses', ' sign-up-sheets'),505 'note' => esc_html__('Comma separate for multiple email addresses', 'fdsus'), 512 506 'pro' => true 513 507 ), 514 508 array( 515 'label' => esc_html__('Message', ' sign-up-sheets'),509 'label' => esc_html__('Message', 'fdsus'), 516 510 'name' => 'dls_sus_reminder_email_message', 517 511 'type' => 'textarea', … … 524 518 <code>{site_name}</code> - %s<br> 525 519 <code>{site_url}</code> - %s', 526 esc_html__('Variables that can be used in template...', ' sign-up-sheets'),527 esc_html__('Multi-line list of sign-up details such as date, sheet title, task title', ' sign-up-sheets'),528 esc_html__('First name of user that signed up', ' sign-up-sheets'),529 esc_html__('Last name of user that signed up', ' sign-up-sheets'),530 esc_html__('Email of user that signed up', ' sign-up-sheets'),531 esc_html__('Name of site as defined in Settings > General > Site Title', ' sign-up-sheets'),532 esc_html__('URL of site', ' sign-up-sheets')520 esc_html__('Variables that can be used in template...', 'fdsus'), 521 esc_html__('Multi-line list of sign-up details such as date, sheet title, task title', 'fdsus'), 522 esc_html__('First name of user that signed up', 'fdsus'), 523 esc_html__('Last name of user that signed up', 'fdsus'), 524 esc_html__('Email of user that signed up', 'fdsus'), 525 esc_html__('Name of site as defined in Settings > General > Site Title', 'fdsus'), 526 esc_html__('URL of site', 'fdsus') 533 527 ), 534 528 'pro' => true … … 539 533 $options['status_email'] = array( 540 534 'id' => 'status_email', 541 'title' => esc_html__('Status E-mail', ' sign-up-sheets') . (!Id::isPro() ? ' <span class="dls-sus-pro" title="Pro Feature">Pro</span>' : ''),535 'title' => esc_html__('Status E-mail', 'fdsus') . (!Id::isPro() ? ' <span class="dls-sus-pro" title="Pro Feature">Pro</span>' : ''), 542 536 'order' => 70, 543 537 'options' => array( 544 538 array( 545 'label' => esc_html__('Enable Status E-mail', ' sign-up-sheets'),539 'label' => esc_html__('Enable Status E-mail', 'fdsus'), 546 540 'name' => 'dls_sus_status_email', 547 541 'type' => 'checkbox', 548 'note' => esc_html__('Shows all signups for a sheet. Sent when a user adds or removes a signup from the frontend.', ' sign-up-sheets'),549 'pro' => true 550 ), 551 array( 552 'label' => esc_html__('Subject', ' sign-up-sheets'),542 'note' => esc_html__('Shows all signups for a sheet. Sent when a user adds or removes a signup from the frontend.', 'fdsus'), 543 'pro' => true 544 ), 545 array( 546 'label' => esc_html__('Subject', 'fdsus'), 553 547 'name' => 'dls_sus_status_email_subject', 554 548 'type' => 'text', 555 549 /* translators: %s is replaced with the default subject */ 556 'note' => esc_html(sprintf(__('If blank, defaults to... "%s"', ' sign-up-sheets'), Settings::$defaultMailSubjects['status'])),557 'pro' => true 558 ), 559 array( 560 'label' => esc_html__('From E-mail Address', ' sign-up-sheets'),550 'note' => esc_html(sprintf(__('If blank, defaults to... "%s"', 'fdsus'), Settings::$defaultMailSubjects['status'])), 551 'pro' => true 552 ), 553 array( 554 'label' => esc_html__('From E-mail Address', 'fdsus'), 561 555 'name' => 'dls_sus_status_email_from', 562 556 'type' => 'text', 563 'note' => esc_html__('If blank, defaults to WordPress email on file under Settings > General', ' sign-up-sheets'),564 'pro' => true 565 ), 566 array( 567 'label' => esc_html__('Send to main admin emails', ' sign-up-sheets'),557 'note' => esc_html__('If blank, defaults to WordPress email on file under Settings > General', 'fdsus'), 558 'pro' => true 559 ), 560 array( 561 'label' => esc_html__('Send to main admin emails', 'fdsus'), 568 562 'name' => 'dls_sus_status_to_admin', 569 563 'type' => 'checkbox', 570 'note' => esc_html__('E-mail address specified under Settings > General', ' sign-up-sheets'),571 'pro' => true 572 ), 573 array( 574 'label' => esc_html__('Send to "Sheet BCC" recipients', ' sign-up-sheets'),564 'note' => esc_html__('E-mail address specified under Settings > General', 'fdsus'), 565 'pro' => true 566 ), 567 array( 568 'label' => esc_html__('Send to "Sheet BCC" recipients', 'fdsus'), 575 569 'name' => 'dls_sus_status_to_sheet_bcc', 576 570 'type' => 'checkbox', 577 'note' => esc_html__('These addresses will be added as a recipient only for sheets on which they are assigned.', ' sign-up-sheets'),571 'note' => esc_html__('These addresses will be added as a recipient only for sheets on which they are assigned.', 'fdsus'), 578 572 'pro' => true 579 573 ), … … 583 577 $options['advanced'] = array( 584 578 'id' => 'advanced', 585 'title' => esc_html__('Advanced', ' sign-up-sheets'),579 'title' => esc_html__('Advanced', 'fdsus'), 586 580 'order' => 80, 587 581 'options' => array( … … 592 586 array('Display Detailed Errors', 'dls_sus_detailed_errors', 'checkbox', '(Not recommended for production sites)'), 593 587 array( 594 'label' => esc_html__('Reset All Settings', ' sign-up-sheets'),588 'label' => esc_html__('Reset All Settings', 'fdsus'), 595 589 'name' => 'fdsus_reset', 596 590 'type' => 'button', 597 'note' => '<span id="fdsus-reset"></span><p>' . esc_html__('This will erase any custom configurations you have made on this page and reset them back to the defaults. This action cannot be undone.', ' sign-up-sheets') . '</p>',591 'note' => '<span id="fdsus-reset"></span><p>' . esc_html__('This will erase any custom configurations you have made on this page and reset them back to the defaults. This action cannot be undone.', 'fdsus') . '</p>', 598 592 'options' => array( 599 593 'href' => add_query_arg('fdsus-reset', 'all', 600 594 wp_nonce_url($this->data->getSettingsUrl(), 'fdsus-settings-reset', '_fdsus-nonce')), 601 595 'onclick' => sprintf('return confirm(`%s %s`)', 602 esc_html__('Are you sure?', ' sign-up-sheets'),603 esc_html__('This will erase any custom configurations you have made on this page and reset them back to the defaults. This action cannot be undone.', ' sign-up-sheets')596 esc_html__('Are you sure?', 'fdsus'), 597 esc_html__('This will erase any custom configurations you have made on this page and reset them back to the defaults. This action cannot be undone.', 'fdsus') 604 598 ), 605 599 ) … … 610 604 $options['text_overrides'] = array( 611 605 'id' => 'text_overrides', 612 'title' => esc_html__('Text Overrides', ' sign-up-sheets'),606 'title' => esc_html__('Text Overrides', 'fdsus'), 613 607 'order' => 90, 614 608 'options' => array() -
sign-up-sheets/trunk/model/settings.php
r3233567 r3234219 13 13 14 14 if (Id::isPro()) { 15 class SettingsParent extends \FDSUSPRO\Model\Pro\Settings {}15 class SettingsParent extends Pro\Settings {} 16 16 } else { 17 17 class SettingsParent {} … … 41 41 { 42 42 self::$defaultMailSubjects = array( 43 'signup' => esc_html__('Thank you for signing up!', ' sign-up-sheets'),44 'remove' => esc_html__('Sign-up has been removed', ' sign-up-sheets'),45 'reminder' => esc_html__('Sign-up Reminder', ' sign-up-sheets'),46 'status' => esc_html__('Sign-up Status Report', ' sign-up-sheets'),43 'signup' => esc_html__('Thank you for signing up!', 'fdsus'), 44 'remove' => esc_html__('Sign-up has been removed', 'fdsus'), 45 'reminder' => esc_html__('Sign-up Reminder', 'fdsus'), 46 'status' => esc_html__('Sign-up Status Report', 'fdsus'), 47 47 ); 48 48 … … 80 80 self::$text = array( 81 81 'task_title_label' => array( 82 'label' => esc_html__('Task Title Label', ' sign-up-sheets'),83 'default' => esc_html__('What', ' sign-up-sheets'),82 'label' => esc_html__('Task Title Label', 'fdsus'), 83 'default' => esc_html__('What', 'fdsus'), 84 84 ), 85 85 ); … … 211 211 212 212 /** 213 * Get current plugin basename depending on if we are runningthe pro or free version213 * Get current plugin basename depending on if we are in the pro or free version 214 214 * 215 215 * @return string … … 300 300 $checkUtcTimestamp = wp_next_scheduled($cronHook); 301 301 if (is_null($defaultText)) { 302 $defaultText = esc_html__('Not Scheduled', ' sign-up-sheets');302 $defaultText = esc_html__('Not Scheduled', 'fdsus'); 303 303 } 304 304 $displayCheckTime = $defaultText; -
sign-up-sheets/trunk/model/settings/sheet-order.php
r3233567 r3234219 21 21 $this->options = array( 22 22 'date_asc' => array( 23 'label' => esc_html__('Date (ASC)', ' sign-up-sheets'),23 'label' => esc_html__('Date (ASC)', 'fdsus'), 24 24 'direction' => 'ASC', 25 25 'sort_by' => 'dlssus_end_date', … … 27 27 ), 28 28 'date_desc' => array( 29 'label' => esc_html__('Date (DESC)', ' sign-up-sheets'),29 'label' => esc_html__('Date (DESC)', 'fdsus'), 30 30 'direction' => 'DESC', 31 31 'sort_by' => 'dlssus_end_date', … … 33 33 ), 34 34 'id_asc' => array( 35 'label' => esc_html__('Sheet ID (ASC)', ' sign-up-sheets'),35 'label' => esc_html__('Sheet ID (ASC)', 'fdsus'), 36 36 'direction' => 'ASC', 37 37 'sort_by' => false, … … 39 39 ), 40 40 'id_desc' => array( 41 'label' => esc_html__('Sheet ID (DESC)', ' sign-up-sheets'),41 'label' => esc_html__('Sheet ID (DESC)', 'fdsus'), 42 42 'direction' => 'DESC', 43 43 'sort_by' => false, -
sign-up-sheets/trunk/model/sheet-base.php
r3233567 r3234219 25 25 * @property string dlssus_start_date 26 26 * @property string dlssus_end_date 27 * @property string dlssus_optional_phone 28 * @property string dlssus_optional_address 29 * @property string fdsus_optional_email 27 * @property string dlssus_hide_email 30 28 * @property string dlssus_hide_phone 31 29 * @property string dlssus_hide_address 32 * @property string dlssus_hide_email33 30 * @property string dlssus_use_task_checkboxes 34 31 * @property bool dlssus_is_active … … 41 38 * @property array fdsus_autoclear 42 39 * @property string fdsus_last_autoclear 40 * 41 * @package FDSUS\Model 43 42 */ 44 43 class SheetBase extends Base … … 209 208 public static function getName($singular = false) 210 209 { 211 return $singular ? __('Sign-up Sheet', ' sign-up-sheets') : __('Sign-up Sheets', 'sign-up-sheets');210 return $singular ? __('Sign-up Sheet', 'fdsus') : __('Sign-up Sheets', 'fdsus'); 212 211 } 213 212 … … 279 278 $sheetArray = $this->objectToArray($this->getData()); 280 279 $this->cleanBeforeCopy($sheetArray); 281 $sheetArray['post_title'] .= esc_html__(' (Copy)', ' sign-up-sheets');280 $sheetArray['post_title'] .= esc_html__(' (Copy)', 'fdsus'); 282 281 283 282 // Copy sheet … … 508 507 509 508 /** 510 * Should the phone be required on the sheet?509 * Should the phone be displayed on the sheet? 511 510 * 512 511 * @return bool … … 514 513 public function isPhoneRequired() 515 514 { 516 if (!$this->showPhone()) {517 return false;518 }519 515 return (isset($this->dlssus_optional_phone) && $this->dlssus_optional_phone === 'false') 520 516 || (empty($this->dlssus_optional_phone) && get_option('dls_sus_optional_phone') !== 'true'); … … 522 518 523 519 /** 524 * Should the address be required on the sheet?520 * Should the address be displayed on the sheet? 525 521 * 526 522 * @return bool … … 528 524 public function isAddressRequired() 529 525 { 530 if (!$this->showAddress()) {531 return false;532 }533 526 return (isset($this->dlssus_optional_address) && $this->dlssus_optional_address === 'false') 534 527 || (empty($this->dlssus_optional_address) && get_option('dls_sus_optional_address') !== 'true'); 535 }536 537 /**538 * Should the email be displayed on the sheet?539 *540 * @return bool541 */542 public function isEmailRequired()543 {544 if (!$this->showEmail()) {545 return false;546 }547 return (isset($this->fdsus_optional_email) && $this->fdsus_optional_email === 'false')548 || (empty($this->fdsus_optional_email) && get_option('fdsus_optional_email') !== 'true');549 528 } 550 529 -
sign-up-sheets/trunk/model/sheet-collection.php
r3233567 r3234219 13 13 14 14 if (Id::isPro()) { 15 class SheetCollectionParent extends \FDSUSPRO\Model\Pro\SheetCollection {}15 class SheetCollectionParent extends Pro\SheetCollection {} 16 16 } else { 17 17 class SheetCollectionParent extends Base {} -
sign-up-sheets/trunk/model/sheet.php
r3233567 r3234219 10 10 11 11 if (Id::isPro()) { 12 class SheetParent extends \FDSUSPRO\Model\Pro\Sheet {}12 class SheetParent extends Pro\Sheet {} 13 13 } else { 14 14 class SheetParent extends SheetBase {} -
sign-up-sheets/trunk/model/signup-collection.php
r3233567 r3234219 13 13 14 14 if (Id::isPro()) { 15 class SignupCollectionParent extends \FDSUSPRO\Model\Pro\SignupCollection {}15 class SignupCollectionParent extends Pro\SignupCollection {} 16 16 } else { 17 17 class SignupCollectionParent extends Base {} -
sign-up-sheets/trunk/model/signup-form-initial-values.php
r3233567 r3234219 15 15 /** 16 16 * Class SignupFormInitialValues 17 * 18 * @package FDSUS\Model 17 19 */ 18 20 class SignupFormInitialValues … … 89 91 90 92 // If not set, but logged in, pull from user 91 if (! $this->signup && !is_admin() && !Settings::isUserAutopopulateDisabled()) {93 if (!is_admin() && !Settings::isUserAutopopulateDisabled()) { 92 94 $currentUser = wp_get_current_user(); 93 95 if (($currentUser instanceof WP_User)) { -
sign-up-sheets/trunk/model/signup.php
r3233567 r3234219 15 15 16 16 if (Id::isPro()) { 17 class SignupParent extends \FDSUSPRO\Model\Pro\Signup {}17 class SignupParent extends Pro\Signup {} 18 18 } else { 19 19 class SignupParent extends SignupBase {} … … 38 38 * @property string dlssus_removal_token 39 39 * @property string dlssus_reminded 40 * 41 * @package FDSUS\Model 40 42 */ 41 43 class Signup extends SignupParent … … 101 103 public static function getName($singular = false) 102 104 { 103 return $singular ? __('Sign-up', ' sign-up-sheets') : __('Sign-ups', 'sign-up-sheets');105 return $singular ? __('Sign-up', 'fdsus') : __('Sign-ups', 'fdsus'); 104 106 } 105 107 … … 146 148 sprintf( 147 149 /* translators: %1$s is replaced with task title and %2$s is replaced with optional detailed errors if enabled */ 148 esc_html__('Error adding signup for %1$s. All spots are filled. %2$s', ' sign-up-sheets'),150 esc_html__('Error adding signup for %1$s. All spots are filled. %2$s', 'fdsus'), 149 151 '<em>' . wp_kses_post($task->post_title) . '</em>', 150 152 Settings::isDetailedErrors() … … 178 180 && empty($fields['double_signup']) 179 181 && $sheet->showEmail() 180 && !empty($fields['signup_email'])181 182 && $task->isEmailOnTask($fields['signup_email']) 182 183 ) { 183 $msg = esc_html__('You have already signed up for this task. Do you want to sign up again?', ' sign-up-sheets') . '184 $msg = esc_html__('You have already signed up for this task. Do you want to sign up again?', 'fdsus') . ' 184 185 <form method="post" action="' . esc_url($this->getCurrentUrl(true) . Settings::maybeGetSignUpLinkHash($sheet->ID)) . '">'; 185 186 … … 206 207 <input type="hidden" name="double_signup" value="1" /> 207 208 <input type="hidden" name="action" value="signup-confirmed" /> 208 <input type="submit" name="Submit" class="button-primary wp-block-button__link wp-element-button dls-sus-double-signup-confirm-button" value="' . esc_html__('Yes, sign me up', ' sign-up-sheets') . '" />209 <a href="' . esc_url(fdsus_back_to_sheet_url($task->ID)) . '">' . esc_html__('No, thanks', ' sign-up-sheets') . '</a>209 <input type="submit" name="Submit" class="button-primary wp-block-button__link wp-element-button dls-sus-double-signup-confirm-button" value="' . esc_html__('Yes, sign me up', 'fdsus') . '" /> 210 <a href="' . esc_url(fdsus_back_to_sheet_url($task->ID)) . '">' . esc_html__('No, thanks', 'fdsus') . '</a> 210 211 </form> 211 212 '; … … 234 235 sprintf( 235 236 /* translators: %s is replaced with the sign-up email */ 236 esc_html__('Error adding the sign-up for "%s"', ' sign-up-sheets'), esc_attr($cleanFields['email']))237 esc_html__('Error adding the sign-up for "%s"', 'fdsus'), esc_attr($cleanFields['email'])) 237 238 . (($this->detailed_errors === true) ? '.. ' . print_r($signupId->get_error_message(), true) : '') 238 239 ); … … 341 342 sprintf( 342 343 /* translators: %s is replaced with the sign-up email */ 343 esc_html__('Error adding the sign-up for "%s"', ' sign-up-sheets'), esc_attr($cleanFields['email'])344 esc_html__('Error adding the sign-up for "%s"', 'fdsus'), esc_attr($cleanFields['email']) 344 345 ) 345 346 . (($this->detailed_errors === true && is_wp_error($signupId)) ? '.. ' . print_r($signupId->get_error_message(), true) : '') … … 510 511 $missingFieldNames = array(); 511 512 if (empty($fields['signup_firstname'])) { 512 $missingFieldNames[ 'firstname'] = esc_html__('First Name', 'sign-up-sheets');513 $missingFieldNames[] = esc_html__('First Name', 'fdsus'); 513 514 } 514 515 if (empty($fields['signup_lastname'])) { 515 $missingFieldNames[ 'lastname'] = esc_html__('Last Name', 'sign-up-sheets');516 } 517 if ($sheet-> isEmailRequired() && empty($fields['signup_email'])) {518 $missingFieldNames[ 'email'] = esc_html__('E-mail', 'sign-up-sheets');519 } 520 if ($sheet->isPhoneRequired() && empty($fields['signup_phone'])) {521 $missingFieldNames[ 'phone'] = esc_html__('Phone', 'sign-up-sheets');522 } 523 if ($sheet->isAddressRequired() 516 $missingFieldNames[] = esc_html__('Last Name', 'fdsus'); 517 } 518 if ($sheet->showEmail() && empty($fields['signup_email'])) { 519 $missingFieldNames[] = esc_html__('E-mail', 'fdsus'); 520 } 521 if ($sheet->isPhoneRequired() && $sheet->showPhone() && empty($fields['signup_phone'])) { 522 $missingFieldNames[] = esc_html__('Phone', 'fdsus'); 523 } 524 if ($sheet->isAddressRequired() && $sheet->showAddress() 524 525 && (empty($fields['signup_address']) 525 526 || empty($fields['signup_city']) … … 527 528 || empty($fields['signup_zip'])) 528 529 ) { 529 $missingFieldNames[] = esc_html__('Address', ' sign-up-sheets');530 $missingFieldNames[] = esc_html__('Address', 'fdsus'); 530 531 } 531 532 … … 535 536 * @param array $missingFieldNames 536 537 * @param SheetModel $sheet 537 * @param array $fields538 538 * 539 539 * @return array 540 540 * @since 2.2 541 541 */ 542 $missingFieldNames = apply_filters('fdsus_sign_up_form_errors_required_fields', $missingFieldNames, $sheet, $fields); 542 $missingFieldNames = apply_filters('fdsus_sign_up_form_errors_required_fields', $missingFieldNames, $sheet); 543 544 // TODO CAPTCHA - move to Captcha class 545 if (!is_admin() && !Settings::isAllCaptchaDisabled() && !Settings::isRecaptchaEnabled() && empty($fields['spam_check'])) { 546 $missingFieldNames[] = esc_html__('Math Question', 'fdsus'); 547 } 543 548 544 549 return $missingFieldNames ? $missingFieldNames : true; -
sign-up-sheets/trunk/model/task-base.php
r3233567 r3234219 24 24 * @property string dlssus_task_row_type 25 25 * @property bool dlssus_is_active 26 * 27 * @package FDSUS\Model 26 28 */ 27 29 class TaskBase extends Base … … 90 92 public static function getName($singular = false) 91 93 { 92 return $singular ? __('Task', ' sign-up-sheets') : __('Tasks', 'sign-up-sheets');94 return $singular ? __('Task', 'fdsus') : __('Tasks', 'fdsus'); 93 95 } 94 96 … … 153 155 sprintf( 154 156 /* translators: %s is replaced with the task title */ 155 esc_html__('Error adding the task "%s"', ' sign-up-sheets'),157 esc_html__('Error adding the task "%s"', 'fdsus'), 156 158 $cleanFields['title'] 157 159 ) … … 188 190 foreach ($meta as $k => $v) { 189 191 if (update_post_meta($taskId, $k, maybe_unserialize($v)) === false) { 190 return new WP_Error('add_task_additional_err', esc_html__('Error adding additional fields to task.', ' sign-up-sheets'));192 return new WP_Error('add_task_additional_err', esc_html__('Error adding additional fields to task.', 'fdsus')); 191 193 } 192 194 $i++; … … 237 239 sprintf( 238 240 /* translators: %s is replaced with the task title */ 239 esc_html__('Error updating the task "%s"', ' sign-up-sheets'),241 esc_html__('Error updating the task "%s"', 'fdsus'), 240 242 $cleanFields['title'] 241 243 ) . (Settings::isDetailedErrors() ? '.. ' . print_r($task_id->get_error_message(), true) : '') … … 281 283 $result = wp_delete_post($id, true); 282 284 if ($result === false) { 283 return new WP_Error('task_delete_err', esc_html__('Error deleting task.', ' sign-up-sheets'));285 return new WP_Error('task_delete_err', esc_html__('Error deleting task.', 'fdsus')); 284 286 } 285 287 … … 493 495 public function getSignupLink($linkText = '') { 494 496 if (empty($linkText)) { 495 $linkText = esc_html__('Sign up »', ' sign-up-sheets');497 $linkText = esc_html__('Sign up »', 'fdsus'); 496 498 } 497 499 -
sign-up-sheets/trunk/model/task-table.php
r3233567 r3234219 20 20 protected $sheet; 21 21 22 /** @var array */23 public $config;24 25 22 /** 26 23 * Constructor … … 28 25 * @param SheetModel $sheet 29 26 */ 30 public function __construct($sheet , $config)27 public function __construct($sheet) 31 28 { 32 29 $this->sheet = $sheet; 33 $this->config = $config;34 30 35 31 return $this; … … 77 73 * @param SheetModel $sheet 78 74 * @param string $class 79 * @param array $config80 75 * 81 76 * @return string 82 77 * @since 2.2 83 78 */ 84 $slug = apply_filters('fdsus_tasktable_task_cell_slug', $slug, $value, $this->sheet, $class , $this->config);79 $slug = apply_filters('fdsus_tasktable_task_cell_slug', $slug, $value, $this->sheet, $class); 85 80 86 81 /** … … 118 113 * @param SheetModel $sheet 119 114 * @param string $class 120 * @param array $config121 115 * 122 116 * @return string 123 117 * @since 2.2 124 118 */ 125 $slug = apply_filters('fdsus_tasktable_header_cell_slug', $slug, $value, $this->sheet, $class , $this->config);119 $slug = apply_filters('fdsus_tasktable_header_cell_slug', $slug, $value, $this->sheet, $class); 126 120 127 121 if ($slug !== false) { -
sign-up-sheets/trunk/model/task.php
r3233567 r3234219 11 11 12 12 if (Id::isPro()) { 13 class TaskParent extends \FDSUSPRO\Model\Pro\Task {}13 class TaskParent extends Pro\Task {} 14 14 } else { 15 15 class TaskParent extends TaskBase {} -
sign-up-sheets/trunk/package.json
r3233567 r3234219 1 1 { 2 2 "name": "sign-up-sheets", 3 "version": "2. 3.0",3 "version": "2.2.1", 4 4 "description": "An online sign-up sheet manager where your users/volunteers can sign up for tasks.", 5 5 "author": "fetchdesigns", -
sign-up-sheets/trunk/readme.txt
r3233567 r3234219 3 3 Tags: sign up, volunteer, non-profit, signup, sign-up 4 4 Tested up to: 6.7 5 Stable tag: 2. 3.05 Stable tag: 2.2.14 6 6 License: GPLv2 or later 7 7 … … 115 115 == Upgrade Notice == 116 116 117 = 2.3.0 | 2025-02-02 =118 * Added ability to mark email field as optional.119 * Updated translation textdomain to better match WordPress standard of 'sign-up-sheets'. [⚠️Breaking Change]120 * Updated .sr-only class to use .screen-reader-text to be more consistent with WP core.121 * Fixed missing escaping around translations on tasks table.122 * Fixed sheets with the hidden email set so that the column doesn't show up in the admin and status email task tables.123 * Fixed password-protected sheets to prevent displaying sheet content prior to password being entered.124 * Fixed WP 6.7 notice being thrown of "Function _load_textdomain_just_in_time was called incorrectly."125 * Fixed bug preventing editing of new tasks on mobile devices.126 127 117 = 2.2.14 | 2024-10-07 = 128 118 * Added setting to clear cache on specific post IDs when a sign-up occurs. … … 189 179 190 180 == Changelog == 191 192 = 2.3.0 | 2025-02-02 =193 * Added ability to mark email field as optional.194 * Updated translation textdomain to better match WordPress standard of 'sign-up-sheets'. [⚠️Breaking Change]195 * Updated .sr-only class to use .screen-reader-text to be more consistent with WP core.196 * Fixed missing escaping around translations on tasks table.197 * Fixed sheets with the hidden email set so that the column doesn't show up in the admin and status email task tables.198 * Fixed password-protected sheets to prevent displaying sheet content prior to password being entered.199 * Fixed WP 6.7 notice being thrown of "Function _load_textdomain_just_in_time was called incorrectly."200 * Fixed bug preventing editing of new tasks on mobile devices.201 181 202 182 = 2.2.14 | 2024-10-07 = -
sign-up-sheets/trunk/sign-up-sheets.php
r3233567 r3234219 4 4 Plugin URI: https://www.fetchdesigns.com/sign-up-sheets-wordpress-plugin/ 5 5 Description: An online sign-up sheet manager where your users/volunteers can sign up for tasks 6 Version: 2. 3.06 Version: 2.2.14 7 7 Requires PHP: 5.5 8 8 Requires at least: 5.5 9 9 Author: Fetch Designs 10 10 Author URI: https://www.fetchdesigns.com/ 11 Text Domain: sign-up-sheets12 Domain Path: /languages 11 Text Domain: fdsus 12 Domain Path: /languages/ 13 13 License: GPL2 14 14 */ … … 30 30 */ 31 31 32 if (!defined('FDSUS_FREE_PLUGIN_DIR_PATH')) {33 define('FDSUS_FREE_PLUGIN_DIR_PATH', plugin_dir_path(__FILE__));34 }35 36 if (!defined('FDSUS_FREE_PLUGIN_BASENAME')) {37 define('FDSUS_FREE_PLUGIN_BASENAME', plugin_basename(__FILE__));38 }39 40 32 require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'main.php'; -
sign-up-sheets/trunk/src/block.json
r3233567 r3234219 3 3 "apiVersion": 2, 4 4 "name": "sign-up-sheets/sheet", 5 "version": "2. 3.0",5 "version": "2.2.11", 6 6 "title": "Sign-up Sheets", 7 7 "category": "widgets", … … 11 11 "html": false 12 12 }, 13 "textdomain": " sign-up-sheets",13 "textdomain": "fdsus", 14 14 "editorScript": "file:./index.js", 15 15 "editorStyle": "file:./index.css", -
sign-up-sheets/trunk/template-tags.php
r3233567 r3234219 522 522 } 523 523 } 524 525 if (!function_exists('fdsus_scode_user_sign_ups_actions')) {526 /**527 * Call do_action for customizing the user sign-ups after the additional fields output528 *529 * @param array $row530 *531 * @return void532 */533 function fdsus_scode_user_sign_ups_actions($row)534 {535 /**536 * [user_sign_ups] shortcode - after signup name is output537 *538 * @param SheetModel $sheet539 * @param TaskModel $task540 * @param SignupModel $signup541 *542 * @since todo user-signups543 */544 do_action('fdsus_scode_user_sign_ups_actions', $row['sheet'], $row['task'], $row['signup']);545 }546 } -
sign-up-sheets/trunk/theme-files/archive-dlssus_sheet.php
r3233567 r3234219 32 32 <?php echo do_shortcode('[sign_up_sheet]'); ?> 33 33 <?php else: ?> 34 <p><?php esc_attr_e('No sign-up sheets found.', ' sign-up-sheets'); ?></p>34 <p><?php esc_attr_e('No sign-up sheets found.', 'fdsus'); ?></p> 35 35 <?php endif; ?> 36 36 -
sign-up-sheets/trunk/theme-files/content-dlssus_sheet.php
r3233567 r3234219 17 17 <div class="<?php echo esc_attr(fdsus_template_classes_sign_up_sheet()) ?>" id="<?php echo get_the_ID() ? 'dls-sus-sheet-' . get_the_ID() : '' ?>"> 18 18 19 <h3><?php esc_attr_e('Sign up below...', ' sign-up-sheets'); ?></h3>19 <h3><?php esc_attr_e('Sign up below...', 'fdsus'); ?></h3> 20 20 21 21 <?php dlssus_the_tasks_table(); ?> -
sign-up-sheets/trunk/theme-files/fdsus/parts/captcha-simple.php
r3233567 r3234219 14 14 <p> 15 15 <label for="spam_check" class="spam_check"> 16 <?php esc_html_e('Answer the following: 7 + 1 = __', ' sign-up-sheets'); ?>16 <?php esc_html_e('Answer the following: 7 + 1 = __', 'fdsus'); ?> 17 17 <span class="dls-sus-required-icon">*</span> 18 18 </label> -
sign-up-sheets/trunk/theme-files/fdsus/sheet-list.php
r3233567 r3234219 23 23 <?php if (empty($args['sheets'])) : ?> 24 24 25 <p><?php esc_html_e('No sheets available at this time.', ' sign-up-sheets'); ?></p>25 <p><?php esc_html_e('No sheets available at this time.', 'fdsus'); ?></p> 26 26 27 27 <?php else: ?> … … 32 32 <thead> 33 33 <tr> 34 <th class="column-title"><?php esc_html_e('Title', ' sign-up-sheets'); ?></th>35 <th class="column-date"><?php esc_html_e('Date', ' sign-up-sheets'); ?></th>36 <th class="column-open_spots"><?php esc_html_e('Open Spots', ' sign-up-sheets'); ?></th>34 <th class="column-title"><?php esc_html_e('Title', 'fdsus'); ?></th> 35 <th class="column-date"><?php esc_html_e('Date', 'fdsus'); ?></th> 36 <th class="column-open_spots"><?php esc_html_e('Open Spots', 'fdsus'); ?></th> 37 37 <th class="column-view_link"> </th> 38 38 </tr> … … 45 45 $endDate = null; 46 46 if (empty($sheet->dlssus_end_date)) { 47 $displayDate = esc_html__('N/A', ' sign-up-sheets');47 $displayDate = esc_html__('N/A', 'fdsus'); 48 48 } else { 49 49 $displayDate = (($sheet->dlssus_start_date == $sheet->dlssus_end_date) ? null : date(get_option('date_format'), strtotime($sheet->dlssus_start_date)) . ' - '); … … 61 61 <td class="column-view_link"> 62 62 <?php if ($openSpots > 0): ?> 63 <a href="<?php echo esc_url(get_the_permalink($sheet->ID)); ?>" class="fdsus-signup-cta"><?php esc_html_e('View & sign-up', ' sign-up-sheets'); ?><span class="screen-reader-text"> <?php63 <a href="<?php echo esc_url(get_the_permalink($sheet->ID)); ?>" class="fdsus-signup-cta"><?php esc_html_e('View & sign-up', 'fdsus'); ?><span class="sr-only"> <?php 64 64 /* translators: %s is replaced with the sheet title */ 65 echo esc_html(sprintf(__('for %s', ' sign-up-sheets'), $sheet->post_title)); ?></span></a>65 echo esc_html(sprintf(__('for %s', 'fdsus'), $sheet->post_title)); ?></span></a> 66 66 <?php else: ?> 67 <?php esc_html_e('✔ Filled', ' sign-up-sheets'); ?>67 <?php esc_html_e('✔ Filled', 'fdsus'); ?> 68 68 <?php endif; ?> 69 69 </td> -
sign-up-sheets/trunk/theme-files/fdsus/sheet-none.php
r3233567 r3234219 13 13 ?> 14 14 15 <p><?php esc_attr_e('Sign-up sheet not found.', ' sign-up-sheets'); ?></p>15 <p><?php esc_attr_e('Sign-up sheet not found.', 'fdsus'); ?></p> -
sign-up-sheets/trunk/theme-files/fdsus/sheet.php
r3233567 r3234219 20 20 <p class="dls-sus-backlink"> 21 21 <a href="<?php echo esc_url(remove_query_arg(array('sheet_id', 'task_id'), $_SERVER['REQUEST_URI'])); ?>"> 22 <?php esc_attr_e('« View all', ' sign-up-sheets'); ?>22 <?php esc_attr_e('« View all', 'fdsus'); ?> 23 23 </a> 24 24 </p> -
sign-up-sheets/trunk/theme-files/fdsus/sign-up-form-header.php
r3233567 r3234219 18 18 19 19 if (!is_admin()): ?> 20 <h3><?php esc_html_e('Sign-up below', ' sign-up-sheets'); ?></h3>20 <h3><?php esc_html_e('Sign-up below', 'fdsus'); ?></h3> 21 21 <p> 22 <?php esc_html_e('You are signing up for...', ' sign-up-sheets'); ?>22 <?php esc_html_e('You are signing up for...', 'fdsus'); ?> 23 23 <em class="dls-sus-task-title"><?php echo wp_kses_post($signup_titles_str); ?></em> 24 24 </p> -
sign-up-sheets/trunk/theme-files/fdsus/sign-up-form.php
r3233567 r3234219 9 9 * @see https://www.fetchdesigns.com/sign-up-sheets-pro-overriding-templates-in-your-theme/ 10 10 * @since 2.2 (plugin version) 11 * @version 1. 3.0 (template file version)11 * @version 1.2.0 (template file version) 12 12 */ 13 13 … … 31 31 <p> 32 32 <label for="signup_firstname" class="signup_firstname"> 33 <?php esc_html_e('First Name', ' sign-up-sheets'); ?>33 <?php esc_html_e('First Name', 'fdsus'); ?> 34 34 <span class="dls-sus-required-icon">*</span> 35 35 </label> … … 41 41 <p> 42 42 <label for="signup_lastname" class="signup_lastname"> 43 <?php esc_html_e('Last Name', ' sign-up-sheets'); ?>43 <?php esc_html_e('Last Name', 'fdsus'); ?> 44 44 <span class="dls-sus-required-icon">*</span> 45 45 </label> … … 52 52 <p> 53 53 <label for="signup_email" class="signup_email"> 54 <?php esc_html_e('E-mail', 'sign-up-sheets'); ?> 55 <?php if ($sheet->isEmailRequired()): ?> 56 <span class="dls-sus-required-icon">*</span> 57 <?php endif; ?> 54 <?php esc_html_e('E-mail', 'fdsus'); ?> 55 <span class="dls-sus-required-icon">*</span> 58 56 </label> 59 57 <input type="email" id="signup_email" class="signup_email" name="signup_email" 60 maxlength="100" <?php if ($sheet->isEmailRequired()) echo 'required aria-required="true"'; ?>autocomplete="email"58 maxlength="100" required aria-required="true" autocomplete="email" 61 59 value="<?php echo esc_attr($initial['email']); ?>"/> 62 60 </p> … … 70 68 <p> 71 69 <label for="signup_phone" class="signup_phone"> 72 <?php esc_html_e('Phone', ' sign-up-sheets'); ?>70 <?php esc_html_e('Phone', 'fdsus'); ?> 73 71 <?php if ($sheet->isPhoneRequired()): ?> 74 72 <span class="dls-sus-required-icon">*</span> … … 85 83 <p> 86 84 <label for="signup_address" class="signup_address"> 87 <?php esc_html_e('Address', ' sign-up-sheets'); ?>85 <?php esc_html_e('Address', 'fdsus'); ?> 88 86 <?php if ($sheet->isAddressRequired()): ?> 89 87 <span class="dls-sus-required-icon">*</span> … … 97 95 <p class="dls-sus-city"> 98 96 <label for="signup_city" class="signup_city"> 99 <?php esc_html_e('City', ' sign-up-sheets'); ?>97 <?php esc_html_e('City', 'fdsus'); ?> 100 98 <?php if ($sheet->isAddressRequired()): ?> 101 99 <span class="dls-sus-required-icon">*</span> … … 109 107 <p class="dls-sus-state"> 110 108 <label for="signup_state" class="signup_state"> 111 <?php esc_html_e('State', ' sign-up-sheets'); ?>109 <?php esc_html_e('State', 'fdsus'); ?> 112 110 <?php if ($sheet->isAddressRequired()): ?> 113 111 <span class="dls-sus-required-icon">*</span> … … 126 124 <p class="dls-sus-zip"> 127 125 <label for="signup_zip" class="signup_zip"> 128 <?php esc_html_e('Zip', ' sign-up-sheets'); ?>126 <?php esc_html_e('Zip', 'fdsus'); ?> 129 127 <?php if ($sheet->isAddressRequired()): ?> 130 128 <span class="dls-sus-required-icon">*</span> … … 145 143 ?> 146 144 147 <p><span class="dls-sus-required-icon">*</span> = <?php esc_html_e('required', ' sign-up-sheets'); ?></p>145 <p><span class="dls-sus-required-icon">*</span> = <?php esc_html_e('required', 'fdsus'); ?></p> 148 146 149 147 <p class="submit"> … … 161 159 value="<?php echo esc_html($submit_button_text); ?>"/> 162 160 <?php if (!is_admin() && !empty($go_back_url)): ?> 163 <?php esc_html_e('or', ' sign-up-sheets'); ?>161 <?php esc_html_e('or', 'fdsus'); ?> 164 162 <a href="<?php echo esc_url($go_back_url); ?>" class="dls-sus-backlink-from-task"> 165 <?php esc_html_e('« go back to the Sign-Up Sheet', ' sign-up-sheets'); ?>163 <?php esc_html_e('« go back to the Sign-Up Sheet', 'fdsus'); ?> 166 164 </a> 167 165 <?php endif; ?> -
sign-up-sheets/trunk/theme-files/fdsus/user_sign_ups.php
r3233567 r3234219 25 25 <thead> 26 26 <tr> 27 <th class="fdssus-column-date"><?php e sc_html_e('Date Added', 'sign-up-sheets') ?></th>27 <th class="fdssus-column-date"><?php echo __('Date Added', 'fdsus') ?></th> 28 28 <th class="fdssus-column-sheet-task"> 29 29 <?php echo esc_html($taskTitleLabel) ?> 30 30 </th> 31 <th class="fdssus-column-signup"><?php e sc_html_e('Sign-up Details', 'sign-up-sheets') ?></th>31 <th class="fdssus-column-signup"><?php echo __('Sign-up Details', 'fdsus') ?></th> 32 32 </tr> 33 33 </thead> … … 38 38 <?php echo $row['date_added'] 39 39 ? date(get_option('date_format'), strtotime($row['date_added'])) 40 : esc_html__('N/A', 'sign-up-sheets') ?>40 : __('N/A', 'fdsus') ?> 41 41 </td> 42 42 <td class="fdsus-col-sheet"> … … 88 88 89 89 <?php if ($row['sheet']->isExpired() || $row['task']->isExpired()): ?> 90 <span class="fdsus-signups-closed"><?php _e('Sign-ups Closed', ' sign-up-sheets') ?></span>90 <span class="fdsus-signups-closed"><?php _e('Sign-ups Closed', 'fdsus') ?></span> 91 91 <?php endif; ?> 92 92 </td>
Note: See TracChangeset
for help on using the changeset viewer.