<?php

AssetBuilder::setStatus('cms-editor', true);
?>

<h1>{!! $item_name !!}: {!! $page_lang->name !!}</h1>

<div class="row textbox">
    <div class="col-sm-6">
        @foreach($page->groups as $group)
            <p><a href="{!! route('coaster.admin.groups.pages', ['groupId' => $group->id]) !!}">Back
                    to {!! $group->name !!}</a></p>
        @endforeach
        @if ($publishingOn && $page->link == 0)
            <p id="version-well" class="well">
                Published Version: #<span class="live_version_id">{{ $version['live'] }}</span>
                @if ($page->is_live())
                    <?php 
$published = '<b>&nbsp;<span class="text-success version-p"> - latest version live</span></b>';
?>
                    <?php 
$unPublished = '<b>&nbsp;<span class="text-danger version-up"> - latest version not published</span></b>';
?>
                @else
                    <?php 
$published = '<b>&nbsp;<span class="text-warning version-p"> - latest version published (page not live)</span></b>';
?>
                    <?php 
$unPublished = ' <b>&nbsp;<span class="text-danger version-up"> - latest version not published & page not live</span></b>';
?>
                @endif
<?php

AssetBuilder::set('jquery', ['/jquery/jquery-1.12.0.min.js'], true, 1);
AssetBuilder::set('bootstrap', ['/bootstrap/js/bootstrap.min.js', '/bootstrap/css/bootstrap.min.css'], true, 2);
AssetBuilder::set('jquery-ui', ['/jquery-ui/jquery-ui.min.js', '/jquery-ui/jquery-ui.min.css', '/jquery-ui/jquery.ui.touch-punch.min.js'], false, 5);
AssetBuilder::set('jquery-sortable', ['/jquery-ui/jquery-ui.min.js', '/jquery-ui/jquery.ui.touch-punch.min.js', '/jquery/jquery.mjs.nestedSortable.js', '/app/css/sortable.css'], false, 5);
AssetBuilder::set('cms-main', ['/app/css/main.css', '/app/js/main.js', '/app/js/functions.js'], true, 100);
AssetBuilder::set('cms-editor', ['/jquery-ui/jquery-ui.min.js', '/jquery-ui/jquery-ui.min.css', '/jquery-ui/jquery.ui.touch-punch.min.js', '/jquery/jquery.mousewheel.js', '/jquery/fancybox/jquery.fancybox.pack.js', '/jquery/fancybox/jquery.fancybox.css', '/jquery-ui/jquery-ui-timepicker-addon.js', '/jquery/select2/select2.min.js', '/jquery/select2/select2.min.css', config('coaster::admin.tinymce') == 'compressed' ? '/jquery/tinymce/tinymce.gzip.js' : '/jquery/tinymce/tinymce.jquery.min.js', '/app/js/functions.js', '/app/js/pageInfo.js', '/app/js/editor.js'], false, 5);
AssetBuilder::set('cms-versions', ['/app/js/versions.js'], false, 10);
FormMessage::setErrorClass('has-error');
<?php

AssetBuilder::setStatus('jquery-sortable', true);
?>

<h1>Menus</h1>

{!! $menus !!}

@section('scripts')
    <script type="text/javascript">

        var selected_menu;
        var selected_item;

        $('.editsub').click(function () {
            var max_sublevel = $(this).data('max-sublevel');
            $('#editMIModal option:gt(0)').hide();
            $('#editMIModal option:lt(' + (max_sublevel + 1) + ')').show();
            selected_item = $(this).closest('li').attr('id');
            $.ajax({
                url: route('coaster.admin.menus.get-levels'),
                type: 'POST',
                data: {id: selected_item},
                success: function (r) {
                    if (r % 1 === 0) {
                        $('#editMIModal').modal('show');
                        $('#sublevels').val(r);
                    }
                    else {
                        cms_alert('danger', 'Error receiving data');
Beispiel #4
0
<!DOCTYPE html>
<html>
<head>

<?php 
function __autoload($className)
{
    $fileName = str_replace('_', '/', $className);
    include './classes/' . $fileName . '.php';
}
$css = new Cache_CSS(AssetBuilder::factory('./css/'));
$js = new Cache_JS(AssetBuilder::factory('./'));
$templateBuilder = new AssetBuilder_JSTemplate('./templates/');
$tmpl = new Cache_JSTemplate($templateBuilder);
// CSS Building
$css("style.css");
$css("board.css");
$css("lightbox.css");
$css("button.css");
$css("menubar.css");
$css("dropdown.css");
$css("table.css");
// JS Building
$js("utils/require.js");
$js("lib/NoClickDelay.js");
$js("bower_components/jquery/jquery.min.js");
$js("bower_components/underscore/underscore-min.js");
$js("bower_components/backbone/backbone-min.js");
$js("bower_components//moment/min/moment.min.js");
$js("bower_components/backbone.localStorage/backbone.localStorage-min.js");
$js("utils/clock.js");
<?php

AssetBuilder::setStatus('cms-versions', true);
?>

@if (!empty($pagination))

    {!! $pagination !!}

@endif

@if (is_string($requests))

    <p>{{ $requests }}</p>
    <p>&nbsp;</p>

@else

    <div class="table-responsive">
        <table class="table table-striped">

            <thead>
            <tr>
                <th>#</th>
                <th>Name</th>
                @if ($show['page'])
                    <th>Page</th>
                @endif
                <th>Note</th>
                @if ($show['requested_by'])
                    <th>Requested By</th>
Beispiel #6
0
 /**
  * @param string $manifestFilePath - путь до файла sam.json
  * @param string $appPath - Путь до приложения
  */
 public function __construct($manifestFilePath, $appPath)
 {
     $this->appPath = $appPath;
     parent::__construct($manifestFilePath);
 }