Comments (5)
Indeed. Seems that DOKU_BASE
is the way to fix this, see for instance https://github.com/matzekuh/dokuwiki-plugin-doodle3/blob/master/syntax.php#L294 . PR welcome. ;)
from dokuwiki-plugin-icalevents.
Do you prefer it as an embedded base64 to follow Doku's behavior for the other inline icons? It would be just like the following:
$link['style'] = 'background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJlSURBVDjLpZNbaM9hGMc/v8NsTqF2yMhZKIexmpFyRZIiblwouZDauLYoTVEryg2uXIoIOUU5zJkh4e9QDmtJbWxrbUzz/72/9/m6+P3HLslbT9/3ufm+n/f7Pm8gif9ZMcDxe717JLZ62UQzwxukZnhveBOptyHl8anwZk/3b5pZEwOYtGNDzejSfzm58dTH+b8JvFkpwMizdSCBT8E8OJftkzy4BPIOnONHQzPO+eIhBoM5CCrLwNKslBZM8uDykCbwtgMAl/o/GXhvBYMA2rtAlpGYZSR+UIGKCgCSggGSOHy1Q/0DTifufZUknbr/RZJ0+mHWn3mU9edbMu3qG9DmQ08lKSNw3jCJOIKzjzqJopBzLZ3EEVx40smDr/u4e96QGUXPGpkzYQSJywjCwSsIiKOADUvKiUNYX1tOUQhra8oJg4hZ02cQhhGrqyuyp03tTwbOGzKIQ7j8rIsn3Qd4fEVIIn6+kzAMaH35Fn37wbZD68gnCUl+EbAkI3CpIYmiCNZUlwEwbfIUgiBg1cIyJqbzGFPiWbl8GXUb66mqnkrJ2IvUbq88GEI2dQBRGHDjZTcAbZ8+ERDQnOvm+fszVM1egA89C8avwAeO2nlLAeqRxK7j79TzPa/mXJck6darTG8XdM3uhbry+piGrou5I1pcP17h7wwk5k4aRUfPANMrhtP2pZ8J44bx7nMfff29vGl/SNP1LQA0XdtCa2cO4GdhkPRg78kPVYm3kS71uNTjU8N5I/UpxSWracndZOn8ZVx6dZRhQcz9F3cAjgR/+51rt1c2AXXAaOA7cLTlcHvDL6y6kIpO9lqsAAAAAElFTkSuQmCC');';
It's 964 bytes, VS 723 bytes when not encoded, but saving a round-trip request where the headers and cookie might be bigger :)
from dokuwiki-plugin-icalevents.
Thanks! Sounds nice if this is the standard way in Dokuwiki. However, then I think it's more efficient to define the image only once in CSS, see https://www.dokuwiki.org/devel:css#plugins_styles
from dokuwiki-plugin-icalevents.
also dokuwiki core will inline small images to css itself
https://www.dokuwiki.org/config:cssdatauri
from dokuwiki-plugin-icalevents.
Oh good point. Then it makes sense to put it in a proper CSS file and let DokuWiki decide if it should be inlined, I think.
from dokuwiki-plugin-icalevents.
Related Issues (20)
- Set PHP locale to current language when dealing with the dates HOT 4
- Consider recurrent events HOT 2
- Version 2017-04-16 is not working with PHP 5.6.30-0+deb8u1, needs php 7 HOT 3
- 500 when using "from" and "to" args HOT 3
- Consider status:cancelled HOT 4
- Support for filter according to status of event HOT 3
- summary_link not working with Cyrillic symbols HOT 2
- Way to group events by day
- Just doesn't work at all HOT 5
- Sabre declared twice when using davcal HOT 7
- iCalEvents and Bootstrap3 issue HOT 8
- Feature - Locale settings HOT 2
- Time zone is not correctly exported
- URL in the description section are not recognised by icalevents when importing from google calendar HOT 1
- category evaluation
- Maintainer needed HOT 5
- dformat support lost HOT 7
- Examples in documentation HOT 4
- Adjust timezone offset HOT 5
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 dokuwiki-plugin-icalevents.