Changeset 2132258
- Timestamp:
- 08/01/2019 05:22:30 PM (7 years ago)
- Location:
- sharpay
- Files:
-
- 22 added
- 2 deleted
- 5 edited
-
tags/1.6 (added)
-
tags/1.6/LICENSE (added)
-
tags/1.6/README.md (added)
-
tags/1.6/assets (added)
-
tags/1.6/assets/css (added)
-
tags/1.6/assets/css/sharpay-admin.css (added)
-
tags/1.6/assets/js (added)
-
tags/1.6/assets/js/sharpay-admin.js (added)
-
tags/1.6/includes (added)
-
tags/1.6/includes/class-sharpay-widget.php (added)
-
tags/1.6/includes/sharpay-admin.php (added)
-
tags/1.6/includes/sharpay-public.php (added)
-
tags/1.6/index.php (added)
-
tags/1.6/languages (added)
-
tags/1.6/languages/README.md (added)
-
tags/1.6/languages/sharpay-plugin-ru_RU.mo (added)
-
tags/1.6/languages/sharpay-plugin-ru_RU.po (added)
-
tags/1.6/languages/sharpay-plugin.pot (added)
-
tags/1.6/readme.txt (added)
-
tags/1.6/sharpay.php (added)
-
trunk/assets/css/admin.css (deleted)
-
trunk/assets/css/sharpay-admin.css (added)
-
trunk/assets/js/admin.js (deleted)
-
trunk/assets/js/sharpay-admin.js (added)
-
trunk/includes/class-sharpay-widget.php (modified) (4 diffs)
-
trunk/includes/sharpay-admin.php (modified) (7 diffs)
-
trunk/includes/sharpay-public.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/sharpay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sharpay/trunk/includes/class-sharpay-widget.php
r1865952 r2132258 41 41 'use_custom_markup' => false, 42 42 'custom_markup' => 'Sharpay multishare button', 43 'image' => '' 43 'image' => '', 44 'modal' => true 44 45 ); 45 46 $instance = wp_parse_args( (array) $instance, $default ); … … 102 103 <p class="field-description"><?php echo __('Enter HTML markup which represents your custom multishare button.', 'sharpay-plugin'); ?></p> 103 104 </div> 105 106 <div class="group always-visible"> 107 <input type="checkbox" id="<?php echo "{$id}-modal" ?>" name="<?php echo $this->get_field_name( 'modal' ); ?>" 108 <?php echo $instance['modal'] === true ? 'checked' : '' ?> > 109 <label for="<?php echo "{$id}-modal" ?>"><?php echo __('Open in modal window', 'sharpay-plugin'); ?></label> 110 <p class="field-description"><?php echo __('The sharing window will open in modal mode without creating a new browser window.', 'sharpay-plugin'); ?></p> 111 </div> 104 112 105 113 <div class="group always-visible"> … … 109 117 <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> 110 118 </div> 119 111 120 </div> 112 121 <?php … … 139 148 140 149 $instance['image'] = sanitize_text_field($new_instance['image']); 150 151 $instance['modal'] = (bool) $new_instance['modal']; 141 152 142 153 return $instance; -
sharpay/trunk/includes/sharpay-admin.php
r2088844 r2132258 39 39 'share_counter' => false, 40 40 'share_counter_mode' => 'page', 41 'image' => '' 41 'image' => '', 42 'modal' => true, 42 43 ); 43 44 … … 50 51 'color_bg' => 'ff9933', 51 52 'image' => '', 53 'modal' => true, 52 54 'use_custom_markup' => false, 53 55 'custom_markup' => 'Sharpay multishare button' … … 100 102 <td> 101 103 <input type="text" id="sharpay-site-code" name="sharpay_options[site_id]" 102 value="<?php echo esc_attr($sharpay_options['site_id']); ?>" />104 value="<?php echo esc_attr($sharpay_options['site_id']); ?>" <?php if( empty( $sharpay_options['site_id'] ) ) { echo 'class="sharpay-code-error"'; } ?>/> 103 105 <a id="sharpay-select-site" href="#"> 104 106 <?php echo __('Get your project ID or register new project for your site in Sharpay', 'sharpay-plugin'); ?> … … 213 215 <p class="description"><?php echo __('Check if you want our button to show how many times your page was shared via Sharpay.', 'sharpay-plugin'); ?></p> 214 216 </div> 217 218 <div class="group"> 219 <input type="checkbox" name="sharpay_options[floating_options][modal]" id="sharpay_options-modal" class="" 220 <?php echo $sharpay_options['floating_options']['modal'] === true ? 'checked' : '' ?> > 221 <label for="sharpay_options-modal"><?php echo __('Open in modal window', 'sharpay-plugin'); ?></label> 222 <p class="description"><?php echo __('The sharing window will open in modal mode without creating a new browser window.', 'sharpay-plugin'); ?></p> 223 </div> 215 224 216 225 <div class="group"> … … 294 303 <p class="description"><?php echo __('Enter HTML markup which represents your custom multishare button.', 'sharpay-plugin'); ?></p> 295 304 </div> 296 305 306 <div class="group always-visible"> 307 <input type="checkbox" name="<?php echo $options; ?>[modal]" id="<?php echo "{$prop}-modal" ?>" class="" 308 <?php echo $sharpay_options[$prop]['modal'] === true ? 'checked' : '' ?> > 309 <label for="<?php echo "{$prop}-modal" ?>"><?php echo __('Open in modal window', 'sharpay-plugin'); ?></label> 310 <p class="description"><?php echo __('The sharing window will open in modal mode without creating a new browser window.', 'sharpay-plugin'); ?></p> 311 </div> 312 297 313 <div class="group always-visible"> 298 314 <input type="text" id="image" name="<?php echo $options; ?>[image]" … … 385 401 386 402 $input['image'] = sanitize_text_field($input['image']); 403 404 $input['modal'] = sharpay_sanitize_checkbox($input, 'modal'); 387 405 388 406 return $input; … … 411 429 $dir = dirname(__FILE__); 412 430 413 wp_register_style('sharpay-admin-styles', plugins_url('assets/css/ admin.css', dirname(__FILE__)), array(), SHARPAY_PLUGIN_VERSION);431 wp_register_style('sharpay-admin-styles', plugins_url('assets/css/sharpay-admin.css', dirname(__FILE__)), array(), SHARPAY_PLUGIN_VERSION); 414 432 wp_enqueue_style( 'sharpay-admin-styles' ); 415 433 416 wp_register_script('sharpay-admin-js', plugins_url('assets/js/ admin.js', dirname(__FILE__)), array('jquery'), SHARPAY_PLUGIN_VERSION);434 wp_register_script('sharpay-admin-js', plugins_url('assets/js/sharpay-admin.js', dirname(__FILE__)), array('jquery'), SHARPAY_PLUGIN_VERSION); 417 435 wp_enqueue_script('sharpay-admin-js'); 418 436 } -
sharpay/trunk/includes/sharpay-public.php
r2088844 r2132258 94 94 $src .= "data-image=\"{$options['image']}\" "; 95 95 } 96 97 if ( $options['modal'] ) { 98 $src .= "data-modal=\"true\" "; 99 } 96 100 97 101 if ($is_static && isset($options['use_custom_colors']) && $options['use_custom_colors']) { -
sharpay/trunk/readme.txt
r2088844 r2132258 36 36 == Changelog == 37 37 38 = 1.6 = 39 * Modal window mode. 40 38 41 = 1.5 = 39 42 * Font and background color options for static button. -
sharpay/trunk/sharpay.php
r2088844 r2132258 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. 523 Version: 1.6 24 24 Author: Sharpay Inc 25 25 Author URI: https://sharpay.io … … 29 29 */ 30 30 31 define('SHARPAY_PLUGIN_VERSION', '1. 5');31 define('SHARPAY_PLUGIN_VERSION', '1.6'); 32 32 33 33 register_activation_hook(__FILE__, 'sharpay_activate');
Note: See TracChangeset
for help on using the changeset viewer.