Skip to content

Commit

Permalink
📝 melhorando documentação
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Apr 21, 2020
1 parent b0be2e9 commit 11fbae7
Showing 1 changed file with 8 additions and 40 deletions.
48 changes: 8 additions & 40 deletions documents/framework_puro/bootstrap_theme_formdin.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@ Edite o arquivo `<SISTEMA>/app/lib/menu/AdiantiMenuBuilder.php` incluido as linh
```php
case 'theme_formdin':
ob_start();
$callback = array('SystemPermission', 'checkPermission');
$xml = new SimpleXMLElement(file_get_contents($file));
$menu = new TMenu($xml, $callback, 1,'dropdown-menu','nav-item dropdown','nav-link dropdown-toggle');
$menu = new TMenu($xml,null, 1,'dropdown-menu','nav-item dropdown','nav-link dropdown-toggle');
$menu->id = 'main-menu-top';
$menu->show();
$menu_string = ob_get_clean();
Expand All @@ -71,42 +70,11 @@ Edite o arquivo `<SISTEMA>/app/lib/menu/AdiantiMenuBuilder.php` incluido as linh
### Etapa 03
Edite o arquivo `<SISTEMA>/index.php` incluido as linhas abaixo:
```php
if ( TSession::getValue('logged') ){
$content = file_get_contents("app/templates/{$theme}/layout.html");
$menu = AdiantiMenuBuilder::parse('menu.xml', $theme);
$content = str_replace('{MENU}', $menu, $content);
//Novas linhas para theme_formdin
$system_version = $ini['system']['version'];
$head_title = $ini['system']['head_title'].' - v'.$system_version;
$content = str_replace('{head_title}', $head_title, $content);
$content = str_replace('{system_version}', $system_version, $content);
$content = str_replace('{logo-mini}', $ini['general']['application'], $content);
$content = str_replace('{logo-lg}', $ini['system']['logo-lg'], $content);
$content = str_replace('{logo-link-class}', $ini['system']['logo-link-class'], $content);
}else{
if (isset($ini['general']['public_view']) && $ini['general']['public_view'] == '1')
{
$content = file_get_contents("app/templates/{$theme}/public.html");
$menu = AdiantiMenuBuilder::parse('menu-public.xml', $theme);
$content = str_replace('{MENU}', $menu, $content);
//Novas linhas para theme_formdin
$system_version = $ini['system']['version'];
$head_title = $ini['system']['head_title'].' - v'.$system_version;
$content = str_replace('{head_title}', $head_title, $content);
$content = str_replace('{system_version}', $system_version, $content);
$content = str_replace('{logo-mini}', $ini['general']['application'], $content);
$content = str_replace('{logo-lg}', $ini['system']['logo-lg'], $content);
$content = str_replace('{logo-link-class}', $ini['system']['logo-link-class'], $content);
}else{
$content = file_get_contents("app/templates/{$theme}/login.html");
//Novas linhas para theme_formdin
$system_version = $ini['system']['version'];
$head_title = $ini['system']['head_title'].' - v'.$system_version;
$content = str_replace('{head_title}', $head_title, $content);
$content = str_replace('{login-link}', $ini['system']['login-link'], $content);
}
}
$system_version = $ini['system']['version'];
$head_title = $ini['system']['head_title'].' - v'.$system_version;
$content = str_replace('{head_title}', $head_title, $content);
$content = str_replace('{system_version}', $system_version, $content);
$content = str_replace('{logo-mini}', $ini['general']['application'], $content);
$content = str_replace('{logo-lg}', $ini['system']['logo-lg'], $content);
$content = str_replace('{logo-link-class}', $ini['system']['logo-link-class'], $content);
```

0 comments on commit 11fbae7

Please sign in to comment.