Plugin Directory

Changeset 1506500


Ignore:
Timestamp:
10/01/2016 02:52:00 PM (9 years ago)
Author:
Synved
Message:

Changes for version 1.7.12:

  • Performance improvements for Dashboard loading
  • Added "message" parameter to share shortcode
Location:
social-media-feather/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • social-media-feather/trunk/readme.txt

    r1501859 r1506500  
    205205== Changelog ==
    206206
     207= 1.7.12 =
     208* Performance improvements for Dashboard loading
     209* Added "message" parameter to share shortcode
     210
    207211= 1.7.11 =
    208212* Adjusted some text and README descriptions
  • social-media-feather/trunk/social-media-feather.php

    r1439207 r1506500  
    55Description: Super lightweight social media plugin to add nice and effective social media sharing and following buttons and icons anywhere on your site quickly and easily
    66Author: Synved
    7 Version: 1.7.11
     7Version: 1.7.12
    88Author URI: http://synved.com/
    99
  • social-media-feather/trunk/synved-connect/synved-connect-sponsor.php

    r643181 r1506500  
    33function synved_connect_sponsor_list($filter = null)
    44{
     5    global $synved_connect;
     6   
    57    $sponsor_list = array(
    68        'wordpress-themes-1' => array(
     
    4143    );
    4244   
    43     $feed = fetch_feed('http://feeds.feedburner.com/_SynvedConnectList?format=xml');
    44    
    45     if (!is_wp_error($feed))
    46     {
    47         $maxitems = $feed->get_item_quantity();
    48     $feed_items = $feed->get_items(0, $maxitems);
    49     $feed_list = array();
    50    
    51     if ($maxitems > 0)
    52     {
    53         foreach ($feed_items as $feed_item)
    54         {
    55             $id = $feed_item->get_id();
    56             $label = $feed_item->get_title();
    57             $tip = $feed_item->get_description();
    58             $link = $feed_item->get_permalink();
    59             $text = $feed_item->get_content();
    60            
    61             $id_parts = array();
    62             parse_str(parse_url($id, PHP_URL_QUERY), $id_parts);
    63             $id = $id_parts['guid'];
    64            
    65             $feed_categories = $feed_item->get_categories();
    66             $type = null;
    67            
    68             if ($feed_categories != null)
    69             {
    70                 $category_tag = 'synved-connect-type-';
    71                
    72                 foreach ($feed_categories as $feed_category)
    73                 {
    74                     $feed_category = $feed_category->get_label();
    75                    
    76                     if (substr($feed_category, 0, strlen($category_tag)) == $category_tag)
    77                     {
    78                         $type = substr($feed_category, strlen($category_tag));
    79                        
    80                         break;
    81                     }
    82                 }
    83             }
    84            
    85             if ($type != null && $id != null)
    86             {
    87                 $feed_list[$id] = array(
    88                         'type' => $type,
    89                         'label' => $label,
    90                         'tip' => $tip,
    91                         'link' => $link,
    92                         'text' => $text
    93                 );
    94             }
    95         }
    96     }
    97    
    98     if ($feed_list != null)
    99     {
    100         $sponsor_list = $feed_list;
    101     }
    102     }
    103 
     45    if (isset($synved_connect['sponsor-list']))
     46    {
     47        $sponsor_list = $synved_connect['sponsor-list'];
     48    }
     49    else
     50    {
     51        $feed = fetch_feed('http://feeds.feedburner.com/_SynvedConnectList?format=xml');
     52   
     53        if (!is_wp_error($feed))
     54        {
     55            $maxitems = $feed->get_item_quantity();
     56          $feed_items = $feed->get_items(0, $maxitems);
     57          $feed_list = array();
     58         
     59          if ($maxitems > 0)
     60          {
     61            foreach ($feed_items as $feed_item)
     62            {
     63                    $id = $feed_item->get_id();
     64                    $label = $feed_item->get_title();
     65                    $tip = $feed_item->get_description();
     66                    $link = $feed_item->get_permalink();
     67                    $text = $feed_item->get_content();
     68                   
     69                    $id_parts = array();
     70                    parse_str(parse_url($id, PHP_URL_QUERY), $id_parts);
     71                    $id = $id_parts['guid'];
     72                   
     73                $feed_categories = $feed_item->get_categories();
     74                $type = null;
     75               
     76                if ($feed_categories != null)
     77                {
     78                    $category_tag = 'synved-connect-type-';
     79                   
     80                    foreach ($feed_categories as $feed_category)
     81                    {
     82                        $feed_category = $feed_category->get_label();
     83                       
     84                        if (substr($feed_category, 0, strlen($category_tag)) == $category_tag)
     85                        {
     86                            $type = substr($feed_category, strlen($category_tag));
     87                           
     88                            break;
     89                        }
     90                    }
     91                }
     92               
     93                if ($type != null && $id != null)
     94                {
     95                        $feed_list[$id] = array(
     96                            'type' => $type,
     97                            'label' => $label,
     98                            'tip' => $tip,
     99                            'link' => $link,
     100                            'text' => $text
     101                        );
     102                }
     103            }
     104          }
     105         
     106          if ($feed_list != null)
     107          {
     108            $sponsor_list = $feed_list;
     109          }
     110        }
     111   
     112        $synved_connect['sponsor-list'] = $sponsor_list;       
     113    }
     114   
    104115    if ($filter != null)
    105116    {
  • social-media-feather/trunk/synved-connect/synved-connect.php

    r1005713 r1506500  
    44Description: Connect and sync components in a WordPress installation with a remote server
    55Author: Synved
    6 Version: 1.0.2
     6Version: 1.0.3
    77Author URI: http://synved.com/
    88License: GPLv2
     
    2525
    2626define('SYNVED_CONNECT_LOADED', true);
    27 define('SYNVED_CONNECT_VERSION', 100000001);
    28 define('SYNVED_CONNECT_VERSION_STRING', '1.0.1');
     27define('SYNVED_CONNECT_VERSION', 100000003);
     28define('SYNVED_CONNECT_VERSION_STRING', '1.0.3');
    2929
    3030
  • social-media-feather/trunk/synved-social/synved-social-setup.php

    r1247510 r1506500  
    963963            'url' => __('URL to use for the sharing buttons, default is the current post URL', 'social-media-feather'),
    964964            'title' => __('Title to use for the sharing buttons, default is the current post title', 'social-media-feather'),
     965            'message' => __('Message to use when sharing content, replaced into the %%message%% variable', 'social-media-feather'),
    965966        );
    966967       
  • social-media-feather/trunk/synved-social/synved-social.php

    r1439207 r1506500  
    44Description: Social sharing and following tools
    55Author: Synved
    6 Version: 1.7.11
     6Version: 1.7.12
    77Author URI: http://synved.com/
    88License: GPLv2
     
    1919
    2020define('SYNVED_SOCIAL_LOADED', true);
    21 define('SYNVED_SOCIAL_VERSION', 100070011);
    22 define('SYNVED_SOCIAL_VERSION_STRING', '1.7.11');
     21define('SYNVED_SOCIAL_VERSION', 100070012);
     22define('SYNVED_SOCIAL_VERSION_STRING', '1.7.12');
    2323
    2424define('SYNVED_SOCIAL_ADDON_PATH', str_replace(array('/', '\\'), DIRECTORY_SEPARATOR, dirname(__FILE__) . '/addons'));
     
    217217            ),
    218218            'twitter' => array(
    219                 'link' => 'http://twitter.com/share?url=%%url%%&text=%%message%%',
     219                'link' => 'https://twitter.com/intent/tweet?url=%%url%%&text=%%message%%',
    220220                'title' => __('Share on Twitter'),
    221221            ),
     
    609609function synved_social_button_list_shortcode($atts, $content = null, $code = '', $context = null)
    610610{
    611     $vars_def = array('url' => null, 'image' => null, 'title' => null);
     611    $vars_def = array('url' => null, 'image' => null, 'title' => null, 'message' => null);
    612612    $params_def = array('skin' => null, 'size' => null, 'spacing' => null, 'container' => null, 'container_type' => null, 'class' => null, 'show' => null, 'hide' => null, 'prompt' => null, 'custom1' => null, 'custom2' => null, 'custom3' => null);
    613613    $vars = shortcode_atts($vars_def, $atts, 'feather_' . $context);
Note: See TracChangeset for help on using the changeset viewer.