Changeset 2325990
- Timestamp:
- 06/17/2020 05:02:28 PM (6 years ago)
- Location:
- sharpay
- Files:
-
- 20 added
- 12 edited
-
assets/screenshot-2.png (modified) (previous)
-
assets/screenshot-3.png (modified) (previous)
-
tags/1.9 (added)
-
tags/1.9/LICENSE (added)
-
tags/1.9/README.md (added)
-
tags/1.9/assets (added)
-
tags/1.9/assets/css (added)
-
tags/1.9/assets/css/sharpay-admin.css (added)
-
tags/1.9/assets/js (added)
-
tags/1.9/assets/js/sharpay-admin.js (added)
-
tags/1.9/includes (added)
-
tags/1.9/includes/class-sharpay-widget.php (added)
-
tags/1.9/includes/sharpay-admin.php (added)
-
tags/1.9/includes/sharpay-public.php (added)
-
tags/1.9/index.php (added)
-
tags/1.9/languages (added)
-
tags/1.9/languages/README.md (added)
-
tags/1.9/languages/sharpay-plugin-ru_RU.mo (added)
-
tags/1.9/languages/sharpay-plugin-ru_RU.po (added)
-
tags/1.9/languages/sharpay-plugin.pot (added)
-
tags/1.9/readme.txt (added)
-
tags/1.9/sharpay.php (added)
-
trunk/assets/css/sharpay-admin.css (modified) (1 diff)
-
trunk/assets/js/sharpay-admin.js (modified) (2 diffs)
-
trunk/includes/class-sharpay-widget.php (modified) (2 diffs)
-
trunk/includes/sharpay-admin.php (modified) (3 diffs)
-
trunk/includes/sharpay-public.php (modified) (2 diffs)
-
trunk/languages/sharpay-plugin-ru_RU.mo (modified) (previous)
-
trunk/languages/sharpay-plugin-ru_RU.po (modified) (1 diff)
-
trunk/languages/sharpay-plugin.pot (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/sharpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sharpay/trunk/assets/css/sharpay-admin.css
r2132258 r2325990 99 99 font-weight: bold; 100 100 } 101 102 .sharpay-construct { 103 border: none !important; 104 width: 100%; 105 height: 1050px; 106 } -
sharpay/trunk/assets/js/sharpay-admin.js
r2132258 r2325990 16 16 */ 17 17 18 19 const 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 18 48 (function() { 19 49 … … 30 60 $(e.target).siblings('.share-counter-mode').toggle(); 31 61 }) 32 33 $('body').on('change', '.use-custom-markup', function(e) { 62 .on('change', '.use-custom-markup', function(e) { 34 63 $(e.target).parent().siblings('.group').not('.always-visible').toggle(); 64 }) 65 .on('change', '.use-custom-colors', function(e) { 66 $(e.target).siblings('.colors').toggle(); 35 67 }); 36 68 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'); 39 75 }); 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 40 124 }); 41 125 126 127 128 42 129 })(); -
sharpay/trunk/includes/class-sharpay-widget.php
r2141914 r2325990 56 56 <?php 57 57 } else { 58 ?>59 <div class="sharpay-widget-settings">60 <div class="group" style="<?php echo $instance['use_custom_markup'] === true ? 'display:none;' : '' ?>">61 58 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 <?php115 59 } 116 60 } … … 156 100 } 157 101 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 } 159 107 } 160 108 -
sharpay/trunk/includes/sharpay-admin.php
r2141914 r2325990 43 43 ); 44 44 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 58 45 return array( 59 46 'site_id' => '', 60 47 61 'floating' => true,48 'floating' => false, 62 49 'floating_options' => $floating_default_options, 63 50 '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, 67 52 'shortcode' => false, 68 'shortcode_options' => $static_default_options 53 'static_code' => '{}', 54 'static_model' => '{}', 69 55 ); 70 56 } … … 107 93 </a> 108 94 <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 127 96 </script> 128 97 <p class="description"> 129 98 <?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') ?> 130 99 </p> 100 101 <?php submit_button(); ?> 131 102 </td> 132 103 </tr> 133 <tr> 104 105 <tr<?php print empty($sharpay_options['site_id']) ?' style="display:none"':'';?>> 134 106 <th scope="row"> 135 <?php echo __('S harpay multishare button design', 'sharpay-plugin'); ?>107 <?php echo __('Static button', 'sharpay-plugin'); ?> 136 108 </th> 137 109 <td> 138 110 <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>147 111 <input type="checkbox" name="sharpay_options[before_content]" id="before_content" 148 112 <?php echo $sharpay_options['before_content'] ? 'checked' : '' ?> > 149 <label for="before_content"><?php echo __('S taticbutton 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> 150 114 </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>154 115 <h3> 155 116 <input type="checkbox" name="sharpay_options[after_content]" id="after_content" 156 117 <?php echo $sharpay_options['after_content'] ? 'checked' : '' ?> > 157 <label for="after_content"><?php echo __('S taticbutton 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> 158 119 </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>162 120 <h3> 163 121 <input type="checkbox" name="sharpay_options[shortcode]" id="shortcode" 164 122 <?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> 166 124 </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(); ?> 170 134 </td> 171 135 </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 172 154 </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 174 160 </form> 175 161 </div> … … 314 300 315 301 $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'); 317 303 318 304 $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'); 320 306 321 307 $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'); 323 309 324 310 return $input; -
sharpay/trunk/includes/sharpay-public.php
r2141914 r2325990 27 27 28 28 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 } 30 36 } 31 37 32 38 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 } 34 45 } 35 46 … … 53 64 54 65 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 } 56 72 } 57 73 58 74 return ''; 75 } 76 77 78 function 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; 59 96 } 60 97 -
sharpay/trunk/languages/sharpay-plugin-ru_RU.po
r2063482 r2325990 1 # Translation of Plugins - Sharpay - Development (trunk) in Russian2 # This file is distributed under the same license as the Plugins - Sharpay - Development (trunk) package.3 1 msgid "" 4 2 msgstr "" 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" 6 10 "MIME-Version: 1.0\n" 7 11 "Content-Type: text/plain; charset=UTF-8\n" 8 12 "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" 53 15 54 16 #: sharpay.php:40 17 #, php-format 55 18 msgid "This plugin requires WordPress version %s or higher" 56 msgstr "Для работы плагина Sharpayтребуется версия WordPress %s или выше"19 msgstr "Для этого плагина требуется версия WordPress %s или выше" 57 20 58 #: includes/sharpay-admin.php:180 59 msgid "Select floating button style." 60 msgstr "Выберите стиль плавающей кнопки." 21 #: includes/class-sharpay-widget.php:30 22 msgid "" 23 "To use Sharpay multishare button widget you need to set up site ID in " 24 "plugin's settings first." 25 msgstr "" 26 "Чтобы использовать виджет Sharpay, сначала необходимо настроить " 27 "идентификатор сайта в настройках плагина." 61 28 62 #: includes/sharpay-admin.php: 17963 msgid " Dark"64 msgstr " Темный"29 #: includes/sharpay-admin.php:23 30 msgid "Sharpay Plugin Settings" 31 msgstr "Настройки плагина Sharpay" 65 32 66 #: includes/sharpay-admin.php:17667 msgid "Light"68 msgstr "Светлый"69 70 #: includes/sharpay-admin.php:17071 msgid "Select floating button position at the bottom of the page."72 msgstr "Выберите позицию плавающей кнопки внизу страницы."73 74 #: includes/sharpay-admin.php:16975 msgid "Right"76 msgstr "Справа"77 78 #: includes/sharpay-admin.php:16679 msgid "Left"80 msgstr "Слева"81 82 #: includes/sharpay-admin.php:14683 msgid "Anywhere INSIDE CONTENT using [sharpay] shortcode"84 msgstr ""85 86 #: includes/sharpay-admin.php:12287 msgid "floating button at the BOTTOM of the page"88 msgstr "плавающая кнопка ВНИЗУ страницы"89 90 #: includes/sharpay-admin.php:7691 msgid "Sharpay Settings"92 msgstr "Настройки Sharpay"93 94 #. Plugin Name of the plugin95 33 #: includes/sharpay-admin.php:24 96 34 msgid "Sharpay" 97 35 msgstr "Sharpay" 98 36 99 #: includes/sharpay-admin.php: 23100 msgid "Sharpay PluginSettings"101 msgstr "Настройки ПлагинаSharpay"37 #: includes/sharpay-admin.php:95 38 msgid "Sharpay Settings" 39 msgstr "Настройки Sharpay" 102 40 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 42 msgid "Sharpay project ID" 43 msgstr "Sharpay ID проекта" 107 44 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 46 msgid "Get your project ID or register new project for your site in Sharpay" 47 msgstr "Получите ID своего проекта или зарегистрируйте новый проект для своего сайта в Sharpay" 48 49 #: includes/sharpay-admin.php:112 50 msgid "" 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" 111 54 msgstr "" 55 "Для работы кнопки шеринга Sharpay необходимо зарегистрировать свой сайт как " 56 "проект в <a href=\\\"https://app.sharpay.io\\\" target=\\\"_blank\\\">app." 57 "sharpay.io</a> и указать идентификатор проекта в настройках плагина" 112 58 113 #: includes/sharpay-admin.php: 249 includes/class-sharpay-widget.php:102114 msgid " Enter HTML markup which represents your custom multishare button."115 msgstr " Введите разметку HTML, которая нужна для отображения кнопки."59 #: includes/sharpay-admin.php:120 60 msgid "Static button" 61 msgstr "Статическая кнопка" 116 62 117 #: includes/sharpay-admin.php: 244 includes/class-sharpay-widget.php:97118 msgid " Would you like to use your own HTML markup for Sharpay button?"119 msgstr " Хотите использовать собственную разметку HTML для кнопки Sharpay?"63 #: includes/sharpay-admin.php:120 64 msgid "(recommended)" 65 msgstr "(рекомендовано)" 120 66 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 68 msgid "Share button at the TOP of every post/page" 69 msgstr "Кнопка «Поделиться» в ВЕРХНЕЙ части каждого поста/страницы" 125 70 126 #: includes/sharpay-admin.php:194 includes/sharpay-admin.php:236 127 #: includes/class-sharpay-widget.php:88 71 #: includes/sharpay-admin.php:131 72 msgid "Share button at the BOTTOM of every post/page" 73 msgstr "Кнопка «Поделиться» в НИЖНЕЙ части каждого поста/страницы" 74 75 #: includes/sharpay-admin.php:136 76 msgid "Share button anywhere INSIDE CONTENT using [sharpay] shortcode" 77 msgstr "Кнопка «Поделиться» влюбом месте ВНУТРИ КОНТЕНТА с использованием шорткода [sharpay]" 78 79 #: includes/sharpay-admin.php:151 80 msgid "Floating button" 81 msgstr "Плавающая кнопка" 82 83 #: includes/sharpay-admin.php:157 84 msgid "Floating button at the BOTTOM of the page" 85 msgstr "Плавающая кнопка в НИЖНЕЙ части страницы" 86 87 #: includes/sharpay-admin.php:169 88 msgid "" 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>." 92 msgstr "" 93 "Если вы хотите использовать рассширенные настройки виджетов Sharpay, " 94 "воспользуйтесь вставкой html-кода через из кабинета <a>вебмастера</a>." 95 96 #: includes/sharpay-admin.php:183 97 msgid "Left" 98 msgstr "Слева" 99 100 #: includes/sharpay-admin.php:186 101 msgid "Right" 102 msgstr "Справа" 103 104 #: includes/sharpay-admin.php:187 105 msgid "Select floating button position at the bottom of the page." 106 msgstr "Выберите положение плавающей кнопки внизу страницы." 107 108 #: includes/sharpay-admin.php:193 109 msgid "Light" 110 msgstr "Светлая" 111 112 #: includes/sharpay-admin.php:196 113 msgid "Dark" 114 msgstr "Темная" 115 116 #: includes/sharpay-admin.php:197 117 msgid "Select floating button style." 118 msgstr "Выберите стиль плавающий кнопки." 119 120 #: includes/sharpay-admin.php:203 includes/sharpay-admin.php:245 121 msgid "Share counter" 122 msgstr "Счетчик шерингов" 123 124 #: includes/sharpay-admin.php:208 includes/sharpay-admin.php:250 125 msgid "Separate for every page" 126 msgstr "Отдельно для каждой страницы" 127 128 #: includes/sharpay-admin.php:211 includes/sharpay-admin.php:253 128 129 msgid "Common for all site" 129 130 msgstr "Общий для всего сайта" 130 131 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 133 msgid "" 134 "Check if you want our button to show how many times your page was shared via " 135 "Sharpay." 136 msgstr "" 137 "Отметьте если хотите, чтобы кнопка показывала, сколько раз поделились " 138 "ссылкой на страницу через Sharpay." 135 139 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 141 msgid ".img | #img | http://..." 142 msgstr ".img | #img | http://..." 140 143 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 145 msgid "" 146 "Enter class, id or URL of an image to make it selected by default in sharing " 147 "window." 148 msgstr "" 149 "Введите CSS класс, ID или URL-адрес изображения, чтобы сделать его выбранным " 150 "по умолчанию в окне шеринга." 144 151 145 #: includes/sharpay-admin.php:221 includes/class-sharpay-widget.php:71 152 #: includes/sharpay-admin.php:232 153 msgid "32px" 154 msgstr "32px" 155 156 #: includes/sharpay-admin.php:235 157 msgid "24px" 158 msgstr "24px" 159 160 #: includes/sharpay-admin.php:238 146 161 msgid "16px" 147 162 msgstr "16px" 148 163 149 #: includes/sharpay-admin.php:218 includes/class-sharpay-widget.php:67 150 msgid "24px" 151 msgstr "24px" 164 #: includes/sharpay-admin.php:239 165 msgid "" 166 "Set button height to make button smaller. Button width will change " 167 "accordingly." 168 msgstr "" 169 "Установите высоту кнопки, чтобы сделать ее меньше или больше. Ширина кнопки " 170 "изменится соответственно." 152 171 153 #: includes/sharpay-admin.php:2 15 includes/class-sharpay-widget.php:63154 msgid " 32px"155 msgstr " 32px"172 #: includes/sharpay-admin.php:263 173 msgid "Would you like to use custom colors for Sharpay button?" 174 msgstr "Хотите использовать нестандартные цвета для кнопки Sharpay?" 156 175 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 177 msgid "Font color" 178 msgstr "Цвет шрифта" 179 180 #: includes/sharpay-admin.php:275 181 msgid "Background color" 182 msgstr "Фоновый цвет" 183 184 #: includes/sharpay-admin.php:288 185 msgid "Would you like to use your own HTML markup for Sharpay button?" 186 msgstr "Хотите использовать свою собственную HTML-разметку для кнопки Sharpay?" 187 188 #: includes/sharpay-admin.php:294 189 msgid "Enter HTML markup which represents your custom multishare button." 190 msgstr "Введите 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. 1 5 #, fuzzy 2 6 msgid "" 3 7 msgstr "" 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" 10 15 "MIME-Version: 1.0\n" 11 16 "Content-Type: text/plain; charset=UTF-8\n" 12 17 "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 23 msgid "This plugin requires WordPress version %s or higher" 24 msgstr "" 21 25 22 26 #: includes/class-sharpay-widget.php:30 … … 24 28 "To use Sharpay multishare button widget you need to set up site ID in " 25 29 "plugin's settings first." 26 msgstr ""27 28 #: includes/class-sharpay-widget.php:63 includes/sharpay-admin.php:21529 msgid "32px"30 msgstr ""31 32 #: includes/class-sharpay-widget.php:67 includes/sharpay-admin.php:21833 msgid "24px"34 msgstr ""35 36 #: includes/class-sharpay-widget.php:71 includes/sharpay-admin.php:22137 msgid "16px"38 msgstr ""39 40 #: includes/class-sharpay-widget.php:73 includes/sharpay-admin.php:22241 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:18647 #: includes/sharpay-admin.php:22848 msgid "Share counter"49 msgstr ""50 51 #: includes/class-sharpay-widget.php:85 includes/sharpay-admin.php:19152 #: includes/sharpay-admin.php:23353 msgid "Separate for every page"54 msgstr ""55 56 #: includes/class-sharpay-widget.php:88 includes/sharpay-admin.php:19457 #: includes/sharpay-admin.php:23658 msgid "Common for all site"59 msgstr ""60 61 #: includes/class-sharpay-widget.php:90 includes/sharpay-admin.php:19662 #: includes/sharpay-admin.php:23863 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:24469 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:24973 msgid "Enter HTML markup which represents your custom multishare button."74 msgstr ""75 76 #: includes/class-sharpay-widget.php:108 includes/sharpay-admin.php:20277 #: includes/sharpay-admin.php:25578 msgid ".img | #img | http://..."79 msgstr ""80 81 #: includes/class-sharpay-widget.php:109 includes/sharpay-admin.php:20382 #: includes/sharpay-admin.php:25683 msgid ""84 "Enter class, id or URL of an image to make it selected by default in sharing "85 "window."86 30 msgstr "" 87 31 … … 94 38 msgstr "" 95 39 96 #: includes/sharpay-admin.php: 7640 #: includes/sharpay-admin.php:95 97 41 msgid "Sharpay Settings" 98 42 msgstr "" 99 43 100 #: includes/sharpay-admin.php: 8244 #: includes/sharpay-admin.php:101 101 45 msgid "Sharpay project ID" 102 46 msgstr "" 103 47 104 #: includes/sharpay-admin.php: 8748 #: includes/sharpay-admin.php:106 105 49 msgid "Get your project ID or register new project for your site in Sharpay" 106 50 msgstr "" 107 51 108 #: includes/sharpay-admin.php:11 052 #: includes/sharpay-admin.php:112 109 53 msgid "" 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 " 111 55 "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" 113 57 msgstr "" 114 58 115 #: includes/sharpay-admin.php:1 16116 msgid " Choose where and how <br> show Sharpay multisharebutton"59 #: includes/sharpay-admin.php:120 60 msgid "Static button" 117 61 msgstr "" 118 62 119 #: includes/sharpay-admin.php:12 2120 msgid " floating button at the BOTTOM of the page"63 #: includes/sharpay-admin.php:120 64 msgid "(recommended)" 121 65 msgstr "" 122 66 123 #: includes/sharpay-admin.php:1 30124 msgid " BEFORE post/page content"67 #: includes/sharpay-admin.php:126 68 msgid "Share button at the TOP of every post/page" 125 69 msgstr "" 126 70 127 #: includes/sharpay-admin.php:13 8128 msgid " AFTER post/page content"71 #: includes/sharpay-admin.php:131 72 msgid "Share button at the BOTTOM of every post/page" 129 73 msgstr "" 130 74 131 #: includes/sharpay-admin.php:1 46132 msgid " anywhere INSIDE CONTENT using [sharpay] shortcode"75 #: includes/sharpay-admin.php:136 76 msgid "Share button anywhere INSIDE CONTENT using [sharpay] shortcode" 133 77 msgstr "" 134 78 135 #: includes/sharpay-admin.php:166 79 #: includes/sharpay-admin.php:151 80 msgid "Floating button" 81 msgstr "" 82 83 #: includes/sharpay-admin.php:157 84 msgid "Floating button at the BOTTOM of the page" 85 msgstr "" 86 87 #: includes/sharpay-admin.php:169 88 msgid "" 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>." 92 msgstr "" 93 94 #: includes/sharpay-admin.php:183 136 95 msgid "Left" 137 96 msgstr "" 138 97 139 #: includes/sharpay-admin.php:1 6998 #: includes/sharpay-admin.php:186 140 99 msgid "Right" 141 100 msgstr "" 142 101 143 #: includes/sharpay-admin.php:1 70102 #: includes/sharpay-admin.php:187 144 103 msgid "Select floating button position at the bottom of the page." 145 104 msgstr "" 146 105 147 #: includes/sharpay-admin.php:1 76106 #: includes/sharpay-admin.php:193 148 107 msgid "Light" 149 108 msgstr "" 150 109 151 #: includes/sharpay-admin.php:1 79110 #: includes/sharpay-admin.php:196 152 111 msgid "Dark" 153 112 msgstr "" 154 113 155 #: includes/sharpay-admin.php:1 80114 #: includes/sharpay-admin.php:197 156 115 msgid "Select floating button style." 157 116 msgstr "" 158 117 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 119 msgid "Share counter" 162 120 msgstr "" 121 122 #: includes/sharpay-admin.php:208 includes/sharpay-admin.php:250 123 msgid "Separate for every page" 124 msgstr "" 125 126 #: includes/sharpay-admin.php:211 includes/sharpay-admin.php:253 127 msgid "Common for all site" 128 msgstr "" 129 130 #: includes/sharpay-admin.php:213 includes/sharpay-admin.php:255 131 msgid "" 132 "Check if you want our button to show how many times your page was shared via " 133 "Sharpay." 134 msgstr "" 135 136 #: includes/sharpay-admin.php:219 includes/sharpay-admin.php:300 137 msgid ".img | #img | http://..." 138 msgstr "" 139 140 #: includes/sharpay-admin.php:220 includes/sharpay-admin.php:301 141 msgid "" 142 "Enter class, id or URL of an image to make it selected by default in sharing " 143 "window." 144 msgstr "" 145 146 #: includes/sharpay-admin.php:232 147 msgid "32px" 148 msgstr "" 149 150 #: includes/sharpay-admin.php:235 151 msgid "24px" 152 msgstr "" 153 154 #: includes/sharpay-admin.php:238 155 msgid "16px" 156 msgstr "" 157 158 #: includes/sharpay-admin.php:239 159 msgid "" 160 "Set button height to make button smaller. Button width will change " 161 "accordingly." 162 msgstr "" 163 164 #: includes/sharpay-admin.php:263 165 msgid "Would you like to use custom colors for Sharpay button?" 166 msgstr "" 167 168 #: includes/sharpay-admin.php:267 169 msgid "Font color" 170 msgstr "" 171 172 #: includes/sharpay-admin.php:275 173 msgid "Background color" 174 msgstr "" 175 176 #: includes/sharpay-admin.php:288 177 msgid "Would you like to use your own HTML markup for Sharpay button?" 178 msgstr "" 179 180 #: includes/sharpay-admin.php:294 181 msgid "Enter HTML markup which represents your custom multishare button." 182 msgstr "" -
sharpay/trunk/readme.txt
r2271341 r2325990 2 2 Contributors: sharpay 3 3 Donate link: https://sharpay.io/ 4 Tags: s hare, social, sharing, sns4 Tags: social, sharing 5 5 Requires at least: 3.5 6 Tested up to: 5. 46 Tested up to: 5.2 7 7 Stable tag: "trunk" 8 8 Requires PHP: 5.2.4 … … 35 35 36 36 == Changelog == 37 38 39 = 1.9 = 40 * Update static widget 37 41 38 42 = 1.8 = -
sharpay/trunk/sharpay.php
r2141914 r2325990 21 21 Plugin URI: https://github.com/sharpay-io/wordpress 22 22 Description: 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. 823 Version: 1.9 24 24 Author: Sharpay Inc 25 25 Author URI: https://sharpay.io … … 29 29 */ 30 30 31 define('SHARPAY_PLUGIN_VERSION', '1. 8');31 define('SHARPAY_PLUGIN_VERSION', '1.9'); 32 32 33 33 register_activation_hook(__FILE__, 'sharpay_activate');
Note: See TracChangeset
for help on using the changeset viewer.