Changeset 2087915
- Timestamp:
- 05/14/2019 10:32:54 PM (7 years ago)
- Location:
- makemydonation-imo/trunk
- Files:
-
- 2 edited
-
mmdimo.php (modified) (2 diffs)
-
options.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
makemydonation-imo/trunk/mmdimo.php
r2087914 r2087915 72 72 register_setting( 'mmdimo', 'mmdimo_post_type' ); 73 73 register_setting( 'mmdimo', 'mmdimo_default_state' ); 74 register_setting( 'mmdimo', 'mmdimo_case_check_default' ); 74 75 } 75 76 … … 138 139 } 139 140 140 $mmdimo_case_checked = TRUE;141 $mmdimo_case_checked = get_option('mmdimo_case_check_default') !== ''; 141 142 if ( isset( $mmdimo_case ) && $mmdimo_case ) { 142 143 if ( isset( $mmdimo_case['status'] ) && $mmdimo_case['status'] == 0 ) { -
makemydonation-imo/trunk/options.php
r1394905 r2087915 55 55 </select> 56 56 <p class="description"><?php _e( 'If you are using Custom Post Types for your funeral home obituaries, chose the post type here. If you leave the default option, you will be allowed to manually create a funeral home case for all post types.', 'mmdimo' ); ?></p> 57 </td> 58 </tr> 59 60 <tr> 61 <th scope="row"><label for="mmdimo_case_check_default"><?php _e( 'Default Settings', 'mmdimo' ); ?></label></th> 62 <td> 63 <?php $mmdimo_case_check_default = get_option('mmdimo_case_check_default') !== ''; ?> 64 <p> 65 <label> 66 <input type="checkbox" name="mmdimo_case_check_default" id="mmdimo-case-check-default" value="1" <?php if ($mmdimo_case_check_default) { echo 'checked="checked"'; } ?>> 67 <?php _e( 'Allow Memorial Donations', 'mmdimo' ); ?> 68 </label> 69 </p> 70 <p class="description"><?php _e( 'Enable memorial donations by default when creating a new post.', 'mmdimo' ); ?></p> 57 71 </td> 58 72 </tr>
Note: See TracChangeset
for help on using the changeset viewer.