Plugin Directory

Changeset 2325990


Ignore:
Timestamp:
06/17/2020 05:02:28 PM (6 years ago)
Author:
sharpay
Message:

update to version 1.9

Location:
sharpay
Files:
20 added
12 edited

Legend:

Unmodified
Added
Removed
  • sharpay/trunk/assets/css/sharpay-admin.css

    r2132258 r2325990  
    9999    font-weight: bold;
    100100}
     101
     102.sharpay-construct {
     103    border: none !important;
     104    width: 100%;
     105    height: 1050px;
     106}
  • sharpay/trunk/assets/js/sharpay-admin.js

    r2132258 r2325990  
    1616*/
    1717
     18
     19const modelDefaults = {
     20    type: 'simple',
     21    language: '',
     22    height: '32',
     23    position: 'right',
     24    style: 'dark',
     25    shareCounter: false,
     26    shareCounterMode: 'page',
     27    image: '',
     28    syncLoad: false,
     29    colorChange: false,
     30    fontColor: '#ffffff',
     31    bgColor: '#ff9933',
     32    modal: true,
     33    size: '24',
     34    sizeCustom: '22',
     35    form: 'no',
     36    colorIcons: false,
     37    color: '#ff9933',
     38    colorFontSet: false,
     39    colorFont: '#ff9933',
     40    weight: 'normal',
     41    hover: 'official',
     42    reward: true,
     43    align: 'left',
     44    noLimit: true,
     45    limit: 3,
     46};
     47
    1848(function() {
    1949
     
    3060            $(e.target).siblings('.share-counter-mode').toggle();
    3161        })
    32 
    33         $('body').on('change', '.use-custom-markup', function(e) {
     62        .on('change', '.use-custom-markup', function(e) {
    3463            $(e.target).parent().siblings('.group').not('.always-visible').toggle();
     64        })
     65        .on('change', '.use-custom-colors', function(e) {
     66            $(e.target).siblings('.colors').toggle();
    3567        });
    3668
    37         $('body').on('change', '.use-custom-colors', function(e) {
    38             $(e.target).siblings('.colors').toggle();
     69
     70        var sharpayAppOrigin = 'https://app.sharpay.io';
     71        document.getElementById('sharpay-select-site').addEventListener('click', function() {
     72            var origin = window.location.protocol + "//" + window.location.hostname  + (window.location.port ? ':' + window.location.port : '');
     73            var url = sharpayAppOrigin + '/webmaster?flow=wp&flow_origin=' + encodeURIComponent(origin);
     74            window.open(url, null, 'height=810,width=1000,status=yes,toolbar=no,menubar=no,location=no');
    3975        });
     76        window.addEventListener("message", function(event) {
     77            console.log(event.data);
     78            if (event.origin !== sharpayAppOrigin) {
     79                return;
     80            }
     81            if( /^[0-9]+$/.test( event.data ) ) {
     82                $('#sharpay-construct-iframe').height( event.data );
     83            }
     84            else if( event.data.length >= 4 && event.data.length <= 7 ) {
     85                document.getElementById('sharpay-site-code').value = event.data;
     86            }
     87            else if( event.data.length > 5 ) {
     88                var model = JSON.parse( event.data );
     89                var src = {}; // eslint-disable-line no-useless-escape
     90                if ( model.language !== modelDefaults.language) {
     91                    src.lang = model.language;
     92                }
     93                if( model.size ) {
     94                    if( model.size === 'custom' ) {
     95                        src.height = model.sizeCustom;
     96                    } else {
     97                        src.height = model.size;
     98                    }
     99                }
     100                if( model.form ) {
     101                    src.form = model.form;
     102                }
     103                if ( model.noLimit && model.limit && /^\d+$/.test( model.limit ) ) {
     104                    src.limit = model.limit;
     105                }
     106                if( model.colorIcons && model.color ) {
     107                    src.color = model.color;
     108                }
     109                if( model.hover &&  model.hover !== 'official' ) {
     110                    src.hover = model.hover;
     111                }
     112                if( model.colorFontSet && model.colorFont ) {
     113                    src.font = model.colorFont;
     114                }
     115                if( model.align &&  model.align !== 'left' ) {
     116                    src.align = model.align;
     117                }
     118
     119                $('#sharpay-static-code').val( JSON.stringify( src ) );
     120                $('#sharpay-static-model').val( JSON.stringify( model ) );
     121            }
     122        });
     123
    40124    });
    41125
     126
     127
     128
    42129})();
  • sharpay/trunk/includes/class-sharpay-widget.php

    r2141914 r2325990  
    5656            <?php
    5757        } else {
    58             ?>
    59             <div class="sharpay-widget-settings">
    60                 <div class="group"  style="<?php echo $instance['use_custom_markup'] === true ? 'display:none;' : '' ?>">
    6158
    62                     <input type="radio" name="<?php echo $this->get_field_name( 'height' ); ?>" value="32" id="<?php echo "{$id}_h32" ?>"
    63                         <?php echo $instance['height'] === 32 ? 'checked' : '' ?> >
    64                     <label for="<?php echo "{$id}_h32" ?>"><?php echo __('32px', 'sharpay-plugin'); ?></label>
    65 
    66                     <input type="radio" name="<?php echo $this->get_field_name( 'height' ); ?>" value="24" id="<?php echo "{$id}_h24" ?>"
    67                         <?php echo $instance['height'] === 24 ? 'checked' : '' ?> >
    68                     <label for="<?php echo "{$id}_h24" ?>"><?php echo __('24px', 'sharpay-plugin'); ?></label>
    69 
    70                     <input type="radio" name="<?php echo $this->get_field_name( 'height' ); ?>" value="16" id="<?php echo "{$id}_h16" ?>"
    71                         <?php echo $instance['height'] === 16 ? 'checked' : '' ?> >
    72                     <label for="<?php echo "{$id}_h16" ?>"><?php echo __('16px', 'sharpay-plugin'); ?></label>
    73 
    74                     <p class="field-description"><?php echo __('Set button height to make button smaller. Button width will change accordingly.', 'sharpay-plugin') ?></p>
    75                 </div>
    76 
    77                 <div class="group" style="<?php echo $instance['use_custom_markup'] === true ? 'display:none;' : '' ?>">
    78                     <input type="hidden" name="<?php echo $this->get_field_name( 'share_counter' ); ?>" value="">
    79                     <input type="checkbox" name="<?php echo $this->get_field_name( 'share_counter' ); ?>" id="<?php echo "{$id}-share-counter" ?>" class="share-counter"
    80                         <?php echo $instance['share_counter'] === true ? 'checked' : '' ?> >
    81                     <label for="<?php echo "{$id}-share-counter" ?>"><?php echo __('Share counter', 'sharpay-plugin'); ?></label>
    82 
    83                     <div class="share-counter-mode" style="<?php echo $instance['share_counter'] === true ? '' : 'display:none;' ?>">
    84                         <input type="radio" name="<?php echo $this->get_field_name( 'share_counter_mode' ); ?>" value="page" id="<?php echo "{$id}_page" ?>"
    85                             <?php echo $instance['share_counter_mode'] === 'page' ? 'checked' : '' ?> >
    86                         <label for="<?php echo "{$id}_page" ?>"><?php echo __('Separate for every page', 'sharpay-plugin'); ?></label>
    87                         <input type="radio" name="<?php echo $this->get_field_name( 'share_counter_mode' ); ?>" value="site" id="<?php echo "{$id}_site" ?>"
    88                             <?php echo $instance['share_counter_mode'] === 'site' ? 'checked' : '' ?> >
    89                         <label for="<?php echo "{$id}_site" ?>"><?php echo __('Common for all site', 'sharpay-plugin'); ?></label>
    90                     </div>
    91                     <p class="field-description"><?php echo __('Check if you want our button to show how many times your page was shared via Sharpay.', 'sharpay-plugin'); ?></p>
    92                 </div>
    93 
    94                 <div class="group">
    95                     <input type="hidden" name="<?php echo $this->get_field_name( 'use_custom_markup' ); ?>" value="" >
    96                     <input type="checkbox" name="<?php echo $this->get_field_name( 'use_custom_markup' ); ?>" id="<?php echo "{$id}-use-custom-markup" ?>" class="use-custom-markup"
    97                         <?php echo $instance['use_custom_markup'] === true ? 'checked' : '' ?> >
    98                     <label for="<?php echo "{$id}-use-custom-markup" ?>"><?php echo __('Would you like to use your own HTML markup for Sharpay button?', 'sharpay-plugin'); ?></label>
    99                 </div>
    100 
    101                 <div class="group" style="<?php echo $instance['use_custom_markup'] === true ? '' : 'display:none;' ?>">
    102                     <textarea name="<?php echo $this->get_field_name( 'custom_markup' ); ?>" rows="5"><?php echo $instance['custom_markup']; ?></textarea>
    103                     <p class="field-description"><?php echo __('Enter HTML markup which represents your custom multishare button.', 'sharpay-plugin'); ?></p>
    104                 </div>
    105                
    106                 <div class="group always-visible">
    107                     <input type="text" id="<?php echo "{$id}-image" ?>" name="<?php echo $this->get_field_name( 'image' ); ?>"
    108                         value="<?php echo $instance['image'] ?>"
    109                         placeholder="<?php echo __('.img | #img | http://...', 'sharpay-plugin')?>">
    110                     <p class="field-description"><?php echo __('Enter class, id or URL of an image to make it selected by default in sharing window.', 'sharpay-plugin'); ?></p>
    111                 </div>
    112                
    113             </div>
    114             <?php
    11559        }
    11660    }
     
    156100        }
    157101        else {
    158             echo sharpay_generate_tag('static', $options['site_id'], $instance);
     102            if( empty( $options['static_code'] ) ) {
     103                echo sharpay_generate_tag('static', $options['site_id'], $instance );
     104            } else {
     105                echo sharpay_generate_new_tag($options['site_id'], $options['static_code']);
     106            }
    159107        }
    160108
  • sharpay/trunk/includes/sharpay-admin.php

    r2141914 r2325990  
    4343    );
    4444
    45     $static_default_options = array(
    46         'height' => 32,
    47         'share_counter' => false,
    48         'share_counter_mode' => 'page',
    49         'use_custom_colors' => false,
    50         'color_font' => 'ffffff',
    51         'color_bg' => 'ff9933',
    52         'image' => '',
    53         'modal' => true,
    54         'use_custom_markup' => false,
    55         'custom_markup' => 'Sharpay multishare button'
    56     );
    57 
    5845    return array(
    5946        'site_id' => '',
    6047
    61         'floating' => true,
     48        'floating' => false,
    6249        'floating_options' => $floating_default_options,
    6350        'before_content' => false,
    64         'before_content_options' => $static_default_options,
    65         'after_content' => false,
    66         'after_content_options' => $static_default_options,
     51        'after_content' => true,
    6752        'shortcode' => false,
    68         'shortcode_options' => $static_default_options
     53        'static_code' => '{}',
     54        'static_model' => '{}',
    6955    );
    7056}
     
    10793                        </a>
    10894                        <script>
    109                             (function() {
    110 
    111                                 var sharpayAppOrigin = 'https://app.sharpay.io';
    112 
    113                                 document.getElementById('sharpay-select-site').addEventListener('click', function() {
    114                                     var origin = window.location.protocol + "//" + window.location.hostname  + (window.location.port ? ':' + window.location.port : '');
    115                                     var url = sharpayAppOrigin + '/webmaster?flow=wp&flow_origin=' + encodeURIComponent(origin);
    116                                     window.open(url, null, 'height=810,width=1000,status=yes,toolbar=no,menubar=no,location=no');
    117                                 })
    118 
    119                                 window.addEventListener("message", function(event) {
    120                                     if (event.origin != sharpayAppOrigin) {
    121                                         return;
    122                                     }
    123                                     document.getElementById('sharpay-site-code').value = event.data;
    124                                 });
    125 
    126                             })();
     95
    12796                        </script>
    12897                        <p class="description">
    12998                            <?php echo __('To make Sharpay multisharing button work you need to register your site as a project in <a href="https://app.sharpay.io" target="_blank">app.sharpay.io</a> and provide project\'s ID', 'sharpay-plugin') ?>
    13099                        </p>
     100
     101                        <?php submit_button(); ?>
    131102                    </td>
    132103                </tr>
    133                 <tr>
     104
     105                <tr<?php print empty($sharpay_options['site_id']) ?' style="display:none"':'';?>>
    134106                    <th scope="row">
    135                         <?php echo __('Sharpay multishare button design', 'sharpay-plugin'); ?>
     107                        <?php echo __('Static button', 'sharpay-plugin'); ?>
    136108                    </th>
    137109                    <td>
    138110                        <h3>
    139                             <input type="checkbox" name="sharpay_options[floating]" id="floating"
    140                                 <?php echo $sharpay_options['floating'] ? 'checked' : '' ?> >
    141                             <label for="floating"><?php echo __('floating button at the BOTTOM of the page', 'sharpay-plugin'); ?></label>
    142                         </h3>
    143                         <div class="settings" data-for="floating"  style="<?php echo $sharpay_options['floating'] ? '' : 'display:none;' ?>">
    144                             <?php sharpay_floating_button_settings($sharpay_options); ?>
    145                         </div>
    146                         <h3>
    147111                            <input type="checkbox" name="sharpay_options[before_content]" id="before_content"
    148112                                <?php echo $sharpay_options['before_content'] ? 'checked' : '' ?> >
    149                             <label for="before_content"><?php echo __('Static button at the TOP of every post/page', 'sharpay-plugin'); ?></label>
     113                            <label for="before_content"><?php echo __('Share button at the TOP of every post/page', 'sharpay-plugin'); ?></label>
    150114                        </h3>
    151                         <div class="settings" data-for="before_content" style="<?php echo $sharpay_options['before_content'] ? '' : 'display:none;' ?>">
    152                             <?php sharpay_static_button_settings($sharpay_options, 'before_content_options'); ?>
    153                         </div>
    154115                        <h3>
    155116                            <input type="checkbox" name="sharpay_options[after_content]" id="after_content"
    156117                                <?php echo $sharpay_options['after_content'] ? 'checked' : '' ?> >
    157                             <label for="after_content"><?php echo __('Static button at the BOTTOM of every post/page', 'sharpay-plugin'); ?></label>
     118                            <label for="after_content"><?php echo __('Share button at the BOTTOM of every post/page', 'sharpay-plugin'); ?></label>
    158119                        </h3>
    159                         <div class="settings" data-for="after_content" style="<?php echo $sharpay_options['after_content'] ? '' : 'display:none;' ?>">
    160                             <?php sharpay_static_button_settings($sharpay_options, 'after_content_options'); ?>
    161                         </div>
    162120                        <h3>
    163121                            <input type="checkbox" name="sharpay_options[shortcode]" id="shortcode"
    164122                                <?php echo $sharpay_options['shortcode'] ? 'checked' : '' ?> >
    165                             <label for="shortcode"><?php echo __('Anywhere INSIDE CONTENT using [sharpay] shortcode', 'sharpay-plugin'); ?></label>
     123                            <label for="shortcode"><?php echo __('Share button anywhere INSIDE CONTENT using [sharpay] shortcode', 'sharpay-plugin'); ?></label>
    166124                        </h3>
    167                         <div class="settings" data-for="shortcode" style="<?php echo $sharpay_options['shortcode'] ? '' : 'display:none;' ?>">
    168                             <?php sharpay_static_button_settings($sharpay_options, 'shortcode_options'); ?>
    169                         </div>
     125
     126                        <input type="hidden" id="sharpay-static-code" name="sharpay_options[static_code]" value="<?php echo esc_attr($sharpay_options['static_code']); ?>">
     127                        <input type="hidden" id="sharpay-static-model" name="sharpay_options[static_model]" value="<?php echo esc_attr($sharpay_options['static_model']); ?>">
     128
     129                        <?php submit_button(); ?>
     130
     131                        <iframe id="sharpay-construct-iframe" class="sharpay-construct" src="https://app.sharpay.io/wpcode?lang=<?php echo substr( get_locale(), 0, 2 );?>&code=<?php echo urlencode($sharpay_options['site_id']); ?>&model=<?php echo urlencode( $sharpay_options['static_model'] ); ?>"></iframe>
     132
     133                        <?php submit_button(); ?>
    170134                    </td>
    171135                </tr>
     136                <tr<?php print empty($sharpay_options['site_id']) ?' style="display:none"':'';?>>
     137                    <th scope="row">
     138                        <?php echo __('Floating button', 'sharpay-plugin'); ?>
     139                    </th>
     140                    <td>
     141                        <h3>
     142                            <input type="checkbox" name="sharpay_options[floating]" id="floating"
     143                                <?php echo $sharpay_options['floating'] ? 'checked' : '' ?> >
     144                            <label for="floating"><?php echo __('Floating button at the BOTTOM of the page', 'sharpay-plugin'); ?></label>
     145                        </h3>
     146                        <div class="settings" data-for="floating"  style="<?php echo $sharpay_options['floating'] ? '' : 'display:none;' ?>">
     147                            <?php sharpay_floating_button_settings($sharpay_options); ?>
     148                        </div>
     149
     150                        <?php submit_button(); ?>
     151                    </td>
     152                </tr>
     153
    172154            </table>
    173             <?php submit_button(); ?>
     155
     156            <div class="notice notice-info">
     157                <p><strong><?php echo __('If you want to use the advanced settings of Sharpay widgets, use the html embed code from your Sharpay <a href="https://app.sharpay.io/webmaster">webmaster area</a>.', 'sharpay-plugin')?></strong></p>
     158            </div>
     159
    174160        </form>
    175161    </div>
     
    314300
    315301    $input['before_content'] = sharpay_sanitize_checkbox($input, 'before_content');
    316     $input['before_content_options'] = sharpay_sanitize_static_options($input['before_content_options'], 'before');
     302    //$input['before_content_options'] = sharpay_sanitize_static_options($input['before_content_options'], 'before');
    317303
    318304    $input['after_content'] = sharpay_sanitize_checkbox($input, 'after_content');
    319     $input['after_content_options'] = sharpay_sanitize_static_options($input['after_content_options'], 'after');
     305    //$input['after_content_options'] = sharpay_sanitize_static_options($input['after_content_options'], 'after');
    320306
    321307    $input['shortcode'] = sharpay_sanitize_checkbox($input, 'shortcode');
    322     $input['shortcode_options'] = sharpay_sanitize_static_options($input['shortcode_options'], 'shortcode');
     308    //$input['shortcode_options'] = sharpay_sanitize_static_options($input['shortcode_options'], 'shortcode');
    323309
    324310    return $input;
  • sharpay/trunk/includes/sharpay-public.php

    r2141914 r2325990  
    2727
    2828    if ( $options !== false && $options['before_content'] ) {
    29         $content = sharpay_generate_tag('static', $options['site_id'], $options['before_content_options']) . $content;
     29
     30        if( empty( $options['static_code'] ) ) {
     31            $content = sharpay_generate_tag('static', $options['site_id'], $options['before_content_options']) . $content;
     32        }
     33        else {
     34            $content = sharpay_generate_new_tag($options['site_id'], $options['static_code']) . $content;
     35        }
    3036    }
    3137
    3238    if ( $options !== false && $options['after_content'] ) {
    33         $content .= sharpay_generate_tag('static', $options['site_id'], $options['after_content_options']);
     39
     40        if( empty( $options['static_code'] ) ) {
     41            $content .= sharpay_generate_tag('static', $options['site_id'], $options['after_content_options']);
     42        } else {
     43            $content .= sharpay_generate_new_tag($options['site_id'], $options['static_code']);
     44        }
    3445    }
    3546
     
    5364
    5465    if ( $options !== false && $options['shortcode'] ) {
    55         return sharpay_generate_tag('static', $options['site_id'], $options['shortcode_options']);
     66
     67        if( empty( $options['static_code'] ) ) {
     68            return sharpay_generate_tag('static', $options['site_id'], $options['shortcode_options']);
     69        } else {
     70            return sharpay_generate_new_tag($options['site_id'], $options['static_code']);
     71        }
    5672    }
    5773
    5874    return '';
     75}
     76
     77
     78function sharpay_generate_new_tag( $site_id, $options ) {
     79    $src = '<div class="sharpay_widget_simple" ';
     80    $src .= ' data-sharpay="'. htmlspecialchars( $site_id ) .'"';
     81
     82    if( is_string( $options ) ) {
     83        $options = json_decode($options, true);
     84    }
     85
     86    foreach ( $options as $key => $val ) {
     87        if( preg_match( '/^[a-z0-9]+$/ui', $key ) ) {
     88            $src .= ' data-' . htmlspecialchars($key) . '="' . htmlspecialchars($val) . '"';
     89            if ($key === 'align' && $val === 'right') {
     90                $src .= ' style="text-align="right"';
     91            }
     92        }
     93    }
     94    $src .= '></div>';
     95    return $src;
    5996}
    6097
  • sharpay/trunk/languages/sharpay-plugin-ru_RU.po

    r2063482 r2325990  
    1 # Translation of Plugins - Sharpay - Development (trunk) in Russian
    2 # This file is distributed under the same license as the Plugins - Sharpay - Development (trunk) package.
    31msgid ""
    42msgstr ""
    5 "PO-Revision-Date: 2018-04-29 10:10:09+0000\n"
     3"Project-Id-Version: \n"
     4"Report-Msgid-Bugs-To: [email protected]\n"
     5"POT-Creation-Date: yyyy-mm-dd hh:mm+0000\n"
     6"PO-Revision-Date: 2020-06-17 15:57+0300\n"
     7"Last-Translator: [email protected]\n"
     8"Language-Team: [email protected]\n"
     9"Language: \n"
    610"MIME-Version: 1.0\n"
    711"Content-Type: text/plain; charset=UTF-8\n"
    812"Content-Transfer-Encoding: 8bit\n"
    9 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
    10 "X-Generator: GlotPress/2.4.0-alpha\n"
    11 "Language: ru\n"
    12 "Project-Id-Version: Plugins - Sharpay - Development (trunk)\n"
    13 
    14 #: includes/sharpay-admin.php:138
    15 msgid "Static button at the BOTTOM of every post/page"
    16 msgstr ""
    17 
    18 #: includes/sharpay-admin.php:130
    19 msgid "Static button at the TOP of every post/page"
    20 msgstr ""
    21 
    22 #: includes/sharpay-admin.php:116
    23 msgid "Sharpay multishare button design"
    24 msgstr ""
    25 
    26 #: includes/sharpay-admin.php:110
    27 msgid "To make Sharpay multisharing button work you need to register your site as a project in <a href=\"https://app.sharpay.io\" target=\"_blank\">app.sharpay.io</a> and provide project's ID"
    28 msgstr ""
    29 
    30 #: includes/sharpay-admin.php:87
    31 msgid "Get your project ID or register new project for your site in Sharpay"
    32 msgstr ""
    33 
    34 #: includes/sharpay-admin.php:82
    35 msgid "Sharpay project ID"
    36 msgstr ""
    37 
    38 #. Author URI of the plugin
    39 msgid "https://sharpay.io"
    40 msgstr ""
    41 
    42 #. Author of the plugin
    43 msgid "Sharpay Inc"
    44 msgstr ""
    45 
    46 #. Description of the plugin
    47 msgid "Sharpay is multisharing button with blockchain profit. It allows you to reward site's visitors for sharing content to their audience via Facebook, Twitter, Medium, Reddit and many other social networks."
    48 msgstr ""
    49 
    50 #. Plugin URI of the plugin
    51 msgid "https://github.com/sharpay-io/wordpress"
    52 msgstr ""
     13"Plural-Forms: plurals=2; plural=(n > 1)\n"
     14"X-Generator: Eazy Po 0.9.5.3\n"
    5315
    5416#: sharpay.php:40
     17#, php-format
    5518msgid "This plugin requires WordPress version %s or higher"
    56 msgstr "Для работы плагина Sharpay требуется версия WordPress %s или выше"
     19msgstr "Для этого плагина требуется версия WordPress %s или выше"
    5720
    58 #: includes/sharpay-admin.php:180
    59 msgid "Select floating button style."
    60 msgstr "Выберите стиль плавающей кнопки."
     21#: includes/class-sharpay-widget.php:30
     22msgid ""
     23"To use Sharpay multishare button widget you need to set up site ID in "
     24"plugin's settings first."
     25msgstr ""
     26"Чтобы использовать виджет Sharpay, сначала необходимо настроить "
     27"идентификатор сайта в настройках плагина."
    6128
    62 #: includes/sharpay-admin.php:179
    63 msgid "Dark"
    64 msgstr "Темный"
     29#: includes/sharpay-admin.php:23
     30msgid "Sharpay Plugin Settings"
     31msgstr "Настройки плагина Sharpay"
    6532
    66 #: includes/sharpay-admin.php:176
    67 msgid "Light"
    68 msgstr "Светлый"
    69 
    70 #: includes/sharpay-admin.php:170
    71 msgid "Select floating button position at the bottom of the page."
    72 msgstr "Выберите позицию плавающей кнопки внизу страницы."
    73 
    74 #: includes/sharpay-admin.php:169
    75 msgid "Right"
    76 msgstr "Справа"
    77 
    78 #: includes/sharpay-admin.php:166
    79 msgid "Left"
    80 msgstr "Слева"
    81 
    82 #: includes/sharpay-admin.php:146
    83 msgid "Anywhere INSIDE CONTENT using [sharpay] shortcode"
    84 msgstr ""
    85 
    86 #: includes/sharpay-admin.php:122
    87 msgid "floating button at the BOTTOM of the page"
    88 msgstr "плавающая кнопка ВНИЗУ страницы"
    89 
    90 #: includes/sharpay-admin.php:76
    91 msgid "Sharpay Settings"
    92 msgstr "Настройки Sharpay"
    93 
    94 #. Plugin Name of the plugin
    9533#: includes/sharpay-admin.php:24
    9634msgid "Sharpay"
    9735msgstr "Sharpay"
    9836
    99 #: includes/sharpay-admin.php:23
    100 msgid "Sharpay Plugin Settings"
    101 msgstr "Настройки Плагина Sharpay"
     37#: includes/sharpay-admin.php:95
     38msgid "Sharpay Settings"
     39msgstr "Настройки Sharpay"
    10240
    103 #: includes/sharpay-admin.php:203 includes/sharpay-admin.php:256
    104 #: includes/class-sharpay-widget.php:109
    105 msgid "Enter class, id or URL of an image to make it selected by default in sharing window."
    106 msgstr "Введите id, class или URL картинки для выбора ее по-умолчанию в окне шеринга."
     41#: includes/sharpay-admin.php:101
     42msgid "Sharpay project ID"
     43msgstr "Sharpay ID проекта"
    10744
    108 #: includes/sharpay-admin.php:202 includes/sharpay-admin.php:255
    109 #: includes/class-sharpay-widget.php:108
    110 msgid ".img | #img | http://..."
     45#: includes/sharpay-admin.php:106
     46msgid "Get your project ID or register new project for your site in Sharpay"
     47msgstr "Получите ID своего проекта или зарегистрируйте новый проект для своего сайта в Sharpay"
     48
     49#: includes/sharpay-admin.php:112
     50msgid ""
     51"To make Sharpay multisharing button work you need to register your site as a "
     52"project in <a href=\"https://app.sharpay.io\" target=\"_blank\">app.sharpay."
     53"io</a> and provide project's ID"
    11154msgstr ""
     55"Для работы кнопки шеринга Sharpay необходимо зарегистрировать свой сайт как "
     56"проект в <a href=\\\"https://app.sharpay.io\\\" target=\\\"_blank\\\">app."
     57"sharpay.io</a> и указать идентификатор проекта в настройках плагина"
    11258
    113 #: includes/sharpay-admin.php:249 includes/class-sharpay-widget.php:102
    114 msgid "Enter HTML markup which represents your custom multishare button."
    115 msgstr "Введите разметку HTML, которая нужна для отображения кнопки."
     59#: includes/sharpay-admin.php:120
     60msgid "Static button"
     61msgstr "Статическая кнопка"
    11662
    117 #: includes/sharpay-admin.php:244 includes/class-sharpay-widget.php:97
    118 msgid "Would you like to use your own HTML markup for Sharpay button?"
    119 msgstr "Хотите использовать собственную разметку HTML для кнопки Sharpay?"
     63#: includes/sharpay-admin.php:120
     64msgid "(recommended)"
     65msgstr "(рекомендовано)"
    12066
    121 #: includes/sharpay-admin.php:196 includes/sharpay-admin.php:238
    122 #: includes/class-sharpay-widget.php:90
    123 msgid "Check if you want our button to show how many times your page was shared via Sharpay."
    124 msgstr "Поставьте галочку если вы хотите отображать на кнопке Sharpay сколько раз ваша страница была разшарена."
     67#: includes/sharpay-admin.php:126
     68msgid "Share button at the TOP of every post/page"
     69msgstr "Кнопка «Поделиться» в ВЕРХНЕЙ части каждого поста/страницы"
    12570
    126 #: includes/sharpay-admin.php:194 includes/sharpay-admin.php:236
    127 #: includes/class-sharpay-widget.php:88
     71#: includes/sharpay-admin.php:131
     72msgid "Share button at the BOTTOM of every post/page"
     73msgstr "Кнопка «Поделиться» в НИЖНЕЙ части каждого поста/страницы"
     74
     75#: includes/sharpay-admin.php:136
     76msgid "Share button anywhere INSIDE CONTENT using [sharpay] shortcode"
     77msgstr "Кнопка «Поделиться» влюбом месте ВНУТРИ КОНТЕНТА с использованием шорткода [sharpay]"
     78
     79#: includes/sharpay-admin.php:151
     80msgid "Floating button"
     81msgstr "Плавающая кнопка"
     82
     83#: includes/sharpay-admin.php:157
     84msgid "Floating button at the BOTTOM of the page"
     85msgstr "Плавающая кнопка в НИЖНЕЙ части страницы"
     86
     87#: includes/sharpay-admin.php:169
     88msgid ""
     89"If you want to use the advanced settings of Sharpay widgets, use the html "
     90"embed code from your Sharpay <a href=\"https://app.sharpay.io/webmaster"
     91"\">webmaster area</a>."
     92msgstr ""
     93"Если вы хотите использовать рассширенные настройки виджетов Sharpay, "
     94"воспользуйтесь вставкой html-кода через из кабинета <a>вебмастера</a>."
     95
     96#: includes/sharpay-admin.php:183
     97msgid "Left"
     98msgstr "Слева"
     99
     100#: includes/sharpay-admin.php:186
     101msgid "Right"
     102msgstr "Справа"
     103
     104#: includes/sharpay-admin.php:187
     105msgid "Select floating button position at the bottom of the page."
     106msgstr "Выберите положение плавающей кнопки внизу страницы."
     107
     108#: includes/sharpay-admin.php:193
     109msgid "Light"
     110msgstr "Светлая"
     111
     112#: includes/sharpay-admin.php:196
     113msgid "Dark"
     114msgstr "Темная"
     115
     116#: includes/sharpay-admin.php:197
     117msgid "Select floating button style."
     118msgstr "Выберите стиль плавающий кнопки."
     119
     120#: includes/sharpay-admin.php:203 includes/sharpay-admin.php:245
     121msgid "Share counter"
     122msgstr "Счетчик шерингов"
     123
     124#: includes/sharpay-admin.php:208 includes/sharpay-admin.php:250
     125msgid "Separate for every page"
     126msgstr "Отдельно для каждой страницы"
     127
     128#: includes/sharpay-admin.php:211 includes/sharpay-admin.php:253
    128129msgid "Common for all site"
    129130msgstr "Общий для всего сайта"
    130131
    131 #: includes/sharpay-admin.php:191 includes/sharpay-admin.php:233
    132 #: includes/class-sharpay-widget.php:85
    133 msgid "Separate for every page"
    134 msgstr "Отдельно для каждой страницы"
     132#: includes/sharpay-admin.php:213 includes/sharpay-admin.php:255
     133msgid ""
     134"Check if you want our button to show how many times your page was shared via "
     135"Sharpay."
     136msgstr ""
     137"Отметьте если хотите, чтобы кнопка показывала, сколько раз поделились "
     138"ссылкой на страницу через Sharpay."
    135139
    136 #: includes/sharpay-admin.php:186 includes/sharpay-admin.php:228
    137 #: includes/class-sharpay-widget.php:80
    138 msgid "Share counter"
    139 msgstr "Счетчик шерингов"
     140#: includes/sharpay-admin.php:219 includes/sharpay-admin.php:300
     141msgid ".img | #img | http://..."
     142msgstr ".img | #img | http://..."
    140143
    141 #: includes/sharpay-admin.php:222 includes/class-sharpay-widget.php:73
    142 msgid "Set button height to make button smaller. Button width will change accordingly."
    143 msgstr "Выберите высоту чтобы сделать кнопку меньше. Ширина кнопки изменится пропорционально."
     144#: includes/sharpay-admin.php:220 includes/sharpay-admin.php:301
     145msgid ""
     146"Enter class, id or URL of an image to make it selected by default in sharing "
     147"window."
     148msgstr ""
     149"Введите CSS класс, ID или URL-адрес изображения, чтобы сделать его выбранным "
     150"по умолчанию в окне шеринга."
    144151
    145 #: includes/sharpay-admin.php:221 includes/class-sharpay-widget.php:71
     152#: includes/sharpay-admin.php:232
     153msgid "32px"
     154msgstr "32px"
     155
     156#: includes/sharpay-admin.php:235
     157msgid "24px"
     158msgstr "24px"
     159
     160#: includes/sharpay-admin.php:238
    146161msgid "16px"
    147162msgstr "16px"
    148163
    149 #: includes/sharpay-admin.php:218 includes/class-sharpay-widget.php:67
    150 msgid "24px"
    151 msgstr "24px"
     164#: includes/sharpay-admin.php:239
     165msgid ""
     166"Set button height to make button smaller. Button width will change "
     167"accordingly."
     168msgstr ""
     169"Установите высоту кнопки, чтобы сделать ее меньше или больше. Ширина кнопки "
     170"изменится соответственно."
    152171
    153 #: includes/sharpay-admin.php:215 includes/class-sharpay-widget.php:63
    154 msgid "32px"
    155 msgstr "32px"
     172#: includes/sharpay-admin.php:263
     173msgid "Would you like to use custom colors for Sharpay button?"
     174msgstr "Хотите использовать нестандартные цвета для кнопки Sharpay?"
    156175
    157 #: includes/class-sharpay-widget.php:30
    158 msgid "To use Sharpay multishare button widget you need to set up site ID in plugin's settings first."
    159 msgstr "Для того чтобы использовать кнопку Sharpay необходимо сначала установить ID сайта в настройках плагина."
     176#: includes/sharpay-admin.php:267
     177msgid "Font color"
     178msgstr "Цвет шрифта"
     179
     180#: includes/sharpay-admin.php:275
     181msgid "Background color"
     182msgstr "Фоновый цвет"
     183
     184#: includes/sharpay-admin.php:288
     185msgid "Would you like to use your own HTML markup for Sharpay button?"
     186msgstr "Хотите использовать свою собственную HTML-разметку для кнопки Sharpay?"
     187
     188#: includes/sharpay-admin.php:294
     189msgid "Enter HTML markup which represents your custom multishare button."
     190msgstr "Введите HTML-разметку вашей кнопки."
  • sharpay/trunk/languages/sharpay-plugin.pot

    r2024832 r2325990  
     1# SOME DESCRIPTIVE TITLE.
     2# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
     3# This file is distributed under the same license as the PACKAGE package.
     4# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
    15#, fuzzy
    26msgid ""
    37msgstr ""
    4 "Project-Id-Version: Sharpay WordPress Plugin\n"
    5 "POT-Creation-Date: 2019-02-04 11:35+0300\n"
    6 "PO-Revision-Date: 2018-04-25 11:09+0300\n"
    7 "Last-Translator: \n"
    8 "Language-Team: [email protected]\n"
    9 "Language: en\n"
     8"Project-Id-Version: PACKAGE VERSION\n"
     9"Report-Msgid-Bugs-To: BUG-EMAIL-ADDR <EMAIL@ADDRESS>\n"
     10"POT-Creation-Date: yyyy-mm-dd hh:mm+0000\n"
     11"PO-Revision-Date: 2020-06-17 15:42+0300\n"
     12"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     13"Language-Team: LANGUAGE <[email protected]>\n"
     14"Language: \n"
    1015"MIME-Version: 1.0\n"
    1116"Content-Type: text/plain; charset=UTF-8\n"
    1217"Content-Transfer-Encoding: 8bit\n"
    13 "X-Generator: Poedit 2.2.1\n"
    14 "X-Poedit-Basepath: ..\n"
    15 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
    16 "X-Poedit-KeywordsList: __;_e;_n;_x;_ex;_nx\n"
    17 "X-Poedit-SearchPath-0: sharpay.php\n"
    18 "X-Poedit-SearchPath-1: includes/sharpay-admin.php\n"
    19 "X-Poedit-SearchPath-2: includes/sharpay-public.php\n"
    20 "X-Poedit-SearchPath-3: includes/class-sharpay-widget.php\n"
     18"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
     19"X-Generator: Eazy Po 0.9.5.3\n"
     20
     21#: sharpay.php:40
     22#, php-format
     23msgid "This plugin requires WordPress version %s or higher"
     24msgstr ""
    2125
    2226#: includes/class-sharpay-widget.php:30
     
    2428"To use Sharpay multishare button widget you need to set up site ID in "
    2529"plugin's settings first."
    26 msgstr ""
    27 
    28 #: includes/class-sharpay-widget.php:63 includes/sharpay-admin.php:215
    29 msgid "32px"
    30 msgstr ""
    31 
    32 #: includes/class-sharpay-widget.php:67 includes/sharpay-admin.php:218
    33 msgid "24px"
    34 msgstr ""
    35 
    36 #: includes/class-sharpay-widget.php:71 includes/sharpay-admin.php:221
    37 msgid "16px"
    38 msgstr ""
    39 
    40 #: includes/class-sharpay-widget.php:73 includes/sharpay-admin.php:222
    41 msgid ""
    42 "Set button height to make button smaller. Button width will change "
    43 "accordingly."
    44 msgstr ""
    45 
    46 #: includes/class-sharpay-widget.php:80 includes/sharpay-admin.php:186
    47 #: includes/sharpay-admin.php:228
    48 msgid "Share counter"
    49 msgstr ""
    50 
    51 #: includes/class-sharpay-widget.php:85 includes/sharpay-admin.php:191
    52 #: includes/sharpay-admin.php:233
    53 msgid "Separate for every page"
    54 msgstr ""
    55 
    56 #: includes/class-sharpay-widget.php:88 includes/sharpay-admin.php:194
    57 #: includes/sharpay-admin.php:236
    58 msgid "Common for all site"
    59 msgstr ""
    60 
    61 #: includes/class-sharpay-widget.php:90 includes/sharpay-admin.php:196
    62 #: includes/sharpay-admin.php:238
    63 msgid ""
    64 "Check if you want our button to show how many times your page was shared via "
    65 "Sharpay."
    66 msgstr ""
    67 
    68 #: includes/class-sharpay-widget.php:97 includes/sharpay-admin.php:244
    69 msgid "Would you like to use your own HTML markup for Sharpay button?"
    70 msgstr ""
    71 
    72 #: includes/class-sharpay-widget.php:102 includes/sharpay-admin.php:249
    73 msgid "Enter HTML markup which represents your custom multishare button."
    74 msgstr ""
    75 
    76 #: includes/class-sharpay-widget.php:108 includes/sharpay-admin.php:202
    77 #: includes/sharpay-admin.php:255
    78 msgid ".img | #img | http://..."
    79 msgstr ""
    80 
    81 #: includes/class-sharpay-widget.php:109 includes/sharpay-admin.php:203
    82 #: includes/sharpay-admin.php:256
    83 msgid ""
    84 "Enter class, id or URL of an image to make it selected by default in sharing "
    85 "window."
    8630msgstr ""
    8731
     
    9438msgstr ""
    9539
    96 #: includes/sharpay-admin.php:76
     40#: includes/sharpay-admin.php:95
    9741msgid "Sharpay Settings"
    9842msgstr ""
    9943
    100 #: includes/sharpay-admin.php:82
     44#: includes/sharpay-admin.php:101
    10145msgid "Sharpay project ID"
    10246msgstr ""
    10347
    104 #: includes/sharpay-admin.php:87
     48#: includes/sharpay-admin.php:106
    10549msgid "Get your project ID or register new project for your site in Sharpay"
    10650msgstr ""
    10751
    108 #: includes/sharpay-admin.php:110
     52#: includes/sharpay-admin.php:112
    10953msgid ""
    110 "To make Sharpay multisharing button work you need register your site as a "
     54"To make Sharpay multisharing button work you need to register your site as a "
    11155"project in <a href=\"https://app.sharpay.io\" target=\"_blank\">app.sharpay."
    112 "io</a> and provide project's ID."
     56"io</a> and provide project's ID"
    11357msgstr ""
    11458
    115 #: includes/sharpay-admin.php:116
    116 msgid "Choose where and how <br> show Sharpay multishare button"
     59#: includes/sharpay-admin.php:120
     60msgid "Static button"
    11761msgstr ""
    11862
    119 #: includes/sharpay-admin.php:122
    120 msgid "floating button at the BOTTOM of the page"
     63#: includes/sharpay-admin.php:120
     64msgid "(recommended)"
    12165msgstr ""
    12266
    123 #: includes/sharpay-admin.php:130
    124 msgid "BEFORE post/page content"
     67#: includes/sharpay-admin.php:126
     68msgid "Share button at the TOP of every post/page"
    12569msgstr ""
    12670
    127 #: includes/sharpay-admin.php:138
    128 msgid "AFTER post/page content"
     71#: includes/sharpay-admin.php:131
     72msgid "Share button at the BOTTOM of every post/page"
    12973msgstr ""
    13074
    131 #: includes/sharpay-admin.php:146
    132 msgid "anywhere INSIDE CONTENT using [sharpay] shortcode"
     75#: includes/sharpay-admin.php:136
     76msgid "Share button anywhere INSIDE CONTENT using [sharpay] shortcode"
    13377msgstr ""
    13478
    135 #: includes/sharpay-admin.php:166
     79#: includes/sharpay-admin.php:151
     80msgid "Floating button"
     81msgstr ""
     82
     83#: includes/sharpay-admin.php:157
     84msgid "Floating button at the BOTTOM of the page"
     85msgstr ""
     86
     87#: includes/sharpay-admin.php:169
     88msgid ""
     89"If you want to use the advanced settings of Sharpay widgets, use the html "
     90"embed code from your Sharpay <a href=\"https://app.sharpay.io/webmaster"
     91"\">webmaster area</a>."
     92msgstr ""
     93
     94#: includes/sharpay-admin.php:183
    13695msgid "Left"
    13796msgstr ""
    13897
    139 #: includes/sharpay-admin.php:169
     98#: includes/sharpay-admin.php:186
    14099msgid "Right"
    141100msgstr ""
    142101
    143 #: includes/sharpay-admin.php:170
     102#: includes/sharpay-admin.php:187
    144103msgid "Select floating button position at the bottom of the page."
    145104msgstr ""
    146105
    147 #: includes/sharpay-admin.php:176
     106#: includes/sharpay-admin.php:193
    148107msgid "Light"
    149108msgstr ""
    150109
    151 #: includes/sharpay-admin.php:179
     110#: includes/sharpay-admin.php:196
    152111msgid "Dark"
    153112msgstr ""
    154113
    155 #: includes/sharpay-admin.php:180
     114#: includes/sharpay-admin.php:197
    156115msgid "Select floating button style."
    157116msgstr ""
    158117
    159 #: sharpay.php:40
    160 #, php-format
    161 msgid "This plugin requires WordPress version %s or higher"
     118#: includes/sharpay-admin.php:203 includes/sharpay-admin.php:245
     119msgid "Share counter"
    162120msgstr ""
     121
     122#: includes/sharpay-admin.php:208 includes/sharpay-admin.php:250
     123msgid "Separate for every page"
     124msgstr ""
     125
     126#: includes/sharpay-admin.php:211 includes/sharpay-admin.php:253
     127msgid "Common for all site"
     128msgstr ""
     129
     130#: includes/sharpay-admin.php:213 includes/sharpay-admin.php:255
     131msgid ""
     132"Check if you want our button to show how many times your page was shared via "
     133"Sharpay."
     134msgstr ""
     135
     136#: includes/sharpay-admin.php:219 includes/sharpay-admin.php:300
     137msgid ".img | #img | http://..."
     138msgstr ""
     139
     140#: includes/sharpay-admin.php:220 includes/sharpay-admin.php:301
     141msgid ""
     142"Enter class, id or URL of an image to make it selected by default in sharing "
     143"window."
     144msgstr ""
     145
     146#: includes/sharpay-admin.php:232
     147msgid "32px"
     148msgstr ""
     149
     150#: includes/sharpay-admin.php:235
     151msgid "24px"
     152msgstr ""
     153
     154#: includes/sharpay-admin.php:238
     155msgid "16px"
     156msgstr ""
     157
     158#: includes/sharpay-admin.php:239
     159msgid ""
     160"Set button height to make button smaller. Button width will change "
     161"accordingly."
     162msgstr ""
     163
     164#: includes/sharpay-admin.php:263
     165msgid "Would you like to use custom colors for Sharpay button?"
     166msgstr ""
     167
     168#: includes/sharpay-admin.php:267
     169msgid "Font color"
     170msgstr ""
     171
     172#: includes/sharpay-admin.php:275
     173msgid "Background color"
     174msgstr ""
     175
     176#: includes/sharpay-admin.php:288
     177msgid "Would you like to use your own HTML markup for Sharpay button?"
     178msgstr ""
     179
     180#: includes/sharpay-admin.php:294
     181msgid "Enter HTML markup which represents your custom multishare button."
     182msgstr ""
  • sharpay/trunk/readme.txt

    r2271341 r2325990  
    22Contributors: sharpay
    33Donate link: https://sharpay.io/
    4 Tags: share, social, sharing, sns
     4Tags: social, sharing
    55Requires at least: 3.5
    6 Tested up to: 5.4
     6Tested up to: 5.2
    77Stable tag: "trunk"
    88Requires PHP: 5.2.4
     
    3535
    3636== Changelog ==
     37
     38
     39= 1.9 =
     40* Update static widget
    3741
    3842= 1.8 =
  • sharpay/trunk/sharpay.php

    r2141914 r2325990  
    2121Plugin URI: https://github.com/sharpay-io/wordpress
    2222Description: Sharpay is multisharing button with blockchain profit. It allows you to reward site's visitors for sharing content to their audience via Facebook, Twitter, Medium, Reddit and many other social networks.
    23 Version: 1.8
     23Version: 1.9
    2424Author: Sharpay Inc
    2525Author URI: https://sharpay.io
     
    2929*/
    3030
    31 define('SHARPAY_PLUGIN_VERSION', '1.8');
     31define('SHARPAY_PLUGIN_VERSION', '1.9');
    3232
    3333register_activation_hook(__FILE__, 'sharpay_activate');
Note: See TracChangeset for help on using the changeset viewer.