Changeset 1511703
- Timestamp:
- 10/10/2016 10:57:54 AM (9 years ago)
- Location:
- criptopay-wp
- Files:
-
- 2 edited
-
tags/3.2.0/class-wc-criptopay.php (modified) (14 diffs)
-
trunk/class-wc-criptopay.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
criptopay-wp/tags/3.2.0/class-wc-criptopay.php
r1511681 r1511703 26 26 * Developer: Carlos González, Víctor García 27 27 * Text Domain: woocriptopay 28 * Domain Path: /languages 28 29 * Version: 3.2.0 29 30 * License: Copyright 2014-2016 CriptoPay S.L., MIT License … … 45 46 * Definimos el dominio 46 47 */ 47 if(!defined('WOOCOMMERCE_CRIPTOPAY_DOMAIN')){ 48 define( 'WOOCOMMERCE_CRIPTOPAY_DOMAIN', 'woocriptopay' ); 49 } 50 load_plugin_textdomain( WOOCOMMERCE_CRIPTOPAY_DOMAIN, null,'/languages' ); 48 load_plugin_textdomain( 'woocriptopay', null,'/languages' ); 51 49 52 50 add_action('admin_notices', 'showAdminMessages'); … … 63 61 echo '<h3>Cripto-Pay.com Gateway</h3>'; 64 62 foreach ($plugin_messages as $message) { 65 echo '<p><strong>' . __('Required plugins', WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';63 echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>'; 66 64 } 67 65 echo '</div>'; … … 85 83 $this->id = 'criptopay'; 86 84 $this->icon = home_url() . '/wp-content/plugins/criptopay/assets/images/CriptoPay_logo.png'; 87 $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', WOOCOMMERCE_CRIPTOPAY_DOMAIN);88 $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', WOOCOMMERCE_CRIPTOPAY_DOMAIN);85 $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', 'woocriptopay'); 86 $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', 'woocriptopay'); 89 87 $this->notify_url = add_query_arg('wc-api', 'criptopay', home_url('/')); 90 88 $this->log = new WC_Logger(); … … 113 111 $this->form_fields = array( 114 112 'enabled' => array( 115 'title' => __('Status', WOOCOMMERCE_CRIPTOPAY_DOMAIN),113 'title' => __('Status', 'woocriptopay'), 116 114 'type' => 'checkbox', 117 'label' => __('Enable CriptoPay Payments', WOOCOMMERCE_CRIPTOPAY_DOMAIN),115 'label' => __('Enable CriptoPay Payments', 'woocriptopay'), 118 116 'description' => '', 119 117 'default' => 'yes' 120 118 ), 121 119 'title' => array( 122 'title' => __('Title', WOOCOMMERCE_CRIPTOPAY_DOMAIN),120 'title' => __('Title', 'woocriptopay'), 123 121 'type' => 'text', 124 'description' => __('This title will be displayed in the checkout process.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),125 'default' => __('CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN),122 'description' => __('This title will be displayed in the checkout process.', 'woocriptopay'), 123 'default' => __('CriptoPay', 'woocriptopay'), 126 124 'desc_tip' => true, 127 125 ), 128 126 'description' => array( 129 'title' => __( 'Description', WOOCOMMERCE_CRIPTOPAY_DOMAIN),127 'title' => __( 'Description', 'woocriptopay' ), 130 128 'type' => 'text', 131 129 'desc_tip' => true, 132 'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),133 'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', WOOCOMMERCE_CRIPTOPAY_DOMAIN)130 'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', 'woocriptopay'), 131 'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', 'woocriptopay') 134 132 ), 135 133 'CP_Servidor' => array( 136 'title' => __('Server', WOOCOMMERCE_CRIPTOPAY_DOMAIN),134 'title' => __('Server', 'woocriptopay'), 137 135 'type' => 'select', 138 136 'description' => __('Enviroment to the gateway.', 'woocommerce'), … … 140 138 'desc_tip' => true, 141 139 'options' => array( 142 'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),143 'https://cripto-pay.com' => __('Production - https://cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),144 'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),140 'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', 'woocriptopay'), 141 'https://cripto-pay.com' => __('Production - https://cripto-pay.com', 'woocriptopay'), 142 'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', 'woocriptopay'), 145 143 ) 146 144 ), 147 145 'CP_ApiId' => array( 148 'title' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),146 'title' => __('API ID', 'woocriptopay'), 149 147 'type' => 'text', 150 'description' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),148 'description' => __('API ID', 'woocriptopay'), 151 149 'default' => '' 152 150 ), 153 151 'CP_ApiPassword' => array( 154 'title' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),152 'title' => __('API Password', 'woocriptopay'), 155 153 'type' => 'text', 156 'description' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),154 'description' => __('API Password', 'woocriptopay'), 157 155 'default' => '' 158 156 ), 159 157 'Cert_Publi' => array( 160 'title' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),158 'title' => __('Public certificate', 'woocriptopay'), 161 159 'type' => 'file', 162 'description' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),160 'description' => __('Public certificate', 'woocriptopay'), 163 161 'default' => '' 164 162 ), 165 163 'Cert_Priv' => array( 166 'title' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),164 'title' => __('Private certificate', 'woocriptopay'), 167 165 'type' => 'file', 168 'description' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),166 'description' => __('Private certificate', 'woocriptopay'), 169 167 'default' => '' 170 168 ) … … 181 179 global $woocommerce; 182 180 $order = new WC_Order($order_id); 183 $this->log->add( WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciado proceso de pago");181 $this->log->add('woocriptopay', "Iniciado proceso de pago"); 184 182 185 183 //Instancia del Objeto para realizar la acciones … … 206 204 ); 207 205 }else{ 208 throw new Exception(__("CriptoPay payments is not configured correctly", WOOCOMMERCE_CRIPTOPAY_DOMAIN));206 throw new Exception(__("CriptoPay payments is not configured correctly",'woocriptopay')); 209 207 } 210 208 … … 221 219 $res = mkdir(__DIR__.'/certificados', 0755, true); 222 220 if (!$res) { 223 throw new Exception(__('The directory is not writeable, check permisions', WOOCOMMERCE_CRIPTOPAY_DOMAIN));221 throw new Exception(__('The directory is not writeable, check permisions', 'woocriptopay')); 224 222 } 225 223 } … … 231 229 $move = move_uploaded_file($file['tmp_name'],__DIR__.'/certificados/'.$file['name']); 232 230 }else{ 233 throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'], WOOCOMMERCE_CRIPTOPAY_DOMAIN)));231 throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'],'woocriptopay'))); 234 232 } 235 233 } … … 247 245 $idpago = $_POST['idpago']; 248 246 $idorder = $_POST['order']; 249 $this->log->add( WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciada IPN Order ".$idorder." idpago ".$idpago);247 $this->log->add('woocriptopay', "Iniciada IPN Order ".$idorder." idpago ".$idpago); 250 248 $CRIPTOPAY = new CriptoPayApiRest\src\Comun\CriptoPayApiRest($this->CP_ApiId,$this->CP_ApiPassword,__DIR__.'/certificados/',$this->CP_Servidor); 251 249 $CRIPTOPAY->Set(array('idpago'=>$idpago)); … … 254 252 255 253 if($respuesta->estado >= 30){ 256 $order->update_status('completed',__( 'Completed payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN));254 $order->update_status('completed',__( 'Completed payment CriptoPay', 'woocriptopay' )); 257 255 $order->reduce_order_stock(); 258 256 WC()->cart->empty_cart(); 259 257 }elseif($respuesta->estado >= 20){ 260 $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN));258 $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', 'woocriptopay' )); 261 259 $order->reduce_order_stock(); 262 260 WC()->cart->empty_cart(); 263 261 }elseif($respuesta->estado == 10){ 264 $order->update_status('processing',__( 'Incomplete payment', WOOCOMMERCE_CRIPTOPAY_DOMAIN));265 } 266 $this->log->add( WOOCOMMERCE_CRIPTOPAY_DOMAIN, "FIN IPN en estado ".$respuesta->estado);262 $order->update_status('processing',__( 'Incomplete payment', 'woocriptopay' )); 263 } 264 $this->log->add('woocriptopay', "FIN IPN en estado ".$respuesta->estado); 267 265 exit; 268 266 } … … 276 274 } 277 275 if($this->get_option('CP_ApiId') == null){ 278 $data_messages['API Id'] = __('API ID is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);276 $data_messages['API Id'] = __('API ID is required', 'woocriptopay'); 279 277 } 280 278 if($this->get_option('CP_ApiPassword') == null){ 281 $data_messages['API Password'] = __('API password is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);279 $data_messages['API Password'] = __('API password is required', 'woocriptopay'); 282 280 } 283 281 if($this->get_option('CP_Servidor') == null){ 284 $data_messages['API Server'] = __('API server is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);282 $data_messages['API Server'] = __('API server is required', 'woocriptopay'); 285 283 } 286 284 … … 290 288 if (count($plugin_messages) > 0) { 291 289 foreach ($plugin_messages as $message) { 292 echo '<p><strong>' . __('Required plugins', WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';290 echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>'; 293 291 } 294 292 } 295 293 if (count($data_messages) > 0) { 296 echo '<p><strong>' . __('Required configuration data', WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><ul>';294 echo '<p><strong>' . __('Required configuration data','woocriptopay') . '</strong><ul>'; 297 295 foreach ($data_messages as $head=>$message) { 298 296 echo '<li><strong>' . $head . '</strong>'.$message.'</li>'; -
criptopay-wp/trunk/class-wc-criptopay.php
r1511681 r1511703 26 26 * Developer: Carlos González, Víctor García 27 27 * Text Domain: woocriptopay 28 * Domain Path: /languages 28 29 * Version: 3.2.0 29 30 * License: Copyright 2014-2016 CriptoPay S.L., MIT License … … 45 46 * Definimos el dominio 46 47 */ 47 if(!defined('WOOCOMMERCE_CRIPTOPAY_DOMAIN')){ 48 define( 'WOOCOMMERCE_CRIPTOPAY_DOMAIN', 'woocriptopay' ); 49 } 50 load_plugin_textdomain( WOOCOMMERCE_CRIPTOPAY_DOMAIN, null,'/languages' ); 48 load_plugin_textdomain( 'woocriptopay', null,'/languages' ); 51 49 52 50 add_action('admin_notices', 'showAdminMessages'); … … 63 61 echo '<h3>Cripto-Pay.com Gateway</h3>'; 64 62 foreach ($plugin_messages as $message) { 65 echo '<p><strong>' . __('Required plugins', WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';63 echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>'; 66 64 } 67 65 echo '</div>'; … … 85 83 $this->id = 'criptopay'; 86 84 $this->icon = home_url() . '/wp-content/plugins/criptopay/assets/images/CriptoPay_logo.png'; 87 $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', WOOCOMMERCE_CRIPTOPAY_DOMAIN);88 $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', WOOCOMMERCE_CRIPTOPAY_DOMAIN);85 $this->method_title = __('CriptoPay Bitcoin and Altcoins Payments for Woocommerce', 'woocriptopay'); 86 $this->method_description = __('Bitcoin and Altcoins( Dogecoin, Litecoin, OkCash, more...) Payments for Woocommerce with auto change to your local currency.', 'woocriptopay'); 89 87 $this->notify_url = add_query_arg('wc-api', 'criptopay', home_url('/')); 90 88 $this->log = new WC_Logger(); … … 113 111 $this->form_fields = array( 114 112 'enabled' => array( 115 'title' => __('Status', WOOCOMMERCE_CRIPTOPAY_DOMAIN),113 'title' => __('Status', 'woocriptopay'), 116 114 'type' => 'checkbox', 117 'label' => __('Enable CriptoPay Payments', WOOCOMMERCE_CRIPTOPAY_DOMAIN),115 'label' => __('Enable CriptoPay Payments', 'woocriptopay'), 118 116 'description' => '', 119 117 'default' => 'yes' 120 118 ), 121 119 'title' => array( 122 'title' => __('Title', WOOCOMMERCE_CRIPTOPAY_DOMAIN),120 'title' => __('Title', 'woocriptopay'), 123 121 'type' => 'text', 124 'description' => __('This title will be displayed in the checkout process.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),125 'default' => __('CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN),122 'description' => __('This title will be displayed in the checkout process.', 'woocriptopay'), 123 'default' => __('CriptoPay', 'woocriptopay'), 126 124 'desc_tip' => true, 127 125 ), 128 126 'description' => array( 129 'title' => __( 'Description', WOOCOMMERCE_CRIPTOPAY_DOMAIN),127 'title' => __( 'Description', 'woocriptopay' ), 130 128 'type' => 'text', 131 129 'desc_tip' => true, 132 'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', WOOCOMMERCE_CRIPTOPAY_DOMAIN),133 'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', WOOCOMMERCE_CRIPTOPAY_DOMAIN)130 'description' => __('Description of the method of payment. Use it to tell the user that is a system of fast and safe payment.', 'woocriptopay'), 131 'default' => __('Secure payments through our servers. You will be redirected to the payment gateway Crypto-Pay.', 'woocriptopay') 134 132 ), 135 133 'CP_Servidor' => array( 136 'title' => __('Server', WOOCOMMERCE_CRIPTOPAY_DOMAIN),134 'title' => __('Server', 'woocriptopay'), 137 135 'type' => 'select', 138 136 'description' => __('Enviroment to the gateway.', 'woocommerce'), … … 140 138 'desc_tip' => true, 141 139 'options' => array( 142 'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),143 'https://cripto-pay.com' => __('Production - https://cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),144 'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', WOOCOMMERCE_CRIPTOPAY_DOMAIN),140 'https://testnet.cripto-pay.com' => __('Sandbox - https://testnet.cripto-pay.com', 'woocriptopay'), 141 'https://cripto-pay.com' => __('Production - https://cripto-pay.com', 'woocriptopay'), 142 'https://developers.cripto-pay.com' => __('Desarrollo - https://developers.cripto-pay.com', 'woocriptopay'), 145 143 ) 146 144 ), 147 145 'CP_ApiId' => array( 148 'title' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),146 'title' => __('API ID', 'woocriptopay'), 149 147 'type' => 'text', 150 'description' => __('API ID', WOOCOMMERCE_CRIPTOPAY_DOMAIN),148 'description' => __('API ID', 'woocriptopay'), 151 149 'default' => '' 152 150 ), 153 151 'CP_ApiPassword' => array( 154 'title' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),152 'title' => __('API Password', 'woocriptopay'), 155 153 'type' => 'text', 156 'description' => __('API Password', WOOCOMMERCE_CRIPTOPAY_DOMAIN),154 'description' => __('API Password', 'woocriptopay'), 157 155 'default' => '' 158 156 ), 159 157 'Cert_Publi' => array( 160 'title' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),158 'title' => __('Public certificate', 'woocriptopay'), 161 159 'type' => 'file', 162 'description' => __('Public certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),160 'description' => __('Public certificate', 'woocriptopay'), 163 161 'default' => '' 164 162 ), 165 163 'Cert_Priv' => array( 166 'title' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),164 'title' => __('Private certificate', 'woocriptopay'), 167 165 'type' => 'file', 168 'description' => __('Private certificate', WOOCOMMERCE_CRIPTOPAY_DOMAIN),166 'description' => __('Private certificate', 'woocriptopay'), 169 167 'default' => '' 170 168 ) … … 181 179 global $woocommerce; 182 180 $order = new WC_Order($order_id); 183 $this->log->add( WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciado proceso de pago");181 $this->log->add('woocriptopay', "Iniciado proceso de pago"); 184 182 185 183 //Instancia del Objeto para realizar la acciones … … 206 204 ); 207 205 }else{ 208 throw new Exception(__("CriptoPay payments is not configured correctly", WOOCOMMERCE_CRIPTOPAY_DOMAIN));206 throw new Exception(__("CriptoPay payments is not configured correctly",'woocriptopay')); 209 207 } 210 208 … … 221 219 $res = mkdir(__DIR__.'/certificados', 0755, true); 222 220 if (!$res) { 223 throw new Exception(__('The directory is not writeable, check permisions', WOOCOMMERCE_CRIPTOPAY_DOMAIN));221 throw new Exception(__('The directory is not writeable, check permisions', 'woocriptopay')); 224 222 } 225 223 } … … 231 229 $move = move_uploaded_file($file['tmp_name'],__DIR__.'/certificados/'.$file['name']); 232 230 }else{ 233 throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'], WOOCOMMERCE_CRIPTOPAY_DOMAIN)));231 throw new Exception(__("File ".$file['name']." incorrect format ". $finfo->file($file['tmp_name'],'woocriptopay'))); 234 232 } 235 233 } … … 247 245 $idpago = $_POST['idpago']; 248 246 $idorder = $_POST['order']; 249 $this->log->add( WOOCOMMERCE_CRIPTOPAY_DOMAIN, "Iniciada IPN Order ".$idorder." idpago ".$idpago);247 $this->log->add('woocriptopay', "Iniciada IPN Order ".$idorder." idpago ".$idpago); 250 248 $CRIPTOPAY = new CriptoPayApiRest\src\Comun\CriptoPayApiRest($this->CP_ApiId,$this->CP_ApiPassword,__DIR__.'/certificados/',$this->CP_Servidor); 251 249 $CRIPTOPAY->Set(array('idpago'=>$idpago)); … … 254 252 255 253 if($respuesta->estado >= 30){ 256 $order->update_status('completed',__( 'Completed payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN));254 $order->update_status('completed',__( 'Completed payment CriptoPay', 'woocriptopay' )); 257 255 $order->reduce_order_stock(); 258 256 WC()->cart->empty_cart(); 259 257 }elseif($respuesta->estado >= 20){ 260 $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', WOOCOMMERCE_CRIPTOPAY_DOMAIN));258 $order->update_status('processing',__( 'Awaiting validation payment CriptoPay', 'woocriptopay' )); 261 259 $order->reduce_order_stock(); 262 260 WC()->cart->empty_cart(); 263 261 }elseif($respuesta->estado == 10){ 264 $order->update_status('processing',__( 'Incomplete payment', WOOCOMMERCE_CRIPTOPAY_DOMAIN));265 } 266 $this->log->add( WOOCOMMERCE_CRIPTOPAY_DOMAIN, "FIN IPN en estado ".$respuesta->estado);262 $order->update_status('processing',__( 'Incomplete payment', 'woocriptopay' )); 263 } 264 $this->log->add('woocriptopay', "FIN IPN en estado ".$respuesta->estado); 267 265 exit; 268 266 } … … 276 274 } 277 275 if($this->get_option('CP_ApiId') == null){ 278 $data_messages['API Id'] = __('API ID is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);276 $data_messages['API Id'] = __('API ID is required', 'woocriptopay'); 279 277 } 280 278 if($this->get_option('CP_ApiPassword') == null){ 281 $data_messages['API Password'] = __('API password is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);279 $data_messages['API Password'] = __('API password is required', 'woocriptopay'); 282 280 } 283 281 if($this->get_option('CP_Servidor') == null){ 284 $data_messages['API Server'] = __('API server is required', WOOCOMMERCE_CRIPTOPAY_DOMAIN);282 $data_messages['API Server'] = __('API server is required', 'woocriptopay'); 285 283 } 286 284 … … 290 288 if (count($plugin_messages) > 0) { 291 289 foreach ($plugin_messages as $message) { 292 echo '<p><strong>' . __('Required plugins', WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><br />'.$message.'</p>';290 echo '<p><strong>' . __('Required plugins','woocriptopay') . '</strong><br />'.$message.'</p>'; 293 291 } 294 292 } 295 293 if (count($data_messages) > 0) { 296 echo '<p><strong>' . __('Required configuration data', WOOCOMMERCE_CRIPTOPAY_DOMAIN) . '</strong><ul>';294 echo '<p><strong>' . __('Required configuration data','woocriptopay') . '</strong><ul>'; 297 295 foreach ($data_messages as $head=>$message) { 298 296 echo '<li><strong>' . $head . '</strong>'.$message.'</li>';
Note: See TracChangeset
for help on using the changeset viewer.