Exemple #1
0
 /**
  * Load all default extensions
  */
 public function extensions()
 {
     // load all kirby tags and field methods
     include_once __DIR__ . DS . 'extensions' . DS . 'tags.php';
     include_once __DIR__ . DS . 'extensions' . DS . 'methods.php';
     // install additional kirby tags
     kirbytext::install($this->roots->tags());
     // install the smartypants class if enabled
     if ($this->options['smartypants']) {
         include_once __DIR__ . DS . 'vendors' . DS . 'smartypants.php';
     }
 }
 /**
  * Load all default extensions
  */
 public function extensions()
 {
     // load all kirby tags and field methods
     include_once __DIR__ . DS . 'extensions' . DS . 'tags.php';
     include_once __DIR__ . DS . 'extensions' . DS . 'methods.php';
     // install additional kirby tags
     kirbytext::install($this->roots->tags());
 }
Exemple #3
0
 protected static function tags()
 {
     // load all kirby tags
     include_once __DIR__ . DS . 'config' . DS . 'kirbytext.php';
     // install additional kirby tags
     kirbytext::install(c::$data['root.tags']);
 }