Changeset 2045306
- Timestamp:
- 03/06/2019 02:20:02 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tokenpile-client/trunk/public/class-tokenpile_client-public.php
r2042947 r2045306 23 23 class Tokenpile_client_Public 24 24 { 25 25 26 26 /** 27 27 * The ID of this plugin. … … 32 32 */ 33 33 private $tokenpile_plugin_name; 34 34 35 35 /** 36 36 * The version of this plugin. … … 41 41 */ 42 42 private $version; 43 43 44 44 private $url; 45 45 … … 59 59 $this->url = $url; 60 60 } 61 61 62 62 /** 63 63 * Register the stylesheets for the public-facing side of the site. … … 67 67 public function enqueue_styles() 68 68 { 69 69 70 70 /** 71 71 * This function is provided for demonstration purposes only. … … 81 81 wp_enqueue_style($this->tokenpile_plugin_name, plugin_dir_url(__FILE__) . 'css/tokenpile_client-public.css', array(), $this->version, 'all'); 82 82 } 83 83 84 84 /** 85 85 * Register the JavaScript for the public-facing side of the site. … … 89 89 public function enqueue_scripts() 90 90 { 91 91 92 92 /** 93 93 * This function is provided for demonstration purposes only. … … 104 104 'jquery' 105 105 ), $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( 107 107 'jquery' 108 108 ), $this->version, false); 109 109 } 110 110 111 111 public function tokenpile_display_div($content) 112 112 { … … 123 123 return $content; 124 124 } 125 125 126 126 public function tokenpile_register_shortcodes() 127 127 { … … 131 131 )); 132 132 } 133 133 134 134 public function tokenpile_div_shortcode_func($atts = [], $content = null) 135 135 {
Note: See TracChangeset
for help on using the changeset viewer.