Skip to content

sleepymustache/isi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

ISI

Creates a configurable fixed ISI. It requires some simple configuration. Essentially you must:

  • Add the .scss file
  • Add the .tpl file
  • Create a trait with the ISI content
  • Attach the trail to your Model

Usage

    // Import the base styles to your SCSS file
    @import '../app/modules/isi/scss/isi'; 
    <!-- Include the .tpl file, probably in the footer -->
    {{ #include ../modules/isi/template/isi }}
    // Create a trait to use in your Model
    trait Isi {
      // You need both of these properties
      public $isiHeading = "Important Safety Information";
      public $isiBody    = "<p>Sample ISI content</p>";
    }
    // Add the trait to your Model
    namespace Model;

    use \Sleepy\MVC\Model;

    class Homepage extends Model {
        // add it with the "use" statement
        use Isi;

        public $title = "...";
        // ...
    }

Changelog

Version 1.0

  • Initial build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published