Commit 268a238c authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - Cleaned out structure and added Documentation directory for every element

parent 59798a89
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
@php
$example = base64_decode("ICAgIEBMaW1pdGxlc3M6OkVsZW1lbnRDYXJkU3RhcnQoWyd0aXRsZScgPT4gIkNvZGVtaXJyb3IgVGVzdCIsICdpY29uJyA9PiAnaWNvbi1maWxlLWVtcHR5JyBdICkKICAgICAgICBATGltaXRsZXNzOjpDb2RlbWlycm9yKFsgJ2xhbmd1YWdlJyA9PiAnamF2YXNjcmlwdCcsICd0aGVtZScgPT4gJ3plbmJ1cm4nLCAndmFsdWUnID0+ICdIZWxsbyBXb3JsZCEnIF0pCiAgICBATGltaXRsZXNzOjpFbGVtZW50Q2FyZFN0b3A=");
@endphp
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
hello world
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Codemirror Test", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => 'Hello World!' ])
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Codemirror Test", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
@php
$example = base64_decode("ICAgIEBMaW1pdGxlc3M6OkVsZW1lbnRDYXJkU3RhcnQoWyd0aXRsZScgPT4gIkNvZGVtaXJyb3IgVGVzdCIsICdpY29uJyA9PiAnaWNvbi1maWxlLWVtcHR5JyBdICkKICAgICAgICBJIGFtIGluc2lkZSBhIGNhcmQhCiAgICBATGltaXRsZXNzOjpFbGVtZW50Q2FyZFN0b3A=");
@endphp
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
Details here.
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Card Sample", 'icon' => 'icon-file-empty' ] )
I am inside a card!
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Card Syntax", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
@php
$example = base64_decode("QExpbWl0bGVzczo6RXhhbXBsZQ==");
@endphp
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
Details here.
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Example Sample Output", 'icon' => 'icon-file-empty' ] )
@Limitless::Example
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Example Syntax", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
......@@ -48,6 +48,33 @@
*/
public function internalNavigation($parameters)
{
$page = $_GET['page'];
$path = '';
if(isset($page)) {
switch ($page) {
case "card":
$path = 'Limitless::Element.Card.Documentation.Index';
break;
case "example":
$path = 'Limitless::Element.Example.Documentation.Index';
break;
case "codemirror":
$path = 'Limitless::Codemirror.Documentation.Index';
break;
case "navigation":
$path = 'Limitless::Navigation.Documentation.Index';
break;
case "tables":
$path = 'Limitless::Table.Documentation.Index';
break;
default;
}
return View($path);
}
return View('Limitless::Help.Pages.Home');
}
......
......@@ -20,3 +20,7 @@
@section('Limitless::Assets')
<meta name="robots" content="noindex" />
@stop
@section('Limitless::SidebarContent')
Test
@stop
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::SidebarContent')
@Limitless::NavigationAutoFillMenu([
['header' => 'Main',
'menu' => [
['name' => 'Home', 'link' => '#', 'icon' => 'icon-home4'],
['name' => 'Elements', 'icon' => 'icon-puzzle2',
'submenu' => [
['name' => 'Code Mirror', 'link' => '#', 'icon' => 'icon-file-css'],
['name' => 'Example', 'link' => '#', 'icon' => 'icon-file-text3'],
['name' => 'Table', 'link' => '#', 'icon' => 'icon-table2']
]
]
]
],
['header' => 'Test Additional Menu Group',
'menu' => [
['name' => 'A', 'link' => '#', 'icon' => 'icon-home4'],
['name' => 'B', 'link' => '#', 'icon' => 'icon-file-css'],
['name' => 'C', 'link' => '#', 'icon' => 'icon-file-empty'],
['name' => 'D', 'link' => '#', 'icon' => 'icon-table2'],
['name' => 'E', 'icon' => 'icon-list',
'submenu' => [
['name' => 'E1', 'link' => '#', 'icon' => 'icon-list'],
['name' => 'E2', 'link' => '#', 'icon' => 'icon-list'],
]
]
]
]
])
@stop
@section('Limitless::Content')
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
......
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
@php
$example = base64_decode("");
@endphp
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
Details here.
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Navigation Sample Output", 'icon' => 'icon-file-empty' ] )
Navigation sample output here
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Navigation Syntax", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
{{-- Layout Reference --}}
@extends('Limitless::Help.Layout.Master')
@section('Limitless::Content')
@php
$example = base64_decode("");
@endphp
@Limitless::ElementCardStart(['title' => "Documentation", 'icon' => 'icon-file-text3', 'collapsable' => true, 'removeable' => false, 'extra' => ['style' => 'position:relative;', 'id' => 'elemento1', 'class' => 'card'] ])
Details here.
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Table Sample Output", 'icon' => 'icon-file-empty' ] )
Table sample output here
@Limitless::ElementCardStop
@Limitless::ElementCardStart(['title' => "Table Syntax", 'icon' => 'icon-file-empty' ] )
@Limitless::Codemirror([ 'language' => 'javascript', 'theme' => 'zenburn', 'value' => $example ])
@Limitless::ElementCardStop
@stop
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment