-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
129 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace FocalStrategy\Core; | ||
|
||
use Illuminate\Support\ServiceProvider; | ||
use View; | ||
|
||
require_once __DIR__.'/helpers.php'; | ||
|
||
class Laravel4CoreServiceProvider extends ServiceProvider | ||
{ | ||
/** | ||
* Register services. | ||
* | ||
* @return void | ||
*/ | ||
public function register() | ||
{ | ||
} | ||
|
||
/** | ||
* Bootstrap services. | ||
* | ||
* @return void | ||
*/ | ||
public function boot() | ||
{ | ||
View::addNamespace('core', __DIR__.'/views_4'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
if (!function_exists('view')) { | ||
function view($template, $with = []) | ||
{ | ||
return View::make($template, $with); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@if($button->isButton()) | ||
<button {{ $button->attributes() }}> | ||
@if($button->getIcon() != '') | ||
<span class="fa fa-{{ $button->getIcon() }}"></span> | ||
@endif | ||
{{ $button->getText() }} | ||
</button> | ||
@else | ||
<a {{ $button->attributes() }}> | ||
@if($button->getIcon() != '') | ||
<span class="fa fa-{{ $button->getIcon() }}"></span> | ||
@endif | ||
{{ $button->getText() }} | ||
</a> | ||
@endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<div class="btn-group"> | ||
@if($button->isButton()) | ||
<button {{ $button->attributes() }}>{{ $button->getText() }}</button> | ||
@else | ||
<a {{ $button->attributes() }}>{{ $button->getText() }}</a> | ||
@endif | ||
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
<span class="caret"></span> | ||
<span class="sr-only">Toggle Dropdown</span> | ||
</button> | ||
<ul class="dropdown-menu dropdown-menu-right"> | ||
@foreach($button->buttons as $btn) | ||
<li> | ||
{{ $btn->render() }} | ||
</li> | ||
@endforeach | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
@if($button->isButton()) | ||
<button {!! $button->attributes() !!}><img height="20" src="{{ $button->getImage() }}" /></button> | ||
@else | ||
<a {!! $button->attributes() !!}><img height="20" src="{{ $button->getImage() }}" /></a> | ||
@endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container-fluid"> | ||
<div class="page-header mb-2"> | ||
<div class="row"> | ||
<div class="col-sm-12 col-md-8"> | ||
<h1>{{ $page_title ?? 'No Title' }} | ||
@if (!empty($page_sub_title)) | ||
<small>{{ $page_sub_title }}</small> | ||
@endif | ||
</h1> | ||
</div> | ||
<div class="col-sm-12 col-md-4"> | ||
@if(isset($header_renderables) && count($header_renderables) > 0) | ||
<div class="pull-right"> | ||
@foreach($header_renderables as $hr) | ||
{!! $hr->render() !!} | ||
@endforeach | ||
</div> | ||
@endif | ||
</div> | ||
</div> | ||
</div> | ||
@if(Config::get('app.debug')) | ||
@if(isset($dev_errors) && count($dev_errors) > 0) | ||
@foreach($dev_errors as $error) | ||
<div class="alert alert-danger"> | ||
<strong>Developer Notice</strong> | ||
{{ $error }} | ||
</div> | ||
@endforeach | ||
@endif | ||
@endif | ||
|
||
@section('page_content') | ||
@if(isset($data_dump)) | ||
<div class="card bg-light"> | ||
<div class="card-body"> | ||
<pre>{{ json_encode($data_dump,JSON_PRETTY_PRINT | JSON_HEX_TAG) }}</pre> | ||
</div> | ||
</div> | ||
@endif | ||
@show | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ Form::open(['url' => $button->getRoute(),'style' => 'display:inline-block;']) }} | ||
@foreach($button->data() as $key => $value) | ||
{{ Form::hidden($key, $value) }} | ||
@endforeach | ||
<button type="submit" {!! $button->attributes() !!}>{{ $button->getText() }}</button> | ||
{{ Form::close() }} |