Plugin Directory

Changeset 697839


Ignore:
Timestamp:
04/15/2013 01:52:46 PM (13 years ago)
Author:
sociable
Message:

New Version

Location:
sociable/trunk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • sociable/trunk/includes/sociable_output.php

    r576818 r697839  
    129129    // Start preparing the output
    130130
    131 
     131$args = array(
     132    'post_type' => 'attachment',
     133    'numberposts' => null,
     134    'post_status' => null,
     135    'post_parent' => $post->ID
     136);
     137
     138$image = "";
     139if ($attachments) {
     140    foreach ($attachments as $attachment) {
     141        //echo apply_filters('the_title', $attachment->post_title);
     142        $image =  wp_get_attachment_url($attachment->ID, true);
     143    }
     144}
    132145
    133146    $html = '<!-- Start Sociable --><div class="sociable">';
     
    257270
    258271        $url = str_replace('TITLE', $title, $url);
     272       
     273        $url = str_replace('SOURCE',$image,$url);
    259274
    260275        $url = str_replace('RSS', $rss, $url);
     
    297312
    298313            }
     314            if ($description =="vuible"){
     315                $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='' src='".SOCIABLE_HTTP_PATH."images/".$sociable_options['icon_option']."/".$sociable_options['icon_size']."/vuible.png'>";
     316            }
    299317
    300318        }
     
    312330        $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
    313331
    314         if ($sitename == "Add to favorites" || $sitename=="More"){
    315 
    316             if ($sitename == "More"){
    317 
    318                 $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
    319 
     332        if ($sitename == "Add to favorites" || $sitename=="More" || $sitename=="vuible"){
     333           
     334            if ($sitename == "More" || $sitename=="vuible"){
     335                if ($sitename == "More"){
     336                    $link .= '<a style="cursor:pointer" rel="nofollow" onMouseOut="fixOnMouseOut(document.getElementById(\'sociable-post'.$location.'-'.$post->ID.'\'), event, \'post'.$location.'-'.$post->ID.'\')" onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
     337                }else{             
     338                    $link .= '<a onClick="ipinit();" style="cursor:pointer" rel="nofollow" title="Vuible.com | Share positive messages (images and videos only)">' . $linkitem . '</a></li>' ;
     339                }
    320340            }else{
    321341
     
    371391
    372392        $url = str_replace('TITLECOUNT', $titleCOUNT, $url);
     393       
     394        $url = str_replace('SOURCE',$image,$url);
    373395
    374396        $url = str_replace('TITLE', $title, $url);
     
    395417
    396418            if (isset($description) && $description!= "More"){
    397 
     419           
    398420                $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : _get_sociable_image( $site, $description );
    399421
    400422            }else{
    401 
     423               
    402424                $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<img style='".$margin."' src='".SOCIABLE_HTTP_PATH."images/more.png'>";
    403425
    404426            }
     427           
     428            if ($sitename =="vuible"){
     429
     430                $linkitem = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<a  title='Vuible.com | Share positive messages (images and videos only)'> <img style='' src='".SOCIABLE_HTTP_PATH."images/".$sociable_options['icon_option']."/".$sociable_options['icon_size']."/vuible.png'></a>";
     431            }
    405432
    406433        }
     
    418445        $target = isset( $sociable_options['new_window'] ) ? 'target="_blank"' : '' ;
    419446
    420         if ($sitename == "Add to favorites" || $sitename=="More"){
    421 
    422             if ($sitename == "More"){
    423 
     447        if ($sitename == "Add to favorites" || $sitename=="More" || $sitename=="vuible"){
     448
     449            if ($sitename == "More" || $sitename=="vuible"){
     450                if ($sitename=="More"){
    424451                $link .= '<a style="cursor:poainter" rel="nofollow"   onMouseOver="more(this,\'post'.$location.'-' . $post->ID . '\')">' . $linkitem . '</a></li>' ;
    425 
     452                }else{             
     453                    $link .= '<a onClick="ipinit();" style="cursor:pointer" rel="nofollow" title="Vuible.com | Share positive messages (images and videos only)">' . $linkitem . '</a></li>' ;
     454                }
    426455            }else{
    427456
     
    435464
    436465                $link .= '<a  title="'.$sitename.'" style="'.$description.$sociable_options['icon_size'].'_'.str_replace("option","",$sociable_options['icon_option']).'" rel="nofollow" ' . $target . ' href="' . $href . '">' . $linkitem . '</a></li>' ;
    437 
     466       
    438467            }else{
    439468
     
    523552
    524553        $url = str_replace('PERMALINK', $permalink, $url); 
     554        if ($sitename =="vuible Counter"){
     555               
     556                $url = ( ! isset( $sociable_options['use_images'] ) ) ? $description : "<a  title='Vuible.com | Share positive messages (images and videos only)'><img onClick='ipinit();' style='cursor:pointer' src='".SOCIABLE_HTTP_PATH."images/vuible.png'></a>";
     557            }
    525558
    526559    $link.= $url."</li>";   
  • sociable/trunk/readme.txt

    r596569 r697839  
    55Requires at least: 2.6
    66Tested up to: 3.3.1
    7 Stable tag: 4.3.3
     7Stable tag: 4.3.4
    88
    99Congrats for joining the leader in the sharing space of WordPress plugins. "Sociable" is totally FREE, has over 1,7 million downloads and now you can enjoy Fueto and make your searches more Sociable.
     
    6060
    6161
    62 *** Sociable 4.3.2 ***
     62*** Sociable 4.3.4 ***
    6363
    6464= Recent Updates =
     
    154154== Changelog ==
    155155
     156= 4.3.4 =
     157
     158* Bugs Fixed.
     159* Vuible.com added
     160
    156161= 4.3.3 =
    157162
  • sociable/trunk/sociable.php

    r596569 r697839  
    44Plugin URI: http://blogplay.com/plugin
    55Description: Automatically add links on your posts, pages and RSS feed to your favorite social bookmarking sites.
    6 Version: 4.3.3
     6Version: 4.3.4
    77Author: Blogplay
    88Author URI: http://blogplay.com/
     
    262262
    263263    wp_enqueue_script( 'sociable' , SOCIABLE_HTTP_PATH . 'js/sociable.js' );
     264   
     265    wp_enqueue_script( 'vuible' , SOCIABLE_HTTP_PATH . 'js/vuible.js' );
    264266
    265267
     
    653655
    654656
    655 
     657                                    'vuible' =>'on',
    656658
    657659
     
    697699
    698700
    699                                     'BlinkList' =>'on',
     701                                   
    700702
    701703
     
    745747
    746748
    747                                     'StumbleUpon Counter' =>'on'
     749                                    'StumbleUpon Counter' =>'on',
     750                                   
     751                                    'vuible Counter' =>'on'
    748752
    749753
     
    18351839        ),
    18361840
    1837 
     1841        'vuible'  => array(
     1842            'favicon' => 'vuible.png',
     1843            'url' => 'http://vuible.com/pins-settings/?m=bm&imgsrc=SOURCE&source=PERMALINK&title=TITLE&video=0',
     1844            'spriteCoordinates' => Array(
     1845                '16' => array("-112px","-16px"),
     1846                '32' => array("-224px","-32px"),
     1847                '48' => array("-336px","-48px"),
     1848                '64' => array("-448px","-64px")
     1849            )
     1850),
     1851'vuible Counter'  => array(
     1852            'counter' =>1,
     1853            'favicon' => 'vuible.png',
     1854            'url' => '<script src="http://www.stumbleupon.com/hostedbadge.php?s=2&r=PERMALINKCOUNT"></script>',
     1855            'spriteCoordinates' => Array(
     1856                '16' => array("-112px","-16px"),
     1857                '32' => array("-224px","-32px"),
     1858                '48' => array("-336px","-48px"),
     1859                '64' => array("-448px","-64px")
     1860            )
     1861),
    18381862
    18391863
Note: See TracChangeset for help on using the changeset viewer.