Exemplo n.º 1
0
 function addBreadCrumb($as = null, $replaced = [])
 {
     $this->replaced = array_merge($this->replaced, $replaced);
     $h1_ext = Route::get_h1_ext($as);
     $title = Route::get_title($as);
     $url = Route::get_url($as);
     foreach ($this->replaced as $k => $v) {
         $k = '{' . $k . '}';
         $h1_ext = str_replace($k, $v, $h1_ext);
         $title = str_replace($k, $v, $title);
         $url = str_replace($k, $v, $url);
     }
     WidgetH1::factory()->setH1($title)->setH1Ext($h1_ext);
     WidgetMetaTags::factory()->setDescription($h1_ext);
     \Larakit\Page\Page::addBreadCrumb($title, $url);
 }
Exemplo n.º 2
0
<?php

\Larakit\StaticFiles\Manager::package('larakit/sf-angular-toaster')->usePackage('larakit/sf-angular')->setSourceDir('public')->ngModule('toaster')->jsPackage('toaster.min.js')->cssPackage('toaster.min.css');
\Larakit\Page\Page::bodyAppend('<toaster-container></toaster-container>');