Changeset 3596


Ignore:
Timestamp:
Jul 15, 2009, 10:19:03 PM (12 years ago)
Author:
tiico
Message:

Correct button style (thks mistic100)
Up to date AddThis options
Correct icons mode (disable on image.php because not working)
Update version to v 0.0.3

Location:
extensions/addThis
Files:
3 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • extensions/addThis/admin/AddThis.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
     4 * Version: 0.0.3
    55 * Description: Addthis activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=293
     
    1919
    2020$template->append('head_elements',
    21                    '<script type="text/javascript" src="./plugins/AddThis/farbtastic/farbtastic.js"></script>
    22 <link href="./plugins/AddThis/js/addthis.css" rel="stylesheet" type="text/css" />
    23 <link href="./plugins/AddThis/farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />');
     21                   '<script type="text/javascript" src="'.ADDTHIS_PATH.'farbtastic/farbtastic.js"></script>
     22<link href="'.ADDTHIS_JS_PATH.'addthis.css" rel="stylesheet" type="text/css" />
     23<link href="'.ADDTHIS_PATH.'farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />');
    2424$template->set_filenames( array('plugin_admin_content' => ADDTHIS_ROOT.'/admin/AddThis.tpl') );
    2525
  • extensions/addThis/admin/AddThis.tpl

    r3411 r3596  
    7979                                                        <td><input name="HomeButton" type="radio" value="8" {$Homebutton8_checked} /></td>
    8080                                                        <td><input name="CategoryButton" type="radio" value="8" {$Categorybutton8_checked} /></td>
    81                                                         <td><input name="ImageButton" type="radio" value="8" {$Imagebutton8_checked} /></td>
     81                                                        <td>&nbsp;</td>
    8282                                                </tr>
    8383
  • extensions/addThis/admin/AddThis_admin.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
     4 * Version: 0.0.3
    55 * Description: Addthis activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=293?eid=293
     
    3030$tabsheet->add('AddThis',
    3131                                l10n('AddThis'),
    32                $my_base_url.'&amp;tab=addthis');
     32               $my_base_url.'&amp;tab=AddThis');
    3333$tabsheet->assign();
    3434
  • extensions/addThis/include/AddThis.class.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
     4 * Version: 0.0.3
    55 * Description: AddThis activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=293
     
    1919            global $template, $page, $user;
    2020
    21                         if (  (isset($page['page']) && ($page['page']) == 'plugin')
    22                                 &&(isset($page['body_id']) && isset($page['section']) && ($page['section']) == 'theAdminPage'))
    23                                         $cssfile = '<link href="./plugins/AddThis/js/addthis.css" rel="stylesheet" type="text/css" />';
    24                         else
    25                         {
    26                                 if (isset($page['section']) && ($page['section']) == 'categories')
    27                                 {                       
    28                                         // Selection du mode 'icones'
    29                                         if (    (isset($page['image_id']) && $this->my_config['ImageButton'] == 8)
    30                                                  ||     (empty($page['category']) && $this->my_config['HomeButton'] == 8)
    31                                                  ||     (isset($page['category']) && $this->my_config['CategoryButton'] == 8)
    32                                                 )
    33                                                 $cssfile = '<link href="./plugins/AddThis/js/addthis.css" rel="stylesheet" type="text/css" />';
    34                                 }
    35                         }
    36                         if (isset($cssfile))           
    37                                 $template->append('head_elements',$cssfile);           
     21        if (isset($page['section']) && ($page['section']) == 'categories')
     22        {                       
     23            // Selection du mode 'icones'
     24            if (        (isset($page['image_id']) && $this->my_config['ImageButton'] == 8)
     25                 ||     (empty($page['category']) && $this->my_config['HomeButton'] == 8)
     26                 ||     (isset($page['category']) && $this->my_config['CategoryButton'] == 8)
     27                )
     28//                                              $cssfile = '<link href="./plugins/AddThis/js/addthis.css" rel="stylesheet" type="text/css" />';
     29                $cssfile = '<link href="'.ADDTHIS_JS_PATH.'addthis.css" rel="stylesheet" type="text/css" />';
     30        }
     31        if (isset($cssfile))           
     32            $template->append('head_elements',$cssfile);               
    3833           
    3934        }
     
    6964                                                );
    7065
     66                // Taille des boutons
     67                $addthis_img_size = array(
     68                        '',
     69                        '125',
     70                        '83',
     71                        '123',
     72                        '83',
     73                        '125',
     74                        '16',
     75                        '');                                   
    7176                $addthis_option = '';
    7277                $addthis_img = 0;
     
    8994                }
    9095                // pas d'affichage sur selection = 'desactive' ou si selection = 'icones'
    91                 if ($addthis_img > 0 && $addthis_img < 8)
     96                if ($addthis_img > 0 && $addthis_img < 9)
    9297                {
    9398                        foreach ($this->my_config['addthis_options'] as $key => $value)
     
    102107                                                                 
    103108
    104                                 $tpl_code = (isset($page['image_id']) ? "\n".'<p align="left">' :"\n<li>")
    105                                 .'<script type="text/javascript">'
    106                                 .(strlen($addthis_option) != 0 ? 'var addthis_options = \''.$addthis_option.'\'': '')
    107                                 .(strlen($this->my_config['addthis_pub']) != 0 ? "\n".'var addthis_pub = "'.$this->my_config['addthis_pub'].'";' : '')
    108                                 .(strlen($this->my_config['addthis_brand']) != 0 ? "\n".'var addthis_brand = "'.$this->my_config['addthis_brand'].'";' : '')
    109                                 .(strlen($this->my_config['addthis_header_color']) != 0 ? "\n".'var addthis_header_color = "'.$this->my_config['addthis_header_color'].'";' : '')
    110                                 .(strlen($this->my_config['addthis_header_background']) != 0 ? "\n".'var addthis_header_background = "'.$this->my_config['addthis_header_background'].'";' : '')
    111 
    112                                 .(strlen($this->my_config['addthis_offset_top']) != 0 ? "\n".'var addthis_offset_top = '.$this->my_config['addthis_offset_top'].';' : '')
    113                                 .(strlen($this->my_config['addthis_offset_left']) != 0 ? "\n".'var addthis_offset_left = '.$this->my_config['addthis_offset_left'].';' : '')
    114                                 .(strlen($this->my_config['addthis_hover_delay']) != 0 ? "\n".'var addthis_hover_delay = '.$this->my_config['addthis_hover_delay'].';' : '')
    115                                 .(strlen($this->my_config['addthis_language']) != 0 ? "\n".'var addthis_language = "'.$this->my_config['addthis_language'].'";' : '')
    116 
    117                                 .'</script>
    118                                 <a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()">'
     109            $tpl_code = (isset($page['image_id']) ? "\n" :"\n<li>")
     110            .'<script type="text/javascript">'
     111            .(strlen($this->my_config['addthis_pub']) != 0 ? "\n".'var addthis_pub = "'.$this->my_config['addthis_pub'].'";' : '')
     112            .(strlen($this->my_config['addthis_brand']) != 0 ? "\n".'var addthis_brand = "'.$this->my_config['addthis_brand'].'";' : '')
     113            .(strlen($this->my_config['addthis_header_color']) != 0 ? "\n".'var addthis_header_color = "'.$this->my_config['addthis_header_color'].'";' : '')
     114            .(strlen($this->my_config['addthis_header_background']) != 0 ? "\n".'var addthis_header_background = "'.$this->my_config['addthis_header_background'].'";' : '')
     115            .(strlen($this->my_config['addthis_offset_top']) != 0 ? "\n".'var addthis_offset_top = '.$this->my_config['addthis_offset_top'].';' : '')
     116            .(strlen($this->my_config['addthis_offset_left']) != 0 ? "\n".'var addthis_offset_left = '.$this->my_config['addthis_offset_left'].';' : '')
     117            .(strlen($this->my_config['addthis_hover_delay']) != 0 ? "\n".'var addthis_hover_delay = '.$this->my_config['addthis_hover_delay'].';' : '')
     118            .(strlen($this->my_config['addthis_language']) != 0 ? "\n".'var addthis_language = "'.$this->my_config['addthis_language'].'";' : '')
     119             ."\n" ;
     120               
     121            if ($addthis_img > 0 && $addthis_img < 8)
     122            {
     123                $tpl_code.=(strlen($addthis_option) != 0 ? 'var addthis_options = \''.$addthis_option.'\'': '')
     124                ."\n"
     125                .'</script>';
     126
     127               
     128                                $tpl_code .= '<a style="padding:4px;'.(isset($addthis_img_size[$addthis_img]) ? 'width:'.$addthis_img_size[$addthis_img].'px;' : '').'" href="http://www.addthis.com/bookmark.php?v=250" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()">'
     129                 ."\n"
    119130                                .$addthis_img_src[$addthis_img]
     131                 ."\n"
    120132                                // si selection du 7
    121133                                .($addthis_img == 7 ? (strlen($this->my_config['addthis_icon_text']) != 0 ? $this->my_config['addthis_icon_text'] : 'Share' ) : '')
    122                                 .'</a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>'
    123                                 .(isset($page['image_id']) ? '</p>' :'</li>');
    124 
    125                 }
    126                 else if ($addthis_img == 8)
    127                 {
    128 
    129                         $tpl_code = '
    130                         <script type="text/javascript">
    131                         addthis_title   = document.title;
    132                         addthis_url     = window.location.href;
    133                         addthis_clickout= true;'
    134                         .(strlen($this->my_config['addthis_pub']) != 0 ? "\n".'addthis_id = \''.$this->my_config['addthis_pub'].'\';' : '')
    135                         .'</script>'
    136                         ."\n";
    137                         $nb_icons = 1;
    138                         foreach ($this->my_config['addthis_options'] as $key => $value)
    139                         {
    140                                 if ($nb_icons <= $this->my_config['addthis_icon_nb'])
    141                                 {
    142                                         if ($value == true)
    143                                         {               
    144                                                 $nb_icons++;
    145 
    146                                                 $tpl_code .= (isset($page['image_id']) ? '' : '<li>')
    147                                                 .'<a href="/" title="'.$key.'" onclick="return addthis_invoke(\''.$key.'\', addthis_url, addthis_title, addthis_id);" class="at15t at15t_'.$key.'"> &nbsp;'.$key.'</span></a>'
    148                                                 .(isset($page['image_id']) ? '' : '</li>')
    149                                                 ."\n"; 
    150 
    151 //                                              $tpl_code .= '<td width="10"></td><td class="c1"><a href="javascript:sets(\''.$key.'\');" class="c1a" onclick="return omc(\''.$key.'\')"><span class="at15t at15t_'.$key.'"></span></a></td>';
    152 //                                      $tpl_code .= '<li class="at15t at15t_'.$key.'"><a  href="/" title="'.$key.'" onclick="return addthis_invoke(\''.$key.'\', addthis_url, addthis_title, addthis_id);" ></a></li>';                                       
    153                                         }
    154                                 }
    155                         }
    156                         $tpl_code .= '<script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>'."\n";
    157 
    158                 }
    159                        
     134                                ."\n"
     135                .'</a><script type="text/javascript" src="'.ADDTHIS_JS_PATH.'addthis_widget.js"></script>'
     136                                ."\n"
     137                .(isset($page['image_id']) ? '' :'</li>');
     138            }
     139
     140            else if ($addthis_img == 8)
     141            {
     142                $tpl_code .= '</script>';
     143
     144                $tpl_code .= '
     145                <script type="text/javascript">
     146                addthis_title   = document.title;
     147                addthis_url     = window.location.href;
     148                addthis_clickout= true;'
     149                .(strlen($this->my_config['addthis_pub']) != 0 ? 'addthis_id = \''.$this->my_config['addthis_pub'].'\';' : '')
     150                ."\n"
     151                .'</script>'
     152                ."\n";
     153               
     154                $nb_icons = 1;
     155
     156                $tpl_code .= (isset($page['image_id']) ? '' : '<li>');
     157
     158                $tpl_code .= '<div class="addthis_toolbox addthis_default_style">';
     159
     160                foreach ($this->my_config['addthis_options'] as $key => $value)
     161                {
     162                    if ($nb_icons <= $this->my_config['addthis_icon_nb'])
     163                    {
     164                        if ($value == true)
     165                        {               
     166                            $nb_icons++;
     167                            if ($key == "more")
     168                            {
     169                                                        $tpl_code .='<span class="addthis_separator" style="padding:1px;">|</span>';
     170                                $tpl_code .='<a href="http://www.addthis.com/bookmark.php?v=250" class="addthis_button_compact""></a>';
     171                            }
     172                            else
     173                                $tpl_code .='<a class="addthis_button_'.$key.'" ></a>';
     174
     175                        }
     176                    }
     177                }
     178//                $tpl_code .= '<script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>'."\n";
     179                $tpl_code .= '<script type="text/javascript" src="'.ADDTHIS_JS_PATH.'addthis_widget.js"></script>'."\n";
     180                        $tpl_code .= (isset($page['image_id']) ? '' : '</li>');
     181
     182               
     183            }
     184
     185                }
    160186                if (isset($tpl_code))
    161187                {
    162188                        if (isset($page['image_id']))
    163 //                              $template->concat('PLUGIN_PICTURE_BEFORE', $tpl_code);
    164189                                $template->concat('PLUGIN_PICTURE_ACTIONS', $tpl_code);
    165190                        else
     
    170195
    171196
    172         // Add piclens pics to start slideshow
    173         // Another thanks to P@t
    174197
    175198        /* Loading of the configuration file - If not exist -> load default values */
     
    222245        }
    223246       
    224                  
    225         function add_AddThis_action()
    226         {
    227                 global $template, $page;
    228 
    229                         $tpl_code = '<script type="text/javascript">var addthis_pub="4a0c1f674d14de33";</script>
    230 <a href="http://www.addthis.com/bookmark.php?v=20" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()" class="button"><img src="http://s7.addthis.com/static/btn/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" ></a><script type="text/javascript" src="http://s7.addthis.com/js/200/addthis_widget.js"></script>';
    231 
    232                 if (isset($tpl_code))
    233                 {
    234 //                      $template->concat('PLUGIN_INDEX_ACTIONS', $tpl_code);
    235                         $template->concat('PLUGIN_PICTURE_BEFORE', $tpl_code);
    236        
    237                 }
    238         }
    239 
    240247       
    241248        function AddThis_admin_menu($menu)
  • extensions/addThis/include/constants.inc.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
    5  * Description: Addthiss activation
    6  * Plugin URI: http://fr.piwigo.org/ext/extension_view.php
     4 * Version: 0.0.3
     5 * Description: Addthis activation
     6 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=293
    77 * Author: Tiico
    88 * Author URI:
  • extensions/addThis/include/default_values.inc.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
     4 * Version: 0.0.3
    55 * Description: Addthiss activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=293
  • extensions/addThis/js/addthis.css

    r3411 r3596  
    1 .at15t{display:inline-block!important;height:16px!important;line-height:16px!important;padding-left:20px!important;background:url(../img/icons.gif) no-repeat left;cursor:pointer;}
    2 .at15t_more{background-position:0px 100px}
    3 .at15t_000{background-position:0px -0px}
    4 .at15t_aim{background-position:0px -16px;}
    5 .at15t_ask{background-position:0px -32px}
    6 .at15t_backflip{background-position:0px -48px}
    7 .at15t_ballhype{background-position:0px -64px}
    8 .at15t_bebo{background-position:0px -80px}
    9 .at15t_blinklist{background-position:0px -96px}
    10 .at15t_blogmarks{background-position:0px -112px}
    11 .at15t_buzz{background-position:0px -128px}
    12 .at15t_delicious{background-position:0px -144px}
    13 .at15t_digg{background-position:0px -160px}
    14 .at15t_diigo{background-position:0px -176px}
    15 .at15t_email{background-position:0px -192px}
    16 .at15t_facebook{background-position:0px -208px}
    17 .at15t_fark{background-position:0px -224px}
    18 .at15t_faves{background-position:0px -240px}
    19 .at15t_favorites{background-position:0px -256px}
    20 .at15t_feedmelinks{background-position:0px -272px}
    21 .at15t_friendfeed{background-position:0px -288px}
    22 .at15t_furl{background-position:0px -304px}
    23 .at15t_google{background-position:0px -320px}
    24 .at15t_kaboodle{background-position:0px -336px}
    25 .at15t_kirtsy{background-position:0px -352px}
    26 .at15t_linkagogo{background-position:0px -368px}
    27 .at15t_linkedin{background-position:0px -384px}
    28 .at15t_live{background-position:0px -400px}
    29 .at15t_misterwong{background-position:0px -416px}
    30 .at15t_mixx{background-position:0px -432px}
    31 .at15t_multiply{background-position:0px -448px}
    32 .at15t_myaol{background-position:0px -464px}
    33 .at15t_myspace{background-position:0px -480px}
    34 .at15t_netvibes{background-position:0px -496px}
    35 .at15t_netvouz{background-position:0px -512px}
    36 .at15t_newsvine{background-position:0px -528px}
    37 .at15t_pownce{background-position:0px -544px}
    38 .at15t_print{background-position:0px -560px}
    39 .at15t_propeller{background-position:0px -576px}
    40 .at15t_reddit{background-position:0px -592px}
    41 .at15t_segnalo{background-position:0px -608px}
    42 .at15t_shadows{background-position:0px -624px}
    43 .at15t_simpy{background-position:0px -640px}
    44 .at15t_slashdot{background-position:0px -672px}
    45 .at15t_spurl{background-position:0px -688px}
    46 .at15t_stumbleupon{background-position:0px -704px}
    47 .at15t_stylehive{background-position:0px -720px}
    48 .at15t_tailrank{background-position:0px -736px}
    49 .at15t_technorati{background-position:0px -752px}
    50 .at15t_thisnext{background-position:0px -768px}
    51 .at15t_twitter{background-position:0px -784px}
    52 .at15t_yahoobkm{background-position:0px -800px}
    53 .at15t_yardbarker{background-position:0px -816px}
    54 .at15t_netscape{background-position:0px -576px}
    55 
    561#colorpicker{
    572        float:right;
    583        margin-left:10px;
    594}
     5
     6.at15t{display:block!important;height:16px!important;line-height:16px!important;padding-left:20px!important;background:url(../img/widget01.png) no-repeat left;cursor:pointer}.addthis_button {    cursor:pointer}
     7.addthis_toolbox.addthis_default_style span {   line-height:16px;   }
     8.addthis_default_style {display:inline-block! important ;   line-height:16px;  padding:4px; height:16px }
     9.addthis_default_style .addthis_separator {    margin:0px 5px;   display:inline-block}
     10div.atclear {    clear:both}/* float rule */
     11.addthis_default_style .addthis_separator,.addthis_default_style .at300b,.addthis_default_style .at300m,.addthis_default_style .at300bs {}
     12.at300b img {    border:0}/* float padding */
     13.addthis_default_style .at300b,.addthis_default_style .at300m {    padding:0px 2px}/* cursor rule */.at300b,.at300m,.at300bs {cursor:pointer}
     14.at300bs {background:url(../img/widget01.png) no-repeat left;   overflow:hidden;   display:block;   height:16px;   width:16px;line-height:16px!important}
     15.at300bs
     16.at15t_expanded,.at300bs
     17.at15t_compact {    background:url(../img/logo1414.gif) no-repeat left;margin-right:4px}
     18.at15t_more{background:url(../img/logo1414.gif) no-repeat left !important} /*;background-position:0px 100px}*/
     19.at15t_000{background-position:0px -0px}
     20.at15t_aim{background-position:0px -16px!important}
     21.at15t_amazonwishlist{background-position:0px -32px!important}
     22.at15t_ask{background-position:0px -48px!important}
     23.at15t_backflip{background-position:0px -64px!important}
     24.at15t_ballhype{background-position:0px -80px!important}
     25.at15t_bebo{background-position:0px -96px!important}
     26.at15t_blogger{background-position:0px -112px!important}
     27.at15t_blogmarks{background-position:0px -128px!important}
     28.at15t_buzz{background-position:0px -144px!important}
     29.at15t_delicious{background-position:0px -160px!important}
     30.at15t_digg{background-position:0px -176px!important}
     31.at15t_diigo{background-position:0px -192px!important}
     32.at15t_email{background-position:0px -208px!important}
     33.at15t_facebook{background-position:0px -224px!important}
     34.at15t_fark{background-position:0px -240px!important}
     35.at15t_faves{background-position:0px -256px!important}
     36.at15t_favorites{background-position:0px -272px!important}
     37.at15t_friendfeed{background-position:0px -288px!important}
     38.at15t_friendster{background-position:0px -304px!important}
     39.at15t_google{background-position:0px -320px!important}
     40.at15t_hatena{background-position:0px -336px!important}
     41.at15t_hi5{background-position:0px -352px!important}
     42.at15t_kaboodle{background-position:0px -368px!important}
     43.at15t_kirtsy{background-position:0px -384px!important}
     44.at15t_linkagogo{background-position:0px -400px!important}
     45.at15t_linkedin{background-position:0px -416px!important}
     46.at15t_live{background-position:0px -432px!important}
     47.at15t_meneame{background-position:0px -448px!important}
     48.at15t_misterwong{background-position:0px -464px!important}
     49.at15t_mixx{background-position:0px -480px!important}
     50.at15t_multiply{background-position:0px -496px!important}
     51.at15t_myaol{background-position:0px -512px!important}
     52.at15t_myspace{background-position:0px -528px!important}
     53.at15t_netvibes{background-position:0px -544px!important}
     54.at15t_netvouz{background-position:0px -560px!important}
     55.at15t_newsvine{background-position:0px -576px!important}
     56.at15t_nujij{background-position:0px -592px!important}
     57.at15t_orkut{background-position:0px -608px!important}
     58.at15t_plaxo{background-position:0px -624px!important}
     59.at15t_print{background-position:0px -640px!important}
     60.at15t_propeller{background-position:0px -656px!important}
     61.at15t_reddit{background-position:0px -672px!important}
     62.at15t_segnalo{background-position:0px -688px!important}
     63.at15t_simpy{background-position:0px -704px!important}
     64.at15t_slashdot{background-position:0px -720px!important}
     65.at15t_spurl{background-position:0px -736px!important}
     66.at15t_stumbleupon{background-position:0px -752px!important}
     67.at15t_stylehive{background-position:0px -768px!important}
     68.at15t_tailrank{background-position:0px -784px!important}
     69.at15t_technorati{background-position:0px -800px!important}
     70.at15t_thisnext{background-position:0px -816px!important}
     71.at15t_tipd{background-position:0px -832px!important}
     72.at15t_tumblr{background-position:0px -848px!important}
     73.at15t_twitter{background-position:0px -864px!important}
     74.at15t_typepad{background-position:0px -880px!important}
     75.at15t_wordpress{background-position:0px -896px!important}
     76.at15t_yahoobkm{background-position:0px -912px!important}
     77.at15t_yardbarker{background-position:0px -928px!important}
     78.at15t_netscape{background-position:0px -656px!important}
  • extensions/addThis/language/en_UK/plugin.lang.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
     4 * Version: 0.0.3
    55 * Description: Addthis activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php
  • extensions/addThis/language/fr_FR/plugin.lang.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.1
     4 * Version: 0.0.3
    55 * Description: Addthis activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php
  • extensions/addThis/main.inc.php

    r3411 r3596  
    22/*
    33 * Plugin Name: AddThis
    4  * Version: 0.0.2
     4 * Version: 0.0.3
    55 * Description: AddThis activation
    66 * Plugin URI: http://fr.piwigo.org/ext/extension_view.php?eid=293
     
    1111/* 0.0.1 --> Initial version    */
    1212/* 0.0.2 --> Correction isset    */
    13 
     13/* 0.0.3 --> Correction style des boutons (merci mistic100) */
     14/*                Mise à jour nouvelle version AddThis */
     15/*                Correction affichage miniature uniquement (désactivé sur les images car ne fonctionne pas) */
     16 
    1417/********* TODO  *********/
    1518//-
     
    2427define('ADDTHIS_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/');
    2528define('ADDTHIS_INC_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/include/');
     29define('ADDTHIS_JS_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/js/');
    2630define('ADDTHIS_IMG_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/img/');
    2731define('ADDTHIS_ADMIN_PATH' , PHPWG_PLUGINS_PATH . ADDTHIS_DIR . '/admin/');
     
    3842add_event_handler('loc_end_index', array(&$obj, 'add_AddThis_icon'));
    3943
    40 //add_event_handler('loc_begin_picture', array(&$obj, 'add_AddThis_action'));
    4144add_event_handler('loc_begin_picture', array(&$obj, 'add_AddThis_icon'));
    4245add_event_handler('get_admin_plugin_menu_links', array(&$obj, 'addthis_admin_menu') );
Note: See TracChangeset for help on using the changeset viewer.