Plugin Directory

Changeset 1763624


Ignore:
Timestamp:
11/11/2017 09:45:43 AM (8 years ago)
Author:
widianto
Message:

Improvements and corrections

Location:
ssl-secure-seal-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ssl-secure-seal-for-woocommerce/trunk/readme.txt

    r1761590 r1763624  
    11=== SSL Secure Seal for WooCommerce ===
    2 Contributors: widianto, wpfixit
     2Contributors: widianto
    33Donate link: https://arifwidianto.com
    44Tags: woocommerce, secure woocommerce, ssl, woocommerce ssl
    55Requires at least: 3.0.1
    66Tested up to: 4.8
    7 Stable tag: 0.1
    8 Requires PHP: 5.0
     7Stable tag: 0.3
    98License: GPLv2 or later
    109License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    1413== Description ==
    1514
    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.
     15If 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.
    1716
    1817This plugin lets you easily show and manage SSL secure seal or custom image on certain WooCommerce pages, most importantly the checkout page.
     
    3534e.g.
    3635
    37 1. Upload the plugin files to the `/wp-content/plugins/ssl-seal-woocommerce` directory, or install the plugin through the WordPress plugins screen directly.
     361. 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.
    38371. Activate the plugin through the 'Plugins' screen in WordPress
    39381. Use the WooCommerce->Settings->Seal screen to configure the plugin
     
    6059== Changelog ==
    6160
     61= 0.2 November 4th, 2017  =
     62* Fixing on
     63
    6264= 0.1 November 4th, 2017  =
    6365* First release.
  • ssl-secure-seal-for-woocommerce/trunk/ssl-secure-seal-for-woocommerce.php

    r1761590 r1763624  
    22/*
    33Plugin Name:    SSL Secure Seal for WooCommerce
    4 Plugin URI:     https://wordpress.org/plugins/ssl-secure-seal-for-woocommerce/
     4Plugin URI:     http://arifwidianto.com/plugins/ssl-secure-seal-for-woocommerce/
    55Description:    Show and manage SSL secure seal or custom image on WooCommerce pages.
    6 Version:        0.1
     6Version:        0.3
    77Author:         Arif Widianto
    88Author URI:     https://arifwidianto.com/
     
    1616
    1717/**
    18  * Preventive check this plugins requires WooCommerce to run its functionality
     18 * Preventive check. This plugin requires WooCommerce to run its functionality
    1919 **/
    2020if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
     
    8383    }
    8484   
     85    function sswc_validate($input) {
     86        return $input;
     87    }
     88   
    8589    function sswc_get_settings() {
    8690        $settings_sswc = ( isset($settings) )? $settings : null;
     
    8892        // Add Title to the Settings
    8993        $settings_sswc[] = array(
    90         'name' => __( 'SSL Seal Badge for WooCommerce Settings', 'sslseal' ),
     94        'name' => __( 'SSL Secure Seal for WooCommerce Settings', 'sslseal' ),
    9195        'type' => 'title',
    92         'desc' => __( 'Configure SSL Seal Badge 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' ),
     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' ),
    9397        'id' => 'sslseal' );
    9498
     
    111115            'type'     => 'textarea',
    112116            '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>)' ),
    114118        );
    115119
  • ssl-secure-seal-for-woocommerce/trunk/sswcmedia.js

    r1761590 r1763624  
    11jQuery(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        });
    226
    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    });
    3836});
Note: See TracChangeset for help on using the changeset viewer.