Changeset 2906373
- Timestamp:
- 04/30/2023 04:59:52 PM (3 years ago)
- Location:
- church-admin/trunk
- Files:
-
- 4 edited
-
display/new-sermon-podcast.php (modified) (5 diffs)
-
includes/rota.new.php (modified) (3 diffs)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
church-admin/trunk/display/new-sermon-podcast.php
r2905192 r2906373 18 18 $order=!empty($_REQUEST['order'])?sanitize_text_field($_REQUEST['order']):'desc'; 19 19 $series=!empty($_REQUEST['series'])?urldecode(sanitize_text_field($_REQUEST['series']) ):null; 20 $series_id= null;20 $series_id=!empty($_REQUEST['series_id'])?sanitize_text_field($_REQUEST['series_id']) :null; 21 21 $speaker=!empty($_REQUEST['speaker'])?sanitize_text_field($_REQUEST['speaker']):null; 22 22 //$book=!empty($_REQUEST['book'])?sanitize_text_field($_REQUEST['book']):'book'; … … 41 41 42 42 // series 43 $series_results = $wpdb->get_results('SELECT * FROM '.CA_SERM_TBL );43 $series_results = $wpdb->get_results('SELECT * FROM '.CA_SERM_TBL.' ORDER BY series_name'); 44 44 45 45 if(!empty($series_results)) … … 57 57 $series= null; 58 58 } 59 59 60 60 // speaker 61 61 $speakers_results=$wpdb->get_results('SELECT speaker FROM '.CA_FIL_TBL); … … 242 242 { 243 243 //series 244 $out.='<div class="church-admin-sermon-filter"><select name="series "><option value="0">'.esc_html(__('Choose a series','church-admin')).'</option>';244 $out.='<div class="church-admin-sermon-filter"><select name="series_id"><option value="0">'.esc_html(__('Choose a series','church-admin')).'</option>'; 245 245 foreach($stored_series AS $id=>$series_name){ 246 246 $out.='<option value="'.esc_attr($id).'" '.selected($series_id,$id,FALSE).'/>'.esc_html($series_name).'</option>'; … … 263 263 264 264 $video_detail = !empty($row->video_url) ? church_admin_generateVideoEmbedUrl( $row->video_url) : null; 265 265 $video_or_image=''; 266 266 //image 267 267 $image = '<img src="'.esc_url(plugins_url('/images/sermon.jpg',dirname(__FILE__) )).'"/>';//default image -
church-admin/trunk/includes/rota.new.php
r2899489 r2906373 523 523 } 524 524 $team_contact_ids=$wpdb->get_results('SELECT a.*,b.ID FROM '.CA_RST_TBL.' a, '.CA_MET_TBL.' b WHERE b.ID=a.ministries AND b.people_id="'.(int)$person->people_id.'" AND b.meta_type="team_contact" GROUP BY a.rota_task ORDER by a.rota_task'); 525 525 526 if(church_admin_level_check('Rota')){ 526 527 … … 537 538 if($wpdb->num_rows==1) 538 539 { 539 $rota_task_id=$team_contact_ids[0] ['rota_id'];540 $rota_task_id=$team_contact_ids[0]->rota_id; 540 541 } 541 542 … … 610 611 $errors=array(); 611 612 foreach($dates AS $date){ 612 $wpdb->query('UPDATE '.CA_ROTA_TBL.' SET people_id=NULL WHERE rota_date="'.esc_sql($date->rota_date).'" AND service_id="'.(int)$service_id.'" AND rota_task_id="'.(int)$rota_task_id.'"'); 613 $wpdb->query('DELETE FROM '.CA_ROTA_TBL.' WHERE rota_date="'.esc_sql($date->rota_date).'" AND service_id="'.(int)$service_id.'" AND rota_task_id="'.(int)$rota_task_id.'"'); 614 613 615 $people=array(); 614 616 if(!empty($_POST['j'.$date->rota_date])){ -
church-admin/trunk/index.php
r2905693 r2906373 5 5 Plugin URI: http://www.churchadminplugin.com/ 6 6 Description: Manage church life with address book, schedule, classes, small groups, and advanced communication tools - bulk email and sms. 7 Version: 3.7.1 87 Version: 3.7.19 8 8 Tags: sermons, sermons, prayer, membership, SMS, schedule, rota, Bible, events, calendar, email, small groups, contact form, giving, administration, management 9 9 Author: Andy Moyle … … 59 59 require_once( plugin_dir_path( __FILE__ ).'includes/enqueue.php'); 60 60 61 $church_admin_version = "3.7.1 8";61 $church_admin_version = "3.7.19"; 62 62 $church_admin_url='admin.php?page=church_admin/index.php'; 63 63 $people_type=get_option('church_admin_people_type'); -
church-admin/trunk/readme.txt
r2905693 r2906373 71 71 72 72 == Changelog == 73 = 3.7.19 = 74 * Fix ministry rota edit shortcode bug 75 * Fix series dropdown in new style sermons 73 76 = 3.7.18 = 74 77 * Improved birthdays display calculation and ordering
Note: See TracChangeset
for help on using the changeset viewer.