Plugin Directory

Changeset 1677635


Ignore:
Timestamp:
06/13/2017 12:53:09 PM (9 years ago)
Author:
exxica
Message:

Fixed minor bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • simple-sharing/trunk/public/class-exxica-simple-sharing-public.php

    r1677585 r1677635  
    5858     */
    5959    public function enqueue_styles() {
    60 
    6160        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' );
    6361    }
    6462
     
    6967     */
    7068    public function enqueue_scripts() {
    71 
    7269        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);
    7471    }
    7572
     
    9996            $sharers = array(
    10097                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)),
    103100                    'url' => sprintf("http://www.facebook.com/sharer/sharer.php?u=%s", urlencode($current_url)),
    104101                    'iconCls' => ($_icon_type === "1") ? 'fa-facebook-official' : 'fa-facebook-square',
     
    106103                ),
    107104                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)),
    110107                    'url' => sprintf("https://twitter.com/home?status=%s%s", urlencode($current_title.__(' på ', $this->plugin_name).html_entity_decode($blogname)), '%20'.urlencode($current_url)),
    111108                    'iconCls' => ($_icon_type === "1") ? 'fa-twitter' : 'fa-twitter-square',
     
    113110                ),
    114111                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)),
    117114                    'url' => sprintf("https://plus.google.com/share?url=%s", urlencode($current_url)),
    118115                    'iconCls' => ($_icon_type === "1") ? 'fa-google-plus-official' : 'fa-google-plus-square',
     
    120117                ),
    121118                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)),
    124121                    'url' => sprintf("https://www.linkedin.com/shareArticle?mini=true&url=%s&title=%s&source=%s", urlencode($current_url), urlencode($current_title), urlencode($blogname) ),
    125122                    'iconCls' => ($_icon_type === "1") ? 'fa-linkedin' : 'fa-linkedin-square',
     
    127124                ),
    128125                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)),
    131128                    'url' => sprintf(
    132129                        "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,
    134131                            $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)))
    136133                        ),
    137134                    'iconCls' => ($_icon_type === "1") ? 'fa-envelope-o' : 'fa-envelope-square',
Note: See TracChangeset for help on using the changeset viewer.