nliautaud / p01contact

Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
MIT License
16 stars 15 forks source link

Change path to stylesheet in p01-contact/src/P01contact.php, or make it configurable? #67

Open ohnonot opened 2 years ago

ohnonot commented 2 years ago

I'm refering to this line. On my machine it returns an invalid path (404) because both my server root and the plugin folder are symlinked.

Could this be made user configurable? I have an implementation in the works in my fork but did not want to mess with this file because I don't know how GetSimple works.

I could imagine something like this:

if (empty($this->ContactStyle)) $this->ContactStyle=SERVER.RELPATH."style.css";
$defaultStyle = '<link rel="stylesheet" href="'.$this->ContactStyle.'"/>';