-
-
Notifications
You must be signed in to change notification settings - Fork 166
Update theme to work with WonderCMS 3.0.0
-
Replace
<?= wCMS::settings() ?>
with<?= $Wcms->settings() ?>
-
Replace
<?= wCMS::css() ?>
with<?= $Wcms->css() ?>
-
Replace
<?= wCMS::asset('css/style.css') ?>
with<?= $Wcms->asset('css/style.css') ?>
-
Replace
<?=wCMS::get('config','siteTitle')?>
with<?= $Wcms->get('config','siteTitle') ?>
-
Replace
<?=wCMS::get('page','title')?>
with<?= $Wcms->get('page','title') ?>
-
Replace
<?=wCMS::page('description')?>
with<?= $Wcms->page('description') ?>
-
Replace
<?=wCMS::page('keywords')?>
with<?= $Wcms->page('keywords') ?>
-
Replace
<?=wCMS::alerts()?>
with<?= $Wcms->alerts() ?>
-
Replace
<?=wCMS::menu()?>
with<?= $Wcms->menu() ?>
-
Replace
<?= wCMS::url() ?>
with<?= $Wcms->url() ?>
-
Replace
<?=wCMS::page('content')?>
with<?= $Wcms->page('content') ?>
-
Replace
<?=wCMS::block('subside')?>
with<?= $Wcms->block('subside') ?>
-
Replace
<?=wCMS::footer()?>
with<?= $Wcms->footer() ?>
-
Replace
<?= wCMS::js() ?>
with<?= $Wcms->js() ?>
Save your theme.php and your theme should be working with WonderCMS 3.0.0 and versions above.
Still need help?
- Ask a question or make a request in the community.
- Official website
Intro
- Home
- Demo
- Download
- One step install
- Requirements
- 5 file structure
- List of hooks
- Included libraries
- Create theme in 8 easy steps
- Create a plugin
- Custom modules
- Translations
- All security features described
Basic how to's
- Backup all files
- Change default login URL
- Change default password
- Create custom page template
- Create new editable areas or editable blocks
- Edit 404 page
- Get data from database
- Set data to database
- Hide page from menu
- Caddy web server config
- IIS server config
- NGINX server config
- Login
- Recover login URL
- Reset password
- Restore backup
- Update
- PHP built in server
Themes
- Create theme in 8 easy steps
- Add favicon
- Theme tags
- Update theme to work with WonderCMS 2.0.0
- Update theme to work with WonderCMS 3.0.0
- Share your themes with Custom modules
Plugins
- Quick intro on creating plugins and List of hooks
- Share your plugin with simply with Custom modules
Security
- All security features described
- Add SRI tags to your theme libraries
- Always redirect to https and www
- Additional security configuration(s)
- Add SRI tags to your theme libraries
- Better security mode (HTTPS and other features)
Features description
- One click update
- Optional: functions.php file
- Default database.js
- Allowed extensions file types for uploads
- Login URL doesn't work - 404
- 500 internal server error
- Persistent "New WonderCMS update available" message
- URLs mailformed on Windows IIS
- Other errors