Changeset 2548915
- Timestamp:
- 06/16/2021 12:30:35 PM (4 years ago)
- Location:
- attendance-management-for-lifterlms
- Files:
-
- 37 added
- 11 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/LICENSE (added)
-
tags/1.0.1/README.md (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/css (added)
-
tags/1.0.1/assets/css/llmsat-admin-style.css (added)
-
tags/1.0.1/assets/css/llmsat-front-style.css (added)
-
tags/1.0.1/assets/js (added)
-
tags/1.0.1/assets/js/llmsat-admin-script.js (added)
-
tags/1.0.1/assets/js/llmsat-front-script.js (added)
-
tags/1.0.1/assets/screenshot-1.PNG (added)
-
tags/1.0.1/assets/screenshot-2.PNG (added)
-
tags/1.0.1/assets/screenshot-3.PNG (added)
-
tags/1.0.1/assets/screenshot-4.PNG (added)
-
tags/1.0.1/assets/screenshot-5.PNG (added)
-
tags/1.0.1/assets/screenshot-6.PNG (added)
-
tags/1.0.1/assets/screenshot-7.PNG (added)
-
tags/1.0.1/assets/screenshot-8.PNG (added)
-
tags/1.0.1/assets/screenshot-9.PNG (added)
-
tags/1.0.1/attendance-management-for-lifterlms.php (added)
-
tags/1.0.1/includes (added)
-
tags/1.0.1/includes/helper.php (added)
-
tags/1.0.1/includes/integration (added)
-
tags/1.0.1/includes/integration/llmsat-allow-integration.php (added)
-
tags/1.0.1/includes/integration/llmsat-core-attendace.php (added)
-
tags/1.0.1/includes/integration/llmsat-metabox.php (added)
-
tags/1.0.1/includes/integration/llmsat-settings.php (added)
-
tags/1.0.1/includes/integration/llmsat-shortcodes.php (added)
-
tags/1.0.1/includes/integration/llmsat-views.php (added)
-
tags/1.0.1/includes/settings (added)
-
tags/1.0.1/includes/settings/options.php (added)
-
tags/1.0.1/includes/settings/templates (added)
-
tags/1.0.1/includes/settings/templates/general.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/templates (added)
-
tags/1.0.1/templates/default.php (added)
-
tags/1.0.1/unistall.php (added)
-
trunk/README.md (modified) (2 diffs)
-
trunk/attendance-management-for-lifterlms.php (modified) (4 diffs)
-
trunk/includes/integration/llmsat-allow-integration.php (modified) (2 diffs)
-
trunk/includes/integration/llmsat-core-attendace.php (modified) (7 diffs)
-
trunk/includes/integration/llmsat-metabox.php (modified) (2 diffs)
-
trunk/includes/integration/llmsat-settings.php (modified) (4 diffs)
-
trunk/includes/integration/llmsat-shortcodes.php (modified) (5 diffs)
-
trunk/includes/integration/llmsat-views.php (modified) (2 diffs)
-
trunk/includes/settings/options.php (modified) (7 diffs)
-
trunk/includes/settings/templates/general.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
attendance-management-for-lifterlms/trunk/README.md
r2209445 r2548915 1 1 # Attendance Management For LifterLMS 2 Contributors: muhammadfaizanhaidar, fahdi 3 Tags: lifterlms, attendance, mark, award, reward, engagement, submission, nomination 4 Requires at least: 4.0 5 Donate link: https://faizanhaidar.com 6 Tested up to: 5.3 7 Stable tag: 1.0.0 8 License: GPLv2 or later 9 Requires PHP: 7.2 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html 2 ## Contributors: 3 muhammadfaizanhaidar, fahdi 4 ## Tags: 5 lifterlms, attendance, mark, award, reward, engagement, submission, nomination 6 ## Requires at least: 7 4.0 8 ## Donate link: 9 https://faizanhaidar.com 10 ## Tested up to: 11 7.2 12 ## Stable tag: 13 1.0.1 14 ## License: 15 GPLv2 or later 16 ## Requires PHP: 17 7.2 18 ## License URI: 19 http://www.gnu.org/licenses/gpl-3.0.html 11 20 12 21 The Attendance Management For LifterLMS addon lets your user to mark their attendances in different courses.Admin & users can keep track of their attendances. You can now make your e-learning platform even more engaging. … … 62 71 **1.0.0** 63 72 - Intial release 73 **1.0.1** 74 - Added compatibility with latest version of WordPress and LifterLMS. 75 - Replaced text domain constant with string. -
attendance-management-for-lifterlms/trunk/attendance-management-for-lifterlms.php
r2209445 r2548915 11 11 * Plugin URI: https://github.com/MuhammadFaizanHaidar/attendance-management-for-lifterlms 12 12 * Description: This addon provides the Attendance functionality for LifterLMS registered users 13 * Version: 1.0. 013 * Version: 1.0.1 14 14 * Author: Muhammad Faizan Haidar 15 15 * Author URI: https://faizanhaidar.com … … 18 18 * License URI: https://www.gnu.org/licenses/gpl-3.0.html 19 19 * Requires at least: 4.8 20 * Tested up to: 5.3.020 * Tested up to: 7.2 21 21 */ 22 22 … … 37 37 * @var const string 38 38 */ 39 const VERSION = '1.0. 0';39 const VERSION = '1.0.1'; 40 40 41 41 /** … … 265 265 public function settings_link( $links ) { 266 266 $settings_link = '<a href="admin.php?page=lifterlms-attendance-management-options">' 267 . __( 'Settings', LLMS_At_TEXT_DOMAIN) . '</a>';267 . __( 'Settings', 'llms-attendance' ) . '</a>'; 268 268 array_unshift( $links, $settings_link ); 269 269 -
attendance-management-for-lifterlms/trunk/includes/integration/llmsat-allow-integration.php
r2209445 r2548915 16 16 public function __construct() { 17 17 18 $this->title = __( 'LifterLMS Attendance', LLMS_At_TEXT_DOMAIN);19 $this->description = sprintf( __( 'Allows Attendance facility on lifterlms courses', LLMS_At_TEXT_DOMAIN),18 $this->title = __( 'LifterLMS Attendance', 'llms-attendance' ); 19 $this->description = sprintf( __( 'Allows Attendance facility on lifterlms courses', 'llms-attendance' ), 20 20 '<a href="https://lifterlms.com/docs/lifterlms-and-lifterlms_attendance/" target="_blank">', '</a>' ); 21 21 … … 27 27 public function configure() { 28 28 29 $this->title = __( 'LifterLMS Attendance Options', LLMS_At_TEXT_DOMAIN);29 $this->title = __( 'LifterLMS Attendance Options', 'llms-attendance' ); 30 30 $this->description = sprintf( __( 'Allows Attendance facility on lifterlms courses', 'lifterlms' ), 31 31 '<a href="https://lifterlms.com/docs/lifterlms-and-lifter_attendance/" target="_blank">', '</a>' ); -
attendance-management-for-lifterlms/trunk/includes/integration/llmsat-core-attendace.php
r2209445 r2548915 87 87 // delete_user_meta( $user_id, $count_key, $count_value ); 88 88 // } 89 $attendance_button_text = __( "Mark Present", LLMS_At_TEXT_DOMAIN);89 $attendance_button_text = __( "Mark Present", 'llms-attendance' ); 90 90 $attendance_button_text = apply_filters( "llms_attendance_button_text", $attendance_button_text ); 91 91 $output = ""; … … 108 108 $user_id = intval( sanitize_text_field( $_POST['uid'] ) ); 109 109 $course_id = sanitize_text_field( $_POST['pid'] ); 110 110 111 if ( $user_id && $course_id ) { 111 112 … … 122 123 $days = cal_days_in_month( CAL_GREGORIAN, $today_month, $today_year ); 123 124 $attendance = get_user_meta( $user_id, $meta_key, true ); 124 125 if ( null !== get_user_meta( $user_id, $meta_key_count, true ) ) { 125 126 127 if ( null != get_user_meta( $user_id, $meta_key_count, true ) ) { 126 128 $count = get_user_meta( $user_id, $meta_key_count, true ); 127 129 $count = $count + 1; … … 129 131 $count = 1; 130 132 } 133 131 134 /** 132 135 * Mark First Attendance Date … … 135 138 update_user_meta( $user_id, $first_mark_key, $first_mark_value ); 136 139 } 137 140 138 141 /** 139 142 * Check if attendacne is not marked double … … 144 147 update_user_meta( $user_id, $meta_key, $student_data ); 145 148 update_user_meta( $user_id, $meta_key_count, $count ); 146 $success_message = __( "Attendance marked successfully", LLMS_At_TEXT_DOMAIN);149 $success_message = __( "Attendance marked successfully", 'llms-attendance' ); 147 150 148 151 echo apply_filters( "llms_attendance_success_message", $success_message )."1"; … … 151 154 152 155 } else { 153 $failed_message = __( "Attendance was not marked successfully", LLMS_At_TEXT_DOMAIN);156 $failed_message = __( "Attendance was not marked successfully", 'llms-attendance' ); 154 157 155 158 echo apply_filters( "llms_attendance_failed_message", $failed_message )."2"; 156 159 exit; 157 160 } 158 $already_marked = __( "You are already marked present", LLMS_At_TEXT_DOMAIN);161 $already_marked = __( "You are already marked present", 'llms-attendance' ); 159 162 160 163 echo apply_filters( "llms_attendance_already_marked_message", $already_marked )."3"; -
attendance-management-for-lifterlms/trunk/includes/integration/llmsat-metabox.php
r2209445 r2548915 72 72 */ 73 73 public function register_attendance_meta_boxes() { 74 $disallow_attendance_text = __( 'DisAllow Attendance ', LLMS_At_TEXT_DOMAIN);74 $disallow_attendance_text = __( 'DisAllow Attendance ', 'llms-attendance' ); 75 75 $disallow_attendance_text = apply_filters( 'llmsat_disallow_attendance_text', $disallow_attendance_text ); 76 $students_information_text = __( 'Students Attendance Information ', LLMS_At_TEXT_DOMAIN);76 $students_information_text = __( 'Students Attendance Information ', 'llms-attendance' ); 77 77 $students_information_text = apply_filters( 'llmsat_students_attendance_information_text', $students_information_text ); 78 78 add_meta_box( … … 101 101 $disallow = get_post_meta( $course_id, 'llmsatck1', true ); 102 102 if ( $disallow == 'on' ) { 103 echo '<div class="llmsat-error"><h2>'.__( 'Turn off the disallow attendance option to enlist enrolled students attendance information.', LLMS_At_TEXT_DOMAIN).' </h2></div>';103 echo '<div class="llmsat-error"><h2>'.__( 'Turn off the disallow attendance option to enlist enrolled students attendance information.', 'llms-attendance' ).' </h2></div>'; 104 104 return; 105 105 } -
attendance-management-for-lifterlms/trunk/includes/integration/llmsat-settings.php
r2209445 r2548915 42 42 43 43 $content[] = array( 44 'title' => __( 'Attendance Management For LifterLMS Addon General Settings', LLMS_At_TEXT_DOMAIN),44 'title' => __( 'Attendance Management For LifterLMS Addon General Settings', 'llms-attendance' ), 45 45 'type' => 'title', 46 46 'desc' => '', … … 49 49 50 50 $content[] = array( 51 'desc' => __( 'Use Attendance Management For LifterLMS Addon.', LLMS_At_TEXT_DOMAIN),51 'desc' => __( 'Use Attendance Management For LifterLMS Addon.', 'llms-attendance' ), 52 52 'default' => 'no', 53 53 'id' => 'llms_integration_lifterlms_attendance_enabled', 54 54 'type' => 'checkbox', 55 'title' => __( 'Enable / Disable', LLMS_At_TEXT_DOMAIN),55 'title' => __( 'Enable / Disable', 'llms-attendance' ), 56 56 ); 57 57 58 58 $content[] = array( 59 'desc' => __( 'Allow global attendance for all courses.', LLMS_At_TEXT_DOMAIN),59 'desc' => __( 'Allow global attendance for all courses.', 'llms-attendance' ), 60 60 'default' => 'yes', 61 61 'id' => 'llms_integration_global_attendance_enabled', 62 62 'type' => 'checkbox', 63 'title' => __( 'Allow / DisAllow', LLMS_At_TEXT_DOMAIN),63 'title' => __( 'Allow / DisAllow', 'llms-attendance' ), 64 64 ); 65 65 … … 76 76 77 77 $content[] = array( 78 'title' => __( 'Attendance Management For LifterLMS Addon Shortcodes', LLMS_At_TEXT_DOMAIN),78 'title' => __( 'Attendance Management For LifterLMS Addon Shortcodes', 'llms-attendance' ), 79 79 'type' => 'title', 80 80 'desc' => '', … … 83 83 84 84 $content[] = array( 85 'title' => __( 'Top "X" attendants shortcode', LLMS_At_TEXT_DOMAIN),85 'title' => __( 'Top "X" attendants shortcode', 'llms-attendance' ), 86 86 'type' => 'text', 87 87 'value' => '[llmsat_top_attendant course_id="y" students="x"]', 88 'desc' => '<br>'. __( 'It shows top "x" attendants in a given course id "y" by default it shows only 1 top attendant. Automatically retrieves current dates.', LLMS_At_TEXT_DOMAIN). '</br>',88 'desc' => '<br>'. __( 'It shows top "x" attendants in a given course id "y" by default it shows only 1 top attendant. Automatically retrieves current dates.', 'llms-attendance' ). '</br>', 89 89 'id' => 'lifterlms_attendance_top_attendant' 90 90 ); 91 91 92 92 $content[] = array( 93 'title' => __( 'Student attendance shortcode', LLMS_At_TEXT_DOMAIN),93 'title' => __( 'Student attendance shortcode', 'llms-attendance' ), 94 94 'type' => 'text', 95 95 'value' => '[llmsat_student_attendance course_id="x"]', 96 'desc' => '<br>'. __( 'It shows attendance of current login user for a given course id "x" automatically reterieves user id if not given. Automatically retrieves current dates.', LLMS_At_TEXT_DOMAIN). '</br>',96 'desc' => '<br>'. __( 'It shows attendance of current login user for a given course id "x" automatically reterieves user id if not given. Automatically retrieves current dates.', 'llms-attendance' ). '</br>', 97 97 'id' => 'lifterlms_attendance_student_attendance' 98 98 ); -
attendance-management-for-lifterlms/trunk/includes/integration/llmsat-shortcodes.php
r2209445 r2548915 86 86 } 87 87 ?> 88 <li><span class=""><b><?php echo __( 'Number '. intval ( $st_count + 1 ) .' Attendant for the course '.get_the_title( $course_id ).' :', LLMS_At_TEXT_DOMAIN);?> </b></span>88 <li><span class=""><b><?php echo __( 'Number '. intval ( $st_count + 1 ) .' Attendant for the course '.get_the_title( $course_id ).' :', 'llms-attendance' );?> </b></span> 89 89 <ul class="llmsat-dicey"> 90 <li><?php echo __( "<b>Student Name</b> : ". $student->display_name, LLMS_At_TEXT_DOMAIN); ?></li>91 <li><?php echo __( "<b>Course Name</b> : ". get_the_title( $course_id ), LLMS_At_TEXT_DOMAIN); ?></li>92 <li><?php echo __( "<b>Attendance</b> : ". round( $attendance )." %", LLMS_At_TEXT_DOMAIN); ?></li>93 <li><?php echo __( "<b>Attendance For the Month Of </b> : ". $monthName." ".$today_year, LLMS_At_TEXT_DOMAIN); ?></li>90 <li><?php echo __( "<b>Student Name</b> : ". $student->display_name, 'llms-attendance' ); ?></li> 91 <li><?php echo __( "<b>Course Name</b> : ". get_the_title( $course_id ), 'llms-attendance' ); ?></li> 92 <li><?php echo __( "<b>Attendance</b> : ". round( $attendance )." %", 'llms-attendance' ); ?></li> 93 <li><?php echo __( "<b>Attendance For the Month Of </b> : ". $monthName." ".$today_year, 'llms-attendance' ); ?></li> 94 94 </ul> 95 95 … … 103 103 ?> 104 104 <ul class="llmsat-dicey"> 105 <li> <?php echo __('<b>No student found in this course</b>', LLMS_At_TEXT_DOMAIN); ?></li>105 <li> <?php echo __('<b>No student found in this course</b>', 'llms-attendance' ); ?></li> 106 106 </ul> 107 107 <?php … … 165 165 ?> 166 166 <ul id=""> 167 <li><span class=""><b><?php echo __( 'Attendance of '.$user->display_name ." :", LLMS_At_TEXT_DOMAIN);?> </b></span>167 <li><span class=""><b><?php echo __( 'Attendance of '.$user->display_name ." :", 'llms-attendance' );?> </b></span> 168 168 <ul class="llmsat-dicey"> 169 169 170 <li><?php echo __( "<b>Student Name</b> : ". $user->display_name, LLMS_At_TEXT_DOMAIN); ?></li>171 <li><?php echo __( "<b>Course Name</b> : ". get_the_title( $course_id ), LLMS_At_TEXT_DOMAIN); ?></li>172 <li><?php echo __( "<b>Attendance</b> : ". round( $attendance )." %", LLMS_At_TEXT_DOMAIN); ?></li>173 <li><?php echo __( "<b>Attendance For The Month Of </b> : ". $monthName." ".$today_year, LLMS_At_TEXT_DOMAIN); ?></li>170 <li><?php echo __( "<b>Student Name</b> : ". $user->display_name, 'llms-attendance' ); ?></li> 171 <li><?php echo __( "<b>Course Name</b> : ". get_the_title( $course_id ), 'llms-attendance' ); ?></li> 172 <li><?php echo __( "<b>Attendance</b> : ". round( $attendance )." %", 'llms-attendance' ); ?></li> 173 <li><?php echo __( "<b>Attendance For The Month Of </b> : ". $monthName." ".$today_year, 'llms-attendance' ); ?></li> 174 174 </ul> 175 175 </li> … … 179 179 ?> 180 180 <ul id=""> 181 <li><span class=""><b><?php echo __( 'Attendance of '.$user->display_name ." :", LLMS_At_TEXT_DOMAIN);?> </b></span>181 <li><span class=""><b><?php echo __( 'Attendance of '.$user->display_name ." :", 'llms-attendance' );?> </b></span> 182 182 <ul class="llmsat-dicey"> 183 <li><?php echo __( "<b>Student Name </b>: ". $user->display_name, LLMS_At_TEXT_DOMAIN); ?></li>184 <li><?php echo __( "<b>Course Name </b> : ". get_the_title( $course_id ), LLMS_At_TEXT_DOMAIN); ?></li>185 <li><?php echo __( "<b>Attendance </b> : 0 %", LLMS_At_TEXT_DOMAIN); ?></li>186 <li><?php echo __( "<b>Attendance For The month of ". $monthName." ".$today_year, LLMS_At_TEXT_DOMAIN); ?></li>183 <li><?php echo __( "<b>Student Name </b>: ". $user->display_name, 'llms-attendance' ); ?></li> 184 <li><?php echo __( "<b>Course Name </b> : ". get_the_title( $course_id ),'llms-attendance' ); ?></li> 185 <li><?php echo __( "<b>Attendance </b> : 0 %", 'llms-attendance' ); ?></li> 186 <li><?php echo __( "<b>Attendance For The month of ". $monthName." ".$today_year, 'llms-attendance' ); ?></li> 187 187 </ul> 188 188 </li> … … 192 192 ?> 193 193 <ul id=""> 194 <li><span class=""><b><?php echo __( 'Invalid student ID or course ID :', LLMS_At_TEXT_DOMAIN);?> </b></span>194 <li><span class=""><b><?php echo __( 'Invalid student ID or course ID :', 'llms-attendance' );?> </b></span> 195 195 <ul class="llmsat-dicey"> 196 <li><?php if( !$user ) { echo __( "<b>Student Name </b>: Student does not exist", LLMS_At_TEXT_DOMAIN);}else {197 echo __( "<b>Student Name </b>: ".$user->display_name, LLMS_At_TEXT_DOMAIN);196 <li><?php if( !$user ) { echo __( "<b>Student Name </b>: Student does not exist", 'llms-attendance' );}else { 197 echo __( "<b>Student Name </b>: ".$user->display_name, 'llms-attendance' ); 198 198 } ?></li> 199 <li><?php if( $course_id ) { echo __( "<b>Course Name </b>: ". get_the_title( $course_id ), LLMS_At_TEXT_DOMAIN); } else {200 echo __( "<b>Course Name </b>:Course does not exist", LLMS_At_TEXT_DOMAIN);199 <li><?php if( $course_id ) { echo __( "<b>Course Name </b>: ". get_the_title( $course_id ), 'llms-attendance' ); } else { 200 echo __( "<b>Course Name </b>:Course does not exist", 'llms-attendance' ); 201 201 }?></li> 202 <li><?php echo __( "<b>Attendance </b>: Invalid data ", LLMS_At_TEXT_DOMAIN); if( $course_id && !$has_access ) { ?></li>203 <li><?php echo __( "<b>Enrollment : </b>Student is not enrolled in this course", LLMS_At_TEXT_DOMAIN); }?></li>202 <li><?php echo __( "<b>Attendance </b>: Invalid data ", 'llms-attendance' ); if( $course_id && !$has_access ) { ?></li> 203 <li><?php echo __( "<b>Enrollment : </b>Student is not enrolled in this course", 'llms-attendance' ); }?></li> 204 204 </ul> 205 205 </li> -
attendance-management-for-lifterlms/trunk/includes/integration/llmsat-views.php
r2209445 r2548915 15 15 16 16 parent::__construct( [ 17 'singular' => __( 'LLMS Student', LLMS_At_TEXT_DOMAIN), //singular name of the listed records18 'plural' => __( 'LLMS Students', LLMS_At_TEXT_DOMAIN), //plural name of the listed records17 'singular' => __( 'LLMS Student', 'llms-attendance' ), //singular name of the listed records 18 'plural' => __( 'LLMS Students', 'llms-attendance' ), //plural name of the listed records 19 19 'ajax' => false //does this table support ajax? 20 20 ] ); … … 167 167 $columns = array( 168 168 "cb" => "<input type='checkbox'/>", 169 "id" => __( "ID", LLMS_At_TEXT_DOMAIN),170 "title" => __( "Enrolled Students", LLMS_At_TEXT_DOMAIN),171 "attendance_count" => __( "Attendance Count", LLMS_At_TEXT_DOMAIN),172 "attendance_percen" => __( "Attendance Percentage", LLMS_At_TEXT_DOMAIN),169 "id" => __( "ID", 'llms-attendance' ), 170 "title" => __( "Enrolled Students", 'llms-attendance' ), 171 "attendance_count" => __( "Attendance Count", 'llms-attendance' ), 172 "attendance_percen" => __( "Attendance Percentage", 'llms-attendance' ), 173 173 ); 174 174 -
attendance-management-for-lifterlms/trunk/includes/settings/options.php
r2209445 r2548915 69 69 if( isset( $_POST['llmsat_settings_submit'] ) || $updated == true ) { 70 70 $class = 'notice notice-success is-dismissible'; 71 $message = __( 'Settings Saved', LLMS_At_TEXT_DOMAIN);71 $message = __( 'Settings Saved', 'llms-attendance' ); 72 72 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); 73 73 } … … 90 90 wp_safe_redirect( add_query_arg( 'settings-updated', 'true', sanitize_text_field( $_POST['_wp_http_referer'] ) ) ); 91 91 $class = 'llmsat-notice hidden notice notice-success is-dismissible'; 92 $message = __( 'Settings Updated.', LLMS_At_TEXT_DOMAIN);92 $message = __( 'Settings Updated.', 'llms-attendance' ); 93 93 94 94 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) ); … … 105 105 add_submenu_page( 106 106 'lifterlms', 107 __( 'Attendance Management For LifterLMS', LLMS_At_TEXT_DOMAIN),108 __( 'Attendance Management For LifterLMS', LLMS_At_TEXT_DOMAIN),107 __( 'Attendance Management For LifterLMS', 'llms-attendance' ), 108 __( 'Attendance Management For LifterLMS', 'llms-attendance' ), 109 109 'manage_options', 110 110 'lifterlms-attendance-management-options', … … 184 184 <div id="wrap" class="llmsat-settings-wrapper"> 185 185 <div id="icon-options-general" class="icon32"></div> 186 <h1><?php echo __( 'Attendance Management For LifterLMS Settings', LLMS_At_TEXT_DOMAIN); ?></h1>186 <h1><?php echo __( 'Attendance Management For LifterLMS Settings', 'llms-attendance' ); ?></h1> 187 187 188 188 <div class="nav-tab-wrapper"> … … 194 194 class="nav-tab <?php echo $this->page_tab == $key ? 'nav-tab-active' : ''; ?>"> 195 195 <i class="fa <?php echo $llmsat_settings_section['icon']; ?>" aria-hidden="true"></i> 196 <?php _e( $llmsat_settings_section['title'], LLMS_At_TEXT_DOMAIN); ?>196 <?php _e( $llmsat_settings_section['title'], 'llms-attendance' ); ?> 197 197 </a> 198 198 <?php … … 221 221 $llmsat_settings_sections = array( 222 222 'general' => array( 223 'title' => __( 'General Option', LLMS_At_TEXT_DOMAIN),223 'title' => __( 'General Option', 'llms-attendance' ), 224 224 'icon' => 'dashicons-admin-generic', 225 225 ), … … 242 242 <a href="https:faizanhaidar.com/" target="_blank">Muhammad Faizan Haidar</a> 243 243 </p>', 244 LLMS_At_TEXT_DOMAIN244 'llms-attendance' 245 245 ); 246 246 -
attendance-management-for-lifterlms/trunk/includes/settings/templates/general.php
r2209445 r2548915 20 20 <th scope="row"> 21 21 <label for="llmsat_delete_attendance"> 22 <?php _e( 'Delete Attendance On Uninstall ', LLMS_At_TEXT_DOMAIN); ?>22 <?php _e( 'Delete Attendance On Uninstall ', 'llms-attendance' ); ?> 23 23 </label> 24 24 </th> 25 25 <td> 26 26 <input type="checkbox" name="llmsat_delete_attendance" id="llmsat_delete_attendance"<?php if( $delete_attendance == 'on' ) { ?>checked="checked"<?php } ?> /> 27 <p class="description"><?php _e( 'If enabled it will delete all courses & users attendance data', LLMS_At_TEXT_DOMAIN); ?></p>27 <p class="description"><?php _e( 'If enabled it will delete all courses & users attendance data', 'llms-attendance'); ?></p> 28 28 </td> 29 29 </tr> … … 33 33 <p> 34 34 <?php 35 submit_button( __( 'Save Settings', LLMS_At_TEXT_DOMAIN), 'primary', 'llmsat_settings_submit' );35 submit_button( __( 'Save Settings', 'llms-attendance' ), 'primary', 'llmsat_settings_submit' ); 36 36 ?> 37 37 </p> -
attendance-management-for-lifterlms/trunk/readme.txt
r2209445 r2548915 4 4 Requires at least: 4.0 5 5 Donate link: https://faizanhaidar.com 6 Tested up to: 5. 37 Stable tag: 1.0. 06 Tested up to: 5.7.2 7 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 Requires PHP: 7.2 … … 71 71 **1.0.0** 72 72 - Intial release 73 == Changelog == 74 **1.0.1** 75 - Added compatibility with latest version of WordPress and LifterLMS. 76 - Replaced text domain constant with string.
Note: See TracChangeset
for help on using the changeset viewer.