Changeset 1942576
- Timestamp:
- 09/17/2018 11:57:11 AM (8 years ago)
- Location:
- sharpay
- Files:
-
- 20 added
- 7 edited
-
tags/1.2 (added)
-
tags/1.2/LICENSE (added)
-
tags/1.2/README.md (added)
-
tags/1.2/assets (added)
-
tags/1.2/assets/css (added)
-
tags/1.2/assets/css/admin.css (added)
-
tags/1.2/assets/js (added)
-
tags/1.2/assets/js/admin.js (added)
-
tags/1.2/includes (added)
-
tags/1.2/includes/class-sharpay-widget.php (added)
-
tags/1.2/includes/sharpay-admin.php (added)
-
tags/1.2/includes/sharpay-public.php (added)
-
tags/1.2/index.php (added)
-
tags/1.2/languages (added)
-
tags/1.2/languages/README.md (added)
-
tags/1.2/languages/sharpay-plugin-ru_RU.mo (added)
-
tags/1.2/languages/sharpay-plugin-ru_RU.po (added)
-
tags/1.2/languages/sharpay-plugin.pot (added)
-
tags/1.2/readme.txt (added)
-
tags/1.2/sharpay.php (added)
-
trunk/includes/sharpay-admin.php (modified) (4 diffs)
-
trunk/includes/sharpay-public.php (modified) (1 diff)
-
trunk/languages/sharpay-plugin-ru_RU.mo (modified) (previous)
-
trunk/languages/sharpay-plugin-ru_RU.po (modified) (6 diffs)
-
trunk/languages/sharpay-plugin.pot (modified) (6 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sharpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sharpay/trunk/includes/sharpay-admin.php
r1925822 r1942576 39 39 'share_counter' => false, 40 40 'share_counter_mode' => 'page', 41 'mini_widget' => false, 41 42 'image' => '' 42 43 ); … … 70 71 if ( empty($sharpay_options) ) { 71 72 $sharpay_options = sharpay_default_options(); 73 } 74 if ( !isset($sharpay_options['floating_options']['mini_widget']) ) { 75 $sharpay_options['floating_options']['mini_widget'] = false; 72 76 } 73 77 … … 198 202 199 203 <div class="group"> 204 <input type="checkbox" name="sharpay_options[floating_options][mini_widget]" id="mini_widget" class="mini_widget" 205 <?php echo $sharpay_options['floating_options']['mini_widget'] === true ? 'checked' : '' ?> > 206 <label for="mini_widget"><?php echo __('Mini widget', 'sharpay-plugin'); ?></label> 207 208 <p class="description"><?php echo __('Makes a floating widget compact.', 'sharpay-plugin'); ?></p> 209 </div> 210 211 <div class="group"> 200 212 <input type="text" id="image" name="sharpay_options[floating_options][image]" 201 213 value="<?php echo $sharpay_options['floating_options']['image'] ?>" … … 299 311 $input['style'] = $style; 300 312 313 $input['mini_widget'] = sharpay_sanitize_checkbox($input, 'mini_widget'); 314 301 315 return $input; 302 316 } -
sharpay/trunk/includes/sharpay-public.php
r1865952 r1942576 79 79 $src .= 'data-dark="true" '; 80 80 } 81 if ( $is_floating && $options['mini_widget'] ) { 82 $src .= 'data-mini="true" '; 83 } 81 84 82 85 if ( $is_static && $options['height'] != 32 ) { -
sharpay/trunk/languages/sharpay-plugin-ru_RU.po
r1925822 r1942576 2 2 msgstr "" 3 3 "Project-Id-Version: Sharpay WordPress Plugin\n" 4 "POT-Creation-Date: 2018-0 8-16 16:31+0300\n"5 "PO-Revision-Date: 2018-0 8-16 16:36+0300\n"4 "POT-Creation-Date: 2018-09-17 14:45+0300\n" 5 "PO-Revision-Date: 2018-09-17 14:45+0300\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: tech@sharpay.io\n" … … 27 27 "сайта в настройках плагина." 28 28 29 #: includes/class-sharpay-widget.php:63 includes/sharpay-admin.php:2 1529 #: includes/class-sharpay-widget.php:63 includes/sharpay-admin.php:227 30 30 msgid "32px" 31 31 msgstr "32px" 32 32 33 #: includes/class-sharpay-widget.php:67 includes/sharpay-admin.php:2 1833 #: includes/class-sharpay-widget.php:67 includes/sharpay-admin.php:230 34 34 msgid "24px" 35 35 msgstr "24px" 36 36 37 #: includes/class-sharpay-widget.php:71 includes/sharpay-admin.php:2 2137 #: includes/class-sharpay-widget.php:71 includes/sharpay-admin.php:233 38 38 msgid "16px" 39 39 msgstr "16px" 40 40 41 #: includes/class-sharpay-widget.php:73 includes/sharpay-admin.php:2 2241 #: includes/class-sharpay-widget.php:73 includes/sharpay-admin.php:234 42 42 msgid "" 43 43 "Set button height to make button smaller. Button width will change " … … 47 47 "пропорционально." 48 48 49 #: includes/class-sharpay-widget.php:80 includes/sharpay-admin.php:1 8650 #: includes/sharpay-admin.php:2 2849 #: includes/class-sharpay-widget.php:80 includes/sharpay-admin.php:190 50 #: includes/sharpay-admin.php:240 51 51 msgid "Share counter" 52 52 msgstr "Счетчик шерингов" 53 53 54 #: includes/class-sharpay-widget.php:85 includes/sharpay-admin.php:19 155 #: includes/sharpay-admin.php:2 3354 #: includes/class-sharpay-widget.php:85 includes/sharpay-admin.php:195 55 #: includes/sharpay-admin.php:245 56 56 msgid "Separate for every page" 57 57 msgstr "Отдельно для каждой страницы" 58 58 59 #: includes/class-sharpay-widget.php:88 includes/sharpay-admin.php:19 460 #: includes/sharpay-admin.php:2 3659 #: includes/class-sharpay-widget.php:88 includes/sharpay-admin.php:198 60 #: includes/sharpay-admin.php:248 61 61 msgid "Common for all site" 62 62 msgstr "Общий для всего сайта" 63 63 64 #: includes/class-sharpay-widget.php:90 includes/sharpay-admin.php: 19665 #: includes/sharpay-admin.php:2 3864 #: includes/class-sharpay-widget.php:90 includes/sharpay-admin.php:200 65 #: includes/sharpay-admin.php:250 66 66 msgid "" 67 67 "Check if you want our button to show how many times your page was shared via " … … 71 71 "ваша страница была разшарена." 72 72 73 #: includes/class-sharpay-widget.php:97 includes/sharpay-admin.php:2 4473 #: includes/class-sharpay-widget.php:97 includes/sharpay-admin.php:256 74 74 msgid "Would you like to use your own HTML markup for Sharpay button?" 75 75 msgstr "Хотите использовать собственную разметку HTML для кнопки Sharpay?" 76 76 77 #: includes/class-sharpay-widget.php:102 includes/sharpay-admin.php:2 4977 #: includes/class-sharpay-widget.php:102 includes/sharpay-admin.php:261 78 78 msgid "Enter HTML markup which represents your custom multishare button." 79 79 msgstr "Введите разметку HTML, которая нужна для отображения кнопки." 80 80 81 #: includes/class-sharpay-widget.php:108 includes/sharpay-admin.php:2 0282 #: includes/sharpay-admin.php:2 5581 #: includes/class-sharpay-widget.php:108 includes/sharpay-admin.php:214 82 #: includes/sharpay-admin.php:267 83 83 msgid ".img | #img | http://..." 84 84 msgstr ".img | #img | http://…" 85 85 86 #: includes/class-sharpay-widget.php:109 includes/sharpay-admin.php:2 0387 #: includes/sharpay-admin.php:2 5686 #: includes/class-sharpay-widget.php:109 includes/sharpay-admin.php:215 87 #: includes/sharpay-admin.php:268 88 88 msgid "" 89 89 "Enter class, id or URL of an image to make it selected by default in sharing " … … 100 100 msgstr "Sharpay" 101 101 102 #: includes/sharpay-admin.php: 76102 #: includes/sharpay-admin.php:80 103 103 msgid "Sharpay Settings" 104 104 msgstr "Настройки Sharpay" 105 105 106 #: includes/sharpay-admin.php:8 2106 #: includes/sharpay-admin.php:86 107 107 msgid "Sharpay project ID" 108 108 msgstr "ID проекта в Sharpay" 109 109 110 #: includes/sharpay-admin.php: 87110 #: includes/sharpay-admin.php:91 111 111 msgid "Get your project ID or register new project for your site in Sharpay" 112 112 msgstr "" 113 113 "Получить ID проекта или создать новый проект для вашего сайта в Sharpay" 114 114 115 #: includes/sharpay-admin.php:110 116 #| msgid "" 117 #| "To get site ID register your site <a href=\"https://app.sharpay.io/" 118 #| "webmaster\" target=\"_blanc\">here</a>." 115 #: includes/sharpay-admin.php:114 119 116 msgid "" 120 117 "To make Sharpay multisharing button work you need register your site as a " … … 126 123 "и ввести полученный ID проекта." 127 124 128 #: includes/sharpay-admin.php:1 16125 #: includes/sharpay-admin.php:120 129 126 msgid "Choose where and how <br> show Sharpay multishare button" 130 127 msgstr "Выберите где и как показывать кнопку <br> Sharpay" 131 128 132 #: includes/sharpay-admin.php:12 2129 #: includes/sharpay-admin.php:126 133 130 msgid "floating button at the BOTTOM of the page" 134 131 msgstr "плавающая кнопка ВНИЗУ страницы" 135 132 136 #: includes/sharpay-admin.php:13 0133 #: includes/sharpay-admin.php:134 137 134 msgid "BEFORE post/page content" 138 135 msgstr "ПЕРЕД содержимым поста" 139 136 140 #: includes/sharpay-admin.php:1 38137 #: includes/sharpay-admin.php:142 141 138 msgid "AFTER post/page content" 142 139 msgstr "ПОСЛЕ содержимого поста" 143 140 144 #: includes/sharpay-admin.php:1 46141 #: includes/sharpay-admin.php:150 145 142 msgid "anywhere INSIDE CONTENT using [sharpay] shortcode" 146 143 msgstr "в любом месте ВНУТРИ КОНТЕНТА с использованием тега [sharpay]" 147 144 148 #: includes/sharpay-admin.php:1 66145 #: includes/sharpay-admin.php:170 149 146 msgid "Left" 150 147 msgstr "Слева" 151 148 152 #: includes/sharpay-admin.php:1 69149 #: includes/sharpay-admin.php:173 153 150 msgid "Right" 154 151 msgstr "Справа" 155 152 156 #: includes/sharpay-admin.php:17 0153 #: includes/sharpay-admin.php:174 157 154 msgid "Select floating button position at the bottom of the page." 158 155 msgstr "Выберите позицию плавающей кнопки внизу страницы." 159 156 160 #: includes/sharpay-admin.php:1 76157 #: includes/sharpay-admin.php:180 161 158 msgid "Light" 162 159 msgstr "Светлый" 163 160 164 #: includes/sharpay-admin.php:1 79161 #: includes/sharpay-admin.php:183 165 162 msgid "Dark" 166 163 msgstr "Темный" 167 164 168 #: includes/sharpay-admin.php:18 0165 #: includes/sharpay-admin.php:184 169 166 msgid "Select floating button style." 170 167 msgstr "Выберите стиль плавающей кнопки." 168 169 #: includes/sharpay-admin.php:206 170 msgid "Mini widget" 171 msgstr "Мини виджет" 172 173 #: includes/sharpay-admin.php:208 174 msgid "Makes a floating widget compact." 175 msgstr "Делает плавающую кнопку компактной." 171 176 172 177 #: sharpay.php:40 -
sharpay/trunk/languages/sharpay-plugin.pot
r1925822 r1942576 3 3 msgstr "" 4 4 "Project-Id-Version: Sharpay WordPress Plugin\n" 5 "POT-Creation-Date: 2018-0 8-16 16:34+0300\n"5 "POT-Creation-Date: 2018-09-17 14:45+0300\n" 6 6 "PO-Revision-Date: 2018-04-25 11:09+0300\n" 7 7 "Last-Translator: \n" … … 26 26 msgstr "" 27 27 28 #: includes/class-sharpay-widget.php:63 includes/sharpay-admin.php:2 1528 #: includes/class-sharpay-widget.php:63 includes/sharpay-admin.php:227 29 29 msgid "32px" 30 30 msgstr "" 31 31 32 #: includes/class-sharpay-widget.php:67 includes/sharpay-admin.php:2 1832 #: includes/class-sharpay-widget.php:67 includes/sharpay-admin.php:230 33 33 msgid "24px" 34 34 msgstr "" 35 35 36 #: includes/class-sharpay-widget.php:71 includes/sharpay-admin.php:2 2136 #: includes/class-sharpay-widget.php:71 includes/sharpay-admin.php:233 37 37 msgid "16px" 38 38 msgstr "" 39 39 40 #: includes/class-sharpay-widget.php:73 includes/sharpay-admin.php:2 2240 #: includes/class-sharpay-widget.php:73 includes/sharpay-admin.php:234 41 41 msgid "" 42 42 "Set button height to make button smaller. Button width will change " … … 44 44 msgstr "" 45 45 46 #: includes/class-sharpay-widget.php:80 includes/sharpay-admin.php:1 8647 #: includes/sharpay-admin.php:2 2846 #: includes/class-sharpay-widget.php:80 includes/sharpay-admin.php:190 47 #: includes/sharpay-admin.php:240 48 48 msgid "Share counter" 49 49 msgstr "" 50 50 51 #: includes/class-sharpay-widget.php:85 includes/sharpay-admin.php:19 152 #: includes/sharpay-admin.php:2 3351 #: includes/class-sharpay-widget.php:85 includes/sharpay-admin.php:195 52 #: includes/sharpay-admin.php:245 53 53 msgid "Separate for every page" 54 54 msgstr "" 55 55 56 #: includes/class-sharpay-widget.php:88 includes/sharpay-admin.php:19 457 #: includes/sharpay-admin.php:2 3656 #: includes/class-sharpay-widget.php:88 includes/sharpay-admin.php:198 57 #: includes/sharpay-admin.php:248 58 58 msgid "Common for all site" 59 59 msgstr "" 60 60 61 #: includes/class-sharpay-widget.php:90 includes/sharpay-admin.php: 19662 #: includes/sharpay-admin.php:2 3861 #: includes/class-sharpay-widget.php:90 includes/sharpay-admin.php:200 62 #: includes/sharpay-admin.php:250 63 63 msgid "" 64 64 "Check if you want our button to show how many times your page was shared via " … … 66 66 msgstr "" 67 67 68 #: includes/class-sharpay-widget.php:97 includes/sharpay-admin.php:2 4468 #: includes/class-sharpay-widget.php:97 includes/sharpay-admin.php:256 69 69 msgid "Would you like to use your own HTML markup for Sharpay button?" 70 70 msgstr "" 71 71 72 #: includes/class-sharpay-widget.php:102 includes/sharpay-admin.php:2 4972 #: includes/class-sharpay-widget.php:102 includes/sharpay-admin.php:261 73 73 msgid "Enter HTML markup which represents your custom multishare button." 74 74 msgstr "" 75 75 76 #: includes/class-sharpay-widget.php:108 includes/sharpay-admin.php:2 0277 #: includes/sharpay-admin.php:2 5576 #: includes/class-sharpay-widget.php:108 includes/sharpay-admin.php:214 77 #: includes/sharpay-admin.php:267 78 78 msgid ".img | #img | http://..." 79 79 msgstr "" 80 80 81 #: includes/class-sharpay-widget.php:109 includes/sharpay-admin.php:2 0382 #: includes/sharpay-admin.php:2 5681 #: includes/class-sharpay-widget.php:109 includes/sharpay-admin.php:215 82 #: includes/sharpay-admin.php:268 83 83 msgid "" 84 84 "Enter class, id or URL of an image to make it selected by default in sharing " … … 94 94 msgstr "" 95 95 96 #: includes/sharpay-admin.php: 7696 #: includes/sharpay-admin.php:80 97 97 msgid "Sharpay Settings" 98 98 msgstr "" 99 99 100 #: includes/sharpay-admin.php:8 2100 #: includes/sharpay-admin.php:86 101 101 msgid "Sharpay project ID" 102 102 msgstr "" 103 103 104 #: includes/sharpay-admin.php: 87104 #: includes/sharpay-admin.php:91 105 105 msgid "Get your project ID or register new project for your site in Sharpay" 106 106 msgstr "" 107 107 108 #: includes/sharpay-admin.php:11 0108 #: includes/sharpay-admin.php:114 109 109 msgid "" 110 110 "To make Sharpay multisharing button work you need register your site as a " … … 113 113 msgstr "" 114 114 115 #: includes/sharpay-admin.php:1 16115 #: includes/sharpay-admin.php:120 116 116 msgid "Choose where and how <br> show Sharpay multishare button" 117 117 msgstr "" 118 118 119 #: includes/sharpay-admin.php:12 2119 #: includes/sharpay-admin.php:126 120 120 msgid "floating button at the BOTTOM of the page" 121 121 msgstr "" 122 122 123 #: includes/sharpay-admin.php:13 0123 #: includes/sharpay-admin.php:134 124 124 msgid "BEFORE post/page content" 125 125 msgstr "" 126 126 127 #: includes/sharpay-admin.php:1 38127 #: includes/sharpay-admin.php:142 128 128 msgid "AFTER post/page content" 129 129 msgstr "" 130 130 131 #: includes/sharpay-admin.php:1 46131 #: includes/sharpay-admin.php:150 132 132 msgid "anywhere INSIDE CONTENT using [sharpay] shortcode" 133 133 msgstr "" 134 134 135 #: includes/sharpay-admin.php:1 66135 #: includes/sharpay-admin.php:170 136 136 msgid "Left" 137 137 msgstr "" 138 138 139 #: includes/sharpay-admin.php:1 69139 #: includes/sharpay-admin.php:173 140 140 msgid "Right" 141 141 msgstr "" 142 142 143 #: includes/sharpay-admin.php:17 0143 #: includes/sharpay-admin.php:174 144 144 msgid "Select floating button position at the bottom of the page." 145 145 msgstr "" 146 146 147 #: includes/sharpay-admin.php:1 76147 #: includes/sharpay-admin.php:180 148 148 msgid "Light" 149 149 msgstr "" 150 150 151 #: includes/sharpay-admin.php:1 79151 #: includes/sharpay-admin.php:183 152 152 msgid "Dark" 153 153 msgstr "" 154 154 155 #: includes/sharpay-admin.php:18 0155 #: includes/sharpay-admin.php:184 156 156 msgid "Select floating button style." 157 msgstr "" 158 159 #: includes/sharpay-admin.php:206 160 msgid "Mini widget" 161 msgstr "" 162 163 #: includes/sharpay-admin.php:208 164 msgid "Makes a floating widget compact." 157 165 msgstr "" 158 166 -
sharpay/trunk/readme.txt
r1925822 r1942576 36 36 == Changelog == 37 37 38 = 1.2 = 39 * The user can set new "Mini widget" option for floating Sharpay button. 40 38 41 = 1.1 = 39 42 * Now the user can register new site (project) in Sharpay without leaving Sharpay settings page in WordPress admin. -
sharpay/trunk/sharpay.php
r1925822 r1942576 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. 123 Version: 1.2 24 24 Author: Sharpay Inc 25 25 Author URI: https://sharpay.io … … 29 29 */ 30 30 31 define('SHARPAY_PLUGIN_VERSION', '1. 1');31 define('SHARPAY_PLUGIN_VERSION', '1.2'); 32 32 33 33 register_activation_hook(__FILE__, 'sharpay_activate');
Note: See TracChangeset
for help on using the changeset viewer.