Changeset 1763624
- Timestamp:
- 11/11/2017 09:45:43 AM (8 years ago)
- Location:
- ssl-secure-seal-for-woocommerce/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (4 diffs)
-
ssl-secure-seal-for-woocommerce.php (modified) (5 diffs)
-
sswcmedia.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ssl-secure-seal-for-woocommerce/trunk/readme.txt
r1761590 r1763624 1 1 === SSL Secure Seal for WooCommerce === 2 Contributors: widianto , wpfixit2 Contributors: widianto 3 3 Donate link: https://arifwidianto.com 4 4 Tags: woocommerce, secure woocommerce, ssl, woocommerce ssl 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.8 7 Stable tag: 0.1 8 Requires PHP: 5.0 7 Stable tag: 0.3 9 8 License: GPLv2 or later 10 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 14 13 == Description == 15 14 16 If you are accepting credit card payment, it is necessary to have a SSL Certificate installed. Adding a secure seal badge was a next step to bring confidence confidence for your customers and could increase conversions. When it placed close to the payment button, your customer knows that the site where they entering their card information on is 100% secure.15 If you are accepting credit card payment, it is necessary to have a SSL Certificate installed. Adding a secure seal badge was a next step to bring confidence for your customers and could increase conversions. When it placed close to the payment button, your customer knows that the site where they entering their card information on is 100% secure. 17 16 18 17 This plugin lets you easily show and manage SSL secure seal or custom image on certain WooCommerce pages, most importantly the checkout page. … … 35 34 e.g. 36 35 37 1. Upload the plugin files to the `/wp-content/plugins/ssl-se al-woocommerce` directory, or install the plugin through the WordPress plugins screen directly.36 1. Upload the plugin files to the `/wp-content/plugins/ssl-secure-seal-for-woocommerce` directory, or install the plugin through the WordPress plugins screen directly. 38 37 1. Activate the plugin through the 'Plugins' screen in WordPress 39 38 1. Use the WooCommerce->Settings->Seal screen to configure the plugin … … 60 59 == Changelog == 61 60 61 = 0.2 November 4th, 2017 = 62 * Fixing on 63 62 64 = 0.1 November 4th, 2017 = 63 65 * First release. -
ssl-secure-seal-for-woocommerce/trunk/ssl-secure-seal-for-woocommerce.php
r1761590 r1763624 2 2 /* 3 3 Plugin Name: SSL Secure Seal for WooCommerce 4 Plugin URI: http s://wordpress.org/plugins/ssl-secure-seal-for-woocommerce/4 Plugin URI: http://arifwidianto.com/plugins/ssl-secure-seal-for-woocommerce/ 5 5 Description: Show and manage SSL secure seal or custom image on WooCommerce pages. 6 Version: 0. 16 Version: 0.3 7 7 Author: Arif Widianto 8 8 Author URI: https://arifwidianto.com/ … … 16 16 17 17 /** 18 * Preventive check this pluginsrequires WooCommerce to run its functionality18 * Preventive check. This plugin requires WooCommerce to run its functionality 19 19 **/ 20 20 if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { … … 83 83 } 84 84 85 function sswc_validate($input) { 86 return $input; 87 } 88 85 89 function sswc_get_settings() { 86 90 $settings_sswc = ( isset($settings) )? $settings : null; … … 88 92 // Add Title to the Settings 89 93 $settings_sswc[] = array( 90 'name' => __( 'SSL Se al Badgefor WooCommerce Settings', 'sslseal' ),94 'name' => __( 'SSL Secure Seal for WooCommerce Settings', 'sslseal' ), 91 95 'type' => 'title', 92 'desc' => __( 'Configure SSL Se al Badgefor WooCommerce pages. You may use custom seal image, seal embed code, or both. SSL Secure Seal plugin will output custom image and embed code to designated WooCommerce pages. All code wrapped inside a div with "secure_seal" class placeholder, so you may style them later (if necessary).', 'sslseal' ),96 'desc' => __( 'Configure SSL Secure Seal for WooCommerce pages. You may use custom seal image, seal embed code, or both. SSL Secure Seal plugin will output custom image and embed code to designated WooCommerce pages. All code wrapped inside a div with "secure_seal" class placeholder, so you may style them later (if necessary).', 'sslseal' ), 93 97 'id' => 'sslseal' ); 94 98 … … 111 115 'type' => 'textarea', 112 116 'css' => 'min-width:400px;min-height:75px;', 113 'desc' => __( 'Put HTML embed code here. ' ),117 'desc' => __( 'Put HTML embed code here. (<strong>No SCRIPT tag allowed!</strong>)' ), 114 118 ); 115 119 -
ssl-secure-seal-for-woocommerce/trunk/sswcmedia.js
r1761590 r1763624 1 1 jQuery(document).ready(function($){ 2 var b=$('<input/>').attr({ 3 type: "button", 4 id: "upload_button", 5 class: 'button', 6 value: 'Select Image' 7 }); 8 $(b).insertAfter("#sswc_image"); 9 10 var uploader; 11 12 $("#upload_button").click(function() { 13 event.preventDefault(); 14 if ( uploader ) { 15 uploader.open(); 16 return; 17 } 18 19 uploader = wp.media({ 20 title: 'Select SSL Seal Image', 21 button: { 22 text: 'Select SSL Image' 23 }, 24 multiple: false // Set to true to allow multiple files to be selected 25 }); 2 26 3 var r=$('<input/>').attr({ 4 type: "button", 5 id: "upload-button", 6 class: 'button', 7 value: 'Select Image' 8 }); 9 $(r).css("padding-left", "10px"); 10 $(r).insertAfter("#sswc_image"); 11 12 13 var mediaUploader; 14 15 $('#upload-button').click(function(e) { 16 e.preventDefault(); 17 // If the uploader object has already been created, reopen the dialog 18 if (mediaUploader) { 19 mediaUploader.open(); 20 return; 21 } 22 // Extend the wp.media object 23 mediaUploader = wp.media.frames.file_frame = wp.media({ 24 title: 'Choose SSL Image', 25 button: { 26 text: 'Choose SSL Image' 27 }, multiple: false }); 28 29 // When a file is selected, grab the URL and set it as the text field's value 30 mediaUploader.on('select', function() { 31 attachment = mediaUploader.state().get('selection').first().toJSON(); 32 $('#sswc_image').val(attachment.url); 33 }); 34 // Open the uploader dialog 35 mediaUploader.open(); 36 }); 37 27 // When an image is selected in the media uploader... 28 uploader.on( 'select', function() { 29 // Get media attachment details from the uploader state 30 var attachment = uploader.state().get('selection').first().toJSON(); 31 $('#sswc_image').val(attachment.url); 32 }); 33 uploader.open(); 34 35 }); 38 36 });
Note: See TracChangeset
for help on using the changeset viewer.