Git Product home page Git Product logo

Comments (4)

raphaelm avatar raphaelm commented on June 23, 2024

Thanks for making this! Yes, this would be great, as the widget is especially interesting for users with lots of events who have some kind of calendar on their website.

You could just reduce the settings to the JS and CSS links and have the event link as an argument to the shortcode, this would be an easy and powerful solution.

from pretix-wp-plugin.

jfwiebe avatar jfwiebe commented on June 23, 2024

@raphaelm That is a great idea!

Two questions came into my mind:

  1. The CSS is event specific because of the event color, isn't it? I can not select another file for the <head> area because it is already processed before the shortcode is evaluated.
  2. The JS link is language-specific which should ideally be selected based on the viewers language but it is not clear which languages are supported by the event. Or: de-informal-JS-File is globally used, but one of the events has no de-informal texts, how to deal with that?

Do you have an idea for that?
Thanks & with best regards
JF

from pretix-wp-plugin.

raphaelm avatar raphaelm commented on June 23, 2024

The CSS is event specific because of the event color, isn't it? I can not select another file for the area because it is already processed before the shortcode is evaluated.

Yes, it currently is only the color. I think it is fine if one needs to decide for one color for all widgets within one WordPress instance.

Or: de-informal-JS-File is globally used, but one of the events has no de-informal texts, how to deal with that?

The built-in strings of the widget ("Add to cart") will still be de-informal, all other strings will be in any or the primary language of the event, I haven't tested it. I also think that is fine to have as collateral damage, if people really use events with different languages in their blog.

from pretix-wp-plugin.

jfwiebe avatar jfwiebe commented on June 23, 2024

implemented via 6b492bd and 0dd7494.

from pretix-wp-plugin.

Related Issues (8)

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.