Plugin Directory

Changeset 3431579


Ignore:
Timestamp:
01/03/2026 11:04:06 AM (2 weeks ago)
Author:
Prisna
Message:

New plugin version 3.1. LinkedIn company url fix.

Location:
social-counter
Files:
72 added
6 edited

Legend:

Unmodified
Added
Removed
  • social-counter/trunk/classes/base.class.php

    r3313479 r3431579  
    364364        if (empty($result))
    365365            $result = $_name;
    366            
     366
     367        if (substr($_id, -9) === '_linkedin' && strpos($_name, '/company/') !== false)
     368            $result = '/company/' . $result;
     369
    367370        return $result;
    368371       
  • social-counter/trunk/classes/main.class.php

    r3313479 r3431579  
    569569            'vkontakte' => 'https://vk.com/{{ name }}/',
    570570            'linkedin' => 'https://www.linkedin.com/in/{{ name }}/',
     571            'linkedin_company' => 'https://www.linkedin.com{{ name }}/',
    571572            'pinterest' => 'https://www.pinterest.com/{{ name }}/',
    572573            'reddit' => 'https://www.reddit.com/user/{{ name }}/',
     
    576577            'tumblr' => 'https://{{ name }}.tumblr.com/'
    577578        );
     579
     580        if ($_network === 'linkedin' && strpos($_value, '/company/') !== false)
     581            $_network = 'linkedin_company';
    578582
    579583        return str_replace('{{ name }}', $_value, array_key_exists($_network, $mx) ? $mx[$_network] : '');
  • social-counter/trunk/javascript/admin.class.js

    r3313479 r3431579  
    186186    previewLink: function(_network) {
    187187       
    188         var value = this._extract_name(jQuery("#prisna_" + _network + "_name").val());
    189        
     188        var field = jQuery("#prisna_" + _network + "_name").val();
     189        var value = this._extract_name(field);
     190
    190191        if (value == "")
    191192            return;
    192        
     193
     194        if (_network === 'linkedin' && field.indexOf('/company/') !== -1)
     195            _network = 'linkedin_company';
     196
    193197        var link = this._get_network_url(_network, value);
    194198       
     
    205209            "vkontakte": "https://vk.com/{{ name }}/",
    206210            "linkedin": "https://www.linkedin.com/in/{{ name }}/",
     211            "linkedin_company": "https://www.linkedin.com/company/{{ name }}/",
    207212            "pinterest": "https://www.pinterest.com/{{ name }}/",
    208213            "reddit": "https://www.reddit.com/user/{{ name }}/",
  • social-counter/trunk/readme.txt

    r3413828 r3431579  
    33Requires at least: 3.6
    44Tested up to: 6.9
    5 Stable tag: 3.0
     5Stable tag: 3.1
    66Requires PHP: 5.6
    77License: GPL2+
  • social-counter/trunk/social-counter.php

    r3313479 r3431579  
    66 * Description: Ultra-lightweight plugin for sharing content on social networks. Optimized for speed with minimal impact on site performance, it offers a modern, responsive design.
    77 * Author: Prisna
    8  * Version: 3.0
     8 * Version: 3.1
    99 * Author URI: https://www.prisna.net/
    1010 * License: GPL2+
     
    1414
    1515define('PRISNA_SOCIAL_COUNTER__MINIMUM_WP_VERSION', '3.6');
    16 define('PRISNA_SOCIAL_COUNTER__VERSION', '3.0');
     16define('PRISNA_SOCIAL_COUNTER__VERSION', '3.1');
    1717
    1818define('PRISNA_SOCIAL_COUNTER__PLUGIN_DIR', plugin_dir_path(__FILE__));
  • social-counter/trunk/templates/admin/main_form.tpl

    r3313479 r3431579  
    55        <div class="prisna_social_counter_header_title"><a href="http://www.prisna.net/?d=96bf1f652e7648e6a8163cdd0a8fba41" target="_blank">Prisna</a>: {{ title_message }}</div>
    66    </div>
    7     <div class="prisna_social_counter_header_version"><a href="https://wordpress.org/plugins/social-counter/changelog/" target="_blank">v3.0</a></div>
     7    <div class="prisna_social_counter_header_version"><a href="https://wordpress.org/plugins/social-counter/changelog/" target="_blank">v3.1</a></div>
    88</div>
    99
Note: See TracChangeset for help on using the changeset viewer.