Changeset 2755933
- Timestamp:
- 07/13/2022 03:44:15 PM (4 years ago)
- Location:
- lmsace-connect/trunk
- Files:
-
- 5 edited
-
README.md (modified) (2 diffs)
-
includes/admin/class-lac-admin.php (modified) (1 diff)
-
includes/class-lac-client.php (modified) (2 diffs)
-
includes/class-lac.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lmsace-connect/trunk/README.md
r2755044 r2755933 56 56 4. Selectable role for pariticipants. 57 57 58 59 ### Installation steps using ZIP file. 60 61 > **Note:** Make sure the **Woocommerce** is correctly installed. 62 63 1. Clone Project Git repository in any of your prefered location. 64 65 2. Rename the folder name into '**lmsace-connect**'. 66 67 3. Next login as Site administrator 68 69 4. Go to '*Plugins*' -> '*Add New*' -> '*Upload Plugin*', On here upload the plugin zip '**lmsace-connect.zip**'. 70 71 5. Click the "**Instal Now**" button. 72 73 74 > You will get **success message** once the plugin installed successfully. 75 76 77 6. By clicking "**Activate**" button on success page , Plugin will activated and you will redirect to Your dashboard. 78 79 80 ### Installation steps using Git. 81 82 83 1. Clone **LMSACE Connect** plugin Git repository into the folder '*plugins*'. 84 85 > '*Your root diroctory*' -> '*wp-content*' -> '*plugins*'. 86 87 2. Rename the folder name into '**lmsace-connect**'. 88 89 3. Next login as Site administrator 90 91 4. Go to the '*Plugins*' -> '*Installed plugins*'. On here LMSACE Connect plugin will listed. 92 93 5. Activate the plugin by clicking "**Activate**" button placed on the bottom of the plugin name, Plugin will get the success message. 94 95 58 96 ## Steps to setup connection. 59 97 … … 100 138 101 139 102 ### Installation steps using ZIP file.103 104 > **Note:** Make sure the **Woocommerce** is correctly installed.105 106 1. Clone Project Git repository in any of your prefered location.107 108 2. Rename the folder name into '**lmsace-connect**'.109 110 3. Next login as Site administrator111 112 4. Go to '*Plugins*' -> '*Add New*' -> '*Upload Plugin*', On here upload the plugin zip '**lmsace-connect.zip**'.113 114 5. Click the "**Instal Now**" button.115 116 117 > You will get **success message** once the plugin installed successfully.118 119 120 6. By clicking "**Activiate**" button on success page , Plugin will activated and you will redirect to Your dashboard.121 122 123 ### Installation steps using Git.124 125 126 1. Clone **LMSACE Connect** plugin Git repository into the folder '*plugins*'.127 128 > '*Your root diroctory*' -> '*wp-content*' -> '*plugins*'.129 130 2. Rename the folder name into '**lmsace-connect**'.131 132 3. Next login as Site administrator133 134 4. Go to the '*Plugins*' -> '*Installed plugins*'. On here LMSACE Connect plugin will listed.135 136 5. Activate the plugin by clicking "**Activiate**" button placed on the bottom of the plugin name, Plugin will get the success message.137 138 139 140 ## Copyright 140 141 -
lmsace-connect/trunk/includes/admin/class-lac-admin.php
r2755044 r2755933 149 149 } 150 150 151 $result = ($result) ? $result: array('error' => true, 'msg' => 'Error on sending response' );151 $result = ($result) ? wp_kses_post_deep($result, $LACONN->allowed_tags()) : array('error' => true, 'msg' => 'Error on sending response' ); 152 152 153 153 // Result the result to ajax call. 154 echo esc_html( json_encode($result));154 echo json_encode($result); 155 155 156 156 die(); // Exit the ajax script. -
lmsace-connect/trunk/includes/class-lac-client.php
r2755044 r2755933 94 94 */ 95 95 public function getResponseError($response) { 96 96 global $LACONN; 97 97 if (isset($response['response_code'])) { 98 98 // Define the Not found error for the 404 error codes. … … 100 100 $response['response_message'] = esc_html( __(' URL Not Found, Please check your url', 'lmsace-connect')); 101 101 } else if ($response['response_code'] == 403) { 102 $response['response_message'] = wp_kses(__(' Forbidden. <ul> <li> Please check your webservice settings on Your LMS </li> </ul>', 'lmsace-connect'), ['ul', 'li']);102 $response['response_message'] = wp_kses(__(' Forbidden. <ul> <li> Please check your webservice settings on Your LMS </li> </ul>', 'lmsace-connect'), $LACONN->allowed_tags()); 103 103 } 104 104 -
lmsace-connect/trunk/includes/class-lac.php
r2755044 r2755933 316 316 */ 317 317 public function is_setup_completed() { 318 global $LACONN; 319 318 320 $options = $this->get_options(); 319 321 if (!isset($options['site_url']) || empty($options['site_url'])) { 320 $this->set_admin_notices('warning', '<h4> LMSACE Connect </h4>'.sprintf( esc_html(__(' <p> <b>You need to specify a Moodle LMS domain and a Moodle LMS Access token.</b> You must <a href="%s">enter your domain and API key</a> for it to work.</p> ', 'lmsace-connect'), ['p', 'a']), 'admin.php?page=lac-admin-settings'), 'connection', true);322 $this->set_admin_notices('warning', '<h4> LMSACE Connect </h4>'.sprintf( wp_kses( __(' <p> <b>You need to specify a Moodle LMS domain and a Moodle LMS Access token.</b> You must <a href="%s">enter your domain and API key</a> for it to work.</p> ', 'lmsace-connect'), $LACONN->allowed_tags()), 'admin.php?page=lac-admin-settings'), 'connection', true); 321 323 } else { 322 324 $request = $this->Client->request(self::services('get_user_roles'), array(), false); -
lmsace-connect/trunk/readme.txt
r2755044 r2755933 64 64 - Go to the "Add new" section under the "Plugins" menu. 65 65 - Search the plugin by entering the "lmsace-connect" in the search box. 66 - You will find the plugin **LMSACE WooCommerce Moodle** in the plugins search listing.66 - You will find the plugin **LMSACE Connect - WooCommerce Moodle™ LMS Integration** in the plugins search listing. 67 67 - Click the "**Install Now**" button. 68 68 - Once plugin files are added to WordPress, you can find the "**Activate**" button. 69 - By clicking the "**Activate**" button, you can able to access the features of L ACONN.69 - By clicking the "**Activate**" button, you can able to access the features of LMSACE Connect. 70 70 71 71 = Manual installation = … … 117 117 Initial LMSACE Connect Release Version 118 118 119 = 1.0.1 = 120 Fixed html escape in warning messages 121 119 122 == Upgrade Notice == 120 123
Note: See TracChangeset
for help on using the changeset viewer.