Plugin Directory

Changeset 1171990


Ignore:
Timestamp:
06/01/2015 03:56:21 PM (11 years ago)
Author:
philbaylog
Message:

tagging 1.2.2 & committing 1.2.3

Location:
mango-buttons
Files:
1 deleted
3 edited
16 copied

Legend:

Unmodified
Added
Removed
  • mango-buttons/trunk/admin/js/mb-modal.js

    r1170515 r1171990  
    9191        });
    9292       
    93         self.settings.link.subscribe(function(linkText){
    94             if(linkText.indexOf('.com') > -1 ||
    95                     linkText.indexOf('.org') > -1 ||
    96                     linkText.indexOf('.edu') > -1 ||
    97                     linkText.indexOf('.biz') > -1 ||
    98                     linkText.indexOf('.co') > -1
     93        self.fixLinkTextIfNecessary = function(){
     94            var linkText = self.settings.link();
     95           
     96            //if no link text, don't modify
     97            if(linkText == ''){
     98                return;
     99            }
     100           
     101            /*If a mailto, tel, or # link, don't add http or https at the front of the link*/
     102            if( linkText.indexOf('mailto:') == 0 ||
     103                    linkText.indexOf('tel:')  == 0 ||
     104                    linkText.indexOf('#') == 0 ||
     105                    linkText.indexOf('//') == 0
    99106            ){
     107                //do nothing - leave the link the way the user created it
     108            }
     109            else{
     110                //make sure the link is an absolute link...
    100111                //if the link is an absolute link, check for http:// or https:// - if we don't have either...add http:// at beginning of link
    101112                if(!(linkText.indexOf('http://') > -1 || linkText.indexOf('https://') > -1 )){
     
    103114                }
    104115            }
    105         });
     116           
     117        }
    106118       
    107119        self.buttonTextAsHtml = ko.computed(function(){
     
    286298                return;
    287299            }
     300           
     301            self.fixLinkTextIfNecessary();
    288302           
    289303            self.saveFunction(ko.toJS(self.settings));
  • mango-buttons/trunk/mango-buttons.php

    r1170515 r1171990  
    44Plugin URI: https://mangobuttons.com
    55Description: Mango Buttons is a button creator for WordPress that allows anyone to create beautiful buttons anywhere on their site.
    6 Version: 1.2.2
     6Version: 1.2.3
    77Author: Phil Baylog
    88Author URI: https://mangobuttons.com
     
    1717
    1818global $MB_VERSION;
    19 $MB_VERSION = '1.2.2';
     19$MB_VERSION = '1.2.3';
    2020
    2121class MangoButtons{
  • mango-buttons/trunk/readme.txt

    r1170515 r1171990  
    55Donate Link: https://mangobuttons.com/pricing
    66Tested up to: 4.2.2
    7 Stable tag: 1.2.2
     7Stable tag: 1.2.3
    88License: GPLv2
    99
     
    7676== Changelog ==
    7777
     78= 1.2.3 | Jun 1, 2015 =
     79* Tweak: Added support for mailto: and tel: link text
     80* Fix: Improved link text validation
     81
    7882= 1.2.2 | May 29, 2015 =
    7983* Fix: Updated links for "Get Started With.." and "Settings" plugin links to detect location of settings page
Note: See TracChangeset for help on using the changeset viewer.