Plugin Directory

Changeset 3809480


Ignore:
Timestamp:
11/18/2026 02:25:00 PM (less than one hour ago)
Author:
andy_moyle
Message:

5.1.12

Location:
church-admin
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • church-admin/tags/5.1.12/church-admin.php

    r3803612 r3809480  
    55Plugin URI: http://www.churchadminplugin.com/
    66Description: Manage church life with address book, schedule, classes, small groups, and advanced communication tools - bulk email and sms.
    7 Version: 5.1.11
     7Version: 5.1.12
    88Tags: sermons, sermons, prayer, membership, SMS, Bible, events, calendar, email, small groups, contact form, giving, administration, management, child protection, safeguarding
    99Author: Andy Moyle
    … …  
    5151
    5252*/
    53 if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.11');}
     53if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.12');}
    5454
    5555define('CA_PAYPAL',"https://www.paypal.com/cgi-bin/webscr");
  • church-admin/tags/5.1.12/display/calendar-list.php

    r3803612 r3809480  
    122122        {//Chooser
    123123                $out.='<table class="ca-calendar-list-chooser widefat striped bordered"><tr><td class="ca-calendar-list-prev">';
    124                 $out.='<form action="'.get_permalink().'"  method="post"><input type="hidden" name="date" value="'.$prevDisplay.'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>';
     124                $out.='<form action="'.get_permalink().'"  method="post"><input type="hidden" name="date" value="'.esc_attr($prevDisplay).'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>';
    125125                       
    126126
  • church-admin/tags/5.1.12/includes/directory.php

    r3803612 r3809480  
    28502850        foreach( $church_admin_marital_status AS $id=>$type)
    28512851        {
    2852                         $out.='<option value="'.$id.'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n";
     2852                        $out.='<option value="'.esc_attr($id).'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n";
    28532853        }
    28542854        $out.='</select></div>'."\r\n";
    … …  
    28632863        if(!empty( $data->people_type_id)&& $id==$data->people_type_id)
    28642864        {
    2865                 $first='<option value="'.$id.'" selected="selected">'.$type.'</option>'."\r\n";
    2866         }else $option.='<option value="'.$id.'">'.$type.'</option>'."\r\n";
     2865                $first='<option value="'.esc_attr($id).'" selected="selected">'.$type.'</option>'."\r\n";
     2866        }else $option.='<option value="'.esc_attr($id).'">'.$type.'</option>'."\r\n";
    28672867
    28682868
    … …  
    28952895        {
    28962896                if(!empty( $data->member_type_id) && $data->member_type_id==$id)
    2897                 {       $first.= '<option value="'.$id.'" selected="selected" >'.$type.'</option>';
     2897                {       $first.= '<option value="'.esc_attr($id).'" selected="selected" >'.$type.'</option>';
    28982898                }
    28992899                else
    29002900                {
    2901                         $option.='<option value="'.$id.'">'.$type.'</option>';
     2901                        $option.='<option value="'.esc_attr($id).'">'.$type.'</option>';
    29022902                }
    29032903        }
    … …  
    53415341
    53425342                }
    5343                 echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'.__('Save','church-admin').'" ></p></form>';
     5343                echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'.esc_attr(__('Save','church-admin')).'" ></p></form>';
    53445344        }
    53455345
    … …  
    53855385                echo'<p><input type="checkbox" name="bible_readings">&nbsp;'.esc_html('New Bible readings by email','church-admin').'</p>';
    53865386               
    5387                 echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'.__('Save','church-admin').'"></p></form>';
     5387                echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'.esc_attr(__('Save','church-admin')).'"></p></form>';
    53885388        }
    53895389}
  • church-admin/tags/5.1.12/includes/email.php

    r3809470 r3809480  
    479479                echo'<p>'.esc_html('Please note schedule below uses "wp-cron" which sends the emails behind the scenes when the website is viewed after the schedule time.','church-admin').'</p>';
    480480                echo'<div class="church-admin-form-group"><label>'.esc_html( __('Or schedule?','church-admin' ) ).'</label>';
     481                // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post().
    481482                echo church_admin_date_picker(null,'send_date',FALSE,wp_date('Y-m-d'),NULL,'send-date','send_date',FALSE,'send-date',NULL,NULL);
    482483                //( $db_date=null,$name=null,$array=FALSE,$start=NULL,$end=NULL,$class=NULL,$id=NULL,$disabled=FALSE,$datawhat=NULL,$dataid=NULL,$dataCustomID=NULL)
    … …  
    522523    }
    523524        $member_type=church_admin_member_types_array();
     525       
    524526        echo'<p><label>'.esc_html( __('Type in recipient names, separated by a comma (filters will be ignored)','church-admin' ) ).'</label>';
     527        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post().
    525528        echo church_admin_autocomplete('recipients','friends','to','').'</p>';
    526529        echo'<p>'.esc_html( __('Or use the filters below','church-admin' ) ).'</p>';
  • church-admin/tags/5.1.12/includes/settings.php

    r3809470 r3809480  
    10101010        echo'<p>'.esc_html( __('If you add people types to "Adult", "Child"/"Teen" the shortcode [church_admin type="address-list"] will not work as expected! Use [church_admin type="directory"] instead','church-admin' ) ).'</p>';
    10111011        echo'<p><a class="button-primary" href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php&section=settings&action=edit_people_type','edit_people_type')).'">'.esc_html( __('Add People Type','church-admin' ) ).'</a></p>';
    1012         $thead='<tr><th>'.esc_html( __('Edit','church-admin' ) ).'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'.esc_html( __('People Type','church-admin' ) ).'</th></tr>';
    1013         echo'<table class="widefat"><thead>'.$thead.'</thead><tfoot>'.$thead.'</tfoot><tbody>';
     1012        $thead='<tr><th>'. __('Edit','church-admin' ) .'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'. __('People Type','church-admin' ) .'</th></tr>';
     1013        echo'<table class="widefat"><thead>'.wp_kses_post($thead).'</thead><tbody>';
    10141014        $people_types=get_option('church_admin_people_type');
    10151015        foreach( $people_types AS $ID=>$type)
    … …  
    10171017                $edit='<a href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php&section=settings&action=edit_people_type&ID='.(int)$ID,'edit_people_type')).'">'.esc_html( __('Edit','church-admin' ) ).'</a>';
    10181018                if( $ID>2)  {$delete='<a onclick="return confirm(\''.esc_js( __('Are you sure?','church-admin' ) ).'\');" href="'.wp_nonce_url('admin.php?page=church_admin/index.php&section=settings&action=delete_people_type&ID='.(int)$ID,'delete_people_type').'">'.esc_html( __('Delete','church-admin' ) ).'</a>';}else{$delete='&nbsp;';}
    1019                 echo'<tr><td>'.$edit.'</td><td>'.$delete.'</td><td>'.esc_html( $type).'</td></tr>';
     1019                echo'<tr><td>'.wp_kses_post($edit).'</td><td>'.wp_kses_post($delete).'</td><td>'.esc_html( $type).'</td></tr>';
    10201020        }
    1021         echo'</tbody></table>';
     1021        echo'</tbody><tfoot>'.wp_kses_post($thead).'</tfoot></table>';
    10221022       
    10231023 }
  • church-admin/trunk/church-admin.php

    r3803612 r3809480  
    55Plugin URI: http://www.churchadminplugin.com/
    66Description: Manage church life with address book, schedule, classes, small groups, and advanced communication tools - bulk email and sms.
    7 Version: 5.1.11
     7Version: 5.1.12
    88Tags: sermons, sermons, prayer, membership, SMS, Bible, events, calendar, email, small groups, contact form, giving, administration, management, child protection, safeguarding
    99Author: Andy Moyle
    … …  
    5151
    5252*/
    53 if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.11');}
     53if(!defined('CHURCH_ADMIN_VERSION')){define('CHURCH_ADMIN_VERSION','5.1.12');}
    5454
    5555define('CA_PAYPAL',"https://www.paypal.com/cgi-bin/webscr");
  • church-admin/trunk/display/calendar-list.php

    r3803612 r3809480  
    122122        {//Chooser
    123123                $out.='<table class="ca-calendar-list-chooser widefat striped bordered"><tr><td class="ca-calendar-list-prev">';
    124                 $out.='<form action="'.get_permalink().'"  method="post"><input type="hidden" name="date" value="'.$prevDisplay.'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>';
     124                $out.='<form action="'.get_permalink().'"  method="post"><input type="hidden" name="date" value="'.esc_attr($prevDisplay).'" /><input class="calendar-date-switcher" type="submit" value="'.esc_attr( __('Previous','church-admin' ) ).'" /></form></td>';
    125125                       
    126126
  • church-admin/trunk/includes/directory.php

    r3803612 r3809480  
    28502850        foreach( $church_admin_marital_status AS $id=>$type)
    28512851        {
    2852                         $out.='<option value="'.$id.'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n";
     2852                        $out.='<option value="'.esc_attr($id).'" '.selected($current_marital_status,$id,FALSE).'>'.$type.'</option>'."\r\n";
    28532853        }
    28542854        $out.='</select></div>'."\r\n";
    … …  
    28632863        if(!empty( $data->people_type_id)&& $id==$data->people_type_id)
    28642864        {
    2865                 $first='<option value="'.$id.'" selected="selected">'.$type.'</option>'."\r\n";
    2866         }else $option.='<option value="'.$id.'">'.$type.'</option>'."\r\n";
     2865                $first='<option value="'.esc_attr($id).'" selected="selected">'.$type.'</option>'."\r\n";
     2866        }else $option.='<option value="'.esc_attr($id).'">'.$type.'</option>'."\r\n";
    28672867
    28682868
    … …  
    28952895        {
    28962896                if(!empty( $data->member_type_id) && $data->member_type_id==$id)
    2897                 {       $first.= '<option value="'.$id.'" selected="selected" >'.$type.'</option>';
     2897                {       $first.= '<option value="'.esc_attr($id).'" selected="selected" >'.$type.'</option>';
    28982898                }
    28992899                else
    29002900                {
    2901                         $option.='<option value="'.$id.'">'.$type.'</option>';
     2901                        $option.='<option value="'.esc_attr($id).'">'.$type.'</option>';
    29022902                }
    29032903        }
    … …  
    53415341
    53425342                }
    5343                 echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'.__('Save','church-admin').'" ></p></form>';
     5343                echo'<p><input type="hidden" name="save" value="yes"><input class="button-primary"type="submit" value="'.esc_attr(__('Save','church-admin')).'" ></p></form>';
    53445344        }
    53455345
    … …  
    53855385                echo'<p><input type="checkbox" name="bible_readings">&nbsp;'.esc_html('New Bible readings by email','church-admin').'</p>';
    53865386               
    5387                 echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'.__('Save','church-admin').'"></p></form>';
     5387                echo'<p><input type="hidden" name="save" value="yes"><input type="submit" class="button-primary" value="'.esc_attr(__('Save','church-admin')).'"></p></form>';
    53885388        }
    53895389}
  • church-admin/trunk/includes/email.php

    r3809470 r3809480  
    479479                echo'<p>'.esc_html('Please note schedule below uses "wp-cron" which sends the emails behind the scenes when the website is viewed after the schedule time.','church-admin').'</p>';
    480480                echo'<div class="church-admin-form-group"><label>'.esc_html( __('Or schedule?','church-admin' ) ).'</label>';
     481                // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post().
    481482                echo church_admin_date_picker(null,'send_date',FALSE,wp_date('Y-m-d'),NULL,'send-date','send_date',FALSE,'send-date',NULL,NULL);
    482483                //( $db_date=null,$name=null,$array=FALSE,$start=NULL,$end=NULL,$class=NULL,$id=NULL,$disabled=FALSE,$datawhat=NULL,$dataid=NULL,$dataCustomID=NULL)
    … …  
    522523    }
    523524        $member_type=church_admin_member_types_array();
     525       
    524526        echo'<p><label>'.esc_html( __('Type in recipient names, separated by a comma (filters will be ignored)','church-admin' ) ).'</label>';
     527        // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped earlier with wp_kses_post().
    525528        echo church_admin_autocomplete('recipients','friends','to','').'</p>';
    526529        echo'<p>'.esc_html( __('Or use the filters below','church-admin' ) ).'</p>';
  • church-admin/trunk/includes/settings.php

    r3809470 r3809480  
    10101010        echo'<p>'.esc_html( __('If you add people types to "Adult", "Child"/"Teen" the shortcode [church_admin type="address-list"] will not work as expected! Use [church_admin type="directory"] instead','church-admin' ) ).'</p>';
    10111011        echo'<p><a class="button-primary" href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php&section=settings&action=edit_people_type','edit_people_type')).'">'.esc_html( __('Add People Type','church-admin' ) ).'</a></p>';
    1012         $thead='<tr><th>'.esc_html( __('Edit','church-admin' ) ).'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'.esc_html( __('People Type','church-admin' ) ).'</th></tr>';
    1013         echo'<table class="widefat"><thead>'.$thead.'</thead><tfoot>'.$thead.'</tfoot><tbody>';
     1012        $thead='<tr><th>'. __('Edit','church-admin' ) .'</th><th>'.esc_html( __('Delete','church-admin' ) ).'</th><th>'. __('People Type','church-admin' ) .'</th></tr>';
     1013        echo'<table class="widefat"><thead>'.wp_kses_post($thead).'</thead><tbody>';
    10141014        $people_types=get_option('church_admin_people_type');
    10151015        foreach( $people_types AS $ID=>$type)
    … …  
    10171017                $edit='<a href="'.esc_url(wp_nonce_url('admin.php?page=church_admin/index.php&section=settings&action=edit_people_type&ID='.(int)$ID,'edit_people_type')).'">'.esc_html( __('Edit','church-admin' ) ).'</a>';
    10181018                if( $ID>2)  {$delete='<a onclick="return confirm(\''.esc_js( __('Are you sure?','church-admin' ) ).'\');" href="'.wp_nonce_url('admin.php?page=church_admin/index.php&section=settings&action=delete_people_type&ID='.(int)$ID,'delete_people_type').'">'.esc_html( __('Delete','church-admin' ) ).'</a>';}else{$delete='&nbsp;';}
    1019                 echo'<tr><td>'.$edit.'</td><td>'.$delete.'</td><td>'.esc_html( $type).'</td></tr>';
     1019                echo'<tr><td>'.wp_kses_post($edit).'</td><td>'.wp_kses_post($delete).'</td><td>'.esc_html( $type).'</td></tr>';
    10201020        }
    1021         echo'</tbody></table>';
     1021        echo'</tbody><tfoot>'.wp_kses_post($thead).'</tfoot></table>';
    10221022       
    10231023 }
Note: See TracChangeset for help on using the changeset viewer.