Search found 37 matches

by StephanStanisic
Wed Jul 10, 2019 4:56 pm
Forum: Community chat
Topic: WonderCMS 3.0.0
Replies: 1
Views: 11458

WonderCMS 3.0.0

Hey all,

How would I go and use the new WonderCMS 3.0.0 addListener?

Is the following according to spec?

Code: Select all

<?php
global $Wcms;

function addcss($args) {

    $args[0] .= "Nice!";
    return $args;
};

$Wcms->addListener('css', 'addcss');
by StephanStanisic
Tue Jul 09, 2019 2:52 pm
Forum: Themes
Topic: Parallax theme
Replies: 7
Views: 15702

Re: Parallax theme

No, I don't think that will be necessary. I'm just an 18 year old with way too much free time on hand. You are the one that has to pay for hosting etc of this project. Use it to (partially) pay your next bill. When I'll get home I will see how much I can do for porting to 3.0.0. Keep up the good work!
by StephanStanisic
Tue Jul 09, 2019 8:31 am
Forum: Themes
Topic: Parallax theme
Replies: 7
Views: 15702

Re: Parallax theme

If I'm right, the 3.0.0 update changes from global static with wCMS:: to $Wcms-> inside the theme.php?
If that's all, I am happy to add a additional check in the theme and make it both 2.x.x and 3.0.0 compatible.
by StephanStanisic
Tue Jul 09, 2019 6:15 am
Forum: Themes
Topic: Parallax theme
Replies: 7
Views: 15702

Re: Parallax theme

Hey Wiz,

Wasn't expecting to being added to the list of contributors, but thanks! Could you link to the website https://stst.ga? Thanks!
by StephanStanisic
Mon Jul 08, 2019 9:34 pm
Forum: Themes
Topic: Parallax theme
Replies: 7
Views: 15702

Parallax theme

Hey all! Just made this theme as a exercise. Works best with a floating summernote editor. CC-0, do what you want. https://i.imgur.com/RMiGtDN.png Demo: https://www.wonder.stanisic.nl/ Github repo: https://github.com/StephanStanisic/theme-parallax Github repo for v3.0.0: https://github.com/StephanSt...
by StephanStanisic
Sun Jul 07, 2019 9:15 am
Forum: Community chat
Topic: Custom settings item?
Replies: 2
Views: 12419

Re: Custom settings item?

Hi Wiz, I've read about the hooks in the documentation. Take this plugin.php for example: <?php function example($args) { if(!wCMS::$loggedIn) return $args; $args[0] .= "<div>Just a test</div>"; return $args; } wCMS::addListener('settings', 'example'); It just get's appended to the whole s...
by StephanStanisic
Sat Jul 06, 2019 9:17 pm
Forum: Community chat
Topic: Custom settings item?
Replies: 2
Views: 12419

Custom settings item?

Just found out about WonderCMS, and I am in already in love with it. It is simple, small and just wonderful. So I am trying to create a little theme for it, just to get known with WonderCMS (don't expect too much, I am more a backend kind of guy). I now have a scenario where I need a way to add a cu...