drajathasan / slims-opac-template-skelton
A starter template without any styling components
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:slims-template
README
If you want to create your own SLiMS Template. Please follow this step:
- Create your template directory inside /template/. E.g: my_template.
- Create new file named with index_template.inc.php
- Put this code into that file :
<?php use SLiMS\Template\Skelton\Core as Template; require __DIR__ . '/vendor/autoload.php'; // Initialization template instance $template = new Template; // set basic properties $template->setProperty('notes', $notes??null); $template->setProperty('subject', $subject??null); $template->setProperty('metadata', $metadata??null); $template->setProperty('maincontent', $main_content??''); $template->setProperty('image_src', $image_src??''); // Rendering opac to template $template->render($opac??$this);
- Next you need composer to install this packages.
composer require drajathasan/slims-opac-template-skelton
- Login into admin area, and change template in theme menu.
- Choose "base" then open OPAC again.