Inheritance: extends Phoenix\Script\AbstractScriptManager
Example #1
0
{{-- Part of natika project. --}}

<?php 
\Natika\Script\EditorScript::codeMirror('editor', '#input-body');
\Phoenix\Script\JQueryScript::core();
\Phoenix\Asset\Asset::addScript('js/inline-uploader/inline-uploader.js');
\Phoenix\Asset\Asset::addScript('js/inline-uploader/adapter/codemirror-adapter.js');
\Phoenix\Asset\Asset::addScript('js/markdown/js-markdown-extra.min.js');
?>

<div id="editor" class="panel panel-default">
    <div class="panel-heading clearfix">
        <div class="pull-left">
            Editor
        </div>
        <div class="pull-right">

        </div>
    </div>
    <div class="panel-body">
        @if (!empty($title_field))
        <div class="form-group">
            <label for="input-title" class="sr-only">Title</label>
            <input type="text" class="form-control input-lg" id="input-title" name="item[title]" placeholder="Title" value="{{ $post->title }}">
        </div>
        @endif

            <div class="toolbar">
                <div class="btn-group">
                    <button id="button-h1" class="btn btn-default btn-sm">H1</button>
                    <button id="button-h2" class="btn btn-default btn-sm">H2</button>
Example #2
0
{{-- Part of phoenix project. --}}
<?php 
use Natika\Script\EditorScript;
use Phoenix\Script\PhoenixScript;
PhoenixScript::core('#admin-form');
EditorScript::highlight('.topic-post pre');
\Phoenix\Script\BootstrapScript::tooltip();
?>

@extends('_global.html')

@section('page_title')
Topic
@stop

@section('banner_inner')

    <h1 title="topic-page-title">
        <span class="fa fa-bullhorn"></span>
        {{ \Phoenix\Html\HtmlHeader::getTitle() }}
        @if (\Natika\User\UserHelper::canEditPost($posts[0]))
            <small><a href="" data-toggle="modal" data-target="#topicUpdateModal"><span class="fa fa-edit"></span></a></small>
        @endif
    </h1>

    <ol class="breadcrumb">
        @foreach ($breadcrumbs as $breadcrumb)
            <li>
                <a href="{{ $breadcrumb->link }}">
                    {{ $breadcrumb->title }}
                </a>