PHP Classes

File: includes/admin/views/html-admin-shipping-method-settings.php

Recommend this page to a friend!
  Classes of Julio Cezar Kronbauer  >  PHP WooCommerce Correios  >  includes/admin/views/html-admin-shipping-method-settings.php  >  Download  
File: includes/admin/views/html-admin-shipping-method-settings.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: PHP WooCommerce Correios
Woocommerce plugin for shipping via Correios
Author: By
Last change:
Date: 5 years ago
Size: 802 bytes
 

Contents

Class file image Download
<?php
/**
 * Shipping methods admin settings.
 *
 * @package WooCommerce_Correios/Admin/Settings
 */

if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
wp_enqueue_script( 'wc-correios', plugins_url( 'assets/js/admin/shipping-methods' . $suffix . '.js', WC_Correios::get_main_file() ), array( 'jquery' ), WC_Correios::VERSION, true );


$description = $this->get_method_description();

if ( ! empty(
$this->more_link ) ) {
   
$description .= ' <a href="' . esc_url( $this->more_link ) . '">' . esc_html( sprintf( __( 'More about %s.', 'woocommerce-correios' ), $this->method_title ) ) . '</a>';
}

echo
wp_kses_post( wpautop( $description ) );

include
dirname( __FILE__ ) . '/html-admin-help-message.php';

echo
$this->get_admin_options_html();

For more information send a message to info at phpclasses dot org.