Changeset 1677635
- Timestamp:
- 06/13/2017 12:53:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
simple-sharing/trunk/public/class-exxica-simple-sharing-public.php
r1677585 r1677635 58 58 */ 59 59 public function enqueue_styles() { 60 61 60 wp_enqueue_style( $this->name.'-public', plugin_dir_url( __FILE__ ) . 'css/exxica-simple-sharing-public.css', array(), $this->version, 'all' ); 62 wp_enqueue_style( 'dashicons' );63 61 } 64 62 … … 69 67 */ 70 68 public function enqueue_scripts() { 71 72 69 wp_enqueue_script( $this->name.'-public', plugin_dir_url( __FILE__ ) . 'js/exxica-simple-sharing-public.js', array( 'jquery' ), $this->version, FALSE ); 73 70 wp_enqueue_script( 'fontawesome', 'https://use.fontawesome.com/acd86ae435.js', array('jquery'), '4.7.0', false); 74 71 } 75 72 … … 99 96 $sharers = array( 100 97 array( 101 'name' => __('Facebook', $this-> plugin_name),102 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this-> plugin_name), __('Facebook', $this->plugin_name)),98 'name' => __('Facebook', $this->name), 99 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this->name), __('Facebook', $this->name)), 103 100 'url' => sprintf("http://www.facebook.com/sharer/sharer.php?u=%s", urlencode($current_url)), 104 101 'iconCls' => ($_icon_type === "1") ? 'fa-facebook-official' : 'fa-facebook-square', … … 106 103 ), 107 104 array( 108 'name' => __('Twitter', $this-> plugin_name),109 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this-> plugin_name), __('Twitter', $this->plugin_name)),105 'name' => __('Twitter', $this->name), 106 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this->name), __('Twitter', $this->name)), 110 107 'url' => sprintf("https://twitter.com/home?status=%s%s", urlencode($current_title.__(' på ', $this->plugin_name).html_entity_decode($blogname)), '%20'.urlencode($current_url)), 111 108 'iconCls' => ($_icon_type === "1") ? 'fa-twitter' : 'fa-twitter-square', … … 113 110 ), 114 111 array( 115 'name' => __('Google+', $this-> plugin_name),116 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this-> plugin_name), __('Google+', $this->plugin_name)),112 'name' => __('Google+', $this->name), 113 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this->name), __('Google+', $this->name)), 117 114 'url' => sprintf("https://plus.google.com/share?url=%s", urlencode($current_url)), 118 115 'iconCls' => ($_icon_type === "1") ? 'fa-google-plus-official' : 'fa-google-plus-square', … … 120 117 ), 121 118 array( 122 'name' => __('LinkedIn', $this-> plugin_name),123 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this-> plugin_name), __('LinkedIn', $this->plugin_name)),119 'name' => __('LinkedIn', $this->name), 120 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this->name), __('LinkedIn', $this->name)), 124 121 'url' => sprintf("https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&source=%s", urlencode($current_url), urlencode($current_title), urlencode($blogname) ), 125 122 'iconCls' => ($_icon_type === "1") ? 'fa-linkedin' : 'fa-linkedin-square', … … 127 124 ), 128 125 array( 129 'name' => __('E-mail', $this-> plugin_name),130 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this-> plugin_name), __('E-mail', $this->plugin_name)),126 'name' => __('E-mail', $this->name), 127 'title' => sprintf('%s %s', ($_sharing_title_enabled === "1") ? $_sharing_title : __('Share the article on', $this->name), __('E-mail', $this->name)), 131 128 'url' => sprintf( 132 129 "mailto:?subject=%s&body=%s%s", 133 __($post->post_type.'_email', $this-> plugin_name).$current_title,130 __($post->post_type.'_email', $this->name).$current_title, 134 131 $current_excerpt, 135 '%0D%0A%0D%0A'.__('Read more about ',$this-> plugin_name).$current_title.' ('.urlencode($current_url).')'.__(' on ', $this->plugin_name). preg_replace("/\+/", " ", urlencode(html_entity_decode($blogname)))132 '%0D%0A%0D%0A'.__('Read more about ',$this->name).$current_title.' ('.urlencode($current_url).')'.__(' on ', $this->name). preg_replace("/\+/", " ", urlencode(html_entity_decode($blogname))) 136 133 ), 137 134 'iconCls' => ($_icon_type === "1") ? 'fa-envelope-o' : 'fa-envelope-square',
Note: See TracChangeset
for help on using the changeset viewer.