Giter VIP home page Giter VIP logo

business-profile's Issues

Make Location Metabox More Extensible?

I have a custom plugin that adds an alternative phone to the default settings screen on Business Profile and at a quick glance I didn't see any way to easily add the same data to individual locations.

I think all that would be needed is an extra do_action within the meta box itself and the callback used for saving the extra meta as well.

It's also possible that I've just missed it entirely or that you prefer people register their own custom meta boxes rather than expand on the existing ones.

google map

Hello,
our store is enlisted in google maps, but providing an address in site does not match the map. Can I manually set the coordinates? or how can I match the google list?

WordPress.org install doesn't include translation files

Hi,

I was looking to have the plugin translated to Portuguese and Im seeing that it already has translation files for that, although those files aren't included when installing the plugin from wordpress.org.

Anything can be done about this?

Cheers.

Support add_theme_support for controlling automated integration

Arguments:

  • disable_styles - Whether or not to load frontend stylesheets. Default: false
  • disable_scripts - Whether or not to load frontend scripts. Default: false
  • disable_append_to_content - Whether or not to automatically append a contact card to the_content in location single.php. Default: false

non-object PHP notice error

Being output in WP 4.5.2 & BP 1.1
Notice: Trying to get property of non-object in /srv/www/allwater/htdocs/wp-content/plugins/business-profile/business-profile.php on line 207

Multiple Locations

Do you have any plans to add support for multiple locations? Would you be interested in a pull request to add them?

Add/Edit locations

The add/edit interface for location posts should support post meta in the format described in the locations standard.

  • Remove unnecessary components from the add/edit page
  • Convert scheduler.js from Simple Admin Pages for use as post meta for opening hours
  • Convert address.js from Simple Admin Pages for use as post meta for business address (lat/lon lookup)
  • Support all the rest of the post meta required

Previous discussion in #6.

Filter out some key words

All the text can be translated, but a lot of English speakers are just not familiar with how to use translations. Some of the key phrases, like "Get Directions" and "Opening Hours" should be filtered for easy modification.

Switch over to JSON-LD

I'm considering making the jump to the JSON-LD format. It's what Google recommends, it will reduce the burden of tying the output to the schema, and prevent the situation where we're loading lots of rich markup objects on a single page just because we want to display the details in multiple places. It will also make it easier to inject data (like menus) into the overall entry.

