Plugin Directory

Changeset 2424085


Ignore:
Timestamp:
11/24/2020 02:10:52 AM (5 years ago)
Author:
ahlul
Message:

update functions.php

Location:
billingotomatis-payment-gateway-indonesia
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • billingotomatis-payment-gateway-indonesia/tags/20201123/functions.php

    r2424083 r2424085  
    8080
    8181function bilo_load_css_js() {
    82     ?>
    83     <link rel='stylesheet' href='<?php echo plugins_url('assets/css/font-awesome.min.css', __FILE__); ?>' type='text/css' media='all' />
    84     <link rel='stylesheet' href='<?php echo plugins_url('assets/css/style.css', __FILE__); ?>' type='text/css' media='all' />
    85     <link rel='stylesheet' href='<?php echo plugins_url('assets/css/jquery-ui.css', __FILE__); ?>' type='text/css' media='all' />
    86     <script type='text/javascript' src='<?php echo plugins_url('assets/js/script.js', __FILE__); ?>'></script>
    87     <?php
     82  wp_register_style( 'font_awesome', plugins_url('assets/css/font-awesome.min.css', __FILE__), false, BILO_VERSION );
     83  wp_enqueue_style( 'font_awesome' );
     84  wp_register_style( 'style', plugins_url('assets/css/style.css', __FILE__), false, BILO_VERSION );
     85  wp_enqueue_style( 'style' );
     86  wp_register_style( 'jquery_custom_ui', plugins_url('assets/css/jquery-ui.css', __FILE__), false, BILO_VERSION );
     87  wp_enqueue_style( 'jquery_custom_ui' );
     88  wp_enqueue_script( 'script_js', plugins_url('assets/js/script.js', __FILE__), array(), BILO_VERSION );
    8889}
  • billingotomatis-payment-gateway-indonesia/trunk/functions.php

    r2423500 r2424085  
    8080
    8181function bilo_load_css_js() {
    82     ?>
    83     <link rel='stylesheet' href='<?php echo plugins_url('assets/css/font-awesome.min.css', __FILE__); ?>' type='text/css' media='all' />
    84     <link rel='stylesheet' href='<?php echo plugins_url('assets/css/style.css', __FILE__); ?>' type='text/css' media='all' />
    85     <link rel='stylesheet' href='<?php echo plugins_url('assets/css/jquery-ui.css', __FILE__); ?>' type='text/css' media='all' />
    86     <script type='text/javascript' src='<?php echo plugins_url('assets/js/script.js', __FILE__); ?>'></script>
    87     <?php
     82  wp_register_style( 'font_awesome', plugins_url('assets/css/font-awesome.min.css', __FILE__), false, BILO_VERSION );
     83  wp_enqueue_style( 'font_awesome' );
     84  wp_register_style( 'style', plugins_url('assets/css/style.css', __FILE__), false, BILO_VERSION );
     85  wp_enqueue_style( 'style' );
     86  wp_register_style( 'jquery_custom_ui', plugins_url('assets/css/jquery-ui.css', __FILE__), false, BILO_VERSION );
     87  wp_enqueue_style( 'jquery_custom_ui' );
     88  wp_enqueue_script( 'script_js', plugins_url('assets/js/script.js', __FILE__), array(), BILO_VERSION );
    8889}
Note: See TracChangeset for help on using the changeset viewer.