Comments (4)
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.
@raphaelm That is a great idea!
Two questions came into my mind:
- 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. - 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.
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.
implemented via 6b492bd and 0dd7494.
from pretix-wp-plugin.
Related Issues (8)
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 pretix-wp-plugin.