Comments (5)
Assume that would mean just checking for a field with numbers dashes and a
plus? There must be a decent PHP phone number checking snippet out there.
On Mon, 06 Jun 2016 at 7:54 PM Andrew Misplon [email protected]
wrote:
@adiraomj https://github.com/adiraomj Sorry for missing this. Please,
can we make the Tel field a bit smarter, just like the email field? Can
we make it accept a URL if one is entered and only prepend tel if a phone
number is detected?—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#73, or mute the thread
https://github.com/notifications/unsubscribe/ABExy426vAekDXhHsfkLuPkZA1tsq3a1ks5qJF7vgaJpZM4IvJl0
.
from vantage.
What we can do is use PHP's FILTER_VALIDATE_URL
to validate url. If it fails we can display tel:
. What do you think?
from vantage.
I'm cool with doing that way around. @gregpriday ?
from vantage.
@Misplon I just went through out code again. The logic does use FILTER_VALIDATE_URL
to check for a url.
However for FILTER_VALIDATE_URL
to return true, the url must use http://
or https://
.
So for example:
https://siteorigin.com
- Passes
http://siteorigin.com
- Passes
siteorigin.com
- Fails
https://github.com/siteorigin/vantage/blob/develop/inc/widgets.php#L321
from vantage.
@adiraomj My bad for not testing that. Cool, this is fine, let's leave it. Thanks man.
from vantage.
Related Issues (20)
- Re-look at cart form flexbox use
- WooCommerce: Pagination current class isn't updating when Page Builder is activated HOT 2
- Change header sidebar vertical alignment from JS to Flexbox
- Boxed layout: Check alignwide and alignfull styles, ensure they aren't stretching outside of the container HOT 1
- Block Editor Styles: Restrict layout wide and full to no sidebar
- WooCommerce: Proceed to Checkout padding changes on hover HOT 1
- Add a theme setting to remove the archive title prefix HOT 1
- Customzier: Use More Specific Selectors for Title and Header Fonts
- Investigate External Background Image not being imported HOT 3
- Add Additional Checks for FitVids to Ensure Other Plugins Loading FitVids Won't be Picked Up
- Resolve outstanding jQuery Migrate warnings HOT 2
- Update FontAwesome to v5 HOT 2
- Accessibility HOT 3
- social media share buttons not showing up anymore HOT 3
- WooCommerce: Link product title color to an existing setting
- Accessibility Test HOT 3
- Editor Styles: Investigate Block Editor editor styles based on Customizer settings
- Alternative to Google Web Fonts HOT 3
- Header Sidebar: Exclude Images From Lazy Loading
- Mobile Menu Text: Add Wrapper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vantage.