Plugin Directory

Changeset 2045306


Ignore:
Timestamp:
03/06/2019 02:20:02 PM (7 years ago)
Author:
stubob
Message:

update trunk w fixed shortcode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tokenpile-client/trunk/public/class-tokenpile_client-public.php

    r2042947 r2045306  
    2323class Tokenpile_client_Public
    2424{
    25 
     25   
    2626    /**
    2727     * The ID of this plugin.
     
    3232     */
    3333    private $tokenpile_plugin_name;
    34 
     34   
    3535    /**
    3636     * The version of this plugin.
     
    4141     */
    4242    private $version;
    43 
     43   
    4444    private $url;
    4545   
     
    5959        $this->url = $url;
    6060    }
    61 
     61   
    6262    /**
    6363     * Register the stylesheets for the public-facing side of the site.
     
    6767    public function enqueue_styles()
    6868    {
    69 
     69       
    7070        /**
    7171         * This function is provided for demonstration purposes only.
     
    8181        wp_enqueue_style($this->tokenpile_plugin_name, plugin_dir_url(__FILE__) . 'css/tokenpile_client-public.css', array(), $this->version, 'all');
    8282    }
    83 
     83   
    8484    /**
    8585     * Register the JavaScript for the public-facing side of the site.
     
    8989    public function enqueue_scripts()
    9090    {
    91 
     91       
    9292        /**
    9393         * This function is provided for demonstration purposes only.
     
    104104            'jquery'
    105105        ), $this->version, false);
    106         wp_enqueue_script("tokenpile_main", $this->url . "/tokenpile-public/tokenpile.js", array(
     106        wp_enqueue_script("tokenpile_main", "//www.tokenpile.com/tokenpile-public/tokenpile.js", array(
    107107            'jquery'
    108108        ), $this->version, false);
    109109    }
    110 
     110   
    111111    public function tokenpile_display_div($content)
    112112    {
     
    123123        return $content;
    124124    }
    125 
     125   
    126126    public function tokenpile_register_shortcodes()
    127127    {
     
    131131        ));
    132132    }
    133 
     133   
    134134    public function tokenpile_div_shortcode_func($atts = [], $content = null)
    135135    {
Note: See TracChangeset for help on using the changeset viewer.