The goal is to:

  • Load a JSON-LD entry in the header on the homepage. (Should it interact with Yoast's JSON-LD entry?)
  • Load a JSON-LD entry for a location in the header of each location single page.
  • Keep the DOM structure the same, just removing the attributes specific to the schema.org entry, so that no CSS changes are required.
  • Keep the old template functions around so that existing custom templates that use those functions will continue to work seamlessly.
  • Add a setting to keep the old format in case these measures still break anyone's custom templates or entries.

@robneu do you have any thoughts on this?

Define custom post type for multiple locations

Multiple locations will be defined in a location custom post type that follows the (work-in-progress) standard as closely as possible. The custom post types should be "activated" through a toggle in the main profile settings page. When activated, menu items for Locations and Add Locations will appear under the Business Profile link.

  • Set up code architecture for Custom Post Type
  • Add toggle to settings page to "enable" custom post type
  • Add menu items to Business Profile tab

Previous discussion can be found in #6.

Callback Help

Hey there, This is awesome thanks. I am trying to extend it a bit to add a formatted phone number option so I can output it as a tel: href to activate calling. I have it (mostly) working, added a setting, and added getter to the template-functions, but when I output the data I am getting an error call_user_func() expects parameter 1 to be a valid callback and am not sure I follow how the callback part is supposed to work... Any input?

Thanks!

Allow text to be passed to brief opening hours

Allow the opening_hours_brief argument to accept a string for display instead of trying to generate it's own, so that users can opt for a more human-readable format, like "12-6pm Mon-Fri".

  • Allow function to accept string and output the string
  • Test this in the shortcode
  • Add text field to widget
  • Add option to location editing pages

Short weekday names are not i18n-ready

Woops. The days of the week are defined for the schema output format here. But then they're re-used for the display output in brief opening hours here.

The display output names need to be translate-able, but the schema output needs to remain fixed in order to validate.

Enter map coordinates manually

Google drops the ball for quite a few addresses, not locating them correctly. Perhaps next to the coordinate "View" button there should be an "Edit" button to enter them manually.

Showing PIN instead of Address in Map

Had a client that not want the default view of the Google map, as the address was already displayed above the map - they instead wanted the PIN that would open to the address when clicked.

Like the one below
pin1

and then when the PIN is clicked shows the address
pin2-open

I got the functionality needed with MapPress - https://wordpress.org/plugins/mappress-google-maps-for-wordpress/

Was wondering if the map component can be manipulated in Business Profile as it currently stands.

Google's Rich Snippets testing tool doesn't recognize the display address

It looks like the display address is not being recognized by Google's Rich Snippets tool. The address gets recognized when show_address is set to false. In this case, the plugin prints the address into the content attribute on a meta tag.

I think this is because only the content attribute supports a single-string address. A full schema object wants a fully-specified PostalAddress.

The template tag should be refactored to always print the address into the content attribute of a meta tag. Then we can remove the schema markup from the display markup if it's printed.

Refactor restaurant reservations integration

The addition of the booking link should be handled by the Restaurant Reservations plugin rather than Business Profile.

NateWr/restaurant-reservations#58

The way it's handled now in BP makes it hard to have a generic function available to call, because it's nested in a class. Implement in the reservations plugin then deprecate this technique.

Allow non-administrators to manage Business Profile

On my customers websites I usually give them a slightly lower that full administrator role permissions. This is so that I can protect some sensible areas where they could introduce problems.

Problem is I need to allow them to manage business-profile details but that seems to be accessible only by administrators.

Is there any way I can customize this?

WordPress Coding Standards

This is a pretty minor detail, but the plugin triggers a number of warnings and errors when running the WordPress PHP_CodeSniffer sniffs. If this is something you'd like to leave as-is, no big deal.

If you'd like to make the plugin more compliant, we could work on getting things updated as part of the process of building out the multiple locations feature. I'd be happy to either work the fixes in through my feature PRs or do them all in one shot with a WPCS pull request.

URL Encoding Problem for Map

Hi again :)

So noticed an issue when clicking on 'get directions' from inside of the map content box, it fails to get directions because the URL parameter, in my case, has a <br> in it. Works find where the address link is printed via PHP, but the

encodeURIComponent( data.address )

Is not removing the break tag. I am trying to figure out how to strip and clean it for the address, but thought I would post it for you to see also.

Enqueue Google Maps api script so that conflicts can be managed better

Right now the plugin injects the Google Maps API script after the page is loaded. This improves page load speed a little bit, but the cost is that it's very difficult to manage conflicts.

If another plugin enqueues the Google Maps api as well, this can cause conflicts, for example with Modern Tribe's Events Calendar plugin. So they need to be able to dequeue the API script without disabling the map view in our plugin.

This presents a bit of an issue around how the maps are loaded. We are passing an initialize callback to the API as a query var, so that our maps spin up as soon as the API is loaded. If we continue to use this technique, dequeuing the API call will also disable our maps.

On the other hand, if we don't use the callback technique, we'll need to implement some kind of listener that checks when the API is loaded. I'm not super happy about that. It just seems like a lot of hassle. It might be worth diving into the Google Maps API to see if they emit any kind of loaded event we can listen to.

"Get Directions" Link to include option to open in new window/tab.

Currently the Google Map "Get directions" link opens in a new window/tab within the browser.

However this is not the case for the "Get Directions" links in:

  1. Contact Card Widget.
  2. Selected Contact Page.

Solution:
An option to have the links open in a new window/tab would be nice.

Add more specific business types?

Someone recently asked me if it's possible to add a more specific business type such as InsuranceAgency. A method for doing it via a filter didn't jump out at me and I was wondering if you'd be willing to add these sub-types in to the default options array.

If so, I'll gather up a list of all of them and set up a PR. I can also add some filters to make it easier for developers to add new sub-types if they're added to the spec before we have a chance to include them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.